diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index aedde084db6799d1d6decfd79289afd469060b21..1a10c3deabaacf71c0b23448ebf38e1c08c4c499 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,21 @@
+2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
+
+	* doc/html/ext/lwg-active.html: Remove.
+	* doc/html/ext/lwg-closed.html: Ditto.
+	* doc/html/ext/lwg-defects.html: Ditto.
+
+	* doc/Makefile.am (xml_extradir): Remove.
+	(xml_extra): Ditto.
+	(stamp-html-docbook-lwg): Remove recipe...
+	(stamp-html-docbook-data): ...and its use here.
+	* doc/Makefile.in: Regenerate.
+
+	* doc/xml/manual/intro.xml: Shorten two paragraphs explaining
+	the relationship to the upstream working group.
+	Replace a local link to ../ext/lwg-active.html by the upstream one.
+	Replace all reference to ../ext/lwg-defects.html by a new entity
+	&DR; which refers to the upstream address.
+
 2017-02-07  Gerald Pfeifer  <gerald@pfeifer.com>
 
 	* doc/xml/manual/status_cxx2017.xml: Fix link to N4284.
diff --git a/libstdc++-v3/doc/Makefile.am b/libstdc++-v3/doc/Makefile.am
index 6ea9da3c29924701927ec5949665f2219e63ac4a..7d0c52d96b5b1d24e8614d1d6b46dcf193896ae9 100644
--- a/libstdc++-v3/doc/Makefile.am
+++ b/libstdc++-v3/doc/Makefile.am
@@ -450,12 +450,6 @@ xml_image_generated = \
 
 xml_images = ${xml_image_basic} ${xml_image_generated}
 
-xml_extradir = ${glibcxx_srcdir}/doc/html/ext
-xml_extra = \
-	${xml_extradir}/lwg-active.html \
-	${xml_extradir}/lwg-closed.html \
-	${xml_extradir}/lwg-defects.html
-
 xml_noinst = \
 	${xml_dir}/book.txml \
 	${xml_dir}/chapter.txml \
@@ -538,11 +532,7 @@ stamp-html-docbook-images: stamp-html-docbook $(xml_images)
 	$(INSTALL_DATA)	$(xml_images) ${docbook_outdir}/html/images
 	$(STAMP) stamp-html-docbook-images
 
-stamp-html-docbook-lwg: stamp-html-docbook $(xml_extra)
-	$(INSTALL_DATA)	$(xml_extra) ${docbook_outdir}/html/ext
-	$(STAMP) stamp-html-docbook-lwg
-
-stamp-html-docbook-data: stamp-html-docbook-images stamp-html-docbook-lwg
+stamp-html-docbook-data: stamp-html-docbook-images
 	$(STAMP) stamp-html-docbook-data
 
 # HTML, "chunked" into index plus chapters as separate pages
diff --git a/libstdc++-v3/doc/Makefile.in b/libstdc++-v3/doc/Makefile.in
index 9db08555785255ac8eea96fece3ff19820913b2e..281394debd04676d2e3c5ab43e147ced4c50c16c 100644
--- a/libstdc++-v3/doc/Makefile.in
+++ b/libstdc++-v3/doc/Makefile.in
@@ -539,11 +539,6 @@ xml_image_generated = \
 	${xml_image_dir}/pbds_tree_text_lor_find.png
 
 xml_images = ${xml_image_basic} ${xml_image_generated}
-xml_extradir = ${glibcxx_srcdir}/doc/html/ext
-xml_extra = \
-	${xml_extradir}/lwg-active.html \
-	${xml_extradir}/lwg-closed.html \
-	${xml_extradir}/lwg-defects.html
 
 xml_noinst = \
 	${xml_dir}/book.txml \
@@ -970,11 +965,7 @@ stamp-html-docbook-images: stamp-html-docbook $(xml_images)
 	$(INSTALL_DATA)	$(xml_images) ${docbook_outdir}/html/images
 	$(STAMP) stamp-html-docbook-images
 
-stamp-html-docbook-lwg: stamp-html-docbook $(xml_extra)
-	$(INSTALL_DATA)	$(xml_extra) ${docbook_outdir}/html/ext
-	$(STAMP) stamp-html-docbook-lwg
-
-stamp-html-docbook-data: stamp-html-docbook-images stamp-html-docbook-lwg
+stamp-html-docbook-data: stamp-html-docbook-images
 	$(STAMP) stamp-html-docbook-data
 
 # HTML, "chunked" into index plus chapters as separate pages
diff --git a/libstdc++-v3/doc/html/ext/lwg-active.html b/libstdc++-v3/doc/html/ext/lwg-active.html
deleted file mode 100644
index 7da07e683d591cfa2af1db070d7e8aca263d88a8..0000000000000000000000000000000000000000
--- a/libstdc++-v3/doc/html/ext/lwg-active.html
+++ /dev/null
@@ -1,30172 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-    "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-<title>C++ Standard Library Active Issues List</title>
-<style type="text/css">
-  p {text-align:justify}
-  li {text-align:justify}
-  blockquote.note
-  {
-    background-color:#E0E0E0;
-    padding-left: 15px;
-    padding-right: 15px;
-    padding-top: 1px;
-    padding-bottom: 1px;
-  }
-  ins {background-color:#A0FFA0}
-  del {background-color:#FFA0A0}
-</style>
-</head>
-<body>
-<table>
-<tr>
-  <td align="left">Doc. no.</td>
-  <td align="left">N4484</td>
-</tr>
-<tr>
-  <td align="left">Date:</td>
-  <td align="left">2015-05-23</td>
-</tr>
-<tr>
-  <td align="left">Project:</td>
-  <td align="left">Programming Language C++</td>
-</tr>
-<tr>
-  <td align="left">Reply to:</td>
-  <td align="left">Marshall Clow &lt;<a href="mailto:lwgchair@gmail.com">lwgchair@gmail.com</a>&gt;</td>
-</tr>
-</table>
-<h1>C++ Standard Library Active Issues List (Revision R93)</h1>
-<p><p>Revised 2015-05-23 at 15:05:40 UTC</p>
-</p>
-  <p>Reference ISO/IEC IS 14882:2014(E)</p>
-  <p>Also see:</p>
-  <ul>
-      <li><a href="lwg-toc.html">Table of Contents</a> for all library issues.</li>
-      <li><a href="lwg-index.html">Index by Section</a> for all library issues.</li>
-      <li><a href="lwg-status.html">Index by Status</a> for all library issues.</li>
-      <li><a href="lwg-defects.html">Library Defect Reports List</a></li>
-      <li><a href="lwg-closed.html">Library Closed Issues List</a></li>
-  </ul>
-  <p>The purpose of this document is to record the status of issues
-  which have come before the Library Working Group (LWG) of the INCITS PL22.16
-  and ISO WG21 C++ Standards Committee. Issues represent
-  potential defects in the ISO/IEC IS 14882:2014(E) document.  
-  </p>
-
-  <p>This document contains only library issues which are actively being
-  considered by the Library Working Group, i.e., issues which have a
-  status of <a href="lwg-active.html#New">New</a>, <a href="lwg-active.html#Open">Open</a>, 
-  <a href="lwg-active.html#Ready">Ready</a>, or <a href="lwg-active.html#Review">Review</a>.
-  See <a href="lwg-defects.html">Library Defect Reports List</a> for issues considered defects
-  and <a href="lwg-closed.html">Library Closed Issues List</a> for issues considered closed.</p>
-
-  <p>The issues in these lists are not necessarily formal ISO Defect
-  Reports (DR's). While some issues will eventually be elevated to
-  official Defect Report status, other issues will be disposed of in
-  other ways. See <a href="#Status">Issue Status</a>.</p>
-
-  <p>Prior to Revision 14, library issues lists existed in two slightly
-  different versions; a Committee Version and a Public
-  Version. Beginning with Revision 14 the two versions were combined
-  into a single version.</p>
-
-  <p>This document includes <i>[bracketed italicized notes]</i> as a
-  reminder to the LWG of current progress on issues. Such notes are
-  strictly unofficial and should be read with caution as they may be
-  incomplete or incorrect. Be aware that LWG support for a particular
-  resolution can quickly change if new viewpoints or killer examples are
-  presented in subsequent discussions.</p>
-
-  <p>For the most current official version of this document see 
-  <a href="http://www.open-std.org/jtc1/sc22/wg21/">http://www.open-std.org/jtc1/sc22/wg21/</a>.
-  Requests for further information about this document should include
-  the document number above, reference ISO/IEC 14882:2014(E), and be
-  submitted to Information Technology Industry Council (ITI), 1250 Eye
-  Street NW, Washington, DC 20005.</p>
-
-  <p>Public information as to how to obtain a copy of the C++ Standard,
-  join the standards committee, submit an issue, or comment on an issue
-  can be found in the comp.std.c++ FAQ.
-  </p>
-
-<p><a name="submit_issue"></a><b>How to submit an issue</b></p>
-
-<ol style="list-style-type:upper-alpha">
-<li><a name="submit_issue_A"></a>
-Mail your issue to the author of this list.
-</li>
-<li><a name="submit_issue_B"></a>
-Specify a short descriptive title.  If you fail to do so, the subject line of your
-mail will be used as the issue title.
-</li>
-<li><a name="submit_issue_C"></a>
-If the "From" on your email is not the name you wish to appear as issue submitter,
-then specify issue submitter.
-</li>
-<li><a name="submit_issue_D"></a>
-Provide a brief discussion of the problem you wish to correct.  Refer to the latest
-working draft or standard using [section.tag] and paragraph numbers where appropriate.
-</li>
-<li><a name="submit_issue_E"></a>
-Provide proposed wording.  This should indicate exactly how you want the standard
-to be changed.  General solution statements belong in the discussion area.  This
-area contains very clear and specific directions on how to modify the current
-draft.  If you are not sure how to word a solution, you may omit this part.
-But your chances of a successful issue greatly increase if you attempt wording.
-</li>
-<li><a name="submit_issue_F"></a>
-It is not necessary for you to use html markup.  However, if you want to, you can
-&lt;ins&gt;<ins>insert text like this</ins>&lt;/ins&gt; and &lt;del&gt;<del>delete text like
-this</del>&lt;/del&gt;.  The only strict requirement is to communicate clearly to
-the list maintainer exactly how you want your issue to look.
-</li>
-<li><a name="submit_issue_G"></a>
-It is not necessary for you to specify other html font/formatting
-mark-up, but if you do the list maintainer will attempt to respect your
-formatting wishes (as described by html markup, or other common idioms).
-</li>
-<li><a name="submit_issue_H"></a>
-It is not necessary for you to specify open date or last modified date (the date
-of your mail will be used).
-</li>
-<li><a name="submit_issue_I"></a>
-It is not necessary for you to cross reference other issues, but you can if you
-like.  You do not need to form the hyperlinks when you do, the list maintainer will
-take care of that.
-</li>
-<li><a name="submit_issue_J"></a>
-One issue per email is best.
-</li>
-<li><a name="submit_issue_K"></a>
-Between the time you submit the issue, and the next mailing deadline
-(date at the top of the Revision History), you <em>own</em> this issue. 
-You control the content, the stuff that is right, the stuff that is
-wrong, the format, the misspellings, etc.  You can even make the issue
-disappear if you want.  Just let the list maintainer know how you want
-it to look, and he will try his best to accommodate you.  After the
-issue appears in an official mailing, you no longer enjoy exclusive
-ownership of it.
-</li>
-</ol>
-
-
-<h2>Revision History</h2>
-<ul>
-<li>R93: 2014-05-22 2015 post-Lenexa mailing<ul>
-<li><b>Summary:</b><ul>
-<li>256 open issues, down by 36.</li>
-<li>1770 closed issues, up by 48.</li>
-<li>2026 issues total, up by 12.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 2 Ready issues: <a href="lwg-active.html#2492">2492</a>, <a href="lwg-active.html#2494">2494</a>.</li>
-<li>Added the following 10 New issues: <a href="lwg-active.html#2493">2493</a>, <a href="lwg-active.html#2495">2495</a>, <a href="lwg-active.html#2496">2496</a>, <a href="lwg-active.html#2497">2497</a>, <a href="lwg-active.html#2498">2498</a>, <a href="lwg-active.html#2499">2499</a>, <a href="lwg-active.html#2500">2500</a>, <a href="lwg-active.html#2501">2501</a>, <a href="lwg-active.html#2502">2502</a>, <a href="lwg-active.html#2503">2503</a>.</li>
-<li>Changed the following 2 issues to Ready (from Review): <a href="lwg-active.html#2111">2111</a>, <a href="lwg-active.html#2380">2380</a>.</li>
-<li>Changed the following 20 issues to Ready (from New): <a href="lwg-active.html#2244">2244</a>, <a href="lwg-active.html#2250">2250</a>, <a href="lwg-active.html#2259">2259</a>, <a href="lwg-active.html#2336">2336</a>, <a href="lwg-active.html#2353">2353</a>, <a href="lwg-active.html#2367">2367</a>, <a href="lwg-active.html#2384">2384</a>, <a href="lwg-active.html#2385">2385</a>, <a href="lwg-active.html#2435">2435</a>, <a href="lwg-active.html#2462">2462</a>, <a href="lwg-active.html#2466">2466</a>, <a href="lwg-active.html#2473">2473</a>, <a href="lwg-active.html#2476">2476</a>, <a href="lwg-active.html#2477">2477</a>, <a href="lwg-active.html#2483">2483</a>, <a href="lwg-active.html#2484">2484</a>, <a href="lwg-active.html#2485">2485</a>, <a href="lwg-active.html#2486">2486</a>, <a href="lwg-active.html#2487">2487</a>, <a href="lwg-active.html#2489">2489</a>.</li>
-<li>Changed the following 12 issues to Ready (from Open): <a href="lwg-active.html#1169">1169</a>, <a href="lwg-active.html#2072">2072</a>, <a href="lwg-active.html#2101">2101</a>, <a href="lwg-active.html#2119">2119</a>, <a href="lwg-active.html#2127">2127</a>, <a href="lwg-active.html#2133">2133</a>, <a href="lwg-active.html#2156">2156</a>, <a href="lwg-active.html#2181">2181</a>, <a href="lwg-active.html#2218">2218</a>, <a href="lwg-active.html#2219">2219</a>, <a href="lwg-active.html#2447">2447</a>, <a href="lwg-active.html#2469">2469</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Open): <a href="lwg-active.html#2224">2224</a>.</li>
-<li>Changed the following issue to Review (from New): <a href="lwg-active.html#2296">2296</a>.</li>
-<li>Changed the following issue to Review (from Open): <a href="lwg-active.html#2328">2328</a>.</li>
-<li>Changed the following 11 issues to Open (from New): <a href="lwg-active.html#2262">2262</a>, <a href="lwg-active.html#2289">2289</a>, <a href="lwg-active.html#2338">2338</a>, <a href="lwg-active.html#2348">2348</a>, <a href="lwg-active.html#2349">2349</a>, <a href="lwg-active.html#2370">2370</a>, <a href="lwg-active.html#2398">2398</a>, <a href="lwg-active.html#2402">2402</a>, <a href="lwg-active.html#2422">2422</a>, <a href="lwg-active.html#2450">2450</a>, <a href="lwg-active.html#2456">2456</a>.</li>
-<li>Changed the following 8 issues to Open (from SG1): <a href="lwg-active.html#2245">2245</a>, <a href="lwg-active.html#2265">2265</a>, <a href="lwg-active.html#2276">2276</a>, <a href="lwg-active.html#2309">2309</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-active.html#2441">2441</a>.</li>
-<li>Changed the following issue to LEWG (from New): <a href="lwg-active.html#2372">2372</a>.</li>
-<li>Changed the following issue to EWG (from New): <a href="lwg-active.html#2432">2432</a>.</li>
-<li>Changed the following issue to Deferred (from Open): <a href="lwg-active.html#2202">2202</a>.</li>
-<li>Changed the following 14 issues to WP (from Ready): <a href="lwg-defects.html#2160">2160</a>, <a href="lwg-defects.html#2168">2168</a>, <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>.</li>
-<li>Changed the following 18 issues to WP (from Tentatively Ready): <a href="lwg-defects.html#2059">2059</a>, <a href="lwg-defects.html#2076">2076</a>, <a href="lwg-defects.html#2239">2239</a>, <a href="lwg-defects.html#2369">2369</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-defects.html#2410">2410</a>, <a href="lwg-defects.html#2415">2415</a>, <a href="lwg-defects.html#2418">2418</a>, <a href="lwg-defects.html#2437">2437</a>, <a href="lwg-defects.html#2448">2448</a>, <a href="lwg-defects.html#2454">2454</a>, <a href="lwg-defects.html#2455">2455</a>, <a href="lwg-defects.html#2458">2458</a>, <a href="lwg-defects.html#2459">2459</a>, <a href="lwg-defects.html#2463">2463</a>, <a href="lwg-defects.html#2467">2467</a>, <a href="lwg-defects.html#2470">2470</a>, <a href="lwg-defects.html#2482">2482</a>.</li>
-<li>Changed the following 3 issues to WP (from New): <a href="lwg-defects.html#2420">2420</a>, <a href="lwg-defects.html#2464">2464</a>, <a href="lwg-defects.html#2488">2488</a>.</li>
-<li>Changed the following issue to WP (from Open): <a href="lwg-defects.html#2063">2063</a>.</li>
-<li>Changed the following 2 issues to WP (from SG1): <a href="lwg-defects.html#2407">2407</a>, <a href="lwg-defects.html#2442">2442</a>.</li>
-<li>Changed the following issue to Resolved (from Review): <a href="lwg-defects.html#2228">2228</a>.</li>
-<li>Changed the following 3 issues to Resolved (from Open): <a href="lwg-defects.html#1526">1526</a>, <a href="lwg-defects.html#2274">2274</a>, <a href="lwg-defects.html#2397">2397</a>.</li>
-<li>Changed the following 5 issues to NAD (from New): <a href="lwg-closed.html#2079">2079</a>, <a href="lwg-closed.html#2251">2251</a>, <a href="lwg-closed.html#2351">2351</a>, <a href="lwg-closed.html#2373">2373</a>, <a href="lwg-closed.html#2386">2386</a>.</li>
-<li>Changed the following issue to NAD (from Open): <a href="lwg-closed.html#2388">2388</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R92: 
-2015-04-09 pre-Lenexa mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>292 open issues, up by 33.</li>
-<li>1722 closed issues, up by 0.</li>
-<li>2014 issues total, up by 33.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 5 Tentatively Ready issues: <a href="lwg-active.html#2459">2459</a>, <a href="lwg-active.html#2463">2463</a>, <a href="lwg-active.html#2467">2467</a>, <a href="lwg-active.html#2470">2470</a>, <a href="lwg-active.html#2482">2482</a>.</li>
-<li>Added the following 27 New issues: <a href="lwg-active.html#2460">2460</a>, <a href="lwg-active.html#2461">2461</a>, <a href="lwg-active.html#2462">2462</a>, <a href="lwg-active.html#2464">2464</a>, <a href="lwg-active.html#2465">2465</a>, <a href="lwg-active.html#2466">2466</a>, <a href="lwg-active.html#2468">2468</a>, <a href="lwg-active.html#2471">2471</a>, <a href="lwg-active.html#2472">2472</a>, <a href="lwg-active.html#2473">2473</a>, <a href="lwg-active.html#2474">2474</a>, <a href="lwg-active.html#2475">2475</a>, <a href="lwg-active.html#2476">2476</a>, <a href="lwg-active.html#2477">2477</a>, <a href="lwg-active.html#2478">2478</a>, <a href="lwg-active.html#2479">2479</a>, <a href="lwg-active.html#2480">2480</a>, <a href="lwg-active.html#2481">2481</a>, <a href="lwg-active.html#2483">2483</a>, <a href="lwg-active.html#2484">2484</a>, <a href="lwg-active.html#2485">2485</a>, <a href="lwg-active.html#2486">2486</a>, <a href="lwg-active.html#2487">2487</a>, <a href="lwg-active.html#2488">2488</a>, <a href="lwg-active.html#2489">2489</a>, <a href="lwg-active.html#2490">2490</a>, <a href="lwg-active.html#2491">2491</a>.</li>
-<li>Added the following Open issue: <a href="lwg-active.html#2469">2469</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Review): <a href="lwg-active.html#2378">2378</a>.</li>
-<li>Changed the following 11 issues to Tentatively Ready (from New): <a href="lwg-active.html#2076">2076</a>, <a href="lwg-active.html#2239">2239</a>, <a href="lwg-active.html#2369">2369</a>, <a href="lwg-active.html#2410">2410</a>, <a href="lwg-active.html#2415">2415</a>, <a href="lwg-active.html#2418">2418</a>, <a href="lwg-active.html#2437">2437</a>, <a href="lwg-active.html#2448">2448</a>, <a href="lwg-active.html#2454">2454</a>, <a href="lwg-active.html#2455">2455</a>, <a href="lwg-active.html#2458">2458</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Open): <a href="lwg-active.html#2059">2059</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from New): <a href="lwg-active.html#2337">2337</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from Open): <a href="lwg-active.html#760">760</a>.</li>
-<li>Changed the following 5 issues to Open (from New): <a href="lwg-active.html#2312">2312</a>, <a href="lwg-active.html#2388">2388</a>, <a href="lwg-active.html#2393">2393</a>, <a href="lwg-active.html#2444">2444</a>, <a href="lwg-active.html#2447">2447</a>.</li>
-<li>Changed the following 4 issues to LEWG (from New): <a href="lwg-active.html#2391">2391</a>, <a href="lwg-active.html#2417">2417</a>, <a href="lwg-active.html#2436">2436</a>, <a href="lwg-active.html#2451">2451</a>.</li>
-<li>Changed the following issue to EWG (from Open): <a href="lwg-active.html#2089">2089</a>.</li>
-<li>Changed the following issue to Core (from New): <a href="lwg-active.html#2452">2452</a>.</li>
-<li>Changed the following 13 issues to SG1 (from New): <a href="lwg-active.html#2236">2236</a>, <a href="lwg-active.html#2245">2245</a>, <a href="lwg-active.html#2265">2265</a>, <a href="lwg-active.html#2276">2276</a>, <a href="lwg-active.html#2309">2309</a>, <a href="lwg-active.html#2334">2334</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2407">2407</a>, <a href="lwg-active.html#2412">2412</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-active.html#2442">2442</a>, <a href="lwg-active.html#2445">2445</a>.</li>
-<li>Changed the following issue to SG1 (from Open): <a href="lwg-active.html#2441">2441</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R91: 
-2014-11-23 post-Urbana mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>259 open issues, up by 32.</li>
-<li>1722 closed issues, down by 20.</li>
-<li>1981 issues total, up by 12.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 12 New issues: <a href="lwg-active.html#2447">2447</a>, <a href="lwg-defects.html#2448">2448</a>, <a href="lwg-active.html#2449">2449</a>, <a href="lwg-active.html#2450">2450</a>, <a href="lwg-active.html#2451">2451</a>, <a href="lwg-active.html#2452">2452</a>, <a href="lwg-active.html#2453">2453</a>, <a href="lwg-defects.html#2454">2454</a>, <a href="lwg-defects.html#2455">2455</a>, <a href="lwg-active.html#2456">2456</a>, <a href="lwg-active.html#2457">2457</a>, <a href="lwg-defects.html#2458">2458</a>.</li>
-<li>Changed the following 2 issues to Ready (from Review): <a href="lwg-defects.html#2160">2160</a>, <a href="lwg-defects.html#2364">2364</a>.</li>
-<li>Changed the following 11 issues to Ready (from New): <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>.</li>
-<li>Changed the following issue to Ready (from Open): <a href="lwg-defects.html#2168">2168</a>.</li>
-<li>Changed the following issue to Review (from New): <a href="lwg-active.html#2424">2424</a>.</li>
-<li>Changed the following 5 issues to Open (from New): <a href="lwg-active.html#2307">2307</a>, <a href="lwg-active.html#2310">2310</a>, <a href="lwg-active.html#2383">2383</a>, <a href="lwg-active.html#2414">2414</a>, <a href="lwg-active.html#2441">2441</a>.</li>
-<li>Changed the following 2 issues to Open (from NAD Future): <a href="lwg-active.html#760">760</a>, <a href="lwg-active.html#1173">1173</a>.</li>
-<li>Changed the following 4 issues to LEWG (from New): <a href="lwg-active.html#2419">2419</a>, <a href="lwg-active.html#2430">2430</a>, <a href="lwg-active.html#2443">2443</a>, <a href="lwg-active.html#2446">2446</a>.</li>
-<li>Changed the following 48 issues to LEWG (from NAD Future): <a href="lwg-active.html#255">255</a>, <a href="lwg-active.html#423">423</a>, <a href="lwg-active.html#484">484</a>, <a href="lwg-active.html#523">523</a>, <a href="lwg-active.html#532">532</a>, <a href="lwg-active.html#708">708</a>, <a href="lwg-active.html#839">839</a>, <a href="lwg-active.html#851">851</a>, <a href="lwg-active.html#877">877</a>, <a href="lwg-active.html#933">933</a>, <a href="lwg-active.html#935">935</a>, <a href="lwg-active.html#936">936</a>, <a href="lwg-active.html#961">961</a>, <a href="lwg-active.html#1025">1025</a>, <a href="lwg-active.html#1031">1031</a>, <a href="lwg-active.html#1041">1041</a>, <a href="lwg-active.html#1052">1052</a>, <a href="lwg-active.html#1053">1053</a>, <a href="lwg-active.html#1112">1112</a>, <a href="lwg-active.html#1120">1120</a>, <a href="lwg-active.html#1121">1121</a>, <a href="lwg-active.html#1150">1150</a>, <a href="lwg-active.html#1154">1154</a>, <a href="lwg-active.html#1184">1184</a>, <a href="lwg-active.html#1188">1188</a>, <a href="lwg-active.html#1201">1201</a>, <a href="lwg-active.html#1203">1203</a>, <a href="lwg-active.html#1217">1217</a>, <a href="lwg-active.html#1235">1235</a>, <a href="lwg-active.html#1238">1238</a>, <a href="lwg-active.html#1242">1242</a>, <a href="lwg-active.html#1282">1282</a>, <a href="lwg-active.html#1289">1289</a>, <a href="lwg-active.html#1317">1317</a>, <a href="lwg-active.html#1320">1320</a>, <a href="lwg-active.html#1396">1396</a>, <a href="lwg-active.html#1406">1406</a>, <a href="lwg-active.html#1422">1422</a>, <a href="lwg-active.html#1459">1459</a>, <a href="lwg-active.html#1484">1484</a>, <a href="lwg-active.html#1488">1488</a>, <a href="lwg-active.html#1493">1493</a>, <a href="lwg-active.html#1499">1499</a>, <a href="lwg-active.html#1521">1521</a>, <a href="lwg-active.html#2040">2040</a>, <a href="lwg-active.html#2055">2055</a>, <a href="lwg-active.html#2226">2226</a>, <a href="lwg-active.html#2232">2232</a>.</li>
-<li>Changed the following 2 issues to Pending NAD (from Tentatively NAD): <a href="lwg-closed.html#2302">2302</a>, <a href="lwg-closed.html#2382">2382</a>.</li>
-<li>Changed the following 11 issues to WP (from Ready): <a href="lwg-defects.html#2016">2016</a>, <a href="lwg-defects.html#2170">2170</a>, <a href="lwg-defects.html#2340">2340</a>, <a href="lwg-defects.html#2354">2354</a>, <a href="lwg-defects.html#2377">2377</a>, <a href="lwg-defects.html#2396">2396</a>, <a href="lwg-defects.html#2399">2399</a>, <a href="lwg-defects.html#2400">2400</a>, <a href="lwg-defects.html#2401">2401</a>, <a href="lwg-defects.html#2404">2404</a>, <a href="lwg-defects.html#2408">2408</a>.</li>
-<li>Changed the following 12 issues to WP (from Tentatively Ready): <a href="lwg-defects.html#2106">2106</a>, <a href="lwg-defects.html#2129">2129</a>, <a href="lwg-defects.html#2212">2212</a>, <a href="lwg-defects.html#2217">2217</a>, <a href="lwg-defects.html#2230">2230</a>, <a href="lwg-defects.html#2233">2233</a>, <a href="lwg-defects.html#2266">2266</a>, <a href="lwg-defects.html#2325">2325</a>, <a href="lwg-defects.html#2361">2361</a>, <a href="lwg-defects.html#2365">2365</a>, <a href="lwg-defects.html#2376">2376</a>, <a href="lwg-defects.html#2387">2387</a>.</li>
-<li>Changed the following issue to Resolved (from Ready): <a href="lwg-defects.html#2319">2319</a>.</li>
-<li>Changed the following issue to Resolved (from Review): <a href="lwg-defects.html#2118">2118</a>.</li>
-<li>Changed the following issue to Resolved (from New): <a href="lwg-defects.html#2416">2416</a>.</li>
-<li>Changed the following issue to Resolved (from Open): <a href="lwg-defects.html#2108">2108</a>.</li>
-<li>Changed the following issue to NAD (from New): <a href="lwg-closed.html#2429">2429</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R90: 
-2014-10-13 pre-Urbana mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>227 open issues, up by 31.</li>
-<li>1742 closed issues, up by 0.</li>
-<li>1969 issues total, up by 31.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 31 New issues: <a href="lwg-defects.html#2416">2416</a>, <a href="lwg-active.html#2417">2417</a>, <a href="lwg-defects.html#2418">2418</a>, <a href="lwg-active.html#2419">2419</a>, <a href="lwg-defects.html#2420">2420</a>, <a href="lwg-active.html#2421">2421</a>, <a href="lwg-active.html#2422">2422</a>, <a href="lwg-active.html#2423">2423</a>, <a href="lwg-active.html#2424">2424</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-closed.html#2429">2429</a>, <a href="lwg-active.html#2430">2430</a>, <a href="lwg-active.html#2431">2431</a>, <a href="lwg-active.html#2432">2432</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-active.html#2435">2435</a>, <a href="lwg-active.html#2436">2436</a>, <a href="lwg-defects.html#2437">2437</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>, <a href="lwg-active.html#2441">2441</a>, <a href="lwg-defects.html#2442">2442</a>, <a href="lwg-active.html#2443">2443</a>, <a href="lwg-active.html#2444">2444</a>, <a href="lwg-active.html#2445">2445</a>, <a href="lwg-active.html#2446">2446</a>.</li>
-<li>No issues changed.</li>
-</ul></li>
-</ul>
-</li>
-<li>R89: 
-2014-07-08 post-Rapperswil mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>196 open issues, up by 14.</li>
-<li>1742 closed issues, up by 12.</li>
-<li>1938 issues total, up by 26.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 6 Ready issues: <a href="lwg-defects.html#2396">2396</a>, <a href="lwg-defects.html#2399">2399</a>, <a href="lwg-defects.html#2400">2400</a>, <a href="lwg-defects.html#2401">2401</a>, <a href="lwg-defects.html#2404">2404</a>, <a href="lwg-defects.html#2408">2408</a>.</li>
-<li>Added the following 15 New issues: <a href="lwg-active.html#2391">2391</a>, <a href="lwg-active.html#2392">2392</a>, <a href="lwg-active.html#2393">2393</a>, <a href="lwg-active.html#2394">2394</a>, <a href="lwg-active.html#2398">2398</a>, <a href="lwg-active.html#2402">2402</a>, <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2407">2407</a>, <a href="lwg-defects.html#2410">2410</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-active.html#2412">2412</a>, <a href="lwg-active.html#2413">2413</a>, <a href="lwg-active.html#2414">2414</a>, <a href="lwg-defects.html#2415">2415</a>.</li>
-<li>Added the following Open issue: <a href="lwg-defects.html#2397">2397</a>.</li>
-<li>Added the following 3 WP issues: <a href="lwg-defects.html#2390">2390</a>, <a href="lwg-defects.html#2395">2395</a>, <a href="lwg-defects.html#2409">2409</a>.</li>
-<li>Added the following NAD issue: <a href="lwg-closed.html#2405">2405</a>.</li>
-<li>Changed the following issue to Ready (from New): <a href="lwg-defects.html#2377">2377</a>.</li>
-<li>Changed the following 2 issues to Ready (from Deferred): <a href="lwg-active.html#2253">2253</a>, <a href="lwg-active.html#2255">2255</a>.</li>
-<li>Changed the following 2 issues to Tentatively Ready (from New): <a href="lwg-defects.html#2325">2325</a>, <a href="lwg-defects.html#2387">2387</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from New): <a href="lwg-closed.html#2382">2382</a>.</li>
-<li>Changed the following 3 issues to Review (from New): <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-active.html#2380">2380</a>.</li>
-<li>Changed the following 2 issues to Review (from Open): <a href="lwg-defects.html#2118">2118</a>, <a href="lwg-defects.html#2160">2160</a>.</li>
-<li>Changed the following 3 issues to Open (from New): <a href="lwg-defects.html#2168">2168</a>, <a href="lwg-active.html#2238">2238</a>, <a href="lwg-active.html#2273">2273</a>.</li>
-<li>Changed the following 3 issues to Open (from Deferred): <a href="lwg-active.html#2254">2254</a>, <a href="lwg-active.html#2264">2264</a>, <a href="lwg-active.html#2277">2277</a>.</li>
-<li>Changed the following 3 issues to WP (from New): <a href="lwg-defects.html#2371">2371</a>, <a href="lwg-defects.html#2374">2374</a>, <a href="lwg-defects.html#2389">2389</a>.</li>
-<li>Changed the following 4 issues to Resolved (from Deferred): <a href="lwg-defects.html#2282">2282</a>, <a href="lwg-defects.html#2283">2283</a>, <a href="lwg-defects.html#2287">2287</a>, <a href="lwg-defects.html#2333">2333</a>.</li>
-<li>Changed the following issue to NAD (from Deferred): <a href="lwg-closed.html#2305">2305</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R88: 
-2014-05-24 pre-Rapperswil mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>182 open issues, up by 29.</li>
-<li>1730 closed issues, up by 0.</li>
-<li>1912 issues total, up by 29.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 3 Tentatively Ready issues: <a href="lwg-defects.html#2361">2361</a>, <a href="lwg-defects.html#2365">2365</a>, <a href="lwg-defects.html#2376">2376</a>.</li>
-<li>Added the following 26 New issues: <a href="lwg-active.html#2362">2362</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-active.html#2366">2366</a>, <a href="lwg-active.html#2367">2367</a>, <a href="lwg-active.html#2368">2368</a>, <a href="lwg-defects.html#2369">2369</a>, <a href="lwg-active.html#2370">2370</a>, <a href="lwg-defects.html#2371">2371</a>, <a href="lwg-active.html#2372">2372</a>, <a href="lwg-closed.html#2373">2373</a>, <a href="lwg-defects.html#2374">2374</a>, <a href="lwg-active.html#2375">2375</a>, <a href="lwg-defects.html#2377">2377</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2380">2380</a>, <a href="lwg-active.html#2381">2381</a>, <a href="lwg-closed.html#2382">2382</a>, <a href="lwg-active.html#2383">2383</a>, <a href="lwg-active.html#2384">2384</a>, <a href="lwg-active.html#2385">2385</a>, <a href="lwg-closed.html#2386">2386</a>, <a href="lwg-defects.html#2387">2387</a>, <a href="lwg-closed.html#2388">2388</a>, <a href="lwg-defects.html#2389">2389</a>.</li>
-<li>Changed the following 5 issues to Tentatively Ready (from Open): <a href="lwg-defects.html#2106">2106</a>, <a href="lwg-defects.html#2129">2129</a>, <a href="lwg-defects.html#2212">2212</a>, <a href="lwg-defects.html#2230">2230</a>, <a href="lwg-defects.html#2233">2233</a>.</li>
-</ul></li>
-</ul>
-</li>
-</ul>
-
-<h2><a name="Status"></a>Issue Status</h2>
-
-  <p>Issues reported to the LWG transition through a variety of statuses,
-  indicating their progress towards a resolution.  Typically, most issues
-  will flow through the following stages.
-  </p>
-
-  <p><b><a name="New">New</a></b> - The issue has not yet been
-  reviewed by the LWG. Any <b>Proposed Resolution</b> is purely a
-  suggestion from the issue submitter, and should not be construed as
-  the view of LWG.</p>
-
-  <p><b><a name="Open">Open</a></b> - The LWG has discussed the issue
-  but is not yet ready to move the issue forward. There are several
-  possible reasons for open status:</p>
-     <ul>
-        <li>Consensus may have not yet have been reached as to how to deal
-            with the issue.</li>
-        <li>Informal consensus may have been reached, but the LWG awaits
-            exact <b>Proposed Resolution</b> wording for review.</li>
-        <li>The LWG wishes to consult additional technical experts before
-            proceeding.</li>
-        <li>The issue may require further study.</li>
-     </ul>
-
-  <p>A <b>Proposed Resolution</b> for an open issue is still not be
-  construed as the view of LWG. Comments on the current state of
-  discussions are often given at the end of open issues in an italic
-  font. Such comments are for information only and should not be given
-  undue importance.</p>
-
-  <p><b><a name="Review">Review</a></b> - Exact wording of a
-  <b>Proposed Resolution</b> is now available for review on an issue
-  for which the LWG previously reached informal consensus.</p>
-
-  <p><b><a name="Ready">Ready</a></b> - The LWG has reached consensus
-  that the issue is a defect in the Standard, the <b>Proposed
-  Resolution</b> is correct, and the issue is ready to forward to the
-  full committee for further action as a Defect Report (DR).</p>
-
-  <p>Typically, an issue must have a proposed resolution in the currently
-  published issues list, whose wording does not change during LWG review, to
-  move to the Ready status.</p>
-
-  <p><b><a name="Voting">Voting</a></b> - This status should not be seen
-  in a published issues list, but is a marker for use during meetings to
-  indicate an issues was Ready in the pre-meeting mailing, the <b>Proposed
-  Resolution</b> is correct, and the issue will be offered to the working
-  group at the end of the current meeting to apply to the current working
-  paper (WP) or to close in some other appropriate manner.  This easily
-  distinguishes such issues from those moving to Ready status during the
-  meeting itself, that should not be forwarded until the next meeting.  If
-  the issue does not move forward, it should fall back to one of the other
-  open states before the next list is published.</p>
-
-  <p><b><a name="Immediate">Immediate</a></b> - This status should not be
-  seen in a published issues list, but is a marker for use during meetings
-  to indicate an issues was not Ready in the pre-meeting mailing, but the
-  <b>Proposed Resolution</b> is correct, and the issue will be offered to
-  the working group at the end of the current meeting to apply to the
-  current working paper (WP) or to close in some other appropriate manner.
-  This status is used only rarely, typically for fixes that are both small
-  and obvious, and usually within a meeting of the expected publication of
-  a revised standard.  If the issue does not move forward, it should fall
-  back to one of the other open states before the next list is published.</p>
-
-  <p>In addition, there are a few ways to categorise and issue that remains
-  open to a resolution within the library, but is not actively being worked
-  on.
-  </p>
-
-  <p><b><a name="Deferred">Deferred</a></b> - The LWG has discussed the issue,
-  is not yet ready to move the issue forward, but neither does it deem the
-  issue significant enough to delay publishing a standard or Technical Report.
-  A typical deferred issue would be seeking to clarify wording that might be
-  technically correct, but easily mis-read.</p>
-
-  <p>A <b>Proposed Resolution</b> for a deferred issue is still not be
-  construed as the view of LWG. Comments on the current state of
-  discussions are often given at the end of open issues in an italic
-  font. Such comments are for information only and should not be given
-  undue importance.</p>
-
-  <p><b><a name="Core">Core</a></b> - The LWG has discussed the issue, and feels
-  that some key part of resolving the issue is better handled by a cleanup of
-  the language in the Core part of the standard.  The issue is passed to the Core
-  Working Group, which should ideally open a corresponding issue that can be
-  linked from the library issue.  Such issues will be revisitted after Core have
-  made (or declined to make) any changes.
-  </p>
-
-  <p><b><a name="EWG">EWG</a></b> - The LWG has discussed the issue, and wonder
-  that some key part of resolving the issue is better handled by some (hopefully
-  small) extension to the language.  The issue is passed to the Evolution Working
-  Group, which should ideally open a corresponding issue that can be linked from
-  the library issue.  Such issues will be revisitted after Evoltion have made (or
-  declined to make) any recommendations.  Positive recommendations from EWG will
-  often mean the issue transition to <i>Core</i> status while we wait for some
-  proposed new feature to land in the working paper.
-  </p>
-
-  <p><b><a name="LEWG">LEWG</a></b> - The LWG has discussed the issue, and deemd
-  the issue is either an extension, however small, or changes the library design
-  in some fundamental way, and so has delegated the initial work to the Library
-  Evolution Working Group.
-  </p>
-
-  <p>Ultimately, all issues should reach closure with one of the following statuses.
-  </p>
-
-  <p><b><a name="DR">DR</a></b> - (Defect Report) - The full WG21/PL22.16
-  committee has voted to forward the issue to the Project Editor to be
-  processed as a Potential Defect Report. The Project Editor reviews
-  the issue, and then forwards it to the WG21 Convenor, who returns it
-  to the full committee for final disposition. This issues list
-  accords the status of DR to all these Defect Reports regardless of
-  where they are in that process.</p>
-
-  <p><b><a name="WP">WP</a></b> - (Working Paper) - The proposed resolution has not been
-  accepted as a Technical Corrigendum, but the full WG21/PL22.16 committee has voted to
-  apply the Defect Report's Proposed Resolution to the working paper.</p>
-
-  <p><b><a name="C++11">C++14</a></b> - (C++ Standard, as revised for 2014) - The full
-  WG21/PL22.16 committee has voted to accept the Defect Report's Proposed Resolution into
-  the published 2011 revision to the C++ standard, ISO/IEC IS 14882:2014(E).</p>
-
-   <p><b><a name="C++11">C++11</a></b> - (C++ Standard, as revised for 2011) - The full
-  WG21/PL22.16 committee has voted to accept the Defect Report's Proposed Resolution into
-  the published 2011 revision to the C++ standard, ISO/IEC IS 14882:2011(E).</p>
-
-   <p><b><a name="CD1">CD1</a></b> - (Committee Draft 2008) - The full
-  WG21/PL22.16 committee has voted to accept the Defect Report's Proposed
-  Resolution into the Fall 2008 Committee Draft.</p>
-
-  <p><b><a name="TC1">TC1</a></b> - (Technical Corrigenda 1) - The full
-  WG21/PL22.16 committee has voted to accept the Defect Report's Proposed
-  Resolution as a Technical Corrigenda.  Action on this issue is thus
-  complete and no further action is possible under ISO rules.</p>
-
-  <p><b><a name="TRDec">TRDec</a></b> - (Decimal TR defect) - The LWG has voted to
-  accept the Defect Report's Proposed Resolution into the Decimal TR.  Action on this
-  issue is thus complete and no further action is expected.</p>
-
-  <p><b><a name="Resolved">Resolved</a></b> - The LWG has reached consensus
-  that the issue is a defect in the Standard, but the resolution adopted to
-  resolve the issue came via some other mechanism than this issue in the
-  list - typically by applying a formal paper, occasionally as a side effect
-  of consolidating several interacting issue resolutions into a single issue.</p>
-
-  <p><b><a name="Dup">Dup</a></b> - The LWG has reached consensus that
-  the issue is a duplicate of another issue, and will not be further
-  dealt with. A <b>Rationale</b> identifies the duplicated issue's
-  issue number.</p>
-
-  <p><b><a name="NAD">NAD</a></b> - The LWG has reached consensus that
-  the issue is not a defect in the Standard.</p>
-
-  <p><b><a name="NAD Editorial">NAD Editorial</a></b> - The LWG has reached consensus that
-  the issue can either be handled editorially, or is handled by a paper (usually
-  linked to in the rationale).</p>
-
-  <p><b>Tentatively</b> - This is a <i>status qualifier</i>.  The issue has
-  been reviewed online, or at an unofficial meeting, but not in an official meeting, and
-  some support has been formed for the qualified status.  Tentatively qualified issues may
-  be moved to the unqualified status and forwarded to full committee (if Ready) within the
-  same meeting.  Unlike Ready issues, Tentatively Ready issues will be reviewed in
-  subcommittee prior to forwarding to full committee.  When a status is qualified with
-  Tentatively, the issue is still considered active.</p>
-
-  <p><b>Pending</b> - This is a <i>status qualifier</i>.  When prepended to a status this
-  indicates the issue has been processed by the committee, and a decision has been made to
-  move the issue to the associated unqualified status.  However for logistical reasons the
-  indicated outcome of the issue has not yet appeared in the latest working paper.</p>
-
-  <p>The following statuses have been retired, but may show up on older issues lists.</p>
-
-  <p><b><a name="NAD Future">NAD Future</a></b> - In addition to the regular status, the
-  LWG believes that this issue should be revisited at the next revision of the standard.
-  That is now an ongoing task managed by the Library Evolution Working Group, and most
-  issues in this status were reopended with the status <a href="#NAD Editorial">LEWG</a>.
-  </p>
-
-  <p><b><a name="NAD Concepts">NAD Concepts</a></b> - This status reflects an evolution
-  of the language during the development of C++11, where a new feature entered the
-  language, called <i>concepts</i>, that fundamentally changed the way templates would
-  be specified and written.  While this language feature was removed towards the end of
-  the C++11 project, there is a clear intent to revisit this part of the language design.
-  During that development, a number of issues were opened against the updated library
-  related to use of that feature, or requesting fixes that would require exlicit use of
-  the concepts feature.  All such issues have been closed with this status, and may be
-  revisitted should this or a similar language feature return for a future standard.</p>
-
-  <p>Issues are always given the status of <a href="lwg-active.html#New">New</a> when
-  they first appear on the issues list. They may progress to
-  <a href="lwg-active.html#Open">Open</a> or <a href="lwg-active.html#Review">Review</a>
-  while the LWG is actively working on them. When the LWG has reached consensus on
-  the disposition of an issue, the status will then change to
-  <a href="lwg-active.html#Dup">Dup</a>, <a href="lwg-active.html#NAD">NAD</a>, or
-  <a href="lwg-active.html#Ready">Ready</a> as appropriate.  Once the full PL22.16 committee
-  votes to forward Ready issues to the Project Editor, they are given the status of Defect
-  Report (<a href="lwg-active.html#DR">DR</a>). These in turn may become the basis for
-  Technical Corrigenda (<a href="lwg-active.html#TC1">TC1</a>), an updated standard
-  (<a href="lwg-defects.html#C++11">C++11</a>, <a href="lwg-defects.html#C++14">C++14</a>),
-  or are closed without action other than a Record of Response
-  (<a href="lwg-active.html#Resolved">Resolved</a>) where the desired effect has already
-  been achieved by some other process.  The intent of this LWG process is that only issues
-  which are truly defects in the Standard move to the formal ISO DR status.
-  </p>
-
-
-<h2>Active Issues</h2>
-<hr>
-<h3><a name="255"></a>255. Why do <tt>basic_streambuf&lt;&gt;::pbump()</tt> and <tt>gbump()</tt> take an int?</h3>
-<p><b>Section:</b> 27.6.3 [streambuf] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-08-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf">issues</a> in [streambuf].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The basic_streambuf members gbump() and pbump() are specified to take an
-int argument. This requirement prevents the functions from effectively
-manipulating buffers larger than std::numeric_limits&lt;int&gt;::max()
-characters. It also makes the common use case for these functions
-somewhat difficult as many compilers will issue a warning when an
-argument of type larger than int (such as ptrdiff_t on LLP64
-architectures) is passed to either of the function. Since it's often the
-result of the subtraction of two pointers that is passed to the
-functions, a cast is necessary to silence such warnings. Finally, the
-usage of a native type in the functions signatures is inconsistent with
-other member functions (such as sgetn() and sputn()) that manipulate the
-underlying character buffer. Those functions take a streamsize argument.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-This is part of a bigger problem. If anyone cares enough, they should
-write a paper solving the bigger problem of offset types in iostreams.
-</p>
-<p>
-This is related to the paper about large file sizes. Beman has already
-agreed to drop the section of that paper that deals with this.
-</p>
-<p>
-int is big enough for reasonable buffers.
-</p>
-<p>
-Move to NAD Future.
-</p>
-<p>
-This is related to LWG <a href="lwg-active.html#423">423</a>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the signatures of these functions in the synopsis of template
-class basic_streambuf (27.5.2) and in their descriptions (27.5.2.3.1, p4
-and 27.5.2.3.2, p4) to take a streamsize argument.
-</p>
-
-<p>
-Although this change has the potential of changing the ABI of the
-library, the change will affect only platforms where int is different
-than the definition of streamsize. However, since both functions are
-typically inline (they are on all known implementations), even on such
-platforms the change will not affect any user code unless it explicitly
-relies on the existing type of the functions (e.g., by taking their
-address). Such a possibility is IMO quite remote.
-</p>
-
-<p>
-Alternate Suggestion from Howard Hinnant, c++std-lib-7780:
-</p>
-
-<p>
-This is something of a nit, but I'm wondering if streamoff wouldn't be a 
-better choice than streamsize.  The argument to pbump and gbump MUST be 
-signed.  But the standard has this to say about streamsize 
-(27.4.1/2/Footnote):
-</p>
-
-<blockquote><p>
-     [Footnote: streamsize is used in most places where ISO C would use
-     size_t.  Most of the uses of streamsize could use size_t, except for
-     the strstreambuf constructors, which require negative values. It
-     should probably be the signed type corresponding to size_t (which is
-     what Posix.2 calls ssize_t). --- end footnote]
-</p></blockquote>
-
-<p>
-This seems a little weak for the argument to pbump and gbump.  Should we 
-ever really get rid of strstream, this footnote might go with it, along 
-with the reason to make streamsize signed.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes this change is too big for now.  We may wish to
-reconsider this for a future revision of the standard.  One
-possibility is overloading pbump, rather than changing the
-signature.</p>
-<p><i>[
-[2006-05-04: Reopened at the request of Chris (Krzysztof ?elechowski)]
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="423"></a>423. effects of negative streamsize in iostreams</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-A third party test suite tries to exercise istream::ignore(N) with
-a negative value of N and expects that the implementation will treat
-N as if it were 0. Our implementation asserts that (N >= 0) holds and
-aborts the test.
-</p>
-
-<p>
-I can't find anything in section 27 that prohibits such values but I don't
-see what the effects of such calls should be, either (this applies to
-a number of unformatted input functions as well as some member functions
-of the basic_streambuf template).
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-This is related to LWG <a href="lwg-active.html#255">255</a>.
-</p>
-<p>
-Move to NAD Future.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-I propose that we add to each function in clause 27 that takes an argument,
-say N, of type streamsize a Requires clause saying that "N >= 0." The intent
-is to allow negative streamsize values in calls to precision() and width()
-but disallow it in calls to streambuf::sgetn(), istream::ignore(), or
-ostream::write().
-</p>
-
-<p><i>[Kona: The LWG agreed that this is probably what we want.  However, we
-  need a review to find all places where functions in clause 27 take
-  arguments of type streamsize that shouldn't be allowed to go
-  negative.  Martin will do that review.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="484"></a>484. Convertible to <tt>T</tt></h3>
-<p><b>Section:</b> 24.2.3 [input.iterators] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2004-09-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.iterators">issues</a> in [input.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>From comp.std.c++:</p>
-
-<p>
-I note that given an input iterator a for type <tt>T</tt>, 
-then <tt>*a</tt> only has to be "convertable to <tt>T</tt>", 
-not actually of type <tt>T</tt>.
-</p>
-
-<p>Firstly, I can't seem to find an exact definition of "convertable to <tt>T</tt>". 
-While I assume it is the obvious definition (an implicit conversion), I 
-can't find an exact definition. Is there one?</p>
-
-<p>Slightly more worryingly, there doesn't seem to be any restriction on 
-the this type, other than it is "convertable to <tt>T</tt>". Consider two input 
-iterators <tt>a</tt> and <tt>b</tt>. I would personally assume that most people would 
-expect <tt>*a==*b</tt> would perform <tt>T(*a)==T(*b)</tt>, however it doesn't seem that 
-the standard requires that, and that whatever type <tt>*a</tt> is (call it <tt>U</tt>) 
-could have == defined on it with totally different symantics and still 
-be a valid inputer iterator.</p>
-
-<p>Is this a correct reading? When using input iterators should I write 
-<tt>T(*a)</tt> all over the place to be sure that the object I'm using is the 
-class I expect?</p>
-
-<p>This is especially a nuisance for operations that are defined to be
-  "convertible to <tt>bool</tt>".  (This is probably allowed so that
-  implementations could return say an <tt>int</tt> and avoid an unnessary
-  conversion. However all implementations I have seen simply return a
-  <tt>bool</tt> anyway.  Typical implemtations of STL algorithms just write
-  things like <tt>while(a!=b &amp;&amp; *a!=0)</tt>.  But strictly
-  speaking, there are lots of types that are convertible to <tt>T</tt> but
-  that also overload the appropriate operators so this doesn't behave
-  as expected.</p>
-
-<p>If we want to make code like this legal (which most people seem to
-  expect), then we'll need to tighten up what we mean by "convertible
-  to <tt>T</tt>".</p>
-
-<p><i>[Lillehammer: The first part is NAD, since "convertible" is
- well-defined in core. The second part is basically about pathological
- overloads. It's a minor problem but a real one. So leave open for
- now, hope we solve it as part of iterator redesign.]</i></p>
-
-
-<p><i>[
-2009-07-28 Reopened by Alisdair. No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD Future. We agree there's an issue, but there is no
-proposed solution at this time and this will be solved by concepts in
-the future.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2758.pdf">N2758</a>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="523"></a>523. regex case-insensitive character ranges are unimplementable as specified</h3>
-<p><b>Section:</b> 28 [re] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Eric Niebler <b>Opened:</b> 2005-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re">active issues</a> in [re].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re">issues</a> in [re].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A problem with TR1 regex is currently being discussed on the Boost 
-developers list. It involves the handling of case-insensitive matching 
-of character ranges such as [Z-a]. The proper behavior (according to the 
-ECMAScript standard) is unimplementable given the current specification 
-of the TR1 regex_traits&lt;&gt; class template. John Maddock, the author of 
-the TR1 regex proposal, agrees there is a problem. The full discussion 
-can be found at http://lists.boost.org/boost/2005/06/28850.php (first 
-message copied below). We don't have any recommendations as yet.
-</p>
-<p>
--- Begin original message --
-</p>
-<p>
-The situation of interest is described in the ECMAScript specification
-(ECMA-262), section 15.10.2.15:
-</p>
-<p>
-"Even if the pattern ignores case, the case of the two ends of a range
-is significant in determining which characters belong to the range.
-Thus, for example, the pattern /[E-F]/i matches only the letters E, F,
-e, and f, while the pattern /[E-f]/i matches all upper and lower-case
-ASCII letters as well as the symbols [, \, ], ^, _, and `."
-</p>
-<p>
-A more interesting case is what should happen when doing a
-case-insentitive match on a range such as [Z-a]. It should match z, Z,
-a, A and the symbols [, \, ], ^, _, and `. This is not what happens with
-Boost.Regex (it throws an exception from the regex constructor).
-</p>
-<p>
-The tough pill to swallow is that, given the specification in TR1, I
-don't think there is any effective way to handle this situation.
-According to the spec, case-insensitivity is handled with
-regex_traits&lt;&gt;::translate_nocase(CharT) -- two characters are equivalent
-if they compare equal after both are sent through the translate_nocase
-function. But I don't see any way of using this translation function to
-make character ranges case-insensitive. Consider the difficulty of
-detecting whether "z" is in the range [Z-a]. Applying the transformation
-to "z" has no effect (it is essentially std::tolower). And we're not
-allowed to apply the transformation to the ends of the range, because as
-ECMA-262 says, "the case of the two ends of a range is significant."
-</p>
-<p>
-So AFAICT, TR1 regex is just broken, as is Boost.Regex. One possible fix
-is to redefine translate_nocase to return a string_type containing all
-the characters that should compare equal to the specified character. But
-this function is hard to implement for Unicode, and it doesn't play nice
-with the existing ctype facet. What a mess!
-</p>
-<p>
--- End original message --
-</p>
-
-<p><i>[
-John Maddock adds:
-]</i></p>
-
-
-<p>
-One small correction, I have since found that ICU's regex package does 
-implement this correctly, using a similar mechanism to the current 
-TR1.Regex.
-</p>
-<p>
-Given an expression [c1-c2] that is compiled as case insensitive it:
-</p>
-<p>
-Enumerates every character in the range c1 to c2 and converts it to it's 
-case folded equivalent.  That case folded character is then used a key to a 
-table of equivalence classes, and each member of the class is added to the 
-list of possible matches supported by the character-class.  This second step 
-isn't possible with our current traits class design, but isn't necessary if 
-the input text is also converted to a case-folded equivalent on the fly.
-</p>
-<p>
-ICU applies similar brute force mechanisms to character classes such as 
-[[:lower:]] and [[:word:]], however these are at least cached, so the impact 
-is less noticeable in this case.
-</p>
-<p>
-Quick and dirty performance comparisons show that expressions such as 
-"[X-\\x{fff0}]+" are indeed very slow to compile with ICU (about 200 times 
-slower than a "normal" expression).  For an application that uses a lot of 
-regexes this could have a noticeable performance impact.  ICU also has an 
-advantage in that it knows the range of valid characters codes: code points 
-outside that range are assumed not to require enumeration, as they can not 
-be part of any equivalence class.  I presume that if we want the TR1.Regex 
-to work with arbitrarily large character sets enumeration really does become 
-impractical.
-</p>
-<p>
-Finally note that Unicode has:
-</p>
-<p>
-Three cases (upper, lower and title).
-One to many, and many to one case transformations.
-Character that have context sensitive case translations - for example an 
-uppercase sigma has two different lowercase forms  - the form chosen depends 
-on context(is it end of a word or not), a caseless match for an upper case 
-sigma should match either of the lower case forms, which is why case folding 
-is often approximated by tolower(toupper(c)).
-</p>
-<p>
-Probably we need some way to enumerate character equivalence classes, 
-including digraphs (either as a result or an input), and some way to tell 
-whether the next character pair is a valid digraph in the current locale.
-</p>
-<p>
-Hoping this doesn't make this even more complex that it was already,
-</p>
-
-<p><i>[
-Portland:  Alisdair: Detect as invalid, throw an exception.
-Pete: Possible general problem with case insensitive ranges.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-We agree that this is a problem, but we do not know the answer.
-</p>
-<p>
-We are going to declare this NAD until existing practice leads us in some direction.
-</p>
-<p>
-No objection to NAD Future.
-</p>
-<p>
-Move to NAD Future.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="532"></a>532. Tuple comparison</h3>
-<p><b>Section:</b> 20.4.2.7 [tuple.rel], TR1 6.1.3.5 [tr.tuple.rel] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2005-11-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.rel">active issues</a> in [tuple.rel].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.rel">issues</a> in [tuple.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#348">348</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Where possible, <tt>tuple</tt> comparison operators &lt;,&lt;=,=&gt;, and &gt; ought to be
-defined in terms of <tt>std::less</tt> rather than <tt>operator&lt;</tt>, in order to
-support comparison of tuples of pointers.  
-</p>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-If we solve this for <tt>tuple</tt> we would have to solve it for <tt>pair</tt>
-algorithms, etc.  It is too late to do that at this time.  Move to NAD Future.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-change 6.1.3.5/5 from:
-</p>
-
-<blockquote><p>
-  Returns: The result of a lexicographical comparison between t and
-  u. The result is defined as: (bool)(get&lt;0&gt;(t) &lt; get&lt;0&gt;(u)) ||
-  (!(bool)(get&lt;0&gt;(u) &lt; get&lt;0&gt;(t)) &amp;&amp; ttail &lt; utail), where rtail for
-  some tuple r is a tuple containing all but the first element of
-  r. For any two zero-length tuples e and f, e &lt; f returns false.
-</p></blockquote>
-
-<p>
-to:
-</p>
-
-<blockquote>
-<p>
-  Returns: The result of a lexicographical comparison between t and
-  u. For any two zero-length tuples e and f, e &lt; f returns false.
-  Otherwise, the result is defined as: cmp( get&lt;0&gt;(t), get&lt;0&gt;(u)) ||
-  (!cmp(get&lt;0&gt;(u), get&lt;0&gt;(t)) &amp;&amp; ttail &lt; utail), where rtail for some
-  tuple r is a tuple containing all but the first element of r, and
-  cmp(x,y) is an unspecified function template defined as follows.
-</p>
-<p>
-  Where T is the type of x and U is the type of y:
-</p>
-
-<p>
-     if T and U are pointer types and T is convertible to U, returns
-     less&lt;U&gt;()(x,y)
-</p>
-
-<p>
-     otherwise, if T and U are pointer types, returns less&lt;T&gt;()(x,y)
-</p>
-
-<p>
-     otherwise, returns (bool)(x &lt; y)
-</p>
-</blockquote>
-
-<p><i>[
-Berlin: This issue is much bigger than just tuple (pair, containers,
-algorithms). Dietmar will survey and work up proposed wording.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD.  This will be fixed with the next revision of concepts.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="708"></a>708. Locales need to be per thread and updated for POSIX changes</h3>
-<p><b>Section:</b> 22 [localization] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#localization">issues</a> in [localization].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The POSIX "Extended API Set Part 4,"
-</p>
-<blockquote><p>
-<a href="http://www.opengroup.org/sib/details.tpl?id=C065">http://www.opengroup.org/sib/details.tpl?id=C065</a>
-</p></blockquote>
-<p>
-introduces extensions to the C locale mechanism that
-allow multiple concurrent locales to be used in the same application
-by introducing a type <tt>locale_t</tt> that is very similar to
-<tt>std::locale</tt>, and a number of <tt>_l</tt> functions that make use of it.
-</p>
-<p>
-The global locale (set by setlocale) is now specified to be per-
-process. If a thread does not call <tt>uselocale</tt>, the global locale is
-in effect for that thread. It can install a per-thread locale by
-using <tt>uselocale</tt>.
-</p>
-<p>
-There is also a nice <tt>querylocale</tt> mechanism by which one can obtain
-the name (such as "de_DE") for a specific <tt>facet</tt>, even for combined
-locales, with no <tt>std::locale</tt> equivalent.
-</p>
-<p>
-<tt>std::locale</tt> should be harmonized with the new POSIX <tt>locale_t</tt>
-mechanism and provide equivalents for <tt>uselocale</tt> and <tt>querylocale</tt>.
-</p>
-
-<p><i>[
-Kona (2007): Bill and Nick to provide wording.
-]</i></p>
-
-
-<p><i>[
-San Francisco: Bill and Nick still intend to provide wording, but this
-is a part of the task to be addressed by the group that will look into
-issue <a href="lwg-defects.html#860">860</a>.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-It's our intention to stay in sync with WG14. If WG14 makes a decision
-that requires a change in WG21 the issue will be reopened.
-</p>
-<p>
-Move to NAD Future.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="760"></a>760. The emplace issue</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">Tentatively NAD</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2007-11-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Tentatively NAD">Tentatively NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In an <tt>emplace</tt> member function the function parameter pack may be bound
-to a priori unlimited number of objects: some or all of them can be
-elements of the container itself. Apparently, in order to conform to the
-blanket statement 23.2 [container.requirements]/11, the
-implementation must check all of them for that possibility. A possible
-solution can involve extending the exception in 23.2 [container.requirements]/12 also to the emplace member. As a
-side note, the <tt>push_back</tt> and <tt>push_front</tt> member
-functions are luckily not affected by this problem, can be efficiently
-implemented anyway.
-</p>
-
-<p><i>[
-Related to <a href="lwg-defects.html#767">767</a> and to <a href="lwg-active.html#2164">2164</a>
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed addition (13) is partially redundant with the existing
-paragraph 12. Why was the qualifier "rvalues" added to paragraph 12? Why
-does it not cover subelements and pointers?
-</p>
-<p>
-Resolution: Alan Talbot to rework language, then set state to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-The problem is broader than <tt>emplace</tt>. The LWG doesn't
-feel that it knows how to write wording that prohibits all of the
-problematic use cases at this time.
-</p>
-<p>
-NAD Future.
-</p>
-</blockquote>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-LWG believes that <a href="lwg-active.html#2164">2164</a> addresses this issue and therefore considers <a href="lwg-active.html#760">760</a> as NAD. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add after 23.2 [container.requirements]/12:
-</p>
-
-<blockquote>
-<p>
--12- Objects passed to member functions of a container as rvalue
-references shall not be elements of that container. No diagnostic
-required.
-</p>
-<p>
-<ins>
--13- Objects bound to the function parameter pack of the
-<tt>emplace</tt> member function shall not be elements or sub-objects of
-elements of the container. No diagnostic required.
-</ins>
-</p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="839"></a>839. Maps and sets missing splice operation</h3>
-<p><b>Section:</b> 23.4 [associative], 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alan Talbot <b>Opened:</b> 2008-05-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative">active issues</a> in [associative].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative">issues</a> in [associative].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Splice is a very useful feature of <tt>list</tt>. This functionality is also very
-useful for any other node based container, and I frequently wish it were
-available for maps and sets. It seems like an omission that these
-containers lack this capability. Although the complexity for a splice is
-the same as for an insert, the actual time can be much less since the
-objects need not be reallocated and copied. When the element objects are
-heavy and the compare operations are fast (say a <tt>map&lt;int, huge_thingy&gt;</tt>)
-this can be a big win.
-</p>
-
-<p>
-<b>Suggested resolution:</b>
-</p>
-
-<p>
-Add the following signatures to map, set, multimap, multiset, and the unordered associative containers:
-</p>
-<blockquote><pre> 
-void splice(list&lt;T,Allocator&gt;&amp;&amp; x);
-void splice(list&lt;T,Allocator&gt;&amp;&amp; x, const_iterator i);
-void splice(list&lt;T,Allocator&gt;&amp;&amp; x, const_iterator first, const_iterator last);
-</pre></blockquote>
-
-<p>
-Hint versions of these are also useful to the extent hint is useful.
-(I'm looking for guidance about whether hints are in fact useful.)
-</p>
- 
-<blockquote><pre> 
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x);
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x, const_iterator i);
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x, const_iterator first, const_iterator last);
-</pre></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Don't try to <tt>splice "list"</tt> into the other containers, it should be container-type.
-</p>
-<p>
-<tt>forward_list</tt> already has <tt>splice_after</tt>.
-</p>
-<p>
-Would "<tt>splice</tt>" make sense for an <tt>unordered_map</tt>?
-</p>
-<p>
-Jens, Robert: "<tt>splice</tt>" is not the right term, it implies maintaining ordering in <tt>list</tt>s.
-</p>
-<p>
-Howard: <tt>adopt</tt>?
-</p>
-<p>
-Jens: <tt>absorb</tt>?
-</p>
-<p>
-Alan: <tt>subsume</tt>?
-</p>
-<p>
-Robert: <tt>recycle</tt>?
-</p>
-<p>
-Howard: <tt>transfer</tt>? (but no direction)
-</p>
-<p>
-Jens: <tt>transfer_from</tt>. No.
-</p>
-<p>
-Alisdair: Can we give a nothrow guarantee? If your <tt>compare()</tt> and <tt>hash()</tt> doesn't throw, yes.
-</p>
-<p>
-Daniel: For <tt>unordered_map</tt>, we can't guarantee nothrow.
-</p>
-</blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Martin: this would possibly outlaw an implementation technique that is
-currently in use; caching nodes in containers.
-</p>
-<p>
-Alan: if you cache in the allocator, rather than the individual
-container, this proposal doesn't interfere with that.
-</p>
-<p>
-Martin: I'm not opposed to this, but I'd like to see an implementation
-that demonstrates that it works.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.
-</p></blockquote>
-
-<p><i>[
-2009-09-19 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I'm not disagreeing with the NAD Future resolution.  But when the future gets
-here, here is a possibility worth exploring:
-</p>
-
-<blockquote>
-<p>
-Add to the "unique" associative containers:
-</p>
-
-<blockquote><pre>
-typedef <i>details</i>      node_ptr;
-
-node_ptr             remove(const_iterator p);
-pair&lt;iterator, bool&gt; insert(node_ptr&amp;&amp; nd);
-iterator             insert(const_iterator p, node_ptr&amp;&amp; nd);
-</pre></blockquote>
-
-<p>
-And add to the "multi" associative containers:
-</p>
-
-<blockquote><pre>
-typedef <i>details</i> node_ptr;
-
-node_ptr remove(const_iterator p);
-iterator insert(node_ptr&amp;&amp; nd);
-iterator insert(const_iterator p, node_ptr&amp;&amp; nd);
-</pre></blockquote>
-
-<p>
-<tt>Container::node_ptr</tt> is a smart pointer much like <tt>unique_ptr</tt>.
-It owns a node obtained from the container it was removed from.  It maintains a
-reference to the allocator in the container so that it can properly deallocate
-the node if asked to, even if the allocator is stateful.  This being said, the
-<tt>node_ptr</tt> can not outlive the container for this reason.
-</p>
-
-<p>
-The <tt>node_ptr</tt> offers "<tt>const</tt>-free" access to the node's
-<tt>value_type</tt>.
-</p>
-
-<p>
-With this interface, clients have a great deal of flexibility:
-</p>
-
-<ul>
-<li>
-A client can remove a node from one container, and insert it into another
-(without any heap allocation).  This is the splice functionality this issue
-asks for.
-</li>
-<li>
-A client can remove a node from a container, change its key or value, and insert
-it back into the same container, or another container, all without the cost of
-allocating a node.
-</li>
-<li>
-If the Compare function is nothrow (which is very common), then this functionality
-is nothrow unless modifying the value throws.  And if this does throw, it does
-so outside of the containers involved.
-</li>
-<li>
-If the Compare function does throw, the <tt>insert</tt> function will have the
-argument <tt>nd</tt> retain ownership of the node.
-</li>
-<li>
-The <tt>node_ptr</tt> should be independent of the <tt>Compare</tt> parameter
-so that a node can be transferred from <tt>set&lt;T, C1, A&gt;</tt>
-to <tt>set&lt;T, C2, A&gt;</tt> (for example).
-</li>
-</ul>
-
-<p>
-Here is how the customer might use this functionality:
-</p>
-
-<ul>
-<li>
-<p>
-Splice a node from one container to another:
-</p>
-<blockquote><pre>
-m2.insert(m1.remove(i));
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change the "key" in a <tt>std::map</tt> without the cost of node reallocation:
-</p>
-<blockquote><pre>
-auto p = m.remove(i);
-p->first = new_key;
-m.insert(std::move(p));
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change the "value" in a <tt>std::set</tt> without the cost of node reallocation:
-</p>
-<blockquote><pre>
-auto p = s.remove(i);
-*p = new_value;
-s.insert(std::move(p));
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Move a move-only or heavy object out of an associative container (as opposed to
-the proposal in <a href="lwg-active.html#1041">1041</a>):
-</p>
-<blockquote><pre>
-MoveOnly x = std::move(*s.remove(i));
-</pre></blockquote>
-<ol>
-<li>
-<tt>remove(i)</tt> transfers ownership of the node from the set to a temporary
-<tt>node_ptr</tt>.
-</li>
-<li>
-The <tt>node_ptr</tt> is dereferenced, and that non-const reference is sent to
-<tt>move</tt> to cast it to an rvalue.
-</li>
-<li>
-The rvalue <tt>MoveOnly</tt> is move constructed into <tt>x</tt> from
-the <tt>node_ptr</tt>.
-</li>
-<li>
-<tt>~node_ptr()</tt> destructs the moved-from <tt>MoveOnly</tt> and deallocates
-the node.
-</li>
-</ol>
-
-<p>
-Contrast this with the <a href="lwg-active.html#1041">1041</a> solution:
-</p>
-<blockquote><pre>
-MoveOnly x = std::move(s.extract(i).first);
-</pre></blockquote>
-
-<p>
-The former requires one move construction for <tt>x</tt> while the latter
-requires two (one into the <tt>pair</tt> and then one into <tt>x</tt>).  Either
-of these constructions can throw (say if there is only a copy constructor for
-<tt>x</tt>).  With the former, the point of throw is outside of the container
-<tt>s</tt>, after the element has been removed from the container.  With the latter,
-one throwing construction takes place prior to the removal of the element, and
-the second takes place after the element is removed.
-</p>
-
-</li>
-</ul>
-
-<p>
-The "node insertion" API maintains the API associated with inserting <tt>value_type</tt>s
-so the customer can use familiar techniques for getting an iterator to the 
-inserted node, or finding out whether it was inserted or not for the "unique"
-containers.
-</p>
-
-<p>
-Lightly prototyped.  No implementation problems.  Appears to work great
-for the client.
-</p>
-
-</blockquote>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="851"></a>851. simplified array construction</h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Benjamin Kosnik <b>Opened:</b> 2008-06-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This is an issue that came up on the libstdc++ list, where a
-discrepancy between "C" arrays and C++0x's <tt>std::array</tt> was pointed
-out.
-</p>
-
-<p>
-In "C," this array usage is possible:
-</p>
-
-<blockquote><pre>
-int ar[] = {1, 4, 6};
-</pre></blockquote>
-
-<p>
-But for C++, 
-</p>
-
-<blockquote><pre>
-std::array&lt;int&gt; a = { 1, 4, 6 }; // error
-</pre></blockquote>
-
-<p>
-Instead, the second parameter of the <tt>array</tt> template must be
-explicit, like so:
-</p>
-
-<blockquote><pre>
-std::array&lt;int, 3&gt; a = { 1, 4, 6 };
-</pre></blockquote>
-
-<p>
-Doug Gregor proposes the following solution, that assumes
-generalized initializer lists.
-</p>
-
-<blockquote><pre>
-template&lt;typename T, typename... Args&gt;
-inline array&lt;T, sizeof...(Args)&gt; 
-make_array(Args&amp;&amp;... args) 
-{ return { std::forward&lt;Args&gt;(args)... };  }
-</pre></blockquote>
-
-<p>
-Then, the way to build an <tt>array</tt> from a list of unknown size is:
-</p>
-
-<blockquote><pre>
-auto a = make_array&lt;T&gt;(1, 4, 6);
-</pre></blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Benjamin: Move to Ready?
-</p>
-<p>
-Bjarne: I'm not convinced this is useful enough to add, so I'd like us
-to have time to reflect on it.
-</p>
-<p>
-Alisdair: the constraints are wrong, they should be
-</p>
-<blockquote><pre>
-template&lt;ValueType T, ValueType... Args&gt;
-requires Convertible&lt;Args, T&gt;...
-array&lt;T, sizeof...(Args)&gt; make_array(Args&amp;&amp;... args);
-</pre></blockquote>
-<p>
-Alidair: this would be useful if we had a constexpr version.
-</p>
-<p>
-Bjarne: this is probably useful for arrays with a small number of
-elements, but it's not clearly useful otherwise.
-</p>
-<p>
-Consensus is to move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-06-07 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I suggest a fix and a simplification of the current proposal: Recent
-prototyping by
-Howard showed, that a fix is required because narrowing conversion
-8.5.4 [dcl.init.list]/6 b.3
-would severely limit the possible distribution of argument types, e.g.
-the expression
-<tt>make_array&lt;double&gt;(1, 2.0)</tt> is ill-formed, because the narrowing
-happens <em>inside</em> the
-function body where no constant expressions exist anymore. Furthermore
-given e.g.
-</p>
-<blockquote><pre>
-int f();
-double g();
-</pre></blockquote>
-<p>
-we probably want to support
-</p>
-<blockquote><pre>
-make_array&lt;double&gt;(f(), g());
-</pre></blockquote>
-
-<p>
-as well. To make this feasible, the currently suggested expansion
-</p>
-
-<blockquote><pre>
-{ std::forward&lt;Args&gt;(args)... }
-</pre></blockquote>
-
-<p>
-needs to be replaced by
-</p>
-
-<blockquote><pre>
-{ static_cast&lt;T&gt;(std::forward&lt;Args&gt;(args))... }
-</pre></blockquote>
-
-<p>
-which is safe, because we already ensure convertibility via the
-element-wise <tt>Convertible&lt;Args, T&gt;</tt> requirement. Some other fixes are
-necessary: The <tt>ValueType</tt> requirement for the function <em>parameters</em>
-is invalid, because all lvalue arguments will deduce to an lvalue-reference,
-thereby no longer satisfying this requirement.
-</p>
-
-<p>
-The suggested simplification is to provide a default-computed effective
-type for the result array based on common_type and decay, in
-unconstrained form:
-</p>
-
-<blockquote><pre>
-template&lt;typename... Args&gt;
-array&lt;typename decay&lt;typename common_type&lt;Args...&gt;::type&gt;::type,
-sizeof...(Args)&gt;
-make_array(Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-The approach used below is similar to that of <tt>make_pair</tt> and <tt>make_tuple</tt>
-using a symbol <tt>C</tt> to represent the decayed common type [Note: Special
-handling of <tt>reference_wrapper</tt> types is intentionally <em>not</em> provided, because
-our target has so satisfy <tt>ValueType</tt>, thus under the revised proposal only
-an all-<tt>reference_wrapper</tt>-arguments would be well-formed and an array of
-<tt>reference_wrapper</tt> will be constructed]. I do currently not suggest to
-add new concepts reflecting <tt>decay</tt> and <tt>common_type</tt>, but an implementor will
-need something like this to succeed. Note that we use a similar fuzziness for
-<tt>make_pair</tt> and <tt>make_tuple</tt> currently. This fuzziness is not related to
-the currently
-missing <tt>Constructible&lt;Vi, Ti&amp;&amp;&gt;</tt> requirement for those functions. The following
-proposal fixes that miss for <tt>make_array</tt>. If the corresponding <tt>C</tt> type
-deduction is
-explicitly wanted for standardization, here the implementation
-</p>
-
-<blockquote><pre>
-auto concept DC&lt;typename... T&gt; {
-  typename type = typename decay&lt;typename common_type&lt;T...&gt;::type&gt;::type;
-}
-</pre></blockquote>
-
-<p>
-where <tt>C</tt> is identical to <tt>DC&lt;Args...&gt;::type</tt> in the proposed resolution below.
-</p>
-<p>
-I intentionally added no further type relation between type and the concept
-template parameters, but instead added this requirement below to make
-the specification as transparent as possible. As written this concept is
-satisfied, if the corresponding associated type exists.
-</p>
-
-<p><b>Suggested Resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Add to the array synopsis in 23.3 [sequences]:
-</p>
-<blockquote><pre>
-<ins>
-template&lt;ReferentType... Args&gt;
-requires ValueType&lt;C&gt; &amp;&amp; IdentityOf&lt;Args&gt; &amp;&amp; Constructible&lt;C, Args&amp;&amp;&gt;...
-array&lt;C, sizeof...(Args)&gt;
-make_array(Args&amp;&amp;... args);
-</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Append after 23.3.2.9 [array.tuple] Tuple interface to class template array
-the following new section:
-</p>
-<blockquote>
-<p>
-23.4.1.7 Array creation functions [array.creation]
-</p>
-
-<pre>
-<ins>
-template&lt;ReferentType... Args&gt;
-requires ValueType&lt;C&gt; &amp;&amp; IdentityOf&lt;Args&gt; &amp;&amp; Constructible&lt;C, Args&amp;&amp;&gt;...
-array&lt;C, sizeof...(Args)&gt;
-make_array(Args&amp;&amp;... args);</ins>
-</pre>
-
-<blockquote>
-<p><ins>
-Let <tt>C</tt> be <tt>decay&lt;common_type&lt;Args...&gt;::type&gt;::type</tt>.
-</ins></p>
-<p>
-<ins><i>Returns:</i> an <tt>array&lt;C, sizeof...(Args)&gt;</tt> initialized with
-<tt>{ static_cast&lt;C&gt;(std::forward&lt;Args&gt;(args))... }</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-
-</li>
-
-</ol>
-
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed resolution uses concepts.
-</p>
-<p>
-Daniel to rewrite the proposed resolution.
-</p>
-<p>
-Leave Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-25 Daniel provides rewritten proposed resolution.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Argument for NAD future: everything about this could be added on. This
-does not require changes to the existing text.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Add to the array synopsis in 23.3 [sequences]:
-</p>
-
-<blockquote><pre>
-<ins>template&lt;class... Args&gt;
-  array&lt;<i>CT</i>, sizeof...(Args)&gt;
-  make_array(Args&amp;&amp;... args);</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Append after 23.3.2.9 [array.tuple] "Tuple interface to class template array" the
-following new section:
-</p>
-
-<blockquote>
-<p>
-<ins>XX.X.X.X Array creation functions [array.creation]</ins>
-</p>
-
-<pre><ins>
-template&lt;class... Args&gt;
-array&lt;<i>CT</i>, sizeof...(Args)&gt;
-make_array(Args&amp;&amp;... args)
-</ins></pre>
-
-<blockquote>
-<p>
-<ins>Let <i>CT</i> be <tt>decay&lt;common_type&lt;Args...&gt;::type&gt;::type</tt>.</ins>
-</p>
-<p>
-<ins><i>Returns:</i> An <tt>array&lt;<i>CT</i>, sizeof...(Args)&gt;</tt> initialized with <tt>{
-static_cast&lt;<i>CT</i>&gt;(std::forward&lt;Args&gt;(args))... }</tt>.</ins>
-</p>
-
-<p><ins>
-[<i>Example:</i>
-</ins></p>
-<blockquote><pre><ins>
-int i = 0; int&amp; ri = i;
-make_array(42u, i, 2.78, ri);
-</ins></pre></blockquote>
-<p><ins>
-returns an array of type
-</ins></p>
-<blockquote><pre><ins>
-array&lt;double, 4&gt;
-</ins></pre></blockquote>
-
-<p><ins>
-&mdash;<i>end example</i>]</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="877"></a>877. to <tt>throw()</tt> or to <i>Throw:</i> Nothing.</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-08-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-       <p>
-
-Recent changes to
-the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2691.pdf">working
-draft</a> have introduced a gratuitous inconsistency with the C++ 2003
-version of the specification with respect to exception guarantees
-provided by standard functions. While the C++ 2003 standard
-consistenly uses the empty exception specification, <tt>throw()</tt>,
-to declare functions that are guaranteed not to throw exceptions, the
-current working draft contains a number of "<i>Throws:</i> Nothing."
-clause to specify essentially the same requirement. The difference
-between the two approaches is that the former specifies the behavior
-of programs that violate the requirement (<tt>std::unexpected()</tt>
-is called) while the latter leaves the behavior undefined.
-
-       </p>
-       <p>
-
-A survey of the working draft reveals that there are a total of 209
-occurrences of <tt>throw()</tt> in the library portion of the spec,
-the majority in clause 18, a couple (literally) in 19, a handful in
-20, a bunch in 22, four in 24, one in 27, and about a dozen in D.9.
-
-       </p>
-       <p>
-
-There are also 203 occurrences of "<i>Throws:</i> Nothing." scattered
-throughout the spec.
-
-       </p>
-       <p>
-
-While sometimes there are good reasons to use the "<i>Throws:</i>
-Nothing."  approach rather than making use of <tt>throw()</tt>, these
-reasons do not apply in most of the cases where this new clause has
-been introduced and the empty exception specification would be a
-better approach.
-
-       </p>
-       <p>
-
-First, functions declared with the empty exception specification
-permit compilers to generate better code for calls to such
-functions. In some cases, the compiler might even be able to eliminate
-whole chunks of user-written code when instantiating a generic
-template on a type whose operations invoked from the template
-specialization are known not to throw. The prototypical example are
-the <tt>std::uninitialized_copy()</tt>
-and <tt>std::uninitialized_fill()</tt> algorithms where the
-entire <tt>catch(...)</tt> block can be optimized away.
-
-       </p>
-       <p>
-
-For example, given the following definition of
-the <tt>std::uninitialized_copy</tt> function template and a
-user-defined type <tt>SomeType</tt>:
-
-       </p>
-       <blockquote>
-           <pre>
-template &lt;class InputIterator, class ForwardIterator&gt;
-ForwardIterator
-uninitialized_copy (InputIterator first, InputIterator last, ForwardIterator res)
-{
-   typedef iterator_traits&lt;ForwardIterator&gt;::value_type ValueType;
-
-   ForwardIterator start = res;
-
-   try {
-       for (; first != last; ++first, ++res)
-           ::new (&amp;*res) ValueType (*first);
-   }
-   catch (...) {
-       for (; start != res; --start)
-           (&amp;*start)->~ValueType ();
-       throw;
-   }
-   return res;
-}
-
-struct SomeType {
-   SomeType (const SomeType&amp;) <ins>throw ()</ins>;
-}</pre>
-       </blockquote>
-       <p>
-
-compilers are able to emit the following efficient specialization
-of <tt>std::uninitialized_copy&lt;const SomeType*, SomeType*&gt;</tt>
-(note that the <tt>catch</tt> block has been optimized away):
-
-       </p>
-       <blockquote>
-           <pre>
-template &lt;&gt; SomeType*
-uninitialized_copy (const SomeType *first, const SomeType *last, SomeType *res)
-{
-   for (; first != last; ++first, ++res)
-       ::new (res) SomeType (*first);
-
-   return res;
-}</pre>
-       </blockquote>
-       <p>
-
-Another general example is default constructors which, when decorated
-with <tt>throw()</tt>, allow the compiler to eliminate the
-implicit <tt>try</tt> and <tt>catch</tt> blocks that it otherwise must
-emit around each the invocation of the constructor
-in <i>new-expressions</i>.
-
-       </p>
-       <p>
-
-For example, given the following definitions of
-class <tt>MayThrow</tt> and <tt>WontThrow</tt> and the two
-statements below:
-
-       </p>
-       <blockquote>
-           <pre>
-struct MayThrow {
-   MayThrow ();
-};
-
-struct WontThrow {
-   WontThrow () <ins>throw ()</ins>;
-};
-
-MayThrow  *a = new MayThrow [N];
-WontThrow *b = new WontThrow [N];</pre>
-
-       </blockquote>
-       <p>
-
-the compiler generates the following code for the first statement:
-
-       </p>
-       <blockquote>
-           <pre>
-MayThrow *a;
-{
-   MayThrow *first = operator new[] (N * sizeof (*a));
-   MayThrow *last  = first + N;
-   MayThrow *next  = first;
-   try {
-       for ( ; next != last; ++next)
-           new (next) MayThrow;
-   }
-   catch (...) {
-       for ( ; first != first; --next)
-           next->~MayThrow ();
-       operator delete[] (first);
-       throw;
-   }
-   a = first;
-}</pre>
-       </blockquote>
-       <p>
-
-but it is can generate much more compact code for the second statement:
-
-       </p>
-       <blockquote>
-           <pre>
-WontThrow *b    = operator new[] (N * sizeof (*b));
-WontThrow *last = b + N;
-for (WontThrow *next = b; next != last; ++next)
-   new (next) WontThrow;
-</pre>
-       </blockquote>
-       <p>
-
-Second, in order for users to get the maximum benefit out of the new
-<tt>std::has_nothrow_xxx</tt> traits when using standard library types
-it will be important for implementations to decorate all non throwing
-copy constructors and assignment operators with <tt>throw()</tt>. Note
-that while an optimizer may be able to tell whether a function without
-an explicit exception specification can throw or not based on its
-definition, it can only do so when it can see the source code of the
-definition. When it can't it must assume that the function may
-throw. To prevent violating the One Definition Rule,
-the <tt>std::has_nothrow_xxx</tt> trait must return the most
-pessimistic guess across all translation units in the program, meaning
-that <tt>std::has_nothrow_xxx&lt;T&gt;::value</tt> must evaluate to
-<tt>false</tt> for any <tt>T</tt> whose <tt>xxx</tt>
-(where <tt>xxx</tt> is default or copy ctor, or assignment operator)
-is defined out-of-line.
-
-       </p>
-       <p>
-
-<b>Counterarguments:</b>
-
-       </p>
-       <p>
-
-During the discussion of this issue
-on <a href="mailto:c++std-lib@accu.org">c++std-lib@accu.org</a>
-(starting with post <tt>c++std-lib-21950</tt>) the following arguments
-in favor of the "<i>Throws:</i> Nothing." style have been made.
-
-       </p>
-         <ol>
-           <li>
-
-Decorating functions that cannot throw with the empty exception
-specification can cause the compiler to generate suboptimal code for
-the implementation of the function when it calls other functions that
-aren't known to the compiler not to throw (i.e., that aren't decorated
-with <tt>throw()</tt> even if they don't actually throw). This is a
-common situation when the called function is a C or POSIX function.
-
-           </li>
-           <li>
-
-Alternate, proprietary mechanisms exist (such as
-GCC <a href="http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Function-Attributes.html#index-g_t_0040code_007bnothrow_007d-function-attribute-2160"><tt>__attribute__((nothrow))</tt></a>
-or Visual
-C++ <a href="http://msdn.microsoft.com/en-us/library/49147z04(VS.80).aspx"><tt>__declspec(nothrow)</tt></a>)
-that let implementers mark up non-throwing functions, often without
-the penalty mentioned in (1) above. The C++ standard shouldn't
-preclude the use of these potentially more efficient mechanisms.
-
-           </li>
-           <li>
-
-There are functions, especially function templates, that invoke
-user-defined functions that may or may not be
-declared <tt>throw()</tt>. Declaring such functions with the empty
-exception specification will cause compilers to generate suboptimal
-code when the user-defined function isn't also declared not to throw.
-
-           </li>
-        </ol>
-       <p>
-
-The answer to point (1) above is that implementers can (and some have)
-declare functions with <tt>throw()</tt> to indicate to the compiler
-that calls to the function can safely be assumed not to throw in order
-to allow it to generate efficient code at the call site without also
-having to define the functions the same way and causing the compiler
-to generate suboptimal code for the function definition. That is, the
-function is declared with <tt>throw()</tt> in a header but it's
-defined without it in the source file. The <tt>throw()</tt>
-declaration is suppressed when compiling the definition to avoid
-compiler errors. This technique, while strictly speaking no permitted
-by the language, is safe and has been employed in practice. For
-example, the GNU C library takes this approach. Microsoft Visual C++
-takes a similar approach by simply assuming that no function with C
-language linkage can throw an exception unless it's explicitly
-declared to do so using the language extension <tt>throw(...)</tt>.
-
-       </p>
-       <p>
-
-Our answer to point (2) above is that there is no existing practice
-where C++ Standard Library implementers have opted to make use of the
-proprietary mechanisms to declare functions that don't throw. The
-language provides a mechanism specifically designed for this
-purpose. Avoiding its use in the specification itself in favor of
-proprietary mechanisms defeats the purpose of the feature. In
-addition, making use of the empty exception specification
-inconsistently, in some areas of the standard, while conspicuously
-avoiding it and making use of the "<i>Throws:</i> Nothing." form in
-others is confusing to users.
-
-       </p>
-       <p>
-
-The answer to point (3) is simply to exercise caution when declaring
-functions and especially function templates with the empty exception
-specification. Functions that required not to throw but that may call
-back into user code are poor candidates for the empty exception
-specification and should instead be specified using "<i>Throws:</i>
-Nothing." clause.
-
-      </p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-We need someone to do an extensive review.
-</p>
-<p>
-NAD Future.
-</p>
-</blockquote>
-
-   
-   <p><b>Proposed resolution:</b></p>
-       <p>
-
-We propose two possible solutions. Our recommendation is to adopt
-Option 1 below.
-
-       </p>
-       <p>
-
-<b>Option 1:</b>
-
-       </p>
-       <p>
-
-Except for functions or function templates that make calls back to
-user-defined functions that may not be declared <tt>throw()</tt>
-replace all occurrences of the "<i>Throws:</i> Nothing." clause with
-the empty exception specification. Functions that are required not to
-throw but that make calls back to user code should be specified to
-"<i>Throw:</i> Nothing."
-
-       </p>
-       <p>
-
-<b>Option 2:</b>
-
-       </p>
-       <p>
-
-For consistency, replace all occurrences of the empty exception
-specification with a "<i>Throws:</i> Nothing." clause.
-
-       </p>
-   
-
-
-
-<hr>
-<h3><a name="933"></a>933. Unique_ptr defect</h3>
-<p><b>Section:</b> 20.8.1.2.5 [unique.ptr.single.modifiers] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-11-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.modifiers">issues</a> in [unique.ptr.single.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If we are supporting stateful deleters, we need an overload for
-<tt>reset</tt> that
-takes a deleter as well.
-</p>
-
-<blockquote><pre>
-void reset( pointer p, deleter_type d);
-</pre></blockquote>
-
-<p>
-We probably need two overloads to support move-only deleters, and
-this
-sounds uncomfortably like the two constructors I have been ignoring
-for
-now...
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard comments that we have the functionality via move-assigment.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD Future.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="935"></a>935. clock error handling needs to be specified</h3>
-<p><b>Section:</b> 20.12.7 [time.clock] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2008-11-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Each of the three clocks specified in Clocks 20.12.7 [time.clock]
-provides the member function:
-</p>
-
-<blockquote><pre>
-static time_point now();
-</pre></blockquote>
-
-<p>
-The semantics specified by Clock requirements 20.12.3 [time.clock.req]
-make no mention of error handling. Thus the function may throw <tt>bad_alloc</tt>
-or an implementation-defined exception (17.6.5.12 [res.on.exception.handling]
-paragraph 4).
-</p>
-
-<p>
-Some implementations of these functions on POSIX, Windows, and
-presumably on other operating systems, may fail in ways only detectable
-at runtime. Some failures on Windows are due to supporting chipset
-errata and can even occur after successful calls to a clock's <tt>now()</tt>
-function.
-</p>
-
-<p>
-These functions are used in cases where exceptions are not appropriate
-or where the specifics of the exception or cause of error need to be
-available to the user. See
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2828.html">N2828</a>,
-<i>Library Support for hybrid error
-handling (Rev 1)</i>, for more specific discussion of use cases. Thus some change in
-the interface of now is required.
-</p>
-
-<p>
-The proposed resolution has been implemented in the Boost version of the
-chrono library. No problems were encountered.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We recommend this issue be deferred until the next Committee Draft
-has been issued and the prerequisite paper has been accepted.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD future. Too late to make this change without having already
-accepted the hybrid error handling proposal.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Accept the proposed wording of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2828.html">N2828</a>,
-<i>Library Support for hybrid error handling (Rev 1)</i>.
-</p>
-
-<p>
-Change <tt>Clock</tt> requirements 20.12.3 [time.clock.req] as indicated:
-</p>
-
-<blockquote>
-<p>
--2- In Table 55 <tt>C1</tt> and <tt>C2</tt> denote clock types. <tt>t1</tt> and
-<tt>t2</tt> are values returned by <tt>C1::now()</tt> where the call 
-returning <tt>t1</tt> happens before (1.10) the call returning <tt>t2</tt> and
-both of these calls happen before <tt>C1::time_point::max()</tt>.
-<ins><tt>ec</tt> denotes an object of type <tt>error_code</tt> 
-(19.5.2.1 [syserr.errcode.overview]).</ins>
-</p>
-
-<table border="1">
-<caption>Table 55 &mdash; Clock requirements</caption>
-<tr>
-<th>Expression</th><th>Return type</th><th>Operational semantics</th>
-</tr>
-
-<tr>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-</tr>
-
-<tr>
-<td><tt>C1::now()</tt></td>
-<td><tt>C1::time_point</tt></td>
-<td>Returns a <tt>time_point</tt> object representing the current point in time.
-</td>
-</tr>
-
-<tr>
-<td><tt><ins>C1::now(ec)</ins></tt></td>
-<td><tt><ins>C1::time_point</ins></tt></td>
-<td><ins>Returns a <tt>time_point</tt> object representing the current point in time.</ins>
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Change class <tt>system_clock</tt> 20.12.7.1 [time.clock.system] as indicated:
-</p>
-
-<blockquote><pre>
-static time_point now(<ins>error_code&amp; ec=throws()</ins>);
-</pre></blockquote>
-
-<p>
-Change class <tt>monotonic_clock</tt> X [time.clock.monotonic] as indicated:
-</p>
-
-<blockquote><pre>
-static time_point now(<ins>error_code&amp; ec=throws()</ins>);
-</pre></blockquote>
-
-<p>
-Change class <tt>high_resolution_clock</tt> 20.12.7.3 [time.clock.hires] as indicated:
-</p>
-
-<blockquote><pre>
-static time_point now(<ins>error_code&amp; ec=throws()</ins>);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="936"></a>936. Mutex type overspecified</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2008-12-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-active.html#961">961</a></p>
-<p><b>Discussion:</b></p>
-
-
-
-<p>
-30.4.1 [thread.mutex.requirements] describes the requirements for a type to be
-a "Mutex type". A Mutex type can be used as the template argument for
-the <tt>Lock</tt> type that's passed to <tt>condition_variable_any::wait</tt> (although
-<tt>Lock</tt> seems like the wrong name here, since <tt>Lock</tt> is given a different
-formal meaning in 30.4.2 [thread.lock]) and, although the WD doesn't quite say
-so, as the template argument for <tt>lock_guard</tt> and <tt>unique_lock</tt>.
-</p>
-
-<p>
-The requirements for a Mutex type include:
-</p>
-
-<ul>
-<li>
-<tt>m.lock()</tt> shall be well-formed and have [described] semantics, including a return type of <tt>void</tt>.
-</li>
-<li>
-<tt>m.try_lock()</tt> shall be well-formed and have [described] semantics, including a return type of <tt>bool</tt>.
-</li>
-<li>
-<tt>m.unlock()</tt> shall be well-formed and have [described] semantics, including a return type of <tt>void</tt>.
-</li>
-</ul>
-
-<p>
-Also, a Mutex type "shall not be copyable nor movable".
-</p>
-
-<p>
-The latter requirement seems completely irrelevant, and the three
-requirements on return types are tighter than they need to be. For
-example, there's no reason that <tt>lock_guard</tt> can't be instantiated with a
-type that's copyable. The rule is, in fact, that <tt>lock_guard</tt>, etc. won't
-try to copy objects of that type. That's a constraint on locks, not on
-mutexes. Similarly, the requirements for <tt>void</tt> return types are
-unnecessary; the rule is, in fact, that <tt>lock_guard</tt>, etc. won't use any
-returned value. And with the return type of <tt>bool</tt>, the requirement should
-be that the return type is convertible to <tt>bool</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Move to open. Related to conceptualization and should probably be tackled as part of that.
-</p>
-<ul>
-<li>
-The intention is not only to place a constraint on what types such as
-<tt>lock_guard</tt> may do with mutex types, but on what any code, including user
-code, may do with mutex types. Thus the constraints as they are apply to
-the mutex types themselves, not the current users of mutex types in the
-standard.
-</li>
-<li>
-This is a low priority issue; the wording as it is may be overly
-restrictive but this may not be a real issue.
-</li>
-</ul>
-</blockquote>
-
-<p><i>[
-Post Summit Anthony adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Section 30.4.1 [thread.mutex.requirements] conflates the
-requirements on a generic Mutex type (including user-supplied mutexes)
-with the requirements placed on the standard-supplied mutex types in an
-attempt to group everything together and save space.
-</p>
-<p>
-When applying concepts to chapter 30, I suggest that the concepts
-<tt>Lockable</tt> and <tt>TimedLockable</tt> embody the requirements for
-*use* of a mutex type as required by
-<tt>unique_lock/lock_guard/condition_variable_any</tt>. These should be
-relaxed as Pete describes in the issue. The existing words in 30.4.1 [thread.mutex.requirements] are requirements on all of
-<tt>std::mutex</tt>, <tt>std::timed_mutex</tt>,
-<tt>std::recursive_mutex</tt> and <tt>std::recursive_timed_mutex</tt>,
-and should be rephrased as such.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="961"></a>961. Various threading bugs #11</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-active.html#936">936</a></p>
-<p><b>Discussion:</b></p>
-<p>
-30.4.1 [thread.mutex.requirements] describes required member
-functions of mutex types, and requires that they throw exceptions under
-certain circumstances. This is overspecified. User-defined types can
-abort on such errors without affecting the operation of templates
-supplied by standard-library.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Move to open. Related to conceptualization and should probably be
-tackled as part of that.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-Would be OK to leave it as is for time constraints, could loosen later.
-</p>
-
-<p>
-Mark as NAD Future.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1025"></a>1025. The library should provide more specializations for <tt>std::hash</tt></h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 208 [CD1]</b></p>
-
-<p>
-<tt>std::hash</tt> should be implemented for much more of the standard
-library. In particular for <tt>pair</tt>, <tt>tuple</tt> and all the
-standard containers.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1031"></a>1031. Need <tt>shared_ptr</tt> conversion to a <tt>unique_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 78 [CD1]</b></p>
-
-<p>
-There is presently no way to convert directly from a <tt>shared_ptr</tt> to a
-<tt>unique_ptr</tt>. Add an interface that performs the conversion. 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-We look forward to a paper on this topic. We recommend no action until a
-paper is available. We believe that the shared pointer must use the default
-deleter for the conversion to succeed.
-</p></blockquote>
-
-<p><i>[
-Peter Dimov adds:
-]</i></p>
-
-
-<blockquote><p>
-This is basically a request for <tt>shared_ptr&lt;&gt;::release</tt> in
-disguise, with all the associated problems. Not a good idea.
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-The rationale for the omission of a release() member function from shared_ptr is given in:
-<a href="http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/shared_ptr.htm">http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/shared_ptr.htm</a>
-</p>
-<p>
-The implementation of such a member is non-trivial (and maybe
-impossible), because it would need to account for the deleter.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-26 Howard sets to Tentatively NAD Future.
-]</i></p>
-
-
-<blockquote>
-<p>
-I took an online poll and got 3 votes for NAD and 3 for NAD Future.  Personally
-I prefer NAD Future as this does refer to an extension that could conceivably be
-considered beyond C++0X.
-</p>
-
-<p>
-However such an extension would need to solve a couple of problems:
-</p>
-
-<ol>
-<li>What is the interface for such a conversion when the <tt>shared_ptr</tt> does
-not have unique ownership?  Throw an exception?  Create a null <tt>unique_ptr</tt>?
-Undefined behavior?
-</li>
-
-<li>
-<p>
-How does one handle custom deleters given to the <tt>shared_ptr</tt> constructor?
-</p>
-<p>
-I do not believe it is possible to implement a general answer to this question.
-The <tt>shared_ptr</tt> deleter is a run time (or construction time) characteristic.
-The <tt>unique_ptr</tt> deleter is a compile time characteristic.  In general one
-can not know to what type of <tt>unqiue_ptr</tt> you are converting to.
-</p>
-<p>
-One answer is for the user of the conversion to specify the deleter type and perhaps
-throw an exception if the specification turns out to be incorrect.
-</p>
-<p>
-Another answer is for the conversion to only be valid when the underlying deleter
-is <tt>default_delete</tt>.  We would probalby need to specify that this is indeed the
-underlying deleter of a <tt>shared_ptr</tt> when a custom deleter is not given in
-the constructor.
-</p>
-</li>
-</ol>
-
-<p>
-At any rate, there are non-trivial design issues which would need to be implemented
-and tested in the field for usability prior to standardization.
-</p>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Future.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1041"></a>1041. Add associative/unordered container functions that allow to extract elements</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 239 [CD1]</b></p>
-
-<p>
-It is not possible to take a move-only key out of an unordered
-container, such as (<tt>multi</tt>)<tt>set</tt> or
-(<tt>multi</tt>)<tt>map</tt>, or the new unordered containers.
-</p>
-
-<p>
-Add below <tt>a.erase(q)</tt>, <tt>a.extract(q)</tt>, with the following notation:
-</p>
-<p>
-<tt>a.extract(q)></tt>, Return type <tt>pair&lt;key, iterator&gt;</tt>
-Extracts the element pointed to by <tt>q</tt> and erases it from the
-<tt>set</tt>. Returns a <tt>pair</tt> containing the value pointed to by
-<tt>q</tt> and an <tt>iterator</tt> pointing to the element immediately
-following <tt>q</tt> prior to the element being erased. If no such
-element exists,returns <tt>a.end()</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-We look forward to a paper on this topic. We recommend no action until a
-paper is available. The paper would need to address exception safety.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Would <tt>value_type</tt> be a better return type than <tt>key_type</tt>?
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open. Alisdair to contact Chris Jefferson about this.
-</p></blockquote>
-
-<p><i>[
-2009-09-20 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-See the 2009-09-19 comment of <a href="lwg-active.html#839">839</a> for an API which
-accomplishes this functionality and also addresses several other use
-cases which this proposal does not.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD Future. No consensus to make the change at this time.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.2.4 [associative.reqmts] Table 85, add:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 85 --  Associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a.erase(q)</tt></td>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-</tr>
-<tr>
-<td><ins><tt>a.extract(q)</tt></ins></td>
-<td><ins><tt>pair&lt;key_type, iterator&gt;</tt></ins></td>
-<td><ins>Extracts the element pointed to by <tt>q</tt> and erases it from the <tt>set</tt>. 
-Returns a <tt>pair</tt> containing the value pointed to by <tt>q</tt> and an <tt>iterator</tt>
-pointing to the element immediately following <tt>q</tt> prior to the element being
-erased. If no such element 
-exists, returns <tt>a.end()</tt>.</ins></td>
-<td><ins>amortized constant</ins></td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-In 23.2.5 [unord.req] Table 87, add:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 -- Unordered associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a.erase(q)</tt></td>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-</tr>
-<tr>
-<td><ins><tt>a.extract(q)</tt></ins></td>
-<td><ins><tt>pair&lt;key_type, iterator&gt;</tt></ins></td>
-<td><ins>Extracts the element pointed to by <tt>q</tt> and erases it from the <tt>set</tt>. 
-Returns a <tt>pair</tt> containing the value pointed to by <tt>q</tt> and an <tt>iterator</tt>
-pointing to the element immediately following <tt>q</tt> prior to the element being
-erased. If no such element 
-exists, returns <tt>a.end()</tt>.</ins></td>
-<td><ins>amortized constant</ins></td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1052"></a>1052. <tt>reverse_iterator::operator-&gt;</tt> should also support smart pointers</h3>
-<p><b>Section:</b> 24.5.1.3.5 [reverse.iter.opref] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iter.opref">issues</a> in [reverse.iter.opref].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 281 [CD1]</b></p>
-
-<p>
-The current specification for return value for <tt>reverse_iterator::operator-&gt;</tt>
-will always be a true pointer type, but <tt>reverse_iterator</tt> supports proxy
-iterators where the pointer type may be some kind of 'smart pointer'.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>move_iterator</tt> avoids this problem by returning a value of the wrapped
-Iterator type.
-study group formed to come up with a suggested resolution.
-</p>
-<p>
-<tt>move_iterator</tt> solution shown in proposed wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Howard to deconceptize. Move to Review after that happens.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard deconceptized:
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-We can't think of any reason we can't just define reverse
-iterator's pointer types to be the same as the underlying iterator's
-pointer type, and get it by calling the right arrow directly.
-</p>
-<p>
-Here is the proposed wording that was replaced:
-</p>
-<blockquote><pre>
-template &lt;class Iterator&gt; 
-class reverse_iterator { 
-  ...
-  typedef <del>typename iterator_traits&lt;</del>Iterator<del>&gt;::pointer</del> pointer;
-</pre></blockquote>
-
-<p>
-Change 24.5.1.3.5 [reverse.iter.opref]:
-</p>
-
-<blockquote><pre>
-pointer operator-&gt;() const;
-</pre>
-<blockquote><p>
-<i>Returns:</i>
-</p><blockquote><pre>
-<del>&amp;(operator*());</del>
-<ins>this-&gt;tmp = current;</ins>
-<ins>--this-&gt;tmp;</ins>
-<ins>return this-&gt;tmp;</ins>
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-03-03 Daniel opens:
-]</i></p>
-
-
-<blockquote>
-<ol>
-
-<li>
-There is a minor problem with the exposition-only declaration of the private
-member <tt>deref_tmp</tt> which is modified in a const member function (and the
-same problem occurs in the specification of <tt>operator*</tt>). The fix is to
-make it a mutable member.
-</li>
-
-<li>
-<p>
-The more severe problem is that the resolution for some reasons
-does not explain in the rationale why it was decided to differ from
-the suggested fix (using <tt>deref_tmp</tt> instead of <tt>tmp</tt>) in the
-[ 2009-10 Santa Cruz] comment:
-</p>
-
-<blockquote><pre>
-this-&gt;deref_tmp = current;
---this-&gt;deref_tmp;
-return this-&gt;deref_tmp;
-</pre></blockquote>
-
-<p>
-combined with the change of
-</p>
-
-<blockquote><pre>
-typedef typename iterator_traits&lt;Iterator&gt;::pointer pointer;
-</pre></blockquote>
-
-<p>
-to
-</p>
-
-<blockquote><pre>
-typedef Iterator pointer;
-</pre></blockquote>
-
-<p>
-The problem of the agreed on wording is that the following rather
-typical example, that compiled with the wording before 1052 had
-been applied, won't compile anymore:
-</p>
-
-<blockquote><pre>
-#include &lt;iterator&gt;
-#include &lt;utility&gt;
-
-int main() {
-  typedef std::pair&lt;int, double&gt; P;
-  P op;
-  std::reverse_iterator&lt;P*&gt; ri(&amp;op + 1);
-  ri-&gt;first; // Error
-}
-</pre></blockquote>
-
-<p>
-Comeau online returns (if a correspondingly changed
-<tt>reverse_iterator</tt> is used):
-</p>
-
-<blockquote><pre>
-"error: expression must have class type
-     return deref_tmp.operator-&gt;();
-            ^
-         detected during instantiation of "Iterator
-                   reverse_iterator&lt;Iterator&gt;::operator-&gt;() const [with
-                   Iterator=std::pair&lt;int, double&gt; *]""
-</pre></blockquote>
-
-<p>
-Thus the change will break valid, existing code based
-on <tt>std::reverse_iterator</tt>.
-</p>
-
-</li>
-
-</ol>
-
-<p>
-IMO the suggestion proposed in the comment is a necessary fix, which harmonizes
-with the similar specification of <tt>std::move_iterator</tt> and properly
-reflects the recursive nature of the evaluation of <tt>operator-&gt;</tt>
-overloads.
-</p>
-
-<p>
-Suggested resolution:
-</p>
-
-<ol>
-
-<li>
-<p>
-In the class template <tt>reverse_iterator</tt> synopsis of 24.5.1.1 [reverse.iterator] 
-change as indicated:
-</p>
-
-<blockquote><pre>
-namespace std {
-template &lt;class Iterator&gt;
-class reverse_iterator : public
-             iterator&lt;typename iterator_traits&lt;Iterator&gt;::iterator_category,
-             typename iterator_traits&lt;Iterator&gt;::value_type,
-             typename iterator_traits&lt;Iterator&gt;::difference_type,
-             <del>typename iterator_traits&lt;</del>Iterator<del>&gt;::pointer</del>,
-             typename iterator_traits&lt;Iterator&gt;::reference&gt; {
-public:
-  [..]
-  typedef <del>typename iterator_traits&lt;</del>Iterator<del>&gt;::pointer</del> pointer;
-  [..]
-protected:
-  Iterator current;
-private:
-  <ins>mutable</ins> Iterator deref_tmp; // exposition only
-};
-</pre></blockquote>
-</li>
-
-<li>
-Change 24.5.1.3.5 [reverse.iter.opref]/1 as indicated:
-
-<blockquote><pre>
-pointer operator-&gt;() const;
-</pre>
-
-<blockquote><p>
-1 <i><del>Returns</del> <ins>Effects</ins>:</i> <del><tt>&amp;(operator*())</tt>.</del>
-</p><blockquote><pre>
-<ins>deref_tmp = current;</ins>
-<ins>--deref_tmp;</ins>
-<ins>return deref_tmp;</ins>
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-</li>
-
-</ol>
-
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-We prefer to make to use a local variable instead of <tt>deref_tmp</tt> within
-<tt>operator-&gt;()</tt>.  And although this means that the <tt>mutable</tt>
-change is no longer needed, we prefer to keep it because it is needed for
-<tt>operator*()</tt> anyway.
-</p>
-
-<p>
-Here is the proposed wording that was replaced:
-</p>
-
-<blockquote class="note">
-<p>
-Change 24.5.1.3.5 [reverse.iter.opref]:
-</p>
-
-<blockquote><pre>
-pointer operator-&gt;() const;
-</pre>
-
-<blockquote><p>
-<i>Returns:</i>
-</p><blockquote><pre>
-<del>&amp;(operator*());</del>
-<ins>deref_tmp = current;
---deref_tmp;
-return deref_tmp::operator-&gt;();</ins>
-</pre></blockquote>
-
-</blockquote>
-</blockquote>
-
-
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-03-10 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Here are three tests that the current proposed wording passes, and no
-other solution I've seen passes all three:
-</p>
-
-<ol>
-<li>
-<p>
-Proxy pointer support:
-</p>
-<blockquote><pre>
-#include &lt;iterator&gt;
-#include &lt;cassert&gt;
-
-struct X { int m; };
-
-X x;
-
-struct IterX {
-    typedef std::bidirectional_iterator_tag iterator_category;
-    typedef X&amp; reference;
-    struct pointer
-    {
-        pointer(X&amp; v) : value(v) {}
-        X&amp; value;
-        X* operator-&gt;() const {return &amp;value;}
-    };
-    typedef std::ptrdiff_t difference_type;
-    typedef X value_type;
-    // additional iterator requirements not important for this issue
-    
-    reference operator*() const { return x; }
-    pointer operator-&gt;() const { return pointer(x); }
-    IterX&amp; operator--() {return *this;}
-
-};
-
-int main()
-{
-    std::reverse_iterator&lt;IterX&gt; ix;
-    assert(&amp;ix-&gt;m == &amp;(*ix).m);
-}
-</pre></blockquote>
-</li>
-<li>
-<p>
-Raw pointer support:
-</p>
-<blockquote><pre>
-#include &lt;iterator&gt;
-#include &lt;utility&gt;
-
-int main() {
-  typedef std::pair&lt;int, double&gt; P;
-  P op;
-  std::reverse_iterator&lt;P*&gt; ri(&amp;op + 1);
-  ri-&gt;first; // Error
-}
-</pre></blockquote>
-</li>
-<li>
-<p>
-Caching iterator support:
-</p>
-<blockquote><pre>
-#include &lt;iterator&gt;
-#include &lt;cassert&gt;
-
-struct X { int m; };
-
-struct IterX {
-    typedef std::bidirectional_iterator_tag iterator_category;
-    typedef X&amp; reference;
-    typedef X* pointer;
-    typedef std::ptrdiff_t difference_type;
-    typedef X value_type;
-    // additional iterator requirements not important for this issue
-    
-    reference operator*() const { return value; }
-    pointer operator-&gt;() const { return &amp;value; }
-    IterX&amp; operator--() {return *this;}
-
-private:
-    mutable X value;
-};
-
-int main()
-{
-    std::reverse_iterator&lt;IterX&gt; ix;
-    assert(&amp;ix-&gt;m == &amp;(*ix).m);
-}
-</pre></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Future, rationale added.
-</p></blockquote>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The LWG did not reach a consensus for a change to the WP.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-
-<li>
-<p>
-In the class template <tt>reverse_iterator</tt> synopsis of 24.5.1.1 [reverse.iterator] change as indicated:
-</p>
-
-<blockquote><pre>
-namespace std {
-template &lt;class Iterator&gt;
-class reverse_iterator : public
-             iterator&lt;typename iterator_traits&lt;Iterator&gt;::iterator_category,
-             typename iterator_traits&lt;Iterator&gt;::value_type,
-             typename iterator_traits&lt;Iterator&gt;::difference_type,
-             <del>typename iterator_traits&lt;</del>Iterator<ins>&amp;</ins><del>&gt;::pointer</del>,
-             typename iterator_traits&lt;Iterator&gt;::reference&gt; {
-public:
-  [..]
-  typedef <del>typename iterator_traits&lt;</del>Iterator<ins>&amp;</ins><del>&gt;::pointer</del> pointer;
-  [..]
-protected:
-  Iterator current;
-private:
-  <ins>mutable</ins> Iterator deref_tmp; // exposition only
-};
-</pre></blockquote>
-</li>
-
-<li>
-Change 24.5.1.3.5 [reverse.iter.opref]/1 as indicated:
-
-<blockquote><pre>
-pointer operator-&gt;() const;
-</pre>
-
-<blockquote><p>
-1 <i><del>Returns</del> <ins>Effects</ins>:</i> <del><tt>&amp;(operator*())</tt>.</del>
-</p><blockquote><pre>
-<ins>deref_tmp = current;</ins>
-<ins>--deref_tmp;</ins>
-<ins>return deref_tmp;</ins>
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1053"></a>1053. Unify algorithms with operator and function object variants</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 295 [CD1]</b></p>
-
-<p>
-There is a level of redundancy in the library specification for many
-algorithms that can be eliminated with the combination of concepts and
-default parameters for function templates. Eliminating redundancy simplified
-specification and reduces the risk of introducing accidental
-inconsistencies.
-</p>
-<p>
-Proposed resolution: Adopt
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2743.pdf">N2743</a>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-NAD, this change would break code that takes the address of an algorithm.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Request 'Open'.  The issues in the paper go beyond just reducing
-the number of signatures, but cover unifying the idea of the ordering
-operation used by algorithms, containers and other library components.  At
-least, it takes a first pass at the problem.
-</p>
-
-<p>
-For me (personally) that was the more important part of the paper, and not
-clearly addressed by the Summit resolution.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Too inventive, too late, would really need a paper. Moved to NAD Future.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1112"></a>1112. bitsets and new style for loop</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>std::bitset</tt> is a homogeneous container-like sequence of bits, yet it does
-not model the Range concept so cannot be used with the new for-loop syntax.
-It is the only such type in the library that does NOT support the new for
-loop.
-</p>
-<p>
-The obvious reason is that bitset does not support iterators.
-</p>
-<p>
-At least two reasonable solutions are available:
-</p>
-<ol style="list-style-type:lower-roman">
-<li>
-Add an iterator interface to <tt>bitset</tt>, bringing its interface close to that
-of <tt>std::array</tt>
-</li>
-<li>
-Provide an unspecified concept_map for <tt>Range&lt;bitset&gt;</tt>.
-</li>
-</ol>
-<p>
-The latter will still need some kind of iterator-like adapter for <tt>bitset</tt>,
-but gives implementers greater freedom on the details. E.g. begin/end return
-some type that simply invokes <tt>operator[]</tt> on the object it wraps, and
-increments its index on <tt>operator++</tt>.  A vendor can settle for <tt>InputIterator</tt>
-support, rather than wrapping up a full <tt>RandomAccessIterator</tt>.
-</p>
-<p>
-I have a mild preference for option (ii) as I think it is less work to
-specify at this stage of the process, although (i) is probably more useful
-in the long run.
-</p>
-<p>
-Hmm, my wording looks a little woolly, as it does not say what the element
-type of the range is.  Do I get a range of <tt>bool</tt>, <tt>bitset&lt;N&gt;::reference</tt>, or
-something else entirely?
-</p>
-<p>
-I guess most users will assume the behaviour of reference, but expect to
-work with <tt>bool</tt>.  <tt>Bool</tt> is OK for read-only traversal, but you really need to
-take a reference to a <tt>bitset::reference</tt> if you want to write back.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open.
-We further recommend this be deferred until after the next Committee Draft.
-</p></blockquote>
-
-<p><i>[
-2009-05-25 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I just stumbled over the <tt>Range concept_map</tt> for <tt>valarray</tt> and this should
-probably set the precedent on how to write the wording.
-</p>
-
-<p><i>[
-Howard: I've replaced the proposed wording with Alisdair's suggestion.
-]</i></p>
-
-
-</blockquote>
-
-<p><i>[
-2009-07-24 Daniel modifies the proposed wording for non-concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as Tentatively NAD Future due to the loss of concepts.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-All concepts-related text has been removed from the draft.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Modify the section 20.6 [template.bitset] <tt>&lt;bitset&gt;</tt> synopsis by adding
-the following at the end of the synopsis:
-</p>
-<blockquote><pre>
-<ins>
-// XX.X.X bitset range access [bitset.range]
-template&lt;size_t N&gt; <i>unspecified-1</i> begin(bitset&lt;N&gt;&amp;);
-template&lt;size_t N&gt; <i>unspecified-2</i> begin(const bitset&lt;N&gt;&amp;);
-template&lt;size_t N&gt; <i>unspecified-1</i> end(bitset&lt;N&gt;&amp;);
-template&lt;size_t N&gt; <i>unspecified-2</i> end(const bitset&lt;N&gt;&amp;);
-</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-Add a new section <ins>"bitset range access" [bitset.range]</ins>
-after the current section 20.6.4 [bitset.operators] with the following series of
-paragraphs:
-</p>
-<blockquote>
-<p>
-<ins>
-1.  In the <tt>begin</tt> and <tt>end</tt> function templates that follow, <i>unspecified-1</i>
-is a type that meets the requirements of a mutable random access
-iterator (24.2.7 [random.access.iterators]) whose <tt>value_type</tt> is <tt>bool</tt> and
-whose reference type is <tt>bitset&lt;N&gt;::reference</tt>.
-<i>unspecified-2</i> is a type that meets the requirements of a constant
-random access iterator (24.2.7 [random.access.iterators]) whose <tt>value_type</tt>
-is <tt>bool</tt> and whose reference type is <tt>bool</tt>.
-</ins>
-</p>
-<pre>
-<ins>
-template&lt;size_t N&gt; <i>unspecified-1</i> begin(bitset&lt;N&gt;&amp;);
-template&lt;size_t N&gt; <i>unspecified-2</i> begin(const bitset&lt;N&gt;&amp;);
-</ins>
-</pre>
-<blockquote><p>
-<ins>2.  Returns: an iterator referencing the first bit in the bitset.</ins>
-</p></blockquote>
-
-<pre><ins>
-template&lt;size_t N&gt; <i>unspecified-1</i> end(bitset&lt;N&gt;&amp;);
-template&lt;size_t N&gt; <i>unspecified-2</i> end(const bitset&lt;N&gt;&amp;);
-</ins></pre>
-
-<blockquote><p>
-<ins>3.  Returns: an iterator referencing one past the last bit in the
-bitset.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1120"></a>1120. New type trait - remove_all</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Sometimes it is necessary to remove all qualifiers from a type before
-passing on to a further API.  A good example would be calling the
-<tt>tuple</tt> query APIs <tt>tuple_size</tt> or <tt>tuple_element</tt>
-with a deduced type inside a function template.  If the deduced type is
-cv-qualified or a reference then the call will fail.  The solution is to
-chain calls to
-<tt>remove_cv&lt;remove_reference&lt;T&gt;::type&gt;::type</tt>, and
-note that the order matters.
-</p>
-<p>
-Suggest it would be helpful to add a new type trait,
-<tt>remove_all</tt>, that removes all top-level qualifiers from a type
-i.e. cv-qualification and any references.  Define the term in such a way
-that if additional qualifiers are added to the language, then
-<tt>remove_all</tt> is defined as stripping those as well.
-</p>
-
-<p><i>[
-2009-10-14 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-<tt>remove_all</tt> seems too generic, a possible alternative matching
-the current naming style could be <tt>remove_cv_reference</tt> or
-<tt>remove_reference_cv</tt>. It should also be considered whether this
-trait should also remove 'extents', or pointer 'decorations'. Especially
-if the latter situations are considered as well, it might be easier to
-chose the name not in terms of what it <em>removes</em> (which might be
-a lot), but in terms of it <em>creates</em>. In this case I could think
-of e.g. <tt>extract_value_type</tt>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1121"></a>1121. Support for multiple arguments</h3>
-<p><b>Section:</b> 20.11.4 [ratio.arithmetic] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.arithmetic">issues</a> in [ratio.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Both add and multiply could sensibly be called with more than two arguments.
-The variadic template facility makes such declarations simple, and is likely
-to be frequently wrapped by end users if we do not supply the variant
-ourselves.
-</p>
-<p>
-We deliberately ignore divide at this point as it is not transitive.
-Likewise, subtract places special meaning on the first argument so I do not
-suggest extending that immediately.  Both could be supported with analogous
-wording to that for add/multiply below.
-</p>
-<p>
-Note that the proposed resolution is potentially incompatible with that
-proposed for <a href="lwg-defects.html#921">921</a>, although the addition of the typedef to ratio would be
-equally useful.
-</p>
-
-<p><i>[
-2009-10-30 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The consensus of the group when we reviewed this in Santa Cruz was that
-<a href="lwg-defects.html#921">921</a> would proceed to Ready as planned, and the
-multi-paramater add/multiply templates should be renamed as
-<tt>ratio_sum</tt> and <tt>ratio_product</tt> to avoid the problem
-mixing template aliases with partial specializations.
-</p>
-
-<p>
-It was also suggested to close this issue as NAD Future as it does not
-correspond directly to any NB comment.  NBs are free to submit a
-specific comment (and re-open) in CD2 though.
-</p>
-
-<p>
-Walter Brown also had concerns on better directing the order of
-evaluation to avoid overflows if we do proceed for 0x rather than TR1,
-so wording may not be complete yet.
-</p>
-
-<p><i>[
-Alisdair updates wording.
-]</i></p>
-
-
-</blockquote>
-
-<p><i>[
-2009-10-30 Howard:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD Future after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Does not have sufficient support at this time. May wish to reconsider for a
-future standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add the following type traits to p3 20.11 [ratio]
-</p>
-
-<blockquote><pre>
-// ratio arithmetic
-template &lt;class R1, class R2&gt; struct ratio_add;
-template &lt;class R1, class R2&gt; struct ratio_subtract;
-template &lt;class R1, class R2&gt; struct ratio_multiply;
-template &lt;class R1, class R2&gt; struct ratio_divide;
-<ins>template &lt;class R1, class ... RList&gt; struct ratio_sum;</ins>
-<ins>template &lt;class R1, class ... RList&gt; struct ratio_product;</ins>
-</pre></blockquote>
-
-<p>
-after 20.11.4 [ratio.arithmetic] p1: add
-</p>
-
-<blockquote><pre>
-template &lt;class R1, class ... RList&gt; struct ratio_sum; // declared, never defined
-
-template &lt;class R1&gt; struct ratio_sum&lt;R1&gt; : R1 {};
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> <tt>R1</tt> is a specialization of class template <tt>ratio</tt>
-</p></blockquote>
-
-<pre>
-template &lt;class R1, class R2, class ... RList&gt; 
- struct ratio_sum&lt;R1, R2, RList...&gt;
-   : ratio_add&lt; R1, ratio_sum&lt;R2, RList...&gt;&gt; {
-};
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> <tt>R1</tt> and each element in parmater pack
-<tt>RList</tt> is a specialization of class template <tt>ratio</tt>
-</p></blockquote>
-</blockquote>
-
-<p>
-after 20.11.4 [ratio.arithmetic] p3: add
-</p>
-
-<blockquote><pre>
-template &lt;class R1, class ... RList&gt; struct ratio_product; // declared, never defined
-
-template &lt;class R1&gt; struct ratio_product&lt;R1&gt; : R1 {};
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> <tt>R1</tt> is a specialization of class template <tt>ratio</tt>
-</p></blockquote>
-
-<pre>
-template &lt;class R1, class R2, class ... RList&gt; 
- struct ratio_sum&lt;R1, R2, RList...&gt;
-   : ratio_add&lt; R1, ratio_product&lt;R2, RList...&gt;&gt; {
-};
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> <tt>R1</tt> and each element in parmater pack
-<tt>RList</tt> is a specialization of class template <tt>ratio</tt>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1150"></a>1150. wchar_t, char16_t and char32_t filenames</h3>
-<p><b>Section:</b> 27.9.1.14 [fstream] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 73</b></p>
-
-   <p><b>Description</b></p>
-        <p>It is a problem
-        from C++98, <tt>fstream</tt> cannot appoint a filename of wide
-        character string(<tt>const wchar_t</tt> and <tt>const wstring&amp;</tt>).</p>
-<p><b>Suggestion</b></p>
-        <p>Add
-        interface corresponding to <tt>wchar_t</tt>, <tt>char16_t</tt> and <tt>char32_t</tt>.</p>
-
-<p><i>[
-2009-07-01 Alisdair notes that this is a duplicate of <a href="lwg-closed.html#454">454</a> which has more
-in-depth rationale.
-]</i></p>
-
-
-<p><i>[
-2009-09-21 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-I suggest to mark this issue as NAD Future with the intend to
-solve the issue with a single file path c'tor template assuming
-a provision of a TR2 filesystem library.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.  This is a duplicate of <a href="lwg-closed.html#454">454</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1154"></a>1154. <tt>complex</tt> should accept integral types</h3>
-<p><b>Section:</b> 26.4 [complex.numbers] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#complex.numbers">active issues</a> in [complex.numbers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.numbers">issues</a> in [complex.numbers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses FR 35</b></p>
-
-<p><b>Description</b></p>
-        <p>Instantiations of the class
-        template <tt>complex&lt;&gt;</tt> have to be allowed for integral
-        types, to reflect existing practice and ISO standards
-        (LIA-III).</p>
-        
-<p><b>Suggestion</b></p>
-
-<p><i>[
-2009-10-26 Proposed wording in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3002.pdf">N3002</a>.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Future.  Rationale added.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-There is no consensus for making this change at this time.
-</p>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Adopt
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3002.pdf">N3002</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1169"></a>1169. <tt>num_get</tt> not fully compatible with <tt>strto*</tt></h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Cosmin Truta <b>Opened:</b> 2009-07-04 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As specified in the latest draft,
-<a 
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>,
-<code>num_get</code> is still not fully compatible with the following C
-functions: <code>strtoul</code>, <code>strtoull</code>, 
-<code>strtof</code> and
-<code>strtod</code>.
-</p>
-<p>
-In C, when conversion of a string to an unsigned integer type falls 
-outside the
-representable range, <code>strtoul</code> and <code>strtoull</code> return
-<code>ULONG_MAX</code> and <code>ULLONG_MAX</code>, respectively, 
-regardless
-whether the input field represents a positive or a negative value.
-On the other hand, the result of <code>num_get</code> conversion of 
-negative
-values to unsigned integer types is zero. This raises a compatibility 
-issue.
-</p>
-<p>
-Moreover, in C, when conversion of a string to a floating-point type falls
-outside the representable range, <code>strtof</code>, <code>strtod</code> 
-and
-<code>strtold</code> return <code>&plusmn;HUGE_VALF</code>,
-<code>&plusmn;HUGE_VAL</code> and <code>&plusmn;HUGE_VALL</code>, respectively.
-On the other hand, the result of <code>num_get</code> conversion of such
-out-of-range floating-point values results in the most positive/negative
-representable value.
-Although many C library implementations do implement <code>HUGE_VAL</code>
-(etc.) as the highest representable (which is, usually, the infinity), 
-this isn't required by the C standard. The C library specification makes no
-statement regarding the value of <code>HUGE_VAL</code> and friends, which
-potentially raises the same compatibility issue as in the above case of
-unsigned integers.
-In addition, neither C nor C++ define symbolic constants for the maximum
-representable floating-point values (they only do so only for the maximum
-representable <i>finite</i> floating-point values), which raises a 
-usability
-issue (it would be hard for the programmer to check the result of
-<code>num_get</code> against overflow).
-</p>
-<p>
-As such, we propose to adjust the specification of <code>num_get</code> to
-closely follow the behavior of all of its underlying C functions.
-</p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Some concern that this is changing the specification for an existing C++03 function, but it was 
-pointed out that this was underspecified as resolved by issue 23.  This is clean-up for that 
-issue in turn. Some concern that we are trying to solve the same problem in both clause 22 and 27.
-</p>
-<p>
-Bill: There's a change here as to whether val is stored to in an error case.
-</p>
-<p>
-Pablo: Don't think this changes whether val is stored to or not, but changes the value that is stored.
-</p>
-<p>
-Bill: Remembers having skirmishes with customers and testers as to whether val is stored to, and the resolution was not to store in error cases.
-</p>
-<p>
-Howard: Believes since C++03 we made a change to always store in overflow.
-</p>
-<p>
-Everyone took some time to review the issue.
-</p>
-<p>
-Pablo: C++98 definitely did not store any value during an error condition.
-</p>
-<p>
-Dietmar: Depends on the question of what is considered an error, and whether overflow is an error or not, which was the crux of LWG 23.
-</p>
-<p>
-Pablo: Yes, but given the "zero, if the conversion function fails to convert the entire field", we are requiring every error condition to store.
-</p>
-<p>
-Bill: When did this happen?
-</p>
-<p>
-Alisdair: One of the last two or three meetings.
-</p>
-<p>
-Dietmar: To store a value in case of failure is a very bad idea.
-</p>
-<p>
-Move to Open, needs more study.
-</p>
-</blockquote>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Move to deferred</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-The proposed wording looks good, no-one sure why this was held back before.  Move to Review.
-</p>
-
-
-<p><i>[2012,Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-THe issues is what to do with <tt>-1</tt>.  Should it match 'C' or do the "sane" thing.
-A fix here changes behavior, but is probably what we want.
-</p>
-<p>
-Pablo to provide wording, with help from Howard.
-</p>
-
-<p><i>[2015-05-06 Lenexa: Move to Ready]</i></p>
-
-<p>STL: I like that this uses strtof, which I think is new in C99. that avoids truncation from using atof. I have another issue ...</p>
-<p>MC: yes LWG 2403 (stof should call strtof)</p>
-<p>PJP: the last line is horrible, you don't assign to err, you call setstate(ios_base::failbit). Ah, no, this is inside num_get so the caller does the setstate.</p>
-<p>MC: we need all these words. are they the right words?</p>
-<p>JW: I'd like to take a minute to check my impl. Technically this implies a change in behaviour (from always using strtold and checking the extracted floating point value, to using the right function). Oh, we already do exactly this.</p>
-<p>MC: Move to Ready</p>
-<p>6 in favor, none opposed, 1 abstention</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals] as follows:
-</p>
-<blockquote>
-<p>
-<b>Stage 3:</b>
-The sequence of <code>char</code>s accumulated in stage 2 (the field) is
-converted to a numeric value by the rules of one of the functions declared in
-the header <code>&lt;cstdlib&gt;</code>:
-</p>
-<ul>
-<li>For a signed integer value, the function <code>strtoll</code>.</li>
-<li>For an unsigned integer value, the function <code>strtoull</code>.</li>
-<li><ins>For a <code>float</code> value, the function
-    <code>strtof</code>.</ins></li>
-<li><ins>For a <code>double</code> value, the function
-    <code>strtod</code>.</ins></li>
-<li>For a <del>floating-point</del> <ins><code>long double</code></ins>
-    value, the function <code>strtold</code>.</li>
-</ul>
-<p>
-The numeric value to be stored can be one of:
-</p>
-<ul>
-<li>zero, if the conversion function fails to convert the entire field.
-    <del><code>ios_base::failbit</code> is assigned to <code>err</code>.</del></li>
-<li>the most positive <ins>(or negative)</ins> representable value, if
-    the field <ins>to be converted to a signed integer type</ins> represents a
-    value too large positive <ins>(or negative)</ins> to be represented in
-    <code>val</code>.
-    <del><code>ios_base::failbit</code> is assigned to <code>err</code>.</del></li>
-<li><del>the most negative representable value or zero for an unsigned integer
-    type, if the field represents a value too large negative to be represented
-    in <code>val</code>.
-    <code>ios_base::failbit</code> is assigned to <code>err</code>.</del></li>
-<li><ins>the most positive representable value, if the field to be converted to
-    an unsigned integer type represents a value that cannot be represented in
-    <code>val</code>.</ins></li>
-<li>the converted value, otherwise.</li>
-</ul>
-<p>
-The resultant numeric value is stored in <code>val</code>.
-<ins>If the conversion function fails to convert the entire field, or if the
-field represents a value outside the range of representable values,
-<code>ios_base::failbit</code> is assigned to <code>err</code>.</ins>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1173"></a>1173. "Equivalence" wishy-washiness</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue: The <tt>CopyConstructible</tt> requirements are wishy-washy.  It requires
-that the copy is "equivalent" to the original, but "equivalent" is never
-defined.
-</p>
-<p>
-I believe this to be an example of a more general lack of rigor around
-copy and assignment, although I haven't done the research to dig up all
-the instances.
-</p>
-<p>
-It's a problem because if you don't know what <tt>CopyConstructible</tt> means,
-you also don't know what it means to copy a pair of <tt>CopyConstructible</tt>
-types.  It doesn't prevent us from writing code, but it is a hole in our
-ability to understand the meaning of copy.
-</p>
-<p>
-Furthermore, I'm pretty sure that vector's copy constructor doesn't
-require the elements to be <tt>EqualityComparable</tt>, so that table is actually
-referring to some ill-defined notion of equivalence when it uses ==.
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to "Open". Dave is right that this is a big issue. Paper D2987
-("Defining Move Special Member Functions", Bjarne Stroustrup and
-Lawrence Crowl) touches on this but does not solve it. This issue is
-discussed in Elements of Programming.
-</p></blockquote>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-This issue is quite vague, so it is difficult to know if and when it has been resolved.
-John Lakos wrote a paper covering this area a while back, and there is a real interest 
-in providing some sort of clean-up in the future. We need a more clearly draughted 
-issues with an addressable set of concerns, ideally with a paper proposing a resolution, 
-but for a future revision of the standard. Move to Tentatively NAD Future.
-</p></blockquote>
-
-<p><i>[
-Moved to NAD Future at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1175"></a>1175. <tt>unordered</tt> complexity</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-07-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When I look at the <tt>unordered_*</tt> constructors, I think the complexity is poorly
-described and does not follow the style of the rest of the standard.
-</p>
-
-<p>
-The complexity for the default constructor is specified as constant.
-Actually, it is proportional to <tt>n</tt>, but there are no invocations of
-<tt>value_type</tt> constructors or other <tt>value_type</tt> operations.
-</p>
-
-<p>
-For the iterator-based constructor the complexity should be:
-</p>
-
-<blockquote><p>
-<i>Complexity:</i> exactly <tt>n</tt> calls to construct <tt>value_type</tt>
-from <tt>InputIterator::value_type</tt> (where <tt>n = distance(f,l)</tt>).
-The number of calls to <tt>key_equal::operator()</tt> is proportional to
-<tt>n</tt> in the average case and <tt>n*n</tt> in the worst case.
-</p></blockquote>
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Concern that the current wording may require O(1) where that cannot be delivered.  We need to look at 
-both the clause 23 requirements tables and the constructor description of each unordered container to be sure.
-</p>
-<p>
-Howard suggests NAD Editorial as we updated the container requirement tables since this issue was written.
-</p>
-<p>
-Daniel offers to look deeper, and hopefully produce wording addressing any outstanding concerns at the next meeting.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[2011-02-26: Daniel provides wording]</i></p>
-
-
-<p>I strongly suggest to clean-up the differences between requirement tables and individual
-specifications. In the usual way, the most specific specifications wins, which is in this
-case the wrong one. In regard to the concern expressed about missing <tt>DefaultConstructible</tt>
-requirements of the value type I disagree: The function argument <tt>n</tt> is no size-control
-parameter, but only some effective capacity parameter: No elements will be value-initialized
-by these constructors. The necessary requirement for the value type, <tt>EmplaceConstructible</tt>
-into <tt>*this</tt>, is already listed in Table 103 &mdash; Unordered associative container requirements.
-Another part of the proposed resolution is the fact that there is an inconsistency of the
-complexity counting when both a range <strong>and</strong> a bucket count is involved compared
-to constructions where only bucket counts are provided: E.g. the construction <tt>X a(n);</tt>
-has a complexity of <tt>n</tt> bucket allocations, but this part of the work is omitted for
-<tt>X a(i, j, n);</tt>, even though it is considerable larger (in the average case) for 
-<tt>n &#8811; distance(i, j)</tt>.
-</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Move to deferred</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-The proposed wording looks good.  Move to Review.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Fix up some presentation issues with the wording, combining the big-O expressions into single
-expressions rather than the sum of two separate big-Os.
-</p>
-<p>
-Strike "constant or linear", prefer "linear in the number of buckets".
-This allows for number of buckets being larger than requested <tt>n</tt> as well.
-</p>
-<p>
-Default <tt>n</tt> to "unspecified" rather than "implementation-defined".  It seems an un-necessary
-burden asking vendors to document a quantity that is easily determined through the public API of
-these classes.
-</p>
-<p>
-Replace <tt>distance(f,l)</tt> with "number of elements in the range <tt>[f,l)</tt>"
-</p>
-<p>
-Retain in Review with the updated wording
-</p>
-
-<p><i>[2012, Portland: Move to Open]</i></p>
-
-<p>
-The wording still does not call out Pablo's original concern, that the element constructor is called
-no more than <tt>N</tt> times, and that the <tt>N</tt> squared term applies to moves during rehash.
-</p>
-
-<p>
-Inconsistent use of O(n)+O(N) vs. O(n+N), with a preference for the former.
-</p>
-
-<p>
-AJM to update wording with a reference to "no more than <tt>N</tt> element constructor calls".
-</p>
-
-<p>
-Matt concerned that calling out the O(n) requirements is noise, and dangerous noise in suggesting a precision
-we do not mean.  The cost of constructing a bucket is very different to constructing an element of user-supplied
-type.
-</p>
-
-<p>
-AJM notes that if there are multiple rehashes, the 'n' complexity is probably not linear.
-</p>
-
-<p>
-Matt suggests back to Open, Pablo suggests potentially NAD if we keep revisitting without achieving a resolution.
-</p>
-
-<p>
-Matt suggests complexity we are concerned with is the number of operations, such as constructing elements, moving
-nodes, and comparing/hashing keys.  We are less concerned with constructing buckets, which are generally noise in
-this bigger picture.
-</p>
-
-<p><i>[2015-01-29 Telecon]</i></p>
-
-<p>
-AM: essentially correct, but do we want to complicate the spec?
-<p/>
-HH: Pablo has given us permission to NAD it
-<p/>
-JM: when I look at the first change in the P/R I find it mildly disturbing that the existing wording says you have a 
-constant time constructor with a single element even if your <tt>n</tt> is 10^6, so I think adding this change makes people 
-aware there might be a large cost in initializing the hash table, even though it doesn't show up in user-visible constructions.
-<p/>
-HH: one way to avoid that problem is make the default ctor <tt>noexcept</tt>. Then the container isn't allowed to create 
-an arbitrarily large hash table
-<p/>
-AM: but this is the constructor where the user provides <tt>n</tt>
-<p/>
-MC: happy with the changes, except I agree with the editorial recommendation to keep the two &#x1d4aa;s separate.
-<p/>
-JW: yes, the constant '<tt>k</tt>' is different in &#x1d4aa;(n) and &#x1d4aa;(N)
-<p/>
-GR: do we want to talk about buckets at all
-<p/>
-JM: yes, good to highlight that bucket construction might be a significant cost
-<p/>
-HH: suggest we take the suggestion to split &#x1d4aa;(n+N) to &#x1d4aa;(n)+&#x1d4aa;(N) and move to Tentatively Ready
-<p/>
-GR: 23.2.1p2 says all complexity requirements are stated solely in terms of the number of operations on the contained 
-object, so we shouldn't be stating complexity in terms of the hash table initialization
-<p/>
-HH: channeling Pete, there's an implicit "unless otherwise specified" everywhere.
-<p/>
-VV: seem to be requesting modifications that render this not Tentatively Ready
-<p/>
-GR: I think it can't be T/R
-<p/>
-AM: make the editorial recommendation, consider fixing 23.2.1/3 to give us permission to state complexity in terms 
-of bucket initialization
-<p/>
-HH: only set it to Review after we get new wording to review 
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Update wording, revisit later.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Modify the following rows in Table 103 &mdash; Unordered associative container requirements to
-add the explicit bucket allocation overhead of some constructions. As editorial recommendation it is 
-suggested <em>not</em> to shorten the sum <tt>&#x1d4aa;(n) + &#x1d4aa;(<em>N</em>)</tt> to
-<tt>&#x1d4aa;(n + <em>N</em>)</tt>, because two different work units are involved.</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 103 &mdash; Unordered associative container requirements (in addition to container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" style="text-align:center;">&hellip;</td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, n, hf, eq)</tt><br/>
-<tt>X a(i, j, n, hf, eq)</tt>
-</td>
-<td><tt>X</tt></td>
-<td>&hellip;<br/>
-<i>Effects</i>: Constructs an empty container with at least <tt>n</tt><br/>
-buckets, using <tt>hf</tt> as the hash function and <tt>eq</tt> as the key<br/>
-equality predicate, and inserts elements from <tt>[i, j)</tt> into it.
-</td>
-<td>Average case &#x1d4aa;(<tt><i><ins>n + </ins>N</i></tt>) (<tt><i>N</i></tt> is <tt>distance(i, j)</tt>),<br/>
-worst case <ins>&#x1d4aa;(<tt>n</tt>) +</ins> &#x1d4aa;(<tt><i>N</i><sup>2</sup></tt>)</td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, n, hf)</tt><br/>
-<tt>X a(i, j, n, hf)</tt>
-</td>
-<td><tt>X</tt></td>
-<td>&hellip;<br/>
-<i>Effects</i>: Constructs an empty container with at least <tt>n</tt><br/>
-buckets, using <tt>hf</tt> as the hash function and <tt>key_equal()</tt> as the key<br/>
-equality predicate, and inserts elements from <tt>[i, j)</tt> into it.
-</td>
-<td>Average case &#x1d4aa;(<tt><i><ins>n + </ins>N</i></tt>) (<tt><i>N</i></tt> is <tt>distance(i, j)</tt>),<br/>
-worst case &#x1d4aa;(<tt><i><ins>n + </ins>N</i><sup>2</sup></tt>)</td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, n)</tt><br/>
-<tt>X a(i, j, n)</tt>
-</td>
-<td><tt>X</tt></td>
-<td>&hellip;<br/>
-<i>Effects</i>: Constructs an empty container with at least <tt>n</tt><br/>
-buckets, using <tt>hasher()</tt> as the hash function and <tt>key_equal()</tt> as the key<br/>
-equality predicate, and inserts elements from <tt>[i, j)</tt> into it.
-</td>
-<td>Average case &#x1d4aa;(<tt><i><ins>n + </ins>N</i></tt>) (<tt><i>N</i></tt> is <tt>distance(i, j)</tt>),<br/>
-worst case &#x1d4aa;(<tt><i><ins>n + </ins>N</i><sup>2</sup></tt>)</td>
-</tr>
-
-<tr>
-<td colspan="4" style="text-align:center;">&hellip;</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Modify 23.5.4.2 [unord.map.cnstr] p. 1-4 as indicated (The edits of p. 1 and p. 3 attempt to fix some
-editorial oversight.):</p>
-
-<blockquote><pre>
-explicit unordered_map(size_type n = <i>see below</i>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-1 <i>Effects</i>: Constructs an empty <tt>unordered_map</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_map</tt></del>. 
-<tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-2 <i>Complexity</i>: <del>Constant</del><ins>Linear in the number of buckets</ins>.
-</p></blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_map(InputIterator f, InputIterator l,
-              size_type n = <i>see below</i>,
-              const hasher&amp; hf = hasher(),
-              const key_equal&amp; eql = key_equal(),
-              const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-3 <i>Effects</i>: Constructs an empty <tt>unordered_map</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_map</tt></del>.
-Then inserts elements from the range <tt>[f, l)</tt>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-4 <i>Complexity</i>: <del>Average case linear, worst case quadratic</del><ins>Linear in the number of buckets.
-In the average case linear in <tt><i>N</i></tt> and in the worst case quadratic in <tt><i>N</i></tt> to insert
-the elements, where <tt><i>N</i></tt> is equal to number of elements in the range <tt>[f,l)</tt></ins>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li><p>Modify 23.5.5.2 [unord.multimap.cnstr] p. 1-4 as indicated (The edits of p. 1 and p. 3 attempt to fix some
-editorial oversight.):</p>
-
-<blockquote><pre>
-explicit unordered_multimap(size_type n = <i>see below</i>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-1 <i>Effects</i>: Constructs an empty <tt>unordered_multimap</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_multimap</tt></del>. 
-<tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-2 <i>Complexity</i>: <del>Constant</del><ins>Linear in the number of buckets</ins>.
-</p></blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_multimap(InputIterator f, InputIterator l,
-                   size_type n = <i>see below</i>,
-                   const hasher&amp; hf = hasher(),
-                   const key_equal&amp; eql = key_equal(),
-                   const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-3 <i>Effects</i>: Constructs an empty <tt>unordered_multimap</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_multimap</tt></del>.
-Then inserts elements from the range <tt>[f, l)</tt>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-4 <i>Complexity</i>: <del>Average case linear, worst case quadratic</del><ins>Linear in the number of buckets.
-In the average case linear in <tt><i>N</i></tt> and in the worst case quadratic in <tt><i>N</i></tt> to insert
-the elements, where <tt><i>N</i></tt> is equal to number of elements in the range <tt>[f,l)</tt></ins>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li><p>Modify 23.5.6.2 [unord.set.cnstr] p. 1-4 as indicated (The edits of p. 1 and p. 3 attempt to fix some
-editorial oversight.):</p>
-
-<blockquote><pre>
-explicit unordered_set(size_type n = <i>see below</i>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-1 <i>Effects</i>: Constructs an empty <tt>unordered_set</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_set</tt></del>. 
-<tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-2 <i>Complexity</i>: <del>Constant</del><ins>Linear in the number of buckets</ins>.
-</p></blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_set(InputIterator f, InputIterator l,
-              size_type n = <i>see below</i>,
-              const hasher&amp; hf = hasher(),
-              const key_equal&amp; eql = key_equal(),
-              const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-3 <i>Effects</i>: Constructs an empty <tt>unordered_set</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_set</tt></del>.
-Then inserts elements from the range <tt>[f, l)</tt>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-4 <i>Complexity</i>: <del>Average case linear, worst case quadratic</del><ins>Linear in the number of buckets.
-In the average case linear in <tt><i>N</i></tt> and in the worst case quadratic in <tt><i>N</i></tt> to insert
-the elements, where <tt><i>N</i></tt> is equal to number of elements in the range <tt>[f,l)</tt></ins>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li><p>Modify 23.5.7.2 [unord.multiset.cnstr] p. 1-4 as indicated (The edits of p. 1 and p. 3 attempt to fix some
-editorial oversight.):</p>
-
-<blockquote><pre>
-explicit unordered_multiset(size_type n = <i>see below</i>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-1 <i>Effects</i>: Constructs an empty <tt>unordered_multiset</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_multiset</tt></del>. 
-<tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-2 <i>Complexity</i>: <del>Constant</del><ins>Linear in the number of buckets</ins>.
-</p></blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_multiset(InputIterator f, InputIterator l,
-                   size_type n = <i>see below</i>,
-                   const hasher&amp; hf = hasher(),
-                   const key_equal&amp; eql = key_equal(),
-                   const allocator_type&amp; a = allocator_type());
-</pre><blockquote><p>
-3 <i>Effects</i>: Constructs an empty <tt>unordered_multiset</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is 
-<ins>unspecified</ins><del>impldefdefault number of buckets in <tt>unordered_multiset</tt></del>.
-Then inserts elements from the range <tt>[f, l)</tt>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p></blockquote>
-<blockquote><p>
-4 <i>Complexity</i>: <del>Average case linear, worst case quadratic</del><ins>Linear in the number of buckets.
-In the average case linear in <tt><i>N</i></tt> and in the worst case quadratic in <tt><i>N</i></tt> to insert
-the elements, where <tt><i>N</i></tt> is equal to number of elements in the range <tt>[f,l)</tt></ins>.
-</p></blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1184"></a>1184. Feature request: dynamic bitset</h3>
-<p><b>Section:</b> 23.3.6 [vector] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Opened at Alisdair's request, steming from <a href="lwg-closed.html#96">96</a>.
-Alisdair recommends NAD Future.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.  We want a heap allocated bitset, but we don't have one today and
-don't have time to add one.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1188"></a>1188. Unordered containers should have a minimum load factor as well as a maximum</h3>
-<p><b>Section:</b> 23.2.5 [unord.req], 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-08-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Unordered associative containers have a notion of a maximum load factor:
-when the number of elements grows large enough, the containers
-automatically perform a rehash so that the number of elements per bucket
-stays below a user-specified bound. This ensures that the hash table's
-performance characteristics don't change dramatically as the size
-increases.
-</p>
-
-<p>
-For similar reasons, Google has found it useful to specify a minimum
-load factor: when the number of elements shrinks by a large enough, the
-containers automatically perform a rehash so that the number of elements
-per bucket stays above a user-specified bound. This is useful for two
-reasons. First, it prevents wasting a lot of memory when an unordered
-associative container grows temporarily. Second, it prevents amortized
-iteration time from being arbitrarily large; consider the case of a hash
-table with a billion buckets and only one element. (This was discussed
-even before TR1 was published; it was TR issue 6.13, which the LWG
-closed as NAD on the grounds that it was a known design feature.
-However, the LWG did not consider the approach of a minimum load
-factor.)
-</p>
-
-<p>
-The only interesting question is when shrinking is allowed. In principle
-the cleanest solution would be shrinking on erase, just as we grow on
-insert. However, that would be a usability problem; it would break a
-number of common idioms involving erase. Instead, Google's hash tables
-only shrink on insert and rehash.
-</p>
-
-<p>
-The proposed resolution allows, but does not require, shrinking in
-rehash, mostly because a postcondition for rehash that involves the
-minimum load factor would be fairly complicated. (It would probably have
-to involve a number of special cases and it would probably have to
-mention yet another parameter, a minimum bucket count.)
-</p>
-
-<p>
-The current behavior is equivalent to a minimum load factor of 0. If we
-specify that 0 is the default, this change will have no impact on
-backward compatibility.
-</p>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-This seems to a useful extension, but is too late for 0x.
-
-Move to Tentatively NAD Future.
-</p></blockquote>
-
-<p><i>[
-Moved to NAD Future at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add two new rows, and change rehash's postcondition in the unordered
-associative container requirements table in 23.2.5 [unord.req]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><ins>
-<tt>a.min_load_factor()</tt>
-</ins></td>
-<td><ins>
-<tt>float</tt>
-</ins></td>
-<td><ins>
-Returns a non-negative number that the container attempts to keep the
-load factor greater than or equal to. The container automatically
-decreases the number of buckets as necessary to keep the load factor
-above this number.
-</ins></td>
-<td><ins>
-constant
-</ins></td>
-</tr>
-
-<tr>
-<td><ins><tt>a.min_load_factor(z)</tt></ins></td>
-<td><ins><tt>void</tt></ins></td>
-<td><ins>Pre: <tt>z</tt> shall be non-negative. Changes the container's minimum
-load factor, using <tt>z</tt> as a hint. [<i>Footnote:</i> the minimum
-load factor should be significantly smaller than the maximum. 
-If <tt>z</tt> is too large, the implementation may reduce it to a more sensible value.]
-</ins></td>
-<td><ins>
-constant
-</ins></td>
-</tr>
-<tr>
-<td><tt>a.rehash(n)</tt></td>
-<td><tt>void</tt></td>
-<td>
-Post: <ins><tt>a.bucket_count() &gt;= n</tt>, and <tt>a.size() &lt;= a.bucket_count()
-* a.max_load_factor()</tt>. [<i>Footnote:</i> It is intentional that the
-postcondition does not mention the minimum load factor.
-This member function is primarily intended for cases where the user knows
-that the container's size will increase soon, in which case the container's
-load factor will temporarily fall below <tt>a.min_load_factor()</tt>.]</ins>
-<del>
-<tt>a.bucket_cout &gt; a.size() / a.max_load_factor()</tt> and <tt>a.bucket_count()
-&gt;= n</tt>.
-</del>
-</td>
-<td>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Add a footnote to 23.2.5 [unord.req] p12:
-</p>
-
-<blockquote>
-<p>
-The insert members shall not affect the validity of references to
-container elements, but may invalidate all iterators to the container.
-The erase members shall invalidate only iterators and references to the
-erased elements.
-</p>
-
-<blockquote><p>
-[A consequence of these requirements is that while insert may change the
-number of buckets, erase may not. The number of buckets may be reduced
-on calls to insert or rehash.]
-</p></blockquote>
-</blockquote>
-
-<p>
-Change paragraph 13:
-</p>
-
-<blockquote><p>
-The insert members shall not affect the validity of iterators if
-<del><tt>(N+n) &lt; z * B</tt></del> <ins><tt>zmin * B &lt;= (N+n) &lt;= zmax * B</tt></ins>,
-where <tt>N</tt> is the number of elements in
-the container prior to the insert operation, <tt>n</tt> is the number of
-elements inserted, <tt>B</tt> is the container's bucket count,
-<ins><tt>zmin</tt> is the container's minimum load factor,</ins>
-and <tt>z<ins>max</ins></tt> is the container's maximum load factor.
-</p></blockquote>
-
-<p>
-Add to the <tt>unordered_map</tt> class synopsis in section 23.5.4 [unord.map],
-the <tt>unordered_multimap</tt> class synopsis
-in 23.5.5 [unord.multimap], the <tt>unordered_set</tt> class synopsis in
-23.5.6 [unord.set], and the <tt>unordered_multiset</tt> class synopsis
-in 23.5.7 [unord.multiset]:
-</p>
-
-<blockquote><pre><ins>
-float min_load_factor() const;
-void min_load_factor(float z);
-</ins></pre></blockquote>
-
-<p>
-In 23.5.4.2 [unord.map.cnstr], 23.5.5.2 [unord.multimap.cnstr], 23.5.6.2 [unord.set.cnstr], and
-23.5.7.2 [unord.multiset.cnstr], change:
-</p>
-
-<blockquote><p>
-... <tt>max_load_factor()</tt> returns 1.0 <ins>and
-<tt>min_load_factor()</tt> returns 0</ins>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1201"></a>1201. Do we always want to unwrap <tt>ref</tt>-wrappers in <tt>make_tuple</tt></h3>
-<p><b>Section:</b> 20.4.2.4 [tuple.creation], 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.creation">issues</a> in [tuple.creation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Spotting a recent thread on the boost lists regarding collapsing
-optional representations in <tt>optional&lt;optional&lt;T&gt;&gt;</tt> instances, I wonder if
-we have some of the same issues with <tt>make_tuple</tt>, and now <tt>make_pair</tt>?
-</p>
-
-<p>
-Essentially, if my generic code in my own library is handed a
-<tt>reference_wrapper</tt> by a user, and my library in turn delegates some logic
-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>
-holding a real reference rather than the intended reference wrapper.
-</p>
-
-<p>
-There are two things as a library author I can do at this point:
-</p>
-
-<ol style="list-style-type:lower-roman">
-<li>
-document my library also has the same reference-wrapper behaviour as
-<tt>std::make_tuple</tt>
-</li>
-<li>
-roll my own <tt>make_tuple</tt> that does not unwrap rereferences, a lost
-opportunity to re-use the standard library.
-</li>
-</ol>
-
-<p>
-(There may be some metaprogramming approaches my library can use to wrap
-the <tt>make_tuple</tt> call, but all will be significantly more complex than
-simply implementing a simplified <tt>make_tuple</tt>.)
-</p>
-
-<p>
-Now I don't propose we lose this library facility, I think unwrapping
-references will be the common behaviour.  However, we might want to
-consider adding another overload that does nothing special with
-<tt>ref</tt>-wrappers.  Note that we already have a second overload of 
-<tt>make_tuple</tt> in the library, called <tt>tie</tt>.
-</p>
-
-<p><i>[
-2009-09-30 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I suggest to change the currently proposed paragraph for
-<tt>make_simple_pair</tt>
-</p>
-
-<blockquote><pre>
-template&lt;typename... Types&gt;
-  pair&lt;typename decay&lt;Types&gt;::type...&gt; make_simple_pair(Types&amp;&amp;... t);
-</pre>
-<blockquote>
-<p>
-<del><i>Type requirements:</i> <tt>sizeof...(Types) == 2</tt>.</del>
-<ins><i>Remarks:</i> The program shall be ill-formed, if
-<tt>sizeof...(Types) != 2</tt>.</ins>
-</p>
-<p>
-...
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-or alternatively (but with a slightly different semantic):
-</p>
-
-<blockquote>
-<blockquote><p>
-<i>Remarks:</i> If <tt>sizeof...(Types) != 2</tt>, this function shall not
-participate in overload resolution.
-</p></blockquote>
-</blockquote>
-
-<p>
-to follow a currently introduced style and because the library does
-not have yet a specific "<i>Type requirements</i>" element. If such thing
-would be considered as useful this should be done as a separate
-issue. Given the increasing complexity of either of these wordings
-it might be preferable to use the normal two-argument-declaration
-style again in either of the following ways:
-</p>
-
-<ol style="list-style-type:upper-alpha">
-<li>
-<pre>template&lt;class T1, class T2&gt;
-pair&lt;typename decay&lt;T1&gt;::type, typename decay&lt;T2&gt;::type&gt;
-make_simple_pair(T1&amp;&amp; t1, T2&amp;&amp; t2);
-</pre>
-</li>
-<li>
-<pre>template&lt;class T1, class T2&gt;
-pair&lt;V1, V2&gt; make_simple_pair(T1&amp;&amp; t1, T2&amp;&amp; t2);
-</pre>
-<blockquote><p>
-Let <tt>V1</tt> be <tt>typename decay&lt;T1&gt;::type</tt> and <tt>V2</tt> be
-<tt>typename decay&lt;T2&gt;::type</tt>.
-</p></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as Tentatively NAD Future.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Does not have sufficient support at this time. May wish to reconsider for a
-future standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following function to 20.3 [pairs] and signature in
-appropriate synopses:
-</p>
-
-<blockquote><pre>
-template&lt;typename... Types&gt;
-  pair&lt;typename decay&lt;Types&gt;::type...&gt; make_simple_pair(Types&amp;&amp;... t);
-</pre>
-<blockquote>
-<p>
-<i>Type requirements:</i> <tt>sizeof...(Types) == 2</tt>.
-</p>
-<p>
-<i>Returns:</i> <tt>pair&lt;typename decay&lt;Types&gt;::type...&gt;(std::forward&lt;Types&gt;(t)...)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Draughting note: I chose a variadic representation similar to <tt>make_tuple</tt>
-rather than naming both types as it is easier to read through the
-clutter of metaprogramming this way.  Given there are exactly two
-elements, the committee may prefer to draught with two explicit template
-type parameters instead
-]</i></p>
-
-
-<p>
-Add the following function to 20.4.2.4 [tuple.creation] and
-signature in appropriate synopses:
-</p>
-
-<blockquote><pre>
-template&lt;typename... Types&gt;
-  tuple&lt;typename decay&lt;Types&gt;::type...&gt; make_simple_tuple(Types&amp;&amp;... t);
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>tuple&lt;typename decay&lt;Types&gt;::type...&gt;(std::forward&lt;Types&gt;(t)...)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1203"></a>1203. More useful rvalue stream insertion</h3>
-<p><b>Section:</b> 27.7.3.9 [ostream.rvalue], 27.7.2.6 [istream.rvalue] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-27.7.3.9 [ostream.rvalue] was created to preserve the ability to insert
-into (and extract from 27.7.2.6 [istream.rvalue]) rvalue streams:
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits, class T&gt;
-  basic_ostream&lt;charT, traits&gt;&amp;
-  operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp;&amp; os, const T&amp; x);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i> <tt>os &lt;&lt; x</tt>
-</p>
-<p>
-2 <i>Returns:</i> <tt>os</tt>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-This is good as it allows code that wants to (for example) open, write to, and
-close an <tt>ofstream</tt> all in one statement:
-</p>
-
-<blockquote><pre>
-std::ofstream("log file") &lt;&lt; "Some message\n";
-</pre></blockquote>
-
-<p>
-However, I think we can easily make this "rvalue stream helper" even easier to
-use.  Consider trying to quickly create a formatted string.  With the current
-spec you have to write:
-</p>
-
-<blockquote><pre>
-std::string s = static_cast&lt;std::ostringstream&amp;&gt;(std::ostringstream() &lt;&lt; "i = " &lt;&lt; i).str();
-</pre></blockquote>
-
-<p>
-This will store "<tt>i = 10</tt>" (for example) in the string <tt>s</tt>.  Note
-the need to cast the stream back to <tt>ostringstream&amp;</tt> prior to using
-the member <tt>.str()</tt>.  This is necessary because the inserter has cast
-the <tt>ostringstream</tt> down to a more generic <tt>ostream</tt> during the
-insertion process.
-</p>
-
-<p>
-I believe we can re-specify the rvalue-inserter so that this cast is unnecessary.
-Thus our customer now has to only type:
-</p>
-
-<blockquote><pre>
-std::string s = (std::ostringstream() &lt;&lt; "i = " &lt;&lt; i).str();
-</pre></blockquote>
-
-<p>
-This is accomplished by having the rvalue stream inserter return an rvalue of
-the same type, instead of casting it down to the base class.  This is done by
-making the stream generic, and constraining it to be an rvalue of a type derived
-from <tt>ios_base</tt>.
-</p>
-
-<p>
-The same argument and solution also applies to the inserter.  This code has been
-implemented and tested.
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.  No concensus for change.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.7.2.6 [istream.rvalue]:
-</p>
-
-<blockquote><pre>
-template &lt;class <del>charT, class traits</del> <ins>Istream</ins>, class T&gt;
-  <del>basic_istream&lt;charT, traits&gt;&amp;</del> <ins>Istream&amp;&amp;</ins>
-  operator&gt;&gt;(<del>basic_istream&lt;charT, traits&gt;</del> <ins>Istream</ins>&amp;&amp; is, T&amp; x);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i> <tt>is &gt;&gt; x</tt>
-</p>
-<p>
-2 <i>Returns:</i> <tt><ins>std::move(</ins>is<ins>)</ins></tt>
-</p>
-<p><ins>
-3 <i>Remarks:</i> This signature shall participate in overload resolution if
-and only if <tt>Istream</tt> is not an lvalue reference type and is derived from
-<tt>ios_base</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 27.7.3.9 [ostream.rvalue]:
-</p>
-
-<blockquote><pre>
-template &lt;class <del>charT, class traits</del> <ins>Ostream</ins>, class T&gt;
-  <del>basic_ostream&lt;charT, traits&gt;&amp;</del> <ins>Ostream&amp;&amp;</ins>
-  operator&lt;&lt;(<del>basic_ostream&lt;charT, traits&gt;</del> <ins>Ostream</ins>&amp;&amp; os, const T&amp; x);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i> <tt>os &lt;&lt; x</tt>
-</p>
-<p>
-2 <i>Returns:</i> <tt><ins>std::move(</ins>os<ins>)</ins></tt>
-</p>
-<p><ins>
-3 <i>Remarks:</i> This signature shall participate in overload resolution if
-and only if <tt>Ostream</tt> is not an lvalue reference type and is derived from
-<tt>ios_base</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1213"></a>1213. Meaning of valid and singular iterator underspecified</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-09-19 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The terms <em>valid</em> iterator and <em>singular</em> aren't
-properly defined. The fuzziness of those terms became even worse
-after the resolution of <a href="lwg-defects.html#208">208</a> (including further updates by <a href="lwg-defects.html#278">278</a>). In
-24.2 [iterator.requirements] as of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-the standard says now:
-</p>
-
-<blockquote>
-<p>
-5 - These values are called past-the-end values. Values of an iterator <tt>i</tt> for
-which the expression <tt>*i</tt> is defined are called dereferenceable. The library
-never assumes that past-the-end values are dereferenceable. Iterators
-can also have singular values that are not associated with any
-container. [...] Results of most expressions are undefined for singular
-values; the only exceptions are destroying an iterator that holds a
-singular value and the assignment of a non-singular value to an iterator
-that holds a singular value. [...] Dereferenceable values are always
-non-singular.
-</p>
-
-<p>
-10 - An invalid iterator is an iterator that may be singular.
-</p>
-</blockquote>
-
-<p>
-First, issue <a href="lwg-defects.html#208">208</a> intentionally removed the earlier constraint that past-the-end
-values are always non-singular. The reason for this was to support null
-pointers as past-the-end iterators of e.g. empty sequences. But there
-seem to exist different views on what a singular (iterator) value is. E.g.
-according to the <a href="http://www.sgi.com/tech/stl/trivial.html">SGI definition</a>
-a null pointer is <em>not</em> a singular value:
-</p>
-
-<blockquote><p>
-Dereferenceable iterators are always nonsingular, but the converse is
-not true.
-For example, a null pointer is nonsingular (there are well defined operations
-involving null pointers) even thought it is not dereferenceable.
-</p></blockquote>
-
-<p>
-and <a href="http://www.sgi.com/tech/stl/InputIterator.html">proceeds</a>:
-</p>
-
-<blockquote><p>
-An iterator is valid if it is dereferenceable or past-the-end.
-</p></blockquote>
-
-<p>
-Even if the standard prefers a different meaning of singular here, the
-change was incomplete, because by restricting feasible expressions of singular
-iterators to destruction and assignment isn't sufficient for a past-the-end
-iterator: Of-course it must still be equality-comparable and in general be a readable value.
-</p>
-
-<p>
-Second, the standard doesn't clearly say whether a past-the-end value is
-a valid iterator or not. E.g. 20.7.12 [specialized.algorithms]/1 says:
-</p>
-
-<blockquote><p>
-In all of the following algorithms, the formal template parameter <tt>ForwardIterator</tt> 
-is required to satisfy the requirements of a forward iterator (24.1.3)
-[..], and is required to have the property that no exceptions are thrown from [..], or
-dereference of valid iterators.
-</p></blockquote>
-
-<p>
-The standard should make better clear what "singular pointer" and "valid
-iterator" means. The fact that the meaning of a valid <em>value</em>
-has a core language meaning doesn't imply that for an iterator concept
-the term "valid iterator" has the same meaning.
-</p>
-
-<p>
-Let me add a final example: In X [allocator.concepts.members] of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>
-we find:
-</p>
-
-<blockquote><pre>
-pointer X::allocate(size_type n);
-</pre>
-
-<blockquote><p>
-11 <i>Returns:</i> a pointer to the allocated memory. [<i>Note:</i> if <tt>n == 0</tt>, the return
-value is unspecified. &mdash;<i>end note</i>]
-</p></blockquote>
-
-<p>
-[..]
-</p>
-
-<pre>
-void X::deallocate(pointer p, size_type n);
-</pre>
-
-<blockquote><p>
-<i>Preconditions:</i> <tt>p</tt> shall be a non-singular pointer value obtained from a call
-to <tt>allocate()</tt> on this allocator or one that compares equal to it.
-</p></blockquote>
-</blockquote>
-
-<p>
-If singular pointer value would include null pointers this make the
-preconditions
-unclear if the pointer value is a result of <tt>allocate(0)</tt>: Since the return value
-is unspecified, it could be a null pointer. Does that mean that programmers
-need to check the pointer value for a null value before calling deallocate?
-</p>
-
-<p><i>[
-2010-11-09 Daniel comments:
-]</i></p>
-
-
-<p>
-A later paper is in preparation.
-</p>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-
-<p>
-Doesn't need to be resolved for Ox
-</p>
-
-
-<p><i>[2014-02-20 Re-open Deferred issues as Priority 4]</i></p>
-
-
-<p>
-Consider to await the paper.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1217"></a>1217. Quaternion support</h3>
-<p><b>Section:</b> 26.4 [complex.numbers] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Ted Shaneyfelt <b>Opened:</b> 2009-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#complex.numbers">active issues</a> in [complex.numbers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.numbers">issues</a> in [complex.numbers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Concerning mathematically proper operation of the type:
-</p>
-
-<blockquote><pre>
-complex&lt;complex&lt;T&gt; &gt;
-</pre></blockquote>
-
-<p>
-Generally accepted mathematical semantics of such a construct correspond
-to quaternions through Cayly-Dickson construct
-</p>
-
-<blockquote><pre>
-(w+xi) + (y+zi) j
-</pre></blockquote>
-
-<p>
-The proper implementation seems straightforward by adding a few
-declarations like those below. I have included operator definition for
-combining real scalars and complex types, as well, which seems
-appropriate, as algebra of complex numbers allows mixing complex and
-real numbers with operators. It also allows for constructs such as
-<tt>complex&lt;double&gt; i=(0,1),  x = 12.34 + 5*i;</tt>
-</p>
-
-<p>
-Quaternions are often used in areas such as computer graphics, where,
-for example, they avoid the problem of Gimbal lock when rotating objects
-in 3D space, and can be more efficient than matrix multiplications,
-although I am applying them to a different field.
-</p>
-
-<pre>
-/////////////////////////ALLOW OPERATORS TO COMBINE REAL SCALARS AND COMPLEX VALUES /////////////////////////
-template&lt;typename T,typename S&gt; complex&lt;T&gt; operator+(const complex&lt;T&gt; x,const S a) {
-    complex&lt;T&gt; result(x.real()+a, x.imag());
-    return result;
-}
-template&lt;typename T,typename S&gt; complex&lt;T&gt; operator+(const S a,const complex&lt;T&gt; x) {
-    complex&lt;T&gt; result(a+x.real(), x.imag());
-    return result;
-}
-template&lt;typename T,typename S&gt; complex&lt;T&gt; operator-(const complex&lt;T&gt; x,const S a) {
-    complex&lt;T&gt; result(x.real()-a, x.imag());
-    return result;
-}
-template&lt;typename T,typename S&gt; complex&lt;T&gt; operator-(const S a,const complex&lt;T&gt; x) {
-    complex&lt;T&gt; result(a-x.real(), x.imag());
-    return result;
-}
-template&lt;typename T,typename S&gt; complex&lt;T&gt; operator*(const complex&lt;T&gt; x,const S a) {
-    complex&lt;T&gt; result(x.real()*a, x.imag()*a);
-    return result;
-}
-template&lt;typename T,typename S&gt; complex&lt;T&gt; operator*(const S a,const complex&lt;T&gt; x) {
-    complex&lt;T&gt; result(a*x.real(), a*x.imag());
-    return result;
-}
-
-/////////////////////////PROPERLY IMPLEMENT QUATERNION SEMANTICS/////////////////////////
-template&lt;typename T&gt; double normSq(const complex&lt;complex&lt;T&gt; &gt;q) {
-    return q.real().real()*q.real().real()
-         + q.real().imag()*q.real().imag()
-         + q.imag().real()*q.imag().real()
-         + q.imag().imag()*q.imag().imag();
-}
-template&lt;typename T&gt; double norm(const complex&lt;complex&lt;T&gt; &gt;q) {
-    return sqrt(normSq(q));
-}
-/////// Cayley-Dickson Construction
-template&lt;typename T&gt; complex&lt;complex&lt;T&gt; &gt; conj(const complex&lt;complex&lt;T&gt; &gt; x) {
-    complex&lt;complex&lt;T&gt; &gt; result(conj(x.real()),-x.imag());
-    return result;
-}
-template&lt;typename T&gt; complex&lt;complex&lt;T&gt; &gt; operator*(const complex&lt;complex&lt;T&gt; &gt; ab,const complex&lt;complex&lt;T&gt; &gt; cd) {
-    complex&lt;T&gt; re(ab.real()*cd.real()-conj(cd.imag())*ab.imag());
-    complex&lt;T&gt; im(cd.imag()*ab.real()+ab.imag()*conj(cd.real()));
-    complex&lt;complex&lt;double&gt; &gt; q(re,im);
-    return q;
-}
-//// Quaternion division
-template&lt;typename S,typename T&gt; complex&lt;complex&lt;T&gt; &gt; operator/(const complex&lt;complex&lt;T&gt; &gt; q,const S a) {
-    return q * (1/a);
-}
-template&lt;typename S,typename T&gt; complex&lt;complex&lt;T&gt; &gt; operator/(const S a,const complex&lt;complex&lt;T&gt; &gt; q) {
-    return a*conj(q)/normSq(q);
-}
-template&lt;typename T&gt; complex&lt;complex&lt;T&gt; &gt; operator/(const complex&lt;complex&lt;T&gt; &gt; n, const complex&lt;complex&lt;T&gt; &gt; d) {
-    return n * (conj(d)/normSq(d));
-}
-</pre>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.  There is no consensus or time to move this into C++0X.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1235"></a>1235. Issue with C++0x random number proposal</h3>
-<p><b>Section:</b> X [rand.concept.dist] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Matthias Troyer <b>Opened:</b> 2009-10-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There exist optimized, vectorized vendor libraries for the creation of
-random number generators, such as Intel's MKL [1] and AMD's ACML [2]. In
-timing tests we have seen a performance gain of a factor of up to 80
-(eighty) compared to a pure C++ implementation (in Boost.Random) when
-using these generator to generate a sequence of normally distributed
-random numbers. In codes dominated by the generation of random numbers
-(we have application codes where random number generation is more than
-50% of the CPU time) this factor 80 is very significant.
-</p>
-
-<p>
-To make use of these vectorized generators, we use a C++ class modeling
-the <tt>RandomNumberEngine</tt> concept and forwarding the generation of random
-numbers to those optimized generators. For example:
-</p>
-
-<blockquote><pre>
-namespace mkl {
- class mt19937 {.... };
-}
-</pre></blockquote>
-
-<p>
-For the generation of random variates we also want to dispatch to
-optimized vectorized functions in the MKL or ACML libraries. See this
-example:
-</p>
-
-<blockquote><pre>
-mkl::mt19937 eng;
-std::normal_distribution&lt;double&gt; dist;
-
-double n = dist(eng);
-</pre></blockquote>
-
-<p>
-Since the variate generation is done through the <tt>operator()</tt> of the
-distribution there is no customization point to dispatch to Intel's or
-AMD's optimized functions to generate normally distributed numbers based
-on the <tt>mt19937</tt> generator. Hence, the performance gain of 80 cannot be
-achieved.
-</p>
-
-<p>
-Contrast this with TR1:
-</p>
-
-<blockquote><pre>
-mkl::mt19937 eng;
-std::tr1::normal_distribution&lt;double&gt; dist;
-std::tr1::variate_generator&lt;mkl::mt19937,std::tr1::normal_distribution&lt;double&gt; &gt; rng(eng,dist);
-double n = rng();
-</pre></blockquote>
-
-<p>
-This - admittedly much uglier from an aestethic point of view - design
-allowed optimization by specializing the <tt>variate_generator</tt> template for
-<tt>mkl::mt19937</tt>:
-</p>
-
-<blockquote><pre>
-namespace std { namespace tr1 {
-
-template&lt;&gt;
-class variate_generator&lt;mkl::mt19937,std::tr1::normal_distribution&lt;double&gt; &gt; { .... };
-
-} }
-</pre></blockquote>
-
-<p>
-A similar customization point is missing in the C++0x design and
-prevents the optimized vectorized version to be used.
-</p>
-
-<p>
-Suggested resolution:
-</p>
-
-<p>
-Add a customization point to the distribution concept. Instead of the
-<tt>variate_generator</tt> template this can be done through a call to a
-free function <tt>generate_variate</tt> found by ADL instead of
-<tt>operator()</tt> of the distribution:
-</p>
-
-<blockquote><pre>
-template &lt;RandomNumberDistribution, class RandomNumberEngine&gt;
-typename RandomNumberDistribution ::result_type
-generate_variate(RandomNumberDistribution const&amp; dist, RandomNumberEngine&amp; eng);
-</pre></blockquote>
-
-<p>
-This function can be overloaded for optimized enginges like
-<tt>mkl::mt19937</tt>.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Future.  No time to add this feature for C++0X.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1238"></a>1238. defining algorithms taking iterator for range</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The library has many algorithms that take a source range represented by
-a pair of iterators, and the start of some second sequence given by a
-single iterator.  Internally, these algorithms will produce undefined
-behaviour if the second 'range' is not as large as the input range, but
-none of the algorithms spell this out in Requires clauses, and there is
-no catch-all wording to cover this in clause 17 or the front matter of
-25.
-</p>
-
-<p>
-There was an attempt to provide such wording in paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2944.pdf">n2944</a>
-but this
-seems incidental to the focus of the paper, and getting the wording of
-this issue right seems substantially more difficult than the simple
-approach taken in that paper.  Such wording will be removed from an
-updated paper, and hopefully tracked via the LWG issues list instead.
-</p>
-
-<p>
-It seems there are several classes of problems here and finding wording
-to solve all in one paragraph could be too much.  I suspect we need
-several overlapping requirements that should cover the desired range of
-behaviours.
-</p>
-
-<p>
-Motivating examples:
-</p>
-
-<p>
-A good initial example is the <tt>swap_ranges</tt> algorithm.  Here there is a
-clear requirement that <tt>first2</tt> refers to the start of a valid range at
-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
-by positing a hypothetical <tt>last2</tt> iterator that is implied by the
-signature, and requires <tt>distance(first2,last2) &lt; distance(first1,last1)</tt>.
- This mostly works, although I am uncomfortable assuming that <tt>last2</tt> is
-clearly defined and well known without any description of how to obtain
-it (and I have no idea how to write that).
-</p>
-
-<p>
-A second motivating example might be the <tt>copy</tt> algorithm.  Specifically,
-let us image a call like:
-</p>
-
-<blockquote><pre>
-copy(istream_iterator&lt;int&gt;(is),istream_iterator(),ostream_iterator&lt;int&gt;(os));
-</pre></blockquote>
-
-<p>
-In this case, our input iterators are literally simple <tt>InputIterators</tt>,
-and the destination is a simple <tt>OutputIterator</tt>.  In neither case am I
-happy referring to <tt>std::distance</tt>, in fact it is not possible for the
-<tt>ostream_iterator</tt> at all as it does not meet the requirements.  However,
-any wording we provide must cover both cases.  Perhaps we might deduce
-<tt>last2 == ostream_iterator&lt;int&gt;{}</tt>, but that might not always be valid for
-user-defined iterator types.  I can well imagine an 'infinite range'
-that writes to <tt>/dev/null</tt> and has no meaningful <tt>last2</tt>.
-</p>
-
-<p>
-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
-two.
-</p>
-
-<p>
-Outlying examples might be <tt>partition_copy</tt> that takes two output
-iterators, and the <tt>_n</tt> algorithms where a range is specified by a
-specific number of iterations, rather than traditional iterator pair. 
-We should also <em>not</em> accidentally apply inappropriate constraints to
-<tt>std::rotate</tt> which takes a third iterator that is not intended to be a
-separate range at all.
-</p>
-
-<p>
-I suspect we want some wording similar to:
-</p>
-
-<blockquote><p>
-For algorithms that operate on ranges where the end iterator of the
-second range is not specified, the second range shall contain at least
-as many elements as the first.
-</p></blockquote>
-
-<p>
-I don't think this quite captures the intent yet though.  I am not sure
-if 'range' is the right term here rather than sequence.  More awkwardly,
-I am not convinced we can describe an Output sequence such as produce by
-an <tt>ostream_iterator</tt> as "containing elements", at least not as a
-precondition to the call before they have been written.
-</p>
-
-<p>
-Another idea was to describe require that the trailing iterator support
-at least distance(input range) applications of <tt>operator++</tt> and may be
-written through the same number of times if a mutable/output iterator.
-</p>
-
-<p>
-We might also consider handling the case of an output range vs. an input
-range in separate paragraphs, if that simplifies how we describe some of
-these constraints.
-</p>
-
-<p><i>[
-2009-11-03 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD Future after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Does not have sufficient support at this time. May wish to reconsider for a
-future standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1242"></a>1242. Enable SCARY iterators</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2009-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2980.pdf">N2980</a>.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz
-]</i></p>
-
-
-<blockquote><p>
-The paper was lengthy discussed but considerable concern remained to add this feature to C++0x. 
-Strong consensus was found to consider it for C++1x, though.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-The LWG does not wish to make a change at this time. 
-</p>
-
-
-
-
-<hr>
-<h3><a name="1282"></a>1282. A proposal to add <tt>std::split</tt> algorithm</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Igor Semenov <b>Opened:</b> 2009-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol style="list-style-type:upper-roman">
-
-<li>
-<p>
-Motivation and Scope
-</p>
-<p>
-Splitting strings into parts by some set of delimiters is an often task, but
-there is no simple and generalized solution in C++ Standard. Usually C++
-developers use <tt>std::basic_stringstream&lt;&gt;</tt> to split string into
-parts, but there are several inconvenient restrictions:
-</p>
-
-<ul>
-<li>
-we cannot explicitly assign the set of delimiters;
-</li>
-<li>
-this approach is suitable only for strings, but not for other types of
-containers;
-</li>
-<li>
-we have (possible) performance leak due to string instantiation.
-</li>
-</ul>
-</li>
-
-<li>
-<p>
-Impact on the Standard
-</p>
-<p>
-This algorithm doesn't interfere with any of current standard algorithms.
-</p>
-</li>
-
-<li>
-<p>
-Design Decisions
-</p>
-<p>
-This algorithm is implemented in terms of input/output iterators. Also, there is
-one additional wrapper for <tt>const CharType *</tt> specified delimiters.
-</p>
-</li>
-
-<li>
-<p>
-Example implementation
-</p>
-<pre>
-template&lt; class It, class DelimIt, class OutIt &gt;
-void split( It begin, It end, DelimIt d_begin, DelimIt d_end, OutIt out )
-{
-   while ( begin != end )
-   {
-       It it = std::find_first_of( begin, end, d_begin, d_end );
-       *out++ = std::make_pair( begin, it );
-       begin = std::find_first_of( it, end, d_begin, d_end,
-           std::not2( std::equal_to&lt; typename It::value_type &gt;() ) );
-   }
-}
-
-template&lt; class It, class CharType, class OutIt &gt;
-void split( It begin, It end, const CharType * delim, OutIt out )
-{
-   split( begin, end, delim, delim + std::strlen( delim ), out );
-}
-</pre>
-</li>
-
-<li>
-<p>
-Usage
-</p>
-<pre>
-std::string ss( "word1 word2 word3" );
-std::vector&lt; std::pair&lt; std::string::const_iterator, std::string::const_iterator &gt; &gt; v;
-split( ss.begin(), ss.end(), " ", std::back_inserter( v ) );
-
-for ( int i = 0; i &lt; v.size(); ++i )
-{
-   std::cout &lt;&lt; std::string( v[ i ].first, v[ i ].second ) &lt;&lt; std::endl;
-}
-// word1
-// word2
-// word3
-</pre>
-</li>
-
-</ol>
-
-<p><i>[
-2010-01-22 Moved to Tentatively NAD Future after 5 positive votes on c++std-lib.
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The LWG is not considering completely new features for standardization at this
-time.  We would like to revisit this good suggestion for a future TR and/or
-standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the synopsis in 25.1 [algorithms.general]:
-</p>
-
-<blockquote><pre>
-template&lt; class ForwardIterator1, class ForwardIterator2, class OutputIterator &gt;
-  void split( ForwardIterator1 first, ForwardIterator1 last,
-              ForwardIterator2 delimiter_first, ForwardIterator2 delimiter_last,
-              OutputIterator result );
-
-template&lt; class ForwardIterator1, class CharType, class OutputIterator &gt;
-  void split( ForwardIterator1 first, ForwardIterator1 last,
-              const CharType * delimiters, OutputIterator result );
-</pre></blockquote>
-
-<p>
-Add a new section [alg.split]:
-</p>
-
-<blockquote><pre>
-template&lt; class ForwardIterator1, class ForwardIterator2, class OutputIterator &gt;
-  void split( ForwardIterator1 first, ForwardIterator1 last,
-              ForwardIterator2 delimiter_first, ForwardIterator2 delimiter_last,
-              OutputIterator result );
-</pre>
-
-<blockquote>
-<p>
-1. <i>Effects:</i> splits the range <tt>[first, last)</tt> into parts, using any
-element of <tt>[delimiter_first, delimiter_last)</tt> as a delimiter. Results
-are pushed to output iterator in the form of <tt>std::pair&lt;ForwardIterator1,
-ForwardIterator1&gt;</tt>. Each of these pairs specifies a maximal subrange of
-<tt>[first, last)</tt> which does not contain a delimiter.
-</p>
-<p>
-2. <i>Returns:</i> nothing.
-</p>
-<p>
-3. <i>Complexity:</i> Exactly <tt>last - first</tt> assignments.
-</p>
-</blockquote>
-
-<pre>
-template&lt; class ForwardIterator1, class CharType, class OutputIterator &gt;
-  void split( ForwardIterator1 first, ForwardIterator1 last,
-              const CharType * delimiters, OutputIterator result );
-</pre>
-
-<blockquote>
-<p>
-1. <i>Effects:</i> split the range <tt>[first, last)</tt> into parts, using any
-element of <tt>delimiters</tt> (interpreted as zero-terminated string) as a
-delimiter. Results are pushed to output iterator in the form of
-<tt>std::pair&lt;ForwardIterator1, ForwardIterator1&gt;</tt>. Each of these
-pairs specifies a maximal subrange of <tt>[first, last)</tt> which does not
-contain a delimiter.
-</p>
-<p>
-2. <i>Returns:</i> nothing.
-</p>
-<p>
-3. <i>Complexity:</i> Exactly <tt>last - first</tt> assignments.
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1289"></a>1289. Generic casting requirements for smart pointers</h3>
-<p><b>Section:</b> 20.2 [utility] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Ion Gazta&ntilde;aga <b>Opened:</b> 2009-12-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#utility">active issues</a> in [utility].</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility">issues</a> in [utility].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In section 17.6.3.5 [allocator.requirements], Table 40 &mdash; Allocator requirements,
-the following expression is required for allocator pointers:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 40 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Default</th>
-</tr>
-<tr>
-<td><tt>static_cast&lt;X::pointer&gt;(w)</tt></td>
-<td><tt>X::pointer</tt></td>
-<td><tt>static_cast&lt;X::pointer&gt;(w) == p</tt></td>
-<td>&nbsp;</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-To achieve this expression, a smart pointer writer must introduce an explicit
-conversion operator from <tt>smart_ptr&lt;void&gt;</tt> to
-<tt>smart_ptr&lt;T&gt;</tt> so that
-<tt>static_cast&lt;pointer&gt;(void_ptr)</tt> is a valid expression.
-Unfortunately this explicit conversion weakens the safety of a smart pointer
-since the following expression (invalid for raw pointers) would become valid:
-</p>
-
-<blockquote><pre>
-smart_ptr&lt;void&gt; smart_v = ...;
-smart_ptr&lt;T&gt; smart_t(smart_v);
-</pre></blockquote>
-
-<p>
-On the other hand, <tt>shared_ptr</tt> also defines its own casting functions in
-20.8.2.2.9 [util.smartptr.shared.cast], and although it's unlikely that a
-programmer will use <tt>shared_ptr</tt> as <tt>allocator::pointer</tt>, having
-two different ways to do the same cast operation does not seem reasonable. A
-possible solution would be to replace <tt>static_cast&lt;X::pointer&gt;(w)</tt>
-expression with a user customizable (via ADL)
-<tt>static_pointer_cast&lt;value_type&gt;(w)</tt>, and establish the
-<tt>xxx_pointer_cast</tt> functions introduced by <tt>shared_ptr</tt> as the
-recommended generic casting utilities of the standard.
-</p>
-
-<p>
-Unfortunately, we've experienced problems in Boost when trying to establish
-<tt>xxx_pointer_cast</tt> as customization points for generic libraries (<a
-href="http://objectmix.com/c/40424-adl-lookup-explicit-template-parameters.html"
->http://objectmix.com/c/40424-adl-lookup-explicit-template-parameters.html</a>)
-because these casting functions are called with explicit template parameters and
-the standard says in 14.8.1 [temp.arg.explicit] p.8 "Explicit template
-argument specification":
-</p>
-
-<blockquote><p>
-8 ...But when a function template with explicit template arguments is used, the
-call does not have the correct syntactic form unless there is a function
-template with that name visible at the point of the call. If no such name is
-visible, the call is not syntactically well-formed and argument-dependent lookup
-does not apply.
-</p></blockquote>
-
-<p>
-So we can do this:
-</p>
-
-<blockquote><pre>
-template&lt;class BasePtr&gt;
-void generic_ptr_swap(BasePtr p)
-{
-  //ADL customization point
-  swap(p, p);
-  //...
-}
-</pre></blockquote>
-
-<p>
-but not the following:
-</p>
-
-<blockquote><pre>
-template&lt;class BasePtr&gt;
-void generic_ptr_algo(BasePtr p)
-{
-  typedef std::pointer_traits&lt;BasePtr&gt;::template
-     rebind&lt;Derived&gt; DerivedPtr;
-  DerivedPtr dp = static_pointer_cast&lt;Derived&gt;(p);
-}
-</pre></blockquote>
-
-<p>
-The solution to make <tt>static_pointer_cast</tt> a customization point is to
-add a generic declaration (no definition) of <tt>static_pointer_cast</tt> in a
-namespace (like <tt>std</tt>) and apply "<tt>using
-std::static_pointer_cast</tt>" declaration to activate ADL:
-</p>
-
-<blockquote><pre>
-namespace std{
-
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-static_pointer_cast(T&amp;&amp;) = delete;
-
-}
-
-template&lt;class BasePtr&gt;
-void generic_ptr_algo(BasePtr p)
-{
-  typedef std::pointer_traits&lt;BasePtr&gt;::template
-     rebind&lt;Derived&gt; DerivedPtr;
-
-  //ADL applies because static_pointer_cast is made
-  //  visible according to [temp.arg.explicit]/8
-  using std::static_pointer_cast;
-
-  DerivedPtr dp = static_pointer_cast&lt;Derived&gt;(p);
-
-  //...
-}
-</pre></blockquote>
-
-<p>
-A complete solution will need also the definition of
-<tt>static_pointer_cast</tt> for raw pointers, and this definition has been
-present in Boost (<a
-href="http://www.boost.org/boost/pointer_cast.hpp">http://www.boost.org/boost/
-pointer_cast.hpp</a>) for years.
-</p>
-
-<p><i>[
-2010-03-26 Daniel made editorial adjustments to the proposed wording.
-]</i></p>
-
-
-<p><i>[
-Moved to NAD Future at 2010-11 Batavia
-]</i></p>
-
-<blockquote><p>
-This is a new feature rather than a defect. 
-It can be added later: "this is such a hairy area that people will put up with changes"
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to section 20.2 [utility] Utility components, Header
-<tt>&lt;utility&gt;</tt> synopsis:
-</p>
-
-<blockquote><pre>
-// 20.3.X, generic pointer cast functions
-
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-static_pointer_cast(T&amp;&amp;) = delete;
-
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-dynamic_pointer_cast(T&amp;&amp;) = delete;
-
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-const_pointer_cast(T&amp;&amp;) = delete;
-
-//Overloads for raw pointers
-template&lt;typename U, typename T&gt;
-auto static_pointer_cast(T* t) -&gt; decltype(static_cast&lt;U*&gt;(t));
-
-template&lt;typename U, typename T&gt;
-auto dynamic_pointer_cast(T* t) -&gt; decltype(dynamic_cast&lt;U*&gt;(t));
-
-template&lt;typename U, typename T&gt;
-auto const_pointer_cast(T* t) -&gt; decltype(const_cast&lt;U*&gt;(t));
-</pre></blockquote>
-
-<p>
-Add to section 20.2 [utility] Utility components, a new subclause
-20.3.X Pointer cast utilities [pointer.cast]:
-</p>
-
-<blockquote>
-<p>
-20.3.X Pointer cast utilities [pointer.cast]
-</p>
-
-<p>
-1 The library defines generic pointer casting function templates so that template code
-can explicitly make these names visible and activate argument-dependent lookup
-for pointer cast calls.
-</p>
-
-<pre>
-//Generic declarations
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-static_pointer_cast(T&amp;&amp;) = delete;
-
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-dynamic_pointer_cast(T&amp;&amp;) = delete;
-
-template&lt;typename U, typename T&gt;
-<i>unspecified</i>
-const_pointer_cast(T&amp;&amp;) = delete;
-</pre>
-
-<p>
-2 The library also defines overloads of these functions for raw pointers.
-</p>
-
-<pre>
-//Overloads for raw pointers
-template&lt;typename U, typename T&gt;
-auto static_pointer_cast(T* t) -&gt; decltype(static_cast&lt;U*&gt;(t));
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>static_cast&lt;U*&gt;(t)</tt>
-</p></blockquote>
-
-<pre>
-template&lt;typename U, typename T&gt;
-auto dynamic_pointer_cast(T* t) -&gt; decltype(dynamic_cast&lt;U*&gt;(t));
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>dynamic_cast&lt;U*&gt;(t)</tt>
-</p></blockquote>
-
-<pre>
-template&lt;typename U, typename T&gt;
-auto const_pointer_cast(T* t) -&gt; decltype(const_cast&lt;U*&gt;(t));
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>const_cast&lt;U*&gt;(t)</tt>
-</p></blockquote>
-
-<p>
-[<i>Example:</i>
-</p>
-
-<blockquote><pre>
-#include &lt;utility&gt; //static_pointer_cast
-#include &lt;memory&gt;  //pointer_traits
-
-class Base{};
-class Derived : public Base{};
-
-template&lt;class BasePtr&gt;
-void generic_pointer_code(BasePtr b)
-{
-   typedef std::pointer_traits&lt;BasePtr&gt;::template
-      rebind&lt;Derived&gt; DerivedPtr;
-
-   using std::static_pointer_cast;
-   //ADL applies now that static_pointer_cast is visible
-   DerivedPtr d = static_pointer_cast&lt;Derived&gt;(b);
-}
-</pre></blockquote>
-
-<p>
-&mdash; <i>end example</i>]
-</p>
-
-</blockquote>
-
-<p>
-Replace in section 17.6.3.5 [allocator.requirements] Table 40 &mdash; Allocator
-requirements, the following table entries for allocator pointers:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 40 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Default</th>
-</tr>
-
-<tr>
-<td><tt>static<ins>_pointer</ins>_cast&lt;<del>X::pointer</del><ins>T</ins>&gt;(w)</tt></td>
-<td><tt>X::pointer</tt></td>
-<td><tt>static<ins>_pointer</ins>_cast&lt;<del>X::pointer</del><ins>T</ins>&gt;(w) == p</tt></td>
-<td>&nbsp;</td>
-</tr>
-
-<tr>
-<td><tt>static<ins>_pointer</ins>_cast&lt;<del>X::const_pointer</del><ins>const T</ins>&gt;(w)</tt></td>
-<td><tt>X::const_pointer</tt></td>
-<td><tt>static<ins>_pointer</ins>_cast&lt;<del>X::const_pointer</del><ins>const T</ins>&gt;(z) == q</tt></td>
-<td>&nbsp;</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1317"></a>1317. make_hash</h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Nicolai M. Josuttis <b>Opened:</b> 2010-02-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Currently, the library lacks a convenient way to provide a hash function that
-can be used with the provided unordered containers to allow the usage of non
-trivial element types.
-</p>
-
-<p>
-While we can easily declare an
-</p>
-
-<blockquote><pre>
-std::unordered_set&lt;int&gt;
-</pre></blockquote>
-
-<p>
-or
-</p>
-
-<blockquote><pre>
-std::unordered_set&lt;std::string&gt;
-</pre></blockquote>
-
-<p>
-we have no easy way to declare an <tt>unordered_set</tt> for a user defined
-type. IMO, this is a big obstacle to use unordered containers in practice. Note
-that in Java, the wide usage of <tt>HashMap</tt> is based on the fact that there
-is always a default hash function provided.
-</p>
-
-<p>
-Of course, a default hash function implies the risk to provide poor hash
-functions. But often even poor hash functions are good enough.
-</p>
-
-<p>
-While I really would like to see a default hash function, I don't propose it
-here because this would probably introduce a discussion that's too big for this
-state of C++0x.
-</p>
-
-<p>
-However, I strongly suggest at least to provide a convenience variadic template
-function <tt>make_hash&lt;&gt;()</tt> to allow an easy definition of a (possibly
-poor) hash function.
-</p>
-
-<p>
-As a consequence for a user-defined type such as
-</p>
-
-<blockquote><pre>
-class Customer {
-   friend class CustomerHash;
-   private:
-     string firstname;
-     string lastname;
-     long   no;
-   ...
- };
-</pre></blockquote>
-
-<p>
-would allow to specify:
-</p>
-
-<blockquote><pre>
-class CustomerHash : public std::unary_function&lt;Customer, std::size_t&gt;
-{
-  public:
-    std::size_t operator() (const Customer&amp; c) const  {
-       return make_hash(c.firstname,c.lastname,c.no);
-    }
-};
-</pre></blockquote>
-
-<p>
-instead of:
-</p>
-
-<blockquote><pre>
-class CustomerHash : public std::unary_function&lt;Customer, std::size_t&gt;
-{
-  public:
-    std::size_t operator() (const Customer&amp; c) const  {
-       return std::hash&lt;std::string&gt;()(c.firstname) +
-              std::hash&lt;std::string&gt;()(c.lastname) +
-              std::hash&lt;long&gt;()(c.no);
-    }
-};
-</pre></blockquote>
-
-<p>
-Note that, in principle, we can either specify that
-</p>
-
-<blockquote><p>
-<tt>make_hash</tt> returns the sum of a call of
-<tt>std::hash&lt;T&gt;()(x)</tt> for each argument <tt>x</tt> of type
-<tt>T</tt>
-</p></blockquote>
-
-<p>
-or we can specify that
-</p>
-
-<blockquote><p>
-<tt>make_hash</tt> provides a hash value for each argument, for which a
-<tt>std::hash()</tt> function is provided
-</p></blockquote>
-
-<p>
-with the possible note that the hash value may be poor or only a good hash value
-if the ranges of all passed arguments is equally distributed.
-</p>
-
-<p>
-For my convenience, I propose wording that describes
-the concrete implementation.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-There is no consensus to make this change at this time.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In Function objects 20.9 [function.objects]
-in paragraph 2 at the end of the Header <tt>&lt;functional&gt;</tt> synopsis
-insert:
-</p>
-
-<blockquote><pre>
-// convenience functions
-template &lt;class T&gt;
-  size_t make_hash (const T&amp;);
-template &lt;class T, class... Types&gt;
-  size_t make_hash (const T&amp;, const Types&amp;...);
-</pre></blockquote>
-
-<p>
-In Class template hash 20.9.13 [unord.hash]
-add:
-</p>
-
-<blockquote>
-<p>
-<b>20.7.16.1 Hash creation functions [hash.creation]</b>
-</p>
-
-<pre>
-template &lt;class T&gt;
-  size_t make_hash (const T&amp; val);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>hash&lt;T&gt;()(val);</tt>
-</p></blockquote>
-
-<pre>
-template &lt;class T, class... Types&gt;
-  size_t make_hash (const T&amp; val, const Types&amp;... args);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>hash&lt;T&gt;()(val) + std::make_hash(args...)</tt>
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1320"></a>1320. Header for <tt>iter_swap</tt></h3>
-<p><b>Section:</b> 24.3 [iterator.synopsis] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-02-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.synopsis">issues</a> in [iterator.synopsis].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>iter_swap</tt> function template appears in the
-<tt>&lt;algorithm&gt;</tt> header, yet its main use is in building further
-algorithms, not calling existing ones. The main clients are implementers of data
-structures and their iterators, so it seems most appropriate to place the
-template in the <tt>&lt;iterator&gt;</tt> header instead.
-</p>
-
-<p>
-Note that this is not an issue for implementers of the standard library, as they
-rarely use the standard headers directly, designing a more fine-grained set of
-headers for their own internal use.  This option is not available to customers
-of the standard library.
-</p>
-
-<p>
-Note that we cannot remove <tt>iter_swap</tt> from <tt>&lt;algorithm&gt;</tt>
-without breaking code, but there is no reason we cannot offer the same
-declaration via two standard headers.  Alternatively, require
-<tt>&lt;algorithm&gt;</tt> to <tt>#include &lt;iterator&gt;</tt>, but
-introducing the dependency on the iterator adaptors seems un-necessary.
-</p>
-
-<p><i>[
-]</i></p>
-
-
-<p>
-Discussed possibly moving to <tt>&lt;utility&gt;</tt> but don't like that. Some not seeing this 
-as a defect, and want to keep it in <tt>&lt;algorithm&gt;</tt>. No one seems to feel strongly 
-about moving to <tt>&lt;iterator&gt;</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add the declaration of <tt>iter_swap</tt> to the <tt>&lt;iterator&gt;</tt>
-header synopsis (24.3 [iterator.synopsis]), with a note that it is
-documented in clause 25 [algorithms].
-</p>
-
-<blockquote><pre>
-...
-template &lt;class T, size_t N&gt; T* end(T (&amp;array)[N]);
-
-<ins><i>// documented in 25 [algorithms]</i>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-  void iter_swap(ForwardIterator1 a, ForwardIterator2 b);</ins>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1396"></a>1396. <tt>regex</tt> should support allocators</h3>
-<p><b>Section:</b> 28.8 [re.regex] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex">issues</a> in [re.regex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1451">1451</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-104, US-141</b></p>
-<p>
-<tt>std::basic_regex</tt> should have an allocator for all the
-reasons that a <tt>std::string</tt> does. For example, I can use
-<tt>boost::interprocess</tt> to put a <tt>string</tt> or <tt>vector</tt>
-in shared memory, but not a <tt>regex</tt>.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Add allocators to regexes
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3171.pdf">n3171</a> 
-would solve this issue.
-</p></blockquote>
-
-<p><i>[2011-03-22 Madrid]</i></p>
-
-
-<p>Close 1396 as NAD Future.</p>
-
-
-<p><b>Rationale:</b></p><p>No consensus for a change at this time</p>
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1406"></a>1406. Support hashing smart-pointers based on <i>owner</i></h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-5</b></p>
-<p>
-Hash support based on ownership sharing should be
-supplied for <tt>shared_ptr</tt> and <tt>weak_ptr</tt>.
-For two <tt>shared_ptr</tt> objects <tt>p</tt> and <tt>q</tt>, two distinct
-equivalence relations can be defined. One is based on
-equivalence of pointer values, which is derived from the
-expression <tt>p.get() == q.get()</tt> (hereafter called <i>address based
-equivalence relation</i>), the other is based on
-equivalence of ownership sharing, which is derived from
-the expression <tt>!p.owner_before(q) &amp;&amp; !q.owner_before(p)</tt>
-(hereafter called <i>ownership-based equivalence relation</i>).
-These two equivalence relations are independent in
-general. For example, a <tt>shared_ptr</tt> object created by the
-constructor of the signature <tt>shared_ptr(shared_ptr&lt;U>
-const &amp;, T *)</tt> could reveal a difference between these two
-relations. Therefore, hash support based on each
-equivalence relation should be supplied for <tt>shared_ptr</tt>.
-However, while the standard library provides the hash
-support for address-based one (20.9.11.6 paragraph 2), it
-lacks the hash support for ownership-based one. In
-addition, associative containers work well in combination
-with the <tt>shared_ptr</tt>'s ownership-based comparison but
-unordered associative containers don't. This is
-inconsistent.
-</p>
-<p>
-For the case of <tt>weak_ptr</tt>, hash support for the ownership based
-equivalence relation can be safely defined on
-<tt>weak_ptr</tt>s, and even on expired ones. The absence of
-hash support for the ownership-based equivalence
-relation is fatal, especially for expired <tt>weak_ptr</tt>s. And the
-absence of such hash support precludes some quite
-effective use-cases, e.g. erasing the <tt>unordered_map</tt> entry
-of an expired <tt>weak_ptr</tt> key from a customized deleter
-supplied to <tt>shared_ptr</tt>s.
-</p>
-<p>
-Hash support for the ownership-based equivalence
-relation cannot be provided by any user-defined manner
-because information about ownership sharing is not
-available to users at all. Therefore, the only way to provide
-ownership-based hash support is to offer it intrusively by
-the standard library.
-</p>
-<p>
-As far as we know, such hash support is implementable.
-Typical implementation of such hash function could return
-the hash value of the pointer of the counter object that is
-internally managed by <tt>shared_ptr</tt> and <tt>weak_ptr</tt>.
-</p>
-
-<p><i>[2010 Rapperswil:]</i></p>
-
-<blockquote>
-<p>No consensus to make this change at this time.</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following non-static member functions to
-<tt>shared_ptr</tt> and <tt>weak_ptr</tt> class template;
-</p>
-<p>
-Update [util.smartptr.shared], 20.9.11.2 paragraph 1
-</p>
-<pre>
-namespace std{
-template&lt;class T&gt; class shared_ptr {
-public:
-...
-  <ins>size_t owner_hash() const;</ins>
-...
-};
-}
-</pre>
-<p>
-Update [util.smartptr.weak], 20.9.11.3 paragraph 1
-</p>
-<pre>
-namespace std{
-template&lt;class T&gt; class weak_ptr {
-public:
-...
-  <ins>size_t owner_hash() const;</ins>
-...
-};
-}
-</pre>
-<p>
-These functions satisfy the following
-requirements. Let <tt>p</tt> and <tt>q</tt> be objects of either
-<tt>shared_ptr</tt> or <tt>weak_ptr</tt>, <tt>H</tt> be a hypothetical
-function object type that satisfies the hash
-requirements ([hash.requirements], 20.2.4) and <tt>h</tt> be an object of the
-type <tt>H</tt>. The expression <tt>p.owner_hash()</tt> behaves
-as if it were equivalent to the expression <tt>h(p)</tt>. In
-addition, <tt>h(p) == h(q)</tt> must become <tt>true</tt> if <tt>p</tt> and
-<tt>q</tt> share ownership.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1422"></a>1422. <tt>vector&lt;bool&gt;</tt> iterators are not random access</h3>
-<p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-118</b></p>
-<p>
-<tt>vector&lt;bool&gt;</tt> iterators are not random access iterators
-because their reference type is a special class, and not
-<tt>bool &amp;</tt>. All standard libary operations taking iterators
-should treat this iterator as if it was a random access iterator, rather
-than a simple input iterator.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment
-]</i></p>
-
-<p>
-Either revise the iterator requirements to support proxy iterators
-(restoring functionality that was lost when the Concept facility was
-removed) or add an extra paragraph to the <tt>vector&lt;bool&gt;</tt>
-specification requiring the library to treat <tt>vector&lt;bool&gt;</tt>
-iterators as-if they were random access iterators, despite having the wrong
-reference type.
-</p>
-
-<p><i>[
-Rapperswil Review
-]</i></p>
-
-<p>
-The consensus at Rapperswil is that it is too late for full support for
-proxy iterators, but requiring the library to respect <tt>vector&lt;bool&gt;</tt>
-iterators as-if they were random access would be preferable to flagging
-this container as deliberately incompatible with standard library algorithms.
-</p>
-<p>
-Alisdair to write the note, which may become normative <i>Remark</i> depending
-on the preferences of the project editor.
-</p>
-
-<p><i>[
-Post-Rapperswil Alisdair provides wording
-]</i></p>
-
-<p>
-Initial wording is supplied, deliberately using <i>Note</i> in preference to
-<i>Remark</i> although the author notes his preference for <i>Remark</i>.  The
-issue of whether <tt>iterator_traits&lt;vector&lt;bool&gt;&gt;::iterator_category</tt>
-is permitted to report <tt>random_access_iterator_tag</tt> or must report 
-<tt>input_iterator_tag</tt> is not addressed.
-</p>
-
-<p><i>[
-Old Proposed Resolution:
-]</i></p>
-
-<blockquote>
-<p>
-Insert a new paragraph into 23.3.7 [vector.bool] between p4 and p5:
-</p>
-<blockquote><p>
-[<i>Note</i> All functions in the library that take a pair of iterators to
-denote a range shall treat <tt>vector&lt;bool&gt;</tt> iterators as-if they were
-random access iterators, even though the <tt>reference</tt> type is not a
-true reference.<i>-- end note</i>]
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2010-11 Batavia:
-]</i></p>
-
-<blockquote><p>
-Closed as NAD Future, because the current iterator categories cannot correctly describe
-<tt>vector&lt;bool&gt;::iterator</tt>. But saying that they are Random Access Iterators
-is also incorrect, because it is not too hard to create a corresponding test that fails.
-We should deal with the more general proxy iterator problem in the future, and see no
-benefit to take a partial workaround specific to <tt>vector&lt;bool&gt;</tt> now.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-No consensus to make this change at this time.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1459"></a>1459. Overlapping evaluations are allowed</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Canada <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1458">1458</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CA-21, GB-131</b></p>
-<p>
-29.4 [atomics.lockfree] p.8 states:
-</p>
-<blockquote><p>
-An atomic store shall only store a value that has
-been computed from constants and program input values
-by a finite sequence of program evaluations, such
-that each evaluation observes the values of variables
-as computed by the last prior assignment in the
-sequence.
-</p></blockquote>
-<p>
-... but 1.9 [intro.execution] p.13 states:
-</p>
-<blockquote><p>
-If A is not sequenced before B and B is not
-sequenced before A, then A and B are unsequenced.
-[ <em>Note</em>: The execution of unsequenced
-evaluations can overlap. &mdash; <em>end note</em> ]
-</p></blockquote>
-<p>
-Overlapping executions can make it impossible to
-construct the sequence described in 29.4 [atomics.lockfree] p.8. We are not
-sure of the intention here and do not offer a suggestion for
-change, but note that 29.4 [atomics.lockfree] p.8 is the condition that prevents
-out-of-thin-air reads.
-</p>
-<p>
-For an example, suppose we have a function invocation
-f(e1,e2). The evaluations of e1 and e2 can overlap.
-Suppose that the evaluation of e1 writes y and reads x
-whereas the evaluation of e2 reads y and writes x, with
-reads-from edges as below (all this is within a single
-thread).
-</p>
-<pre>
- e1           e2
-Wrlx y--   --Wrlx x
-      rf\ /rf
-         X
-        / \
-Rrlx x&lt;-   -&gt;Rrlx y
-</pre>
-<p>
-This seems like it should be allowed, but there seems to
-be no way to produce a sequence of evaluations with the
-property above.
-</p>
-<p>
-In more detail, here the two evaluations, e1 and e2, are
-being executed as the arguments of a function and are
-consequently not sequenced-before each other. In
-practice we'd expect that they could overlap (as allowed
-by 1.9 [intro.execution] p.13), with the two writes taking effect before the two
-reads. However, if we have to construct a linear order of
-evaluations, as in 29.4 [atomics.lockfree] p.8, then the execution above is not
-permited. Is that really intended?
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Please clarify.
-</p>
-
-<p><i>[2011-03-09 Hans comments:]</i></p>
-
-
-<p>I'm not proud of 29.3 [atomics.order] p9 (formerly p8), and I agree with the comments that this
-isn't entirely satisfactory. 29.3 [atomics.order] p9 was designed to preclude
-out-of-thin-air results for races among <tt>memory_order_relaxed</tt> atomics, in spite of 
-the fact that Java experience has shown we don't really know how to do that adequately. In 
-the long run, we probably want to revisit this.
-<p/>
-However, in the short term, I'm still inclined to declare this NAD, for two separate reasons:
-</p>
-
-<ol>
-<li><p>1.9 [intro.execution] p15 states: "If a side effect on a scalar
-object is unsequenced relative to either another side
-effect on the same scalar object or a value computation
-using the value of the same scalar object, the behavior is undefined."
-I think the examples presented here have undefined behavior as a result.
-It's not completely clear to me whether examples can be constructed
-that exhibit this problem, and don't have undefined behavior.</p></li>
-
-<li><p>This comment seems to be using a different meaning of "evaluation"
-from what is used elsewhere in the standard. The sequence of evaluations
-here doesn't have to consist of full expression evaluations.  They
-can be evaluations of operations like lvalue to rvalue conversion,
-or individual assignments. In particular, the reads and writes
-executed by <tt>e1</tt> and <tt>e2</tt> in the example could be treated as separate
-evaluations for purposes of producing the sequence.
-The definition of "sequenced before" in 1.9 [intro.execution] makes
-little sense if the term "evaluation" is restricted to any notion
-of complete expression. Perhaps we should add yet another note
-to clarify this?  29.3 [atomics.order] p10 probably leads to 
-the wrong impression here.
-<p/>
-An alternative resolution would be to simply delete our flakey
-attempt at preventing out-of-thin-air reads, by removing 29.3 [atomics.order] p9-11,
-possibly adding a note that explains that we technically allow,
-but strongly discourage them. If we were starting this from scratch
-now, that would probably be my preference.  But it seems like too drastic
-a resolution at this stage.
-</p></li>
-</ol>
-
-<p><i>[2011-03-24 Madrid]</i></p>
-
-<p>
-Moved to NAD Future
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1484"></a>1484. Need a way to join a thread with a timeout</h3>
-<p><b>Section:</b> 30.3.1 [thread.thread.class] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-183</b></p>
-
-<p>
-There is no way to join a thread with a timeout.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Add <tt>join_for</tt> and <tt>join_until</tt>. Or decide one should
-never join a thread with a timeout since <tt>pthread_join</tt> doesn't have a 
-timeout version.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-The concurrency working group deemed this an extension beyond the scope of C++0x.
-</p>
-<p><b>Rationale:</b></p><p>The LWG does not wish to make a change at this time.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1488"></a>1488. Improve interoperability between the C++0x and C1x threads APIs</h3>
-<p><b>Section:</b> 30.4 [thread.mutex] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex">issues</a> in [thread.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-185</b></p>
-
-<p>
-Cooperate with WG14 to improve interoperability between
-the <tt>C++0x</tt> and <tt>C1x</tt> threads APIs. In particular, <tt>C1x</tt>
-mutexes should be conveniently usable with a <tt>C++0x</tt>
-<tt>lock_guard</tt>. Performance overheads for this combination
-should be considered.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Remove <tt>C++0x</tt> <tt>timed_mutex</tt> and
-<tt>timed_recursive_mutex</tt> if that facilitates
-development of more compatible APIs.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-The concurrency sub-group reviewed the options, and decided that closer harmony should wait until both standards are published.
-</p>
-
-<p><b>Rationale:</b></p>
-<p>
-The LWG does not wish to make any change at this time.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1493"></a>1493. Add <tt>mutex</tt>, <tt>recursive_mutex</tt>, <tt>is_locked</tt> function</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-189</b></p>
-
-<p>
-<tt>mutex</tt> and <tt>recursive_mutex</tt> should have an <tt>is_locked()</tt>
-member function. <tt>is_locked</tt> allows a user to test a lock
-without acquiring it and can be used to implement a lightweight
-<tt>try_try_lock</tt>.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Add a member function:
-</p>
-<pre>
-bool is_locked() const;
-</pre>
-<p>
-to <tt>std::mutex</tt> and <tt>std::recursive_mutex</tt>. These
-functions return true if the current thread would
-not be able to obtain a mutex. These functions do
-not synchronize with anything (and, thus, can
-avoid a memory fence).
-</p></blockquote>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-The Concurrency subgroup reviewed this issue and deemed it to be an extension to be handled after publishing C++0x.
-</p>
-
-<p><b>Rationale:</b></p><p>The LWG does not wish to make a change at this time.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1499"></a>1499. Condition variables preclude wakeup optimization</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-193</b></p>
-
-<p>
-Condition variables preclude a wakeup optimization.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Change condition_variable to allow such
-optimization. See Appendix 1 - Additional Details
-</p></blockquote>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-The Concurrency subgroup reviewed the issue, and deemed it an extension to be handled after C++0x.
-</p>
-
-<p><b>Rationale:</b></p><p>The LWG does not wish to make the change at this time.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1521"></a>1521. Requirements on internal pointer representations in containers</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Mike Spertus <b>Opened:</b> 2010-10-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-104, US-141</b></p>
-
-<p>
-The standard doesn't say that containers should use abstract pointer 
-types internally. Both Howard and Pablo agree that this is the intent. 
-Further, it is necessary for containers to be stored, for example, in 
-shared memory with an interprocess allocator (the type of scenario that 
-allocators are intended to support).
-</p>
-<p>
-In spite of the (possible) agreement on intent, it is necessary to make 
-this explicit:
-</p>
-<p>
-An implementations may like to store the result of dereferencing the 
-pointer (which is a raw reference) as an optimization, but that prevents 
-the data structure from being put in shared memory, etc. In fact, a 
-container could store raw references to the allocator, which would be a 
-little weird but conforming as long as it has one by-value copy. 
-Furthermore, pointers to locales, ctypes, etc. may be there, which also 
-prevents the data structure from being put in shared memory, so we 
-should make explicit that a container does not store raw pointers or 
-references at all.
-</p>
-
-<p><i>[
-Pre-batavia
-]</i></p>
-
-<p>
-This issue is being opened as part of the response to NB comments US-104/141. 
-See paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3171.pdf">N3171</a>
-in the pre-Batavia mailing. 
-</p>
-
-<p><i>[2011-03-23 Madrid meeting]</i></p>
-
-
-<p>Deferred</p>
-
-<p><i>[
-2011 Batavia
-]</i></p>
-
-
-<p>
-This may be an issue, but it is not clear.  We want to gain a few years experience
-with the C++11 allocator model to see if this is already implied by the existing
-specification.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the end of 23.2.1 [container.requirements.general] p. 8:
-</p>
-<blockquote><p>
-[..] In all container types defined in this Clause, the member <tt>get_allocator()</tt> returns 
-a copy of the allocator used to construct the container or, if that allocator has been replaced, 
-a copy of the most recent replacement. <ins>The container may not store internal objects whose 
-types are of the form  <tt>T *</tt> or <tt>T &amp;</tt> except insofar as they are part of the 
-item type or members.</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2035"></a>2035. Output iterator requirements are broken</h3>
-<p><b>Section:</b> 24.2.4 [output.iterators] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#output.iterators">active issues</a> in [output.iterators].</p>
-<p><b>View all other</b> <a href="lwg-index.html#output.iterators">issues</a> in [output.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>During the Pittsburgh meeting the proposal <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>
-became accepted because it fixed several severe issues related to the iterator specification. But the current working draft (N3225)
-does not reflect all these changes. Since I'm unaware whether every correction can be done editorial, this issue is submitted to take
-care of that. To give one example: All expressions of Table 108 &mdash; &quot;Output iterator requirements&quot; have a post-condition
-that the iterator is incrementable. This is impossible, because it would exclude any finite sequence that is accessed by an output 
-iterator, such as a pointer to a C array. The N3066 wording changes did not have these effects.
-</p>
-
-<p><i>[2011-03-01: Daniel comments:]</i></p>
-
-
-<p>This issue has some overlap with the issue <a href="lwg-active.html#2038">2038</a> and I would prefer if we
-could solve both at one location. I suggest the following approach:
-</p>
-<ol>
-<li><p>The terms <tt><i>dereferencable</i></tt> and <tt><i>incrementable</i></tt> could be defined in a more
-general way not restricted to iterators (similar to the concepts <tt>HasDereference</tt> and 
-<tt>HasPreincrement</tt> from working draft N2914). But on the other hand, all current usages of 
-<tt><i>dereferencable</i></tt> and <tt><i>incrementable</i></tt> are involved with types that satisfy 
-iterator requirements. Thus, I believe that it is sufficient for C++0x to add corresponding definitions to 
-24.2.1 [iterator.requirements.general] and to let all previous usages of these terms refer to this 
-sub-clause. Since the same problem occurs with the past-the-end iterator, this proposal suggest providing 
-similar references to usages that precede its definition as well.
-</p></li>
-<li><p>We also need to ensure that all iterator expressions get either an operational semantics in
-terms of others or we need to add missing pre- and post-conditions. E.g. we have the following
-ones without semantics:
-</p><blockquote><pre>
-*r++ = o // output iterator
-*r--     // bidirectional iterator
-</pre></blockquote><p>
-According to the <a href="http://www.sgi.com/tech/stl/OutputIterator.html">SGI specification</a>
-these correspond to
-</p><blockquote><pre>
-{ *r = o; ++r; }                         // output iterator
-{ reference tmp = *r; --r; return tmp; } // bidirectional iterator
-</pre></blockquote><p>
-respectively. Please note especially the latter expression for bidirectional iterator. It fixes a problem
-that we have for forward iterator as well: Both these iterator categories provide stronger guarantees
-than input iterator, because the result of the dereference operation is <tt>reference</tt>, and <strong>not</strong>
-only convertible to the value type (The exact form from the SGI documentation does not correctly refer to
-<tt>reference</tt>).
-</p></li>
-</ol>
-
-<p><i>[2011-03-14: Daniel comments and updates the suggested wording]</i></p>
-
-
-<p>In addition to the before mentioned necessary changes there is another one need, which
-became obvious due to issue <a href="lwg-defects.html#2042">2042</a>: <tt>forward_list&lt;&gt;::before_begin()</tt> returns
-an iterator value which is not dereferencable, but obviously the intention is that it should
-be incrementable. This leads to the conclusion that imposing dereferencable as a requirement
-for the expressions <tt>++r</tt> is wrong: We only need the iterator to be incrementable. A
-similar conclusion applies to the expression <tt>--r</tt> of bidirectional iterators.</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Consensus this is the correct direction, but there are (potentially) missing <i>incrementable</i>
-preconditions on some table rows, and the Remarks on when an output iterator becomes dereferencable
-are probably better handled outside the table, in a manner similar to the way we word for input
-iterators.
-</p>
-
-<p>
-There was some concern about redundant pre-conditions when the operational semantic is defined in
-terms of operations that have preconditions, and a similar level of concern over dropping such
-redundancies vs. applying a consistent level of redundant specification in all the iterator tables.
-Wording clean-up in either direction would be welcome.
-</p>
-
-<p><i>[2011-08-18: Daniel adapts the proposed resolution to honor the Bloomington request]</i></p>
-
-
-<p>
-There is only a small number of further changes suggested to get rid of superfluous 
-requirements and essentially non-normative assertions. Operations should not have extra 
-pre-conditions, if defined by "in-terms-of" semantics, see e.g. <tt>a != b</tt> or <tt>a-&gt;m</tt> 
-for Table 107. Further, some remarks, that do not impose anything or say nothing new have been removed, 
-because I could not find anything helpful they provide.
-E.g. consider the remarks for Table 108 for the operations dereference-assignment and
-preincrement: They don't provide additional information say nothing surprising. With the
-new pre-conditions <em>and</em> post-conditions it is implied what the remarks intend to say.
-</p>
-
-<p><i>[
-2011-11-03: Some observations from Alexander Stepanov via c++std-lib-31405
-]</i></p>
-
-
-<p>
-The following sentence is dropped from the standard section on OutputIterators:
-<p/>
-"In particular, the following two conditions should hold: first, any
-iterator value should be assigned through before it is incremented
-(this is, for an output iterator <tt>i, i++; i++;</tt> is not a valid code
-sequence); second, any value of an output iterator may have at most
-one active copy at any given time (for example, <tt>i = j; *++i = a; *j = b;</tt> 
-is not a valid code sequence)."
-</p>
-
-<p><i>[
-2011-11-04: Daniel comments and improves the wording
-]</i></p>
-
-
-<p>
-In regard to the first part of the comment, the intention of the newly proposed wording 
-was to make clear that for the expression
-</p>
-<blockquote><pre>
-*r = o
-</pre></blockquote>
-<p>
-we have the precondition dereferenceable and the post-condition
-incrementable. And for the expression
-</p>
-<blockquote><pre>
-++r
-</pre></blockquote>
-<p>
-we have the precondition incrementable and the post-condition dereferenceable 
-or past-the-end. This <em>should not</em>  allow for a sequence like <tt>i++; i++;</tt> 
-but I agree that it doesn't exactly say that.
-<p/>
-In regard to the second point: To make this point clearer, I suggest to
-add a similar additional wording as we already have for input iterator to the 
-"Assertion&#47;note" column of the expression <tt>++r</tt>:
-<p/>
-"Post: any copies of the previous value of <tt>r</tt> are no longer 
-required to be dereferenceable or incrementable."
-<p/>
-The proposed has been updated to honor the observations of Alexander Stepanov.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-The matter is complicated, Daniel volunteers to write a paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Add a reference to 24.2.1 [iterator.requirements.general] to the following parts of the
-library preceding Clause 24 Iterators library: (I stopped from 23.2.5 [unord.req] on, because
-the remaining references are the concrete containers)</p>
-<ol>
-<li><p>17.6.3.2 [swappable.requirements] p5:</p>
-
-<blockquote><p>
--5- A type <tt>X</tt> satisfying any of the iterator requirements (24.2) is <tt><i>ValueSwappable</i></tt> if, 
-for any dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins> object <tt>x</tt> of type 
-<tt>X</tt>, <tt>*x</tt> is swappable.
-</p></blockquote>
-</li>
-
-<li><p>17.6.3.5 [allocator.requirements], Table 27 &mdash; &quot;Descriptive variable definitions&quot;, 
-row with the expression <tt>c</tt>:</p>
-
-<blockquote><p>
-a dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins> pointer of type <tt>C*</tt>
-</p></blockquote>
-
-</li>
-
-<li><p>20.7.3.2 [pointer.traits.functions]:</p>
-<blockquote><p>
-<i>Returns</i>: The first template function returns a dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins> 
-pointer to <tt>r</tt> obtained by calling <tt>Ptr::pointer_to(r)</tt>;  [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>21.4.3 [string.iterators] p. 2:</p>
-<blockquote><p>
-<i>Returns</i>: An iterator which is the past-the-end value <ins>(24.2.1 [iterator.requirements.general])</ins>.
-</p></blockquote>
-</li>
-
-<li><p>22.4.5.1.2 [locale.time.get.virtuals] p. 11:</p>
-<blockquote><pre>
-iter_type do_get(iter_type s, iter_type end, ios_base&amp; f,
-  ios_base::iostate&amp; err, tm *t, char format, char modifier) const;
-</pre><blockquote><p>
-<i>Requires</i>: <tt>t</tt> shall be dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins>.
-</p></blockquote></blockquote>
-</li>
-
-<li><p>23.2.1 [container.requirements.general] p. 6:</p>
-
-<blockquote><p>
-[&hellip;]  <tt>end()</tt> returns an iterator which is the past-the-end <ins>(24.2.1 [iterator.requirements.general])</ins> 
-value for the container.  [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>23.2.3 [sequence.reqmts] p. 3:</p>
-
-<blockquote><p>
-[&hellip;]  <tt>q</tt> denotes a valid dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins> 
-const iterator to <tt>a</tt>,  [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>23.2.4 [associative.reqmts] p. 8 (I omit intentionally one further reference in the same sub-clause):</p>
-
-<blockquote><p>
-[&hellip;]  <tt>q</tt> denotes a valid dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins> 
-const iterator to <tt>a</tt>,  [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>23.2.5 [unord.req] p. 10 (I omit intentionally one further reference in the same sub-clause):</p>
-
-<blockquote><p>
-[&hellip;]  <tt>q</tt> and <tt>q1</tt> are valid dereferenceable <ins>(24.2.1 [iterator.requirements.general])</ins> 
-const iterators to <tt>a</tt>,  [&hellip;]
-</p></blockquote>
-</li>
-</ol>
-
-</li>
-<li><p>Edit 24.2.1 [iterator.requirements.general] p. 5 as indicated (The intent is to properly define
-<i>incrementable</i> and to ensure some further library guarantee related to past-the-end iterator values):</p>
-
-<blockquote><p>
--5- Just as a regular pointer to an array guarantees that there is a pointer value pointing past the last element
-of the array, so for any iterator type there is an iterator value that points past the last element of a
-corresponding sequence. These values are called <i>past-the-end values</i>. Values of an iterator <tt>i</tt> for which the
-expression <tt>*i</tt> is defined are called <i>dereferenceable</i>. <ins>Values of an iterator <tt>i</tt> for which the
-expression <tt>++i</tt> is defined are called <i>incrementable</i>. </ins> The library never assumes that 
-past-the-end values are dereferenceable <ins>or incrementable</ins>. Iterators can also have singular values 
-that are not associated with any sequence. [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>Modify the column contents of Table 106 &mdash; &quot;Iterator requirements&quot;, 
-24.2.2 [iterator.iterators], as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 106 &mdash; Iterator requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td><tt>*r</tt></td>
-<td><tt>reference</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td>pre: <tt>r</tt> is dereferenceable.</td>
-</tr>
-
-<tr>
-<td><tt>++r</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td><ins>pre: <tt>r</tt> is incrementable.</ins></td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li><p>Modify the column contents of Table 107 &mdash; &quot;Input iterator requirements&quot;, 
-24.2.3 [input.iterators], as indicated [<i>Rationale</i>: The wording changes attempt
-to define a minimal "independent" set of operations, namely <tt>*a</tt> and <tt>++r</tt>, and 
-to specify the semantics of the remaining ones. This approach seems to be in agreement with the 
-original <a href="http://www.sgi.com/tech/stl/InputIterator.html">SGI specification</a> 
-&mdash; <i>end rationale</i>]:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 107 &mdash; Input iterator requirements (in addition to Iterator)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td><tt>a != b</tt></td>
-<td>contextually<br/>
-convertible to <tt>bool</tt></td>
-<td><tt>!(a == b)</tt></td>
-<td><del>pre: <tt>(a, b)</tt> is in the domain<br/>
-of <tt>==</tt>.</del>
-</td>
-</tr>
-
-<tr>
-<td><tt>*a</tt></td>
-<td>convertible to <tt>T</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td>pre: <tt>a</tt> is dereferenceable.<br/>
-The expression<br/>
-<tt>(void)*a, *a</tt> is equivalent<br/>
-to <tt>*a</tt>.<br/>
-If <tt>a == b</tt> and <tt>(a,b)</tt> is in<br/>
-the domain of <tt>==</tt> then <tt>*a</tt> is<br/>
-equivalent to <tt>*b</tt>.
-</td>
-</tr>
-
-<tr>
-<td><tt>a-&gt;m</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td><tt>(*a).m</tt></td>
-<td><del>pre: <tt>a</tt> is dereferenceable.</del></td>
-</tr>
-
-<tr>
-<td><tt>++r</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td>pre: <tt>r</tt> is <del>dereferenceable</del><ins>incrementable</ins>.<br/>
-post: <tt>r</tt> is dereferenceable or<br/>
-<tt>r</tt> is past-the-end.<br/>
-post: any copies of the<br/>
-previous value of <tt>r</tt> are no<br/>
-longer required either to be<br/>
-dereferenceable<ins>, incrementable,</ins><br/>
-or to be in the domain of <tt>==</tt>.
-</td>
-</tr>
-
-<tr>
-<td><tt>(void)r++</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td><ins><tt>(void)++r</tt></ins></td>
-<td><del>equivalent to <tt>(void)++r</tt></del></td>
-</tr>
-
-<tr>
-<td><tt>*r++</tt></td>
-<td>convertible to <tt>T</tt></td>
-<td><tt>{ T tmp = *r;<br/>
-++r;<br/>
-return tmp; }
-</tt></td>
-<td><tt>&nbsp;</tt></td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li>
-<p>Modify the column contents of Table 108 &mdash; &quot;Output iterator requirements&quot;, 
-24.2.4 [output.iterators], as indicated [<i>Rationale</i>: The wording changes attempt
-to define a minimal "independent" set of operations, namely <tt>*r = o</tt> and <tt>++r</tt>,
-and to specify the semantics of the remaining ones. This approach seems to be in agreement with
-the original <a href="http://www.sgi.com/tech/stl/OutputIterator.html">SGI specification</a> 
-&mdash; <i>end rationale</i>]:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 108 &mdash; Output iterator requirements (in addition to Iterator)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td><tt>*r = o</tt></td>
-<td>result is not used</td>
-<td><tt>&nbsp;</tt></td>
-<td><ins>pre: <tt>r</tt> is dereferenceable.</ins><br/>
-<i>Remark</i>: After this operation<br/>
-<tt>r</tt> is not required to be<br/>
-dereferenceable <ins>and any copies of<br/>
-the previous value of <tt>r</tt> are no<br/>
-longer required to be dereferenceable<br/>
-or incrementable.</ins><br/>
-post: <tt>r</tt> is incrementable.
-</td>
-</tr>
-
-<tr>
-<td><tt>++r</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td><ins>pre: <tt>r</tt> is incrementable.</ins><br/>
-<tt>&amp;r == &amp;++r</tt>.<br/>
-<del><i>Remark</i>: After this operation<br/>
-<tt>r</tt> is not required to be<br/>
-dereferenceable.<br/></del>
-<ins><i>Remark</i>: After this operation<br/>
-<tt>r</tt> is not required to be<br/>
-incrementable and any copies of<br/>
-the previous value of <tt>r</tt> are no<br/>
-longer required to be dereferenceable<br/>
-or incrementable.</ins><br/>
-post: <tt>r</tt> is <ins>dereferenceable<br/>
-or <tt>r</tt> is past-the-end</ins><del>incrementable</del>.<br/>
-</td>
-</tr>
-
-<tr>
-<td><tt>r++</tt></td>
-<td>convertible to <tt>const X&amp;</tt></td>
-<td><tt>{ X tmp = r;<br/>
-  ++r;<br/>
-  return tmp; }</tt>
-</td>
-<td><del><i>Remark</i>: After this operation<br/>
-<tt>r</tt> is not required to be<br/>
-dereferenceable.<br/>
-post: <tt>r</tt> is incrementable.</del>
-</td>
-</tr>
-
-<tr>
-<td><tt>*r++ = o</tt></td>
-<td>result is not used</td>
-<td><ins><tt>{ *r = o; ++r; }</tt></ins></td>
-<td><del><i>Remark</i>: After this operation<br/>
-<tt>r</tt> is not required to be<br/>
-dereferenceable.<br/>
-post: <tt>r</tt> is incrementable.</del>
-</td>
-</tr>
-</table>
-</blockquote>
-</li>
-
-<li><p>Modify the column contents of Table 109 &mdash; &quot;Forward iterator requirements&quot;, 
-24.2.5 [forward.iterators], as indicated [<i>Rationale</i>: Since the return type of the
-expression <tt>*r++</tt> is now guaranteed to be type <tt>reference</tt>, the implied operational
-semantics from input iterator based on value copies is wrong &mdash; <i>end rationale</i>]</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 109 &mdash; Forward iterator requirements (in addition to input iterator)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td><tt>r++</tt></td>
-<td>convertible to <tt>const X&amp;</tt></td>
-<td><tt>{ X tmp = r;<br/>
-  ++r;<br/>
-  return tmp; }</tt>
-</td>
-<td><tt>&nbsp;</tt></td>
-</tr>
-
-<tr>
-<td><tt>*r++</tt></td>
-<td>reference</td>
-<td><ins><tt>{ reference tmp = *r;<br/>
- ++r;<br/> 
- return tmp; }</tt></ins></td>
-<td><tt>&nbsp;</tt></td>
-</tr>
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Modify the column contents of Table 110 &mdash; &quot;Bidirectional iterator requirements&quot;, 
-24.2.6 [bidirectional.iterators], as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 110 &mdash; Bidirectional iterator requirements (in addition to forward iterator)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td><tt>--r</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><tt>&nbsp;</tt></td>
-<td>pre: there exists <tt>s</tt> such that<br/>
-<tt>r == ++s</tt>.<br/>
-post: <tt>r</tt> is <del>dereferenceable</del><ins>incrementable</ins>.<br/>
-<tt>--(++r) == r</tt>.<br/>
-<tt>--r == --s</tt> implies <tt>r == s</tt>.<br/>
-<tt>&amp;r == &amp;--r</tt>.
-</td>
-</tr>
-
-<tr>
-<td><tt>r--</tt></td>
-<td>convertible to <tt>const X&amp;</tt></td>
-<td><tt>{ X tmp = r;<br/>
-  --r;<br/>
-  return tmp; }</tt>
-</td>
-<td><tt>&nbsp;</tt></td>
-</tr>
-
-<tr>
-<td><tt>*r--</tt></td>
-<td>reference</td>
-<td><ins><tt>{ reference tmp = *r;<br/>
- --r;<br/> 
- return tmp; }</tt></ins></td>
-<td><tt>&nbsp;</tt></td>
-</tr>
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2038"></a>2038. Missing definition for <tt>incrementable</tt> iterator</h3>
-<p><b>Section:</b> 24.2.4 [output.iterators] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#output.iterators">active issues</a> in [output.iterators].</p>
-<p><b>View all other</b> <a href="lwg-index.html#output.iterators">issues</a> in [output.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>In comp.lang.c++, Vicente Botet raises the following questions:</p>
-
-<blockquote><p>
-&quot;In "24.2.4 Output iterators" there are 3 uses of incrementable. I've
-not found the definition. Could some one point me where it is defined?
-<p/>
-Something similar occurs with dereferenceable. While the definition is
-given in "24.2.1 In general" it is used several times before.
-<p/>
-Shouldn't these definitions be moved to some previous section?&quot;
-</p></blockquote>
-
-<p>He's right: both terms are used without being properly defined.
-<p/>
-There is no definition of "incrementable".
-<p/>
-While there is a definition of "dereferenceable", it is, in fact, a definition of 
-"dereferenceable iterator". "dereferenceable" is used throughout Clause 23 (Containers) 
-before its definition in Clause 24. In almost all cases it's referring to iterators, 
-but in 17.6.3.2 [swappable.requirements] there is a mention of "dereferenceable object"; in 
-17.6.3.5 [allocator.requirements] the table of Descriptive variable definitions refers to a 
-"dereferenceable pointer"; 20.7.3.2 [pointer.traits.functions] refers to a 
-"dereferenceable pointer"; in 22.4.5.1.2 [locale.time.get.virtuals]&#47;11 (<tt>do_get</tt>) 
-there is a requirement that a pointer "shall be dereferenceable". In those specific cases 
-it is not defined.
-</p>
-
-<p><i>[2011-03-02: Daniel comments:]</i></p>
-
-
-<p>I believe that the currently proposed resolution of issue <a href="lwg-active.html#2035">2035</a> solves this
-issue as well.</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Agree with Daniel, this will be handled by the resolution of <a href="lwg-active.html#2035">2035</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p></p>
-
-
-
-
-
-<hr>
-<h3><a name="2040"></a>2040. Missing type traits related to <tt>is_convertible</tt></h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>When <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>
-was suggested, it concentrated on constructions, assignments, and destructions, but overlooked 
-to complement the single remaining compiler-support trait</p>
-
-<blockquote><pre>
-template &lt;class From, class To&gt; struct is_convertible;
-</pre></blockquote>
-
-<p>with the no-throw and triviality related aspects as it had been done with the other
-expression-based traits. Specifically, the current specification misses to add the
-following traits:
-</p>
-
-<blockquote><pre>
-template &lt;class From, class To&gt; struct is_nothrow_convertible;
-template &lt;class From, class To&gt; struct is_trivially_convertible;
-</pre></blockquote>
-
-<p>In particular the lack of <tt>is_nothrow_convertible</tt> is severly restricting. This
-was recently recognized when the proposal for <tt>decay_copy</tt> was prepared by 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3255.html">n3255</a>.
-There does not exist a portable means to define the correct conditional <tt>noexcept</tt>
-specification for the <tt>decay_copy</tt> function template, which is declared as:</p>
-
-<blockquote><pre>
-template &lt;class T&gt; 
-typename decay&lt;T&gt;::type decay_copy(T&amp;&amp; v) noexcept(<i>???</i>);
-</pre></blockquote>
-
-<p>The semantics of <tt>decay_copy</tt> bases on an implicit conversion which again
-influences the overload set of functions that are viable here. In most circumstances
-this will have the same effect as comparing against the trait 
-<tt>std::is_nothrow_move_constructible</tt>, but there is no guarantee for that being
-the right answer. It is possible to construct examples, where this would lead
-to the false result, e.g.</p>
-
-<blockquote><pre>
-struct S {
-  S(const S&amp;) noexcept(false);
- 
-  template&lt;class T&gt;
-  explicit S(T&amp;&amp;) noexcept(true);
-};
-</pre></blockquote>
-
-<p><tt>std::is_nothrow_move_constructible</tt> will properly honor the explicit template
-constructor because of the direct-initialization context which is part of the
-<tt>std::is_constructible</tt> definition and will in this case select it, such that
-<tt>std::is_nothrow_move_constructible&lt;S&gt;::value == true</tt>, but if we had
-the traits <tt>is_nothrow_convertible</tt>, <tt>is_nothrow_convertible&lt;S, S&gt;::value</tt>
-would evaluate to <tt>false</tt>, because it would use the copy-initialization context
-that is part of the <tt>is_convertible</tt> definition, excluding any explicit
-constructors and giving the opposite result.</p>
-
-<p>The <tt>decay_copy</tt> example is surely not one of the most convincing examples, but
-<tt>is_nothrow_convertible</tt> has several use-cases, and can e.g. be used to express
-whether calling the following implicit conversion function could throw an exception or not:</p>
-
-<blockquote><pre>
-template&lt;class T, class U&gt;
-T implicit_cast(U&amp;&amp; u) noexcept(is_nothrow_convertible&lt;U, T&gt;::value) 
-{
-  return std::forward&lt;U&gt;(u);
-}
-</pre></blockquote>
-
-<p>Therefore I suggest to add the missing trait <tt>is_nothrow_convertible</tt> and for
-completeness also the missing trait <tt>is_trivially_convertible</tt> to 20.10 [meta].</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>
-Daniel K: This is a new feature so out of scope.
-<p/>
-Pablo: Any objections to moving 2040 to Open?
-<p/>
-No objections. 
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to NAD Future, this would be an extension to existing functionality.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Ammend the following declarations to the header <tt>&lt;type_traits&gt;</tt> synopsis
-in 20.10.2 [meta.type.synop]:</p>
-
-<blockquote><pre>
-namespace std {
-  &hellip;
-  // 20.9.6, type relations:
-  template &lt;class T, class U&gt; struct is_same;
-  template &lt;class Base, class Derived&gt; struct is_base_of;
-  template &lt;class From, class To&gt; struct is_convertible;
-  <ins>template &lt;class From, class To&gt; struct is_trivially_convertible;</ins>
-  <ins>template &lt;class From, class To&gt; struct is_nothrow_convertible;</ins>
-
-  &hellip;
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify Table 51 &mdash; &quot;Type relationship predicates&quot; as indicated. The removal of the
-remaining traces of the trait <tt>is_explicitly_convertible</tt> is an editorial
-step, it was removed by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3047.html">n3047</a>:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 51 &mdash; Type relationship predicates</caption>
-
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" style="text-align:center;">&hellip;</td> 
-</tr>
-
-<tr>
-<td><tt>template &lt;class From, class To&gt;<br/>
-struct is_convertible;</tt></td>
-<td><i>see below</i></td>
-<td><tt>From</tt> and <tt>To</tt> shall be complete<br/>
-types, arrays of unknown bound, or<br/>
-(possibly cv-qualified) <tt>void</tt><br/>
-types.</td>
-</tr>
-
-<tr>
-<td><del><tt>template &lt;class From, class To&gt;<br/>
-struct is_explicitly_convertible;</tt></del></td>
-<td><del><tt>is_constructible&lt;To, From&gt;::value</tt></del></td>
-<td><del>a synonym for a two-argument<br/>
-version of <tt>is_constructible</tt>.<br/>
-An implementation may define it<br/>
-as an alias template.</del></td>
-</tr>
-
-<tr>
-<td><ins><tt>template &lt;class From, class To&gt;<br/>
-struct is_trivially_convertible;</tt></ins></td>
-<td><ins><tt>is_convertible&lt;From,<br/>
- To&gt;::value</tt> is <tt>true</tt> and the<br/>
-conversion, as defined by<br/>
-<tt>is_convertible</tt>, is known<br/>
-to call no operation that is<br/>
-not trivial ([basic.types], [special]).</ins></td>
-<td><ins><tt>From</tt> and <tt>To</tt> shall be complete<br/>
-types, arrays of unknown bound,<br/>
-or (possibly cv-qualified) <tt>void</tt><br/>
-types.</ins></td>
-</tr>
-
-<tr>
-<td><ins><tt>template &lt;class From, class To&gt;<br/>
-struct is_nothrow_convertible;</tt></ins></td>
-<td><ins><tt>is_convertible&lt;From,<br/>
- To&gt;::value</tt> is <tt>true</tt> and the<br/>
-conversion, as defined by<br/>
-<tt>is_convertible</tt>, is known<br/>
-not to throw any<br/>
-exceptions ([expr.unary.noexcept]).</ins></td>
-<td><ins><tt>From</tt> and <tt>To</tt> shall be complete<br/>
-types, arrays of unknown bound,<br/>
-or (possibly cv-qualified) <tt>void</tt><br/>
-types.</ins></td>
-</tr>
-
-<tr>
-<td colspan="3" style="text-align:center;">&hellip;</td> 
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2051"></a>2051. Explicit <tt>tuple</tt> constructors for more than one parameter</h3>
-<p><b>Section:</b> 20.4.2 [tuple.tuple], 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Ville Voutilainen <b>Opened:</b> 2011-05-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.tuple">issues</a> in [tuple.tuple].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-One of my constituents wrote the following:
-<p/>
--------snip------------
-<p/>
-So far the only use I've found for <tt>std::tuple</tt> is as an ad-hoc type to emulate
-multiple return values. If the tuple ctor was made non-explicit one could
-almost think C++ supported multiple return values especially when combined
-with <tt>std::tie()</tt>.
-</p>
-<blockquote><pre>
-// assume types line_segment and point
-// assume function double distance(point const&amp;, point const&amp;)
-
-std::tuple&lt;point, point&gt;
-closest_points(line_segment const&amp; a, line_segment const&amp; b) {
- point ax;
- point bx;
- /* some math */
-
- return {ax, bx};
-}
-
-
-double
-distance(line_segment const&amp; a, line_segment const&amp; b) {
- point ax;
- point bx;
- std::tie(ax, bx) = closest_points(a, b);
-
- return distance(ax, bx);
-}
-</pre></blockquote>
-<p>
--------snap----------
-<p/>
-See also the messages starting from lib-29330.
-<p/>
-Some notes:
-</p>
-<ol>
-<li><tt>pair</tt> allows such a return</li>
-<li>a lambda with a deduced return type doesn't allow it for any type</li>
-<li><tt>decltype</tt> refuses <tt>{1, 2}</tt></li>
-</ol>
-<p>
-I would recommend making non-unary <tt>tuple</tt> constructors non-explicit.
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to NAD Future, this would be an extension to existing functionality.
-</p>
-
-<p><i>[Portland, 2012]</i></p>
-
-<p>
-Move to Open at the request of the Evolution Working Group.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2055"></a>2055. <tt>std::move</tt> in <tt>std::accumulate</tt> and other algorithms</h3>
-<p><b>Section:</b> 26.7 [numeric.ops] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2011-01-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.ops">issues</a> in [numeric.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The C++0x draft says <tt>std::accumulate</tt> uses: <tt>acc = binary_op(acc, *i)</tt>.
-<p/>
-Eelis van der Weegen has pointed out, on the libstdc++ mailing list, that using 
-<tt>acc = binary_op(std::move(acc), *i)</tt> can lead to massive improvements (particularly, 
-it means accumulating strings is linear rather than quadratic).
-<p/>
-Consider the simple case, accumulating a bunch of strings of length 1 (the same argument holds for other length buffers).
-For strings <tt>s</tt> and <tt>t</tt>, <tt>s+t</tt> takes time <tt>length(s)+length(t)</tt>, as you have to copy 
-both <tt>s</tt> and <tt>t</tt> into a new buffer.
-<p/>
-So in accumulating <tt>n</tt> strings, step <tt>i</tt> adds a string of length <tt>i-1</tt> to a string of length 
-1, so takes time <tt>i</tt>.
-<p/>
-Therefore the total time taken is: <tt>1+2+3+...+n</tt> = O(<tt>n<sup>2</sup></tt>)
-<p/>
-<tt>std::move(s)+t</tt>, for a "good" implementation, is amortized time <tt>length(t)</tt>, like <tt>vector</tt>, 
-just copy <tt>t</tt> onto the end of the buffer. So the total time taken is:
-<p/>
-<tt>1+1+1+...+1</tt> (<tt>n</tt> times) = O(<tt>n</tt>). This is the same as <tt>push_back</tt> on a <tt>vector</tt>.
-<p/>
-I'm trying to decide if this implementation might already be allowed. I suspect it might not 
-be (although I can't imagine any sensible code it would break). There are other algorithms 
-which could benefit similarly (<tt>inner_product</tt>, <tt>partial_sum</tt> and 
-<tt>adjacent_difference</tt> are the most obvious).
-<p/>
-Is there any general wording for "you can use rvalues of temporaries"?
-<p/>
-The reflector discussion starting with message c++std-lib-29763 came to the conclusion
-that above example is not covered by the "as-if" rules and that enabling this behaviour
-would seem quite useful.
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Moved to NAD Future.  This would be a larger change than we would consider for a simple TC.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2062"></a>2062. Effect contradictions w&#47;o no-throw guarantee of <tt>std::function</tt> swaps</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func], 20.9.12.2.2 [func.wrap.func.mod] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Howard Hinnant observed in reflector message c++std-lib-30841 that 20.9.12.2 [func.wrap.func] 
-makes the member swap <tt>noexcept</tt>, even though the non-member swap is not <tt>noexcept</tt>. 
-<p/>
-The latter was an outcome of the discussions during the Batavia meeting and the Madrid meeting 
-involving LWG <a href="lwg-defects.html#1349">1349</a>, which seems to indicate that the remaining <tt>noexcept</tt> 
-specifier at the member swap is incorrect and should be removed.
-<p/>
-But if we allow for a potentially throwing member swap of <tt>std::function</tt>, this causes 
-another conflict with the exception specification for the following member function:
-</p>
-<blockquote><pre>
-template&lt;class F&gt; function&amp; operator=(reference_wrapper&lt;F&gt; f) <span style="color:#C80000;font-weight:bolder">noexcept</span>;
-</pre><blockquote><p>
-<i>Effects</i>: <tt>function(f).<span style="color:#C80000;font-weight:bolder">swap</span>(*this);</tt>
-</p>
-</blockquote></blockquote>
-<p>
-Note that in this example the sub-expression <tt>function(f)</tt> does not cause any problems,
-because of the nothrow-guarantee given in 20.9.12.2.1 [func.wrap.func.con] p. 10. The problem
-is located in the usage of the swap which could potentially throw given the general latitude. 
-<p/>
-So, either the Madrid meeting decision need to be revised (and both member and free swap of 
-<tt>std::function</tt> should be noexcept), or this function needs to be adapted as well,
-e.g. by taking the exception-specification away or by changing the semantics.
-<p/>
-One argument for "swap-may-throw" would be to allow for small-object optimization techniques
-where the copy of the target may throw. But given the fact that the swap function has been guaranteed 
-to be "Throws: Nothing" from TR1 on, it seems to me that that there would still be opportunities to 
-perform small-object optimizations just restricted to the set of target copies that cannot throw. 
-<p/>
-In my opinion member swap of <tt>std::function</tt> has always been intended to be no-throw, because
-otherwise there would be no good technical reason to specify the effects of several member 
-functions in terms of the "construct-swap" idiom (There are three functions that are defined
-this way), which provides the strong exception safety in this case. I suggest to enforce that both 
-member swap and non-member swap of <tt>std::function</tt> are nothrow functions as it had been guaranteed 
-since TR1 on.
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-<p>
-Dietmar: May not be swappable in the first place.
-</p>
-<p>
-Alisdair: This is wide contact. Then we should be taking noexcept off instead of putting it on. This is preferred resolution.
-</p>
-<p>
-Pablo: This is bigger issue. Specification of assignment in terms of swap is suspect to begin with. It is over specification.
-How this was applied to string is a better example to work from.
-</p>
-<p>
-Pablo: Two problems: inconsistency that should be fixed (neither should have noexcept), the other issues is that assignment
-should not be specified in terms of swap. There are cases where assignment should succeed where swap would fail. This is easier
-with string as it should follow container rules.
-</p>
-<p>
-<b>Action Item</b> (Alisdair): There are a few more issues found to file.
-</p>
-<p>
-Dave: This is because of allocators? The allocator makes this not work.
-</p>
-<p>
-Howard: There is a type erased allocator in shared_ptr. There is a noexcept allocator in shared_ptr.
-</p>
-<p>
-Pablo: shared_ptr is a different case. There are shared semantics and the allocator does move around.
-A function does not have shared semantics.
-</p>
-<p>
-Alisdair: Function objects think they have unique ownership.
-</p>
-<p>
-Howard: In function we specify semantics with copy construction and swap.
-</p>
-<p>
-<b>Action Item</b> (Pablo): Write this up better (why assignment should not be defined in terms of swap)
-</p>
-<p>
-Howard: Not having trouble making function constructor no throw.
-</p>
-<p>
-Dietmar: Function must allocate memory.
-</p>
-<p>
-Howard: Does not put stuff that will throw on copy or swap in small object optimization. Put those on heap.
-Storing allocator, but has to be no throw copy constructable.
-</p>
-<p>
-Pablo: Are you allowed to or required to swap or move allocators in case or swap or move.
-</p>
-<p>
-Dave: An allocator that is type erased should be different...
-</p>
-<p>
-Pablo: it is
-</p>
-<p>
-Dave: Do you need to know something about allocator types? But only at construction time.
-</p>
-<p>
-Pablo: You could have allocators that are different types.
-</p>
-<p>
-Dave: Swap is two ended operation.
-</p>
-<p>
-Pablo: Opinion is that both have to say propagate on swap for them to swap.
-</p>
-<p>
-John: It is not arbitrary. If one person says no. No is no.
-</p>
-<p>
-Howard: Find noexcept swap to be very useful. Would like to move in that direction and bring container design along.
-</p>
-<p>
-Dave: If you have something were allocator must not propagate you can detect that at construction time.
-</p>
-<p>
-...
-</p>
-<p>
-Pablo: Need to leave this open and discuss in smaller group.
-</p>
-<p>
-Alisdair: Tried to add boost::any as TR2 proposal and ran into this issue. Only the first place where we run into
-issues with type erased allocators. Suggest we move it to open.
-</p>
-<p>
-<b>Action Item</b>: Move to open.
-</p>
-<p>
-<b>Action Item</b> (Pablo works with Howard and Daniel): Address the more fundamental issue
-(which may be multiple issues) and write up findings.
-</p>
-
-<p><i>[
-<b>Original resolution</b>:
-]</i></p>
-
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Modify the header <tt>&lt;functional&gt;</tt> synopsis in 20.9 [function.objects] as indicated:</p>
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-
-  template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;) <ins>noexcept</ins>;
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify the class template <tt>function</tt> synopsis in 20.9.12.2 [func.wrap.func] as indicated:</p>
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-
-  <i>// [func.wrap.func.alg], specialized algorithms:</i>
-  template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;) <ins>noexcept</ins>;
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify 20.9.12.2.7 [func.wrap.func.alg] as indicated:</p>
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp; f1, function&lt;R(ArgTypes...)&gt;&amp; f2) <ins>noexcept</ins>;
-</pre><blockquote><p>
--1- <i>Effects</i>: <tt>f1.swap(f2);</tt>
-</p></blockquote></blockquote>
-</li>
-
-</ol>
-
-<p><i>[2014-02-28 (Post Issaquah), Pablo provides more information]</i></p>
-
-
-<p>
-For cross-referencing purposes: The resolution of this issue should be
-harmonized with any resolution to LWG <a href="lwg-active.html#2370">2370</a>, which addresses
-inappropriate <tt>noexcept</tt>s in some function constructors.
-</p>
-
-<p>We have the following choices:</p>
-
-<ol>
-<li>
-<p><tt>swap()</tt> does not throw</p>
-
-<blockquote><p>
-<i>Discussion</i>: This definition is desirable, and allows assignment
-   to be implemented with the strong exception guarantee, but it does have
-   consequences: The implementation cannot use the small-object optimization
-   for a function-object <tt>F</tt> unless <tt>F</tt> is <tt>NothrowMovable</tt> 
-   (nothrow-swappable is unimportant because <tt>F</tt> is not swapped with another <tt>F</tt>). 
-   Note that many functors written before C++11 will not have move constructors decorated
-   with <tt>noexcept</tt>, so this limitation could affect a lot of code.
-</p>
-<p>
-It is not clear what other implementation restrictions might be
-   needed. Allocators are required not to throw on move or copy. Is that
-   sufficient?
-</p>
-</blockquote>
-</li>
-
-<li>
-<p><tt>swap()</tt> can throw</p>
-
-<blockquote>
-<p>
-<i>Discussion</i>: This definition gives maximum latitude to implementation to
-   use small-object optimization. However, the strong guarantee on assignment
-   is difficult to achieve.  Should we consider giving up on the strong
-   guarantee? How much are we willing to pessimize code for exceptions?
-</p>
-</blockquote>
-</li>
-<li>
-<p><tt>swap()</tt> will not throw if both functions have <tt>NoThrowMoveable</tt> functors</p>
-
-<blockquote>
-<p>
-<i>Discussion</i>: This definition is similar to option 2, but gives slightly
-  stronger guarantees.  Here, <tt>swap()</tt> can throw, but the programmer can
-  theoretically prevent that from happening. This should be straight-forward
-  to implement and gives the implementation a lot of latitude for
-  optimization. However, because this is a dynamic decision, the program is
-  not as easy to reason about. Also, the strong guarantee for assignment is
-  compromized as in option 2.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2070"></a>2070. <tt>allocate_shared</tt> should use <tt>allocator_traits&lt;A&gt;::construct</tt></h3>
-<p><b>Section:</b> 20.8.2.2.6 [util.smartptr.shared.create] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-07-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.2.2.6 [util.smartptr.shared.create] says:
-</p>
-<blockquote><p>
--2- <i>Effects</i>: Allocates memory suitable for an object of type <tt>T</tt> and constructs an object in that memory
-via the placement new expression <tt>::new (pv) T(std::forward&lt;Args&gt;(args)...)</tt>. The template
-<tt>allocate_shared</tt> uses a copy of a to allocate memory. If an exception is thrown, the functions have
-no effect.
-</p></blockquote>
-<p>
-This explicitly requires placement new rather than using
-<tt>allocator_traits&lt;A&gt;::construct(a, (T*)pv, std::forward&lt;Args&gt;(args)...)</tt>
-In most cases that would result in the same placement new expression,
-but would allow more control over how the object is constructed e.g.
-using <tt>scoped_allocator_adaptor</tt> to do uses-allocator construction, or
-using an allocator declared as a friend to construct objects with no
-public constructors.
-</p>
-
-<p><i>[
-2011-08-16 Bloomington:
-]</i></p>
-
-<p>
-Agreed to fix in principle, but believe that <tt>make_shared</tt> and
-<tt>allocate_shared</tt> have now diverged enough that their descriptions
-should be separated.  Pablo and Stefanus to provide revised wording.
-</p>
-
-<p><strong>Daniel's (old) proposed resolution:</strong></p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change the following paragraphs of 20.8.2.2.6 [util.smartptr.shared.create] as indicated (The suggested
-removal of the last sentence of p1 is not strictly required to resolve this issue, but is still recommended,
-because it does not say anything new but may give the impression that it says something new):
-</p><blockquote><pre>
-template&lt;class T, class... Args&gt; shared_ptr&lt;T&gt; make_shared(Args&amp;&amp;... args);
-template&lt;class T, class A, class... Args&gt;
-  shared_ptr&lt;T&gt; allocate_shared(const A&amp; a, Args&amp;&amp;... args);
-</pre><blockquote>
-<p>
--1- <i>Requires</i>: <ins>For the template <tt>make_shared</tt>, t</ins><del>T</del>he expression 
-<tt>::new (pv) T(std::forward&lt;Args&gt;(args)...)</tt>, where <tt>pv</tt> 
-has type <tt>void*</tt> and points to storage suitable to hold an object of type <tt>T</tt>, shall be well 
-formed. <ins>For the template <tt>allocate_shared</tt>, the expression 
-<tt>allocator_traits&lt;A&gt;::construct(a, pt, std::forward&lt;Args&gt;(args)...)</tt>,
-where <tt>pt</tt> has type <tt>T*</tt> and points to storage suitable to hold an object
-of type <tt>T</tt>, shall be well formed.</ins> <tt>A</tt> shall be an allocator ([allocator.requirements]). 
-<del>The copy constructor and destructor of  <tt>A</tt> shall not throw exceptions.</del>
-<p/>
--2- <i>Effects</i>: Allocates memory suitable for an object of type <tt>T</tt> and constructs an object in 
-that memory<ins>. The template <tt>make_shared</tt> constructs the object</ins> via the placement new expression 
-<tt>::new (pv) T(std::forward&lt;Args&gt;(args)...)</tt>. The template <tt>allocate_shared</tt> uses a copy 
-of <tt>a</tt> to allocate memory<ins> and constructs the object by calling <tt>allocator_traits&lt;A&gt;::construct(a, pt,
-std::forward&lt;Args&gt;(args)...)</tt></ins>. If an exception is thrown, the functions have no effect.
-<p/>
--3- <i>Returns</i>: A <tt>shared_ptr</tt> instance that stores and owns the address of the newly constructed 
-object of type <tt>T</tt>.
-<p/>
--4- <i>Postconditions</i>: <tt>get() != 0 &amp;&amp; use_count() == 1</tt>
-<p/>
--5- <i>Throws</i>: <tt>bad_alloc</tt>, or<ins>, for the template <tt>make_shared</tt>, an exception thrown from
-the constructor of <tt>T</tt>, or, for the template <tt>allocate_shared</tt>,</ins> an exception thrown from 
-<tt>A::allocate</tt> or <ins>from <tt>allocator_traits&lt;A&gt;::construct</tt></ins><del>from the constructor of 
-<tt>T</tt></del>.
-<p/>
--6- <i>Remarks</i>: Implementations are encouraged, but not required, to perform no more than one memory
-allocation. [ <i>Note</i>: This provides efficiency equivalent to an intrusive smart pointer. &mdash; <i>end note</i> ]
-<p/>
--7- [ <i>Note</i>: These functions will typically allocate more memory than <tt>sizeof(T)</tt> to allow for internal
-bookkeeping structures such as the reference counts. &mdash; <i>end note</i> ]
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2011-12-04: Jonathan and Daniel improve wording]</i></p>
-
-
-<p>See also c++std-lib-31796</p>
-
-
-
-
-<p><i>[2013-10-13, Ville]</i></p>
-
-<p>
-This issue is related to <a href="lwg-active.html#2089">2089</a>.
-</p>
-
-
-<p><i>[2014-02-15 post-Issaquah session : move to Tentatively NAD]</i></p>
-
-<p>
-STL: This takes an allocator, but then ignores its construct. That's squirrely.
-</p>
-<p>
-Alisdair: The convention is when you take an allocator, you use its construct.
-</p>
-<p>
-STL: 23.2.1 [container.requirements.general]/3, argh! This fills me with despair, but I understand it now.
-</p>
-<p>
-STL: Ok, this is some cleanup.
-</p>
-<p>
-STL: You're requiring <tt>b</tt> to be of type <tt>A</tt> and not being rebound, is that an overspecification?
-</p>
-<p>
-Pablo: Good point. Hmm, that's only a requirement on what must be well-formed.
-</p>
-<p>
-STL: If it's just a well-formed requirement, then why not just use a directly?
-</p>
-<p>
-Pablo: Yeah, the well-formed requirement is overly complex. It's not a real call, we could just use a directly. It makes it harder to read.
-</p>
-<p>
-Alisdair: <tt>b</tt> should be an allocator in the same family as <tt>a</tt>.
-</p>
-<p>
-Pablo: This is a well-formed requirement, I wonder if it's the capital A that's the problem here. It doesn't matter here, this is way too much wording.
-</p>
-<p>
-Alisdair: It's trying to tie the constructor arguments into the allocator requirements.
-</p>
-<p>
-Pablo: <tt>b</tt> could be struck, that's a runtime quality. The construct will work with anything that's in the family of <tt>A</tt>.
-</p>
-<p>
-Alisdair: The important part is the <tt>forward</tt> of <tt>Args</tt>.
-</p>
-<p>
-Pablo: <tt>A</tt> must be an allocator, and <tt>forward</tt> <tt>Args</tt> must work with that.
-</p>
-<p>
-Alisdair: First let's nail down <tt>A</tt>.
-</p>
-<p>
-Pablo: Then replace <tt>b</tt> with <tt>a</tt>, and strike the rest.
-</p>
-<p>
-STL: You need <tt>pt</tt>'s type, at least.
-</p>
-<p>
-Pablo: There's nothing to be said about runtime constraints here, this function doesn't even take a <tt>pt</tt>.
-</p>
-<p>
-STL: Looking at the Effects, I believe <tt>b</tt> is similarly messed up, we can use <tt>a2</tt> to construct an object.
-</p>
-<p>
-Alisdair: Or any allocator in the family of <tt>a</tt>.
-</p>
-<p>
-STL: We say this stuff for the deallocate too, it should be lifted up.
-</p>
-<p>
-STL: "owns the address" is weird.
-</p>
-<p>
-Alisdair: shared_ptr owns pointers, although it does sound funky.
-</p>
-<p>
-Walter: "to destruct" is ungrammatical.
-</p>
-<p>
-STL: "When ownership is given up" is not what we usually say.
-</p>
-<p>
-Alisdair: I think the Returns clause is the right place to say this.
-</p>
-<p>
-STL: The right place to say this is <tt>shared_ptr</tt>'s dtor, we don't want to use Core's "come from" convention.
-</p>
-<p>
-Alisdair: I'm on the hook to draft cleaner wording.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change the following paragraphs of 20.8.2.2.6 [util.smartptr.shared.create] as indicated:
-</p>
-<blockquote><pre>
-template&lt;class T, class... Args&gt; shared_ptr&lt;T&gt; make_shared(Args&amp;&amp;... args);
-<del>template&lt;class T, class A, class... Args&gt;
-  shared_ptr&lt;T&gt; allocate_shared(const A&amp; a, Args&amp;&amp;... args);</del>
-</pre></blockquote>
-<p>
-<del>-1- <i>Requires</i>: The expression <tt>::new (pv) T(std::forward&lt;Args&gt;(args)...)</tt>, where <tt>pv</tt> 
-has type <tt>void*</tt> and points to storage suitable to hold an object of type <tt>T</tt>, shall be well 
-formed. <tt>A</tt> shall be an allocator (17.6.3.5 [allocator.requirements]). The copy constructor 
-and destructor of <tt>A</tt> shall not throw exceptions.</del>
-<p/>
--2- <i>Effects</i>: <ins>Equivalent to</ins>
-</p>
-<blockquote><pre> 
-<ins>return allocate_shared&lt;T&gt;(allocator&lt;T&gt;(), std::forward&lt;Args&gt;(args)...);</ins>
-</pre></blockquote>
-<p>
-<del>Allocates memory suitable for an object of type <tt>T</tt> 
-and constructs an object in that memory via the placement new expression 
-<tt>::new (pv) T(std::forward&lt;Args&gt;(args)...)</tt>. The template <tt>allocate_shared</tt> uses a copy 
-of <tt>a</tt> to allocate memory. If an exception is thrown, the functions have no effect.</del>
-<p/>
-<ins>-?- <i>Remarks</i>: An implementation may meet the effects (and the implied guarantees) without 
-creating the allocator object [<i>Note</i>: That is, user-provided specializations of <tt>std::allocator</tt>
-may not be instantiated, the expressions <tt>::new (pv) T(std::forward&lt;Args&gt;(args)...)</tt> and 
-<tt>pv-&gt;~T()</tt> may be evaluated directly &mdash; <i>end note</i>].</ins>
-<p/>
-<del>-3- <i>Returns</i>: A <tt>shared_ptr</tt> instance that stores and owns the address of the newly constructed 
-object of type <tt>T</tt>.</del>
-<p/>
-<del>-4- <i>Postconditions</i>: <tt>get() != 0 &amp;&amp; use_count() == 1</tt></del>
-<p/>
-<del>-5- <i>Throws</i>: <tt>bad_alloc</tt>, or an exception thrown from <tt>A::allocate</tt> or from the 
-constructor of <tt>T</tt>.</del>
-<p/>
-<del>-6- <i>Remarks</i>: Implementations are encouraged, but not required, to perform no more than one memory
-allocation. [<i>Note</i>: This provides efficiency equivalent to an intrusive smart pointer. &mdash; <i>end note</i>]</del>
-<p/>
-<del>-7- [<i>Note</i>: These functions will typically allocate more memory than <tt>sizeof(T)</tt> to allow 
-for internal bookkeeping structures such as the reference counts. &mdash; <i>end note</i>]</del>
-</p>
-</li>
-<li><p>
-Add the following set of <ins>new paragraphs</ins> immediately following the previous paragraph 7 of
-20.8.2.2.6 [util.smartptr.shared.create]:
-</p>
-<blockquote><pre>
-template&lt;class T, class A, class... Args&gt;
-  shared_ptr&lt;T&gt; allocate_shared(const A&amp; a, Args&amp;&amp;... args);
-</pre></blockquote>
-<p>
--?- <i>Requires</i>: The expressions 
-<tt>allocator_traits&lt;A&gt;::construct(b, pt, std::forward&lt;Args&gt;(args)...)</tt> and
-<tt>allocator_traits&lt;A&gt;::destroy(b, pt)</tt> shall be well-formed and well-defined, 
-where <tt>b</tt> has type <tt>A</tt> and is a copy of <tt>a</tt> and where <tt>pt</tt> 
-has type <tt>T*</tt> and points to storage suitable to hold an object of type <tt>T</tt>. 
-<tt>A</tt> shall meet the allocator requirements (17.6.3.5 [allocator.requirements]). 
-<p/>
--?- <i>Effects</i>: Uses an object <tt>a2</tt> 
-of type <tt>allocator_traits&lt;A&gt;::rebind_alloc&lt;<i>unspecified</i>&gt;</tt> that compares equal to 
-<tt>a</tt> to allocate memory suitable for an object of type <tt>T</tt>. 
-Uses a copy <tt>b</tt> of type <tt>A</tt> from <tt>a</tt> to construct an object of type <tt>T</tt> in 
-that memory by calling <tt>allocator_traits&lt;A&gt;::construct(b, pt, std::forward&lt;Args&gt;(args)...)</tt>. 
-If an exception is thrown, the function has no effect.
-<p/>
--?- <i>Returns</i>: A <tt>shared_ptr</tt> instance that stores and owns the address of the newly constructed 
-object of type <tt>T</tt>. When ownership is given up, the effects are as follows: Uses a copy <tt>b2</tt> 
-of type <tt>A</tt> from <tt>a</tt> to destruct an object of type <tt>T</tt> by calling 
-<tt>allocator_traits&lt;A&gt;::destroy(b2, pt2)</tt> where <tt>pt2</tt> has type <tt>T*</tt> 
-and refers to the newly constructed object. Then uses an object of type
-<tt>allocator_traits&lt;A&gt;::rebind_alloc&lt;<i>unspecified</i>&gt;</tt> that compares equal to 
-<tt>a</tt> to deallocate the allocated memory.
-<p/>
--?- <i>Postconditions</i>: <tt>get() != 0 &amp;&amp; use_count() == 1</tt>
-<p/>
--?- <i>Throws</i>: Nothing unless memory allocation or <tt>allocator_traits&lt;A&gt;::construct</tt> 
-throws an exception.
-<p/>
--?- <i>Remarks</i>: Implementations are encouraged, but not required, to perform no more than one memory 
-allocation. [<i>Note</i>: Such an implementation provides efficiency equivalent to an intrusive smart 
-pointer. &mdash; <i>end note</i>]
-<p/>
--?- [<i>Note</i>: This function will typically allocate more memory than <tt>sizeof(T)</tt> to allow for internal
-bookkeeping structures such as the reference counts. &mdash; <i>end note</i>]
-</p>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2072"></a>2072. Unclear wording about capacity of temporary buffers</h3>
-<p><b>Section:</b> 20.7.11 [temporary.buffer] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Kazutoshi Satoda <b>Opened:</b> 2011-08-10 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#temporary.buffer">issues</a> in [temporary.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to 20.7.11 [temporary.buffer] p1+2:
-
-</p><blockquote><pre>
-template &lt;class T&gt;
-pair&lt;T*, ptrdiff_t&gt; get_temporary_buffer(ptrdiff_t n) noexcept;
-</pre><blockquote><p>
--1- <i>Effects</i>: Obtains a pointer to storage sufficient to store up to <tt>n</tt> adjacent <tt>T</tt> 
-objects. It is implementation-defined whether over-aligned types are supported (3.11).
-<p/>
--2- <i>Returns</i>: A pair containing the buffer's address and capacity (in the units of <tt>sizeof(T)</tt>), 
-or a pair of 0 values if no storage can be obtained or if <tt>n &lt;= 0</tt>.
-</p></blockquote></blockquote>
-<p>
-I read this as prohibiting to return a buffer of which capacity is less than <tt>n</tt>, because 
-such a buffer is not sufficient to store <tt>n</tt> objects.
-<p/>
-The corresponding description in <a href="http://www.sgi.com/tech/stl/get_temporary_buffer.html">SGI STL</a> 
-is clear on this point, but I think it is a bit too verbose:
-</p>
-
-<blockquote class="note"><p>
-(for the return value, a pair <tt>P</tt>) [...] the buffer pointed to by <tt>P.first</tt> is large enough 
-to hold <tt>P.second</tt> objects of type <tt>T</tt>. <tt>P.second</tt> is greater than or equal to 0, 
-and less than or equal to <tt>len</tt>.
-</p></blockquote>
-
-<p>
-There seems to be two different targets of the "up to n" modification:
-The capacity of obtained buffer, and the actual number that the caller
-will store into the buffer.
-<p/>
-First I read as the latter, and got surprised seeing that libstdc++
-implementation can return a smaller buffer. I started searching about
-<tt>get_temporary_buffer()</tt>. After reading a quote from TC++PL at
-<a href="http://stackoverflow.com/questions/3264299/why-do-i-need-stdget-temporary-buffer">stackoverflow</a>, 
-I realized that the former is intended.
-<p/>
-Such misinterpretation seems common:
-</p>
-<ul>
-<li>The above question is likely started from same misinterpretation.</li>
-<li><p>JIS standard (Japanese translation of ISO&#47;IEC standard) says nothing
-    like "up to". I think the editor misinterpreted the original wording,
-    and omitted words for "up to" as it is redundant. (If a buffer is
-    sufficient to store <tt>n</tt> objects, it is also sufficient to store
-    up to <tt>n</tt> objects.)</p></li>
-<li><p>Rogue Wave implementation doesn't return smaller buffer, instead, it
-    can return larger buffer on some circumstances. Apache 
-	<a href="http://stdcxx.apache.org/">STDCXX</a> is a derived version of that
-    implementation, and <a href="https://stdcxx.apache.org/doc/stdlibref/get-temporary-buffer.html">publicly accessible</a>:
-</p>
-<blockquote class="note"><p>
-Specializations of the <tt>get_temporary_buffer()</tt> function template
-attempt to allocate a region of storage sufficiently large to store at
-least <tt>n</tt> adjacent objects of type <tt>T</tt>.
-</p></blockquote>
-<p>
-I know one commercial compiler package based on Rogue Wave implementation, 
-and its implementation is essentially same as the above.
-</p>
-</li>
-</ul>
-
-<p><i>[2014-05-18, Daniel comments and suggests concrete wording]</i></p>
-
-
-<p>
-The provided wording attempts to clarify the discussed capacity freedom, but it also makes it clearer that the returned
-memory is just "raw memory", which is currently not really clear. In addition the wording clarifies that the deallocating
-<tt>return_temporary_buffer</tt> function does not throw exceptions, which I believe is the intention when the preconditions
-of the functions are satisfied. Then, my understanding is that we can provide to <tt>return_temporary_buffer</tt> a
-null pointer value if that was the value, <tt>get_temporary_buffer()</tt> had returned. Furthermore, as STL noticed, the current 
-wording seemingly allows multiple invocations of <tt>return_temporary_buffer</tt> with the same value returned by 
-<tt>get_temporary_buffer</tt>; this should be constrained similar to the wording we have for <tt>operator delete</tt> (unfortunately
-we miss such wording for allocators).
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: move to ready? in favor: 14, opposed: 0, abstain: 0 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol><li><p>Change 20.7.11 [temporary.buffer] as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class T&gt;
-  pair&lt;T*, ptrdiff_t&gt; get_temporary_buffer(ptrdiff_t n) noexcept;
-</pre>
-<blockquote>
-<p>
--1- <i>Effects</i>: <ins>Obtains a pointer to uninitialized, contiguous storage for <tt><i>N</i></tt> adjacent objects of type 
-<tt>T</tt>, for some non-negative number <tt><i>N</i></tt>.</ins><del>Obtains a pointer to storage sufficient 
-to store up to <tt>n</tt> adjacent <tt>T</tt> objects.</del> It is implementation-defined whether over-aligned types are supported (3.11).
-<p/>
-<ins>-?- <i>Remarks</i>: Calling <tt>get_temporary_buffer</tt> with a positive number <tt>n</tt> is a non-binding request to return 
-storage for <tt>n</tt> objects of type <tt>T</tt>. In this case, an implementation is permitted to return instead storage for a 
-non-negative number <tt><i>N</i></tt> of such objects, where <tt><i>N</i> != n</tt> (including <tt><i>N</i> == 0</tt>). [<i>Note</i>: The 
-request is non-binding to allow latitude for implementation-specific optimizations of its memory management. &mdash; <i>end note</i>].</ins>
-<p/>
--2- <i>Returns</i>: <ins>If <tt>n &lt;= 0</tt> or if no storage could be obtained, returns a pair <tt>P</tt> such that <tt>P.first</tt>
-is a null pointer value and <tt>P.second == 0</tt>; otherwise returns a pair <tt>P</tt> such that <tt>P.first</tt> refers to the 
-address of the uninitialized storage and <tt>P.second</tt> refers to its capacity <tt><i>N</i></tt> (in the units of 
-<tt>sizeof(T)</tt>).</ins><del>A <tt>pair</tt> containing the buffer's address and capacity (in the units of <tt>sizeof(T)</tt>), or a 
-pair of 0 values if no storage can be obtained or if <tt>n &lt;= 0</tt>.</del>
-</p>
-</blockquote>
-
-<pre>
-template &lt;class T&gt; void return_temporary_buffer(T* p);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>: Deallocates the <del>buffer to which <tt>p</tt> points</del><ins>storage referenced by <tt>p</tt></ins>.
-<p/>
--4- <i>Requires</i>: <del>The buffer shall have been previously allocated by</del><ins><tt>p</tt> shall be a pointer value 
-returned by an earlier call to</ins> <tt>get_temporary_buffer</tt> <ins>which has not been invalidated by an intervening call to
-<tt>return_temporary_buffer(T*)</tt></ins>.
-<p/>
-<ins>-?- <i>Throws</i>: Nothing.</ins>
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2077"></a>2077. Further incomplete constraints for type traits</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-08-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The currently agreed on proposed wording for <a href="lwg-defects.html#2015">2015</a> using 
-<tt>remove_all_extents&lt;T&gt;::type</tt> instead of the "an array of 
-unknown bound" terminology in the precondition should be extended to 
-some further entries especially in Table 49, notably the 
-<tt>is_*constructible</tt>, <tt>is_*assignable</tt>, and 
-<tt>is_*destructible</tt> entries. To prevent ODR violations, incomplete
-element types of arrays must be excluded for value-initialization and
-destruction for example. Construction and assignment has to be honored, 
-when we have array-to-pointer conversions or pointer conversions of
-incomplete pointees in effect.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-The issue is that in three type traits, we are accidentally saying that in certain
-circumstances the type must give a specified answer when given an incomplete type.
-(Specifically: an array of unknown bound of incomplete type.)  The issue asserts
-that there's an ODR violation, since the trait returns false in that case but might
-return a different version when the trait is completed.
-</p>
-<p>
-Howard argues: no, there is no risk of an ODR violation.
-<tt>is_constructible&lt;A[]></tt> must return <tt>false</tt> regardless of whether
-<tt>A</tt> is complete, so there's no reason to forbid an array of unknown bound of
-incomplete types. Same argument applies to <tt>is_assignable</tt>. General agreement
-with Howard's reasoning.
-</p>
-<p>
-There may be a real issue for <tt>is_destructible</tt>. None of us are sure what
-<tt>is_destructible</tt> is supposed to mean for an array of unknown bound
-(regardless of whether its type is complete), and the standard doesn't make it clear.
-The middle column doesn't say what it's supposed to do for incomplete types.
-</p>
-<p>
-In at least one implementation, <tt>is_destructible&lt;A[]></tt> does return <tt>true</tt>
-if <tt>A</tt> is complete, which would result in ODR violation unless we forbid it for
-incomplete types.
-</p>
-<p>
-Move to open. We believe there is no issue for <tt>is_constructible</tt> or
-<tt>is_assignable</tt>, but that there is a real issue for <tt>is_destructible</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2088"></a>2088. <tt>std::terminate</tt> problem</h3>
-<p><b>Section:</b> 18.8.3 [exception.terminate] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-09-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Andrzej Krzemienski reported the following on comp.std.c++:
-</p>
-<blockquote>
-<p>
-In N3290, which is to become the official standard, in 18.8.3.4 [terminate],
-paragraph 1 reads
-</p>
-<blockquote><p>
-<i>Remarks</i>: Called by the implementation when exception handling must
-be abandoned for any of several reasons (15.5.1), in effect immediately after 
-evaluating the <em>throw-expression</em> (18.8.3.1). May also be called directly by the 
-program.
-</p></blockquote>
-<p>It is not clear what is "in effect". It was clear in previous drafts where paragraphs 
-1 and 2 read:
-</p>
-<blockquote><p>
-Called by the implementation when exception handling must be
-abandoned for any of several reasons (15.5.1). May also be called directly
-by the program.
-<p/>
-<i>Effects</i>: Calls the <tt>terminate_handler</tt> function in effect
-immediately after evaluating the <em>throw-expression</em> (18.8.3.1), if called by the
-implementation, or calls the current <tt>terminate_handler</tt> function,
-if called by the program.
-</p>
-</blockquote>
-<p>
-It was changed by N3189. The same applies to function unexpected (D. 11.4, paragraph 1).
-<p/>
-Assuming the previous wording is still intended, the wording can be read
-"unless <tt>std::terminate</tt> is called by the program, we will use the handler
-that was in effect immediately after evaluating the throw-expression".
-<p/>
-  This assumes that there is some throw-expression connected to every
-  situation that triggers the call to <tt>std::terminate</tt>. But this is not
-  the case:
-</p>
-<ul>
-<li>
-  In case <tt>std::thread</tt> is assigned to or destroyed while being joinable
-  there is no throw-expression involved.
-</li>
-<li>
-  In case <tt>std::unexpected</tt> is called by the program, <tt>std::terminate</tt> is
-  triggered by the implementation - no throw-expression involved.
-</li>
-<li>
-  In case a destructor throws during stack unwinding we have two throw-expressions 
-  involved.
- </li>
- </ul>
-<p>
-Which one is referred to?
-<p/>
-In case <tt>std::nested_exception::rethrow_nested</tt> is called for an object that has 
-captured no exception, there is no throw-expression involved directly (and may no throw 
-be involved even indirectly).
-<p/>
-Next, 18.8.3.1 [terminate.handler], paragraph 2 says 
-</p>
-<blockquote><p>
-<i>Required behavior</i>: A <tt>terminate_handler</tt> shall terminate execution
-of the program without returning to the caller.
-</p></blockquote>
-<p>
-This seems to allow that the function may exit by throwing an
-exception (because word "return" implies a normal return).
-<p/>
-One could argue that words "terminate execution of the program" are sufficient,
-but then why "without returning to the caller" would be mentioned. In
-case such handler throws, noexcept specification in function <tt>std::terminate</tt> 
-is violated, and <tt>std::terminate</tt> would be called recursively - should 
-<tt>std::abort</tt> not be called in case of recursive <tt>std::terminate</tt> 
-call? On the other hand some controlled recursion could be useful, like in the 
-<a href="http://cplusplus.co.il/2010/03/21/catching-uncaught-exceptions-within-terminate/">following technique</a>.
-</p>
-</blockquote>
-
-<p>
-The here mentioned wording changes by N3189 in regard to 18.8.3.4 [terminate] p1 
-were done for a better separation of effects (Effects element) and additional normative 
-wording explanations (Remarks element), there was no meaning change intended. Further,
-there was already a defect existing in the previous wording, which was not updated when 
-further situations where defined, when <tt>std::terminate</tt> where supposed to be 
-called by the implementation. 
-<p/>
-The part
-<p/>
-"in effect immediately after evaluating the throw-expression"
-<p/>
-should be removed and the quoted reference to 18.8.3.1 [terminate.handler] 
-need to be part of the effects element where it refers to the current <tt>terminate_handler</tt> 
-function, so should be moved just after
-<p/>
-"Effects: Calls the current <tt>terminate_handler</tt> function."
-<p/>
-It seems ok to allow a termination handler to exit via an exception, but the 
-suggested idiom should better be replaced by a more simpler one based on
-evaluating the current exception pointer in the terminate handler, e.g.
-</p>
-<blockquote><pre>
-void our_terminate (void) {
-  std::exception_ptr p = std::current_exception();
-  if (p) {
-    ... // OK to rethrow and to determine it's nature
-  } else {
-    ... // Do something else
-  }
-}
-</pre></blockquote>
-
-<p><i>[2011-12-09: Daniel comments]</i></p>
-
-
-<p>
-A related issue is <a href="lwg-active.html#2111">2111</a>.
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-There is an interaction with Core issues in this area that Jens is already supplying wording
-for.  Review this issue again once Jens wording is available.
-</p>
-<p>
-Alisdair to review clause 15.5 (per Jens suggestion) and recommend any changes, then integrate
-Jens wording into this issue.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2089"></a>2089. <tt>std::allocator::construct</tt> should use uniform initialization</h3>
-<p><b>Section:</b> 20.7.9.1 [allocator.members] <b>Status:</b> <a href="lwg-active.html#EWG">EWG</a>
- <b>Submitter:</b> David Krauss <b>Opened:</b> 2011-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.members">issues</a> in [allocator.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#EWG">EWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-When the <tt>EmplaceConstructible</tt> (23.2.1 [container.requirements.general]&#47;13) requirement is used 
-to initialize an object, direct-initialization occurs. Initializing an aggregate or using a <tt>std::initializer_list</tt> 
-constructor with emplace requires naming the initialized type and moving a temporary. This is a result of 
-<tt>std::allocator::construct</tt> using direct-initialization, not list-initialization (sometimes called "uniform 
-initialization") syntax.
-<p/>
-Altering <tt>std::allocator&lt;T&gt;::construct</tt> to use list-initialization would, among other things, give 
-preference to <tt>std::initializer_list</tt> constructor overloads, breaking valid code in an unintuitive and 
-unfixable way &mdash; there would be no way for <tt>emplace_back</tt> to access a constructor preempted by 
-<tt>std::initializer_list</tt> without essentially reimplementing <tt>push_back</tt>.
-</p>
-<blockquote><pre>
-std::vector&lt;std::vector&lt;int&gt;&gt; v;
-v.emplace_back(3, 4); // v[0] == {4, 4, 4}, not {3, 4} as in list-initialization
-</pre></blockquote>
-<p>
-The proposed compromise is to use SFINAE with <tt>std::is_constructible</tt>, which tests whether direct-initialization 
-is well formed. If <tt>is_constructible</tt> is false, then an alternative <tt>std::allocator::construct</tt> overload 
-is chosen which uses list-initialization. Since list-initialization always falls back on direct-initialization, the 
-user will see diagnostic messages as if list-initialization (uniform-initialization) were always being used, because 
-the direct-initialization overload cannot fail.
-<p/>
-I can see two corner cases that expose gaps in this scheme. One occurs when arguments intended for 
-<tt>std::initializer_list</tt> satisfy a constructor, such as trying to emplace-insert a value of <tt>{3, 4}</tt> in 
-the above example. The workaround is to explicitly specify the <tt>std::initializer_list</tt> type, as in 
-<tt>v.emplace_back(std::initializer_list&lt;int&gt;(3, 4))</tt>. Since this matches the semantics as if 
-<tt>std::initializer_list</tt> were deduced, there seems to be no real problem here.
-<p/>
-The other case is when arguments intended for aggregate initialization satisfy a constructor. Since aggregates cannot 
-have user-defined constructors, this requires that the first nonstatic data member of the aggregate be implicitly 
-convertible from the aggregate type, and that the initializer list have one element. The workaround is to supply an 
-initializer for the second member. It remains impossible to in-place construct an aggregate with only one nonstatic 
-data member by conversion from a type convertible to the aggregate's own type. This seems like an acceptably small 
-hole.
-<p/>
-The change is quite small because <tt>EmplaceConstructible</tt> is defined in terms of whatever allocator is specified, 
-and there is no need to explicitly mention SFINAE in the normative text.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-There appears to be a real concern with initializing aggregates, that can be performed only
-using brace-initialization.  There is little interest in the rest of the issue, given the existence
-of 'emplace' methods in C++11.
-</p>
-<p>
-Move to Open, to find an acceptable solution for intializing aggregates.  There is the potential
-that EWG may have an interest in this area of language consistency as well.
-</p>
-
-<p><i>[2013-10-13, Ville]</i></p>
-
-<p>
-This issue is related to <a href="lwg-active.html#2070">2070</a>.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Move to EWG, Ville to write a paper. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 20.7.9.1 [allocator.members] p12 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class U, class... Args&gt;
-  void construct(U* p, Args&amp;&amp;... args);
-</pre><blockquote>
-<p>
-12 <i>Effects</i>: <tt>::new((void *)p) U(std::forward&lt;Args&gt;(args)...)</tt> <ins>if <tt>is_constructible&lt;U, Args...&gt;::value</tt> 
-is <tt>true</tt>, else <tt>::new((void *)p) U{std::forward&lt;Args&gt;(args)...}</tt></ins>
-</p>
-</blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2095"></a>2095. <tt>promise</tt> and <tt>packaged_task</tt> missing constructors needed for uses-allocator construction</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise], 30.6.9 [futures.task] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-11-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This example is ill-formed according to C++11 because <tt>uses_allocator&lt;promise&lt;R&gt;, A&gt;::value</tt> is true, but
-<tt>is_constructible&lt;promise&lt;R&gt;, A, promise&lt;R&gt;&amp;&amp;&gt;::value</tt> is false. Similarly for <tt>packaged_task</tt>.
-</p>
-<blockquote><pre>
-#include &lt;future&gt;
-#include &lt;memory&gt;
-#include &lt;tuple&gt;
-
-using namespace std;
-
-typedef packaged_task&lt;void()&gt; task;
-typedef promise&lt;void&gt; prom;
-allocator&lt;task&gt; a;
-
-tuple&lt;task, prom&gt; t1{ allocator_arg, a };
-tuple&lt;task, prom&gt; t2{ allocator_arg, a, task{}, prom{} };
-</pre></blockquote>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-This is an allocator issue, and should be dealt with directly by LWG.
-</p>
-
-<p><i>[2013-03-06]</i></p>
-
-
-<p>
-Jonathan suggests to make the new constructors non-explicit and makes some representational improvements.
-</p>
-
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Move to deferred.
-</p>
-<p>
-This issue has much in common with similar problems with <tt>std::function</tt> that are being addressed
-by the polymorphic allocators proposal currently under evaluation in LEWG.  Defer further discussion on
-this topic until the final outcome of that paper and its proposed resolution is known.
-</p>
-
-<p><i>[2014-02-20 Re-open Deferred issues as Priority 4]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This wording is relative to the FDIS.]</i></p>
-
-
-<ol>
-<li><p>Add to 30.6.5 [futures.promise], class template <tt>promise</tt> synopsis, 
-as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class R&gt;
-  class promise {
-  public:
-    promise();
-    template &lt;class Allocator&gt;
-    promise(allocator_arg_t, const Allocator&amp; a);
-    <ins>template &lt;class Allocator&gt;
-    promise(allocator_arg_t, const Allocator&amp; a, promise&amp;&amp; rhs) noexcept;</ins>
-    promise(promise&amp;&amp; rhs) noexcept;
-    promise(const promise&amp; rhs) = delete;
-    ~promise();	
-    [&hellip;]
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 30.6.5 [futures.promise] as indicated:</p>
-
-<blockquote><pre>
-promise(promise&amp;&amp; rhs) noexcept;
-<ins>template &lt;class Allocator&gt;
-promise(allocator_arg_t, const Allocator&amp; a, promise&amp;&amp; rhs) noexcept;</ins>
-</pre><blockquote>
-<p>
--5- <i>Effects</i>: constructs a new <tt>promise</tt> object and transfers ownership of 
-the shared state of <tt>rhs</tt> (if any) to the newly-constructed object.
-<p/>
--6- <i>Postcondition</i>: <tt>rhs</tt> has no shared state.
-<p/>
-<ins>-?- [<i>Note</i>: <tt>a</tt> is not used &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote></blockquote>
-
-</li>
-
-<li><p>Add to 30.6.9 [futures.task], class template <tt>packaged_task</tt> synopsis, 
-as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class&gt; class packaged_task; // <i>undefined</i>
-
-  template&lt;class R, class... ArgTypes&gt;
-  class packaged_task&lt;R(ArgTypes...)&gt; {
-  public:
-    // construction and destruction
-    packaged_task() noexcept;
-    <ins>template &lt;class Allocator&gt;
-      packaged_task(allocator_arg_t, const Allocator&amp; a) noexcept;</ins>
-    template &lt;class F&gt;
-      explicit packaged_task(F&amp;&amp; f);
-    template &lt;class F, class Allocator&gt;
-      explicit packaged_task(allocator_arg_t, const Allocator&amp; a, F&amp;&amp; f);
-    ~packaged_task();
-	
-    // no copy
-    packaged_task(const packaged_task&amp;) = delete;
-    <ins>template&lt;class Allocator&gt;
-      packaged_task(allocator_arg_t, const Allocator&amp; a, const packaged_task&amp;) = delete;</ins>
-    packaged_task&amp; operator=(const packaged_task&amp;) = delete;
-    
-    // move support
-    packaged_task(packaged_task&amp;&amp; rhs) noexcept;
-    <ins>template &lt;class Allocator&gt;
-      packaged_task(allocator_arg_t, const Allocator&amp; a, packaged_task&amp;&amp; rhs) noexcept;</ins>
-    packaged_task&amp; operator=(packaged_task&amp;&amp; rhs) noexcept;
-    void swap(packaged_task&amp; other) noexcept;
-    [&hellip;]
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 30.6.9.1 [futures.task.members] as indicated:</p>
-
-<blockquote><pre>
-packaged_task() noexcept;
-<ins>template &lt;class Allocator&gt;
-  packaged_task(allocator_arg_t, const Allocator&amp; a) noexcept;</ins>
-</pre><blockquote>
-<p>
--1- <i>Effects</i>: constructs a <tt>packaged_task</tt> object with no shared state and no stored task.
-<p/>
-<ins>-?- [<i>Note</i>: <tt>a</tt> is not used &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote></blockquote>
-<p>[&hellip;]</p>
-<blockquote><pre>
-packaged_task(packaged_task&amp;&amp; rhs) noexcept;
-<ins>template &lt;class Allocator&gt;
-  packaged_task(allocator_arg_t, const Allocator&amp; a, packaged_task&amp;&amp; rhs) noexcept;</ins>
-</pre><blockquote>
-<p>
--5- <i>Effects</i>: constructs a new <tt>packaged_task</tt> object and transfers ownership of <tt>rhs</tt>'s 
-shared state to <tt>*this</tt>, leaving <tt>rhs</tt> with no shared state. Moves the stored task from <tt>rhs</tt> 
-to <tt>*this</tt>.
-<p/>
--6- <i>Postcondition</i>: <tt>rhs</tt> has no shared state.
-<p/>
-<ins>-?- [<i>Note</i>: <tt>a</tt> is not used &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote></blockquote>
-
-</li>
-</ol>
-
-<blockquote><pre>
-</pre><blockquote>
-<p>
-</p></blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2101"></a>2101. Some transformation types can produce impossible types</h3>
-<p><b>Section:</b> 20.10.7 [meta.trans] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-11-18 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Table 53 &mdash; "Reference modifications" says in regard to the type trait 
-<tt>add_lvalue_reference</tt> (emphasize mine)
-</p>
-
-<blockquote>
-<p>
-If <tt>T</tt> names an object or <strong>function</strong> type then the member typedef type
-shall name <tt>T&amp;</tt>;
-</p>
-</blockquote>
-
-<p>
-The problem with this specification is that function types with <i>cv</i>-qualifier or <i>ref</i>-qualifier, 
-like
-</p>
-<blockquote><pre>
-void() const
-void() &amp;
-</pre></blockquote>
-<p>
-are also affected by the first part of the rule, but this would essentially mean, that
-instantiating <tt>add_lvalue_reference</tt> with such a type would attempt to form
-a type that is not defined in the C++ type system, namely
-</p>
-<blockquote><pre>
-void(&amp;)() const
-void(&amp;)() &amp;
-</pre></blockquote>
-<p>
-The general policy for <i>TransformationTrait</i>s is to define always some meaningful 
-mapping type, but this does not hold for <tt>add_lvalue_reference</tt>, <tt>add_rvalue_reference</tt>,
-and in addition to these two for <tt>add_pointer</tt> as well. The latter one would 
-attempt to form the invalid types
-</p>
-<blockquote><pre>
-void(*)() const
-void(*)() &amp;
-</pre></blockquote>
-<p>
-A possible reason why those traits were specified in this way is that in C++03 (and that means
-for TR1), <i>cv</i>-qualifier were underspecified in the core language and several compilers
-just ignored them during template instantiations. This situation became fixed by adopting
-CWG issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#295">295</a> and 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#547">547</a>.
-<p/>
-While there is possibly some core language clarification needed (see reflector messages
-starting from c++std-core-20740), it seems also clear that the library should fix the
-specification. The suggested resolution follows the style of the specification of the
-support concepts <tt>PointeeType</tt> and <tt>ReferentType</tt> defined in 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>.
-</p>
-
-
-<p><i>[2012-02-10, Kona]</i></p>
-
-<p>
-Move to NAD.
-</p>
-<p>
-These cv- and ref-qualified function types are aberrations in the type system, and do
-not represent any actual entity defined by the language.  The notion of cv- and ref-
-qualification applies only to the implicit <tt>*this</tt> reference in a member function.
-</p>
-<p>
-However, these types can be produced by quirks of template metaprogramming, the question
-remains what the library should do about it.  For example, <tt>add_reference</tt> returns
-the original type if passed a reference type, or a <tt>void</tt> type.  Conversely,
-<tt>add_pointer</tt> will return a pointer to the referenced type when passed a reference.
-</p>
-<p>
-It is most likely that the 'right' answer in any case will depend on the context that the
-question is being asked, in terms of forming these obscure types.  The best the LWG can
-do is allow an error to propagate back to the user, so they can provide their own meaningful
-answer in their context - with additional metaprogramming on their part.  The consensus is
-that if anyone is dangerous enough with templates to get themselves into this problem, they
-will also have the skills to resolve the problem themselves.  This is not going to trip up
-the non-expert developer.
-</p>
-<p>
-Lastly, it was noted that this problem arises only because the language is inconsistent in
-providing us these nonsense types that do no really represent anything in the language.
-There may be some way Core or Evolution could give us a more consistent type system so that
-the LWG does not need to invent an answer at all, should this question need resolving.  This
-is another reason to not specify anything at the LWG trait level at this time, leaving the
-other working groups free to produce the 'right' answer that we can then follow without
-changing the meaning of existing, well-defined programs.
-</p>
-
-<p><i>[2012-02-10, post-Kona]</i></p>
-
-<p>
-Move back to Open. Daniel is concerned that this is not an issue we can simply ignore,
-further details to follow.
-</p>
-
-<p><i>[2012-10-06, Daniel comments]</i></p>
-
-<p>
-This issue really should be resolved as a defect: First, the argument that "forming these obscure types"
-should "allow an error to propagate" is inconsistent with the exact same "obscure type" that would be formed
-when <tt>std::add_lvalue_reference&lt;void&gt;</tt> wouldn't have an extra rules for <tt>void</tt> types, which
-also cannot form references. The originally proposed resolution attempts to apply the same solution for the same 
-common property of <tt>void</tt> types and function types with <em>cv</em>-qualifiers or <em>ref</em>-qualifier.
-These functions had the property of <tt>ReferentType</tt> during concept time (see 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#749">CWG 749</a> bullet three for the final 
-wording).
-<p/>
-Core issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1417">CWG 1417</a> has clarified
-that any attempt to form a reference of a pointer to a function type with <em>cv</em>-qualifiers or 
-<em>ref</em>-qualifier is ill-formed. Unfortunately, many compilers don't implement this yet.
-<p/>
-I also would like to warn about so-called "obscure" types: The problem is that these can occur as the side effect
-of finding a best match overload of function templates, where this type is exactly correct for one of these
-overloads, but causes a deep (not-sfinae-friendly) error for others where one of these traits are part of the 
-signature.
-<p/>
-Existing experience with <tt>void</tt> types shows, that this extra rule is not so unexpected. Further, any usage 
-of the result types of these traits as argument types or return types of functions would make these ill-formed 
-(and in a template context would be sfinaed away), so the expected effects are rarely unnoticed. Checking
-all existing explicit usages of the traits <tt>add_rvalue_reference</tt>, <tt>add_lvalue_reference</tt>, and
-<tt>add_pointer</tt> didn't show any example where the error would be silent: <tt>add_rvalue_reference</tt>
-is used to specify the return value of <tt>declval()</tt> and the instantiation of <tt>declval&lt;void() const&gt;()</tt>
-would be invalid, because of the attempt to return a function type. Similarly, <tt>add_lvalue_reference</tt>
-is used to specify the return type of <tt>unique_ptr&lt;T&gt;::operator*()</tt>. Again, any instantiation with 
-<tt>void() const</tt> wouldn't remain unnoticed. The trait <tt>add_pointer</tt> is used to specify the trait
-<tt>std::decay</tt> and this is an interesting example, because it is well-formed when instantiated with <tt>void</tt> 
-types, too, and is heavily used throughout the library specification. All use-cases would not be negatively affected 
-by the suggested acceptance of function types with <em>cv</em>-qualifiers or <em>ref</em>-qualifier, because they involve 
-types that are either function arguments, function parameters or types were references are formed from.
-<p/>
-The alternative would be to add an additional extra rule that doesn't define a type member 'type' when
-we have a function type with <em>cv</em>-qualifiers or <em>ref</em>-qualifier. This is better than the
-current state but it is not superior than the proposal to specify the result as the original type, because
-both variants are sfinae-friendly. A further disadvantage of the "non-type" approach here would be that any
-usage of <tt>std::decay</tt> would require special protection against these function types, because 
-instantiating <tt>std::decay&lt;void() const&gt;</tt> again would lead to a deep, sfinae-unfriendly error.
-<p/>
-The following example demonstrates the problem: Even though the second <tt>f</tt> template is the best final
-match here, the first one will be instantiated. During that process <tt>std::decay&lt;T&gt;::type</tt>
-becomes instantiated as well and will raise a deep error, because as part of the implementation the trait
-<tt>std::add_pointer&lt;void() const&gt;</tt> becomes instantiated:
-</p>
-<blockquote><pre>
-#include &lt;type_traits&gt;
-
-template&lt;class T&gt;
-typename std::decay&lt;T&gt;::type f(T&amp;&amp; t);
-
-template&lt;class T, class U&gt;
-U f(U u);
-
-int main() {
-  f&lt;void() const&gt;(0);
-}
-</pre></blockquote>
-<p>
-When the here proposed resolution would be applied this program would be well-formed and selects the expected function.
-</p>
-
-<p>
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Change Table 53 &mdash; "Reference modifications" in 20.10.7.2 [meta.trans.ref] as indicated:</p>
-
-<table border="1">
-<caption>Table 53 &mdash; Reference modifications</caption>
-<tr>
-<th>Template</th>
-<th>Comments</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct<br/>
-add_lvalue_reference;</tt>
-</td>
-<td>
-If <tt>T</tt> names an object <tt>type</tt> or <ins>if <tt>T</tt> names a</ins> function type <ins>that does not have<br/>
-<i>cv</i>-qualifiers or a <i>ref</i>-qualifier</ins> then the member typedef <tt>type</tt><br/>
-shall name <tt>T&amp;</tt>; otherwise, if <tt>T</tt> names a type "rvalue reference to <tt>T1</tt>" then<br/>
-the member typedef <tt>type</tt> shall name <tt>T1&amp;</tt>; otherwise, <tt>type</tt> shall name <tt>T</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct<br/>
-add_rvalue_reference;</tt>
-</td>
-<td>
-If <tt>T</tt> names an object <tt>type</tt> or <ins>if <tt>T</tt> names a</ins> function type <ins>that does not have<br/>
-<i>cv</i>-qualifiers or a <i>ref</i>-qualifier</ins> then the member typedef <tt>type</tt><br/>
-shall name <tt>T&amp;&amp;</tt>; otherwise, <tt>type</tt> shall name <tt>T</tt>. [<i>Note</i>: This rule reflects<br/>
-the semantics of reference collapsing (8.3.2 [dcl.ref]). For example, when a type <tt>T</tt><br/>
-names a type <tt>T1&amp;</tt>, the type <tt>add_rvalue_reference&lt;T&gt;::type</tt> is not an<br/>
-rvalue reference. &mdash; <i>end note</i>]
-</td>
-</tr>
-</table>
-
-</li>
-
-<li><p>Change Table 56 &mdash; "Pointer modifications" in 20.10.7.5 [meta.trans.ptr] as indicated:</p>
-
-<table border="1">
-<caption>Table 56 &mdash; Pointer modifications</caption>
-<tr>
-<th>Template</th>
-<th>Comments</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct add_pointer;</tt>
-</td>
-<td>
-<del>The member typedef <tt>type</tt> shall name the same type as</del><br/>
-<ins>If <tt>T</tt> names a function type that has <i>cv</i>-qualifiers or a <i>ref</i>-qualifier<br/>
-then the member typedef <tt>type</tt> shall name <tt>T</tt>; otherwise, it<br/> 
-shall name the same type as</ins> <tt>remove_reference&lt;T&gt;::type*</tt>.
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-</blockquote>
-
-<p>
-The following revised proposed resolution defines - in the absence of a proper core language definition - a new
-term <em>referenceable type</em> as also suggested by the resolution for LWG <a href="lwg-defects.html#2196">2196</a> as an
-umbrella of the negation of <tt>void</tt> types and function types with <em>cv</em>-qualifiers or <em>ref</em>-qualifier. 
-This simplifies and minimizes the requires wording changes.
-</p>
-
-<p><i>[
-2013-09-26, Daniel synchronizes wording with recent draft
-]</i></p>
-
-
-<p><i>[
-2014-05-18, Daniel synchronizes wording with recent draft and comments
-]</i></p>
-
-
-<p>
-My impression is that this urgency of action this issue attempts to point out is partly caused by the fact that even for
-the most recent C++14 compilers the implementations have just recently changed to adopt the core wording. Examples for these
-are bug reports to <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61182">gcc</a> or 
-<a href="http://llvm.org/bugs/show_bug.cgi?id=19742">clang</a>.
-<p/>
-Occasionally the argument has been presented to me that the suggested changes to the traits affected by this issue would
-lead to irregularities compared to other traits, especially the lack of guarantee that <tt>add_pointer</tt> might not return
-a pointer or that <tt>add_(l/r)value_reference</tt> might not return a reference type. I would like to point out that this
-kind of divergence is actually already present in most <tt>add/remove</tt> traits: For example, we have no guarantee that
-<tt>add_const</tt> returns a const type (Reference types or function types get special treatments), or that <tt>add_rvalue_reference</tt>
-returns an rvalue-reference (e.g. when applied to an lvalue-reference type).
-<p/>
-Zhihao Yuan brought to my attention, that the originally proposing paper 
-<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2002/n1345.html">N1345</a> carefully discussed these design choices.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: move to Ready: in favor: 16, opposed: 0, abstain: 1<br/>
-STL: have libstdc++, libc++ implemented this? we would need to change your implementation<br/>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change Table 53 &mdash; "Reference modifications" in 20.10.7.2 [meta.trans.ref] as indicated:</p>
-
-<table border="1">
-<caption>Table 53 &mdash; Reference modifications</caption>
-<tr>
-<th>Template</th>
-<th>Comments</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct<br/>
-add_lvalue_reference;</tt>
-</td>
-<td>
-If <tt>T</tt> names <del>an object or function type</del><ins>a referenceable type</ins><br/>
-then the member typedef <tt>type</tt><br/>
-shall name <tt>T&amp;</tt>; otherwise, <del>if <tt>T</tt> names a type "rvalue reference to <tt>T1</tt>" then<br/>
-the member typedef <tt>type</tt> shall name <tt>T1&amp;</tt>; otherwise,</del> <tt>type</tt> shall name <tt>T</tt>.<br/>
-<ins>[<i>Note</i>: This rule reflects the semantics of reference collapsing (8.3.2 [dcl.ref]). &mdash; <i>end note</i>]</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct<br/>
-add_rvalue_reference;</tt>
-</td>
-<td>
-If <tt>T</tt> names <del>an object or function type</del><ins>a referenceable type</ins><br/>
-then the member typedef <tt>type</tt><br/>
-shall name <tt>T&amp;&amp;</tt>; otherwise, <tt>type</tt> shall name <tt>T</tt>. [<i>Note</i>: This rule reflects<br/>
-the semantics of reference collapsing (8.3.2 [dcl.ref]). For example, when a type <tt>T</tt><br/>
-names a type <tt>T1&amp;</tt>, the type <tt>add_rvalue_reference_t&lt;T&gt;</tt> is not an<br/>
-rvalue reference. &mdash; <i>end note</i>]
-</td>
-</tr>
-</table>
-
-</li>
-
-<li><p>Change Table 56 &mdash; "Pointer modifications" in 20.10.7.5 [meta.trans.ptr] as indicated:</p>
-
-<table border="1">
-<caption>Table 56 &mdash; Pointer modifications</caption>
-<tr>
-<th>Template</th>
-<th>Comments</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct add_pointer;</tt>
-</td>
-<td>
-<ins>If <tt>T</tt> names a referenceable type or a (possibly <i>cv</i>-qualified) <tt>void</tt> type then<br/></ins>
-<del>T</del><ins>t</ins>he member typedef <tt>type</tt> shall name the same type as<br/>
-<tt>remove_reference_t&lt;T&gt;*</tt><ins>; otherwise, <tt>type</tt> shall name <tt>T</tt></ins>.
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2111"></a>2111. Which <tt>unexpected</tt>&#47;<tt>terminate</tt> handler is called from the exception handling runtime?</h3>
-<p><b>Section:</b> 18.8.3.4 [terminate], D.8.4 [unexpected] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-12-06 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#terminate">issues</a> in [terminate].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Prior to N3242, modified by N3189, we said this about <tt>unexpected()</tt>:
-</p>
-
-<blockquote><p>
-<i>Effects</i>: Calls the <tt>unexpected_handler</tt> function in effect immediately after evaluating the throw-expression 
-(D.13.1), if called by the implementation, or calls the current <tt>unexpected_handler</tt>, if called by the program.
-</p></blockquote>
-
-<p>
-and this about <tt>terminate()</tt>:
-</p>
-
-<blockquote><p>
-<i>Effects</i>: Calls the <tt>terminate_handler</tt> function in effect immediately after evaluating the throw-expression (18.8.3.1), 
-if called by the implementation, or calls the current <tt>terminate_handler</tt> function, if called by the program.
-</p></blockquote>
-
-<p>
-But now in both places we say:
-</p>
-
-<blockquote><p>
-Calls the current <tt>unexpected_handler</tt> function.
-</p></blockquote>
-
-<p>
-and:
-</p>
-
-<blockquote><p>
-Calls the current <tt>terminate</tt> function.
-</p></blockquote>
-
-<p>
-The difference is that in C++98&#47;03 if a destructor reset a handler during stack unwinding, that new handler was 
-not called if the unwinding later led to <tt>unexpected()</tt> or <tt>terminate()</tt> being called.  But these new 
-words say that this new handler <em>is</em> called. This is an ABI-breaking change in the way exceptions are handled.  
-Was this change intentional?
-<p/>
-N3189 was mainly about introducing exception safety and getters for the handlers. I don't recall the issue of 
-<em>which</em> handler gets called being part of the discussion.
-<p/>
-I propose that we revert to the C++98&#47;03 behavior in this regard, lest ABI's such as the Itanium ABI are invalidated.  
-A mechanical way to do this is to revert bullets 9 and 12 of N3189.
-</p>
-
-<p><i>[2011-12-09: Daniel comments]</i></p>
-
-
-<p>
-There was no such semantic change intended. It was an unfortunate side effect when trying to better separate different
-responsibilities in the previous wording.
-<p/>
-A related issue is <a href="lwg-active.html#2088">2088</a>.
-</p>
-
-<p><i>[2012-01-30: Howard comments]</i></p>
-
-
-<p>
-The C++98&#47;03 wording is somewhat ambiguous:
-</p>
-<blockquote><p>
-Calls the terminate_handler function in effect immediately after evaluating the throw-expression...
-</p></blockquote>
-<p>
-There are potentially two throw-expressions being referred to here, and it is not clear if this sentence is referring to just the first or both:
-</p>
-<ol>
-<li><tt>throw <i>assignment-expression</i>;</tt></li>
-<li><tt>throw;</tt></li>
-</ol>
-<p>
-There is ample evidence in current implementations that it is understood that <i>only</i> 
-1. was meant. But clearly both 1 and 2 could have been meant. We need a clarification. Does an execution 
-of a rethrow (throw;) update which handlers can potentially be called?
-</p>
-<ol>
-<li value="2"><tt>throw;</tt> // update handlers to get_xxx()?</li>
-</ol>
-<p>
-My opinion: Go with existing practice, and clarify what that practice is, if surveys find that everyone 
-does the same thing. Gcc 4.2 and Apple do 1. only, and do not reset the handlers to the current handlers 
-on throw;.
-<p/>
-If current practice is not unanimously one way or the other, I have no strong opinion. I have not found 
-a motivating use case for the use of any particular handler. Most applications set the handlers once at 
-the beginning of the program and then do not change them, and so will not be impacted by whatever decision 
-is made here.
-</p>
-
-<p><i>[2014-02-15 Issaquah: Move to Review]</i></p>
-
-
-<p>
-STL: Original change in N3242 came from trying to make set/get exception handler thread safe.
-The issue requests we revert to 98/03, which Howard notes was already ambiguous.
-</p>
-
-<p>
-Alisdair: Issue author thinks we made this change in C++11 without taking into account Itanium ABI,
-which cannot implement the new semantic (without breaking compatibility).
-</p>
-
-<p>
-Alisdair: original change in N3242 was trying to solve the problem of which handler is called when
-the handler is changing in another thread, but this turns out to be an issue in even the
-single-threaded case.
-</p>
-
-<p>
-Pablo: despite wanting to make it thread safe, you are still changing a global
-</p>
-
-<p>
-STL and Marshall confirm that there is real implementation divergance on the question, so
-we cannot pick just one behavior if we want to avoid breaking exisitng practice.
-</p>
-
-<p>
-Alisdair: not sure who to talk to across all library vendors to fix, need more information
-for progress (IBM and Sun)
-</p>
-
-<p>
-STL: Howard did identify a problem with the wording as well: <tt>throw;</tt> is a throw expression,
-but we typically want to re-activate the in-flight exception, not throw a new copy.
-</p>
-
-<p>
-Pablo: wondering why all of this wording is here (N3189)? It looks like we were trying to handle another thread
-changing handler between a <tt>throw</tt> and <tt>terminate</tt> in current thread.
-</p>
-
-<p>
-Alisdair: Anything working with exception handling should have used only thread-local resources, but that ship has sailed.
-We must account for the same exception object being re-thrown in multiple threads simultaneously, with no happens-before
-relationships.
-</p>
-
-<p>
-Room: Why on earth would we care about exactly which way the program dies when the terminate calls are racing?!
-</p>
-
-<p>
-Pablo: Reasonable to set the handler once (in <tt>main</tt>) and never change it.
-</p>
-
-<p>
-Pablo: If willing to put lots of work into this, you could say at point of a <tt>throw</tt> these handlers become
-thread local but that is overkill.  We want destructors to be able to change these handlers (if only for backwards
-compatibility).
-</p>
-
-<p>
-Alisdair: the <i>&quot;do it right&quot;</i> is to do something per thread, but that is more work than vendors will want to do.
-Want to say setting handler while running multiple threads is unspecified.
-</p>
-
-<p>
-Pablo: possible all we need to do is say it is always the current handler
-</p>
-
-<p>
-STL: That prevents an implementation or single threaded program from calling a new handler after a <tt>throw</tt>,
-probably should say if <tt>terminate</tt> is called <i>by the implementation</i> (during EH), any handler that was
-current can be called.  Leaves it up in the air as to when the handler is captured, supporting the diverging
-existing practices.
-</p>
-
-<p>
-Jeffrey: use <i>happens before</i> terminology to avoid introducing races
-</p>
-
-<p>
-STL: Give this to concurrency?
-</p>
-
-<p>
-Jeffrey: It is in clause 18, generally LWG and not SG1 territory.
-</p>
-
-<p>
-Alisdair: Concerned about introducing <i>happens before</i> into fundamental exception handling since it would affect
-single threaded performance as well.  Want to give to concurrency or LEWG/EWG, we are into language design here.
-</p>
-
-<p>
-Jeffrey: suspect LEWG won't have a strong opinion.  I don't want it to be ours!!!
-</p>
-
-<p>
-Pablo: Might be a case for core>
-</p>
-
-<p>
-Alisdair: Would be happier if at least one core person were in the discussion.
-</p>
-
-<p>
-STL: No sympathy for code that tries to guard the terminate handler.
-</p>
-
-<p>
-Alisdair: We are back to set it once, globally.  Want to be clear that if <tt>set_terminate</tt> is called just once,
-when EH is not active, and never changed again, then the user should get the handler from that specific call.
-</p>
-
-<p>
-AlisdairM: "unspecified which handler is called if an exception is active when <tt>set_terminate</tt> is called."
-This supports existing behaviors, and guarantees which handler is called in non-conentious situations.  Implicit
-assumption that a funtion becomes a handler only after a successful call to <tt>set_handler</tt>, so we are not
-leaving a door open to the implementation inventing entirely new handlers of its own.
-</p>
-
-<p>
-<i>Consensus.</i>
-</p>
-
-<p>
-Poll to confirm status as P1: new consensus is P3
-</p>
-
-<p>
-<i>Action:</i> Alisdair provides new wording.  Drop from P1 to P3, and move to Review.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-HH: we accidentally changed semantics of which handler gets called during exception unwinding. This was attempt to put it back. 
-Discovered implementations don't really do anything. [&hellip;] Fine with unspecified behavior to move this week.<br/>
-STL/MC: observed different behavior<br/>
-STL: legitimizes all implementations and tells users to not do this<br/>
-Move to ready? 9/0/1 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Amend 18.8.3.4 [terminate] as indicated:
-</p>
-
-<tt>[[noreturn]] void terminate() noexcept;</tt>
-<blockquote><p>
-<i>Remarks:</i> Called by the implementation when exception handling must be abandoned for any of several reasons (15.5.1)
-<del>, in effect immediately after throwing the exception</del>. May also be called directly by the program.
-</p></blockquote>
-
-<blockquote><p>
-<i>Effects:</i> <ins>Calls a <tt>terminate_handler</tt> function. It is unspecified which <tt>terminate_handler</tt> function will
-be called if an exception is active during a call to <tt>set_terminate</tt>. Otherwise c</ins><del>C</del>alls the current
-<tt>terminate_handler</tt> function. [<i>Note:</i> A default <tt>terminate_handler</tt> is always considered a callable handler in
-this context. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-Amend D.8.4 [unexpected] as indicated:
-</p>
-
-<tt>[[noreturn]] void unexpected();</tt>
-<blockquote><p>
-Remarks: Called by the implementation when a function exits via an exception not allowed by its <i>exception-specification</i>
-(15.5.2)<del>, in effect after evaluating the throw-expression (D.11.1)</del>. May also be called directly by the program.
-</p></blockquote>
-
-<blockquote><p>
-<i>Effects:</i> <ins>Calls an <tt>unexpected_handler</tt> function. It is unspecified which <tt>unexpected_handler</tt>
-function will be called if an exception is active during a call to <tt>set_unexpected</tt>. Otherwise c</ins><del>C</del>alls the current 
-<tt>unexpected_handler</tt> function. [<i>Note:</i> A default <tt>unexpected_handler</tt> is always considered a callable handler in 
-this context. &mdash; <i>end note</i>] 
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2114"></a>2114. Incorrect "<em>contextually</em> convertible to <tt>bool</tt>" requirements</h3>
-<p><b>Section:</b> 17.6.3.3 [nullablepointer.requirements], 24.2.3 [input.iterators], 24.2.7 [random.access.iterators], 25.1 [algorithms.general], 25.4 [alg.sorting], 30.2.1 [thread.req.paramname] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-12-09 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-As of 17.6.3.1 [utility.arg.requirements] Table 17&#47;18, the return types of the expressions
-</p>
-<blockquote><pre>
-a == b
-</pre></blockquote>
-<p>
-or
-</p>
-<blockquote><pre>
-a &lt; b
-</pre></blockquote>
-<p>
-for types satisfying the <tt>EqualityComparable</tt> or <tt>LessThanComparable</tt>
-types, respectively, are required to be "convertible to <tt>bool</tt>" which corresponds to
-a copy-initialization context. But several newer parts of the library that refer to 
-such contexts have lowered the requirements taking  advantage of the new terminology of 
-"<em>contextually</em> convertible to <tt>bool</tt>" instead, which corresponds to a 
-direct-initialization context (In addition to "normal" direct-initialization constructions, 
-operands of logical operations as well as <tt>if</tt> or <tt>switch</tt> conditions also 
-belong to this special context).
-<p/>
-One example for these new requirements are input iterators which satisfy <tt>EqualityComparable</tt> 
-but also specify that the expression
-</p>
-<blockquote><pre>
-a != b
-</pre></blockquote>
-<p>
-shall be just "<strong>contextually</strong> convertible to <tt>bool</tt>". The same discrepancy 
-exists for requirement set <tt>NullablePointer</tt> in regard to several equality-related expressions.
-<p/>
-For random access iterators we have
-</p>
-<blockquote><p>
-<tt>a &lt; b</tt>      contextually convertible to <tt>bool</tt>
-</p></blockquote>
-<p>
-as well as for all derived comparison functions, so strictly speaking we could have a random access 
-iterator that does not satisfy the <tt>LessThanComparable</tt> requirements, which looks like an
-artifact to me.
-<p/>
-Even if we keep with the existing requirements based on <tt>LessThanComparable</tt> or
-<tt>EqualityComparable</tt> we still would have the problem that some current specifications 
-are actually  based on the assumption of implicit convertibility instead of "explicit convertibility", e.g. 
-20.8.1.5 [unique.ptr.special] p3:
-</p>
-<blockquote><pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-bool operator!=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-<blockquote>
-<p>
--3- <i>Returns</i>: <tt>x.get() != y.get()</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-Similar examples exist in 20.8.1.2.2 [unique.ptr.single.dtor] p2, 20.8.1.2.3 [unique.ptr.single.asgn] p9,
-20.8.1.2.4 [unique.ptr.single.observers] p1+3+8, etc.
-<p/>
-In all these places the expressions involving comparison functions (but <em>not</em> those of the conversion 
-of a <tt>NullablePointer</tt> to <tt>bool</tt>!) assume to be "convertible to <tt>bool</tt>". I think this
-is a very natural assumption and all delegations of the comparison functions of some type <tt>X</tt> to some
-other API type <tt>Y</tt> in third-party code does so assuming that copy-initialization semantics will
-just work.
-<p/>
-The actual reason for using the newer terminology can be rooted back to LWG <a href="lwg-defects.html#556">556</a>. My hypotheses 
-is that the resolution of that issue also needs a slight correction. Why so?
-<p/>
-The reason for opening that issue were worries based on the previous "convertible to <tt>bool</tt>"
-wording. An expressions like "<tt>!pred(a, b)</tt>" might not be well-formed in those situations, because
-<tt>operator!</tt> might not be accessible or might have an unusual semantics (and similarly for other logical
-operations). This can indeed happen with unusual proxy return types, so the idea was that the evaluation of 
-<tt>Predicate</tt>, <tt>BinaryPredicate</tt> (25.1 [algorithms.general] p8+9), and <tt>Compare</tt> 
-(25.4 [alg.sorting] p2) should be defined based on contextual conversion to <tt>bool</tt>. 
-Unfortunately this <em>alone</em> is not sufficient: In addition, I think, we <em>also</em> want the predicates 
-to be (implicitly) convertible to <tt>bool</tt>! Without this wording, several conditions are plain wrong, 
-e.g. 25.2.5 [alg.find] p2, which talks about "<tt>pred(*i) != false</tt>" (<tt>find_if</tt>) and 
-"<tt>pred(*i) == false</tt>" (<tt>find_if_not</tt>). These expressions are not within a boolean context! 
-<p/>
-While we could simply fix all these places by proper wording to be considered in a "contextual conversion to
-<tt>bool</tt>", I think that this is not the correct solution: Many third-party libraries already refer to
-the previous C++03 <tt>Predicate</tt> definition &mdash; it actually predates C++98 and is as old as the 
-<a href="http://www.sgi.com/tech/stl/Predicate.html">SGI specification</a>. It seems to be a high price to
-pay to switch to direct initialization here instead of fixing a completely different specification problem.
-<p/>
-A final observation is that we have another definition for a <tt>Predicate</tt> in 30.2.1 [thread.req.paramname] p2:
-</p>
-<blockquote><p>
-If a parameter is <tt>Predicate</tt>, <tt>operator()</tt> applied to the actual template argument shall return a value that
-is convertible to <tt>bool</tt>.
-</p></blockquote>
-<p>
-The problem here is not that we have two different definitions of <tt>Predicate</tt> in the standard &mdash; this 
-is confusing, but this fact alone is not a defect. The first (minor) problem is that this definition does not properly 
-apply to function objects that are function pointers, because <tt>operator()</tt> is not defined in a strict sense. 
-But the actually worse second problem is that this wording has the very <tt>same</tt> problem that has originally lead to
-LWG <a href="lwg-defects.html#556">556</a>! We only need to look at 30.5.1 [thread.condition.condvar] p15 to recognice this:
-</p>
-<blockquote><pre>
-while (!pred())
-  wait(lock);
-</pre></blockquote>
-<p>
-The negation expression here looks very familiar to the example provided in LWG <a href="lwg-defects.html#556">556</a> and is sensitive
-to the same "unusual proxy" problem. Changing the 30.2.1 [thread.req.paramname] wording to a corresponding
-"contextual conversion to <tt>bool</tt>" wouldn't work either, because existing specifications rely on "convertible
-to <tt>bool</tt>", e.g. 30.5.1 [thread.condition.condvar] p32+33+42 or 30.5.2 [thread.condition.condvarany] 
-p25+26+32+33.
-<p/>
-To summarize: I believe that LWG <a href="lwg-defects.html#556">556</a> was not completely resolved. A pessimistic interpretation is,
-that even with the current wording based on "contextually convertible to <tt>bool</tt>" the actual problem of that 
-issue has <em>not</em> been fixed. What actually needs to be required here is some normative wording that basically
-expresses something along the lines of:
-</p>
-<blockquote><p>
-The semantics of <em>any</em> contextual conversion to <tt>bool</tt> shall be equivalent to the semantics of 
-any implicit conversion to <tt>bool</tt>.
-</p></blockquote>
-<p>
-This is still not complete without having concepts, but it seems to be a better approximation. Another way of solving
-this issue would be to define a minimum requirements table with equivalent semantics. The proposed wording is a bit
-simpler but attempts to express the same thing.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Agree with Daniel that we potentially broke some C++03 user code, accept the changes striking
-"contextually" from tables.  Stefan to provide revised wording for section 25, and figure out
-changes to section 30.
-</p>
-<p>
-Move to open, and then to Review when updated wording from Stefan is available.
-</p>
-
-<p><i>[2012-10-12, STL comments]</i></p>
-
-
-<ol>
-<li>
-<p>
-The current proposed resolution still isn't completely satisfying. It would certainly be possible for the Standard to 
-require these various expressions to be implicitly and contextually convertible to <tt>bool</tt>, but that would have 
-a subtle consequence (which, I will argue, is undesirable - regardless of the fact that it dates all the way back to 
-C++98/03). It would allow users to provide really wacky types to the Standard Library, with one of two effects:
-</p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>Standard Library implementations would have to go to great lengths to respect such wacky types, essentially using 
-<tt>static_cast&lt;bool&gt;</tt> when invoking any predicates or comparators.
-</p>
-</li>
-
-<li>
-<p>
-Otherwise, such wacky types would be de facto nonportable, because they would make Standard Library implementations 
-explode.
-</p>
-</li>
-</ol>
-
-<p>
-Effect B is the status quo we're living with today. What Standard Library implementations want to do with <tt>pred(args)</tt> 
-goes beyond "<tt>if (pred(args))</tt>" (C++03), contextually converting <tt>pred(args)</tt> to <tt>bool</tt> (C++11), or 
-implicitly and contextually converting <tt>pred(args)</tt> to <tt>bool</tt> (the current proposed resolution). 
-Implementations want to say things like:
-</p>
-
-<blockquote><pre>
-if (pred(args))
-if (!pred(args))
-if (cond &amp;&amp; pred(args))
-if (cond &amp;&amp; !pred(args))
-</pre></blockquote>
-
-<p>
-These are real examples taken from Dinkumware's implementation. There are others that would be realistic 
-("<tt>pred(args) &amp;&amp; cond</tt>", "<tt>cond || pred(args)</tt>", etc.)
-<p/>
-Although negation was mentioned in this issue's Discussion section, and in LWG <a href="lwg-defects.html#556">556</a>'s, the current proposed 
-resolution doesn't fix this problem. Requiring <tt>pred(args)</tt> to be implicitly and contextually convertible to <tt>bool</tt> 
-doesn't prevent <tt>operator!()</tt> from being overloaded and returning <tt>std::string</tt> (as a wacky example). More 
-ominously, it doesn't prevent <tt>operator&amp;&amp;()</tt> and <tt>operator||()</tt> from being overloaded and destroying 
-short-circuiting.
-</p>
-
-</li>
-
-<li>
-<p>
-I would like LWG input before working on Standardese for a new proposed resolution. Here's an outline of what I'd like to 
-do:
-</p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-Introduce a new "concept" in 17.6.3 [utility.requirements], which I would call <tt>BooleanTestable</tt> in the 
-absence of better ideas.
-</p>
-</li>
-
-<li>
-<p>
-Centralize things and reduce verbosity by having everything simply refer to <tt>BooleanTestable</tt> when necessary. 
-I believe that the tables could say "Return type: <tt>BooleanTestable</tt>", while Predicate/BinaryPredicate/Compare 
-would need the incantation "shall satisfy the requirements of BooleanTestable".
-</p>
-</li>
-
-<li>
-<p>
-Resolve the tug-of-war between users (who occasionally want to do weird things) and implementers (who don't want to have 
-to contort their code) by requiring that:
-</p>
-<ol style="list-style-type:upper-roman">
-<li>
-<p>
-Given a <tt>BooleanTestable x</tt>, <tt>x</tt> is both implicitly and contextually convertible to <tt>bool</tt>.
-</p>
-</li>
-
-<li>
-<p>
-Given a <tt>BooleanTestable x</tt>, <tt>!x</tt> is <tt>BooleanTestable</tt>. (This is intentionally "recursive".)
-</p>
-</li>
-
-<li>
-<p>
-Given a <tt>BooleanTestable x</tt>, <tt>bool t = x, t2(x), f = !x;</tt> has the postcondition <tt>t == t2 &amp;&amp; t != f</tt>.
-</p>
-</li>
-
-<li>
-<p>
-Given a <tt>BooleanTestable x</tt> and a <tt>BooleanTestable y</tt> of possibly different types, "<tt>x &amp;&amp; y</tt>" 
-and "<tt>x || y</tt>" invoke the built-in <tt>operator&amp;&amp;()</tt> and <tt>operator||()</tt>, triggering short-circuiting.
-</p>
-</li>
-
-<li>
-<p>
-<tt>bool</tt> is <tt>BooleanTestable</tt>.
-</p>
-</li>
-</ol>
-
-</li>
-
-</ol>
-
-<p>
- I believe that this simultaneously gives users great latitude to use types other than <tt>bool</tt>, while allowing 
- implementers to write reasonable code in order to get their jobs done. (If I'm forgetting anything that implementers 
- would want to say, please let me know.)
-</p>
-
-</li>
-
-<li>
-<p>
-About requirement (I): As Daniel patiently explained to me, we need to talk about both implicit conversions and 
-contextual conversions, because it's possible for a devious type to have both "<tt>explicit operator bool()</tt>" 
-and "<tt>operator int()</tt>", which might behave differently (or be deleted, etc.).
-</p>
-</li>
-
-<li>
-<p>
-About requirement (IV): This is kind of tricky. What we'd like to say is, "<tt>BooleanTestable</tt> can't ever trigger 
-an overloaded logical operator". However, given a perfectly reasonable type <tt>Nice</tt> - perhaps even <tt>bool</tt> itself! - 
-other code (perhaps a third-party library) could overload <tt>operator&amp;&amp;(Nice, Evil)</tt>. Therefore, I believe 
-that the requirement should be "no first use" - the Standard Library will ask for various <tt>BooleanTestable</tt> types 
-from users (for example, the result of "<tt>first != last</tt>" and the result of "<tt>pred(args)</tt>"), and as long 
-as they don't trigger overloaded logical operators with each other, everything is awesome.
-</p>
-</li>
-
-
-<li>
-<p>
-About requirement (V): This is possibly redundant, but it's trivial to specify, makes it easier for users to understand 
-what they need to do ("oh, I can always achieve this with <tt>bool</tt>"), and provides a "base case" for requirement 
-(IV) that may or may not be necessary.  Since <tt>bool</tt> is <tt>BooleanTestable</tt>, overloading 
-<tt>operator&amp;&amp;(bool, Other)</tt> (etc.) clearly makes the <tt>Other</tt> type non-<tt>BooleanTestable</tt>.
-</p>
-</li>
-</ol>
-
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change Table 25 &mdash; "<tt>NullablePointer</tt> requirements" in 17.6.3.3 [nullablepointer.requirements]
-as indicated:</p>
-
-<table border="1">
-<caption>Table 25 &mdash; <tt>NullablePointer</tt> requirements</caption>
-<tr align="center">
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-</tr> 
-
-<tr>
-<td colspan="3" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a != b</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>!(a == b)</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a == np<br/>
-np == a</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>a == P()</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a != np<br/>
-np != a</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>!(a == np)</tt>
-</td>
-</tr>
-
-</table>
- 
-</li>
-
-<li><p>Change Table 107 &mdash; "Input iterator requirements" in 24.2.3 [input.iterators]
-as indicated:</p>
-
-<table border="1">
-<caption>Table 107 &mdash; Input iterator requirements (in addition to Iterator)</caption>
-<tr align="center">
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr> 
-
-<tr>
-<td>
-<tt>a != b</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>!(a == b)</tt>
-</td>
-<td>
-pre: <tt>(a, b)</tt> is in the domain of <tt>==</tt>.
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-</table>
- 
-</li>
-
-<li><p>Change Table 111 &mdash; "Random access iterator requirements" in 24.2.7 [random.access.iterators]
-as indicated:</p>
-
-<table border="1">
-<caption>Table 111 &mdash; Random access iterator requirements (in addition to bidirectional iterator)</caption>
-<tr align="center">
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr> 
-
-<tr>
-<td colspan="4" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt; b</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>b - a &gt; 0</tt>
-</td>
-<td>
-<tt>&lt;</tt> is a total ordering relation
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &gt; b</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>b &lt; a</tt>
-</td>
-<td>
-<tt>&gt;</tt> is a total ordering relation opposite to <tt>&lt;</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &gt;= b</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>!(a &lt; b)</tt>
-</td>
-<td>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt;= b</tt>
-</td>
-<td>
-<del>contextually</del> convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>!(a &gt; b)</tt>
-</td>
-<td>
-</td>
-</tr>
-
-</table>
- 
-</li>
-
-<li><p>Change 25.1 [algorithms.general] p8+9 as indicated:</p>
-
-<blockquote>
-<p>
--8- The <tt>Predicate</tt> parameter is used whenever an algorithm expects a function object 
-(20.9 [function.objects]) that, when applied to the result of dereferencing the corresponding iterator, 
-returns a value testable as <tt>true</tt>. In other words, if an algorithm takes <tt>Predicate pred</tt> 
-as its argument and first as its iterator argument, it should work correctly in the construct 
-<tt>pred(*first)</tt> <ins>implicitly or</ins> contextually converted to <tt>bool</tt> (Clause 4 [conv]). 
-The function object <tt>pred</tt> shall not apply any non-constant function through the dereferenced iterator.
-<p/>
--9- The <tt>BinaryPredicate</tt> parameter is used whenever an algorithm expects a function object that when applied
-to the result of dereferencing two corresponding iterators or to dereferencing an iterator and type
-<tt>T</tt> when <tt>T</tt> is part of the signature returns a value testable as <tt>true</tt>. In other words, if an algorithm takes
-<tt>BinaryPredicate binary_pred</tt> as its argument and <tt>first1</tt> and <tt>first2</tt> as its iterator arguments, it should
-work correctly in the construct <tt>binary_pred(*first1, *first2)</tt> <ins>implicitly or</ins> contextually converted to 
-<tt>bool</tt> (Clause 4 [conv]).
-<tt>BinaryPredicate</tt> always takes the first iterator's <tt>value_type</tt> as its first argument, that is, in those cases
-when <tt>T</tt> value is part of the signature, it should work correctly in the construct <tt>binary_pred(*first1, value)</tt> 
-<ins>implicitly or</ins> contextually converted to <tt>bool</tt> (Clause 4 [conv]). <tt>binary_pred</tt> shall 
-not apply any non-constant function through the dereferenced iterators.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 25.4 [alg.sorting] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- <tt>Compare</tt> is a function object type (20.9 [function.objects]). The return value of the function 
-call operation applied to an object of type <tt>Compare</tt>, when <ins>implicitly or</ins> contextually converted 
-to <tt>bool</tt> (4 [conv]), yields <tt>true</tt> if the first argument of the call is less than the second, and 
-<tt>false</tt> otherwise. <tt>Compare comp</tt> is used throughout for algorithms assuming an ordering relation. It is assumed 
-that <tt>comp</tt> will not apply any non-constant function through the dereferenced iterator.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 30.2.1 [thread.req.paramname] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- <del>If a parameter is <tt>Predicate</tt>, operator() applied to the actual template argument shall return a value that
-is convertible to <tt>bool</tt></del><ins><tt>Predicate</tt> is a function object type (20.9 [function.objects]).
-The return value of the function call operation applied to an object of type <tt>Predicate</tt>, when implicitly or 
-contextually converted to <tt>bool</tt> (4 [conv]), yields <tt>true</tt> if the corresponding test condition is
-satisfied, and <tt>false</tt> otherwise</ins>.
-</p>
-</blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2014-05-20, Daniel suggests concrete wording based on STL's proposal]</i></p>
-
-<p>
-The presented wording follows relatively closely STL's outline with the following notable exceptions:
-</p>
-<ol style="list-style-type:upper-alpha">
-<li><p>
-A reference to <tt>BooleanTestable</tt> in table "Return Type" specifications seemed very unusual to me and
-I found no "prior art" for this in the Standard. Instead I decided to follow the usual style to add a symbol
-with a specific meaning to a specific paragraph that specifies symbols and their meanings.
-</p></li>
-<li><p>
-STL's requirement IV suggested to directly refer to built-in operators <tt>&amp;&amp;</tt> and <tt>||</tt>. In my
-opinion this concrete requirement isn't needed if we simply require that two <tt>BooleanTestable</tt> operands behave 
-equivalently to two those operands after conversion to <tt>bool</tt> (each of them).
-</p></li>
-<li><p>
-I couldn't find a good reason to require normatively that type <tt>bool</tt> meets the requirements of <tt>BooleanTestable</tt>: My
-assertion is that after having defined them, the result simply falls out of this. But to make this a bit clearer, I added
-also a non-normative note to these effects.
-</p></li>
-</ol>
-
-<p><i>[2014-06-10, STL comments]</i></p>
-
-<p>
-In the current wording I would like to see changed the suggested changes described by bullet #6:
-</p>
-<ol style="list-style-type:upper-alpha">
-<li><p>In 23.2.1 [container.requirements.general] p4 undo the suggested change</p></li>
-<li><p>Then change the 7 occurrences of "convertible to <tt>bool</tt>" in the denoted tables to "<tt>bool</tt>".</p></li>
-</ol>
-
-<p><i>[2015-05-05 Lenexa]</i></p>
-
-<p>STL: Alisdair wanted to do something here, but Daniel gave us updated wording.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 17.6.3.1 [utility.arg.requirements] p1, Table 17 &mdash; "EqualityComparable requirements", and
-Table 18 &mdash; "LessThanComparable requirements" as indicated:</p>
-
-<blockquote>
-<p>
--1- [&hellip;] In these tables, <tt>T</tt> is an object or reference type to be supplied by a C++ program
-instantiating a template; <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are values of type (possibly <tt>const</tt>) <tt>T</tt>; 
-<tt>s</tt> and <tt>t</tt> are modifiable lvalues of type <tt>T</tt>; <tt>u</tt> denotes an identifier; <tt>rv</tt> 
-is an rvalue of type <tt>T</tt>; <del>and</del> <tt>v</tt> is an lvalue of type (possibly <tt>const</tt>) <tt>T</tt> or an
-rvalue of type <tt>const T</tt><ins>; and <tt>BT</tt> denotes a type that meets the <tt>BooleanTestable</tt> 
-requirements ([booleantestable.requirements])</ins>.
-<p/>
-[&hellip;]
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 17 &mdash; <tt>EqualityComparable</tt> requirements [equalitycomparable]</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">Requirement</th>
-</tr>
-
-<tr>
-<td>
-<tt>a == b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-<tt>==</tt> is an equivalence relation, that is, it has the
-following properties: [&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 18 &mdash; <tt>LessThanComparable</tt> requirements [lessthancomparable]</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">Requirement</th>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt; b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-<tt>&lt;</tt> is a strict weak ordering relation (25.4 [alg.sorting])
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</blockquote>
-
-</li>
-
-<li><p>Between 17.6.3.2 [swappable.requirements] and 17.6.3.3 [nullablepointer.requirements] insert a new sub-clause 
-as indicated:</p>
-
-<blockquote>
-?.?.?.? <b><tt>BooleanTestable</tt> requirements [booleantestable.requirements]</b>  
-<blockquote>
-<p>
--?- A <tt>BooleanTestable</tt> type is a boolean-like type that also supports conversions to <tt>bool</tt>.
-A type <tt>B</tt> meets the <tt>BooleanTestable</tt> requirements if the expressions described in Table ?? are valid 
-and have the indicated semantics, and if <tt>B</tt> also satisfies all the other requirements of this sub-clause 
-[booleantestable.requirements].
-<p/>
-An object <tt>b</tt> of type <tt>B</tt> can be implicitly converted to <tt>bool</tt> and can be contextually converted 
-to <tt>bool</tt> (Clause 4). The result values of both kinds of conversions shall be equivalent. 
-<p/>
-[<i>Example</i>: The types <tt>bool</tt>, <tt>std::true_type</tt>, and <tt>std::bitset&lt;&gt;::reference</tt> are 
-<tt>BooleanTestable</tt> types. &mdash; <i>end example</i>]
-<p/>
-In Table ??, <tt>B2</tt> and <tt>Bn</tt> denote types (possibly equal to <tt>B</tt> or to each other) that meet the 
-<tt>BooleanTestable</tt> requirements, <tt>b1</tt> denotes a (possibly <tt>const</tt>) value of <tt>B</tt>, <tt>b2</tt> 
-denotes a (possibly <tt>const</tt>) value of <tt>B2</tt>, and <tt>t1</tt> denotes a value of type <tt>bool</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Somewhere within the new sub-clause [booleantestable.requirements] insert the following new Table (?? denotes
-the assigned table number):</p>
-
-<blockquote>
-<table border="1">
-<caption>Table ?? &mdash; <tt>BooleanTestable</tt> requirements [booleantestable]</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">Operational semantics</th>
-</tr>
-
-<tr>
-<td>
-<tt>bool(b1)</tt>
-</td>
-<td>
-<tt>bool</tt>
-</td>
-<td>
-<i>Remarks</i>: <tt>bool(b1) == t1</tt> for every value<br/>
-<tt>b1</tt> implicitly converted to <tt>t1</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>!b1</tt>
-</td>
-<td>
-<tt>Bn</tt>
-</td>
-<td>
-<i>Remarks</i>: <tt>bool(b1) == !bool(!b1)</tt> for<br/>
-every value <tt>b1</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>b1 &amp;&amp; b2</tt>
-</td>
-<td>
-<tt>bool</tt>
-</td>
-<td>
-<tt>bool(b1) &amp;&amp; bool(b2)</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>b1 || b2</tt>
-</td>
-<td>
-<tt>bool</tt>
-</td>
-<td>
-<tt>bool(b1) || bool(b2)</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Change 17.6.3.3 [nullablepointer.requirements] p5 and Table 25 &mdash; "NullablePointer requirements" as indicated:</p>
-
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--5- In Table 25, <tt>u</tt> denotes an identifier, <tt>t</tt> denotes a non-<tt>const</tt> lvalue of type <tt>P</tt>, <tt>a</tt> 
-and <tt>b</tt> denote values of type (possibly <tt>const</tt>) <tt>P</tt>, <del>and</del> <tt>np</tt> denotes a value of type 
-(possibly <tt>const</tt>) <tt>std::nullptr_t</tt><ins>, and <tt>BT</tt> denotes a type that meets the <tt>BooleanTestable</tt> 
-requirements ([booleantestable.requirements])</ins>.
-<p/>
-[&hellip;]
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 25 &mdash; <tt>NullablePointer</tt> requirements [nullablepointer]</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">Operational semantics</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a != b</tt>
-</td>
-<td>
-<del>contextually convertible to <tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a == np</tt><br/>
-<tt>np == a</tt>
-</td>
-<td>
-<del>contextually convertible to <tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a != np</tt><br/>
-<tt>np != a</tt>
-</td>
-<td>
-<del>contextually convertible to <tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.7 [tuple.rel] as indicated;</p>
-
-<blockquote>
-<pre>
-template&lt;class... TTypes, class... UTypes&gt;
-constexpr bool operator==(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre>
-<blockquote>
-<p>
--1- <i>Requires</i>: For all <tt>i</tt>, where <tt>0 &lt;= i</tt> and <tt>i &lt; sizeof...(TTypes)</tt>, 
-<tt>get&lt;i&gt;(t) == get&lt;i&gt;(u)</tt> is a valid expression returning a type that <del>is convertible to 
-<tt>bool</tt></del><ins>meets the <tt>BooleanTestable</tt> requirements ([booleantestable.requirements])</ins>. 
-<tt>sizeof...(TTypes) == sizeof...(UTypes)</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-template&lt;class... TTypes, class... UTypes&gt;
-constexpr bool operator&lt;(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre>
-<blockquote>
-<p>
--4- <i>Requires</i>: For all <tt>i</tt>, where <tt>0 &lt;= i</tt> and <tt>i &lt; sizeof...(TTypes)</tt>, 
-<tt>get&lt;i&gt;(t) &lt; get&lt;i&gt;(u)</tt> and <tt>get&lt;i&gt;(u) &lt; get&lt;i&gt;(t)</tt> are valid 
-expressions returning types that <del>are convertible to 
-<tt>bool</tt></del><ins>meet the <tt>BooleanTestable</tt> requirements ([booleantestable.requirements])</ins>. 
-<tt>sizeof...(TTypes) == sizeof...(UTypes)</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.2.1 [container.requirements.general], Table 96 &mdash; "Container requirements", and
-Table 98 &mdash; "Optional container operations" as indicated:</p>
-
-<blockquote>
-<p>
--4- In Tables 96, 97, and 98 <tt>X</tt> denotes a container class containing objects of type <tt>T</tt>, <tt>a</tt> and 
-<tt>b</tt> denote values of type <tt>X</tt>, <tt>u</tt> denotes an identifier, <tt>r</tt> denotes a non-<tt>const</tt> value 
-of type <tt>X</tt>, <del>and</del> <tt>rv</tt> denotes a non-<tt>const</tt> rvalue of type <tt>X</tt><ins>, and <tt>BT</tt> 
-denotes a type that meets the <tt>BooleanTestable</tt> requirements ([booleantestable.requirements])</ins>.
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 96 &mdash; Container requirements</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">[&hellip;]</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a == b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a != b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.empty()</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 98 &mdash; Optional container requirements</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">[&hellip;]</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt; b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &gt; b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt;= b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &gt;= b</tt>
-</td>
-<td>
-<del>convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 24.2.1 [iterator.requirements.general], Table 107 &mdash; "Input iterator requirements", and
-Table 111 &mdash; "Random access iterator requirements" as indicated:</p>
-
-<blockquote>
-<p>
--11- In the following sections, <tt>a</tt> and <tt>b</tt> denote values of type <tt>X</tt> or <tt>const X</tt>, 
-<tt>difference_type</tt> and <tt>reference</tt> refer to the types <tt>iterator_traits&lt;X&gt;::difference_type</tt> and 
-<tt>iterator_traits&lt;X&gt;::reference</tt>, respectively, <tt>n</tt> denotes a value of <tt>difference_type</tt>, <tt>u</tt>, 
-<tt>tmp</tt>, and <tt>m</tt> denote identifiers, <tt>r</tt> denotes a value of <tt>X&amp;</tt>, <tt>t</tt> denotes
-a value of value type <tt>T</tt>, <tt>o</tt> denotes a value of some type that is writable to the output iterator<ins>, and <tt>BT</tt> 
-denotes a type that meets the <tt>BooleanTestable</tt> requirements ([booleantestable.requirements])</ins>.
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 107 &mdash; Input iterator requirements</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">[&hellip;]</th>
-</tr>
-
-<tr>
-<td>
-<tt>a != b</tt>
-</td>
-<td>
-<del>contextually convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-</table>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 111 &mdash; Random access iterator requirements</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">[&hellip;]</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt; b</tt>
-</td>
-<td>
-<del>contextually convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &gt; b</tt>
-</td>
-<td>
-<del>contextually convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &gt;= b</tt>
-</td>
-<td>
-<del>contextually convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a &lt;= b</tt>
-</td>
-<td>
-<del>contextually convertible to<br/>
-<tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 25.1 [algorithms.general] p8+p9 as indicated: [<i>Drafting note</i>: The wording change also fixes
-(a) unusual wording forms used ("should work") which are unclear in which sense they are imposing normative requirements and
-(b) the problem, that the current wording seems to allow that the predicate may mutate a call argument, if that is not a 
-dereferenced iterator.
-Upon applying the new wording it became obvious that the wording has the effect that currently algorithms such as
-<tt>adjacent_find</tt>, <tt>search_n</tt>, <tt>unique</tt>, and <tt>unique_copy</tt> are not correctly described 
-(because they have no iterator argument named <tt>first1</tt>), which could give raise to a new library issue. 
-&mdash; <i>end drafting note</i>]</p>
-
-<blockquote>
-<p>
--8- The <tt>Predicate</tt> parameter is used whenever an algorithm expects a function object (20.9) that, when applied
-to the result of dereferencing the corresponding iterator, returns a value testable as <tt>true</tt>. <del>In other words,
-i</del><ins>I</ins>f an algorithm takes <tt>Predicate pred</tt> as its argument and <tt>first</tt> as its iterator argument, 
-<del>it should work correctly in the construct <tt>pred(*first)</tt> contextually converted to 
-<tt>bool</tt> (Clause 4)</del><ins>the expression <tt>pred(*first)</tt> shall have a type that meets the <tt>BooleanTestable</tt> 
-requirements ( [booleantestable.requirements])</ins>. 
-The function object <tt>pred</tt> shall not apply any non-constant function through <del>the dereferenced 
-iterator</del><ins>its argument</ins>.
-<p/>
--9- The <tt>BinaryPredicate</tt> parameter is used whenever an algorithm expects a function object that when applied
-to the result of dereferencing two corresponding iterators or to dereferencing an iterator and type
-<tt>T</tt> when <tt>T</tt> is part of the signature returns a value testable as <tt>true</tt>. <del>In other words, 
-i</del><ins>I</ins>f an algorithm takes <tt>BinaryPredicate binary_pred</tt> as its argument and <tt>first1</tt> and 
-<tt>first2</tt> as its iterator arguments, <del>it should work correctly in the construct <tt>binary_pred(*first1, *first2)</tt> 
-contextually converted to <tt>bool</tt> (Clause 4)</del><ins>the expression <tt>binary_pred(*first1, *first2)</tt> shall 
-have a type that meets the <tt>BooleanTestable</tt> requirements ( [booleantestable.requirements])</ins>. 
-<tt>BinaryPredicate</tt> always takes the first iterator's <tt>value_type</tt> as its first argument, that is, in those cases 
-when <tt>T</tt> value is part of the signature, <del>it should work correctly in the construct <tt>binary_pred(*first1, value)</tt> 
-contextually converted to <tt>bool</tt> (Clause 4)</del><ins>the expression <tt>binary_pred(*first1, value)</tt> shall have a 
-type that meets the <tt>BooleanTestable</tt> requirements ( [booleantestable.requirements])</ins>. <tt>binary_pred</tt> 
-shall not apply any non-constant function through <del>the dereferenced iterators</del><ins>any of its arguments</ins>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 25.4 [alg.sorting] p2 as indicated:</p>
-
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--2- <tt>Compare</tt> is a function object type (20.9). <del>The return value of the function call 
-operation applied to an object of type <tt>Compare</tt>, when contextually converted 
-to <tt>bool</tt>(Clause 4), yields <tt>true</tt> if the first argument of the call is less than the second, 
-and <tt>false</tt> otherwise.</del> <tt>Compare comp</tt> is used throughout for algorithms assuming an ordering relation. 
-<ins>Let <tt>a</tt> and <tt>b</tt> denote two argument values whose types depend on the corresponding algorithm. Then the expression 
-<tt>comp(a, b)</tt> shall have a type that meets the <tt>BooleanTestable</tt> requirements ( [booleantestable.requirements]).
-The return value of <tt>comp(a, b)</tt>, converted to <tt>bool</tt>, yields <tt>true</tt> if the 
-first argument <tt>a</tt> is less than the second argument <tt>b</tt>, and <tt>false</tt> otherwise.</ins> It is assumed that 
-<tt>comp</tt> will not apply any non-constant function through <del>the dereferenced iterator</del><ins>any of its arguments</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 27.5.4.2 [fpos.operations] and Table 127 &mdash; "Position type requirements" as indicated:</p>
-
-<blockquote>
-<p>
--1- Operations specified in Table 127 are permitted. In that table,
-</p>
-<ul>
-<li><p><tt>P</tt> refers to an instance of <tt>fpos</tt>,</p></li>
-<li><p>[&hellip;]</p></li>
-<li><p><tt>o</tt> refers to a value of type <tt>streamoff</tt>,</p></li>
-<li><p><ins><tt>BT</tt> refers to a type that meets the <tt>BooleanTestable</tt> requirements ([booleantestable.requirements]),</ins></p></li>
-<li><p>[&hellip;]</p></li>
-</ul>
-<blockquote>
-<table border="1">
-<caption>Table 127 &mdash; Position type requirements</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">[&hellip;]</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>p == q</tt>
-</td>
-<td>
-<del>convertible to <tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>p != q</tt>
-</td>
-<td>
-<del>convertible to <tt>bool</tt></del><ins><tt>BT</tt></ins>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-</blockquote>
-<blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 30.2.1 [thread.req.paramname] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- <del>If a parameter is <tt>Predicate</tt>, <tt>operator()</tt> applied to the actual template argument shall return a value that
-is convertible to <tt>bool</tt></del><ins><tt>Predicate</tt> is a function object type (20.9 [function.objects]).
-Let <tt>pred</tt> denote an lvalue of type <tt>Predicate</tt>. Then the expression <tt>pred()</tt> shall have a type that meets the 
-<tt>BooleanTestable</tt> requirements ( [booleantestable.requirements]). The return value of <tt>pred()</tt>, 
-converted to <tt>bool</tt>, yields <tt>true</tt> if the corresponding test condition is satisfied, and <tt>false</tt> otherwise</ins>.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2115"></a>2115. Undefined behaviour for <tt>valarray</tt> assignments with <tt>mask_array</tt> index?</h3>
-<p><b>Section:</b> 26.6.8 [template.mask.array] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2011-12-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Recently I received a Service Request (SR) alleging that one of our testcases causes an 
-undefined behavior. The complaint is that 26.6.8 [template.mask.array] in C++11 
-(and the corresponding subclause in C++03) are interpreted by some people to require that 
-in an assignment "<tt>a[mask] = b</tt>", the subscript <tt>mask</tt> and the rhs <tt>b</tt> 
-must have the same number of elements.
-<p/>
-IMHO, if that is the intended requirement, it should be stated explicitly.
-<p/>
-In any event, there is a tiny editorial cleanup that could be made:
-<p/>
-In C++11, 26.6.8.1 [template.mask.array.overview] para 2 mentions
-</p>
-<blockquote><p>
-"the expression <tt>a[mask] = b;</tt>"
-</p></blockquote>
-<p>
-but the semicolon cannot be part of an expression. The correction could omit the 
-semicolon, or change the word "expression" to "assignment" or "statement".
-<p/>
-Here is the text of the SR, slightly modified for publication:
-</p>
-<blockquote>
-<p>
-Subject:  SR01174 LVS _26322Y31 has undefined behavior [open]
-<p/>
-[Client:]<br/>
-The test case t263.dir&#47;_26322Y31.cpp seems to be illegal as it has an undefined 
-behaviour. I searched into the SRs but found SRs were not related to the topic 
-explained in this mail (SR00324, SR00595, SR00838).
-</p>
-<blockquote><pre>
-const char vl[] = {"abcdefghijklmnopqrstuvwxyz"};
-const char vu[] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};
-const std::valarray&lt;char&gt; v0(vl, 27), vm5(vu, 5), vm6(vu, 6);
-std::valarray&lt;char&gt; x = v0;
-[&hellip;]
-const bool vb[] = {false, false, true, true, false, true};
-const std::valarray&lt;bool&gt; vmask(vb, 6);
-x = v0;
-x[vmask] = vm5;      // ***** HERE....
-steq(&amp;x[0], "abABeCghijklmnopqrstuvwxyz");
-x2 = x[vmask];       // ***** ....AND HERE
-[&hellip;]
-</pre></blockquote>
-<p>
-This problem has already been discussed between [experts]:
-See thread <a href="http://gcc.gnu.org/ml/libstdc++/2009-11/threads.html#00051">http:&#47;&#47;gcc.gnu.org&#47;ml&#47;libstdc++&#47;2009-11&#47;threads.html#00051</a> 
-Conclusion <a href="http://gcc.gnu.org/ml/libstdc++/2009-11/msg00099.html">http:&#47;&#47;gcc.gnu.org&#47;ml&#47;libstdc++&#47;2009-11&#47;msg00099.html</a>
-<p/>
-[Plum Hall:]<br/>
-Before I log this as an SR, I need to check one detail with you.
-<p/>
-I did read the email thread you mentioned, and I did find a citation (see INCITS ISO&#47;IEC 14882-2003 
-Section 26.3.2.6 on valarray computed assignments):
-<p/>
-Quote: "If the array and the argument array do not have the same length, the behavior is undefined",
-<p/>
-But this applies to computed assignment (<tt>*=</tt>, <tt>+=</tt>, etc), not to simple assignment. Here is the C++03 citation 
-re simple assignment:
-<p/>
-26.3.2.2 valarray assignment [lib.valarray.assign]
-</p>
-<blockquote><pre>
-valarray&lt;T&gt;&amp; operator=(const valarray&lt;T&gt;&amp;);
-</pre><blockquote>
-<p>
-1 Each element of the <tt>*this</tt> array is assigned the value of the corresponding element of the argument array.
-The resulting behavior is undefined if the length of the argument array is not equal to the length of the
-<tt>*this</tt> array.
-</p>
-</blockquote></blockquote>
-<p>
-In the new C++11 (N3291), we find ...
-<p/>
-26.6.2.3 valarray assignment [valarray.assign]
-</p>
-<blockquote><pre>
-valarray&lt;T&gt;&amp; operator=(const valarray&lt;T&gt;&amp; v);
-</pre><blockquote>
-<p>
-1 Each element of the <tt>*this</tt> array is assigned the value of the corresponding element of the argument
-array. If the length of <tt>v</tt> is not equal to the length of <tt>*this</tt>, resizes <tt>*this</tt> to make 
-the two arrays the same length, as if by calling <tt>resize(v.size())</tt>, before performing the assignment.
-</p>
-</blockquote></blockquote>
-<p>
-So it looks like the testcase might be valid for C++11 but not for C++03; what do you think?
-<p/>
-[Client:]<br/>
-I quite agree with you but the two problems I mentioned:
-</p>
-<blockquote><pre>
-x[vmask] = vm5;      // ***** HERE....
-[&hellip;]
-x2 = x[vmask];       // ***** ....AND HERE
-</pre></blockquote>
-<p>
-refer to <tt>mask_array</tt> assignment hence target the C++03 26.3.8 paragraph. Correct?
-<p/>
-[Plum Hall:]<br/>
-I mentioned the contrast between C++03 26.3.2.2 para 1 versus C++11 26.6.2.3 para 1.
-<p/>
-But in C++03 26.3.8, I don't find any corresponding restriction. Could you quote the specific 
-requirement you're writing about?
-<p/>
-[Client:]<br/>
-I do notice the difference between c++03 26.3.2.2 and c++11 26.6.2.3 about assignments between 
-different sized <tt>valarray</tt> and I perfectly agree with you.
-<p/>
-But, as already stated, this is not a simple <tt>valarray</tt> assignment but a
-<tt>mask_array</tt> assignment (c++03 26.3.8 &#47; c++11 26.6.8). See c++11 quote below:
-<p/>
-26.6.8 Class template mask_array<br/>
-26.6.8.1 Class template mask_array overview<br/>
-[....]
-</p>
-<ol>
-<li><p>This template is a helper template used by the mask subscript operator:
-<tt>mask_array&lt;T&gt; valarray&lt;T&gt;::operator[](const valarray&lt;bool&gt;&amp;)</tt>.
-</p></li>
-<li><p>It has reference semantics to a subset of an array specified by a boolean mask. Thus, 
-the expression <tt>a[mask] = b;</tt> has the effect of assigning <em>the elements of <tt>b</tt></em> 
-to the masked elements in <tt>a</tt> (those for which the corresponding element in <tt>mask</tt> is true.)
-</p></li>
-</ol>
-<p>
-26.6.8.2 mask_array assignment
-</p>
-<blockquote><pre>
-void operator=(const valarray&lt;T&gt;&amp;) const;
-const mask_array&amp; operator=(const mask_array&amp;) const;
-</pre><blockquote>
-<p>
-1 These assignment operators have reference semantics, assigning the values of the argument array 
-elements to selected elements of the <tt>valarray&lt;T&gt;</tt> object to which it refers.
-</p>
-</blockquote></blockquote>
-<p>
-In particular, [one of the WG21 experts] insisted on the piece "the elements of <tt>b</tt>".
-<p/>
-That is why I reported the test t263.dir&#47;_26322Y31.cpp having an undefined behaviour.
-<p/>
-[Plum Hall:]<br/>
-OK, I can see that I will have to ask WG21; I will file an appropriate issue 
-with the Library subgroup. In the meantime, I will mark this testcase as "DISPUTED" 
-so that it is not required for conformance testing, until we get a definitive opinion.
-</p>
-</blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-There appears to be a real need for clarification in the standard, and
-implementations differ in their current interpretation.  This will need
-some research by implementers and a proposed resolution before further
-discussion is likely to be fruitful.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2116"></a>2116. <tt>std::swap noexcept(what?)</tt></h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2011-12-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-IMO if we specified <tt>is_[nothrow_]constructible</tt> in terms of a variable
-declaration whose validity requires destructibility, it is clearly a bug
-in our specification and a failure to realize the actual original
-intent. The specification should have been in terms of placement-new.
-<p/>
-Daniel:<br/>
-At the time of the specification this was intended and the solution is
-<em>not</em> done by removing the destruction semantics of <tt>is_constructible</tt>.
-<p/>
-The design of <tt>is_constructible</tt> was also impacted by the previous
-<tt>Constructible</tt> concept that <em>explicitly</em> contained destruction semantics,
-because during conceptification of the library it turned out to simplify
-the constraints  in the library because you did not need to add
-<tt>Destructible</tt> all the time. It often was implied but never spoken out
-in C++03.
-<p/>
-Pure construction semantics was considered as useful as well, so <tt>HasConstructor</tt> 
-did also exist and would surely be useful as trait as well.
-<p/>
-Another example that is often overlooked: This also affects wrapper types like <tt>pair</tt>, 
-<tt>tuple</tt>, <tt>array</tt> that contain potentially more than one type:
-This is easy to understand if you think of <tt>T1</tt> having a deleted destructor
-and <tt>T2</tt> having a constructor that may throw: Obviously the compiler has
-potentially need to use the <tt>destructor</tt> of <tt>T1</tt> in the <em>constructor</em>
-of <tt>std::pair&lt;T1, T2&gt;</tt> to ensure that the core language requirements
-are satisfied (All previous fully constructed sub-objects must be destructed).
-<p/>
-The core language also honors this fact in 12.8 [class.copy] p11:
-</p>
-<blockquote><p>
-A defaulted copy&#47;move constructor for a class <tt>X</tt> is defined as deleted (8.4.3 [dcl.fct.def.delete]) 
-if <tt>X</tt> has:<br/>
-[&hellip;]<br/>
-&mdash; any direct or virtual base class or non-static data member of a type with a destructor that is deleted
-or inaccessible from the defaulted constructor,<br/>
-[&hellip;]
-</p></blockquote>
-<p>
-Dave:<br/>
-This is about <tt>is_nothrow_constructible</tt> in particular. The fact that it is 
-foiled by not having a <tt>noexcept</tt> dtor is a defect.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-<tt>is_nothrow_constructible</tt> is defined in terms of <tt>is_constructible</tt>, which is defined
-by looking at a hypothetical variable and asking whether the variable definition is known not to
-throw exceptions. The issue claims that this also examines the type's destructor, given the context,
-and thus will return <tt>false</tt> if the destructor can potentially throw. At least one
-implementation (Howard's) does return <tt>false</tt> if the constructor is <tt>noexcept(true)</tt>
-and the destructor is <tt>noexcept(false)</tt>. So that's not a strained interpretation.
-The issue is asking for this to be defined in terms of placement <tt>new</tt>, instead of in terms
-of a temporary object, to make it clearer that <tt>is_nothrow_constructible</tt> looks at the
-<tt>noexcept</tt> status of only the constructor, and not the destructor.
-</p>
-<p>
-Sketch of what the wording would look like:
-</p>
-<p>
-require <tt>is_constructible</tt>, and then also require that a placement <tt>new</tt> operation
-does not throw. (Remembering the title of this issue... What does this imply for <tt>swap</tt>?
-</p>
-<p>
-If we accept this resolution, do we need any changes to <tt>swap</tt>?
-</p>
-<p> STL argues: no, because you are already forbidden from passing anything with a throwing
-desturctor to <tt>swap</tt>.
-</p>
-<p>
-Dietmar argues: no, not true. Maybe statically the destructor can conceivably throw for some
-values, but maybe there are some values known not to throw. In that case, it's correct to
-pass those values to <tt>swap</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2117"></a>2117. <tt>ios_base</tt> manipulators should have <tt>showgrouping&#47;noshowgrouping</tt></h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals], 27.5.3.1.2 [ios::fmtflags], 27.5.6.1 [fmtflags.manip] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Benjamin Kosnik <b>Opened:</b> 2011-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Iostreams should include a manipulator to toggle grouping on&#47;off for
-locales that support grouped digits. This has come up repeatedly and
-been deferred. See LWG <a href="lwg-closed.html#826">826</a> for the previous attempt.
-<p/>
-If one is using a locale that supports grouped digits, then output
-will always include the generated grouping characters. However, very
-plausible scenarios exist where one might want to output the number,
-un-grouped. This is similar to existing manipulators that toggle
-on&#47;off the decimal point, numeric base, or positive sign.
-<p/>
-See some user commentary <a href="http://www.tablix.org/~avian/blog/archives/2008/01/c_streams_suck/">here</a>.
-</p>
-
-
-<p><i>[21012, Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-This is a feature request.
-</p>
-<p>
-Walter is slightly uncomfortable with processing feature requests through the issues lists.
-</p>
-<p>
-Alisdair says this is far from the first feature request that has come in from the issues list.
-</p>
-<p>
-STL: The fact that you can turn off grouping on hex output is compelling.
-</p>
-<p>
-Marshall: if we add this flag, we'll need to update tables 87-91 as well.
-</p>
-<p>
-STL: If it has been implemented somewhere, and it works, we'd be glad to add it.
-</p>
-<p>
-Howard: We need to say what the default is.
-</p>
-<p>
-Alisdair sumarizes:
-</p>
-<p>
-(1) We want clear wording that says what the effect is of turning the flag off;
-</p>
-<p>
-(2) what the default values are, and
-</p>
-<p>
-(3) how this fits into tables 87-90. (and 128)
-</p>
-
-<p><i>[Issaquah 2014-02-10-12: Move to LEWG]</i></p>
-
-<p>
-Since this issue was filed, we have grown a new working group that is better placed to handle feature requests.
-</p>
-<p>
-We will track such issues with an LEWG status until we get feedback from the Library Evolution Working Group.
-</p>
-
-<p><i>[Issaquah 2014-02-12: LEWG discussion]</i></p>
-
-
-<table>
-  <caption>Do we think this feature should exist?</caption>
-  <tr><td>SF</td><td>F</td><td>N</td><td>A</td><td>SA</td></tr>
-  <tr><td>2</td> <td>4</td><td>1</td><td>0</td><td>0</td></tr>
-</table>
-
-<p>Think about the ABI break for adding a flag. But this could be
-mitigated by putting the data into an iword instead of a flag.</p>
-
-<p>This needs to change Stage 2 in [facet.num.put.virtuals].</p>
-
-<p>Previous resolution, which needs the above corrections:</p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li>
-<p>Insert in 22.4.2.2.2 [facet.num.put.virtuals] paragraph 5:</p>
-
-<blockquote><p>
-<strong>Stage 1</strong>: The first action of stage 1 is to determine a conversion specifier. The tables that describe
-this determination use the following local variables
-</p>
-<pre>
-fmtflags flags = str.flags() ;
-fmtflags basefield = (flags &amp; (ios_base::basefield));
-fmtflags uppercase = (flags &amp; (ios_base::uppercase));
-fmtflags floatfield = (flags &amp; (ios_base::floatfield));
-fmtflags showpos = (flags &amp; (ios_base::showpos));
-fmtflags showbase = (flags &amp; (ios_base::showbase));
-<ins>fmtflags showgrouping = (flags &amp; (ios_base::showgrouping));</ins>
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change header <tt>&lt;ios&gt;</tt> synopsis, 27.5.1 [iostreams.base.overview] as indicated:</p>
-
-<blockquote><pre>
-#include &lt;iosfwd&gt;
-
-namespace std {
-  [&hellip;]
-  <i>// 27.5.6, manipulators:</i>
-  [&hellip;]
-  ios_base&amp; showpoint     (ios_base&amp; str);
-  ios_base&amp; noshowpoint   (ios_base&amp; str);
-  <ins>ios_base&amp; showgrouping  (ios_base&amp; str);</ins>
-  <ins>ios_base&amp; noshowgrouping(ios_base&amp; str);</ins>
-  ios_base&amp; showpos       (ios_base&amp; str);
-  ios_base&amp; noshowpos     (ios_base&amp; str);
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change class <tt>ios_base</tt> synopsis, 27.5.3 [ios.base] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  class ios_base {
-  public:
-  class failure;
-    <i>// 27.5.3.1.2 fmtflags</i>
-    typedef <i>T1</i> fmtflags;
-    [&hellip;]
-    static constexpr fmtflags showpoint = <i>unspecified</i> ;
-    <ins>static constexpr fmtflags showgrouping = <i>unspecified</i> ;</ins>
-    static constexpr fmtflags showpos = <i>unspecified</i> ;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Add a new entry to Table 122 &mdash; "<tt>fmtflags</tt> effects" as indicated:</p>
-
-<table border="1">
-<caption>Table 122 &mdash; <tt>fmtflags</tt> effects</caption>
-<tr align="center">
-<th>Element</th>
-<th>Effect(s) if set</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>showpoint</tt>
-</td>
-<td>
-generates a decimal-point character unconditionally in generated floatingpoint output
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>showgrouping</tt></ins>
-</td>
-<td>
-<ins>generates grouping characters unconditionally in generated output</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-</table>
- 
-</li>
-
-<li><p>After 27.5.3.1.2 [ios::fmtflags] p12 insert the following:</p>
-<blockquote><pre>
-<ins>ios_base&amp; showgrouping(ios_base&amp; str);</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Effects</i>: Calls <tt>str.setf(ios_base::showgrouping)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns</i>: <tt>str</tt>.</ins>
-</p>
-</blockquote>
-<pre>
-<ins>ios_base&amp; noshowgrouping(ios_base&amp; str);</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Effects</i>: Calls <tt>str.unsetf(ios_base::showgrouping)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns</i>: <tt>str</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2119"></a>2119. Missing <tt>hash</tt> specializations for extended integer types</h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-12-16 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to the header <tt>&lt;functional&gt;</tt> synopsis 20.9 [function.objects] 
-and to the explicit description in 20.9.13 [unord.hash] class template 
-<tt>hash</tt> specializations shall be provided for all arithmetic types that are 
-not extended integer types. This is not explicitly mentioned, but neither the list 
-nor any normative wording does include them, so it follows by implication.
-<p/>
-What are the reasons that extended integer types are excluded? E.g. for 
-<tt>numeric_limits</tt> corresponding specializations are required. I would 
-expect that an <tt>unordered_map</tt> with key type <tt>std::uintmax_t</tt> would 
-just work, but that depends now on whether this type is an extended integer type 
-or not.
-<p/>
-This issue is <em>not</em> asking for also providing specializations for the
-<i>cv</i>-qualified arithmetic types. While this is surely a nice-to-have feature,
-I consider that restriction as a more secondary problem in practice.
-<p/>
-The proposed resolution also fixes a problem mentioned in <a href="lwg-defects.html#2109">2109</a> in regard
-to confusing requirements on user-defined types and those on implementations.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-Agreed that it's a real issue and that the proposed wording fixes it. However, the wording
-change is not minimal and isn't consistent with the way we fixed hash wording elsewhere.
-</p>
-<p>Alisdair will provide updated wording.
-</p>
-
-<p><i>[2014-05-06 Geoffrey Romer suggests alternative wording]</i></p>
-
-
-<p>
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 20.9.13 [unord.hash] p2 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;bool&gt;;
-template &lt;&gt; struct hash&lt;char&gt;;
-[&hellip;]
-template &lt;&gt; struct hash&lt;long double&gt;;
-template &lt;class T&gt; struct hash&lt;T*&gt;;
-</pre><blockquote>
-<p>
--2- <del><i>Requires</i>: the template specializations shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;functional&gt;</tt> provides definitions for specializations of the 
-<tt>hash</tt> class template for each <i>cv</i>-unqualified arithmetic type. This 
-header also provides a definition for a partial specialization of the <tt>hash</tt> 
-class template for any pointer type. The requirements for the members of these 
-specializations are given in sub-clause 20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: the new PR is very simple and could resolve that nicely<br/>
-MC: the older PR is rather longish
-</p>
-<ul>
-<li><p>anybody have any objections to this approach?</p></li>
-<li><p>what people want to have as a status?</p></li>
-</ul>
-<p>
-STL: I want to have Ready<br/>
-MC: move to ready: in favor: 13, opposed: 0, abstain: 4 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<p>Change 20.9.13 [unord.hash] p1 as indicated:</p>
-
-<blockquote><p>
-The unordered associative containers defined in 23.5 use specializations of the class template <tt>hash</tt> as the
-default hash function. For all object types <tt>Key</tt> for which there exists a specialization <tt>hash&lt;Key&gt;</tt>, 
-and for all <ins>integral and</ins> enumeration types (7.2) <tt>Key</tt>, the instantiation <tt>hash&lt;Key&gt;</tt> shall: [&hellip;]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2121"></a>2121. <tt>app</tt> for string streams</h3>
-<p><b>Section:</b> 27.8.5.1 [stringstream.cons] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2012-01-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This issue was raised while discussing issue <a href="lwg-defects.html#1448">1448</a>.
-<p/>
-Note the following program:
-</p>
-<blockquote><pre>
-string s("s1: 123456789");
-ostringstream s1(s, ios_base::out|ios_base::app);
-s1 &lt;&lt; "hello";
-cout &lt;&lt; s1.str() &lt;&lt; endl;
-</pre></blockquote>
-<p>
-With g++4.x it prints:
-</p>
-<blockquote><pre>
-s1: 123456789hello
-</pre></blockquote>
-<p>
-With VisualC++10 it prints:
-</p>
-<blockquote><pre>
-hello23456789
-</pre></blockquote>
-<p>
-From my intuitive understanding the flag "app" should result in the output of g++4.x.
-I also would read that from 27.5.3.1.4 [ios::openmode] claiming:
-</p>
-<blockquote><p>
-<tt>app</tt>&nbsp;&nbsp;&nbsp;seek to end before each write
-</p></blockquote>
-<p>
-However in issue <a href="lwg-defects.html#1448">1448</a> P.J.Plauger comments:
-</p>
-<blockquote><p>
-I think we should say nothing special about <tt>app</tt> at construction time (thus leaving the write pointer at the beginning of the buffer).
-Leave implementers wiggle room to ensure subsequent append writes as they see fit, but don't change existing rules for initial seek
-position.
-</p></blockquote>
-<p>
-Note that the flag <tt>ate</tt> on both platforms appends "hello" to <tt>s</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2127"></a>2127. Move-construction with <tt>raw_storage_iterator</tt></h3>
-<p><b>Section:</b> 20.7.10 [storage.iterator] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-01-23 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#storage.iterator">issues</a> in [storage.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Aliaksandr Valialkin pointed out that <tt>raw_storage_iterator</tt> only supports constructing 
-a new object from lvalues so cannot be used to construct move-only types:
-</p>
-<blockquote><pre>
-template &lt;typename InputIterator, typename T&gt;
-void move_to_raw_buffer(InputIterator first, InputIterator last, T *raw_buffer)
-{
-  std::move(first, last, std::raw_storage_iterator&lt;T *, T&gt;(raw_buffer));
-}
-</pre></blockquote>
-<p>
-This could easily be solved by overloading <tt>operator=</tt> for rvalues.
-<p/>
-Dave Abrahams:
-<p/>
-<tt>raw_storage_iterator</tt> causes exception-safety problems when used with any
-generic algorithm. I suggest leaving it alone and not encouraging its use.
-</p>
-
-<p><i>[2014-11-11, Jonathan provides improved wording]</i></p>
-
-<p>
-In Urbana LWG decided to explicitly say the value is constructed from an rvalue.
-</p>
-
-<strong>Previous resolution from Jonathan [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note">
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf">N3337</a>.</p>
-
-<ol>
-<li><p>Add a new signature to the synopsis in 20.7.10 [storage.iterator] p1:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class OutputIterator, class T&gt;
-  class raw_storage_iterator
-    : public iterator&lt;output_iterator_tag,void,void,void,void&gt; {
-  public:
-    explicit raw_storage_iterator(OutputIterator x);
-
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator*();
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(const T&amp; element);
-    <ins>raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(T&amp;&amp; element);</ins>
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator++();
-    raw_storage_iterator&lt;OutputIterator,T&gt; operator++(int);
-};
-}
-</pre></blockquote>
-</li>
-
-<li><p>Insert the new signature and a new paragraph before p4:</p>
-
-<blockquote><pre>
-raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(const T&amp; element);
-<ins>raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(T&amp;&amp; element);</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Requires</i>: For the first signature <tt>T</tt> shall be <tt>CopyConstructible</tt>. For
-the second signature <tt>T</tt> shall be <tt>MoveConstructible</tt>.</ins>
-<p/>
--4- <i>Effects</i>: Constructs a value from <tt>element</tt> at the location to which the iterator points.
-<p/>
--5- <i>Returns</i>: A reference to the iterator.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: Suggestion to move it to Ready for incorporation on Friday<br/>
-MC: move to ready: in favor: 12, opposed: 0, abstain: 3 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/prot/14882fdis/n4140.pdf">N4140</a>.</p>
-
-<ol>
-<li><p>Add a new signature to the synopsis in 20.7.10 [storage.iterator] p1:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class OutputIterator, class T&gt;
-  class raw_storage_iterator
-    : public iterator&lt;output_iterator_tag,void,void,void,void&gt; {
-  public:
-    explicit raw_storage_iterator(OutputIterator x);
-
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator*();
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(const T&amp; element);
-    <ins>raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(T&amp;&amp; element);</ins>
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator++();
-    raw_storage_iterator&lt;OutputIterator,T&gt; operator++(int);
-};
-}
-</pre></blockquote>
-</li>
-
-<li><p>Insert a new paragraph before p4:</p>
-
-<blockquote><pre>
-raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(const T&amp; element);
-</pre><blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>T</tt> shall be <tt>CopyConstructible</tt>.</ins>
-<p/>
--4- <i>Effects</i>: Constructs a value from <tt>element</tt> at the location to which the iterator points.
-<p/>
--5- <i>Returns</i>: A reference to the iterator.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Insert the new signature and a new paragraph after p5:</p>
-
-<blockquote><pre>
-<ins>raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(T&amp;&amp; element);</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveConstructible</tt>.</ins>
-<p/>
-<ins>-?- <i>Effects</i>: Constructs a value from <tt>std::move(element)</tt> at the
-location to which the iterator points.</ins>
-<p/>
-<ins>-?- <i>Returns</i>: A reference to the iterator.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2133"></a>2133. Attitude to overloaded comma for iterators</h3>
-<p><b>Section:</b> 17.6.5.4 [global.functions] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Yakov Galka <b>Opened:</b> 2012-01-25 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#global.functions">issues</a> in [global.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.6.5.4 [global.functions] says
-</p>
-<blockquote><p>
-Unless otherwise specified, global and non-member functions in the standard library 
-shall not use functions from another namespace which are found through argument-dependent 
-name lookup (3.4.2).
-</p></blockquote>
-<p>
-This sounds clear enough. There are just two problems:
-</p>
-<ol>
-<li><p>
-Both implementations I tested (VS2005 and GCC 3.4.3) do unqualified
-calls to the comma operator in some parts of the library with operands
-of user-defined types.
-</p></li>
-<li>
-<p>
-The standard itself does this in the description of some algorithms. E.g. <tt>uninitialized_copy</tt> 
-is defined as:
-</p>
-<blockquote><p>
-<i>Effects</i>:
-</p><blockquote>
-<pre>
-for (; first != last; <span style="color:#C80000;font-weight:bold">++result, ++first</span>)
-  ::new (static_cast&lt;void*&gt;(&amp;*result))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-</pre>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-<p>
-If understood literally, it is required to call <tt>operator,(ForwardIterator, InputIterator)</tt>.
-<p/>
-For detailed discussion with code samples see 
-<a href="http://stackoverflow.com/questions/8719829/should-the-implementation-guard-itself-against-comma-overloading">here</a>.
-<p/>
-Proposal:
-</p>
-<ol>
-<li>
-Add an exception to the rule in 17.6.5.4 [global.functions] by permitting
-the implementation to call the comma operator as much as it wants to. I doubt we want this. or
-</li>
-<li>
-Fix the description of the said algorithms and perhaps add a note to 17.6.5.4 [global.functions] 
-that brings attention of the implementers to avoid this pitfall.
-</li>
-</ol>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-There are real questions here, that may require a paper to explore and answer properly.
-</p>
-
-<p><i>[2014-05-18, Daniel comments and suggests concrete wording]</i></p>
-
-
-<p>
-Other issues, such as <a href="lwg-active.html#2114">2114</a> already follow a similar spirit as the one suggested by bullet 2 of the
-issue submitter. I assert that consideration of possible user-provided overloads of the comma-operator were not intended
-by the original wording and doing so afterwards would unnecessarily complicate a future conceptualization of the library
-and would needlessly restrict implementations.
-<p/>
-I don't think that a paper is needed to solve this issue, there is a simply way to ensure that the code-semantics
-excludes consideration of user-provided comma operators. The provided wording below clarifies this by explicitly
-casting the first argument of the operator to <tt>void</tt>. 
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-DK: is putting it in the middle the right place for it?<br/>
-STL: either works, but visually putting it in the middle is clearer, and for "++it1, ++i2, ++it3" it needs to be 
-done after the second comma, so "++it1, (void) ++i2, (void) ++it3" is better than "(void) ++it1, ++i2, (void) ++it3"<br/>
-ZY: for <tt><i>INVOKE</i></tt> yesterday we used <tt>static_cast&lt;void&gt;</tt> but here we're using C-style cast, why?<br/>
-STL: for <tt><i>INVOKE</i></tt> I want to draw attention that there's an intentional coercion to <tt>void</tt> because that's 
-the desired type. Here we only do it because that's the best way to prevent the problem, not because we specifically want a 
-<tt>void</tt> type.<br/>
-Move to Ready: 9 in favor, none opposed, 1 abstention 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.7.12.2 [uninitialized.copy] as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class InputIterator, class ForwardIterator&gt;
-  ForwardIterator uninitialized_copy(InputIterator first, InputIterator last,
-                                     ForwardIterator result);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects</i>:
-</p>
-<blockquote>
-<pre>
-for (; first != last; ++result, <ins>(void)</ins> ++first)
-  ::new (static_cast&lt;void*&gt;(&amp;*result))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-</pre>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-template &lt;class InputIterator, class Size,class ForwardIterator&gt;
-  ForwardIterator uninitialized_copy_n(InputIterator first, Size n,
-                                       ForwardIterator result);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>:
-</p>
-<blockquote>
-<pre>
-for (; n &gt; 0; ++result, <ins>(void)</ins> ++first, --n)
-  ::new (static_cast&lt;void*&gt;(&amp;*result))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-</pre>
-</blockquote>
-</blockquote>
-
-</blockquote>
-</li>
-
-<li><p>Change 25.4.8 [alg.lex.comparison] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-template&lt;class InputIterator1, class InputIterator2&gt;
-  bool
-    lexicographical_compare(InputIterator1 first1, InputIterator1 last1,
-                            InputIterator2 first2, InputIterator2 last2);
-template&lt;class InputIterator1, class InputIterator2, class Compare&gt;
-  bool
-    lexicographical_compare(InputIterator1 first1, InputIterator1 last1,
-                            InputIterator2 first2, InputIterator2 last2,
-                            Compare comp);
-</pre>
-<blockquote>
-<p>
--3- <i>Remarks</i>: [&hellip;]
-</p>
-<blockquote>
-<pre>
-for ( ; first1 != last1 &amp;&amp; first2 != last2 ; ++first1, <ins>(void)</ins> ++first2) {
-  if (*first1 &lt; *first2) return true;
-  if (*first2 &lt; *first1) return false;
-}
-return first1 == last1 &amp;&amp; first2 != last2;
-</pre>
-</blockquote>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2136"></a>2136. Postconditions vs. exceptions</h3>
-<p><b>Section:</b> 17.5.1 [structure] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2012-03-08 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The front matter in clause 17 should clarify that postconditions will not hold if a 
-standard library function exits via an exception. Postconditions or guarantees that 
-apply when an exception is thrown (beyond the basic guarantee) are described in an 
-"Exception safety" section.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Open
-]</i></p>
-
-
-<p>
-Consensus that we do not clearly say this, and that we probably should.  A likely
-location to describe the guarantees of <i>postconditions</i> could well be a new
-sub-clause following 17.6.4.11 [res.on.required] which serves the same purpose
-for <i>requires</i> clauses.  However, we need such wording before we can make
-progress.
-</p>
-
-<p>
-Also, see <a href="lwg-active.html#2137">2137</a> for a suggestion that we want to see a paper resolving
-both issues together.
-</p>
-
-<p><i>[2015-05-06 Lenexa: EirkWF to write paper addressing 2136 and 2137]</i></p>
-
-<p>MC: Idea is to replace all such "If no exception" postconditions with "Exception safety" sections.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2137"></a>2137. Misleadingly constrained post-condition in the presence of exceptions</h3>
-<p><b>Section:</b> 28.8.3 [re.regex.assign] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-03-08 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex.assign">issues</a> in [re.regex.assign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The post-conditions of <tt>basic_regex&lt;&gt;::assign</tt> 28.8.3 [re.regex.assign] p16 say:
-</p>
-<blockquote><p>
-<span style="color:#C80000;font-weight:bold">If no exception is thrown,</span> <tt>flags()</tt> returns 
-<tt>f</tt> and <tt>mark_count()</tt> returns the number of marked sub-expressions within the expression.
-</p></blockquote>
-<p>
-The default expectation in the library is that post-conditions only hold, if there is no failure 
-(see also <a href="lwg-active.html#2136">2136</a>), therefore the initial condition should be removed to prevent any
-misunderstanding.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Open
-]</i></p>
-
-
-<p>
-A favorable resolution clearly depends on a favorable resolution to <a href="lwg-active.html#2136">2136</a>.
-There is also a concern that this is just one example of where we would want to apply
-such a wording clean-up, and which is really needed to resolve both this issue and
-<a href="lwg-active.html#2136">2136</a> is a paper providing the clause 17 wording that gives the guarantee
-for <i>postcondition</i> paragaraphs, and then reviews clauses 18-30 to apply that
-guarantee consistently.  We do not want to pick up these issues piecemeal, as we risk
-openning many issues in an ongoing process.
-</p>
-
-<p><i>[2015-05-06 Lenexa: EirkWF to write paper addressing 2136 and 2137]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<blockquote><pre>
-template &lt;class string_traits, class A&gt;
-  basic_regex&amp; assign(const basic_string&lt;charT, string_traits, A&gt;&amp; s,
-    flag_type f = regex_constants::ECMAScript);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--15- <i>Effects</i>: Assigns the regular expression contained in the string <tt>s</tt>, interpreted according 
-the flags specified in <tt>f</tt>. If an exception is thrown, <tt>*this</tt> is unchanged.
-<p/>
--16- <i>Postconditions</i>: <del>If no exception is thrown,</del> <tt>flags()</tt> returns <tt>f</tt> and 
-<tt>mark_count()</tt> returns the number of marked sub-expressions within the expression.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2139"></a>2139. What is a <em>user-defined</em> type?</h3>
-<p><b>Section:</b> 17.6.4.2.1 [namespace.std], 19.5 [syserr], 20.7.7.1 [allocator.uses.trait], 20.9.10.1 [func.bind.isbind], 20.9.10.2 [func.bind.isplace], 20.9.13 [unord.hash], 20.10.7.6 [meta.trans.other], 22.3.1 [locale], 22.4.1.4 [locale.codecvt], 28.12.1.4 [re.regiter.incr] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Lo&iuml;c Joly <b>Opened:</b> 2012-03-08 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#namespace.std">issues</a> in [namespace.std].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The expression "user-defined type" is used in several places in the standard, but I'm not sure what 
-it means. More specifically, is a type defined in the standard library a user-defined type?
-<p/>
-From my understanding of English, it is not. From most of the uses of this term in the standard, it 
-seem to be considered as user defined. In some places, I'm hesitant, e.g. 17.6.4.2.1 [namespace.std] p1:
-</p>
-<blockquote><p>
-A program may add a template specialization for any standard library template to namespace <tt>std</tt> 
-only if the declaration depends on a user-defined type and the specialization meets the standard library 
-requirements for the original template and is not explicitly prohibited.
-</p></blockquote>
-<p>
-Does it mean we are allowed to add in the namespace <tt>std</tt> a specialization for 
-<tt>std::vector&lt;std::pair&lt;T, U&gt;&gt;</tt>, for instance?
-<p/>
-Additional remarks from the reflector discussion: The traditional meaning of user-defined types refers
-to class types and enum types, but the library actually means here user-defined types that are not
-(purely) library-provided. Presumably a new term - like <em>user-provided type</em> - should be introduced
-and properly defined.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Deferred 
-]</i></p>
-
-
-<p>
-The issue is real, in that we never define this term and rely on a "know it when I see it"
-intuition.  However, there is a fear that any attempt to pin down a definition is more
-likely to introduce bugs than solve them - getting the wording for this precisely correct
-is likely far more work than we are able to give it.
-</p>
-
-<p>
-There is unease at simple closing as NAD, but not real enthusiasm to provide wording either.
-Move to Deferred as we are not opposed to some motivated individual coming back with full
-wording to review, but do not want to go out of our way to encourage someone to work on this
-in preference to other issues.
-</p>
-
-<p><i>[2014-02-20 Re-open Deferred issues as Priority 4]</i></p>
-
-
-<p><i>[2015-03-05 Jonathan suggests wording]</i></p>
-
-<p>
-I dislike the suggestion to change to "user-provided" type because I already find the 
-difference between user-declared / user-provided confusing for special member functions, 
-so I think it would be better to use a completely different term. The core language
-uses "user-defined conversion sequence" and "user-defined literal" and
-similar terms for things which the library provides, so I think we
-should not refer to "user" at all to distinguish entities defined
-outside the implementation from things provided by the implementation.
-<p/>
-I propose "program-defined type" (and "program-defined specialization"), defined below. 
-The P/R below demonstrates the scope of the changes required, even if this name isn't adopted. 
-I haven't proposed a change for "User-defined facets" in [locale].
-</p>
-
-<p><i>[Lenexa 2015-05-06]</i></p>
-
-<p>RS, HT: The core language uses "user-defined" in a specific way, including library things but excluding core language things, let's use a different term.</p>
-<p>MC: Agree.</p>
-<p>RS: "which" should be "that", x2</p>
-<p>RS: Is std::vector&lt;MyType&gt; a "program-defined type"?</p>
-<p>MC: I think it should be.</p>
-<p>TK: std::vector&lt;int&gt; seems to take the same path.</p>
-<p>JW: std::vector&lt;MyType&gt; isn't program-defined, we don't need it to be, anything that depends on that also depends on =MyType.</p>
-<p>TK: The type defined by an "explicit template specialization" should be a program-defined type.</p>
-<p>RS: An implicit instantiation of a "program-defined partial specialization" should also be a program-defined type.</p>
-<p>JY: This definition formatting is horrible and ugly, can we do better?</p>
-<p>RS: Checking ISO directives.</p>
-<p>RS: Define "program-defined type" and "program-defined specialization" instead, to get rid of the angle brackets.</p>
-<p>JW redrafting.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Add a new sub-clause to 17.3 [definitions]:</p>
-
-<p><ins><b>17.3.? [defns.program.defined]</b></ins></p>
-<p>
-<ins><b>program-defined</b></ins>
-<p/>
-<ins>&lt;type&gt; a class type or enumeration type which is not part of the C++
-standard library and not defined by the implementation. [<i>Note</i>: Types
-defined by the implementation include extensions (1.4 [intro.compliance])
-and internal types used by the library. &mdash; <i>end note</i>]</ins>
-</p>
-<p>
-<ins><b>program-defined</b></ins>
-<p/>
-<ins>&lt;specialization&gt; an explicit template specialization or partial
-specialization which is not part of the C++ standard library and not
-defined by the implementation.</ins>
-</p>
-</li>
-
-<li><p>Change 17.6.4.2.1 [namespace.std] paragraph 1+2:</p>
-
-<p>
--1- The behavior of a C++ program is undefined if it adds declarations or definitions to namespace <tt>std</tt> or to a
-namespace within namespace <tt>std</tt> unless otherwise specified. A program may add a template specialization
-for any standard library template to namespace <tt>std</tt> only if the declaration depends on a 
-<del>user</del><ins>program</ins>-defined type and the specialization meets the standard library requirements for the 
-original template and is not explicitly prohibited.
-<p/>
--2- The behavior of a C++ program is undefined if it declares
-<p/>
-[&hellip;]
-<p/>
-A program may explicitly instantiate a template defined in the standard library only if the declaration
-depends on the name of a <del>user</del><ins>program</ins>-defined type and the instantiation meets the standard 
-library requirements for the original template.
-</p>
-</li>
-
-<li><p>Change 19.5 [syserr] paragraph 4:</p>
-
-<p>
--4- The <tt>is_error_code_enum</tt> and <tt>is_error_condition_enum</tt> may be specialized for 
-<del>user</del><ins>program</ins>-defined types to indicate that such types are eligible for class <tt>error_code</tt> 
-and class <tt>error_condition</tt> automatic conversions, respectively.
-</p>
-</li>
-
-<li><p>Change 20.7.7.1 [allocator.uses.trait] paragraph 1:</p>
-
-<p>
--1- <i>Remarks</i>: automatically detects [&hellip;]. A program may specialize this template to derive from 
-<tt>true_type</tt> for a <del>user</del><ins>program</ins>-defined type <tt>T</tt> that does not have a nested 
-<tt>allocator_type</tt> but nonetheless can be constructed with an allocator where either: [&hellip;]
-</p>
-</li>
-
-<li><p>Change 20.9.10.1 [func.bind.isbind] paragraph 2:</p>
-
-<p>
--2- Instantiations of the <tt>is_bind_expression</tt> template [&hellip;]. A program may specialize
-this template for a <del>user</del><ins>program</ins>-defined type <tt>T</tt> to have a <tt>BaseCharacteristic</tt> 
-of <tt>true_type</tt> to indicate that <tt>T</tt> should be treated as a subexpression in a <tt>bind</tt> call.
-</p>
-</li>
-
-<li><p>Change 20.9.10.2 [func.bind.isplace] paragraph 2:</p>
-
-<p>
--2- Instantiations of the <tt>is_placeholder</tt> template [&hellip;]. A program may specialize this template for a 
-<del>user</del><ins>program</ins>-defined type <tt>T</tt> to have a <tt>BaseCharacteristic</tt> of 
-<tt>integral_constant&lt;int, <i>N</i>&gt;</tt> with <tt><i>N</i> &gt; 0</tt> to indicate that <tt>T</tt> should be 
-treated as a placeholder type.
-</p>
-</li>
-
-<li><p>Change 20.9.13 [unord.hash] paragraph 1:</p>
-
-<p>
-The unordered associative containers defined in 23.5 use specializations of the class template <tt>hash</tt> [&hellip;], 
-the instantiation <tt>hash&lt;Key&gt;</tt> shall:
-</p>
-<ul>
-<li><p>[&hellip;]</p></li>
-<li><p>[&hellip;]</p></li>
-<li><p>[&hellip;]</p></li>
-<li><p>[&hellip;]</p></li>
-<li><p>satisfy the requirement that the expression <tt>h(k)</tt>, where <tt>h</tt> is an object of type 
-<tt>hash&lt;Key&gt;</tt> and <tt>k</tt> is an object of type <tt>Key</tt>, shall not throw an exception unless 
-<tt>hash&lt;Key&gt;</tt> is a <del>user</del><ins>program</ins>-defined specialization that depends on at least one 
-<del>user</del><ins>program</ins>-defined type.</p></li>
-</ul>
-</li>
-
-<li><p>Change 20.10.7.5 [meta.trans.ptr] Table 57 (<tt>common_type</tt> row):</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 57 &mdash; Other transformations</caption>
-<tr>
-<th align="center">Template</th>
-<th align="center">Condition</th>
-<th align="center">Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class... T&gt;<br/>
-struct common_type;</tt>
-</td>
-
-<td align="center">
-&nbsp;
-</td>
-
-<td>
-The member typedef <tt>type</tt> shall be<br/>
-defined or omitted as specified below.<br/>
-[&hellip;]. A program may<br/>
-specialize this trait if at least one<br/>
-template parameter in the<br/>
-specialization is a <del>user</del><ins>program</ins>-defined type.<br/>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Change 22.4.1.4 [locale.codecvt] paragraph 3:</p>
-
-<p>
--3- The specializations required in Table 81 (22.3.1.1.1) [&hellip;]. Other encodings can be converted 
-by specializing on a <del>user</del><ins>program</ins>-defined <tt>stateT</tt> type.[&hellip;]
-</p>
-</li>
-
-<li><p>Change 28.12.1.4 [re.regiter.incr] paragraph 8:</p>
-
-<p>
--8- [<i>Note</i>: This means that a compiler may call an implementation-specific search function, in which case
-a <del>user</del><ins>program</ins>-defined specialization of <tt>regex_search</tt> will not be called. &mdash; 
-<i>end note</i>]
-</p>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2146"></a>2146. Are reference types <tt>Copy</tt>&#47;<tt>Move-Constructible</tt>&#47;<tt>Assignable</tt> or <tt>Destructible</tt>?</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2012-03-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to 17.6.3.1 [utility.arg.requirements] p1
-</p>
-<blockquote><p>
-The template definitions in the C++ standard library refer to various named requirements whose details are set out in 
-tables 17-24. In these tables, <tt>T</tt> is an object or reference type to be supplied by a C++ program instantiating 
-a template; <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are values of type (possibly <tt>const</tt>) <tt>T</tt>; <tt>s</tt> 
-and <tt>t</tt> are modifiable lvalues of type <tt>T</tt>; <tt>u</tt> denotes an identifier; <tt>rv</tt> is an rvalue of 
-type <tt>T</tt>; and <tt>v</tt> is an lvalue of type (possibly <tt>const</tt>) <tt>T</tt> or an rvalue of type <tt>const T</tt>.
-</p></blockquote>
-<p>
-Is it really intended that <tt>T</tt> may be a reference type? If so, what should <tt>a</tt>, <tt>b</tt>, <tt>c</tt>, 
-<tt>s</tt>, <tt>t</tt>, <tt>u</tt>, <tt>rv</tt>, and <tt>v</tt> mean? For example, are "<tt>int &amp;</tt>" and 
-"<tt>int &amp;&amp;</tt>" <tt>MoveConstructible</tt>?
-<p/>
-As far as I understand, we can explicitly specify template arguments for <tt>std::swap</tt> and <tt>std::for_each</tt>. 
-Can we use reference types there?
-</p>
-<ol>
-<li>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;utility&gt;
-
-int main()
-{
-  int x = 1;
-  int y = 2;
-  std::swap&lt;<span style="color:#C80000;font-weight:bold">int &amp;&amp;</span>&gt;(x, y); // <em>undefined?</em>
-  std::cout &lt;&lt; x &lt;&lt; " " &lt;&lt; y &lt;&lt; std::endl;
-}
-</pre></blockquote>
-</li>
-<li>
-<blockquote><pre>
-#include &lt;algorithm&gt;
-#include &lt;iostream&gt;
-#include &lt;iterator&gt;
-#include &lt;utility&gt;
-
-struct F
-{
-  void operator()(int n)
-  {
-    std::cout &lt;&lt; n &lt;&lt; std::endl;
-    ++count;
-  }
-  int count;
-} f;
-
-int main()
-{
-  int arr[] = { 1, 2, 3 };
-  auto&amp;&amp; result = std::for_each&lt;int *, <span style="color:#C80000;font-weight:bold">F &amp;&amp;</span>&gt;( // <em>undefined?</em>
-    std::begin(arr),
-    std::end(arr),
-    std::move(f));
-  std::cout &lt;&lt; "count: " &lt;&lt; result.count &lt;&lt; std::endl;
-}
-</pre></blockquote>
-</li>
-</ol>
-<p>
-Are these forms of usage well-defined?
-<p/>
-Let's also consider the following constructor of <tt>std::thread</tt>:
-</p>
-<blockquote><pre>
-template &lt;class F, class ...Args&gt;
-explicit thread(F&amp;&amp; f, Args&amp;&amp;... args);
-</pre><blockquote>
-<p>
-<i>Requires</i>: <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall satisfy the <tt>MoveConstructible</tt> requirements.
-</p>
-</blockquote></blockquote>
-<p>
-When the first argument of this constructor is an lvalue (e.g. a name of a global function), template argument for <tt>F</tt> 
-is deduced to be lvalue reference type. What should "<tt>MoveConstructible</tt>" mean with regard to an lvalue reference 
-type? Maybe the wording should say that <tt>std::decay&lt;F&gt;::type</tt> and each <tt>std::decay&lt;Ti&gt;::type</tt> (where 
-<tt>Ti</tt> is an arbitrary item in <tt>Args</tt>) shall satisfy the <tt>MoveConstructible</tt> requirements?
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-The questions raised by the issue are real, and should have a clear answer.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2151"></a>2151. <tt>basic_string&lt;&gt;::swap</tt> semantics ignore allocators</h3>
-<p><b>Section:</b> 21.4.1 [string.require] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Robert Shearer <b>Opened:</b> 2012-04-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.require">issues</a> in [string.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In C++11, <tt>basic_string</tt> is not described as a "container", and is not governed by the allocator-aware 
-container semantics described in sub-clause 23.2 [container.requirements]; as a result, and 
-requirements or contracts for the <tt>basic_string</tt> interface must be documented in Clause 
-21 [strings].
-<p/>
-Sub-clause 21.4.6.8 [string::swap] defines the <tt>swap</tt> member function with no requirements, and
-with guarantees to execute in constant time without throwing. Fulfilling such a contract is not reasonable 
-in the presence of unequal non-propagating allocators.
-<p/>
-In contrast, 23.2.1 [container.requirements.general] p7 declares the behavior of member <tt>swap</tt> 
-for containers with unequal non-propagating allocators to be undefined.
-<p/>
-Resolution proposal:
-<p/>
-Additional language from Clause 23 [containers] should probably be copied to Clause 
-21 [strings]. I will refrain from an exactly recommendation, however, as I am raising further
-issues related to the language in Clause 23 [containers].
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Alisdair has offered to provide wording.
-</p>
-<p>
-Telecon notes that 23.2.1 [container.requirements.general]p13 says that <tt>string</tt> is an
-allocator-aware container.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2152"></a>2152. Instances of standard container types are not swappable</h3>
-<p><b>Section:</b> 17.6.3.2 [swappable.requirements], 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Robert Shearer <b>Opened:</b> 2012-04-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#swappable.requirements">issues</a> in [swappable.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Sub-clause 17.6.3.2 [swappable.requirements] defines two notions of swappability: a binary version defining
-when two objects are <em>swappable with</em> one another, and a unary notion defining whether an object is 
-<em>swappable</em> (without qualification), with the latter definition requiring that the object satisfy the 
-former with respect to all values of the same type.
-<p/>
-Let <tt>T</tt> be a container type based on a non-propagating allocator whose instances do not necessarily 
-compare equal. Then sub-clause 23.2.1 [container.requirements.general] p7 implies that no object <tt>t</tt> 
-of type <tt>T</tt> is swappable (by the unary definition).
-<p/>
-Throughout the standard it is the unary definition of "swappable" that is listed as a requirement (with the 
-exceptions of 20.2.2 [utility.swap] p4, 20.3.2 [pairs.pair] p31, 20.4.2.3 [tuple.swap] p2, 
-25.3.3 [alg.swap] p2, and 25.3.3 [alg.swap] p6, which use the binary definition). This renders 
-many of the mutating sequence algorithms of sub-clause 25.3 [alg.modifying.operations], for example, 
-inapplicable to sequences of standard container types, even where every element of the sequence is swappable 
-with every other.
-<p/>
-Note that this concern extends beyond standard containers to all future allocator-based types.
-<p/>
-Resolution proposal:
-<p/>
-I see two distinct straightforward solutions:
-</p>
-<ol style="list-style-type:lower-roman">
-<li>Modify the requirements of algorithms from sub-clause 25.3 [alg.modifying.operations], and all other
-places that reference the unary "swappable" definition, to instead use the binary "swappable with" definition 
-(over a domain appropriate to the context). The unary definition of "swappable" could then be removed from the 
-standard.
-</li>
-<li>Modify sub-clause 23.2.1 [container.requirements.general] such that objects of standard container types 
-are "swappable" by the unary definition.
-</li>
-</ol>
-<p>
-I favor the latter solution, for reasons detailed in the following issue.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Open 
-]</i></p>
-
-
-<p>
-The issue is broader than containers with stateful allocotors, although they are the most obvious
-example contained within the standard itself.  The basic problem is that once you have a stateful
-allocator, that does not <tt>propagate_on_swap</tt>, then whether two objects of this type can be
-swapped with well defined behavior is a run-time property (the allocators compare equal) rather
-than a simple compile-time property that can be deduced from the type.  Strictly speaking, any
-type where the nature of swap is a runtime property does not meet the <tt>swappable</tt>
-requirements of C++11, although typical sequences of such types are going to have elements that
-are all <tt>swappable with</tt> any other element in the sequence (using our other term of art
-for specifying requirements) as the common case is a container of elements who all share the
-same allocator.
-</p>
-
-<p>
-The heart of the problem is that the <tt>swappable</tt> requirments demand that any two objects
-of the same type be <tt>swappable with</tt> each other, so if any two such objects would not
-be <tt>swappable with</tt> each other, then the whole type is never <tt>swappable</tt>.  Many
-algorithms in clause 25 are specified in terms of <tt>swappable</tt> which is essentially an
-overspecification as all they actually need is that any element in the sequence is <tt>swappable
-with</tt> any other element in the sequence.
-</p>
-
-<p>
-At this point Howard joins the discussion and points out that the intent of introducing the
-two swap-related terms was to support <tt>vector&lt;bool&gt;::reference</tt> types, and we are
-reading something into the wording that was never intended.  Consuses is that regardless of
-the intent, that is what the words today say.
-</p>
-
-<p>
-There is some support to see a paper reviewing the whole of clause 25 for this issue, and
-other select clauses as may be necessary.
-</p>
-
-<p>
-There was some consideration to introducing a note into the front of clause 25 to indicate
-<tt>swappable</tt> requirements in the clause should be interpreted to allow such awkward
-types, but ultimately no real enthusiasm for introducing a <tt>swappable for clause 25</tt>
-requirement term, especially if it confusingly had the same name as a term used with a
-subtly different meaning through the rest of the standard.
-</p>
-
-<p>
-There was no enthusiasm for the alternate resolution of requiring containers with unequal
-allocators that do not propagate provide a well-defined swap behavior, as it is not
-believed to be possible without giving <tt>swap</tt> linear complexity for such values,
-and even then would require adding the constraint that the container element types are
-CopyConstructible.
-</p>
-
-<p>
-Final conclusion: move to open pending a paper from a party with a strong interest in
-stateful allocators.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2153"></a>2153. Narrowing of the non-member <tt>swap</tt> contract</h3>
-<p><b>Section:</b> 20.2.2 [utility.swap], 17.6.3.2 [swappable.requirements], 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Robert Shearer <b>Opened:</b> 2012-04-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Sub-clause 20.2.2 [utility.swap] defines a non-member 'swap' function with defined behavior for
-all <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt> types. It does not guarantee
-constant-time complexity or <tt>noexcept</tt> in general, however this definition does
-render all objects of <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt> type swappable
-(by the unary definition of sub-clause 17.6.3.2 [swappable.requirements]) in the absence of 
-specializations or overloads.
-<p/>
-The overload of the non-member <tt>swap</tt> function defined in Table 96, however,
-defines semantics incompatible with the generic non-member <tt>swap</tt> function,
-since it is defined to call a member <tt>swap</tt> function whose semantics are
-undefined for some values of <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt> types.
-<p/>
-The obvious (perhaps naive) interpretation of sub-clause 17.6.3.2 [swappable.requirements] is as a guide to
-the "right" semantics to provide for a non-member <tt>swap</tt> function (called in
-the context defined by 17.6.3.2 [swappable.requirements] p3) in order to provide interoperable
-user-defined types for generic programming. The standard container types don't follow these guidelines.
-<p/>
-More generally, the design in the standard represents a classic example of "contract narrowing". It 
-is entirely reasonable for the contract of a particular <tt>swap</tt> overload to provide <em>more</em> 
-guarantees, such as constant-time execution and <tt>noexcept</tt>, than are provided by the <tt>swap</tt> 
-that is provided for any <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt> types, but it is <em>not</em> 
-reasonable for such an overload to fail to live up to the guarantees it provides for general types when 
-it is applied to more specific types. Such an overload or specialization in generic programming is akin 
-to an override of an inherited virtual function in OO programming: violating a superclass contract in a
-subclass may be legal from the point of view of the language, but it is poor design and can easily lead 
-to errors. While we cannot prevent user code from providing overloads that violate the more general 
-<tt>swap</tt> contract, we can avoid doing so within the library itself.
-<p/>
-My proposed resolution is to draw a sharp distinction between member <tt>swap</tt> functions, which provide 
-optimal performance but idiosyncratic contracts, and non-member <tt>swap</tt> functions, which should always 
-fulfill at least the contract of 20.2.2 [utility.swap] and thus render objects swappable. The member 
-<tt>swap</tt> for containers with non-propagating allocators, for example, would offer constant-time
-guarantees and <tt>noexcept</tt> but would only offer defined behavior for values with allocators that compare 
-equal; non-member <tt>swap</tt> would test allocator equality and then dispatch to either member <tt>swap</tt> or 
-<tt>std::swap</tt> depending on the result, providing defined behavior for all values (and rendering the type
-"swappable"), but offering neither the constant-time nor the <tt>noexcept</tt> guarantees.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-This topic deserves more attention than can be given in the telocon, and there is no proposed resolution.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2154"></a>2154. What exactly does compile-time complexity imply?</h3>
-<p><b>Section:</b> 26.5.1.3 [rand.req.urng] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> John Salmon <b>Opened:</b> 2012-04-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.urng">issues</a> in [rand.req.urng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The expressions <tt>G::min()</tt> and <tt>G::max()</tt> in Table 116 in 26.5.1.3 [rand.req.urng] are specified 
-as having "compile-time" complexity.
-<p/>
-It is not clear what, exactly, this requirement implies.  If a URNG has a method:
-</p>
-<blockquote><pre>
-static int min();
-</pre></blockquote>
-<p>
-then is the method required to have a <tt>constexpr</tt> qualifier?  I believe the standard would benefit from 
-clarification of this point.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2155"></a>2155. Macro <tt>__bool_true_false_are_defined</tt> should be removed</h3>
-<p><b>Section:</b> 18.10 [support.runtime] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2012-04-30 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.runtime">active issues</a> in [support.runtime].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.runtime">issues</a> in [support.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Since C99, the C standard describes a macro named  <tt>__bool_true_false_are_defined</tt>.
-<p/>
-In the process of harmonizing C++11 with C99, this name became part of the C++ standard.
-<p/>
-I propose that all mention of this name should be removed from the C and C++ standards.
-<p/>
-Here's the problem: The name was originally proposed as a transition tool, so that the headers for a 
-project could contain lines like the following.
-</p>
-<blockquote><pre>
-#if !defined(__bool_true_false_are_defined)
-#define bool int /* or whatever */
-#define true 1
-#define false 0
-#endif
-</pre></blockquote>
-<p>
-Then when the project was compiled by a "new" compiler that implemented <tt>bool</tt> as defined by the 
-evolving C++98 or C99 standards, those lines would be skipped; but when compiled by an "old" compiler that 
-didn't yet provide <tt>bool</tt>, <tt>true</tt>, and <tt>false</tt>, then the <tt>#define</tt>'s would provide a
-simulation that worked for most purposes.
-<p/>
-It turns out that there is an unfortunate ambiguity in the name.  One interpretation is as shown above, but 
-a different reading says "bool, true, and false are #define'd", i.e. that the meaning of the macro is to
-assert that these names are macros (not built-in) ... which is true in C, but not in C++.
-<p/>
-In C++11, the name appears in parentheses followed by a stray period, so
-some editorial change is needed in any event:
-<p/>
-18.10 [support.runtime] para 1:
-</p>
-<blockquote><p>
-Headers <tt>&lt;csetjmp&gt;</tt> (nonlocal jumps), <tt>&lt;csignal&gt;</tt> (signal handling), <tt>&lt;cstdalign&gt;</tt> 
-(alignment), <tt>&lt;cstdarg&gt;</tt> (variable arguments), <tt>&lt;cstdbool&gt;</tt> (<tt>__bool_true_false_are_defined</tt>). 
-<tt>&lt;cstdlib&gt;</tt> (runtime environment <tt>getenv()</tt>, <tt>system()</tt>), and <tt>&lt;ctime&gt;</tt> 
-(system clock <tt>clock()</tt>, <tt>time()</tt>) provide further compatibility with C code.
-</p></blockquote>
-<p>
-However, para 2 says
-</p>
-<blockquote><p>
-"The contents of these headers are the same as the Standard C library headers <tt>&lt;setjmp.h&gt;</tt>, 
-<tt>&lt;signal.h&gt;</tt>, <tt>&lt;stdalign.h&gt;</tt>, <tt>&lt;stdarg.h&gt;</tt>, <tt>&lt;stdbool.h&gt;</tt>, 
-<tt>&lt;stdlib.h&gt;</tt>, and <tt>&lt;time.h&gt;</tt>, respectively, with the following 
-changes:",
-</p></blockquote>
-<p>
-and para 8 says 
-</p>
-<blockquote><p>
-"The header <tt>&lt;cstdbool&gt;</tt> and the header <tt>&lt;stdbool.h&gt;</tt> shall 
-not define macros named <tt>bool</tt>, <tt>true</tt>, or <tt>false</tt>."
-</p></blockquote>
-<p>
-Thus para 8 doesn't exempt the C++ implementation from the arguably clear requirement of the C standard, to 
-provide a macro named <tt>__bool_true_false_are_defined</tt> defined to be 1.
-<p/>
-Real implementations of the C++ library differ, so the user cannot count upon any consistency; furthermore, the 
-usefulness of the transition tool has faded long ago.
-<p/>
-That's why my suggestion is that both C and C++ standards should eliminate any mention of 
-<tt>__bool_true_false_are_defined</tt>.  In that case, the name belongs to implementers to provide, or not, as 
-they choose.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-While not strictly necessary, the clean-up look good.
-</p>
-<p>
-We would like to hear from our C liaison before moving on this issue though.
-</p>
-
-<p><i>[2015-05 Lenexa]</i></p>
-
-<p>
-LWG agrees. Jonathan provides wording.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<p>Edit the footnote on 17.6.1.2 [headers] p7:</p>
-<blockquote>
-<p>
-176) In particular, including <ins>any of</ins> the standard header<ins>s <tt>&lt;stdbool.h&gt;</tt>, <tt>&lt;cstdbool&gt;</tt>,</ins> <tt>&lt;iso646.h&gt;</tt> or <tt>&lt;ciso646&gt;</tt> has no effect.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>Edit 18.10 [support.runtime] p1 as indicated (and remove the index entry for <tt>__bool_true_false_are_defined</tt>):</p>
-
-<blockquote>
-<p>
--1- Headers <tt>&lt;csetjmp&gt;</tt> (nonlocal jumps), <tt>&lt;csignal&gt;</tt> (signal handling), <tt>&lt;cstdalign&gt;</tt> (alignment), <tt>&lt;cstdarg&gt;</tt> (variable arguments), <tt>&lt;cstdbool&gt;</tt><ins>,</ins><del> (<tt>__bool_true_false_are_defined</tt>).</del> <tt>&lt;cstdlib&gt;</tt> (runtime environment <tt>getenv()</tt>, <tt>system()</tt>), and <tt>&lt;ctime&gt;</tt> (system clock <tt>clock()</tt>, <tt>time()</tt>) provide further compatibility with C code.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>Remove Table 38 &mdash; Header <tt>&lt;cstdbool&gt;</tt> synopsis [tab:support.hdr.cstdbool] from 18.10 [support.runtime] </p>
-<blockquote>
-<table border="1">
-<caption> Table 38 &mdash; Header <tt>&lt;cstdbool&gt;</tt> synopsis </caption>
-<tr><td><b>Type</b></td><td><b>Name(s)</b></td></tr>
-<tr><td><b>Macro:</b></td><td><tt>__bool_true_false_are_defined</tt></td></tr>
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2156"></a>2156. Unordered containers' <tt>reserve(n)</tt> reserves for <tt>n-1</tt> elements</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel James <b>Opened:</b> 2012-05-07 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-I think that unordered containers' <tt>reserve</tt> doesn't quite do what it should. I'd expect after calling 
-<tt>x.reserve(n)</tt> to be able to insert <tt>n</tt> elements without invalidating iterators. But as 
-the standard is written (I'm looking at n3376), I think the guarantee only holds for <tt>n-1</tt> elements.
-<p/>
-For a container with <tt>max_load_factor</tt> of <tt>1</tt>, <tt>reserve(n)</tt> is equivalent to
-<tt>rehash(ceil(n/1))</tt>, ie. <tt>rehash(n)</tt>. <tt>rehash(n)</tt> requires that the bucket
-count is <tt>&gt;= n</tt>, so it can be <tt>n</tt> (Table 103). The rule is that <tt>insert</tt>
-shall not affect the validity of iterators if <tt>(N + n) &lt; z * B</tt> (23.2.5 [unord.req] p15). 
-But for this case the two sides of the equation are equal, so <tt>insert</tt> can affect the validity of iterators.
-</p>
-
-<p><i>[2013-03-16 Howard comments and provides wording]</i></p>
-
-
-<p>
-Given the following:
-</p>
-
-<blockquote><pre>
-LF := load_factor()
-MLF := max_load_factor()
-S := size()
-B := bucket_count()
-
-LF == S/B
-</pre></blockquote>
-
-<p>
-The container has an invariant:
-</p>
-
-<blockquote><pre>
-LF &lt;= MLF
-</pre></blockquote>
-
-<p>
-Therefore:
-</p>
-
-<blockquote><pre>
-MLF &gt;= S/B
-S &lt;= MLF * B
-B &gt;= S/MLF
-</pre></blockquote>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Howard to provide rationale and potentally revised wording.
-</p>
-
-
-<p><i>[2012-02-12 Issaquah : recategorize as P3]</i></p>
-
-<p>
-Jonathon Wakely: submitter is Boost.Hash maintainer. Think it's right.
-</p>
-
-<p>
-Marshall Clow: even if wrong it's more right than what we have now
-</p>
-
-<p>
-Geoffrey Romer: issue is saying rehash should not leave container in such a state that a notional insertion of zero elements should not trigger a rehash
-</p>
-
-<p>
-AJM: e.g. if you do a range insert from an empty range
-</p>
-
-<p>
-AJM: we don't have enough brainpower to do this now, so not priority zero
-</p>
-
-<p>
-Recategorised as P3
-</p>
-
-<p><i>[Lenexa 2015-05-06: Move to Ready]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li>
-<p>
-In 23.2.5 [unord.req] Table 103 &mdash; Unordered associative container requirements, change the post-condition 
-in the row for <code>a.rehash(n)</code> to:
-</p>
-<blockquote>
-Post: <code>a.bucket_count() &gt;<ins>=</ins> a.size() / a.max_load_factor()</code> and <code>a.bucket_count() &gt;= n</code>.
-</blockquote>
-</li>
-
-<li>
-<p>
-In 23.2.5 [unord.req]/p15 change
-</p>
-<blockquote>
-The <code>insert</code> and <code>emplace</code> members shall not affect the validity of iterators if 
-<code>(N+n) &lt;<ins>=</ins> z * B</code>, where <code>N</code> is the number of elements in the container 
-prior to the insert operation, <code>n</code> is the number of elements inserted, <code>B</code> is the container's 
-bucket count, and <code>z</code> is the container's maximum load factor.
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2157"></a>2157. How does <tt>std::array&lt;T,0&gt;</tt> initialization work when <tt>T</tt> is not default-constructible?</h3>
-<p><b>Section:</b> 23.3.2.8 [array.zero] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daryle Walker <b>Opened:</b> 2012-05-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#array.zero">issues</a> in [array.zero].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Objects of <tt>std::array&lt;T,N&gt;</tt> are supposed to be initialized with aggregate initialization (when 
-not the destination of a copy or move). This clearly works when <tt>N</tt> is positive. What happens when <tt>N</tt> 
-is zero?  To continue using an (inner) set of braces for initialization, a <tt>std::array&lt;T,0&gt;</tt> implementation 
-must have an array member of at least one element, and let default initialization take care of those secret elements.  
-This cannot work when <tt>T</tt> has a set of constructors and the default constructor is deleted from that set.
-Solution: Add a new paragraph in 23.3.2.8 [array.zero]:
-</p>
-<blockquote><p>
-The unspecified internal structure of array for this case shall allow initializations like:
-</p>
-<blockquote><pre>
-array&lt;T, 0&gt; a = { };
-</pre></blockquote>
-<p>
-and said initializations must be valid even when <tt>T</tt> is not default-constructible.
-</p></blockquote>
-
-<p><i>[2012, Portland: Move to Open]</i></p>
-
-<p>
-Some discussion to understand the issue, which is that implementations currently have freedom to implement
-an empty <tt>array</tt> by holding a dummy element, and so might not support value initialization, which is
-surprising when trying to construct an empty container.  However, this is not mandated, it is an unspecified
-implementation detail.
-</p>
-
-<p>
-Jeffrey points out that the implication of 23.3.2.1 [array.overview] is that this initialization syntax
-must be supported by empty <tt>array</tt> objects already.  This is a surprising inference that was not
-obvious to the room, but consensus is that the reading is accurate, so the proposed resolution is not necessary,
-although the increased clarity may be useful.
-</p>
-
-<p>
-Further observation is that the same clause effectively implies that <tt>T</tt> must always be DefaultConstructible,
-regardless of <tt>N</tt> for the same reasons - as an <i>initializer-list</i> may not supply enough values, and the
-remaining elements must all be value initialized.
-</p>
-
-<p>
-Concern that we are dancing angels on the head of pin, and that relying on such subtle implications in wording is
-not helpful. We need a clarification of the text in this area, and await wording.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-DK: What was the outcome of Portland? AM: Initially we thought we already had the intended behaviour. 
-We concluded that <tt>T</tt> must always be <tt>DefaultConstructible</tt>, but I'm not sure why. GR: It's p2 in 
-<tt>std::array</tt>, "up to <tt>N</tt>". AM: That wording already implies that "<tt>{}</tt>" has to work when <tt>N</tt> 
-is zero. But the wording of p2 needs to be fixed to make clear that it does <em>not</em> imply that <tt>T</tt> must be 
-<tt>DefaultConstructible</tt>.
-<p/>
-Conclusion: Update wording, revisit later. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<p>Add the following new paragraph between the current 23.3.2.8 [array.zero] p1 and p2:</p>
-
-<blockquote><p>
--1- <tt>array</tt> shall provide support for the special case <tt>N == 0</tt>.
-<p/>
-<ins>-?- The unspecified internal structure of <tt>array</tt> for this case shall allow initializations like:</ins>
-</p>
-<blockquote><pre>
-<ins>array&lt;T, 0&gt; a = { };</ins>
-</pre></blockquote>
-<p>
-<ins>and said initializations must be valid even when <tt>T</tt> is not default-constructible.</ins>
-<p/>
--2- In the case that <tt>N == 0</tt>, <tt>begin() == end() ==</tt> unique value. The return value of 
-<tt>data()</tt> is unspecified.
-<p/>
--3- The effect of calling <tt>front()</tt> or <tt>back()</tt> for a zero-sized array is undefined.
-<p/>
--4- Member function <tt>swap()</tt> shall have a <em>noexcept-specification</em> which is equivalent to 
-<tt>noexcept(true)</tt>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2158"></a>2158. Conditional copy&#47;move in <tt>std::vector</tt></h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2012-05-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-There are various operations on <tt>std::vector</tt> that can cause elements of the vector to be 
-moved from one location to another. A move operation can use either rvalue or const lvalue as 
-argument; the choice depends on the value of <tt>!is_nothrow_move_constructible&lt;T&gt;::value &amp;&amp;
-is_copy_constructible&lt;T&gt;::value</tt>, where <tt>T</tt> is the element type. Thus, some operations 
-on <tt>std::vector</tt> (e.g. 'resize' with single parameter, 'reserve', 'emplace_back') should have 
-conditional requirements. For example, let's consider the requirement for 'reserve' in N3376 &ndash; 
-23.3.6.3 [vector.capacity]&#47;2:
-</p>
-<blockquote><p>
-<i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.
-</p></blockquote>
-<p>
-This requirement is not sufficient if an implementation is free to select copy constructor when 
-<tt>!is_nothrow_move_constructible&lt;T&gt;::value &amp;&amp; is_copy_constructible&lt;T&gt;::value</tt> 
-evaluates to true. Unfortunately, <tt>is_copy_constructible</tt> cannot reliably determine whether 
-<tt>T</tt> is really copy-constructible. A class may contain public non-deleted copy constructor whose 
-definition does not exist or cannot be instantiated successfully (e.g., 
-<tt>std::vector&lt;std::unique_ptr&lt;int&gt;&gt;</tt> has copy constructor, but this type is not 
-copy-constructible). Thus, the actual requirements should be:
-</p>
-<ul>
-<li><p>
-if <tt>!is_nothrow_move_constructible&lt;T&gt;::value &amp;&amp; is_copy_constructible&lt;T&gt;::value</tt> 
-then <tt>T</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>;
-</p></li>
-<li><p>
-otherwise <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.
-</p></li>
-</ul>
-<p>
-Maybe it would be useful to introduce a new name for such conditional requirement (in addition to 
-"<tt>CopyInsertable</tt>" and "<tt>MoveInsertable</tt>").
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2161"></a>2161. <tt>const</tt> equivalence of <tt>std::map</tt></h3>
-<p><b>Section:</b> 23.4 [associative], 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Bjarne Stroustrup <b>Opened:</b> 2012-06-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative">active issues</a> in [associative].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative">issues</a> in [associative].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-As described in the reflector discussion c++std-core-21860 consider the following example:
-</p>
-<blockquote><pre>
-map&lt;const int, int&gt; mci{};
-map&lt;int, int&gt; mi = mci; // ??
-mci[1] = 2;
-mi[1] = 2;
-</pre></blockquote>
-<p>
-Should it be required that the marked initialization is well-formed? As a possible solution
-this could be realized by an alias template:
-</p>
-<blockquote><pre>
-template &lt;class K, class T&gt;
-struct OriginalMap { [&hellip;] };
-
-template &lt;class K, class T&gt;
-using ImprovedMap = OriginalMap&lt;const K, T&gt;;
-</pre></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2164"></a>2164. What are the semantics of <tt>vector.emplace(vector.begin(), vector.back())</tt>?</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers], 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2012-07-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Nikolay Ivchenkov recently brought the following example on the
-<a href="https://groups.google.com/a/isocpp.org/d/topic/std-discussion/dhy23mDFXj4/discussion">std-discussion</a> 
-newsgroup, asking whether the following program well-defined:
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;vector&gt;
-
-int main()
-{
-  std::vector&lt;int&gt; v;
-  v.reserve(4);
-  v = { 1, 2, 3 };
-  v.emplace(v.begin(), v.back());
-  for (int x : v)
-    std::cout &lt;&lt; x &lt;&lt; std::endl;
-}
-</pre></blockquote>
-<p>
-Nikolay Ivchenkov:
-<p/>
-I think that an implementation of <tt>vector</tt>'s 'emplace' should initialize an intermediate object with 
-<tt>v.back()</tt> before any shifts take place, then perform all necessary shifts and finally replace the 
-value pointed to by <tt>v.begin()</tt> with the value of the intermediate object. So, I would expect the 
-following output:
-</p>
-<blockquote><pre>
-3
-1
-2
-3
-</pre></blockquote>
-<p>
-GNU C++ 4.7.1 and GNU C++ 4.8.0 produce other results:
-</p>
-<blockquote><pre>
-2
-1
-2
-3
-</pre></blockquote>
-<p>
-Howard Hinnant:
-<p/>
-I believe Nikolay is correct that vector should initialize an intermediate object with <tt>v.back()</tt> 
-before any shifts take place. As Nikolay pointed out in another email, this appears to be the only way to 
-satisfy the strong exception guarantee when an exception is not thrown by <tt>T</tt>'s copy constructor, 
-move constructor, copy assignment operator, or move assignment operator as specified by 
-23.3.6.5 [vector.modifiers]/p1. I.e. if the emplace construction throws, the vector must remain unaltered.
-<p/>
-That leads to an implementation that tolerates objects bound to the function parameter pack of the <tt>emplace</tt> 
-member function may be elements or sub-objects of elements of the container.
-<p/>
-My position is that the standard is correct as written, but needs a clarification in this area. Self-referencing 
-<tt>emplace</tt> should be legal and give the result Nikolay expects. The proposed resolution of LWG <a href="lwg-active.html#760">760</a> 
-is not correct.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-LWG agrees with the analysis including the assessment of LWG <a href="lwg-active.html#760">760</a> and would appreciate a concrete wording proposal.
-</p>
-
-<p><i>[2015-04-07 dyp comments]</i></p>
-
-<p>
-The Standard currently does not require that creation of such
-intermediate objects is legal. 23.2.3 [sequence.reqmts] Table 100
-&mdash; "Sequence container requirements" currently specifies:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 100 &mdash; Sequence container requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.emplace(p, args);</tt>
-</td>
-<td>
-<tt>iterator</tt>
-</td>
-<td>
-<i>Requires</i>: <tt>T</tt> is <tt>EmplaceConstructible</tt> into
-<tt>X</tt> from <tt>args</tt>. For <tt>vector</tt> and <tt>deque</tt>,
-<tt>T</tt> is also <tt>MoveInsertable</tt> into <tt>X</tt> and
-<tt>MoveAssignable</tt>. [&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-The <tt>EmplaceConstructible</tt> concept is defined via
-<tt>allocator_traits&lt;A&gt;::construct</tt> in 23.2.1 [container.requirements.general] p15.5 That's surprising to me
-since the related concepts use the suffix <tt>Insertable</tt> if they
-refer to the allocator. An additional requirement such as
-<tt>std::is_constructible&lt;T, Args...&gt;</tt> is necessary to allow
-creation of intermediate objects.
-</p>
-
-<p>
-The creation of intermediate objects also affects other functions, such
-as <tt>vector.insert</tt>. Since aliasing the vector is only allowed for
-the single-element forms of <tt>insert</tt> and <tt>emplace</tt> (see
-<a href="lwg-closed.html#526">526</a>), the range-forms are not affected. Similarly,
-aliasing is not allowed for the rvalue-reference overload. See also LWG
-<a href="lwg-defects.html#2266">2266</a>.
-</p>
-
-<p>
-There might be a problem with a requirement of
-<tt>std::is_constructible&lt;T, Args...&gt;</tt> related to the issues
-described in LWG <a href="lwg-active.html#2461">2461</a>. For example, a scoped allocator
-adapter passes additional arguments to the constructor of the value
-type. This is currently not done in recent implementations of libstdc++
-and libc++ when creating the intermediate objects, they simply create
-the intermediate object by perfectly forwarding the arguments. If such
-an intermediate object is then moved to its final destination in the
-vector, a change of the allocator instance might be required &mdash;
-potentially leading to an expensive copy. One can also imagine worse
-problems, such as run-time errors (allocators not comparing equal at
-run-time) or compile-time errors (if the value type cannot be created
-without the additional arguments). I have not looked in detail into this
-issue, but I'd be reluctant adding a requirement such as
-<tt>std::is_constructible&lt;T, Args...&gt;</tt> without further
-investigation.
-</p>
-
-<p>
-It should be noted that the creation of intermediate objects currently
-is inconsistent in libstdc++ vs libc++. For example, libstdc++ creates
-an intermediate object for <tt>vector.insert</tt>, but not
-<tt>vector.emplace</tt>, whereas libc++ does the exact opposite in this
-respect.
-</p>
-
-<p>
-A live demo of the inconsistent creation of intermediate objects can be
-found <a href="http://coliru.stacked-crooked.com/a/449253d3d329ef4c">here</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2165"></a>2165. <tt>std::atomic&lt;X&gt;</tt> requires <tt>X</tt> to be nothrow default constructible</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic], 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Core">Core</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-07-19 <b>Last modified:</b> 2015-04-09</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Core">Core</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-As raised in c++std-lib-32781, this fails to compile even though the default constructor is not used:
-</p>
-<blockquote><pre>
-#include &lt;atomic&gt;
-
-struct X {
-  X() noexcept(false) {}
-  X(int) { }
-};
-
-std::atomic&lt;X&gt; x(3);
-</pre></blockquote>
-<p>This is because <tt>atomic&lt;T&gt;</tt>'s default constructor is declared to be non-throwing and 
-is explicitly-defaulted on its first declaration:
-</p>
-<blockquote><pre>
-atomic() noexcept = default;
-</pre></blockquote>
-<p>
-This is ill-formed if the implicitly-declared default constructor would not be non-throwing.
-<p/>
-Possible solutions:
-</p>
-<ol>
-<li>
-Add nothrow default constructible to requirements for template argument of the generic <tt>atomic&lt;T&gt;</tt>
-</li>
-<li>
-Remove <tt>atomic&lt;T&gt;::atomic()</tt> from the overload set if <tt>T</tt> is not nothrow default constructible.
-</li>
-<li>
-Remove <tt>noexcept</tt> from <tt>atomic&lt;T&gt;::atomic()</tt>, allowing it to be
-deduced (but the default constructor is intended to be always noexcept)
-</li>
-<li>
-Do not default <tt>atomic&lt;T&gt;::atomic()</tt> on its first declaration (but makes the default constructor 
-user-provided and so prevents <tt>atomic&lt;T&gt;</tt> being trivial)
-</li>
-<li>
-A core change to allow the mismatched exception specification if the default constructor isn't used 
-(see c++std-core-21990)
-</li>
-</ol>
-
-<p><i>[2012, Portland: move to Core]</i></p>
-
-<p>
-Recommend referring to core to see if the constructor <tt>noexcept</tt> mismatch
-can be resolved there. The issue is not specific to concurrency.
-</p>
-
-<p><i>[2015-04-09 Daniel comments]</i></p>
-
-<p>
-CWG issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1778">1778</a>, which had
-been created in behalf of this LWG issue, has been resolved as a defect.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2166"></a>2166. Heap property underspecified?</h3>
-<p><b>Section:</b> 25.4.6 [alg.heap.operations] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Peter Sommerlad <b>Opened:</b> 2012-07-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.heap.operations">issues</a> in [alg.heap.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Another similar issue to the <tt>operator&lt;</tt> vs greater in <tt>nth_element</tt> but not as direct occurs 
-in 25.4.6 [alg.heap.operations]:
-</p>
-<blockquote><p>
--1- A <em>heap</em> is a particular organization of elements in a range between two random access iterators 
-<tt>[a,b)</tt>. Its two key properties are:
-</p>
-<ol>
-<li>There is no element greater than <tt>*a</tt> in the range and
-</li>
-<li><tt>*a</tt> may be removed by <tt>pop_heap()</tt>, or a new element added by <tt>push_heap()</tt>, in 
-O(log(<tt>N</tt>)) time.
-</li>
-</ol>
-</blockquote>
-<p>
-As noted by Richard Smith, it seems that the first bullet should read:
-</p>
-<blockquote><p>
-<tt>*a</tt> is not less than any element in the range
-</p></blockquote>
-<p>
-Even better the heap condition could be stated here directly, instead of leaving it unspecified, i.e.,
-</p>
-<blockquote><p>
-Each element at <tt>(a+2*i+1)</tt> and <tt>(a+2*i+2)</tt> is less than the element at <tt>(a+i)</tt>, 
-if those elements exist, for <tt>i&gt;=0</tt>.
-</p></blockquote>
-<p>
-But may be that was may be intentional to allow other heap organizations?
-<p/>
-See also follow-up discussion of c++std-lib-32780.
-<p/>
-
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2173"></a>2173. The meaning of operator + in the description of the algorithms</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2012-08-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to 25.1 [algorithms.general]/12,
-</p>
-<blockquote><p>
-In the description of the algorithms operators <tt>+</tt> and <tt>-</tt> are used for some of the iterator categories 
-for which they do not have to be defined. In these cases the semantics of <tt>a+n</tt> is the same as that of
-</p>
-<blockquote><pre>
-X tmp = a;
-advance(tmp, n);
-return tmp;
-</pre></blockquote>
-</blockquote>
-<p>
-There are several places where such operator <tt>+</tt> is applied to an output iterator &mdash; for example, see the 
-description of <tt>std::copy</tt>:
-</p>
-<blockquote><pre>
-template&lt;class InputIterator, class OutputIterator&gt;
-OutputIterator copy(InputIterator first, InputIterator last,
-                    OutputIterator result);
-</pre>
-<blockquote><p>
--1- <i>Effects</i>: Copies elements in the range <tt>[first,last)</tt> into the range <tt>[result,result + (last -
-first))</tt> starting from <tt>first</tt> and proceeding to <tt>last</tt>. For each non-negative integer 
-<tt>n &lt; (last - first)</tt>, performs <tt>*(result + n) = *(first + n)</tt>.
-</p></blockquote></blockquote>
-<p>
-<tt>std::advance</tt> is not supposed to be applicable to output iterators, so we need a different method of description.
-<p/>
-See also message <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32908">c++std-lib-32908</a>.
-</p>
-
-<p><i>[2014-06-07 Daniel comments and provides wording]</i></p>
-
-<p>
-The specification for output iterators is somewhat tricky, because here a sequence of increments is required to
-be combined with intervening <em>assignments</em> to the dereferenced iterator. I tried to respect this
-fact by using a conceptual assignment operation as part of the specification.
-<p/>
-Another problem in the provided as-if-code is the question which requirements are imposed on <tt>n</tt>. Unfortunately,
-the corresponding function <tt>advance</tt> is completely underspecified in this regard, so I couldn't borrow wording
-from it. We cannot even assume here that <tt>n</tt> is the difference type of the iterator, because for output iterators there is
-no requirements for this associated type to be defined. The presented wording attempts to minimize assumptions, but still
-can be considered as controversial. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 25.1 [algorithms.general] around p12 as indicated:</p>
-
-<blockquote>
-<p>
--12- In the description of the algorithms operators <tt>+</tt> and <tt>-</tt> are used for some of the iterator categories for which
-they do not have to be defined. In these cases the semantics of <tt>a+n</tt> is the same as that of
-</p>
-<blockquote>
-<pre>
-X tmp = a;
-advance(tmp, n);
-return tmp;
-</pre>
-</blockquote>
-<p>
-<ins>when <tt>X</tt> meets the input iterator requirements (24.2.3 [input.iterators]), otherwise it is the same as that of</ins>
-</p>
-<blockquote>
-<pre>
-<ins>X tmp = a;
-for (auto i = n; i; ++tmp, (void) --i) 
-  *tmp = <i>Expr</i>(i); 
-return tmp;</ins>
-</pre>
-</blockquote>
-<p>
-<ins>where <tt><i>Expr</i>(i)</tt> denotes the <tt>n-i</tt>-th expression that is assigned to for the corresponding algorithm;</ins> 
-and that of <tt>b-a</tt> is the same as of
-</p>
-<blockquote>
-<pre>
-return distance(a, b);
-</pre>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2178"></a>2178. <tt>Allocator</tt> requirement changes not mentioned Annex C</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], C.5 [diff.library] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Nevin Liber <b>Opened:</b> 2012-08-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Given that a number of things were removed from the allocator requirements (<tt>reference</tt>, <tt>const_reference</tt>, 
-<tt>address()</tt> in 17.6.3.5 [allocator.requirements]), it seems that these incompatible changes should be 
-mentioned in Annex C.5 [diff.library], more specifically in [diff.cpp03].
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Open 
-]</i></p>
-
-
-<p>
-It was clearly pointed out by Bill during the C++11 process that our change to allocator requirements
-potentially broke 3rd party user containers written to expect C++03 allocators, or rather, an
-allocator written to the minimal requirements of C++11 might not be guaranteed to work with a container
-written to the previous rules.  This was a trade-off in making allocaters easier to write by use of
-the <tt>allocator_traits</tt> framework.
-</p>
-
-<p>
-This probably does merit a write-up in Annex C, and we look forward to seeing wording.  Until then,
-the best we can do is move the issue to Open.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2179"></a>2179. <tt>enable_shared_from_this</tt> and construction from raw pointers</h3>
-<p><b>Section:</b> 20.8.2.5 [util.smartptr.enab], 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-08-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-On reflector message <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32927">c++std-lib-32927</a>, 
-Matt Austern asked whether the following example should be well-defined or not
-</p>
-<blockquote><pre>
-struct X : public enable_shared_from_this&lt;X&gt; { };
-auto xraw = new X;
-shared_ptr&lt;X&gt; xp1(xraw);
-shared_ptr&lt;X&gt; xp2(xraw);
-</pre></blockquote>
-<p>
-pointing out that 20.8.2.2.1 [util.smartptr.shared.const] does not seem to allow it, since
-<tt>xp1</tt> and <tt>xp2</tt> aren't allowed to share ownership, because each of them is required to have 
-<tt>use_count() == 1</tt>. Despite this wording it might be reasonable (and technical possible)
-to implement that request.
-<p/>
-On the other hand, there is the non-normative note in 20.8.2.5 [util.smartptr.enab] p11 (already part of TR1):
-</p>
-<blockquote><p>
-The <tt>shared_ptr</tt> constructors that <span style="color:#C80000;font-weight:bold">create unique pointers</span> 
-can detect the presence of an <tt>enable_shared_from_this</tt> base and assign the newly created <tt>shared_ptr</tt> 
-to its <tt>__weak_this member</tt>.
-</p></blockquote>
-<p>
-Now according to the specification in 20.8.2.2.1 [util.smartptr.shared.const] p3-7:
-</p>
-<blockquote><pre>
-template&lt;class Y&gt; explicit shared_ptr(Y* p);
-</pre></blockquote>
-<p>
-the notion of <em>creating unique pointers</em> can be read to be included by this note, because the post-condition
-of this constructor is <tt>unique() == true</tt>. Evidence for this interpretation seems to be weak, though.
-<p/>
-Howard Hinnant presented the counter argument, that actually the following is an "anti-idiom" and it seems questionable 
-to teach it to be well-defined in any case:
-</p>
-<blockquote><pre>
-auto xraw = new X;
-shared_ptr&lt;X&gt; xp1(xraw);
-shared_ptr&lt;X&gt; xp2(xraw);
-</pre></blockquote>
-<p>
-He also pointed out that the current post-conditions of the affected <tt>shared_ptr</tt> constructor
-would need to be reworded.
-<p/>
-It needs to be decided, which direction to follow. If this idiom seems too much broken to be supported,
-the note could be improved. If it should be supported, the constructors in
-20.8.2.2.1 [util.smartptr.shared.const] need a careful analysis to ensure that post-conditions
-are correct.
-<p/>
-Several library implementations currently do not support this example, instead they typically
-cause a crash. Matt points out that there are currently no explicit requirements imposed on
-<tt>shared_ptr</tt> objects to prevent them from owning the same underlying object without sharing the 
-ownership. It might be useful to add such a requirement.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-More discussion is needed to pick a direction to guide a proposed resolution.
-</p>
-
-<p><i>[2013-05-09 Jonathan comments]</i></p>
-
-<p>
-The note says the newly created <tt>shared_ptr</tt> is assigned to the <tt>weak_ptr</tt> member. It doesn't 
-say before doing that the <tt>shared_ptr</tt> should check if the <tt>weak_ptr</tt> is non-empty and possibly 
-share ownership with some other pre-existing <tt>shared_ptr</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2181"></a>2181. Exceptions from <em>seed sequence</em> operations</h3>
-<p><b>Section:</b> 26.5.1.2 [rand.req.seedseq], 26.5.3 [rand.eng], 26.5.4 [rand.adapt] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-08-18 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.seedseq">issues</a> in [rand.req.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-LWG issue <a href="lwg-defects.html#2180">2180</a> points out some deficiences in regard to the specification of the library-provided
-type <tt>std::seed_seq</tt> regarding exceptions, but there is another specification problem 
-in regard to general types satisfying the <em>seed sequence</em> constraints (named <tt>SSeq</tt>) as described in 
-26.5.1.2 [rand.req.seedseq].
-<p/>
-26.5.3 [rand.eng] p3 and 26.5.4.1 [rand.adapt.general] p3 say upfront:
-</p>
-<blockquote><p>
-Except where specified otherwise, no function described in this section 
-26.5.3 [rand.eng]/26.5.4 [rand.adapt] throws an exception.
-</p></blockquote>
-<p>
-This constraint causes problems, because the described templates in these sub-clauses depend on operations of 
-<tt>SSeq::generate()</tt> which is a function template, that depends both on operations provided by the 
-implementor of <tt>SSeq</tt> (e.g. of <tt>std::seed_seq</tt>), and those of the random access iterator type 
-provided by the caller. With class template <tt>linear_congruential_engine</tt> we have just one example for a user 
-of <tt>SSeq::generate()</tt> via:
-</p>
-<blockquote><pre>
-template&lt;class Sseq&gt; 
-linear_congruential_engine&lt;&gt;::linear_congruential_engine(Sseq&amp; q);
-
-template&lt;class Sseq&gt; 
-void linear_congruential_engine&lt;&gt;::seed(Sseq&amp; q);
-</pre></blockquote>
-<p>
-None of these operations has an exclusion rule for exceptions.
-<p/>
-As described in <a href="lwg-defects.html#2180">2180</a> the wording for <tt>std::seed_seq</tt> should and can be fixed to ensure that 
-operations of <tt>seed_seq::generate()</tt> won't throw except from operations of the provided iterator range, 
-but there is no corresponding "safety belt" for user-provided <tt>SSeq</tt> types, since 26.5.1.2 [rand.req.seedseq]
-does not impose no-throw requirements onto operations of <em>seed sequences</em>.
-</p>
-
-<ol style="list-style-type:upper-roman">
-
-<li><p>
-A quite radical step to fix this problem would be to impose general no-throw requirements on the expression
-<tt>q.generate(rb,re)</tt> from Table 115, but this is not as simple as it looks initially, because this
-function again depends on general types that are mutable random access iterators. Typically, we do not
-impose no-throw requirements on iterator operations and this would restrict general seed sequences where
-exceptions are not a problem. Furthermore, we do not impose comparable constraints for other expressions,
-like that of the expression <tt>g()</tt> in Table 116 for good reasons, e.g. <tt>random_device::operator()</tt>
-explicitly states when it throws exceptions.
-</p></li>
-
-<li><p>
-A less radical variant of the previous suggestion would be to add a normative requirement on the expression
-<tt>q.generate(rb,re)</tt> from Table 115 that says: "Throws nothing if operations of <tt>rb</tt> and <tt>re</tt> 
-do not throw exceptions". Nevertheless we typically do not describe <em>conditional</em> Throws elements in proper
-requirement sets elsewhere (Container requirements excluded, they just describe the containers from Clause 23)
-and this may exclude resonable implementations of seed sequences that could throw exceptions under rare
-situations. 
-</p></li>
-
-<li><p>
-The iterator arguments provided to <tt>SSeq::generate()</tt> for operations in templates of 26.5.3 [rand.eng] and 
-26.5.4 [rand.adapt] are under control of implementations, so we could impose stricter exceptions requirements
-on <tt>SSeq::generate()</tt> for <tt>SSeq</tt> types that are used to instantiate member templates in 26.5.3 [rand.eng] 
-and 26.5.4 [rand.adapt] solely.
-</p></li>
-
-<li><p>
-We simply add extra wording to the introductive parts of 26.5.3 [rand.eng] and 26.5.4 [rand.adapt]
-that specify that operations of the engine (adaptor) templates that depend on a template parameter <tt>SSeq</tt>
-throw no exception unless <tt>SSeq::generate()</tt> throws an exception.
-</p></li>
-</ol>
-
-<p>
-Given these options I would suggest to apply the variant described in the fourth bullet.
-<p/>
-The proposed resolution attempts to reduce a lot of the redundancies of requirements in the introductory paragraphs of 
-26.5.3 [rand.eng] and 26.5.4 [rand.adapt] by introducing a new intermediate sub-clause 
-"Engine and engine adaptor class templates" following sub-clause 26.5.2 [rand.synopsis]. This approach also
-solves the problem that currently 26.5.3 [rand.eng] also describes requirements that apply for
-26.5.4 [rand.adapt] (Constrained templates involving the <tt>Sseq</tt> parameters).
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Remove the first bullet point:
-</p>
-<blockquote><p>
-?- Throughout this sub-clause general requirements and conventions are described that apply to every class 
-template specified in sub-clause 26.5.3 [rand.eng] and 26.5.4 [rand.adapt]. Phrases of the form "in those 
-sub-clauses" shall be interpreted as equivalent to "in sub-clauses 26.5.3 [rand.eng] and 26.5.4 [rand.adapt]". 
-</p></blockquote>
-<p>
-Replace "in those sub-clauses" with "in sub-clauses 26.5.3 [rand.eng] and 26.5.4 [rand.adapt]".
-<p/>
-Find another place for the wording. 
-<p/>
-Daniel: These are requirements on the implementation not on the types. I'm not comfortable in moving it to another place 
-without double checking. 
-<p/>
-Improve the text (there are 4 "for"s): <em>for</em> copy constructors, <em>for</em> copy assignment operators, 
-<em>for</em> streaming operators, and <em>for</em> equality and inequality operators are not shown in the synopses. 
-<p/>
-Move the information of this paragraph to the paragraphs it refers to: 
-</p>
-<blockquote><p>
-"-?- Descriptions are provided in those sub-clauses only for engine operations that are not described in 
-26.5.1.4 [rand.req.eng], for adaptor operations that are not described in 26.5.1.5 [rand.req.adapt], or for 
-operations where there is additional semantic information. In particular, declarations for copy constructors, for 
-copy assignment operators, for streaming operators, and for equality and inequality operators are not shown in the synopses." 
-</p></blockquote>
-<p>
-Alisdair: I prefer duplication here than consolidation/reference to these paragraphs. 
-<p/>
-The room showed weakly favjust or for duplication. 
-</p>
-
-<p>
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Add a new sub-clause titled "Engine and engine adaptor class templates" following sub-clause 
-26.5.2 [rand.synopsis] (but at the same level) and add one further sub-clause "General" as
-child of the new sub-clause as follows:
-<p/>
-<ins>Engine and engine adaptor class templates [rand.engadapt]</ins>
-<p/>
-<ins>General [rand.engadapt.general]</ins>
-</p>
-<blockquote><p>
-<ins>-?- Throughout this sub-clause general requirements and conventions are described that apply to every class 
-template specified in sub-clause 26.5.3 [rand.eng] and 26.5.4 [rand.adapt]. Phrases of the 
-form "in those sub-clauses" shall be interpreted as equivalent to "in sub-clauses 26.5.3 [rand.eng] and 
-26.5.4 [rand.adapt]".
-</ins>
-<p/>
-<ins>-?- Except where specified otherwise, the complexity of each function specified in those sub-clauses is constant.</ins>
-<p/>
-<ins>-?- Except where specified otherwise, no function described in those sub-clauses throws an exception.</ins>
-<p/>
-<ins>-?- Every function described in those sub-clauses that has a function parameter <tt>q</tt> of type
-<tt>SSeq&amp;</tt> for a template type parameter named <tt>SSeq</tt> that is different from type <tt>std::seed_seq</tt> 
-throws what and when the invocation of <tt>q.generate</tt> throws.</ins>
-<p/>
-<ins>-?- Descriptions are provided in those sub-clauses only for engine operations that are not described in 
-26.5.1.4 [rand.req.eng], for adaptor operations that are not described in 26.5.1.5 [rand.req.adapt],
-or for operations where there is additional semantic information. In particular, declarations for copy constructors,
-for copy assignment operators, for streaming operators, and for equality and inequality operators
-are not shown in the synopses.</ins>
-<p/>
-<ins>-?- Each template specified in those sub-clauses requires one or more relationships, involving the value(s) of
-its non-type template parameter(s), to hold. A program instantiating any of these templates is ill-formed if
-any such required relationship fails to hold.</ins>
-<p/>
-<ins>-?- For every random number engine and for every random number engine adaptor <tt>X</tt> defined in those 
-sub-clauses:</ins>
-</p>
-<ul>
-<li><p>
-<ins>if the constructor</ins>
-</p>
-<blockquote><pre>
-<ins>template &lt;class Sseq&gt; explicit X(Sseq&amp; q);</ins>
-</pre></blockquote>
-<p>
-<ins>is called with a type <tt>Sseq</tt> that does not qualify as a seed sequence, then this constructor shall not
-participate in overload resolution;</ins>
-</p>
-</li>
-
-<li><p>
-<ins>if the member function</ins>
-</p>
-<blockquote><pre>
-<ins>template &lt;class Sseq&gt; void seed(Sseq&amp; q);</ins>
-</pre></blockquote>
-<p>
-<ins>is called with a type <tt>Sseq</tt> that does not qualify as a seed sequence, then this function shall not
-participate in overload resolution;</ins>
-</p>
-</li>
-</ul>
-<p>
-<ins>The extent to which an implementation determines that a type cannot be a seed sequence is unspecified,
-except that as a minimum a type shall not qualify as a seed sequence if it is implicitly convertible to
-<tt>X::result_type</tt>.</ins>
-</p>
-</blockquote>
-
-</li>
-
-<li><p>Edit the contents of sub-clause 26.5.3 [rand.eng] as indicated:</p>
-
-<blockquote><p>
--1- Each type instantiated from a class template specified in this section 26.5.3 [rand.eng] satisfies the 
-requirements of a random number engine (26.5.1.4 [rand.req.eng]) type <ins>and the general implementation 
-requirements specified in sub-clause [rand.engadapt.general]</ins>.
-<p/>
-<del>-2- Except where specified otherwise, the complexity of each function specified in this section 26.5.3 [rand.eng] 
-is constant.</del>
-<p/>
-<del>-3- Except where specified otherwise, no function described in this section 26.5.3 [rand.eng] throws an exception.</del>
-<p/>
-<del>-4- Descriptions are provided in this section 26.5.3 [rand.eng] only for engine operations that are not 
-described in 26.5.1.4 [rand.req.eng] [&hellip;]</del>
-<p/>
-<del>-5- Each template specified in this section 26.5.3 [rand.eng] requires one or more relationships, 
-involving the value(s) of its non-type template parameter(s), to hold. [&hellip;]</del>
-<p/>
-<del>-6- For every random number engine and for every random number engine adaptor <tt>X</tt> defined in this subclause
-(26.5.3 [rand.eng]) and in sub-clause 26.5.3 [rand.eng]: [&hellip;]</del>
-</p></blockquote>
-
-</li>
-
-<li><p>Edit the contents of sub-clause 26.5.4.1 [rand.adapt.general] as indicated:</p>
-
-<blockquote><p>
--1- Each type instantiated from a class template specified in this section <del>26.5.3 [rand.eng]</del><ins>26.5.4 [rand.adapt]</ins> satisfies the 
-requirements of a random number engine adaptor (26.5.1.5 [rand.req.adapt]) type <ins>and the general 
-implementation requirements specified in sub-clause [rand.engadapt.general]</ins>.
-<p/>
-<del>-2- Except where specified otherwise, the complexity of each function specified in this section 26.5.4 [rand.adapt] 
-is constant.</del>
-<p/>
-<del>-3- Except where specified otherwise, no function described in this section 26.5.4 [rand.adapt] throws an exception.</del>
-<p/>
-<del>-4- Descriptions are provided in this section 26.5.4 [rand.adapt] only for engine operations that are not 
-described in 26.5.1.5 [rand.req.adapt] [&hellip;]</del>
-<p/>
-<del>-5- Each template specified in this section 26.5.4 [rand.adapt] requires one or more relationships, involving 
-the value(s) of its non-type template parameter(s), to hold. [&hellip;]</del>
-</p></blockquote>
-
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2014-02-09, Daniel provides alternative resolution]</i></p>
-
-
-<p><i>[Lenexa 2015-05-07: Move to Ready]</i></p>
-
-<p>LWG 2181 exceptions from seed sequence operations</p>
-<p>STL: Daniel explained that I was confused. I said, oh, seed_seq says it can throw if the RanIt throws. Daniel says the RanIts are provided by the engine. Therefore if you give a seed_seq to an engine, it cannot throw, as implied by the current normative text. So what Daniel has in the PR is correct, if slightly unnecessary. It's okay to have explicitly non-overlapping Standardese even if overlapping would be okay.</p>
-<p>Marshall: And this is a case where the std:: on seed_seq is a good thing.</p>
-<p>STL: Meh.</p>
-<p>STL: And that was my only concern with this PR. I like the latest PR much better than the previous.</p>
-<p>Marshall: Yes. There's a drive-by fix for referencing the wrong section. Other than that, the two are the same.</p>
-<p>STL: Alisdair wanted the repetition instead of centralization, and I agree.</p>
-<p>Marshall: Any other opinions?</p>
-<p>Jonathan: I'll buy it.</p>
-<p>STL: For a dollar?</p>
-<p>Hwrd: I'll buy that for a nickel.</p>
-<p>Marshall: Any objections to Ready? I don't see a point in Immediate.</p>
-<p>Jonathan: Absolutely agree.</p>
-<p>Marshall: 7 for ready, 0 opposed, 0 abstain.</p>
-
-<p><i>[2014-05-22, Daniel syncs with recent WP]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit the contents of sub-clause 26.5.3 [rand.eng] as indicated:</p>
-
-<blockquote><p>
--1- Each type instantiated from a class template specified in this section 26.5.3 [rand.eng] satisfies the 
-requirements of a random number engine (26.5.1.4 [rand.req.eng]) type.
-<p/>
--2- Except where specified otherwise, the complexity of each function specified in this section 26.5.3 [rand.eng] 
-is constant.
-<p/>
--3- Except where specified otherwise, no function described in this section 26.5.3 [rand.eng] throws an exception.
-<p/>
-<ins>-?- Every function described in this section 26.5.3 [rand.eng] that has a function parameter <tt>q</tt> of 
-type <tt>Sseq&amp;</tt> for a template type parameter named <tt>Sseq</tt> that is different from type <tt>std::seed_seq</tt> 
-throws what and when the invocation of <tt>q.generate</tt> throws.</ins>
-<p/>
--4- Descriptions are provided in this section 26.5.3 [rand.eng] only for engine operations that are not 
-described in 26.5.1.4 [rand.req.eng] or for operations where there is additional semantic information. In particular, 
-declarations for copy constructors, <del>for</del> copy assignment operators, <del>for</del> streaming operators, <del>and 
-for</del> equality <ins>operators,</ins> and inequality operators are not shown in the synopses.
-<p/>
--5- Each template specified in this section 26.5.3 [rand.eng] requires one or more relationships, 
-involving the value(s) of its non-type template parameter(s), to hold. A program instantiating any of these templates is 
-ill-formed if any such required relationship fails to hold.
-<p/>
--6- For every random number engine and for every random number engine adaptor <tt>X</tt> defined in this subclause
-(26.5.3 [rand.eng]) and in sub-clause 26.5.4 [rand.adapt]: 
-</p>
-<ul>
-<li><p>
-if the constructor
-</p>
-<blockquote><pre>
-template &lt;class Sseq&gt; explicit X(Sseq&amp; q);
-</pre></blockquote>
-<p>
-is called with a type <tt>Sseq</tt> that does not qualify as a seed sequence, then this constructor shall not
-participate in overload resolution;
-</p>
-</li>
-<li><p>
-if the member function
-</p>
-<blockquote><pre>
-template &lt;class Sseq&gt; void seed(Sseq&amp; q);
-</pre></blockquote>
-<p>
-is called with a type <tt>Sseq</tt> that does not qualify as a seed sequence, then this function shall not
-participate in overload resolution;
-</p>
-</li>
-</ul>
-<p>
-The extent to which an implementation determines that a type cannot be a seed sequence is unspecified,
-except that as a minimum a type shall not qualify as a seed sequence if it is implicitly convertible to
-<tt>X::result_type</tt>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Edit the contents of sub-clause 26.5.4.1 [rand.adapt.general] as indicated:</p>
-
-<blockquote><p>
--1- Each type instantiated from a class template specified in this section 
-<del>26.5.3 [rand.eng]</del><ins>26.5.4 [rand.adapt]</ins> satisfies the requirements of a 
-random number engine adaptor (26.5.1.5 [rand.req.adapt]) type.
-<p/>
--2- Except where specified otherwise, the complexity of each function specified in this section 26.5.4 [rand.adapt] 
-is constant.
-<p/>
--3- Except where specified otherwise, no function described in this section 26.5.4 [rand.adapt] throws an exception.
-<p/>
-<ins>-?- Every function described in this section 26.5.4 [rand.adapt] that has a function parameter <tt>q</tt> of 
-type <tt>Sseq&amp;</tt> for a template type parameter named <tt>Sseq</tt> that is different from type <tt>std::seed_seq</tt> 
-throws what and when the invocation of <tt>q.generate</tt> throws.</ins>
-<p/>
--4- Descriptions are provided in this section 26.5.4 [rand.adapt] only for adaptor operations that are not 
-described in section 26.5.1.5 [rand.req.adapt] or for operations where there is additional semantic information. In particular, 
-declarations for copy constructors, <del>for</del> copy assignment operators, <del>for</del> streaming operators, <del>and for</del> 
-equality <ins>operators,</ins> and inequality operators are not shown in the synopses.
-<p/>
--5- Each template specified in this section 26.5.4 [rand.adapt] requires one or more relationships, involving 
-the value(s) of its non-type template parameter(s), to hold. A program instantiating any of these templates is ill-formed if
-any such required relationship fails to hold.
-</p></blockquote>
-</li>
-
-<li><p>Edit the contents of sub-clause 26.5.8.1 [rand.dist.general] p2 as indicated: [<i>Drafting note</i>: These
-editorial changes are just for consistency with those applied to 26.5.3 [rand.eng] and 
-26.5.4.1 [rand.adapt.general] &mdash; <i>end drafting note</i>]</p>
-
-<blockquote><p>
--2- Descriptions are provided in this section 26.5.8 [rand.dist] only for distribution operations that are not 
-described in 26.5.1.6 [rand.req.dist] or for operations where there is additional semantic information. In particular, 
-declarations for copy constructors, <del>for</del> copy assignment operators, <del>for</del> streaming operators, <del>and for</del> 
-equality <ins>operators,</ins> and inequality operators are not shown in the synopses.
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2183"></a>2183. Muddled allocator requirements for <tt>match_results</tt> constructors</h3>
-<p><b>Section:</b> 28.10.1 [re.results.const], 28.10.6 [re.results.all] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.results.const">active issues</a> in [re.results.const].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results.const">issues</a> in [re.results.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-28.10.1 [re.results.const] p1 says:
-</p>
-<blockquote><p>
-In all <tt>match_results</tt> constructors, a copy of the <tt>Allocator</tt> argument shall be used for any memory 
-allocation performed by the constructor or member functions during the lifetime of the object.
-</p></blockquote>
-<p>
-There are three constructors:
-</p>
-<blockquote><pre>
-match_results(const Allocator&amp; = Allocator());
-match_results(const match_results&amp; m);
-match_results(match_results&amp;&amp; m) noexcept;
-</pre></blockquote>
-<p>
-The second and third constructors do no have an <tt>Allocator</tt> argument, so despite the "all <tt>match_results</tt> 
-constructors", it is not possible to use "the <tt>Allocator</tt> argument" for the second and third constructors.
-<p/>
-The requirements for those two constructors also does not give any guidance. The second constructor has no language 
-about allocators, and the third states that the stored <tt>Allocator</tt> value is move constructed from 
-<tt>m.get_allocator()</tt>, but doesn't require using that allocator to allocate memory.
-<p/>
-The same basic problem recurs in 28.10.6 [re.results.all], which gives the required return value for 
-<tt>get_allocator()</tt>:
-</p>
-<blockquote><p>
-<i>Returns</i>: A copy of the <tt>Allocator</tt> that was passed to the object's constructor or, if that allocator 
-has been replaced, a copy of the most recent replacement.
-</p></blockquote>
-<p>
-Again, the second and third constructors do not take an <tt>Allocator</tt>, so there is nothing that meets this 
-requirement when those constructors are used.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2184"></a>2184. Muddled allocator requirements for <tt>match_results</tt> assignments</h3>
-<p><b>Section:</b> 28.10.1 [re.results.const], 28.10.6 [re.results.all] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.results.const">active issues</a> in [re.results.const].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results.const">issues</a> in [re.results.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The effects of the two assignment operators are specified in Table 141. Table 141 makes no mention of allocators, 
-so, presumably, they don't touch the target object's allocator. That's okay, but it leaves the question: 
-<tt>match_results::get_allocator()</tt> is supposed to return "A copy of the Allocator that was passed to the 
-object's constructor or, if that allocator has been replaced, a copy of the most recent replacement"; if assignment 
-doesn't replace the allocator, how can the allocator be replaced?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2189"></a>2189. Throwing <tt>swap</tt> breaks unordered containers' state</h3>
-<p><b>Section:</b> 23.2.5.1 [unord.req.except] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2012-09-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The hash functor and key-comparison functor of unordered containers are allowed to throw on <tt>swap</tt>.
-</p>
-<p>
-23.2.5.1 [unord.req.except]p3 "For unordered associative containers, no <tt>swap</tt> function throws
-an exception unless that exception is thrown by the swap of the container's Hash or Pred object (if any)."
-</p>
-<p>
-In such a case we must offer the basic exception safety guarantee, where both objects are left in valid
-but unspecified states, and no resources are leaked.  This yields a corrupt, un-usable container if the
-first <tt>swap</tt> succeeds, but the second fails by throwing, as the functors form a matched pair.
-</p>
-<p>
-So our basic scenario is first, swap the allocators if the allocators propagate on swap, according to
-<tt>allocator_traits</tt>.  Next we swap the pointers to our internal hash table data structures, so that
-they match the allocators that allocated them.  (Typically, this operation cannot throw).  Now our containers
-are back in a safely destructible state if an exception follows.
-</p>
-<p>
-Next, let's say we swap the hash functor, and that throws.  We have a corrupt data structure, in that the
-buckets are not correctly indexed by the correct functors, lookups will give unpredicatable results etc.
-We can safely restore a usable state by forcibly clearing each container - which does not leak resources
-and leaves us with two (empty but) usable containers.
-</p>
-<p>
-Now let us assume that the hasher swap succeeds.  Next we swap the equality comparator functor, and this
-too could throw. The important point to bear in mind is that these two functors form an important pairing
-- two objects that compare equal by the equality functor must also hash to the same value.  If we swap
-one without the other, we most likely leave the container in an unusable state, even if we clear out all
-elements.
-</p>
-<p>
-1. A colleague pointed out that the solution for this is to dynamically allocate the two functors, and then
-we need only swap pointers, which is not a throwing operation.  And if we don't want to allocate on default
-construction (a common QoI request), we might consider moving to a dynamically allocated functors whenever
-<tt>swap</tt> is called, or on first insertion.  Of course, allocating memory in <tt>swap</tt> is a whole
-new can of worms, but this does not really sound like the design we had intended.
-</p>
-
-<p>
-2. The simplest option is to say that we do not support hasher or equality functors that throw on ADL
-<tt>swap</tt>.  Note that the requirement is simply to not throw, rather than to be explicitly
-marked as <tt>noexcept</tt>.  Throwing functors are allowed, so long as we never use values that
-would actually manifest a throw when used in an unordered container.
-</p>
-
-<p>
-Pablo went on to give me several more options, to be sure we have a full set to consider:
-</p>
-<p>
-3. Disallow one or the other functor from throwing.  In that case, the 
-possibly-throwing functor must be swapped first, then the other functor, 
-the allocator, and the data pointer(s) afterwards (in any order -- there 
-was a TC that allocator assignment and swap may not throw if the 
-corresponding propagation trait is true.). Of course, the question 
-becomes: which functor is allowed to throw and which one is not?
-</p>
-<p>
-4. Require that any successful functor <tt>swap</tt> be reliably reversible.  
-This is very inventive.  I know of no other place in the standard where 
-such a requirement is stated, though I have occasionally wanted such a 
-guarantee.
-</p>
-<p>
-5. Allow a failed swap to leave the containers in a state where future 
-insertions may fail for reasons other than is currently allowed.  
-Specifically, if the hash and equality functors are out of sync, all 
-insertions will fail.  Presumably some "incompletely swapped" exception 
-would be thrown.  This is "slightly" inventive, although people have been 
-discussing "radioactive" states for a while.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2191"></a>2191. Incorrect specification of <tt>match_results(match_results&amp;&amp;)</tt></h3>
-<p><b>Section:</b> 28.10.1 [re.results.const] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-10-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.results.const">active issues</a> in [re.results.const].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results.const">issues</a> in [re.results.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-28.10.1 [re.results.const]/3: "Move-constructs an object of class <tt>match_results</tt> satisfying the same 
-postconditions as Table 141."
-</p>
-<p>
-Table 141 lists various member functions and says that their results should be the results of the corresponding member 
-function calls on <tt>m</tt>. But <tt>m</tt> has been moved from, so the actual requirement ought to be based on the 
-value that <tt>m</tt> had <em>before</em> the move construction, not on <tt>m</tt> itself.
-</p>
-<p>
-In addition to that, the requirements for the copy constructor should refer to Table 141.
-<p/>
-<u>Ganesh</u>:
-<p/>
-Also, the requirements for move-assignment should refer to Table 141. Further it seems as if in Table 141 all phrases of
-"for all integers <tt>n &lt; m.size()</tt>" should be replaced by "for all <em>unsigned</em> integers 
-<tt>n &lt; m.size()</tt>".
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2192"></a>2192. Validity and return type of <tt>std::abs(0u)</tt> is unclear</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-10-02 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In C++03 the following two programs are invalid:
-</p>
-<ol style="list-style-type:upper-alpha"><li>
-<blockquote><pre>
-#include &lt;cmath&gt;
-
-int main() {
-  std::abs(0u);
-}
-</pre></blockquote>
-</li>
-<li>
-<blockquote><pre>
-#include &lt;cstdlib&gt;
-
-int main() {
-  std::abs(0u);
-}
-</pre></blockquote>
-</li>
-</ol>
-<p>
-because none of the <tt>std::abs()</tt> overloads is a best match.
-</p>
-<p>
-In C++11 the additional "sufficient overload" rule from 26.8 [c.math] p11 (see also LWG
-<a href="lwg-defects.html#2086">2086</a>) can be read to be applicable to the <tt>std::abs()</tt> overloads as well, which
-can lead to the following possible conclusions:
-<p/>
-<ol>
-<li><p>The program</p>
-<blockquote><pre>
-#include &lt;type_traits&gt;
-#include &lt;cmath&gt;
-
-static_assert(std::is_same&lt;decltype(std::abs(0u)), double&gt;(), "Oops");
-
-int main() {
-  std::abs(0u); // Calls std::abs(double)
-}
-</pre></blockquote>
-<p>
-is required to be well-formed, because of sub-bullet 2 ("[..] or an integer type [..]") of 
-26.8 [c.math] p11 (Note that the current resolution of LWG <a href="lwg-defects.html#2086">2086</a> doesn't
-fix this problem).
-</p>
-</li>
-<li><p>Any translation unit including both <tt>&lt;cmath&gt;</tt> and <tt>&lt;cstdlib&gt;</tt>
-might be ill-formed because of two conflicting requirements for the return type of the overload
-<tt>std::abs(int)</tt>.
-</p>
-</li>
-</ol>
-</p>
-
-<p>
-It seems to me that at least the second outcome is not intended, personally I think that both
-are unfortunate: In contrast to all other floating-point functions explicitly listed in sub-clause 
-26.8 [c.math], the <tt>abs</tt> overloads have a special and well-defined meaning for 
-signed integers and thus have explicit overloads returning a signed integral type. I also believe that 
-there is no problem accepting that <tt>std::fabs(0u)</tt> is well-defined with return type <tt>double</tt>, 
-because the leading 'f' clearly signals that we have a floating point function here. But the expected 
-return type of <tt>std::abs(0u)</tt> seems less than clear to me. A very reasonable answer could be that 
-this has the same type as its argument type, alternatively it could be a reasonably chosen signed 
-integer type, or a floating point type. It should also be noted, that the corresponding
-"generic type function" rule set from C99/C1x in 7.25 p2+3 is restricted to the floating-point functions
-from <tt>&lt;math.h&gt;</tt> and <tt>&lt;complex.h&gt;</tt>, so cannot be applied to the <tt>abs</tt>
-functions (but to the <tt>fabs</tt> functions!).
-<p/>
-Selecting a signed integer return type for unsigned input values can also problematic: The directly
-corresponding signed integer type would give half of the possible argument values an implementation-defined
-result value. Choosing the first signed integer value that can represent all positive values would solve this
-problem for <tt>unsigned int</tt>, but there would be no clear answer for the input type <tt>std::uintmax_t</tt>.
-</p>
-<p>
-Based on this it seems to me that the C++03 state in regard to unsigned integer values was the better
-situation, alerting the user that this code is ambigious at the moment (This might be change with different core-language
-rules as described in N3387).
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Resolution: leave as new and bring it back in Chicago. 
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-This issue also relates to LWG <a href="lwg-active.html#2294">2294</a>
-<p/> 
-STL: these two issues should be bundled 
-<p/>
-Stefanus: do what Pete says, and add overloads for unsigned to return directly 
-<p/>
-STL: agree Consensus that this is an issue 
-<p/>
-Walter: motion to move to Open 
-<p/>
-STL: no wording for <a href="lwg-active.html#2294">2294</a> 
-<p/>
-Stefanus: move to open and note the 2 issues are related and should be moved together 
-<p/>
-Stefanus: add and define unsigned versions of <tt>abs()</tt>
-</p>
-
-<p><i>[2014-02-03 Howard comments]</i></p>
-
-<p>
-Defining <tt>abs()</tt> for unsigned integers is a bad idea. Doing so would turn compile time errors into run time errors, 
-especially in C++ where we have templates, and the types involved are not always apparent to the programmer at design time.  
-For example, consider:
-</p>
-<blockquote><pre>
-template &lt;class Int&gt;
-Int
-analyze(Int x, Int y)
-{
-  // ...
-  if (std::abs(<span style="color:#C80000;font-weight:bolder">x - y</span>) &lt; threshold)
-  {
-    // ...
-  }
-  // ...
-}
-</pre></blockquote>
-<p>
-<tt>std::abs(<i>expr</i>)</tt> is often used to ask: Are these two numbers sufficiently close?  When the assumption is that 
-the two numbers are signed (either signed integral, or floating point), the logic is sound. But when the same logic is 
-accidentally used with an arithmetic type not capable of representing negative numbers, and especially if unsigned overflow 
-will silently happen, then the logic is no longer correct:
-</p>
-<blockquote><pre>
-auto i = analyze(20u, 21u);  // Today a compile time error
-    // But with <tt>abs(unsigned)</tt> becomes a run time error
-</pre></blockquote>
-<p>
-This is not idle speculation. Search the net for "<tt>abs unsigned</tt>" 
-<a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=printview&amp;t=35514&amp;start=0">here</a> or 
-<a href="http://fischerlaender.de/mysql/surprising-mysql-behaviour-using-unsigned-int">here</a>.
-<p/>
-In C++11, <tt>chrono</tt> <tt>duration</tt>s and <tt>time_point</tt>s are allowed to be based on unsigned integers. Taking the 
-absolute value of the difference of two such <tt>time_point</tt>s would be easy to accidentally do (say in code templated on 
-<tt>time_point</tt>s), and would certainly be a logic bug, caught at compile time unless we provide the error prone <tt>abs(unsigned)</tt>.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-GR: Do we want to make the changes to both <tt>&lt;cmath&gt;</tt> and <tt>&lt;cstdlib&gt;</tt>?<br/> 
-AM: I think so; we should provide consistent overloads.<br/> 
-GR: Then we're imposing restrictions on what users put in the global namespace.<br/> 
-AM: I'm not so worried about that. Users already know not to use C library names.<br/>
-VV: So what are we going to do about unsigned integers? AM: We will say that they are ill-formed.<br/>
-AM: Does anyone volunteer to send updated wording to Daniel? GR, can you do it? GR: Sure.<br/>
-GR: To clarify: we want to make unsigned types ill-formed?<br/> 
-AM: With promotion rank at least <tt>unsigned int</tt>.<br/>
-GR: And NL suggests to just list those types.
-<p/>
-Conclusion: Merge the resolution into a single issue. 
-</p>
-
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-<blockquote class = "note">
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 26.8 [c.math] p11 as indicated:</p>
-<blockquote><p>
--11- Moreover<ins>, except for the <tt>abs</tt> functions</ins>, there shall be additional overloads sufficient to ensure:
-<p/>
-[&hellip;]
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-03-03, Geoffrey Romer provides improved wording]</i></p>
-
-<p>
-In the following I've drafted combined wording to resolve LWG <a href="lwg-active.html#2192">2192</a> and <a href="lwg-active.html#2294">2294</a>. Note that the first 
-two paragraphs are taken verbatim from the P/R of LWG <a href="lwg-active.html#2294">2294</a>, but the third is newly drafted:
-</p>
-
-<p><i>[2015-05-05 Lenexa: Howard to draft updated wording]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Insert the following new paragraphs after 26.8 [c.math] p7:</p>
-<blockquote>
-<p>
--6- In addition to the <tt>int</tt> versions of certain math functions in <tt>&lt;cstdlib&gt;</tt>, C++ adds <tt>long</tt> 
-and <tt>long long</tt> overloaded versions of these functions, with the same semantics.
-<p/>
--7- The added signatures are:
-</p>
-<blockquote>
-<pre>
-long abs(long); <i>// labs()</i>
-long long abs(long long); <i>// llabs()</i>
-ldiv_t div(long, long); <i>// ldiv()</i>
-lldiv_t div(long long, long long); <i>// lldiv()</i>
-</pre>
-</blockquote>
-<p>
-<ins>-?- To avoid ambiguities, C++ also adds the following overloads of <tt>abs()</tt> to <tt>&lt;cstdlib&gt;</tt>, 
-with the semantics defined in <tt>&lt;cmath&gt;</tt>:</ins>
-</p>
-<blockquote>
-<pre>
-<ins>float abs(float);
-double abs(double);
-long double abs(long double);</ins>
-</pre>
-</blockquote>
-<p>
-<ins>-?- To avoid ambiguities, C++ also adds the following overloads of <tt>abs()</tt> to <tt>&lt;cmath&gt;</tt>, 
-with the semantics defined in <tt>&lt;cstdlib&gt;</tt>:</ins>
-</p>
-<blockquote>
-<pre>
-<ins>int abs(int);
-long abs(long);
-long long abs(long long);</ins>
-</pre>
-</blockquote>
-<p>
-<ins>-?- If <tt>abs()</tt> is called with an argument of unsigned integral type that cannot be converted to <tt>int</tt> 
-by integral promotion (4.5 [conv.prom]), the program is ill-formed. [<i>Note</i>: arguments that can be promoted 
-to <tt>int</tt> are permitted for compatibility with C. &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2195"></a>2195. Missing constructors for <tt>match_results</tt></h3>
-<p><b>Section:</b> 28.10 [re.results] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-10-06 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results">issues</a> in [re.results].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The requirement expressed in 28.10 [re.results] p2
-</p>
-<blockquote><p>
-The class template <tt>match_results</tt> shall satisfy the requirements of an allocator-aware container and of a
-sequence container, as specified in 23.2.3 [sequence.reqmts], except that only operations defined for 
-const-qualified sequence containers are supported.
-</p></blockquote>
-<p>
-can be read to require the existence of the described constructors from as well, but they do not exist in the
-synopsis. 
-<p/>
-The missing sequence constructors are: 
-</p>
-<blockquote><pre>
-match_results(initializer_list&lt;value_type&gt;);
-match_results(size_type, const value_type&amp;);
-template&lt;class InputIterator&gt; match_results(InputIterator, InputIterator);
-</pre></blockquote>
-<p>
-The missing allocator-aware container constructors are:
-</p>
-<blockquote><pre>
-match_results(const match_results&amp;, const Allocator&amp;);
-match_results(match_results&amp;&amp;, const Allocator&amp;);
-</pre></blockquote>
-<p>
-It should be clarified, whether (a) constructors are an exception of above mentioned operations or (b) whether
-at least some of them (like those accepting a <tt>match_results</tt> value and an allocator) should be added.
-<p/>
-As visible in several places of the standard (including the core language), constructors seem usually to be considered 
-as "operations" and they certainly can be invoked for const-qualified objects.
-<p/>
-The below given proposed resolution applies only the minimum necessary fix, i.e. it excludes constructors from
-above requirement. 
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Check current implementations to see what they do and, possibly, write a paper.   
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Ask Daniel to update the proposed wording to include the allocator copy and move constructors.
-</p>
-
-<p><i>[2014-01-18 Daniel changes proposed resolution]</i></p>
-
-<p>
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-</p>
-
-<blockquote class="note">
-<ol>
-<li><p>Change 28.10 [re.results] p2 as indicated:</p>
-<blockquote><p>
-The class template <tt>match_results</tt> shall satisfy the requirements of an allocator-aware container and of a
-sequence container, as specified in 23.2.3 [sequence.reqmts], except that only operations defined for 
-const-qualified sequence containers <ins>that are not constructors</ins> are supported.
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05-06 Lenexa]</i></p>
-
-<p>MC passes important knowledge to EF.</p>
-<p>VV, RP: Looks good.</p>
-<p>TK: Second form should be conditionally noexcept</p>
-<p>JY: Sequence constructors are not here, but mentioned in the issue writeup. Why?</p>
-<p>TK: That would have been fixed by the superseded wording.</p>
-<p>JW: How does this interact with Mike Spertus' allocator-aware regexes? [...] Perhaps it doesn't.</p>
-<p>JW: Can't create match_results, want both old and new resolution.</p>
-<p>JY: It's problematic that users can't create these, but not this issue.</p>
-<p>VV: Why conditional noexcept?</p>
-<p>MC: Allocator move might throw.</p>
-<p>JW: Update superseded wording to "only non-constructor operations that are"?</p>
-<p>MC: Only keep superseded, but append "and the means of constructing match_results are limited to [...]"?</p>
-<p>JY: Bullet 4 paragraph 2 needs to address the allocator constructor.</p>
-<p>Assigned to JW for drafting.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 28.10 [re.results] p4, class template <tt>match_results</tt> synopsis, as indicated:</p>
-<blockquote><pre>
-[&hellip;]
-// 28.10.1, construct/copy/destroy:
-explicit match_results(const Allocator&amp; a = Allocator());
-match_results(const match_results&amp; m);
-<ins>match_results(const match_results&amp; m, const Allocator&amp; a);</ins>
-match_results(match_results&amp;&amp; m) noexcept;
-<ins>match_results(match_results&amp;&amp; m, const Allocator&amp; a) noexcept;</ins>
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Change 28.10.1 [re.results.const]  as indicated: [<i>Drafting note:</i> Paragraph 6 as currently written,
-makes not much sense, because the <tt>noexcept</tt> does not allow any exception to propagate. Further-on, the allocator requirements
-do not allow for throwing move constructors. Deleting it seems to be near to editorial &mdash; <i>end drafting note</i>]</p>
-<blockquote>
-
-<pre>
-match_results(const match_results&amp; m);
-<ins>match_results(const match_results&amp; m, const Allocator&amp; a);</ins>
-</pre>
-<blockquote>
-<p>
--4- <i>Effects:</i> Constructs an object of class <tt>match_results</tt>, as a copy of <tt>m</tt>.
-</p>
-</blockquote>
-
-<pre>
-match_results(match_results&amp;&amp; m) noexcept;
-<ins>match_results(match_results&amp;&amp; m, const Allocator&amp; a) noexcept;</ins>
-</pre>
-<blockquote>
-<p>
--5- <i>Effects:</i> Move-constructs an object of class <tt>match_results</tt> from <tt>m</tt> satisfying the same postconditions
-as Table 142. <del>Additionally</del><ins>For the first form</ins>, the stored <tt>Allocator</tt> value is move constructed 
-from <tt>m.get_allocator()</tt>.
-<p/>
-<del>-6- <i>Throws:</i> Nothing if the allocator's move constructor throws nothing.</del>
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2198"></a>2198. <tt>max_load_factor(z)</tt> makes no strong guarantees, but bans useful behavior</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2012-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The user cannot specify a <tt>max_load_factor</tt> for their unordered container
-at construction, it must be supplied after the event, when the container is
-potentially not empty.  The contract for this method is deliberately vague, not
-guaranteeing to use the value supplied by the user, and any value actually used
-will be used as a ceiling that the container will <i>attempt</i> to respect.
-</p>
-<p>
-The only guarantee we have is that, if user requests a <tt>max_load_factor</tt>
-that is less than the current <tt>load_factor</tt>, then the operation will take
-constant time, thus outlawing an implementation that chooses to rehash and so
-preserve as a class invariant that <tt>load_factor &lt; max_load_factor</tt>.
-</p>
-<p>
-Reasonable options conforming to the standard include ignoring the user's request
-if the requested value is too low, or deferring the rehash to the next <tt>insert</tt>
-operation and allowing the container to have a strange state (wrt <tt>max_load_factor</tt>)
-until then - and there is still the question of rehashing if the next <tt>insert</tt>
-is for a duplicate key in a unique container.
-</p>
-<p>
-Given the deliberate vagueness of the current wording, to support a range of reasonable
-(but not <i>perfect</i>) behaviors, it is not clear why the equally reasonable rehash
-to restore the constraint should be outlawed.  It is not thought that this is a performance
-critical operation, where users will be repeatedly setting low load factors on populated
-containers, in a tight or (less unlikely) an instant response scenario.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Alisdair to provide wording.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2199"></a>2199. unordered containers are required to have an initial max load factor of 1.0</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2012-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The default constructor, allocator-aware constructor, and range-based constructors
-for the unordered containers do not offer a means to control the initial
-<tt>max_load_factor</tt>, so the standard mandates the value 1.0.  This seems overly
-restrictive, as there is plenty of research suggesting a value between 0.5 and 1.0
-is more often optimal for unique-key containers, and perhaps a slightly higher
-value might be appropriate for multi-containers.
-</p>
-<p>
-Rather than guess at the appropriate <tt>max_load_factor</tt>, it seems reasonable
-that the standard should allow vendors to pick a value at their discretion, with
-perhaps a note of advice.  It is less clear whether the default value should be
-implementation-defined or unspecified, given the ease of a user determining this
-by querying this attribute immediately after construction.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Alisdair to provide wording.
-</p>
-<p>
-Marshall: It seems to me that what you really want is to be able to pass a max load factor in the
-constructor, but that's a different issue.
-</p>
-<p>
-Alisdair agrees in principle, but concerned with adding yet more constructors to these classes.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2201"></a>2201. Missing macro entries from C standard library</h3>
-<p><b>Section:</b> C.5 [diff.library] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Kevin McCarty <b>Opened:</b> 2012-02-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#diff.library">issues</a> in [diff.library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-It seems that in C.5 [diff.library], Table 150 the following macros from 18.3.3 [c.limits], Table 31 
-are missing:
-</p>
-<blockquote><pre>
-LLONG_MIN 
-LLONG_MAX
-ULLONG_MAX
-</pre></blockquote>
-<p>
-In addition in C.5 [diff.library], Table 150 the following macros from 18.3.3 [c.limits], Table 32 
-are missing:
-</p>
-<blockquote><pre>
-DECIMAL_DIG 
-FLT_EVAL_METHOD
-</pre></blockquote>
-<p>
-Furtheron it seems that in C.5 [diff.library], Table 149/150 further macros are missing as well, e.g. 
-<tt>HUGE_VALF</tt>, <tt>INFINITY</tt>, etc.
-</p>
-
-<p><i>[2014-02 Issaquah:]</i></p>
-
-<p>
-This is an issue, all of C has not been updated for C99, C99 functions are missing, whole section needs to be overhauled.
-<p/>
-The issue needs to be updated for functions and other missing items and when that happens the issue title is wrong and
-needs to be adapted.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2202"></a>2202. Missing allocator support by <tt>async</tt></h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#Deferred">Deferred</a>
- <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2012-10-19 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<tt>promise</tt>, <tt>packaged_task</tt>, and <tt>async</tt> are the only
-places where a shared state is actually supposed to be allocated. Accordingly,
-<tt>promise</tt> and <tt>packaged_task</tt> are "allocator-aware". But
-function template <tt>async</tt> provides no way to provide an allocator.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Matt: deprecate async 
-<p/>
-Nico: read my paper 
-<p/>
-Alisdair: defer issues to wait for polymorphic allocators 
-<p/>
-Alisdair: defer, active topic of research Deferred 
-</p>
-
-<p><i>[2014-02-20 Re-open Deferred issues as Priority 4]</i></p>
-
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-We want whatever status approximates: "will not fix; we're working on a replacement facility and don't want to add features to a broken one"
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2206"></a>2206. Inaccuracy in <tt>initializer_list</tt> constructor requirements</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts], 23.2.4 [associative.reqmts], 23.2.5 [unord.req], 26.5.1.2 [rand.req.seedseq] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2012-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In 23.2.3 [sequence.reqmts] p3, we have "<tt>il</tt> designates an object of type
-<tt>initializer_list&lt;value_type&gt;</tt>", and then several functions that take
-'<tt>il</tt>' as an argument. However, an expression like <tt>{1, 2, 'a'}</tt> is <em>not</em>
-an object of type <tt>initializer_list&lt;int&gt;</tt> unless it's used to initialize
-an explicitly-typed variable of that type. I believe we want:
-</p>
-<blockquote><pre>
-std::vector&lt;int&gt; v;
-v = {1, 2, 'a'};
-</pre></blockquote>
-<p>
-to compile portably, so we should say something different when defining '<tt>il</tt>'. The 
-same phrasing happens in 23.2.4 [associative.reqmts], 23.2.5 [unord.req], and 
-26.5.1.2 [rand.req.seedseq].
-<p/>
-This may just be an editorial issue because the actual class synopses declare the functions 
-to take <tt>initializer_list&lt;exact_type&gt;</tt>.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-This is definitely not NAD
-</p>
-<p>
-Should copy the suggested wording as the proposed resolution.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2208"></a>2208. <tt>std::reverse_iterator</tt> should be a literal type</h3>
-<p><b>Section:</b> 24.5.1 [reverse.iterators] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2012-10-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iterators">issues</a> in [reverse.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<tt>std::reverse_iterator::reverse_iterator(Iterator)</tt> should be constexpr
-so that other constexpr functions can return <tt>reverse_iterator</tt>s. Of the
-other methods, the other constructors, <tt>base()</tt>, <tt>operator+</tt>, <tt>operator-</tt>,
-<tt>operator[]</tt>, and the non-member operators can probably also be
-<tt>constexpr</tt>.
-<p/>
-<tt>operator*</tt> cannot be constexpr because it involves an assignment to a
-member variable. Discussion starting with c++std-lib-33282 indicated
-that it would be useful to make reverse_iterator a literal type
-despite this restriction on its use at compile time.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2214"></a>2214. Clarify <tt>basic_ios::init</tt> call restrictions</h3>
-<p><b>Section:</b> 27.5.5.2 [basic.ios.cons] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Andrey Semashev <b>Opened:</b> 2012-11-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.cons">issues</a> in [basic.ios.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is an ambiguity in how <tt>std::basic_ios::init</tt> method (27.5.5.2 [basic.ios.cons]) 
-can be used in the derived class. The Standard only specify the state of the <tt>basic_ios</tt> 
-object after the call completes. However, in <tt>basic_ios</tt> default constructor description 
-(27.5.5.2 [basic.ios.cons]) there is this sentence:
-</p>
-<blockquote><p>
-<i>Effects</i>: Constructs an object of class <tt>basic_ios</tt> (27.5.3.7 [ios.base.cons]) 
-leaving its member objects uninitialized. The object shall be initialized by calling <tt>basic_ios::init</tt> 
-before its first use or before it is destroyed, whichever comes first; otherwise the behavior is undefined.
-</p></blockquote>
-<p>
-This restriction hints that <tt>basic_ios::init</tt> should be called exactly
-once before the object can be used or destroyed, because <tt>basic_ios::init</tt> 
-may not know whether it was called before or not (i.e. whether its members are actually 
-uninitialized or are initialized by the previous call to <tt>basic_ios::init</tt>). There 
-is no such restriction in the <tt>basic_ios::init</tt> preconditions so it is not clear whether it is
-allowed to call <tt>basic_ios::init</tt> multiple times or not.
-<p/>
-This problem has already affected publicly available implementations.
-For example, Microsoft Visual C++ STL introduces a memory leak if
-<tt>basic_ios::init</tt> is called multiple times, while GCC 4.7 and STLPort
-reinitialize the <tt>basic_ios</tt> object correctly without memory leak or any
-other undesired effects. There was a discussion of this issue on Boost
-<a href="http://article.gmane.org/gmane.comp.lib.boost.devel/235659">developers mailing list</a>, 
-and there is a <a href="https://sourceforge.net/apps/trac/boost-log/ticket/2#comment:4">test case 
-that reproduces the problem</a>. The test case is actually a bug report for my Boost.Log library, 
-which attempts to cache <tt>basic_ostream</tt>-derived objects internally to avoid expensive construction 
-and destruction. My stream objects allowed resetting the stream buffer pointers the stream
-is attached to, without requiring to destroy and construct the stream.
-<p/>
-My personal view of the problem and proposed resolution follows.
-<p/>
-While apparently the intent of <tt>basic_ios::init</tt> is to provide a way to
-initialize <tt>basic_ios</tt> after default construction, I see no reason to
-forbid it from being called multiple times to reinitialize the stream.
-Furthermore, it is possible to implement a conforming <tt>basic_ios</tt> that
-does not have this restriction.
-<p/>
-The quoted above section of the Standard that describes the effects of
-the default constructor is misleading. The Standard does not mandate
-any data members of <tt>basic_ios</tt> or <tt>ios_base</tt> (27.5.3 [ios.base]), which
-it derives from. This means that the implementation is allowed to use
-non-POD data members with default constructors that initialize the
-members with particular default values. For example, in the case of
-Microsoft Visual C++ STL the leaked memory is an <tt>std::locale</tt> instance
-that is dynamically allocated during <tt>basic_ios::init</tt>, a raw pointer to
-which is stored within ios_base. It is possible to store e.g. an
-<tt>unique_ptr</tt> instead of a raw pointer as a member of <tt>ios_base</tt>, the smart
-pointer will default initialize the underlying raw pointer on default
-construction and automatically destroy the allocated object upon being
-reset or destroyed, which would eliminate the leak and allow
-<tt>basic_ios::init</tt> to be called multiple times. This leads to conclusion
-that the default constructor of <tt>basic_ios</tt> cannot leave "its member
-objects uninitialized" but instead performs default initialization of
-the member objects, which would mean the same thing in case of POD types.
-<p/>
-However, I feel that restricting <tt>ios_base</tt> and <tt>basic_ios</tt> members to
-non-POD types is not acceptable. Since multiple calls to <tt>basic_ios::init</tt> are 
-not forbidden by the Standard, I propose to correct the <tt>basic_ios</tt> default 
-constructor description so that it is allowed to destroy <tt>basic_ios</tt> object 
-without calling <tt>basic_ios::init</tt>. This would imply that any raw members of 
-<tt>basic_ios</tt> and <tt>ios_base</tt> should be initialized to values suitable for 
-destruction (essentially, this means only initializing raw pointers to NULL). The new 
-wording could look like this:
-</p>
-<blockquote><p>
-<i>Effects</i>: Constructs an object of class <tt>basic_ios</tt> (27.5.3.7 [ios.base.cons])
-initializing its member objects to unspecified state, only suitable for <tt>basic_ios</tt> destruction.
-The object shall be initialized by calling <tt>basic_ios::init</tt> before its first use; otherwise 
-the behavior is undefined.
-</p></blockquote>
-<p>
-This would remove the hint that <tt>basic_ios::init</tt> must be called exactly
-once. Also, this would remove the requirement for <tt>basic_ios::init</tt> to
-be called at all before the destruction. This is also an important issue because 
-the derived stream constructor may throw an exception before it manages to call 
-<tt>basic_ios::init</tt> (for example, if the streambuf constructor throws), and 
-in this case the <tt>basic_ios</tt> destructor has undefined behavior.
-<p/>
-To my mind, the described modification is sufficient to resolve the issue. But to 
-emphasize the possibility to call <tt>basic_ios::init</tt> multiple times, a remark 
-or a footnote for <tt>basic_ios::init</tt> postconditions could be added to explicitly 
-state the semantics of calling it multiple times. The note could read as follows:
-</p>
-<blockquote><p>
-The function can be called multiple times during the object lifetime. Each subsequent 
-call reinitializes the object to the described in postconditions initial state.
-</p></blockquote>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Alisdair: The current wording is unclear but the proposed resolution is wrong
-<p/>
-Solution: Clarify that <tt>init</tt> must be called once and only once. Move then to review. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 27.5.5.2 [basic.ios.cons] as indicated:</p>
-<blockquote><pre>
-basic_ios();
-</pre>
-<blockquote>
-<p>
--2- <i>Effects</i>: Constructs an object of class <tt>basic_ios</tt> (27.5.3.7 [ios.base.cons]) 
-<del>leaving its member objects uninitialized</del><ins>initializing its member objects to unspecified state, 
-only suitable for <tt>basic_ios</tt> destruction</ins>. The object shall be initialized by calling 
-<tt>basic_ios::init</tt> before its first use <del>or before it is destroyed, whichever comes first</del>; 
-otherwise the behavior is undefined.
-</p>
-</blockquote>
-<pre>
-void init(basic_streambuf&lt;charT,traits&gt;* sb);
-</pre><blockquote>
-<p>
-<i>Postconditions</i>: The postconditions of this function are indicated in Table 128.
-<p/>
-<ins>-?- <i>Remarks</i>: The function can be called multiple times during the object lifetime. Each subsequent 
-call reinitializes the object to the described in postconditions initial state.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2215"></a>2215. (unordered) associative container functors should be <tt>CopyConstructible</tt></h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2012-11-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements on the functors used to arrange elements in the various associative and
-unordered containers are given by a set of expressions in tables 102 &mdash; Associative container
-requirements, and 103 &mdash; Unordered associative container requirements.  In keeping with Library
-convention these expressions make the minimal requirements necessary on their types.  For
-example, we have the following 3 row extracts for the unordered containers:
-</p>
-<table>
-<tr>
-  <td>
-    <b>Expression</b>
-  </td>
-  <td>
-    <b>Assertion/note pre-/post-condition</b>
-  </td>
-</tr>
-
-<tr>
-  <td>
-<pre>
-<tt>X(n, hf, eq)</tt>
-<tt>X a(n, hf, eq)</tt>
-</pre>
-  </td>
-  <td>
-    <i>Requires:</i> <tt>hasher</tt> and <tt>key_equal</tt> are <tt>CopyConstructible</tt>.
- </td>
-</tr>
-
-<tr>
-  <td>
-<pre>
-<tt>X(n, hf)</tt>
-<tt>X a(n, hf)</tt>
-</pre>
-  </td>
-  <td>
-    <i>Requires:</i> <tt>hasher</tt> is <tt>CopyConstructible</tt> and 
-                  <tt>key_equal</tt> is <tt>DefaultConstructible</tt>.
- </td>
-</tr>
-
-<tr>
-  <td>
-<pre>
-<tt>X(n)</tt>
-<tt>X a(n)</tt>
-</pre>
-  </td>
-  <td>
-    <i>Requires:</i> <tt>hasher</tt> and <tt>key_equal</tt> are <tt>DefaultConstructible</tt>.
- </td>
-</tr>
-</table>
-
-<p>
-However, the signature for each class template requires that the functors must effectively be
-<tt>CopyConstructible</tt> for each of these expressions:
-</p>
-
-<blockquote><pre>
-template &lt;class Key,
-          class T,
-          class Hash  = hash&lt;Key>,
-          class Pred  = std::equal_to&lt;Key>,
-          class Allocator = std::allocator&lt;std::pair&lt;const Key, T> > >
-class unordered_map
-{
-  <i>...</i>
-
-  <i>// construct/destroy/copy</i>
-  explicit unordered_map(size_type n = <i>see below</i>,
-                         const hasher&amp; hf = hasher(),
-                         const key_equal&amp; eql = key_equal(),
-                         const allocator_type&amp; a = allocator_type());
-
-  <i>...</i>
-}
-</pre></blockquote>
-
-<p>
-The letter of the standard can be honored as long as implementors recognize
-their freedom to split this one signature into multiple overloads, so that
-the documented default arguments (requiring a <tt>CopyConstructible</tt> functor)
-are not actually passed as default arguments.
-</p>
-<p>
-As we look into the requirements for the copy constructor and copy-assignment
-operator, the requirements are even more vague, as the explicit requirements on
-the functors are not called out, other than saying that the functors are copied.
-</p>
-<p>
-Must the functors be <tt>CopyAssignable</tt>? Or is <tt>CopyConstructible</tt>
-sufficient in this case?  Do we require that the functors be <tt>Swappable</tt>
-so that the copy-swap idiom can be deployed here?  Note that a type that is both
-<tt>CopyConstructible</tt> and <tt>CopyAssignable</tt> is still not guaranteed to
-be <tt>Swappable</tt> as the user may delete the <tt>swap</tt> function for their
-type in their own namespace, which would be found via ADL.
-</p>
-<p>
-Some clean-up of the requirements table looks necessary, to at least document the
-assignment behavior.  In addition, we should have clear guidance on whether these
-functors should always be <tt>CopyConstructible</tt>, as suggested by the class
-template definitions, or if the requirement tables are correct and we should
-explicitly split up the constructors in the (unordered) associative containers
-to no longer use default (function) arguments to obtain their defaulted functors.
-</p>
-<p>
-I recommend the simplest solution would be to always require that the functors
-for (unordered) associative containers be <tt>CopyConstructible</tt>, above the
-requirements tables themselves, so that the issue need not be addressed within
-the tables.  I suggest that the assignment operators for these containers add
-the requirement that the functors be <tt>Swappable</tt>, rather than forwarding
-the corresponding <tt>Assignable</tt> requirement.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Alisdair to propose wording.
-</p>
-
-<p><i>[2014-06-08, Daniel comments]</i></p>
-
-<p>
-The area of this issue partially overlaps what LWG <a href="lwg-active.html#2227">2227</a> addresses.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2216"></a>2216. <tt>regex_replace(basic_string)</tt> allocator handling</h3>
-<p><b>Section:</b> 28.11.4 [re.alg.replace] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2012-11-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.alg.replace">issues</a> in [re.alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<blockquote><pre>
-template &lt;class traits, class charT, class ST, class SA&gt;
-  basic_string&lt;charT, ST, SA&gt;
-  regex_replace(const basic_string&lt;charT, ST, SA&gt;&amp; s,
-      const basic_regex&lt;charT, traits&gt;&amp; e,
-      const charT* fmt,
-      regex_constants::match_flag_type flags = 
-	    regex_constants::match_default);
-</pre></blockquote>
-<p>
-and friends are documented as
-</p>
-<blockquote><p>
-Constructs an empty string result of type <tt>basic_string&lt;charT, ST, SA&gt;</tt>
-and calls <tt>regex_replace(back_inserter(result), s.begin(), s.end(), e, fmt, flags)</tt>.
-</p></blockquote>
-<p>
-This appears to require the result to have a default-constructed
-allocator, which isn't even possible for all allocator types. I
-suspect the allocator should be copied from 's' instead. Possibly
-there should be an additional defaulted argument to override the
-allocator of the result.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2218"></a>2218. Unclear how containers use <tt>allocator_traits::construct()</tt></h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-11-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Firstly, 23.2.1 [container.requirements.general]/7 says a container's
-allocator is used to obtain memory, but it isn't stated explicitly that the same 
-allocator is used to construct and destroy elements, as opposed to a value-initialized 
-allocator of the same type.
-</p>
-<p>
-Secondly, 23.2.1 [container.requirements.general]/3 says elements "shall be
-constructed using the <tt>allocator_traits&lt;allocator_type&gt;::construct</tt>
-function and destroyed using the <tt>allocator_traits&lt;allocator_type&gt;::destroy</tt> function" and
-23.2.1 [container.requirements.general]/13 defines <tt>CopyInsertable</tt> etc. in
-terms of an allocator <tt>A</tt> which is identical to the container's <tt>allocator_type</tt>.
-</p>
-<p>
-The intent of making <tt>construct()</tt> and <tt>destroy()</tt> function templates was
-that containers would be permitted to use <tt>allocator_traits&lt;A&gt;::construct()</tt> instead of
-<tt>allocator_traits&lt;allocator_type&gt;::construct()</tt>, where <tt>A</tt> is
-<tt>allocator_traits&lt;allocator_type&gt;::rebind_alloc&lt;U&gt;</tt> for some other type
-<tt>U</tt>.  This allows node-based containers to store an allocator of the right type for 
-allocating nodes and to use the same object to construct elements in aligned storage within 
-those nodes, avoiding rebinding and copying the stored allocator every time an element needs
-to be constructed.
-<p/>
-It should be made clear that a possibly-rebound copy of the container's allocator is used for object 
-construction.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Jonathan: point 2 in the proposed resolution is definitely needed.
-</p>
-
-<p><i>[2014-11-28, Jonathan improves wording]</i></p>
-
-<p>
-In the first set of edits to paragraph 3 both pieces inserting "<tt>rebind_alloc&lt;U&gt;::</tt>"
-should be replaced by "<tt>rebind_traits&lt;U&gt;::</tt>"
-<p/>
-Otherwise it implies using the allocator's functions directly, but they might not exist and 
-it should be through the rebound traits type.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: You want to permit but not require rebinding?<br/>
-Wakely: The current wording forces me to use the original allocator, not the rebound one.<br/>
-STL: Oh, I see. Yeah, we immediately rebind.<br/>
-Wakely: The edits clarify that we don't use some other allocator. The third diff is because the definitions of 
-EmplaceConstructible/etc. happen with the same types. The diff to the note is because it doesn't require the value 
-of the allocator was the one passed in.<br/>
-STL: After looking at this, I think I'm comfortable with the edits. The previous Standardese was nonsense so it's 
-pretty easy to improve upon.<br/>
-Marshall: Any other opinions?<br/>
-Marshall: Any objections to moving it to Ready? Review? Ready in Kona?<br/>
-Wakely: My preference would be Ready. We all know this is what we're doing anyways.<br/>
-Nevin: The intent won't change.<br/>
-STL: I think this is the right fix.<br/>
-Hwrd: I third Ready. Even if Jonathan retracts his.<br/>
-Marshall: Ready! 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 23.2.1 [container.requirements.general] paragraph 3:</p>
-<blockquote><p>
-For the components affected by this subclause that declare an <tt>allocator_type</tt>, objects stored in these
-components shall be constructed using the <tt>allocator_traits&lt;allocator_type&gt;::<ins>rebind_traits&lt;U&gt;::</ins>construct</tt> 
-function and destroyed using the <tt>allocator_traits&lt;allocator_type&gt;::<ins>rebind_traits&lt;U&gt;::</ins>destroy</tt> 
-function (20.7.8.2 [allocator.traits.members])<ins>, where <tt>U</tt> is either <tt>allocator_type::value_type</tt> 
-or an internal type used by the container</ins>. These functions are called only for the container's element type, 
-not for internal types used by the container. [ <i>Note</i>: This means, for example, that a node-based container 
-might need to construct nodes containing aligned buffers and call construct to place the element into the buffer. 
-&mdash; <i>end note</i> ]
-</p></blockquote>
-</li>
-
-<li><p>Edit 23.2.1 [container.requirements.general] paragraph 7:</p>
-<blockquote><p>
-[&hellip;] A copy of this allocator is used for any memory allocation <ins>and element construction</ins> performed, 
-by these constructors and by all member functions, during the lifetime of each container object or until the allocator 
-is replaced. [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>Edit 23.2.1 [container.requirements.general] paragraph 13:</p>
-<blockquote><p>
-[&hellip;] Given <ins>an allocator type <tt>A</tt> and given</ins> a container type <tt>X</tt> having <del>an 
-<tt>allocator_type</tt> identical to <tt>A</tt> and</del> a <tt>value_type</tt> identical to <tt>T</tt> 
-<ins>and an <tt>allocator_type</tt> identical to <tt>allocator_traits&lt;A&gt;::rebind_alloc&lt;T&gt;</tt></ins> 
-and given an lvalue <tt>m</tt> of type <tt>A</tt>, a pointer <tt>p</tt> 
-of type <tt>T*</tt>, an expression <tt>v</tt> of type (possibly <tt>const</tt>) <tt>T</tt>, and an rvalue <tt>rv</tt> 
-of type <tt>T</tt>, the following terms are defined.
-<p/>
-[&hellip;]
-<p/>
-[ <i>Note</i>: A container calls <tt>allocator_traits&lt;A&gt;::construct(m, p, args)</tt> to construct an element 
-at <tt>p</tt> using <tt>args</tt><ins>, with <tt>m == get_allocator()</tt></ins>. The default <tt>construct</tt> in 
-<tt>std::allocator</tt> will call <tt>::new((void*)p) T(args)</tt>, but specialized allocators may choose a 
-different definition. &mdash; <i>end note</i> ]
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2219"></a>2219. <tt><i>INVOKE</i></tt>-ing a pointer to member with a <tt>reference_wrapper</tt> as the object expression</h3>
-<p><b>Section:</b> 20.9.2 [func.require] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-11-28 <b>Last modified:</b> 2015-05-06</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.require">active issues</a> in [func.require].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.require">issues</a> in [func.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The standard currently requires this to be invalid:
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-
-struct X { int i; } x;
-auto f = &amp;X::i;
-auto t1 = std::ref(x);
-int i = std::mem_fn(f)(t1);
-</pre></blockquote>
-<p>
-The call expression on the last line is equivalent to <tt><i>INVOKE</i>(f, std::ref(x))</tt> 
-which according to 20.9.2 [func.require]p1 results in the invalid expression <tt>(*t1).*f</tt> 
-because <tt>reference_wrapper&lt;X&gt;</tt> is neither an object of type <tt>X</tt> nor a reference 
-to an object of type <tt>X</tt> nor a reference to an object of a type derived from <tt>X</tt>.
-</p>
-<p>
-The same argument applies to pointers to member functions, and if they don't work with <tt>INVOKE</tt> 
-it becomes harder to do all sorts of things such as:
-</p>
-<blockquote><p>
-<tt>call_once(o, &amp;std::thread::join, std::ref(thr))</tt>
-</p></blockquote>
-<p>
-or
-</p>
-<blockquote><p>
-<tt>async(&amp;std::list&lt;int&gt;::sort, std::ref(list));</tt>
-</p></blockquote>
-<p>
-The definition of <tt><i>INVOKE</i></tt> should be extended to handle reference wrappers.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-The wording seems accurate, but verbose.  If possible, we would like to define the kind of thing being
-specified so carefully as one of a number of potential language constructs in a single place.  It is
-also possible that this clause <i>is</i> that single place.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-<p>Jonathan comments:</p>
-
-<p>In the proposed resolution in the first bullet <tt>(t1.*f)</tt> is not valid if <tt>t1</tt> is a
-<tt>reference_wrapper</tt>, so we probably need a separate bullet to handle the
-<tt>reference_wrapper</tt> case.</p>
-
-<p><i>[2014-02-14, Issaquah, Mike Spertus supplies wording]</i></p>
-
-
-<p><strong>Previous resolution from Jonathan [SUPERSEDED]:</strong></p>
-
-<blockquote class="note">
-
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 20.9.2 [func.require]:</p>
-<blockquote><p>
-Define <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> as follows:
-</p>
-<ul>
-<li><p>
-<tt>(t1.*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<tt>t1</tt> is an object of type <tt>T</tt> or a reference to an object of type <del><tt>T</tt> or a reference 
-to an object of a type derived from <tt>T</tt></del> <ins><tt>U</tt> or an object of type <tt>reference_wrapper&lt;U&gt;</tt> 
-or a reference to an object of type <tt>reference_wrapper&lt;U&gt;</tt> where <tt>U</tt> is either the type 
-<tt>T</tt> or a type derived from <tt>T</tt></ins>;
-</p>
-</li>
-
-<li><p>
-<tt>((*t1).*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<tt>t1</tt> is not one of the types described in the previous item;
-</p></li>
-
-<li><p> 
-<tt>t1.*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and <tt>t1</tt> 
-is an object of type <tt>T</tt> or a reference to an object of type <del><tt>T</tt> or a reference to an object of a 
-type derived from <tt>T</tt></del> <ins><tt>U</tt> or an object of type <tt>reference_wrapper&lt;U&gt;</tt> 
-or a reference to an object of type <tt>reference_wrapper&lt;U&gt;</tt> where <tt>U</tt> is either the type 
-<tt>T</tt> or a type derived from <tt>T</tt></ins>;
-</p></li>
-
-<li><p>
-<tt>(*t1).*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and <tt>t1</tt> 
-is not one of the types described in the previous item;
-</p></li>
-
-<li><p>
-<tt>f(t1, t2, ..., tN)</tt> in all other cases.
-</p></li>
-</ul>
-
-</blockquote>
-
-</li>
-</ol>
-
-</blockquote>
- 
-<p><i>[2014-10-01, STL adds discussion and provides an improved resolution]</i></p>
-
-<p>
-Because neither <tt>t1.*f</tt> nor <tt>(*t1).*f</tt> will compile when <tt>t1</tt> is <tt>reference_wrapper&lt;U&gt;</tt> 
-for any <tt>U</tt>, we don't need to inspect <tt>U</tt> carefully. We can bluntly detect all <tt>reference_wrapper</tt>s 
-and use <tt>get()</tt> for them.
-<p/>
-We would have to be more careful if we had to deal with pointers to members of <tt>reference_wrapper</tt> itself.  
-Fortunately, we don't. First, it doesn't have user-visible data members. Second, users technically can't take the 
-addresses of its member functions (this is a consequence of 17.6.5.5 [member.functions], the Implementer's Best Friend).
-<p/>
-While we're in the neighborhood, I recommend simplifying and clarifying the wording used to detect base/derived objects.
-</p>
-
-<p><strong>Previous resolution from Mike Spertus [SUPERSEDED]:</strong></p>
-
-<blockquote class="note">
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit 20.9.2 [func.require]:</p>
-<blockquote><p>
-Define <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> as follows:
-</p>
-<ul>
-<li><p>
-<tt>(t1.*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<tt>t1</tt> is an object of type <tt>T</tt> or a reference to an object of type <tt>T</tt> or a reference 
-to an object of a type derived from <tt>T</tt>;
-</p>
-</li>
-
-<li><p>
-<ins>
-<tt>(t1.get().*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function
-of class <tt>T</tt>
-and <tt>t1</tt> is an object of type <tt>reference_wrapper&lt;U&gt;</tt> where <tt>U</tt>
-is either the type <tt>T</tt> or a type derived from <tt>T</tt>.
-</ins>
-</p>
-</li>
-
-<li><p>
-<tt>((*t1).*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<tt>t1</tt> is not one of the types described in the previous item;
-</p></li>
-
-
-
-<li><p> 
-<tt>t1.*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and <tt>t1</tt> 
-is an object of type <tt>T</tt> or a reference to an object of type <tt>T</tt> or a reference to an object of a 
-type derived from <tt>T</tt>;
-</p></li>
-
-<li><p>
-<ins>
-<tt>t1.get().*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a
-class <tt>T</tt> and <tt>t1</tt> is an object of type <tt>reference_wrapper&lt;U&gt;</tt>
-where <tt>U</tt> is either the type <tt>T</tt> or a type derived from <tt>T</tt>.
-</ins>
-</p></li>
-
-<li><p>
-<tt>(*t1).*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and <tt>t1</tt> 
-is not one of the types described in the previous item;
-</p></li>
-
-<li><p>
-<tt>f(t1, t2, ..., tN)</tt> in all other cases.
-</p></li>
-</ul>
-
-</blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-Waiting for implementation experience. 
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: latest note from Cologne, waiting for implementation experience<br/>
-STL: don't think this is harder than anything else we do<br/>
-MC: it does involve <tt>mem_fn</tt> and invoke<br/>
-STL: my simplication was not to attempt fine-grained<br/>
-STL: can ignore pmf<br/>
-STL: can't invoke pmf to reference wrapper<br/>
-STL: wording dated back to TR1 when there was no <tt>decltype</tt><br/>
-MC: should <tt>decay_t&lt;decltype(t1)&gt;</tt> be pulled out since it is in multiple places<br/>
-STL: it could be handled editorially<br/>
-STL: we fix function, bind, invoke<br/>
-STL: have not implemented this but believe it is fine<br/>
-MC: Eric F, you have worked in invoke<br/>
-EF: yes, looks ok<br/>
-MC: consensus move to ready 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.9.2 [func.require] p1 as depicted:</p>
-<blockquote><p>
-Define <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> as follows:
-</p>
-<ul>
-<li><p>
-<tt>(t1.*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<del><tt>t1</tt> is an object of type <tt>T</tt> or a reference to an object of type <tt>T</tt> or a reference 
-to an object of a type derived from <tt>T</tt></del><ins><tt>is_base_of&lt;T, decay_t&lt;decltype(t1)&gt;&gt;::value</tt> 
-is true</ins>;
-</p>
-</li>
-
-<li><p>
-<ins><tt>(t1.get().*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<tt>decay_t&lt;decltype(t1)&gt;</tt> is a specialization of <tt>reference_wrapper</tt>;</ins>
-</p></li>
-
-<li><p>
-<tt>((*t1).*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function of a class <tt>T</tt> and 
-<tt>t1</tt> <del>is not one of the types described in the previous item</del><ins>does not satisfy the previous two 
-items</ins>;
-</p></li>
-
-<li><p> 
-<tt>t1.*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and <del><tt>t1</tt> 
-is an object of type <tt>T</tt> or a reference to an object of type <tt>T</tt> or a reference to an object of a 
-type derived from <tt>T</tt></del><ins><tt>is_base_of&lt;T, decay_t&lt;decltype(t1)&gt;&gt;::value</tt> 
-is true</ins>;
-</p></li>
-
-<li><p>
-<ins><tt>t1.get().*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and 
-<tt>decay_t&lt;decltype(t1)&gt;</tt> is a specialization of <tt>reference_wrapper</tt>;</ins>
-</p></li>
-
-<li><p>
-<tt>(*t1).*f</tt> when <tt>N == 1</tt> and <tt>f</tt> is a pointer to member data of a class <tt>T</tt> and <tt>t1</tt> 
-<del>is not one of the types described in the previous item</del><ins>does not satisfy the previous two items</ins>;
-</p></li>
-
-<li><p>
-<tt>f(t1, t2, ..., tN)</tt> in all other cases.
-</p></li>
-</ul>
-
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2220"></a>2220. Under-specification of <tt>operator==</tt> for <tt>regex_token_iterator</tt></h3>
-<p><b>Section:</b> 28.12.2.2 [re.tokiter.comp] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-11-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Consider the following example:
-</p>
-<blockquote><pre>
-std::string str0("x");
-std::regex rg0("a");
-std::regex_token_iterator it0(str0.begin(), str0.end(), rg0, -1); // points at "x" in str0
-std::string str1("x");
-std::regex rg1("b");
-std::regex_token_iterator it1(str1.begin(), str1.end(), rg1, -1); // points at "x" in str1
-</pre></blockquote>
-<p>
-28.12.2.2 [re.tokiter.comp] p1 says that <tt>it0.operator==(it1)</tt> returns true "if 
-<tt>*this</tt> and <tt>right</tt> are both suffix iterators and <tt>suffix == right.suffix</tt>"; both 
-conditions are satisfied in this example. It does not say that they must both be iterators 
-into the same sequence, nor does it say (as general iterator requirements do) that they must 
-both be in the domain of <tt>==</tt> in order for the comparison to be meaningful. It's a 
-simple statement: they're equal if the strings they point at compare equal. Given this being
-a valid comparison, the obtained result of "true" looks odd.
-<p/>
-The problem is that for iterator values prior to the suffix iterator, equality means the same 
-regular expression and the same matched sequence (both uses of "same" refer to identity, not equality); 
-for the suffix iterator, equality means that the matched sequences compare equal.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2221"></a>2221. No formatted output operator for <tt>nullptr</tt></h3>
-<p><b>Section:</b> 27.7.3 [output.streams] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2012-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-When I write 
-</p>
-<blockquote><pre>
-std::cout &lt;&lt; nullptr &lt;&lt; std::endl;
-</pre></blockquote>
-<p>
-I get a compilation error, "ambiguous overload for '<tt>operator&lt;&lt;</tt>' in '<tt>std::cout &lt;&lt; nullptr</tt>'". 
-As far as I can tell, the compiler is right to issue that error. There are inserters for <tt>const void*</tt>, 
-<tt>const char*</tt>, <tt>const signed char*</tt>, and <tt>const unsigned char*</tt>, and none for 
-<tt>nullptr_t</tt>, so the expression really is ambiguous.
-<p/>
-<em>Proposed wording</em>:
-<p/>
-The obvious library solution is to add a <tt>nullptr_t</tt> overload, which would be defined something like
-</p>
-<blockquote><pre>
-template&lt;class C, class T&gt;
-basic_ostream&lt;C, T&gt;&amp; operator&lt;&lt;(basic_ostream&lt;C, T&gt;&amp; os, nullptr_t) 
-{ 
-  return os &lt;&lt; (void*) nullptr; 
-}
-</pre></blockquote>
-<p>
-We might also consider addressing this at a core level: add a special-case language rule that addresses all 
-cases where you write <tt>f(nullptr)</tt> and <tt>f</tt> is overloaded on multiple pointer types. (Perhaps 
-a tiebreaker saying that <tt>void*</tt> is preferred in such cases.)
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2223"></a>2223. <tt>shrink_to_fit</tt> effect on iterator validity</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2012-12-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-After the additions by <a href="lwg-defects.html#2033">2033</a>, it appears clear that the intended effect includes a reallocation and 
-thus the potential effect on iterators should be explicitly added to the text in order to not contradict 
-23.2.1 [container.requirements.general]/11, or at the very least, explicitly state that a reallocation may 
-happen.
-<p/>
-Taking consistency with "reserve" into consideration, I propose:
-</p>
-<ul>
-<li><p>
-that the current "Remarks" are made its "Effect" instead, inserting "Reallocation happens at this point if and only 
-if the function effectively reduces the capacity." after the note on non-bindingness.
-</p>
-</li>
-<li><p>
-adding a "Remarks" paragraph, similar to that of reserve: "Reallocation invalidates all the references, pointers, 
-and iterators referring to the elements in the sequence."
-</p></li>
-</ul>
-<p>
-BTW, while we are at it, I believe the effect on iterators should also be explicitly stated in the other instance 
-a reallocation may happen: 23.3.6.5 [vector.modifiers]/1 &mdash; even if obvious, it only contradicts 
-23.2.1 [container.requirements.general]/11 implicitly. 
-<p/>
-I propose to also insert "Reallocation invalidates all the references, pointers, and iterators referring to the 
-elements in the sequence." at the appropriate location in its "Remarks".
-</p>
-
-<p><i>[2012-12-19: Jonathan Wakely comments]</i></p>
-
-
-<p>
-The described problem also affects <tt>std::basic_string</tt> and <tt>std::deque</tt>.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
- 
-
-<p>Daniel extends the P/R.</p>
-
-<p>Rationale:</p>
-
-<p>The wording in 21.4.4 [string.capacity] combined with 21.4.1 [string.require]
-seems to say the necessary things. We cannot impose all requirements as we do for <tt>vector</tt>, because
-we want to allow the short-string-optimization.</p>
-
-
-<p><i>[2014-02-15 post-Issaquah session]</i></p>
-
-<p>
-STL: I think that <tt>shrink_to_fit</tt> should be a no-op when called twice.
-</p>
-<p>
-STL: Do we ever define reallocation for <tt>deque</tt>? Nope, all mentions of "reallocation" are in <tt>vector</tt>.
-     We define what it means in <tt>vector::reserve()</tt>, but not for <tt>deque</tt>.
-</p>
-<p>
-STL: Oh duh, they define reallocate in the PR. But I think we can do better here.
-</p>
-<p>
-STL: Optimally, deque shrinking just allocates a new map of pointers, and drops empty blocks, but preserves pointers/references to elements.
-</p>
-<p>
-Alisdair: That's like unordered containers, invalidating only iterators.
-</p>
-<p>
-Pablo: It doesn't make sense to reduce <tt>capacity()</tt> to <tt>size()</tt>, because <tt>deque</tt> doesn't have capacity!
-</p>
-<p>
-STL: For <tt>vector</tt>, "effectively reduces the capacity" is unnecessary, the capacity there is observable.
-</p>
-<p>
-STL: There is a strong reason to provide an optimal shrink to fit for <tt>deque</tt>, since only the library implementer can do this.
-</p>
-<p>
-STL: The other thing I don't like the repeated definition of reallocation for <tt>vector</tt>, we define it once and use it in a bunch of places.
-     At most we can lift it up to the <tt>vector</tt> synopsis.
-</p>
-<p>
-STL: I'll write new wording.
-</p>
-
-<p><i>[2014-10-01, STL adds discussion and provides new wording]</i></p>
-
-<p>
-Compared to the previous proposed resolution:
-</p>
-<ul>
-<li><p>
-I'm changing <tt>basic_string</tt>'s wording because (1) we should guarantee that capacity won't increase, (2) we should mention 
-that it's linear complexity, and (3) we can provide a better invalidation guarantee than 21.4.1 [string.require]/5.  
-(As previously noted, we already have the strong exception guarantee.) This introduces the term "reallocation" into 
-<tt>basic_string</tt>, but immediately explains what it means for iterator validity. As far as I can tell, the Small String 
-Optimization doesn't complicate the wording here; it's a reason why an implementation might not honor the request, but if 
-the capacity is reduced, we are definitely reallocating buffers and will invalidate everything (including when the destination 
-is the small buffer).
-</p></li>
-<li><p>
-Between N3485 and N3936, <tt>deque</tt>'s wording was updated to avoid talking about <tt>capacity()</tt> which it doesn't have.  
-Since the container's capacity is unobservable, I'm saying that invalidation is unconditional.
-</p></li>
-<li><p>
-In <tt>vector</tt>'s wording, I'm also guaranteeing that capacity won't increase, and that iterators/etc. remain valid if the 
-capacity is unchanged.
-</p></li>
-</ul>
-<p>
-My wording doesn't directly say that <tt>shrink_to_fit()</tt> should be a no-op when called twice in a row. (Indirectly, 
-if the first call reduces <tt>capacity()</tt> to <tt>size()</tt>, the second call must preserve iterators/etc.) I considered 
-rewording the complexity to say "linear if reallocation happens", but that's potentially problematic (what if we copy almost 
-all <tt>N</tt> elements, then one throws and we have to unwind? There are no effects, so reallocation didn't happen, yet we 
-took longer than constant time). Implementers can always do better than the stated complexity bounds.
-<p/>
-I chose not to modify <tt>deque</tt>'s requirements, so implementations remain free to reallocate the elements themselves.
-<p/>
-I didn't attempt to centralize vector's reallocation wording. That can be done editorially, if someone is sufficiently motivated.
-</p>
-
-<p><strong>Previous resolution from Juan Soulie/Daniel [SUPERSEDED]:</strong></p>
-
-<blockquote class="note">
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Keep 21.4.4 [string.capacity] around p14 <em>unchanged</em>, because we don't speak about
-reallocations and we give the strong exception guarantee in 21.4.1 [string.require] (Invalidation
-specification also at that place):</p>
-<blockquote><pre>
-void shrink_to_fit();
-</pre>
-<p>
--14- <i>Remarks</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to 
-<tt>size()</tt>. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific 
-optimizations. &mdash; <i>end note</i> ].
-</p>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.3.3 [deque.capacity] around p7 as indicated:</p>
-<blockquote><pre>
-void shrink_to_fit();
-</pre>
-<p>
--5- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.
-<p/>
-<ins>-?- <i>Effects</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to 
-<tt>size()</tt>. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific 
-optimizations. &mdash; <i>end note</i> ] Reallocation happens at this point if and only 
-if the function effectively reduces the capacity. If an exception is thrown other than by the move constructor 
-of a non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.</ins> 
-<p/>
--6- <i>Complexity</i>: Linear in the size of the sequence.
-<p/>
--7- <i>Remarks</i>: <del><tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to 
-<tt>size()</tt>. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific 
-optimizations. &mdash; <i>end note</i> ] If an exception is thrown other than by the move constructor 
-of a non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.</del><ins>Reallocation invalidates all 
-the references, pointers, and iterators referring to the elements in the sequence.</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.6.3 [vector.capacity] around p7 as indicated:</p>
-<blockquote><pre>
-void shrink_to_fit();
-</pre>
-<p>
--7- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.
-<p/>
-<ins>-?- <i>Effects</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to 
-<tt>size()</tt>. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific 
-optimizations. &mdash; <i>end note</i> ] Reallocation happens at this point if and only 
-if the function effectively reduces the capacity. If an exception is thrown other than by the move constructor 
-of a non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.</ins> 
-<p/>
--8- <i>Complexity</i>: Linear in the size of the sequence.
-<p/>
--9- <i>Remarks</i>: <del><tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to 
-<tt>size()</tt>. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific 
-optimizations. &mdash; <i>end note</i> ] If an exception is thrown other than by the move constructor 
-of a non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.</del><ins>Reallocation invalidates all 
-the references, pointers, and iterators referring to the elements in the sequence.</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.6.5 [vector.modifiers] p1 as indicated:</p>
-<blockquote><pre>
-iterator insert(const_iterator position, const T&amp; x);
-iterator insert(const_iterator position, T&amp;&amp; x);
-iterator insert(const_iterator position, size_type n, const T&amp; x);
-template &lt;class InputIterator&gt;
-iterator insert(const_iterator position, InputIterator first, InputIterator last);
-iterator insert(const_iterator position, initializer_list&lt;T&gt;);
-template &lt;class... Args&gt; void emplace_back(Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator emplace(const_iterator position, Args&amp;&amp;... args);
-void push_back(const T&amp; x);
-void push_back(T&amp;&amp; x);
-</pre>
-<p>
--1- <i>Remarks</i>: Causes reallocation if the new size is greater than the old capacity. <ins>Reallocation 
-invalidates all the references, pointers, and iterators referring to the elements in the sequence.</ins> If 
-no reallocation happens, all the iterators and references before the insertion point remain valid. If an 
-exception is thrown other than by the copy constructor, move constructor, assignment operator, or move 
-assignment operator of <tt>T</tt> or by any <tt>InputIterator</tt> operation there are no effects. If an 
-exception is thrown by the move constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt>, the effects are unspecified.
-</p>
-</blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-GR: I'm concerned that <tt>shrink_to_fit</tt> may cause reallocation without changing the capacity. [&hellip;] 
-It's about correctness. The statement about invalidation is useless if I cannot detect whether reallocation has happened?
-<p/>
-AM: It seems like the logic goes the other way round: It's the capacity change that causes reallocation, so if 
-there's no capacity change, there's no reallocation. But that's not quite how I'd like to say it... maybe this, : 
-"If capacity does not change, no reallocation occurs."
-<p/>
-GR: Where does it actually say that <tt>reserve()</tt> invalidates? AM: It should say that in the container requirements. 
-VV: vector specifies in <tt>reserve</tt> that there's reallocation if and only if the capacity changes. GR: I can't find
-anything in the container requirements about <tt>reserve</tt>. DK: No, it's specified for every container separately. 
-GR: It isn't specified for string.
-<p/>
-GR: I'm noticing that the issue touches on <tt>shrink_to_fit</tt> for a bunch of containers. Anyway, I think the 
-reserve issue [re string] is in scope for this issue. This change is touching on a lot of members.
-<p/>
-AM: Landing this change will provide clarity for what we should do with <tt>basic_string</tt>. GR: We're already asking 
-for changes; we should fix string as well. AM: If one of the changes is ready before the other, I'd like to land the 
-finished part first, but if both are ready for Lenexa, I'm equally happy to fix them in one go.
-<p/>
-DK will reword this. 
-<p/>
-<b>Conclusion</b>: Update wording, revisit in Lenexa. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 21.4.4 [string.capacity] p14 as depicted:</p>
-
-<blockquote>
-<pre>
-void shrink_to_fit();
-</pre>
-<blockquote>
-<p>
--14- <i><del>Remarks</del><ins>Effects</ins></i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce 
-<tt>capacity()</tt> to <tt>size()</tt>. [<i>Note</i>: The request is non-binding to allow latitude for 
-implementation-specific optimizations. &mdash; <i>end note</i>] <ins>It does not increase <tt>capacity()</tt>, 
-but may reduce <tt>capacity()</tt> by causing reallocation.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: Linear in the size of the sequence.</ins>
-<p/>
-<ins>-?- <i>Remarks</i>: Reallocation invalidates all the references, pointers, and iterators referring to the 
-elements in the sequence. If no reallocation happens, they remain valid.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.3.3 [deque.capacity] p5-p7 as depicted:</p>
-<blockquote>
-<pre>
-void shrink_to_fit();
-</pre>
-<blockquote>
-<p>
--5- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.
-<p/>
-<ins>-?- <i>Effects</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce memory use but does not change 
-the size of the sequence. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific 
-optimizations. &mdash; <i>end note</i>] If an exception is thrown other than by the move constructor of a 
-non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.</ins>
-<p/>
--6- <i>Complexity</i>: Linear in the size of the sequence.
-<p/>
--7- <i>Remarks</i>: <del><tt>shrink_to_fit</tt> is a non-binding request to reduce memory use but does not change the
-size of the sequence. [<i>Note</i>: The request is non-binding to allow latitude for implementation-specific
-optimizations. &mdash; <i>end note</i>]</del><ins><tt>shrink_to_fit</tt> invalidates all the references, pointers, 
-and iterators referring to the elements in the sequence.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.6.3 [vector.capacity] p7-p9 as depicted:</p>
-<blockquote>
-<pre>
-void shrink_to_fit();
-</pre>
-<blockquote>
-<p>
--7- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.
-<p/>
-<ins>-?- <i>Effects</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to <tt>size()</tt>. 
-[<i>Note</i>: The request is non-binding to allow latitude for implementation-specific optimizations. &mdash; <i>end note</i>] 
-It does not increase <tt>capacity()</tt>, but may reduce <tt>capacity()</tt> by causing reallocation. If an exception is 
-thrown other than by the move constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.</ins>
-<p/>
--8- <i>Complexity</i>: Linear in the size of the sequence.
-<p/>
--9- <i>Remarks</i>: <del><tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to <tt>size()</tt>. 
-[<i>Note</i>: The request is non-binding to allow latitude for implementation-specific optimizations. &mdash; <i>end 
-note</i>] If an exception is thrown other than by the move constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt> there 
-are no effects.</del><ins>Reallocation invalidates all the references, pointers, and iterators referring to the elements 
-in the sequence. If no reallocation happens, they remain valid.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.6.5 [vector.modifiers] p1 as depicted:</p>
-
-<blockquote>
-<p>
--1- <i>Remarks</i>: Causes reallocation if the new size is greater than the old capacity. <ins>Reallocation invalidates all 
-the references, pointers, and iterators referring to the elements in the sequence.</ins> If no reallocation happens,
-all the iterators and references before the insertion point remain valid. [&hellip;]
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2224"></a>2224. Ambiguous status of access to non-live objects</h3>
-<p><b>Section:</b> 17.6.4.10 [res.on.objects] <b>Status:</b> <a href="lwg-active.html#Ready">Tentatively Ready</a>
- <b>Submitter:</b> Geoffrey Romer <b>Opened:</b> 2012-12-17 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.objects">issues</a> in [res.on.objects].</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The standard currently does not discuss when library objects may be accessed, except in a non-normative 
-note pertaining to synchronization in [res.on.objects], leaving it ambiguous whether single-threaded 
-code can access a library object during its construction or destruction. For example, there is a 
-reasonable question as to what happens if the deleter supplied to a <tt>unique_ptr</tt> transitively 
-accesses the <tt>unique_ptr</tt> itself during <tt>unique_ptr</tt>'s destruction; a straightforward 
-reading suggests that this is permitted, and that the deleter will see the <tt>unique_ptr</tt> still 
-holding the originally stored pointer, but consensus on the LWG reflector indicates this was not the 
-intent (see discussion beginning with 
-<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=33362">c++std-lib-33362</a>).
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Geoffrey will provide an example that clearly highlights the issue.
-</p>
-
-<p><i>[2013-03-19 Geoffrey provides revised resolution and an example]</i></p>
-
-
-<p>
-I contend that the most straightforward reading of the current standard requires the following example code to print 
-"good" (because <tt>~unique_ptr</tt> is not specified to modify the state of the internal pointer), but the consensus 
-on the reflector was that its behavior should be undefined.
-<p/>
-This example also shows that, contrary to a comment in the telecon, the PR is not tautological. 12.7 [class.cdtor]/p4 
-explicitly permits member function calls during destruction, so the behavior of this code is well-defined as far as 
-the core language is concerned, despite the fact that it accesses a library object after the end of the object's 
-lifetime. If we want this code to have undefined behavior, we need to specify that at the library level.
-</p>
-
-<blockquote><pre>
-#include &lt;memory&gt;
-#include &lt;iostream&gt;
-
-class A;
-
-struct B {
- std::unique_ptr&lt;A&gt; a;
-};
-
-struct A {
- B* b;
- ~A() {
-   if (b-&gt;a.get() == this) {
-     std::cout &lt;&lt; "good" &lt;&lt; std::endl;
-   }
- }
-};
-
-int main() {
- B b;
- b.a.reset(new A);
- b.a-&gt;b = &amp;b;
-}
-</pre></blockquote>
-
-<p>
-Previous resolution:
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Change the title of sub-clause 17.6.4.10 [res.on.objects] as indicated:</p>
-<p><del>Shared objects and the library</del><ins>Library object access</ins> [res.on.objects]</p>
-</li>
-
-<li><p>Edit 17.6.4.10 [res.on.objects] p2 as indicated:</p>
-<p>-2- <del>[<i>Note</i>: In particular, the program is required to ensure that completion of the constructor 
-of any object of a class type defined in the standard library happens before any other member function 
-invocation on that object and, unless otherwise specified, to ensure that completion of any member function 
-invocation other than destruction on such an object happens before destruction of that object. This applies 
-even to objects such as mutexes intended for thread synchronization. &mdash; <i>end note</i>]</del>
-<ins>If an object of a standard library type is accessed outside of the object's lifetime (3.8 [basic.life]), 
-the behavior is undefined unless otherwise specified.</ins></p>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014 Urbana]</i></p>
-
-<p>
-STL: is this resolved by our change to the reeentrancy rules? [LWG <a href="lwg-active.html#2414">2414</a>]<br/>
-GR: don't think that solves the multi-threaded case<br/>
-MC: I like changing the note to normative text<br/>
-GR: uses the magic "happens before" words, and "access" is magic too<br/>
-JW: I like this. strict improvement, uses the right wording we have to say this properly<br/>
-STL: I like the last sentence of the note, could we add that as a new note at the end?<br/>
-So add "[Note: This applies even to objects such as mutexes intended for thread synchronization.]" to the end and move to Ready 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Change the title of sub-clause 17.6.4.10 [res.on.objects] as indicated:</p>
-<p><del>Shared objects and the library</del><ins>Library object access</ins> [res.on.objects]</p>
-</li>
-
-<li><p>Edit 17.6.4.10 [res.on.objects] p2 as indicated: <em>[<i>Editorial remark:</i> The motivation, is to 
-be more precise about the meaning of "outside the object's lifetime" in the presence of threads &mdash; <i>end editorial 
-remark</i>]</em></p>
-<p>-2- <del>[<i>Note</i>: In particular, the program is required to ensure that completion of the constructor 
-of any object of a class type defined in the standard library happens before any other member function 
-invocation on that object and, unless otherwise specified, to ensure that completion of any member function 
-invocation other than destruction on such an object happens before destruction of that object. This applies 
-even to objects such as mutexes intended for thread synchronization. &mdash; <i>end note</i>]</del>
-<ins>If an object of a standard library type is accessed, and the beginning of the object's lifetime 
-(3.8 [basic.life]) does not happen before the access, or the access does not happen before the end 
-of the object's lifetime, the behavior is undefined unless otherwise specified. [<i>Note</i>: This applies even to 
-objects such as mutexes intended for thread synchronization. &mdash; <i>end note</i>]</ins></p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2226"></a>2226. <tt>wstring_convert</tt> methods do not take allocator instance</h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Glen Fernandes <b>Opened:</b> 2012-12-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The <tt>wstring_convert</tt> class template, described in 22.3.3.2.2 [conversions.string], does not 
-support custom stateful allocators. It only supports custom stateless allocators.
-<p/>
-The <tt>to_bytes</tt> member function returns <tt>basic_string&lt;char, char_traits&lt;char&gt;, Byte_alloc&gt;</tt>  
-but it does not take an instance of <tt>Byte_alloc</tt> to pass to the constructor of the <tt>basic_string</tt>.
-<p/>
-Similarly the <tt>from_bytes</tt> member function returns <tt>basic_string&lt;Elem, char_traits&lt;Elem&gt;, Wide_alloc&gt;</tt>  
-but it does not take an instance of <tt>Wide_alloc</tt> to pass to the constructor of the <tt>basic_string</tt>.
-<p/>
-This makes these two member functions and the <tt>wstring_convert</tt> class template not usable when <tt>Wide_alloc</tt> 
-or <tt>Byte_alloc</tt> are stateful allocators.
-</p>
-
-<p><i>[2013-01-22, Glen provides wording]</i></p>
-
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to NAD Future.
-</p>
-<p>
-This is clearly an extension that the LEWG may want to take a look at, once we have more experience
-with appropriate use of allocators with the C++11 model.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>In 22.3.3.2.2 [conversions.string]/2 and /6 "Class template <tt>wstring_convert</tt> synopsis" change the overloads 
-of the member function <tt>from_bytes()</tt> so that all four overloads take an additional parameter
-which is an instance of <tt>Wide_alloc</tt>:</p>
-
-<blockquote><pre>
-wide_string from_bytes(char byte<ins>, const Wide_alloc&amp; alloc = Wide_alloc()</ins>);
-wide_string from_bytes(const char *ptr<ins>, const Wide_alloc&amp; alloc = Wide_alloc()</ins>);
-wide_string from_bytes(const byte_string&amp; str<ins>, const Wide_alloc&amp; alloc = Wide_alloc()</ins>);
-wide_string from_bytes(const char *first, const char *last<ins>, const Wide_alloc&amp; alloc = Wide_alloc()</ins>);
-</pre></blockquote>
-</li>
-
-<li><p>In 22.3.3.2.2 [conversions.string] /8 specify that this <tt>Wide_alloc</tt> allocator parameter is used to
-construct the <tt>wide_string</tt> object returned from the function:</p>
-
-<p>
--7- <i>Effects</i>: The first member function shall convert the single-element sequence <tt>byte</tt> to a wide string.
-The second member function shall convert the null-terminated sequence beginning at <tt>ptr</tt> to a wide
-string. The third member function shall convert the sequence stored in <tt>str</tt> to a wide string. The fourth
-member function shall convert the sequence defined by the range <tt>[first, last)</tt> to a wide string.
-<p/>
--8- In all cases:
-</p>
-<ul>
-<li><p>If the <tt>cvtstate</tt> object was not constructed with an explicit value, it shall be set to its default value
-(the initial conversion state) before the conversion begins. Otherwise it shall be left unchanged.</p></li>
-
-<li><p>The number of input elements successfully converted shall be stored in <tt>cvtcount</tt>.</p></li>
-
-<li><p><ins>The <tt>Wide_alloc</tt> allocator parameter is used to construct the <tt>wide_string</tt> object returned 
-from the function.</ins></p></li>
-</ul>
-</li>
-
-<li><p>In 22.3.3.2.2 [conversions.string]/2 and /12 "Class template <tt>wstring_convert</tt> synopsis" change the overloads 
-of the member function <tt>to_bytes()</tt> so that all four overloads take an additional parameter
-which is an instance of <tt>Byte_alloc</tt>:</p>
-
-<blockquote><pre>
-byte_string to_bytes(Elem wchar<ins>, const Byte_alloc&amp; alloc = Byte_alloc()</ins>);
-byte_string to_bytes(const Elem *wptr<ins>, const Byte_alloc&amp; alloc = Byte_alloc()</ins>);
-byte_string to_bytes(const wide_string&amp; wstr<ins>, const Byte_alloc&amp; alloc = Byte_alloc()</ins>);
-byte_string to_bytes(const Elem *first, const Elem *last<ins>, const Byte_alloc&amp; alloc = Byte_alloc()</ins>);
-</pre></blockquote>
-</li>
-
-<li><p>In 22.3.3.2.2 [conversions.string] /13 specify that this <tt>Byte_alloc</tt> allocator parameter is used to
-construct the <tt>byte_string</tt> object returned from the function:</p>
-
-<p>
--12- <i>Effects</i>: The first member function shall convert the single-element sequence <tt>wchar</tt> to a byte string.
-The second member function shall convert the null-terminated sequence beginning at <tt>wptr</tt> to a byte
-string. The third member function shall convert the sequence stored in <tt>wstr</tt> to a byte string. The
-fourth member function shall convert the sequence defined by the range <tt>[first, last)</tt> to a byte string.
-<p/>
--13- In all cases:
-</p>
-<ul>
-<li><p>If the <tt>cvtstate</tt> object was not constructed with an explicit value, it shall be set to its default value
-(the initial conversion state) before the conversion begins. Otherwise it shall be left unchanged.</p></li>
-
-<li><p>The number of input elements successfully converted shall be stored in <tt>cvtcount</tt>.</p></li>
-
-<li><p><ins>The <tt>Byte_alloc</tt> allocator parameter is used to construct the <tt>byte_string</tt> object returned 
-from the function.</ins></p></li>
-</ul>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2227"></a>2227. Stateful comparison objects in associative containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2012-12-19 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Table 102 in 23.2.4 [associative.reqmts]/8 states on expression <tt>a.key_comp()</tt> that it 
-"returns the comparison object out of which a was constructed". At the same time, 
-23.2.1 [container.requirements.general]/8 states (starting in the third line) that 
-"...Any <tt>Compare</tt>, <tt>Pred</tt>, or <tt>Hash</tt> objects belonging to <tt>a</tt> and <tt>b</tt> 
-shall be swappable and <em>shall be exchanged</em> by unqualified calls to non-member swap...". This is 
-problematic for any compliant implementation, since once swapped the container cannot return the comparison 
-object out of which it was constructed unless incurring in storing an otherwise needless object.
-<p/>
-The simple solution is to correct that statement in Table 102, but I believe this is part of a larger problem 
-of underspecified behavior: The new standard has made an effort in regards to allocators and now fully 
-specifies what happens to stateful allocator objects. It has even specified what happens to stateful <tt>hasher</tt> 
-and <tt>key_equal</tt> members of unordered containers (they propagate), but it says nothing about stateful 
-comparison objects of (ordered) associative containers, except for the statement in 
-23.2.1 [container.requirements.general]/8 referred above and only related to <tt>swap</tt>.
-<p/>
-For example, it is unclear to me what is specified to happen on an assignment: should the comparison object 
-be copied/moved along with the elements, or should the left-hand side object keep its own?
-Maybe this has been intentionally left unspecified with the purpose of compatibility with C++98, which I 
-understand it specified that comparison objects were kept for the entire life of the container (like allocators) 
-&mdash; an unfortunate choice. But anyway, the segment of 23.2.1 [container.requirements.general] quoted 
-above seems to break any possible backwards compatibility with C++98 in this regard.
-<p/>
-Therefore, taking into consideration consistency with how this is dealed with for unordered associative 
-containers, I propose that Table 102 is modified as follows:
-</p>
-<ul>
-<li>
-<p>
-The row for expression <tt>a.key_comp()</tt> is changed so that its "assertion/note pre-/post-condition" reads 
-"Returns <tt>a</tt>'s comparison object."
-</p>
-</li>
-
-<li>
-<p>
-A new row is added at the appropriate location (which I believe would be after "X(il)" row), with:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 102 &mdash; Associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td>
-<tt>X(b)<br/>
-X a(b)</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-Copy constructor. In addition to<br/>
-the requirements of Table 96, copies<br/>
-the comparison object.
-</td>
-<td>
-Linear in <tt>b.size()</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a = b</tt>
-</td>
-<td>
-<tt>X&amp;</tt>
-</td>
-<td>
-Copy assignment operator. In addition to<br/>
-the requirements of Table 96, copies the<br/>
-comparison object.
-</td>
-<td>
-Linear in <tt>a.size()</tt> and <tt>b.size()</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ul>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
- 
-<p>
-STL: can't believe we don't specify this already. this is totally necessary
-<p/>
-Alisdair: how does it do this? copy construction? assignment?
-<p/>
-Also need it for move.
-<p/>
-STL: we already specify this for constructing from a comparator, not during copy construction though.
-<p/>
-Jonathan: don't like wording, should say "<tt>key_compare</tt> is <tt>CopyConstructible</tt>. Uses <tt>b.key_comp()</tt> 
-as a comparison object."
-<p/>
-STL: we get it right for unordered!
-<p/>
-Jonathan: can't wordsmith this now, but I think implementations do the right thing.
-<p/>
-Alisdair: not sure what right thing is for moves. Also we say nothing about propagating allocators to functors.
-</p>
-<p>
-Moved to Open.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-TK: There's no need for fine-grained propagate/not-propagate control. If you don't want to propagate the predicate, you can 
-simply construct or insert from an iterator range.
-<p/>
-VV: libstdc++ already implements the resolution of this issue.
-<p/>
-GR: There are a couple of other problems. We don't specify move constructor and move assignment for maps. Those are just general.
-<p/>
-TK: General container requirements already describe the semantics for {copy,move}-{construction,assignment}, so it doesn't 
-seem that there's room for choice in <tt>std::map</tt> assignments. <tt>unordered_map</tt> is different, though.
-<p/>
-[Note: Check what general container requirements say about container equality.]
-<p/>
-DK will draft wording. The decision is to unambiguously make all {copy,move}-{construction,assignment} operations endow the 
-LHS with the exact state of the RHS, including all predicates and hash function states.
-<p/>
-Conclusion: Update wording, revisit later. 
-</p>
-
-<p><i>[2015-05-06 Lenexa: Waiting for updated wording]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Change Table 102 as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 102 &mdash; Associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(il)</tt>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-Same as <tt>X(il.begin(), il.end())</tt>.
-</td>
-<td>
-same as <tt>X(il.begin(), il.end())</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>X(b)<br/>
-X a(b)</tt></ins>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-<ins>Copy constructor. In addition to<br/>
-the requirements of Table 96, copies<br/>
-the comparison object.</ins>
-</td>
-<td>
-<ins>Linear in <tt>b.size()</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>a = b</tt></ins>
-</td>
-<td>
-<ins><tt>X&amp;</tt></ins>
-</td>
-<td>
-<ins>Copy assignment operator. In addition to<br/>
-the requirements of Table 96, copies the<br/>
-comparison object.</ins>
-</td>
-<td>
-<ins>Linear in <tt>a.size()</tt> and <tt>b.size()</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.key_comp()</tt>
-</td>
-<td>
-<tt>X::key_compare</tt>
-</td>
-<td>
-<del>r</del><ins>R</ins>eturns <del>the</del><ins><tt>a</tt>'s</ins> comparison object<br/>
-<del>out of which a was constructed.</del>
-</td>
-<td>
-constant
-</td>
-</tr>
-
-
-</table>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2232"></a>2232. [CD] The <tt>char_traits</tt> specializations should declare their <tt>length()</tt>, <tt>compare()</tt>, and 
-<tt>find()</tt> members constexpr</h3>
-<p><b>Section:</b> 21.2.3 [char.traits.specializations] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2012-12-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits.specializations">issues</a> in [char.traits.specializations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses ES 14, US 19</b></p>
-
-<p>
-These functions have easy recursive constexpr implementations that, unfortunately, aren't efficient at runtime. 
-EWG is still figuring out how to solve this problem in general (e.g., 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3444.html">N3444</a> isn't sufficient to avoid 
-stack overflows in debug builds or to get the optimal assembly-based implementations at runtime), so users can't 
-portably solve this problem for themselves, but implementations can use compiler-specific techniques to choose 
-the right implementation inside their standard libraries.
-</p>
-
-<p>
-The LWG is still undecided about whether individual implementations can add constexpr to these functions, so we 
-need to add <tt>constexpr</tt> to the standard here for implementations to be able to improve this.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-There are a number of people who have a strong interest in this issue not available for the telecon.
-</p>
-<p>
-It also plays at the heart of a discussion about library freedoms for <tt>constexpr</tt> and specifying
-a library that may depend on unspecified compiler intrinsics to be implementable.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Moved to NAD Future.
-</p>
-<p>
-While it is clear that this feature can be implemented using only C++14 <tt>constexpr</tt> features,
-there is real concern that we cannot call the efficient, highly optimized, C implementations of these
-functions under a C++14 <tt>constexpr</tt> implementation, nor implement similar ourselves as this
-typically involves use of inline <tt>asm</tt> instructions.
-</p>
-<p>
-Clang and libc++ have some experience of using intrinsics to try to address the performance issue, but
-the current intrinsics are not general enough to support <tt>char_traits</tt>.  The intrinsics support
-only operations on character string literals, and the string literal is no longer visible <i>as</i> a
-literal after passing as a <tt>const char *</tt> to the <tt>char_traits</tt> functions.
-</p>
-<p>
-Additional concern was raised that these operations are unlikely to be useful anyway, as the only client
-is <tt>basic_string</tt> which relies on dynamic memory allocation, and so cannot effectively be made a
-literal type.  Jeffrey then pointed out the pending <tt>string_view</tt> library that will also use
-<tt>char_traits</tt> and would most certainly benefit from being a literal type.
-</p>
-
-<p>
-Given the choice of giving up performance on a critical library component, or requiring a compiler
-intrinsic with only unsuccessful implementation experience, the consensus is to not reject this, unless
-compelling implementation experience is demonstrated.  NAD Future seems the appropriate resolution.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>In 21.2.3.1 [char.traits.specializations.char], 21.2.3.2 [char.traits.specializations.char16_t], 
-21.2.3.3 [char.traits.specializations.char32_t], and 21.2.3.4 [char.traits.specializations.wchar.t]:</p>
-<blockquote><pre>
-static <ins>constexpr</ins> int compare(const char_type* s1, const char_type* s2, size_t n);
-static <ins>constexpr</ins> size_t length(const char_type* s);
-static <ins>constexpr</ins> const char_type* find(const char_type* s, size_t n, const char_type&amp; a);
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2234"></a>2234. <tt>assert()</tt> should allow usage in constant expressions</h3>
-<p><b>Section:</b> 19.3 [assertions] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-01-12 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#assertions">active issues</a> in [assertions].</p>
-<p><b>View all other</b> <a href="lwg-index.html#assertions">issues</a> in [assertions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is unclear from the current specification whether <tt>assert()</tt> expressions can be used in 
-(potential) constant expressions. As an example consider the implementation of a <tt>constexpr</tt>
-function:
-</p>
-
-<blockquote><pre>
-#include &lt;cassert&gt;
-
-template&lt;class T, unsigned N&gt;
-struct array {
-  T data[N];
-  constexpr const T&amp; operator[](unsigned i) const {
-    return assert(i &lt; N), data[i];
-  }
-};
-
-int main() {
-  constexpr array&lt;int, 3&gt; ai = {1, 2, 3};
-  constexpr int i = ai[0];
-  int j = ai[0];
-  // constexpr int k = ai[5];
-}
-</pre></blockquote>
-
-<p>
-The first question is whether this program is guaranteed well-formed? A second question is whether is would guaranteed to be
-ill-formed, if we uncomment the last code line in <tt>main()</tt>?
-</p>
-
-<p>
-The wording in 19.3 [assertions] doesn't add anything significant to the C99 wording. From the C99 specification 
-(7.2 p1 and 7.2.1.1 p2) we get already some valuable guarantees:
-</p>
-
-<ul>
-<li><p>
-The expression <tt>assert(e)</tt> is a <tt>void</tt> expression for all expressions <tt>e</tt> independent of 
-the definition of <tt>NDEBUG</tt>.
-</p></li>
-<li><p>
-If <tt>NDEBUG</tt> is defined, <tt>assert(e)</tt> is equivalent to the expression <tt>void()</tt>
-(or anything that cannot be distinguished from that).
-</p></li>
-</ul>
-
-<p>
-The current wording does not yet <em>guarantee</em> that <tt>assert</tt> expressions can be used in constant expressions,
-but all tested implementations (gcc, MSVC) would already support this use-case. It seems to me that this should be possible
-without giving <tt>assert</tt> a special meaning for the core language.
-<p/>
-As a related comment it should be added, that there is a core language 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3444.html">proposal</a> 
-that intents to relax some current constraints for <tt>constexpr</tt> functions and <tt>literal</tt> types. The most 
-interesting one (making <tt>void</tt> a literal types and allowing for expression-statements) would simplify the motivating 
-example implementation of <tt>operator[]</tt> to:
-</p>
-<blockquote><pre>
-constexpr const T&amp; operator[](unsigned i) const {
-  assert(i &lt; N);
-  return data[i];
-};
-</pre></blockquote>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-We are still gaining experience with <tt>constexpr</tt> as a language feature, and there may
-be work in Evolution that would help address some of these concerns.  Defer discussion until
-we have a group familiar with any evolutionary direction.
-</p>
-
-<p><i>[2014-06-08, Daniel comments and suggests wording]</i></p>
-
-<p>
-After approval of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3652.html"/>N3652<a/>,
-<tt>void</tt> is now a literal type and <tt>constexpr</tt> functions can contain multiple statements, so
-this makes the guarantee that <tt>assert</tt> expressions are per-se <tt>constexpr</tt>-friendly even more
-relevant. A possible wording form could be along the lines of:
-</p>
-<blockquote>
-<p>
-For every core constant expression <em>e</em> of scalar type that evaluates to <tt>true</tt> after being contextually 
-converted to <tt>bool</tt>, the expression <tt>assert(<em>e</em>)</tt> shall be a prvalue core constant expression of type 
-<tt>void</tt>.
-</p>
-</blockquote>
-<p>
-Richard Smith pointed out some weaknesses of this wording form, for example it would not guarantee to require
-the following example to work:
-</p>
-<blockquote><pre>
-constexpr void check(bool b) { assert(b); }
-</pre></blockquote>
-<p>
-because <tt>b</tt> is not a core constant expression in this context.
-<p/>
-He suggested improvements that lead to the wording form presented below (any defects mine). 
-</p>
-
-<p><i>[Lenexa 2015-05-05]</i></p>
-
-<p>MC : ran into this</p>
-<p>Z : Is it guaranteed to be an expression?</p>
-<p>MC : clarifies that assert runs at runtime, not sure what it does at compile time</p>
-<p>STL : c standard guarantees its an expression and not a whole statement, so comma chaining it is ok</p>
-<p>HH : Some implementations work as author wants it to</p>
-<p>STL : also doing this as constexpr</p>
-<p>DK/STL : discussing how this can actually work</p>
-<p>HH : GCC 5 also implements it. We have implementor convergence</p>
-<p>MC : Wants to do this without giving assert a special meaning</p>
-<p>STL : NDEBUG being defined where assert appears is not how assert works. This is bug in wording. Should be "when assert is defined" or something like that. ... is a constant subexpression if NDEBUG is defined at the point where assert is last defined or redefined."</p>
-<p>Would like to strike the "either" because ok if both debug or assertion is true. We want inclusive-or here</p>
-<p>MC : is redefined needed?</p>
-<p>STL : my mental model is its defined once and then redefined</p>
-<p>HH : wants to up to P2</p>
-<p>Z/STL : discussing how wording takes care of how/when assert is defined/redefefined</p>
-<p>STL/WB : discussing whether to move to ready or review. -> Want to move it to ready.</p>
-<p>ask for updated wording</p>
-<p>p3 -> p2</p>
-<p>plan to go to ready after checking wording</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Introduce the following new definition to the existing list in 17.3 [definitions]: [<i>Drafting note</i>:
-If LWG <a href="lwg-active.html#2296">2296</a> is accepted before this issue, the accepted wording for the new definition should be used instead 
-&mdash; <i>end drafting note</i>]</p>
-
-<blockquote>
-<p>
-<strong>constant subexpression</strong> [defns.const.subexpr]
-<p/>
-an expression whose evaluation as subexpression of a <em>conditional-expression</em> <em>CE</em> (5.16 [expr.cond]) 
-would not prevent <em>CE</em> from being a core constant expression (5.20 [expr.const]).
-</p>
-</blockquote>
-</li>
-
-<li><p>Insert a new paragraph following 19.3 [assertions] p1 as indicated:</p>
-
-<blockquote>
-<p>
-<ins>-?- An expression <tt>assert(<em>E</em>)</tt> is a constant subexpression ( [defns.const.subexpr]), if either</ins>
-</p>
-<ul>
-<li><p><ins><tt>NDEBUG</tt> is defined at the point where <tt>assert(<em>E</em>)</tt> appears, or</ins></p></li>
-<li><p><ins><tt><em>E</em></tt> contextually converted to <tt>bool</tt> (4 [conv]), is a constant subexpression 
-that evaluates to the value <tt>true</tt>.</ins></p></li>
-</ul>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2236"></a>2236. <tt>kill_dependency</tt> unconditionally noexcept</h3>
-<p><b>Section:</b> 29.2 [atomics.syn], 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#SG1">SG1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-01-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.syn">issues</a> in [atomics.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#SG1">SG1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The "magic" <tt>kill_dependency</tt> function is a function without any constraints on the template parameter <tt>T</tt> 
-and is specified as
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-T kill_dependency(T y) noexcept;
-</pre><blockquote>
-<p>
--14- <i>Effects</i>: The argument does not carry a dependency to the return value (1.10).
-<p/>
--15- <i>Returns</i>: <tt>y</tt>.
-</p>
-</blockquote></blockquote>
-
-<p>
-I wonder whether the unconditional <tt>noexcept</tt> is really intended here:
-Assume we have some type <tt>U</tt> that has a potentially throwing move
-constructor (or it has a potentially throwing copy constructor and no
-move constructor), for any "normal" function template with the same
-signature and the same effects (modulo the dependency magic) this
-would mean that it cannot safely be declared <tt>noexcept</tt> because of the
-return statement being part of the complete function call affected by
-<tt>noexcept</tt> (The by-value function argument is irrelevant in this
-context). In other words it seems that a function call such as
-</p>
-
-<blockquote><pre>
-struct S {
-  ...
-  S(const S&amp; r) { if(<em>some condition</em>) throw Something(); }
-  ...
-};
-
-int main() {
-  S s1 = ...;
-  S s2 = std::kill_dependency(s1);
-}
-</pre></blockquote>
-
-<p>
-would be required to call <tt>std::terminate</tt> if the copy constructor of <tt>S</tt> throws during the return 
-of <tt>std::kill_dependency</tt>.
-<p/>
-To require copy elision for this already magic function would look like a low-hanging fruit to solve this problem, 
-but this case is not covered by current copy elision rules see 12.8 p31 b1:
-<p/>
-"&mdash; in a return statement in a function with a class return type, when the expression is the name of a non-volatile 
-automatic object (other than a function or catch-clause parameter) with the same <em>cv</em>-unqualified type as the 
-function return type, the copy/move operation can be omitted by constructing the automatic object directly into the
-function's return value".
-<p/>
-Some options come into my mind:
-</p>
-<ol>
-<li><p>
-Make the exception-specification a constrained one in regard via <tt>std::is_nothrow_move_constructible</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-T kill_dependency(T y) noexcept(<em>see below</em>);
-</pre></blockquote>
-
-<p>
-This is similar to the approach taken for function templates such as <tt>std::swap</tt>.
-</p>
-</li>
-
-<li><p>
-Use perfect forwarding (This needs further wording to correct the effects):
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-T&amp;&amp; kill_dependency(T&amp;&amp; y) noexcept;
-</pre></blockquote>
-</li>
-
-<li><p>
-Impose constraints on the template arguments in regard to throwing exceptions while copying/moving.
-</p></li>
-
-<li><p>
-Keep the state as it is but possibly add a note about a call of <tt>std::terminate</tt> in above scenario.
-</p></li>
-</ol>
-
-<p>
-A second problem is that the current wording is not clear whether it is well-defined to call the function with
-types that are reference types, such as in the following example:
-</p>
-
-<blockquote><pre>
-#include &lt;atomic&gt;
-
-int main()
-{
-  int a = 12;
-  int&amp; b = std::kill_dependency&lt;int&amp;&gt;(a);
-}
-</pre></blockquote>
-
-<p>
-It is unclear what kind of dependency is killed here. This is presumably a core language problem, but could
-affect the possible resolutions of the problem.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>
-Recommend using a revised example:
-</p>
-<blockquote><pre>
-int lookup(class D* p) 
-{
-  class E* q = p-&gt;a.load(memory_order_consume);
-  int y = std::kill_dependency(q-&gt;y);
-}
-</pre></blockquote>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2237"></a>2237. <tt>&lt;cuchar&gt;</tt> macros</h3>
-<p><b>Section:</b> 21.8 [c.strings] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jason Merrill <b>Opened:</b> 2013-01-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.strings">active issues</a> in [c.strings].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.strings">issues</a> in [c.strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Apparently C1X changes <tt>__STDC_UTF_16__</tt> and <tt>__STDC_UTF_32__</tt> from macros
-defined in <tt>uchar.h</tt> (and reflected in C++ by Table 79) to be predefined by the compiler. 
-Do we want to do the same?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2238"></a>2238. Problematic iterator-pair constructor of containers</h3>
-<p><b>Section:</b> 21.8 [c.strings] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Johannes Schaub <b>Opened:</b> 2013-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.strings">active issues</a> in [c.strings].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.strings">issues</a> in [c.strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The non-explicit nature of the iterator-pair constructor of containers, such a
-</p>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-vector(InputIterator first, InputIterator last, const Allocator&amp; = Allocator());
-</pre></blockquote>
-
-<p>
-can be selected in unexpected situations, leading to a hard runtime error, as demonstrated by the following example:
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt;
-
-void f(std::vector&lt;char&gt; v){ /* ... */}
-
-int main() {
-  f({"A", "B"});
-}
-</pre></blockquote>
-
-<p>
-The actually intended initializer-list constructor isn't feasible here, so the best match is the constructor template
-</p>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-vector(InputIterator first, InputIterator last, const Allocator&amp; = Allocator());
-</pre></blockquote>
-
-<p>
-This compiles, but will result in code running amok. The potential trap (that cannot be easily detected by the
-library implementation) could be reduced by making this constructor explicit. It would still have the effect to 
-be selected here, but the code would be ill-formed, so the programmer gets a clear meassage here.
-</p>
-
-<p><i>[2014-06 Rapperswil]</i></p>
-
-<p>
-JW: can't fix this, don't want to touch this, Do The Right Thing clause has been a source of tricky issues. 
-only really happens with string literals, that's the only way to create an array that isn't obviously an array
-<p/>
-GR: want to see paper
-<p/>
-AM: is it only string literals, or also UDLs?
-<p/>
-STL: maybe, but we don't need to deal with that. This is only a problem in a very specific case 
-<p/>
-Leave as Open. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2241"></a>2241. <tt>&lt;cstdalign&gt;</tt> and <tt>#define</tt> of <tt>alignof</tt></h3>
-<p><b>Section:</b> 18.10 [support.runtime] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2013-02-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.runtime">active issues</a> in [support.runtime].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.runtime">issues</a> in [support.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to 18.10 [support.runtime] p2:
-</p>
-
-<blockquote><p>
-The contents of these headers are the same as the Standard C library headers [..], <tt>&lt;stdalign.h&gt;</tt>, [..]
-</p></blockquote>
-
-<p>
-Since our base C standard is C99, which doesn't have a <tt>&lt;stdalign.h&gt;</tt>, the reference to a non-existing 
-C header is irritating (In this context <tt>&lt;stdalign.h&gt;</tt> doesn't refer to the deprecated C++ header
-<tt>&lt;stdalign.h&gt;</tt> described in D.5 [depr.c.headers]).
-<p/>
-Furthermore, it would be also important that it doesn not define a macro named <tt>alignof</tt>, which C11 also defines 
-in this header. 
-<p/>
-Currently we only have the following guarantee as part of 18.10 [support.runtime] p7:
-</p>
-
-<blockquote><p>
-The header <tt>&lt;cstdalign&gt;</tt> and the header <tt>&lt;stdalign.h&gt;</tt> shall not define a macro named 
-<tt>alignas</tt>.
-</p></blockquote>
-
-<p>
-It is unclear what the better strategy is: Striking the reference to <tt>&lt;stdalign.h&gt;</tt> in
-18.10 [support.runtime] p2 or upgrading to C11 as new base C standard.
-</p>
-
-<p><i>[2014-02-15 Issaquah]</i></p>
-
-<p>
-STL: related to earlier issue on C4, <a href="lwg-active.html#2201">2201</a>, and now we get a C11 header
-</p>
-<p>
-JY: find _Alignof as keyword C11 FDIS has four defines in stdalign.h
-</p>
-<p>
-AM: need paper for C11 as base library we should really do that
-</p>
-<p>
-STL: really need vendor input
-</p>
-<p>
-STL: don't think we need to do anything right now not P1
-</p>
-<p>
-AM: any objections to downscale to P2  (no objections)
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2242"></a>2242. <tt>[uninitialized_]copy_n()</tt> defect</h3>
-<p><b>Section:</b> 25.3.1 [alg.copy], 20.7.12.2 [uninitialized.copy] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Sean Parent <b>Opened:</b> 2013-02-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#alg.copy">active issues</a> in [alg.copy].</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.copy">issues</a> in [alg.copy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>copy_n()</tt> and <tt>uninitialized_copy_n()</tt> only return the output iterator, and not the input iterator. 
-Likely the interface was simply copied from the original STL. Unfortunately the interface in the original STL contains a bug.
-<p/>
-<tt>copy_n()</tt> and <tt>uninitialized_copy_n()</tt> must return the resulting input iterator as well as the output 
-iterator (I would suggest returning a pair). Without this, there is no way to continue reading from an actual input 
-iterator &mdash; and if it is really a forward iterator, it will cost <tt>n</tt> increments to get back to where you were.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2243"></a>2243. <tt>istream::putback</tt> problem</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2013-03-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 27.7.2.3 [istream.unformatted] / 34, when describing <tt>putback</tt>, it says that "<tt>rdbuf-&gt;sputbackc()</tt>" 
-is called. The problem are not the obvious typos in the expression, but the fact that it may lead to different 
-interpretations, since nowhere is specified what the required argument to <tt>sputbackc</tt> is.
-<p/>
-It can be guessed to be "<tt>rdbuf()-&gt;sputbackc(c)</tt>", but "<tt>rdbuf()-&gt;sputbackc(char_type())</tt>" or 
-just anything would be as conforming (or non-confoming) as the first guess.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2244"></a>2244. Issue on <tt>basic_istream::seekg</tt></h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2013-03-04 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When issue <a href="lwg-defects.html#1445">1445</a> was resolved by adopting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm">N3168</a>, it exposed the need to 
-modify both overloads of <tt>basic_istream::seekg</tt> (by inserting "the function clears eofbit," after "except that"), 
-but the fix applied to the text apparently forgets the second overload at 27.7.2.3 [istream.unformatted] p43.
-</p>
-
-<p><i>[2013-10-17: Daniel provides concrete wording]</i></p>
-
-
-<p>
-It seems that the tiny sentence "SIMILARLY for 27.7.1.3/43 (<tt>seekg</tt>)." had been overlooked. I agree that the wording needs to be
-applied here as well.
-</p>
-
-<p><i>[2015-05-06 Lenexa: Move to Ready]</i></p>
-
-<p>MC: This was just missed when we added "the function first clears eofbit" to the other overload, Daniel agrees. Editing mistake.</p>
-<p>Move to Ready, consensus.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 27.7.2.3 [istream.unformatted] p43 as indicated:</p>
-
-<blockquote><pre>
-basic_istream&lt;charT,traits&gt;&amp; seekg(off_type off, ios_base::seekdir dir);
-</pre><blockquote>
-<p>
--43- <i>Effects:</i> Behaves as an unformatted input function (as described in 27.7.2.3, paragraph 1), except
-that <ins>the function first clears <tt>eofbit</tt>,</ins> it does not count the number of characters extracted<ins>,</ins> 
-and does not affect the value returned by subsequent calls to <tt>gcount()</tt>. [&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2245"></a>2245. <tt>packaged_task::reset()</tt> memory allocation</h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-03-05 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The effects of <tt>packaged_task::reset()</tt> result in memory allocation, but
-don't allow a user to provide an allocator.
-<p/>
-<tt>packaged_task::reset()</tt> needs to be overloaded like so:
-</p>
-
-<blockquote><pre>
-template&lt;class Alloc&gt;  
-void reset(const Alloc&amp;);
-</pre></blockquote>
-
-<p>
-Alternatively, the effects of <tt>reset()</tt> need to require the same allocator is used 
-as at construction, which would require the constructor to store the allocator for later use.
-<p/>
-I like to remark that GCC at the moment uses the second option, i.e. the allocator passed to the constructor 
-(if any) is used to create the new shared state, because this didn't require any change to the
-interface.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-No strong opinions in SG1, and this is really an LWG issue.  Back to you.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2248"></a>2248. <tt>numeric_limits::is_iec559</tt> misnamed</h3>
-<p><b>Section:</b> 18.3.2 [limits] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2013-03-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#limits">issues</a> in [limits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This member should probably be named "is_ieee754". Or at least the standard should explain that IEC-559 no longer exists, 
-and that it's been superseded by IEEE-754.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2250"></a>2250. Follow-up On Library Issue 2207</h3>
-<p><b>Section:</b> 20.6.1 [bitset.cons], 20.6.2 [bitset.members], 21.4.2 [string.cons], 21.4.6 [string.modifiers], 21.4.7 [string.ops] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Frank Birbacher <b>Opened:</b> 2013-04-18 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.cons">issues</a> in [bitset.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Similar to LWG <a href="lwg-defects.html#2207">2207</a> there are several other places where the "Requires" clause precludes the "Throws" condition. 
-Searching for the <tt>out_of_range</tt> exception to be thrown, the following have been found (based on the working draft
-N3485):
-</p>
-
-<ol>
-<li><p>20.6.1 [bitset.cons] p3+4</p></li>
-<li><p>20.6.2 [bitset.members] p13+14 (<tt>set</tt>)</p></li>
-<li><p>20.6.2 [bitset.members] p19+20 (<tt>reset</tt>)</p></li>
-<li><p>20.6.2 [bitset.members] p27+28 (<tt>flip</tt>)</p></li>
-<li><p>20.6.2 [bitset.members] p41+42 (<tt>test</tt>)</p></li>
-<li><p>21.4.2 [string.cons] p3+4</p></li>
-<li><p>21.4.6.2 [string::append] p3+4</p></li>
-<li><p>21.4.6.3 [string::assign] p4+5</p></li>
-<li><p>21.4.6.4 [string::insert] p1+2, p5+6, p9+10 (partially)</p></li>
-<li><p>21.4.6.5 [string::erase] p1+2</p></li>
-<li><p>21.4.6.6 [string::replace] p1+2, p5+6, p9+10 (partially)</p></li>
-<li><p>21.4.6.7 [string::copy] p1+2</p></li>
-<li><p>21.4.7.8 [string::substr] p1+2</p></li>
-</ol>
-
-<p><i>[2013-10-15: Daniel provides wording]</i></p>
-
-
-<p>
-In addition to the examples mentioned in the discussion, a similar defect exists for <tt>thread</tt>'s <tt>join()</tt> 
-and <tt>detach</tt> functions (see 30.3.1.5 [thread.thread.member]). The suggested wording applies a similar fix for these
-as well.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL : likes it<br/>
-DK : does it change behavior?<br/>
-Multiple : no<br/>
-Move to ready? Unanimous 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Modify 20.6.1 [bitset.cons] as indicated: <em>[Editorial comment: The wording form used to ammend the 
-<i>Throws</i> element is borrowed from a similar style used in 21.4.6.6 [string::replace] p10]</em></p>
-
-<blockquote><pre>
-template &lt;class charT, class traits, class Allocator&gt;
-explicit
-bitset(const basic_string&lt;charT, traits, Allocator&gt;&amp; str,
-       typename basic_string&lt;charT, traits, Allocator&gt;::size_type pos = 0,
-       typename basic_string&lt;charT, traits, Allocator&gt;::size_type n =
-         basic_string&lt;charT, traits, Allocator&gt;::npos,
-         charT zero = charT('0'), charT one = charT('1'));
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires:</i> <tt>pos &lt;= str.size()</tt>.</del>
-<p/>
--4- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; str.size()</tt> <ins>or <tt>invalid_argument</tt> if an
-invalid character is found (see below)</ins>.
-<p/>
--5- <i>Effects:</i> Determines the effective length <tt>rlen</tt> of the initializing string as the smaller of <tt>n</tt> and 
-<tt>str.size() - pos</tt>.
-<p/>
-The function then throws <tt>invalid_argument</tt> if any of the <tt>rlen</tt> characters in <tt>str</tt> beginning at position
-<tt>pos</tt> is other than <tt>zero</tt> or <tt>one</tt>. The function uses <tt>traits::eq()</tt> to compare the character values.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 20.6.2 [bitset.members] as indicated:</p>
-
-<blockquote><pre>
-bitset&lt;N&gt;&amp; set(size_t pos, bool val = true);
-</pre><blockquote>
-<p>
-<del>-13- <i>Requires:</i> <tt>pos</tt> is valid</del>
-<p/>
--14- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos</tt> does not correspond to a valid bit position.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-bitset&lt;N&gt;&amp; reset(size_t pos);
-</pre><blockquote>
-<p>
-<del>-19- <i>Requires:</i> <tt>pos</tt> is valid</del>
-<p/>
--20- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos</tt> does not correspond to a valid bit position.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-bitset&lt;N&gt;&amp; flip(size_t pos);
-</pre><blockquote>
-<p>
-<del>-27- <i>Requires:</i> <tt>pos</tt> is valid</del>
-<p/>
--28- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos</tt> does not correspond to a valid bit position.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-bool test(size_t pos) const;
-</pre><blockquote>
-<p>
-<del>-41- <i>Requires:</i> <tt>pos</tt> is valid</del>
-<p/>
--42- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos</tt> does not correspond to a valid bit position.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.2 [string.cons] as indicated:</p>
-
-<blockquote><pre>
-basic_string(const basic_string&amp; str,
-             size_type pos, size_type n = npos,
-             const Allocator&amp; a = Allocator());
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires:</i> <tt>pos &lt;= str.size()</tt></del>
-<p/>
--4- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; str.size()</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.4 [string.capacity] as indicated:</p>
-
-<blockquote><pre>
-void resize(size_type n, charT c);
-</pre><blockquote>
-<p>
-<del>-6- <i>Requires:</i> <tt>n &lt;= max_size()</tt></del>
-<p/>
--7- <i>Throws:</i> <tt>length_error</tt> if <tt>n &gt; max_size()</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.6.2 [string::append] as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp;
-  append(const basic_string&amp; str, size_type pos, size_type n = npos);
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires:</i> <tt>pos &lt;= str.size()</tt></del>
-<p/>
--4- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; str.size()</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.6.3 [string::assign] as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp;
-  assign(const basic_string&amp; str, size_type pos, 
-         size_type n = npos);
-</pre><blockquote>
-<p>
-<del>-5- <i>Requires:</i> <tt>pos &lt;= str.size()</tt></del>
-<p/>
--6- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; str.size()</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.6.4 [string::insert] as indicated: <em>[Editorial note: The first change suggestion is also a bug fix
-of the current wording, because (a) the function has parameter <tt>pos1</tt> but the semantics refers to <tt>pos</tt> and (b) 
-it is possible that this function can throw <tt>length_error</tt>, see p10]</em></p>
-
-<blockquote><pre>
-basic_string&amp;
-  insert(size_type pos<del>1</del>, const basic_string&amp; str);
-</pre><blockquote>
-<p>
-<del>-1- <i>Requires:</i> <tt>pos &lt;= size()</tt>.</del>
-<p/>
-<del>-2- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; size()</tt>.</del>
-<p/>
--3- <i>Effects:</i> <del>Calls</del><ins>Equivalent to:</ins> <tt><ins>return</ins> insert(pos, str.data(), str.size())<ins>;</ins></tt><del>.</del>
-<p/>
-<del>-4- <i>Returns:</i> <tt>*this</tt>.</del>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-basic_string&amp;
-  insert(size_type pos1, const basic_string&amp; str,
-         size_type pos2, size_type n = npos);
-</pre><blockquote>
-<p>
-<del>-5- <i>Requires:</i> <tt>pos1 &lt;= size()</tt> and <tt>pos2 &lt;= str.size()</tt>.</del>
-<p/>
--6- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos1 &gt; size()</tt> or <tt>pos2 &gt; str.size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-basic_string&amp;
-  insert(size_type pos, const charT* s, size_type n);
-</pre><blockquote>
-<p>
--9- <i>Requires:</i> <tt>s</tt> points to an array of at least <tt>n</tt> elements of <tt>charT</tt> <del>and 
-<tt>pos &lt;= size()</tt></del>.
-<p/>
--10- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; size()</tt> or <tt>length_error</tt> if <tt>size() + n &gt; max_size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-basic_string&amp;
-  insert(size_type pos, const charT* s);
-</pre><blockquote>
-<p>
--13- <i>Requires:</i> <del><tt>pos &lt;= size()</tt> and</del> <tt>s</tt> points to an array of at least 
-<tt>traits::length(s) + 1</tt> elements of <tt>charT</tt>.
-<p/>
--14- <i>Effects:</i> Equivalent to <tt><ins>return</ins> insert(pos, s, traits::length(s))<ins>;</ins></tt><del>.</del>
-<p/>
-<del>-15- <i>Returns:</i> <tt>*this</tt>.</del>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.6.5 [string::erase] as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp; erase(size_type pos = 0, size_type n = npos);
-</pre><blockquote>
-<p>
-<del>-1- <i>Requires:</i> <tt>pos &lt;= size()</tt></del>
-<p/>
--2- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.6.6 [string::replace] as indicated: <em>[Editorial note: The first change suggestion is also a bug fix
-of the current wording, because it is possible that this function can throw <tt>length_error</tt>, see p10]</em></p>
-
-<blockquote><pre>
-basic_string&amp;
-  replace(size_type pos1, size_type n1,
-          const basic_string&amp; str);
-</pre><blockquote>
-<p>
-<del>-1- <i>Requires:</i> <tt>pos1 &lt;= size()</tt>.</del>
-<p/>
-<del>-2- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos1 &gt; size()</tt>.</del>
-<p/>
--3- <i>Effects:</i> <del>Calls</del><ins>Equivalent to</ins> <tt><ins>return</ins> replace(pos1, n1, str.data(), str.size())<ins>;</ins></tt><del>.</del>
-<p/>
-<del>-4- <i>Returns:</i> <tt>*this</tt>.</del>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-basic_string&amp;
-  replace(size_type pos1, size_type n1,
-          const basic_string&amp; str,
-          size_type pos2, size_type n = npos);
-</pre><blockquote>
-<p>
-<del>-5- <i>Requires:</i> <tt>pos1 &lt;= size()</tt> and <tt>pos2 &lt;= str.size()</tt>.</del>
-<p/>
--6- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos1 &gt; size()</tt> or <tt>pos2 &gt; str.size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-basic_string&amp;
-  replace(size_type pos1, size_type n1, const charT* s, size_type n2);
-</pre><blockquote>
-<p>
--9- <i>Requires:</i> <del><tt>pos1 &lt;= size()</tt> and</del> <tt>s</tt> points to an array of at least <tt>n2</tt> elements 
-of <tt>charT</tt>.
-<p/>
--10- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos1 &gt; size()</tt> or <tt>length_error</tt> if the length of the resulting 
-string would exceed <tt>max_size()</tt> (see below).
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-basic_string&amp;
-  replace(size_type pos, size_type n, const charT* s);
-</pre><blockquote>
-<p>
--13- <i>Requires:</i> <del><tt>pos &lt;= size()</tt> and</del> <tt>s</tt> points to an array of at least 
-<tt>traits::length(s) + 1</tt> elements of <tt>charT</tt>.
-<p/>
--14- <i>Effects:</i> Equivalent to <tt><ins>return</ins> replace(pos, n, s, traits::length(s))<ins>;</ins></tt><del>.</del>
-<p/>
-<del>-15- <i>Returns:</i> <tt>*this</tt>.</del>
-</p>
-</blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.6.7 [string::copy] as indicated:</p>
-
-<blockquote><pre>
-size_type copy(charT* s, size_type n, size_type pos = 0) const;
-</pre><blockquote>
-<p>
-<del>-1- <i>Requires:</i> <tt>pos &lt;= size()</tt></del>
-<p/>
--2- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 21.4.7.8 [string::substr] as indicated:</p>
-
-<blockquote><pre>
-basic_string substr(size_type pos = 0, size_type n = npos) const;
-</pre><blockquote>
-<p>
-<del>-1- <i>Requires:</i> <tt>pos &lt;= size()</tt></del>
-<p/>
--2- <i>Throws:</i> <tt>out_of_range</tt> if <tt>pos &gt; size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Modify 30.3.1.5 [thread.thread.member] as indicated:</p>
-
-<blockquote><pre>
-void join();
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires:</i> <tt>joinable()</tt> is true.</del>
-<p/>
-[&hellip;]
-<p/>
--7- <i>Throws:</i> <tt>system_error</tt> when an exception is required (30.2.2).
-<p/>
--8- <i>Error conditions:</i>
-</p>
-<ul>
-<li><p>[&hellip;]</p></li>
-<li><p><tt>invalid_argument</tt> &mdash; if the thread is not joinable.</p></li>
-</ul>
-</blockquote></blockquote>
-
-<blockquote><pre>
-void detach();
-</pre><blockquote>
-<p>
-<del>-9- <i>Requires:</i> <tt>joinable()</tt> is true.</del>
-<p/>
-[&hellip;]
-<p/>
--12- <i>Throws:</i> <tt>system_error</tt> when an exception is required (30.2.2).
-<p/>
--13- <i>Error conditions:</i>
-</p>
-<ul>
-<li><p>[&hellip;]</p></li>
-<li><p><tt>invalid_argument</tt> &mdash; if the thread is not joinable.</p></li>
-</ul>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2253"></a>2253. [arrays.ts] <tt>dynarray</tt> should state which container requirements aren't met</h3>
-<p><b>Section:</b> X [dynarray.overview] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: arrays.ts</b></p>
-
-<p>
-X [dynarray.overview] p2 says:
-</p>
-<blockquote>
-<p>
-"Unless otherwise specified, all <tt>dynarray</tt> operations have the same requirements and semantics as specified in
-23.2 [container.requirements]."
-</p>
-</blockquote>
-<p>
-Some differences from 23.2 [container.requirements] are not explicitly specified, including at
-least the lack of a default constructor, copy assignment and <tt>swap</tt> member.
-<p/>
-The wording could be similar to 23.3.2.1 [array.overview] which says "An array satisfies all of the requirements 
-of a container and of a reversible container (23.2 [container.requirements]), except that a default constructed 
-array object is not empty and that <tt>swap</tt> does not have constant complexity."
-</p>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred. This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswil]</i></p>
-
-<p>
-This issue has been reopened as arrays-ts.
-</p>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-<p><i>[2014/11 Urbana]</i></p>
-
-<p>
-Held at Ready status, pending clarification of Arrays TS
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Add to X [dynarray.overview] p2:</p>
-<p>
--2- <ins>A <tt>dynarray</tt> satisfies all of the requirements of a container and of a reversible container 
-(23.2 [container.requirements]), except for default construction, assignment and <tt>swap</tt>.</ins> Unless 
-otherwise specified, all <tt>dynarray</tt> operations have the same requirements and semantics as specified in 
-23.2 [container.requirements].
-</p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2254"></a>2254. [arrays.ts] Is <tt>dynarray</tt> an allocator-aware container?</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: arrays.ts</b></p>
-
-<p>
-23.2.1 [container.requirements.general] p3 says:
-</p>
-<blockquote>
-<p>
-"All of the containers defined in this Clause and in (21.4) except <tt>array</tt> meet the additional requirements 
-of an allocator-aware container, as described in Table 99."
-</p>
-</blockquote>
-<p>
-Is this true of <tt>dynarray</tt>?  I believe the answer must be no because <tt>dynarray</tt> has no <tt>allocator_type</tt>, 
-and morally should be no, so that operations are defined in terms of <tt>std::allocator&lt;T&gt;</tt>, which p13 says
-doesn't actually need to be used (which allows the elements to be default-initialized as is intended, rather than 
-"default-inserted into the container" using an allocator.)
-<p/>
-The requirement that "each element is constructed with uses-allocator construction" provides roughly equivalent behaviour 
-to the "<em>CopyInsertable into <tt>X</tt></em>" requirements for allocator-aware containers, allowing an allocator to 
-control construction of the <tt>dynarray</tt> elements.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Move to Deferred. This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as arrays-ts.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Change to 23.2.1 [container.requirements.general] p13:</p>
-<p>
--13- All of the containers defined in this Clause and in (21.4) except <tt>array</tt> <ins>and <tt>dynarray</tt></ins> 
-meet the additional requirements of an allocator-aware container, as described in Table 99.
-</p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2255"></a>2255. [arrays.ts] <tt>dynarray</tt> constructor ambiguity</h3>
-<p><b>Section:</b> X [dynarray.cons] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: arrays.ts</b></p>
-
-<p>
-These constructors can interact badly::
-</p>
-<blockquote><pre>
-template&lt;class Alloc&gt;
-  dynarray(size_type c, const Alloc&amp; alloc);
-dynarray(size_type c, const T&amp; v);
-</pre></blockquote>
-<p>
-Unless the second argument is a value of exactly the type <tt>T</tt> you will get the first constructor, i.e. 
-all of these will fail to compile:
-</p>
-<blockquote><pre>
-dynarray&lt;long&gt; dlong(1, 1);   // 1 is not long
-dynarray&lt;float&gt; dflt(1, 1.0);  // 1.0 is not float
-dynarray&lt;int*&gt; dptr(1, nullptr);  // nullptr is not int*
-dynarray&lt;void*&gt; doh(1, 0);  // 0 is not void*
-</pre></blockquote>
-<p>
-The <tt>nullptr</tt> case is particularly annoying, a user trying to do the right thing by saying <tt>nullptr</tt> 
-instead of <tt>NULL</tt> still gets the wrong result.
-<p/>
-The constructor taking an allocator requires that "<tt>Alloc</tt> shall meet the requirements for an Allocator" 
-but doesn't actually say "shall not participate in overload resolution unless ..."
-<p/>
-I believe we have no precedent for using SFINAE to check "the requirements for an Allocator" because it's 
-a pretty complicated set of requirements. We could say it shall not participate in overload resolution if <tt>Alloc</tt> 
-is implicitly convertible to <tt>value_type</tt>.
-<p/>
-Alternatively, we could follow the same approach used by other types that can be constructed with an unconstrained 
-allocator type and use <tt>std::allocator_arg_t</tt> as the first argument instead of adding an allocator after the 
-other arguments.
-</p>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred. This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswil]</i></p>
-
-<p>
-This issue has been reopened as arrays-ts.
-</p>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready for alternative A
-</p>
-
-<strong>Previous resolution [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note"> 
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-<em>Either</em> use the correct way to unambiguously call a constructor taking any type of allocator, i.e. change the 
-constructors to take <tt>dynarray(std::allocator_arg_t, const Alloc&amp;, ...)</tt> by modifying both the synopsis
-X [dynarray.overview] p2 and X [dynarray.cons] before p9 like so:</p>
-
-<blockquote><pre>
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>size_type c<del>, const Alloc&amp; alloc</del>);
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>size_type c, const T&amp; v<del>, const Alloc&amp; alloc</del>);
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>const dynarray&amp; d<del>, const Alloc&amp; alloc</del>);
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>initializer_list&lt;T&gt;<del>, const Alloc&amp; alloc</del>);
-</pre></blockquote>
-
-</li>
-
-<li><p><em>or</em> constrain the problematic constructor by adding a new paragraph to X [dynarray.cons]:</p>
-<blockquote><pre>
-template &lt;class Alloc&gt;
-  dynarray(size_type c, const Alloc&amp; alloc);
-template &lt;class Alloc&gt;
-  dynarray(size_type c, const T&amp; v, const Alloc&amp; alloc);
-template &lt;class Alloc&gt;
-  dynarray(const dynarray&amp; d, const Alloc&amp; alloc);
-template &lt;class Alloc&gt;
-  dynarray(initializer_list&lt;T&gt;, const Alloc&amp; alloc);
-</pre><blockquote>
-<p>
--9- <i>Requires</i>: <tt>Alloc</tt> shall meet the requirements for an Allocator (17.6.3.5 [allocator.requirements]).
-<p/>
--10- <i>Effects</i>: Equivalent to the preceding constructors except that each element is constructed with uses-allocator
-construction (20.7.7.2 [allocator.uses.construction]).
-<p/>
-<ins>-?- <i>Remarks</i>: The first constructor shall not participate in overload resolution unless <tt>Alloc</tt> is not 
-implicitly convertible to <tt>T</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014/11 Urbana]</i></p>
-
-<p>
-Held at Ready status, pending clarification of Arrays TS
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Use the correct way to unambiguously call a constructor taking any type of allocator, i.e. change the 
-constructors to take <tt>dynarray(std::allocator_arg_t, const Alloc&amp;, ...)</tt> by modifying both the synopsis
-X [dynarray.overview] p2 and X [dynarray.cons] before p9 like so:</p>
-
-<blockquote><pre>
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>size_type c<del>, const Alloc&amp; alloc</del>);
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>size_type c, const T&amp; v<del>, const Alloc&amp; alloc</del>);
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>const dynarray&amp; d<del>, const Alloc&amp; alloc</del>);
-template &lt;class Alloc&gt;
-  dynarray(<ins>allocator_arg_t, const Alloc&amp; a, </ins>initializer_list&lt;T&gt;<del>, const Alloc&amp; alloc</del>);
-</pre></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2256"></a>2256. On <tt>vector</tt> iterator invalidation</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-04-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-23.3.6.5 [vector.modifiers]/p3 says:
-</p>
-<blockquote><pre>
-iterator erase(const_iterator position);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: Invalidates iterators and references at or after the point of the erase.
-</p>
-</blockquote></blockquote>
-<p>
-Consider this example:
-</p>
-<blockquote><pre>
-#include &lt;vector&gt;
-#include &lt;cassert&gt;
-
-int main()
-{
-  typedef std::vector&lt;int&gt; C;
-  C c = {1, 2, 3, 4};
-  C::iterator i = c.begin() + 1;
-  C::iterator j = c.end() - 1;
-  assert(*i == 2);
-  assert(*j == 4);
-  c.erase(c.begin());
-  <span style="color:#C80000;font-weight:bold">assert(*i == 3); // Why is this not perfectly fine?!</span>
-}
-</pre></blockquote>
-<p>
-Why has the iterator <tt>i</tt> been invalidated? It still refers to a perfectly reasonable, fully constructed object. 
-If <tt>vector::iterator</tt> were to be implemented as a pointer (which is legal), it is not possible for that last 
-line to do anything but run fine.
-<p/>
-The iterator <tt>j</tt> on the other hand now points at end, and any iterators that may now point beyond <tt>end()</tt>, 
-into uninitialized memory, are clearly invalid.
-<p/>
-But why do we say that an iterator that <em>must</em> point to a valid object is invalid? This looks to me like we 
-simply got sloppy in our specification.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2259"></a>2259. Issues in 17.6.5.5 rules for member functions</h3>
-<p><b>Section:</b> 17.6.5.5 [member.functions] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2013-05-12 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#member.functions">issues</a> in [member.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.6.5.5 [member.functions] p2 says:
-</p>
-
-<blockquote><p>
-&quot;An implementation may declare additional non-virtual member function signatures within a class:
-</p>
-<ul>
-<p>by adding arguments with default values to a member function signature; [Footnote: Hence, the address of a member 
-function of a class in the C++ standard library has an unspecified type.] [<i>Note</i>: An implementation
-may not add arguments with default values to virtual, global, or non-member functions. &mdash; <i>end note</i>]</p>
-<p>by replacing a member function signature with default values by two or more member function signatures
-with equivalent behavior; and</p>
-<p>by adding a member function signature for a member function name.&quot;</p>
-</ul>
-</blockquote>
-
-<ol>
-<li>
-<p>
-This wording is not using the correct terminology. "by adding arguments with default values" presumably means 
-"by adding parameters with default arguments", and likewise throughout.
-</p>
-</li>
-<li>
-<p>
-This paragraph only allows an implementation to declare "additional" signatures, but the first bullet is talking 
-about replacing a standard signature with one with additional parameters.
-</p>
-</li>
-<li>
-<p>
-None of these bullets allows a member function with no <i>ref</i>-qualifier to be replaced by signatures with <i>ref</i>-qualifiers 
-(a situation which was just discussed on std-proposals), and likewise for <i>cv</i>-qualifiers. Presumably that is 
-not intentional, and such changes should be permissible.
-</p>
-</li>
-</ol>
-
-<p>
-I think the first two items are probably editorial, since the intent is clear.
-</p>
-
-<p><i>[2013-12-11 Richard provides concrete wording]</i></p>
-
-<p>
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-JW: I don't like that this loses the footnote about the address of member functions having an unspecified type, 
-the footnote is good to be able to point to as an explicit clarification of one consequence of the normative wording.<br/>
-MC: so we want to keep the footnote<br/>
-STL: doesn't need to be a footnote, can be an inline Note<br/>
-JW: does this have any impact on our ability to add totally different functions with unrelated names, not described in 
-the standard?<br/>
-MC: no, the old wording didn't refer to such functions anyway<br/>
-Move to Ready and include in motion on Friday?<br/>
-9 in favor, 0 opposed, 2 abstention 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Merge 17.6.5.5 [member.functions]p2+3 as indicated:</p>
-
-<blockquote>
-<p>
--2- <del>An implementation may declare additional non-virtual member function signatures within a class:</del>
-</p>
-<ul>
-<li><p>
-<del>by adding arguments with default values to a member function signature;188 [<i>Note:</i> An implementation
-may not add arguments with default values to virtual, global, or non-member functions. &mdash; <i>end note</i>]</del>
-</p></li>
-<li><p>
-<del>by replacing a member function signature with default values by two or more member function signatures
-with equivalent behavior; and</del>
-</p></li>
-<li><p>
-<del>by adding a member function signature for a member function name.</del>
-</p></li>
-</ul>
-<p>
-<del>-3- A call to a member function signature described in the C++ standard library behaves as if the implementation
-declares no additional member function signatures.[Footnote: A valid C++ program always calls the expected library 
-member function, or one with equivalent behavior. An implementation may also define additional member functions 
-that would otherwise not be called by a valid C++ program.]</del> <ins>For a non-virtual member function described 
-in the C++ standard library, an implementation may declare a different set of member function signatures, provided 
-that any call to the member function that would select an overload from the set of declarations described in this 
-standard behaves as if that overload were selected. [<i>Note:</i> For instance, an implementation may add parameters 
-with default values, or replace a member function with default arguments with two or more member functions with 
-equivalent behavior, or add additional signatures for a member function name. &mdash; <i>end note</i>]</ins>
-</p>
-
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2260"></a>2260. Missing requirement for <tt>Allocator::pointer</tt></h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-05-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For an allocator <tt>A&lt;T&gt;</tt> which defines <tt>A&lt;T&gt;::pointer</tt> to a class type,
-i.e. not <tt>T*</tt>, I see no requirement that <tt>A&lt;T&gt;::pointer</tt> is convertible to
-<tt>A&lt;U&gt;::pointer</tt>, even if <tt>T*</tt> is convertible to <tt>U*</tt>.  Such conversions are
-needed in containers to convert from e.g. <tt>ListNodeBase*</tt> to <tt>ListNode&lt;T&gt;*</tt>.
-</p>
-
-<p>The obvious way to do such conversions appears to be
-<tt>pointer_traits::pointer_to()</tt>, but that's ill-formed if the static
-member function <tt>A&lt;T&gt;::pointer::pointer_to()</tt> doesn't exist and the
-allocator requirements don't mention that function, so you need to
-cast <tt>A&lt;T&gt;::pointer</tt> to <tt>A&lt;T&gt;::void_pointer</tt> then cast that to
-<tt>A&lt;U&gt;::pointer</tt>.
-</p>
-
-<p>
-Is converting via <tt>void_pointer</tt> really intended, or are we missing a requirement that 
-<tt>pointer_traits&lt;A&lt;T&gt;::pointer&gt;::pointer_to()</tt> be well-formed?
-</p>
-
-<p>Proposed resolution:</p>
-
-<p>Add to the Allocator requirements table the following requirement:</p>
-
-<blockquote>
-<p>
-The expression <tt>pointer_traits&lt;XX::pointer&gt;::pointer_to(r)</tt> is well-defined.
-</p>
-</blockquote>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Pablo to come back with Proposed Wording
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>
-Edit Table 28 as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Default</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>static_cast&lt;X::const_pointer&gt;(z)</tt>
-</td>
-<td>
-<tt>X::const_pointer</tt>
-</td>
-<td>
-<tt>static_cast&lt;X::const_pointer&gt;(z) == q</tt>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>pointer_traits&lt;X::pointer&gt;::pointer_to(r)</tt></ins>
-</td>
-<td>
-<ins><tt>X::pointer</tt></ins>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2261"></a>2261. Are containers required to use their '<tt>pointer</tt>' type internally?</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-05-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Is a container <tt>C</tt> only supposed to refer to allocated memory (blocks of
-contiguous storage, nodes, etc.) through objects of type <tt>C::pointer</tt>
-rather than <tt>C::value_type*</tt>?
-</p>
-
-<p>
-I don't see anything explicitly requiring this, so a container could
-immediately convert the result of <tt>get_allocator().allocate(1)</tt> to a
-built-in pointer of type <tt>value_type*</tt> and only deal with the built-in
-pointer until it needs to deallocate it again, but that removes most
-of the benefit of allowing allocators to use custom pointer types.
-</p>
-
-<p><i>[2014-06-12, Jonathan comments]</i></p>
-
-<p>
-This issue is basically the same issue as LWG <a href="lwg-active.html#1521">1521</a>, which agrees it's an issue, 
-to be dealt with in the future, so I request that <a href="lwg-active.html#2261">2261</a> not be closed as a dup 
-unless we reopen <a href="lwg-active.html#1521">1521</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2262"></a>2262. Requirement for <tt>unique_ptr&lt;T&gt;::get_deleter()(p)</tt> to be able to destroy the <tt>unique_ptr</tt></h3>
-<p><b>Section:</b> 20.8.1.2 [unique.ptr.single] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Rob Desbois <b>Opened:</b> 2013-05-15 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N3337 20.8.1.2.5 [unique.ptr.single.modifiers] contains 2 non-normative notes stating:
-</p>
-
-<blockquote>
-<p>
-[para 4]: &quot;The order of these operations is significant because the call to <tt>get_deleter()</tt> 
-may destroy <tt>*this</tt>.&quot;
-</p>
-<p>
-[para 5]: &quot;The postcondition does not hold if the call to <tt>get_deleter()</tt> destroys <tt>*this</tt> since 
-<tt>this->get()</tt> is no longer a valid expression.&quot;
-</p>
-</blockquote>
-
-<p>
-It seems this wording was created to resolve <a href="lwg-defects.html#998">998</a> due to the possibility that a <tt>unique_ptr</tt> may be 
-destroyed through deletion of its stored pointer where that directly or indirectly refers to the same <tt>unique_ptr</tt>. 
-If <tt>unique_ptr</tt> is required to support circular references then it seems this must be normative text: an implementation 
-is currently allowed to operate on <tt>*this</tt> after the assignment and deletion specified in para 4, since this is only 
-'disallowed' by the non-normative note.
-</p>
-
-<p>I propose the following draft rewording:</p>
-
-<p>
-[para 4]: <i>Effects</i>: assigns <tt>p</tt> to the stored pointer, and then if the old value of the stored pointer, <tt>old_p</tt>, was not
-equal to <tt>nullptr</tt>, calls <tt>get_deleter()(old_p)</tt>. <ins>No operation shall be performed after the call to 
-<tt>get_deleter()(old_p)</tt> that requires <tt>*this</tt> to be valid, because the deletion may destroy <tt>*this</tt> if it is 
-referred to directly or indirectly by the stored pointer.</ins> <del>[<i>Note:</i> The order of these operations is significant
-because the call to <tt>get_deleter()</tt> may destroy <tt>*this</tt>. &mdash; <i>end note</i>]</del>
-<p/>
-[para 5]: <i>Postconditions</i>: <ins>If the call <tt>get_deleter()(old_p)</tt> destroyed <tt>*this</tt>, none. Otherwise,</ins> 
-<tt>get() == p</tt>. <del>[<i>Note:</i> The postcondition does not hold if the call to <tt>get_deleter()</tt>
-destroys <tt>*this</tt> since <tt>this->get()</tt> is no longer a valid expression. &mdash; <i>end note</i>]</del>
-</p>
-
-<p>
-I expect it will also be necessary to amend the requirements for a deleter, so in addition:
-</p>
-
-<p>
-20.8.1.2 [unique.ptr.single] [para 1]: The default type for the template parameter <tt>D</tt> is <tt>default_delete</tt>. 
-A client-supplied template argument <tt>D</tt> shall be a function object type (20.10), lvalue-reference to function, or 
-lvalue-reference to function object type for which, given a value <tt>d</tt> of type <tt>D</tt> and a value <tt>ptr</tt> of type 
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt>, the expression <tt>d(ptr)</tt> is valid and has the effect of disposing of the pointer 
-as appropriate for that deleter. <ins>Where <tt>D</tt> is not an lvalue reference type, <tt>d(ptr)</tt> shall be valid if <tt>ptr</tt> 
-refers directly or indirectly to the invoking <tt>unique_ptr</tt> object.</ins>
-</p>
-
-<p><i>[2013-10-05, Stephan T. Lavavej comments and provides alternative wording]</i></p>
-
-<p>
-In Chicago, we determined that the original proposed change to 20.8.1.2 [unique.ptr.single]/1 was insufficient, because 
-<tt>d</tt> might be a reference to a deleter functor that's destroyed during self-destruction.
-<p/>
-We believed that 20.8.1.2.5 [unique.ptr.single.modifiers]/4 was already sufficiently clear. The Standard occasionally prevents 
-implementations of <tt>X</tt> from doing various things, through the principle of "nothing allows <tt>X</tt> to fail in that situation".  
-For example, <tt>v.push_back(v[0])</tt> is required to work for non-empty vectors because nothing allows that to fail. In this case, 
-the intent to allow self-destruction is already clear.
-<p/>
-Additionally, we did not believe that 20.8.1.2.5 [unique.ptr.single.modifiers]/5 had to be changed. The current note is slightly 
-squirrely but it does not lead to confusion for implementers or users.
-</p>
-
-<p>
-Previous resolution from Rob Desbois:
-</p>
-<blockquote class="note">
-<ol>
-<li>
-<p>
-Edit 20.8.1.2 [unique.ptr.single] p1 as indicated:
-</p>
-<blockquote><p>
-The default type for the template parameter <tt>D</tt> is <tt>default_delete</tt>. 
-A client-supplied template argument <tt>D</tt> shall be a function object type (20.10), lvalue-reference to function, or 
-lvalue-reference to function object type for which, given a value <tt>d</tt> of type <tt>D</tt> and a value <tt>ptr</tt> of type 
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt>, the expression <tt>d(ptr)</tt> is valid and has the effect of disposing of the pointer 
-as appropriate for that deleter. <ins>Where <tt>D</tt> is not an lvalue reference type, <tt>d(ptr)</tt> shall be valid if <tt>ptr</tt> 
-refers directly or indirectly to the invoking <tt>unique_ptr</tt> object.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Edit 20.8.1.2.5 [unique.ptr.single.modifiers] p4+5 as indicated:
-</p>
-<blockquote><pre>
-void reset(pointer p = pointer()) noexcept;
-</pre><blockquote>
-<p>
--3- <i>Requires:</i> The expression <tt>get_deleter()(get())</tt> shall be well formed, shall have well-defined behavior,
-and shall not throw exceptions.
-<p/>
--4- <i>Effects:</i> assigns <tt>p</tt> to the stored pointer, and then if the old value of the stored pointer, <tt>old_p</tt>, was not
-equal to <tt>nullptr</tt>, calls <tt>get_deleter()(old_p)</tt>. <ins>No operation shall be performed after the call to 
-<tt>get_deleter()(old_p)</tt> that requires <tt>*this</tt> to be valid, because the deletion may destroy <tt>*this</tt> if it is 
-referred to directly or indirectly by the stored pointer.</ins> <del>[<i>Note:</i> The order of these operations is significant
-because the call to <tt>get_deleter()</tt> may destroy <tt>*this</tt>. &mdash; <i>end note</i>]</del>
-<p/>
--5- <i>Postconditions:</i> <ins>If the call <tt>get_deleter()(old_p)</tt> destroyed <tt>*this</tt>, none. Otherwise,</ins> 
-<tt>get() == p</tt>. <del>[<i>Note:</i> The postcondition does not hold if the call to <tt>get_deleter()</tt>
-destroys <tt>*this</tt> since <tt>this->get()</tt> is no longer a valid expression. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li>
-<p>
-Edit 20.8.1.2 [unique.ptr.single] p1 as indicated:
-</p>
-<blockquote><p>
-The default type for the template parameter <tt>D</tt> is <tt>default_delete</tt>. 
-A client-supplied template argument <tt>D</tt> shall be a function object type (20.10), lvalue-reference to function, or 
-lvalue-reference to function object type for which, given a value <tt>d</tt> of type <tt>D</tt> and a value <tt>ptr</tt> of type 
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt>, the expression <tt>d(ptr)</tt> is valid and has the effect of disposing of the pointer 
-as appropriate for that deleter. <ins><tt>d(ptr)</tt> shall be valid even if it triggers the destruction of <tt>d</tt> or (if 
-<tt>D</tt> is an lvalue reference to function object type) the function object that <tt>d</tt> refers to.</ins>
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-After some discussion in Lenexa there was some wavering on if the added sentence is necessary. Here is example code that 
-demonstrates why the extra sentence is necessary. In this example the call to <tt>d(ptr)</tt> is valid, however the deleter 
-references <tt>*this</tt> after destructing its element:
-</p>
-<blockquote><pre>
-#include &lt;cassert&gt;
-#include &lt;memory&gt;
-#include &lt;iostream&gt;
-
-class Deleter
-{
-    int state_ = 0;
-
-    enum
-    {
-        destructed            = -4,
-        self_move_assigned    = -3,
-        move_assigned_from    = -2,
-        move_constructed_from = -1
-    };
-public:
-    ~Deleter() {state_ = destructed;}
-
-    Deleter() = default;
-    Deleter(Deleter const&amp;) = default;
-    Deleter&amp; operator=(Deleter const&amp;) = default;
-
-    Deleter(Deleter&amp;&amp; a) noexcept
-        : state_(a.state_)
-    {a.state_ = move_constructed_from;}
-
-    Deleter&amp; operator=(Deleter&amp;&amp; a) noexcept
-    {
-        if (this == &amp;a)
-            state_ = self_move_assigned;
-        else
-        {
-            state_ = a.state_;
-            a.state_ = move_assigned_from;
-        }
-        return *this;
-    }
-
-    Deleter(int state)
-        : state_(state)
-    {
-        assert(state &gt;= 0);
-    }
-
-    template &lt;class T&gt;
-    void
-    operator()(T* t) const
-    {
-        std::cout &lt;&lt; "Deleter beginning operator()(T*)\n";
-        std::cout &lt;&lt; "The deleter = " &lt;&lt; *this &lt;&lt; '\n';
-        std::cout &lt;&lt; "Deleter about to destruct the X.\n";
-        delete t;
-        std::cout &lt;&lt; "Deleter has destructed the X.\n";
-        std::cout &lt;&lt; "The deleter = " &lt;&lt; *this &lt;&lt; '\n';
-        std::cout &lt;&lt; "Deleter ending operator()(T*)\n";
-    }
-
-    friend
-    std::ostream&amp;
-    operator&lt;&lt;(std::ostream&amp; os, const Deleter&amp; a)
-    {
-        switch (a.state_)
-        {
-        case destructed:
-            os &lt;&lt; "**destructed**";
-            break;
-        case self_move_assigned:
-            os &lt;&lt; "self_move_assigned";
-            break;
-        case move_assigned_from:
-            os &lt;&lt; "move_assigned_from";
-            break;
-        case move_constructed_from:
-            os &lt;&lt; "move_constructed_from";
-            break;
-        default:
-            os &lt;&lt; a.state_;
-            break;
-        }
-        return os;
-    }
-};
-
-struct X
-{
-    Deleter deleter_{1};
-};
-
-int main()
-{
-    auto xp = new X;
-    {
-        std::unique_ptr&lt;X, Deleter&amp;&gt; p(xp, xp-&gt;deleter_);
-        std::cout &lt;&lt; "unique_ptr is constructed.\n";
-        std::cout &lt;&lt; "The deleter = " &lt;&lt; p.get_deleter() &lt;&lt; '\n';
-        std::cout &lt;&lt; "Destructing unique_ptr...\n";
-    }
-    std::cout &lt;&lt; "unique_ptr is destructed.\n";
-}
-</pre></blockquote>
-<p>
-Which outputs:
-</p>
-<blockquote>
-<pre>
-unique_ptr is constructed.
-The deleter = 1
-Destructing unique_ptr...
-Deleter beginning operator()(T*)
-The deleter = 1
-Deleter about to destruct the X.
-Deleter has destructed the X.
-The deleter = **destructed**
-Deleter ending operator()(T*)
-unique_ptr is destructed.
-</pre>
-</blockquote>
-<p>
-The line "<tt>The deleter = **destructed**</tt>" represents the deleter referencing itself after it has been destructed by the 
-<tt>d(ptr)</tt> expression, but prior to that call returning.
-<p/>
-Suggested alternative to the current proposed wording:
-</p>
-<blockquote>
-<p>
-The expression <tt>d(ptr)</tt> shall not refer to the object <tt>d</tt> after it executes <tt>ptr-&gt;~T()</tt>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li>
-<p>
-Edit 20.8.1.2 [unique.ptr.single] p1 as indicated:
-</p>
-<blockquote><p>
-The default type for the template parameter <tt>D</tt> is <tt>default_delete</tt>. 
-A client-supplied template argument <tt>D</tt> shall be a function object type (20.9), lvalue-reference to function, or 
-lvalue-reference to function object type for which, given a value <tt>d</tt> of type <tt>D</tt> and a value <tt>ptr</tt> of type 
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt>, the expression <tt>d(ptr)</tt> is valid and has the effect of disposing of the pointer 
-as appropriate for that deleter. <ins>The expression <tt>d(ptr)</tt> shall not refer to the object <tt>d</tt> after it executes 
-<tt>ptr-&gt;~T()</tt>.</ins>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2264"></a>2264. [arrays.ts] <tt>std::dynarray</tt> defines its initializer-list constructor in terms of a non-existent constructor</h3>
-<p><b>Section:</b> X [dynarray], 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Povilas Kanapickas <b>Opened:</b> 2013-05-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: arrays.ts</b></p>
-
-<p>
-<tt>std::dynarray</tt> member listing at X [dynarray.overview] includes this constructor:
-</p>
-
-<blockquote><pre>
-dynarray(initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-<p>
-Also, X [dynarray.overview] p. 2 says:
-</p>
-
-<blockquote><p>
-Unless otherwise specified, all <tt>dynarray</tt> operations have the same requirements and semantics as specified in 23.2.
-</p></blockquote>
-
-<p>
-The constructor in question isn't mentioned in X [dynarray.cons] or anywhere else. This means requirements from 
-23.2 [container.requirements] apply. However, Table 100 in 23.2.3 [sequence.reqmts] says:
-</p>
-
-<blockquote><p>
-<tt>X(il)</tt> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Equivalent to <tt>X(il.begin(), il.end())</tt>      
-</p></blockquote>
-
-<p>
-<tt>std::dynarray</tt> does not provide this constructor.
-</p>
-
-<p>
-The proposed resolution below adds the missing constructor and a complementary constructor with an allocator parameter. 
-The new constructors, differently from the rest of containers, accept iterators that have forward iterator category. This 
-is needed because the size requirements must be known in order to allocate appropriately-sized storage.
-<p/>
-An alternative resolution could be to properly specify the initializer-list constructor.
-</p>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred. This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as arrays-ts.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Add the following to the <tt>std::dynarray</tt> synopsis at X [dynarray.overview]:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt;
-  class dynarray {
-    [&hellip;]
-    <i>// 23.3.4.2 construct/copy/destroy:</i>
-    [&hellip;]
-    <ins>template &lt;class ForwardIterator&gt;</ins>
-    <ins>dynarray(ForwardIterator first, ForwardIterator last);</ins>
-    <ins>template &lt;class ForwardIterator, class Alloc&gt;</ins>
-    <ins>dynarray(ForwardIterator first, ForwardIterator last, const Alloc&amp; alloc);</ins>
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Add the following to X [dynarray.cons] after p. 8:</p>
-
-<blockquote><pre>
-<ins>template &lt;class ForwardIterator&gt;
-dynarray(ForwardIterator first, ForwardIterator last);</ins>
-</pre><blockquote>
-<p>
-<ins>-?-  <i>Requires:</i> <tt>T</tt> shall meet the <tt>CopyConstructible</tt> requirements.</ins>
-<p/>
-<ins>-?-  <i>Effects:</i> Allocates storage for <tt>distance(first, last)</tt> elements.
-The <tt>distance(first, last)</tt> elements of the dynarray are direct-initialized (8.5 [dcl.init]) with the 
-corresponding elements from the range <tt>[first,last)</tt>. May or may not invoke the global <tt>operator new</tt>.</ins>
-<p/>
-<ins>-?-  <i>Complexity:</i> <tt>distance(first, last)</tt>.</ins>
-<p/>
-<ins>-?-  <i>Throws:</i> <tt>std::bad_array_length</tt> when the size requested is larger than implementable, <tt>std::bad_alloc</tt> 
-when there is insufficient memory.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Add the following to the list of constructors at X [dynarray.cons] before p. 9:</p>
-</li>
-
-<blockquote><pre>
-template &lt;class Alloc&gt;
-dynarray(size_type c, const Alloc&amp; alloc);
-template &lt;class Alloc&gt;
-dynarray(size_type c, const T&amp; v, const Alloc&amp; alloc);
-template &lt;class Alloc&gt;
-dynarray(const dynarray&amp; d, const Alloc&amp; alloc);
-template &lt;class Alloc&gt;
-dynarray(initializer_list&lt;T&gt;, const Alloc&amp; alloc);
-<ins>template &lt;class ForwardIterator, class Alloc&gt;
-dynarray(ForwardIterator first, ForwardIterator last, const Alloc&amp; alloc);</ins>
-</pre></blockquote>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2265"></a>2265. 29.3p9 appears to rule out some acceptable executions</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Brian Demsky <b>Opened:</b> 2013-06-17 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I believe that the following variation on IRIW should admit executions in
-which <tt>c1 = d1 = 5</tt> and <tt>c2 = d2 = 0</tt>.  If this is allowed, then what is sequence of
-program evaluations for 29.3 [atomics.order] p9 that justifies the store to <tt>z</tt>?  It seems that
-29.3 [atomics.order] p9 should not allow this execution because one of the stores to <tt>x</tt> or <tt>y</tt> has
-to appear earlier in the sequence, each of the <tt>fetch_adds</tt> reads the previous load in the thread (and thus must 
-appear later in the sequence), and 29.3 [atomics.order] p9 states that each load must read from the last prior 
-assignment in the sequence.
-</p>
-
-<blockquote><pre>
-atomic_int x;
-atomic_int y;
-atomic_int z;
-int c1, c2, d1, d2;
-
-static void a(void* obj)
-{
-  atomic_store_explicit(&amp;x, 5, memory_order_relaxed); 
-}
-
-static void b(void* obj)
-{
-  atomic_store_explicit(&amp;y, 5, memory_order_relaxed); 
-}
-
-static void c(void* obj)
-{
-  c1 = atomic_load_explicit(&amp;x, memory_order_relaxed);
-  // this could also be an atomic load if the address depends on c1:
-  c2 = atomic_fetch_add_explicit(&amp;y, c1, memory_order_relaxed);  
-}
-
-static void d(void* obj)
-{
-  d1 = atomic_load_explicit(&amp;y, memory_order_relaxed);
-  d2 = atomic_fetch_add_explicit(&amp;x, d1, memory_order_relaxed); 
-}
-
-int user_main(int argc, char** argv)
-{
-  thrd_t t1, t2, t3, t4;
-
-  atomic_init(&amp;x, 0);
-  atomic_init(&amp;y, 0);
-
-  printf("Main thread: creating 4 threads\n");
-  thrd_create(&amp;t1, (thrd_start_t)&amp;a, NULL);
-  thrd_create(&amp;t2, (thrd_start_t)&amp;b, NULL);
-  thrd_create(&amp;t3, (thrd_start_t)&amp;c, NULL);
-  thrd_create(&amp;t4, (thrd_start_t)&amp;d, NULL);
-
-  thrd_join(t1);
-  thrd_join(t2);
-  thrd_join(t3);
-  thrd_join(t4);
-  printf("c1=%d c2=%d\n",c1,c2);
-  printf("d1=%d d2=%d\n",d1,d2);
-
-  // Can this store write 1000 (i.e., c1=d1=5, c2=d2=0)?
-  atomic_store(&amp;z, (c1+d1)*100+c2+d2);
-
-  printf("Main thread is finished\n");
-
-  return 0;
-}
-</pre></blockquote>
-
-<p>
-It seems that the easiest fix is to allow a load in 29.3 [atomics.order] p9 to read from any prior
-store in the evaluation order.
-<p/>
-That said, I would personally advocate the following:
-It seems to me that C/C++ atomics are in a bit of different situation than Java
-because:
-</p>
-<ol>
-<li><p>People are expected to use relaxed C++ atomics in potentially racy
-situations, so it isn't clear that semantics as complicated as the JMM's
-causality would be sane.
-</p></li>
-<li><p>People who use C/C++ atomics are likely to be experts and use them in a
-very controlled fashion. I would be really surprised if compilers would find
-any real wins by optimizing the use of atomics.
-</p></li>
-</ol>
-<p>
-Why not do something like:
-<p/>
-There is satisfaction DAG of all program evaluations. Each evaluation
-observes the values of variables as computed by some prior assignment in
-the DAG.
-<p/>
-There is an edge <tt>x-&gt;y</tt> between two evaluations <tt>x</tt> and <tt>y</tt> if:
-</p>
-<ol>
-<li><p>the evaluation <tt>y</tt> observes a value computed by the evaluation <tt>x</tt> or
-</p></li>
-<li><p>the evaluation <tt>y</tt> is an atomic store, the evaluation <tt>x</tt> is an atomic load, and
-there is a condition branch c that may depend (intrathread dependence) on <tt>x</tt>
-and <tt>x-sb-&gt;c</tt> and <tt>c-sb-&gt;y</tt>.
-</p></li>
-</ol>
-<p>
-This seems to allow reordering of relaxed atomics that processors do without
-extra fence instructions, allows most reorderings by the compiler, and gets
-rid of satisfaction cycles.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-This was partially addressed (weasel-worded) in C++14 (See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3786.htm">N3786</a>).
-The remainder is an open research problem.  <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3710.html">N3710</a> outlines a "solution" that doesn't have a consensus behind it because it costs performance.  We have no better solution at the moment.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2267"></a>2267. <tt>partial_sort_copy</tt> underspecified for ranges of two different types</h3>
-<p><b>Section:</b> 25.4.1.4 [partial.sort.copy] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Matt Austern  <b>Opened:</b> 2013-06-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The signature of this function is:
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator, class RandomAccessIterator&gt;
-RandomAccessIterator
-partial_sort_copy(InputIterator first, InputIterator last,
-                  RandomAccessIterator result_first,
-                  RandomAccessIterator result_last);
-
-</pre></blockquote>
-
-<p>
-(and the usual overload for an explicitly provided comparison function). The standard says nothing about requirements 
-in the case where the input type (<tt>iterator_traits&lt;InputIterator&gt;::value_type</tt>) and the output type 
-(<tt>iterator_traits&lt;RandomAccessIterator&gt;::value_type</tt>) are different.
-<p/>
-Presumably the input type must be convertible to the output type. What's less clear is what the requirements are on 
-the comparison operator. Does the algorithm only perform comparisons on two values of the output type, or does it also 
-perform comparisons on values of the input type, or might it even perform heterogeneous comparisons?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2269"></a>2269. Container iterators and argument-dependent lookup</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2013-06-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following code snippet:
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt;
-#include &lt;algorithm&gt;
-
-int main() {
-  std::vector&lt;int&gt; v1(100, 3);
-  std::vector&lt;int&gt; v2(100);
-  copy(v1.begin(), v1.end(), v2.begin());
-}
-</pre></blockquote>
-
-<p>
-It compiles without error on my desktop. Is it required to? I can't find evidence from the standard that it is. 
-In my test <tt>std::copy</tt> was found by argument-dependent lookup because the implementation I used made 
-<tt>std::vector&lt;int&gt;::iterator</tt> a user-defined type defined in namespace <tt>std</tt>. But the standard 
-only requires <tt>std::vector&lt;int&gt;::iterator</tt> to be an implementation specified random access iterator 
-type. I can't find anything requiring it to be a user-defined type at all (and in fact there are reasonable implementation 
-where it isn't), let alone a user defined type defined in a specific namespace.
-</p>
-
-<p>
-Since the defining namespace of container iterators is visible to users, should the standard say anything about what 
-that namespace is?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2273"></a>2273. <tt>regex_match</tt> ambiguity</h3>
-<p><b>Section:</b> 28.11.2 [re.alg.match] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.alg.match">issues</a> in [re.alg.match].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.11.2 [re.alg.match] p2 in describing regex_match says:
-</p>
-<blockquote>
-<p>
--2-  <i>Effects:</i> Determines whether there is a match between the regular expression <tt>e</tt>, and all of 
-the character sequence <tt>[first,last)</tt>. The parameter <tt>flags</tt> is used to control how the expression 
-is matched against the character sequence. Returns true if such a match exists, false otherwise.
-</p>
-</blockquote>
-
-<p>
-It has come to my attention that different people are interpreting the first sentence of p2 in different ways:
-</p>
-
-<ol>
-<li><p>
-If a search of the input string using the regular expression <tt>e</tt> matches the entire input string, 
-<tt>regex_match</tt> should return true.
-</p></li>
-<li><p>
-Search the input string using the regular expression <tt>e</tt>. Reject all matches that do not match the 
-entire input string. If a such a match is found, return true.
-</p></li>
-</ol>
-
-<p>
-The difference between these two subtly different interpretations is found using the following ECMAScript example:
-</p>
-
-<blockquote><pre>
-std::regex re("Get|GetValue");
-</pre></blockquote>
-
-<p>
-Using <tt>regex_search</tt>, this <tt>re</tt> can never match the input string <tt>"GetValue"</tt>, because ECMA 
-specifies that alternations are ordered, not greedy. As soon as <tt>"Get"</tt> is matched in the left alternation, 
-the matching algorithm stops.
-<p/>
-Using definition 1, <tt>regex_match</tt> would return false for an input string of <tt>"GetValue"</tt>.
-<p/>
-However definition 2 alters the grammar and appears equivalent to augmenting the regex with a trailing <tt>'$'</tt>, 
-which is an anchor that specifies, reject any matches which do not come at the end of the input sequence.
-So, using definition 2, <tt>regex_match</tt> would return true for an input string of <tt>"GetValue"</tt>.
-<p/>
-My opinion is that it would be strange to have <tt>regex_match</tt> return true for a <tt>string/regex</tt> 
-pair that <tt>regex_search</tt> could never find. I.e. I favor definition 1.
-<p/>
-John Maddock writes:
-<p/>
-The intention was always that <tt>regex_match</tt> would reject any match candidate which didn't match the entire 
-input string. So it would find <tt>GetValue</tt> in this case because the <tt>"Get"</tt> alternative had already 
-been rejected as not matching. Note that the comparison with ECMA script is somewhat moot, as ECMAScript defines 
-the regex grammar (the bit we've imported), it does not define anything like <tt>regex_match</tt>, nor do we import 
-from ECMAScript the behaviour of that function. So IMO the function should behave consistently regardless of the 
-regex dialect chosen. Saying "use awk regexes" doesn't cut it, because that changes the grammar in other ways.
-<p/>
-(John favors definition 2).
-<p/>
-We need to clarify 28.11.2 [re.alg.match]/p2 in one of these two directions.
-</p>
-
-<p><i>[2014-06-21, Rapperswil]</i></p>
-
-<p>
-AM: I think there's a clear direction and consensus we agree with John Maddock's position, and if noone else 
-thinks we need the other function I won't ask for it.
-<p/>
-Marshall Clow and STL to draft.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2276"></a>2276. Missing requirement on <tt>std::promise::set_exception</tt></h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-07-30 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard does not specify the behaviour of this program:
-</p>
-
-<blockquote><pre>
-#include &lt;future&gt;
-#include &lt;cassert&gt;
-
-struct NonTrivial
-{
-  NonTrivial() : init(true) { }
-  ~NonTrivial() { assert(init); }
-  bool init;
-};
-
-int main()
-{
-  std::promise&lt;NonTrivial&gt; p;
-  auto f = p.get_future();
-  p.set_exception(std::exception_ptr());
-  f.get();
-}
-</pre></blockquote>
-
-<p>
-The standard doesn't forbid making the state ready with a null
-<tt>exception_ptr</tt>, so what should <tt>get()</tt> return?  There's no stored
-exception to throw, but it can't return a value because none was initialized.
-<p/>
-A careful reading of the standard shows 30.6.4 [futures.state] p8 says
-"A shared state is <em>ready</em> only if it holds a value or an exception
-ready for retrieval." One can infer from the fact that <tt>set_exception()</tt>
-makes the state ready that it must store a value or exception, so
-cannot store "nothing", but that isn't explicit.
-<p/>
-The <tt>promise::set_exception()</tt> and <tt>promise::set_exception_at_thread_exit()</tt> 
-members should require <tt>p != nullptr</tt> or should state the type of exception thrown 
-if <tt>p</tt> is null.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-SG1 provides P/R and requests move to SG1-OK status: Add Requires clauses for promise (30.6.5 [futures.promise]) set_exception (before p18) and set_exception_at_thread_exit (before p24): Requires: p is not null.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N4431.
-</p>
-Add Requires clauses for promise (30.6.5 [futures.promise]) <tt>set_exception</tt> (before p18) and 
-<tt>set_exception_at_thread_exit</tt> (before p24): <i>Requires</i>: <tt>p</tt> is not null.
-
-<ol>
-<li><p>Change 30.6.5 [futures.promise] as depicted:</p>
-
-<blockquote>
-<pre>
-void set_exception(exception_ptr p);
-</pre>
-<blockquote>
-<p>
-<ins>-??- <i>Requires:</i> <tt>p</tt> is not null. </ins>
-</p>
-<p>
--18- <i>Effects:</i> atomically stores the exception pointer <tt>p</tt> in the shared state and makes that state ready (30.6.4).
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-void set_exception_at_thread_exit(exception_ptr p);
-</pre>
-<blockquote>
-<p>
-<ins>-??- <i>Requires:</i> <tt>p</tt> is not null. </ins>
-</p>
-<p>
--24- <i>Effects:</i> Stores the exception pointer <tt>p</tt> in the shared state without making that state ready immediately. [&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li></ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2277"></a>2277. [arrays.ts] <tt>&lt;dynarray&gt;</tt> is missing in 24.7/1</h3>
-<p><b>Section:</b> 24.7 [iterator.range] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Cassio Neri <b>Opened:</b> 2013-07-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#iterator.range">active issues</a> in [iterator.range].</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.range">issues</a> in [iterator.range].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: arrays.ts</b></p>
-
-<p>
-Section 24.7 [iterator.range] p1 specifies header files that, in addition to
-<tt>&lt;iterator&gt;</tt>, make available the function templates in 24.7
-(<tt>begin</tt>, <tt>end</tt>, etc.) but it fails to mention
-<tt>&lt;dynarray&gt;</tt>. This seems to be just an oversight.
-</p>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred. This feature will ship after C++14 and should be revisited then. 
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as arrays-ts.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Modify 24.7 [iterator.range] p1 as indicated:</p>
-
-<blockquote><p>
--1- In addition to being available via inclusion of the <tt>&lt;iterator&gt;</tt> header, the function templates in 24.7 are
-available when any of the following headers are included: <tt>&lt;array&gt;</tt>, <tt>&lt;deque&gt;</tt>, 
-<ins><tt>&lt;dynarray&gt;</tt>,</ins>
-<tt>&lt;forward_list&gt;</tt>, <tt>&lt;list&gt;</tt>, <tt>&lt;map&gt;</tt>, <tt>&lt;regex&gt;</tt>, 
-<tt>&lt;set&gt;</tt>, <tt>&lt;string&gt;</tt>, <tt>&lt;unordered_map&gt;</tt>, <tt>&lt;unordered_set&gt;</tt>, 
-and <tt>&lt;vector&gt;</tt>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2286"></a>2286. <tt>stringbuf::underflow()</tt> underspecified</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Sergey Zubkov <b>Opened:</b> 2013-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 27.8.2.4 [stringbuf.virtuals]/1, <tt>basic_stringbuf::underflow()</tt> is specified to unconditionally 
-return <tt>traits::eof()</tt> when a read position is not available.
-<p/>
-The semantics of <tt>basic_stringbuf</tt> require, and existing libraries implement it so that this function makes 
-a read position available if possible to do so, e.g. if some characters were inserted into the stream since the 
-last call to <tt>overflow()</tt>, resulting in <tt>pptr() &gt; egptr()</tt>. Compare to the conceptually similar 
-D.7.1.3 [depr.strstreambuf.virtuals]/15.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-
-<li><p>Change 27.8.2.4 [stringbuf.virtuals] as indicated:</p>
-
-<blockquote>
-<pre>
-int_type underflow();
-</pre><blockquote>
-<p>
--1- <i>Returns:</i> If the input sequence has a read position available <ins>or the function makes a read position available 
-(as described below)</ins>, returns <tt>traits::to_int_type(*gptr())</tt>. Otherwise, returns <tt>traits::eof()</tt>. Any 
-character in the underlying buffer which has been initialized is considered to be part of the input sequence.
-<p/>
-<ins>-?- The function can make a read position available only if <tt>(mode &amp; ios_base::in) != 0</tt> and if the write 
-next pointer <tt>pptr()</tt> is not null and is greater than the current read end pointer <tt>egptr()</tt>. To make a read 
-position available, the function alters the read end pointer <tt>egptr()</tt> to equal <tt>pptr()</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2289"></a>2289. <tt>constexpr</tt> guarantees of defaulted functions still insufficient</h3>
-<p><b>Section:</b> 20.3.2 [pairs.pair], 20.4.2.1 [tuple.cnstr], 20.12.5 [time.duration] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-09 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs.pair">issues</a> in [pairs.pair].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the acceptance of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3471.html">N3471</a> and
-some similar <tt>constexpr</tt> papers, specific wording was added to <tt>pair</tt>, <tt>tuple</tt>, and other templates
-that were intended to impose implementation constraints that ensure that the observable <tt>constexpr</tt> "character"
-of a defaulted function template is solely determined by the required expressions of the user-provided types when instantiated,
-for example:
-</p>
-
-<blockquote><p>
-The defaulted move and copy constructor, respectively, of pair shall be a <tt>constexpr</tt> function if and only if
-all required element-wise initializations for copy and move, respectively, would satisfy the requirements for
-a <tt>constexpr</tt> function.
-</p></blockquote>
-
-<p>
-This wording doesn't require enough, especially since the core language via CWG 1358 does now support <tt>constexpr</tt>
-function template instantiations, even if such function cannot appear in a constant expression (as specified in 5.20 [expr.const]) 
-or as a constant initializer of that object (as specified in 3.6.2 [basic.start.init]). The wording should be 
-improved and should require valid uses in constant expressions and as constant initializers instead.
-</p>
-
-<p><i>[Lenexa 2015-05-05]</i></p>
-
-<p>STL : notice order of move/copy and copy/move with "respectively".</p>
-<p>General word-smithing; ask for updated wording</p>
-<p>Are we happy with this with changes we are suggesting?</p>
-<p>unanimous</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 20.3.2 [pairs.pair] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- <del>The defaulted move and copy constructor, respectively, of pair shall be a <tt>constexpr</tt> function if and only if
-all required element-wise initializations for copy and move, respectively, would satisfy the requirements for
-a <tt>constexpr</tt> function</del><ins>An invocation of the move or copy constructor of <tt>pair</tt> shall be a constant expression 
-(5.20 [expr.const]) if all required element-wise initializations would be constant expressions. An invocation of the 
-move or copy constructor of <tt>pair</tt> shall be a constant initializer for that <tt>pair</tt> object (3.6.2 [basic.start.init])
-if all required element-wise initializations would be constant initializers for the respective subobjects</ins>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.1 [tuple.cnstr] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- <del>The defaulted move and copy constructor, respectively, of <tt>tuple</tt> shall be a <tt>constexpr</tt> function if 
-and only if all required element-wise initializations for copy and move, respectively, would satisfy the requirements for
-a <tt>constexpr</tt> function. The defaulted move and copy constructor of <tt>tuple&lt;&gt;</tt> shall be <tt>constexpr</tt> 
-functions</del><ins>An invocation of the move or copy constructor of <tt>tuple</tt> shall be a constant expression (5.20 [expr.const])
-if all required element-wise initializations would be constant expressions. An invocation of the move or copy constructor of 
-<tt>tuple</tt> shall be a constant initializer for that <tt>tuple</tt> object (3.6.2 [basic.start.init]) if all 
-required element-wise initializations would be constant initializers for the respective subobjects. An invocation of the 
-move or copy constructor of <tt>tuple&lt;&gt;</tt> shall be a constant expression, or a constant initializer for that 
-<tt>tuple&lt;&gt;</tt> object, respectively, if the function argument would be constant expression</ins>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 20.12.5 [time.duration] p7 as indicated:</p>
-
-<blockquote>
-<p>
--7- <i>Remarks:</i> <del>The defaulted copy constructor of duration shall be a <tt>constexpr</tt> function if and only if
-the required initialization of the member <tt>rep_</tt> for copy and move, respectively, would satisfy the
-requirements for a <tt>constexpr</tt> function.</del><ins>An invocation of the copy constructor of <tt>duration</tt> shall 
-be a constant expression (5.20 [expr.const]) if the required initialization of the member <tt>rep_</tt> would be a constant expression.
-An invocation of the copy constructor of <tt>duration</tt> shall be a constant initializer for that <tt>duration</tt> object 
-(3.6.2 [basic.start.init]) if the required initialization of the member <tt>rep_</tt> would be constant initializers 
-for this subobject</ins>.
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2290"></a>2290. Top-level "SFINAE"-based constraints should get a separate definition in Clause 17</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-02 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current library specification uses at several places wording that is intended to refer to
-core language template deduction failure at the top-level of expressions (aka "SFINAE"), for example:
-</p>
-
-<blockquote><p>
-The expression <tt>declval&lt;T&gt;() = declval&lt;U&gt;()</tt> is well-formed when treated as an unevaluated operand (Clause 5). 
-Access checking is performed as if in a context unrelated to <tt>T</tt> and <tt>U</tt>. Only the validity of the immediate context 
-of the assignment expression is considered. [<i>Note:</i> The compilation of the expression can result in side effects 
-such as the instantiation of class template specializations and function template specializations, the generation of
-implicitly-defined functions, and so on. Such side effects are not in the "immediate context" and can result in the program
-being ill-formed. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-Similar wording can be found in the specification of <tt>result_of</tt>, <tt>is_constructible</tt>, and <tt>is_convertible</tt>,
-being added to resolve an NB comment by LWG <a href="lwg-defects.html#1390">1390</a> and <a href="lwg-defects.html#1391">1391</a> through 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">N3142</a>.
-<p/>
-This wording is necessary to limit speculative compilations needed to implement these traits, but it is also lengthy and repetitive.
-</p>
-
-<p><i>[2014-05-19, Daniel suggests a descriptive term]</i></p>
-
-<p>
-<b>constrictedly well-formed expression</b>:
-<p/>
-An expression <em>e</em> depending on a set of types <tt>A1</tt>, ..., <tt>An</tt> which is well-formed when treated as 
-an unevaluated operand (Clause 5). Access checking is performed as if in a context unrelated to <tt>A1</tt>, ..., 
-<tt>An</tt>. Only the validity of the immediate context of <em>e</em> is considered. [<i>Note:</i> The compilation of 
-the expression can result in side effects such as the instantiation of class template specializations and function 
-template specializations, the generation of implicitly-defined functions, and so on. Such side effects are not in the 
-"immediate context" and can result in the program being ill-formed. &mdash; <i>end note</i>]
-</p>
-
-<p><i>[2014-05-20, Richard and Jonathan suggest better terms]</i></p>
-
-<p>
-Richard suggested "locally well-formed"
-<p/>
-Jonathan suggested "contextually well-formed" and then "The expression ... is valid in a contrived argument
-deduction context"
-</p>
-
-<p><i>[2014-06-07, Daniel comments and improves wording]</i></p>
-
-<p>
-The 2014-05-19 suggestion did only apply to expressions, but there are two important examples that are not expressions, but instead
-are involving an <em>object definition</em> (<tt>std::is_constructible</tt>) and a <em>function definition</em> 
-(<tt>std::is_convertible</tt>), respectively, instead. Therefore I suggest to rephrase the usage of "expression" into "program 
-construct" in the definition of Jonathan's suggestion of "valid in a contrived argument deduction context".
-<p/>
-I would like to point out that given the new definition of "valid in a contrived argument deduction context", there are several other 
-places of the Library specification that could take advantage of this wording to improve the existing specification, such as 
-20.9.12.2 [func.wrap.func] p2, most functions in 20.7.8.2 [allocator.traits.members], and the <tt>**Insertable</tt>, 
-<tt>EmplaceConstructible</tt>, and <tt>Erasable</tt> definitions in 23.2.1 [container.requirements.general], but given that
-these are not fully described in terms of the aforementioned wording <em>yet</em>, I would recommend to fix them by a separate issue 
-once the committee has agreed on following the suggestion presented by this issue.
-</p>
-
-<p><i>[2015-05-05 Lenexa: Move to Open]</i></p>
-
-<p>...</p>
-<p>MC: I think we like the direction but it isn't quite right: it needs some work</p>
-<p>JW: I'm prepared to volunteer to move that further, hopefully with the help of Daniel</p>
-<p>Roger Orr: should this be Core wording because it doesn't really have anything to do with libraries - the term could then just be used here</p>
-<p>AM: Core has nothing to deal with that, though</p>
-<p>HT: it seems there is nothing to imply that allows dropping out with an error - maybe that's a separate issue</p>
-<p>MC: I'm not getting what you are getting at: could you write an issue? - any objection to move to Open?</p>
-<p>...</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Add the following new definition to 17.3 [definitions] as indicated:</p>
-
-<p>
-<ins><b>valid in a contrived argument deduction context</b> [defns.valid.contr.context]</ins>
-<p/>
-<ins>A program construct <em>c</em> depending on a set of types <tt>A1</tt>, ..., <tt>An</tt>, and treated as 
-an unevaluated operand (Clause 5) when <em>c</em> is an expression, which is well-formed. 
-Access checking is performed as if in a context unrelated to <tt>A1</tt>, ..., <tt>An</tt>. 
-Only the validity of the immediate context (14.8.2 [temp.deduct]) of <em>c</em> is considered. 
-[<i>Note:</i> The compilation of <em>c</em> can result in side effects such as the instantiation of class template 
-specializations and function template specializations, the generation of implicitly-defined functions, and so on. 
-Such side effects are not in the "immediate context" and can result in the program being ill-formed. &mdash; 
-<i>end note</i>].</ins>
-</p>
-</li>
-
-<li><p>Change Table 49 ("Type property predicates") as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 49 &mdash; Type property predicates</caption>
-<tr>
-<th align="center">Template</th>
-<th align="center">Condition</th>
-<th align="center">Preconditions</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T, class U&gt;<br/>
-struct is_assignable;</tt>
-</td>
-
-<td>
-The expression
-<tt>declval&lt;T&gt;() =<br/>
-declval&lt;U&gt;()</tt> is <ins>valid in a<br/>
-contrived argument deduction context<br/>
-([defns.valid.contr.context]) for types<br/>
-<tt>T</tt> and <tt>U</tt>.</ins>
-<del>well-formed when treated<br/>
-as an unevaluated operand<br/>
-(Clause 5). Access<br/>
-checking is performed as if<br/>
-in a context unrelated to <tt>T</tt><br/>
-and <tt>U</tt>. Only the validity of<br/>
-the immediate context of<br/>
-the assignment expression<br/>
-is considered. [<i>Note</i>: The<br/>
-compilation of the<br/>
-expression can result in<br/>
-side effects such as the<br/>
-instantiation of class<br/>
-template specializations<br/>
-and function template<br/>
-specializations, the<br/>
-generation of<br/>
-implicitly-defined<br/>
-functions, and so on. Such<br/>
-side effects are not in the<br/>
-"immediate context" and<br/>
-can result in the program<br/>
-being ill-formed. &mdash; end<br/>
-note]</del>
-</td>
-
-<td align="center">
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Change 20.10.4.3 [meta.unary.prop] p7 as indicated:</p>
-
-<blockquote><p>
--7- Given the following function prototype:
-</p>
-<blockquote><pre>
-template &lt;class T&gt;
-  add_rvalue_reference_t&lt;T&gt; create() noexcept;
-</pre></blockquote>
-<p>
-the predicate condition for a template specialization <tt>is_constructible&lt;T, Args...&gt;</tt> shall be satisfied
-if and only if the following variable definition <del>would be well-formed</del> for some invented 
-variable <tt>t</tt> <ins>would be valid in a contrived argument deduction context ([defns.valid.contr.context]) for 
-types <tt>T</tt> and <tt>Args...</tt></ins>:
-</p>
-<blockquote><pre>
-T t(create&lt;Args&gt;()...);
-</pre></blockquote>
-<p>
-[<i>Note</i>: These tokens are never interpreted as a function declaration. &mdash; <i>end note</i>] <del>Access checking is
-performed as if in a context unrelated to <tt>T</tt> and any of the <tt>Args</tt>. Only the validity of the immediate context
-of the variable initialization is considered. [<i>Note</i>: The evaluation of the initialization can result in side
-effects such as the instantiation of class template specializations and function template specializations, the
-generation of implicitly-defined functions, and so on. Such side effects are not in the "immediate context"
-and can result in the program being ill-formed. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-</li>
-
-<li><p>Change Table 57 ("Other transformations") as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 57 &mdash; Other transformations</caption>
-<tr>
-<th align="center">Template</th>
-<th align="center">Condition</th>
-<th align="center">Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class Fn, class... ArgTypes&gt;<br/>
-struct result_of&lt;Fn(ArgTypes...)&gt;;</tt>
-</td>
-
-<td align="center">
-[&hellip;]
-</td>
-
-<td>
-If the expression<br/>
-<tt><i>INVOKE</i>(declval&lt;Fn&gt;(),<br/>
-declval&lt;ArgTypes&gt;()...)</tt> is<br/>
-<ins>valid in a contrived argument deduction<br/>
-context ([defns.valid.contr.context]) for types<br/>
-<tt>Fn</tt> and <tt>ArgTypes...</tt></ins>
-<del>well<br/>
-formed when treated as an<br/>
-unevaluated operand (Clause 5)</del>, the<br/>
-member typedef type shall name the<br/>
-type<br/>
-<tt>decltype(<i>INVOKE</i>(declval&lt;Fn&gt;(),<br/>
-declval&lt;ArgTypes&gt;()...))</tt>;<br/>
-otherwise, there shall be no member<br/>
-type. <del>Access checking is performed as<br/>
-if in a context unrelated to <tt>Fn</tt> and<br/>
-<tt>ArgTypes</tt>. Only the validity of the<br/>
-immediate context of the expression is<br/>
-considered. [<i>Note</i>: The compilation of<br/>
-the expression can result in side<br/>
-effects such as the instantiation of<br/>
-class template specializations and<br/>
-function template specializations, the<br/>
-generation of implicitly-defined<br/>
-functions, and so on. Such side effects<br/>
-are not in the "immediate context"<br/>
-and can result in the program being<br/>
-ill-formed. &mdash; <i>end note</i>]</del>
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Change 20.10.6 [meta.rel] p4 as indicated:</p>
-
-<blockquote><p>
--4- Given the following function prototype:
-</p>
-<blockquote><pre>
-template &lt;class T&gt;
-  add_rvalue_reference_t&lt;T&gt; create() noexcept;
-</pre></blockquote>
-<p>
-the predicate condition for a template specialization <tt>is_convertible&lt;From, To&gt;</tt> shall be satisfied if and
-only if the return expression in the following code would be <del>well-formed</del><ins>valid in a contrived argument 
-deduction context ([defns.valid.contr.context]) for types <tt>To</tt> and <tt>From</tt></ins>, including any implicit conversions
-to the return type of the function:
-</p>
-<blockquote><pre>
-To test() {
-  return create&lt;From&gt;();
-}
-</pre></blockquote>
-<p>
-[<i>Note</i>: This requirement gives well defined results for reference types, <tt>void</tt> types, array types, and
-function types. &mdash; <i>end note</i>] <del>Access checking is performed as if in a context unrelated to <tt>To</tt> 
-and <tt>From</tt>. Only the validity of the immediate context of the expression of the return-statement (including conversions to
-the return type) is considered. [<i>Note</i>: The evaluation of the conversion can result in side effects such as
-the instantiation of class template specializations and function template specializations, the generation of
-implicitly-defined functions, and so on. Such side effects are not in the "immediate context" and can result
-in the program being ill-formed. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2292"></a>2292. Find a better phrasing for "shall not participate in overload resolution"</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2013-09-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The C++14 CD has 25 sections including the phrase "X shall not
-participate in overload resolution ...". Most of these uses are double
-negatives, which are hard to interpret. "shall not ... unless" tends
-to be the easiest to read, since the condition is true when the
-function is available, but we also have a lot of "if X is not Y, then
-Z shall not participate", which actually means "You can call Z if X is
-Y." The current wording is also clumsy and long-winded. We should find
-a better and more concise phrasing.
-<p/>
-As an initial proposal, I'd suggest using "X is enabled if and only if Y" in prose
-and adding an "<i>Enabled If:</i> ..." element to 17.5.1.4 [structure.specifications].
-<p/>
-Daniel:
-<p/>
-I suggest to name this new specification element for 17.5.1.4 [structure.specifications]
-as "<i>Template Constraints:</i>" instead, because the mentioned wording form was intentionally provided 
-starting with LWG <a href="lwg-defects.html#1237">1237</a> to give implementations more freedom to realize the 
-concrete constraints. Instead of the original <tt>std::enable_if</tt>-based specifications
-we can use better forms of "SFINAE" constraints today and it eases the path to possible language-based
-constraints in the future.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2294"></a>2294. <tt>&lt;cstdlib&gt;</tt> should declare <tt>abs(double)</tt></h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2013-09-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-&hellip; and <tt>abs(float)</tt> and <tt>abs(long double)</tt>. And <tt>&lt;cmath&gt;</tt> should declare 
-<tt>abs(int)</tt>, <tt>abs(long)</tt>, and <tt>abs(long long)</tt>.
-<p/>
-As things currently stand, this program is illegal:
-</p>
-<blockquote><pre>
-#include &lt;cstdlib&gt;
-
-int main() {
-  double d = -1.23;
-  double dd = std::abs(d);
-  return 0;
-}
-</pre></blockquote>
-<p>
-The call is ambiguous because of the various integer overloads, that's because <tt>&lt;cstdlib&gt;</tt> provides 
-<tt>abs(int)</tt> but not <tt>abs(double)</tt>.
-<p/>
-This lead one commenter on Stackoverflow to state that <tt>abs</tt> is dangerous, and to recommend using <tt>fabs</tt> instead.
-<p/>
-In general, it makes sense to declare overloaded functions that take user-defined types in the same header as the 
-definition of the user-defined types; it isn't necessary to declare all of the overloads in the same place. But 
-here we're not dealing with any user-defined types; we're dealing with builtin types, which are always defined; 
-all of the overloads should be defined in the same place, to avoid mysterious problems like the one in the code above.
-<p/>
-The standard library has six overloads for <tt>abs</tt>:
-</p>
-<blockquote><pre>
-int abs(int);  // &lt;cstdlib&gt;
-long abs(long); // &lt;cstdlib&gt;
-long long abs(long long); // &lt;cstdlib&gt;
-
-float abs(float); // &lt;cmath&gt;
-double abs(double); // &lt;cmath&gt;
-long double abs(long double); // &lt;cmath&gt;
-</pre></blockquote>
-<p>
-These should all be declared in both headers.
-<p/>
-I have no opinion on <tt>&lt;stdlib.h&gt;</tt> and <tt>&lt;math.h&gt;</tt>.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-This issue is related to LWG <a href="lwg-active.html#2192">2192</a>
-<p/>
-Move to open
-</p>
-
-<p><i>[2014-02-13 Issaquah &mdash; Nicolai Josuttis suggest wording]</i></p>
-
-
-<p><i>[2015-03-03, Geoffrey Romer provides improved wording]</i></p>
-
-<p>
-See proposed resolution of LWG <a href="lwg-active.html#2192">2192</a>.
-</p>
-
-<strong>Previous resolution from Nicolai [SUPERSEDED]:</strong>
-<blockquote class = "note">
-<ol>
-<li><p>Edit 26.8 [c.math] after p7 as indicated:</p>
-
-<blockquote><p>
--6- In addition to the <tt>int</tt> versions of certain math functions in <tt>&lt;cstdlib&gt;</tt>, C++ adds <tt>long</tt> and <tt>long long</tt>
-overloaded versions of these functions, with the same semantics.
-<p/>
--7- The added signatures are:
-</p>
-<blockquote><pre>
-long abs(long);                    <i>// labs()</i>
-long long abs(long long);          <i>// llabs()</i>
-ldiv_t div(long, long);            <i>// ldiv()</i>
-lldiv_t div(long long, long long); <i>// lldiv()</i>
-</pre></blockquote>
-<p>
-<ins>-?- To avoid ambiguities, C++ also adds the following overloads of <tt>abs()</tt> to <tt>&lt;cstdlib&gt;</tt>,
-with the semantics defined in <tt>&lt;cmath&gt;</tt>:</ins>
-</p>
-<blockquote><pre>
-<ins>float abs(float);
-double abs(double);
-long double abs(long double);</ins>
-</pre></blockquote>
-<p>
-<ins>-?- To avoid ambiguities, C++ also adds the following overloads of <tt>abs()</tt> to <tt>&lt;cmath&gt;</tt>,
-with the semantics defined in <tt>&lt;cstdlib&gt;</tt>:</ins>
-</p>
-<blockquote><pre>
-<ins>int abs(int);
-long abs(long);
-long long abs(long long);</ins>
-</pre></blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See proposed resolution of LWG <a href="lwg-active.html#2192">2192</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2295"></a>2295. Locale name when the provided <tt>Facet</tt> is a <tt>nullptr</tt></h3>
-<p><b>Section:</b> 22.3.1.2 [locale.cons] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2013-09-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.3.1.2 [locale.cons] p14 ends with:
-</p>
-<blockquote><p>
-"[&hellip;] If <tt>f</tt> is null, the resulting object is a copy of <tt>other</tt>."
-</p></blockquote>
-<p>
-but the next line p15 says: 
-</p>
-<blockquote><p>
-"<i>Remarks:</i> The resulting locale has no name."
-</p></blockquote>
-<p>
-But both can't be true when <tt>other</tt> has a name and <tt>f</tt> is null.
-<p/>
-I've tried it on two implementations (MSVC,GCC) and they are inconsistent with each other on this.
-</p>
-<p>
-Daniel Kr&uuml;gler:
-<p/>
-As currently written, the <i>Remarks</i> element applies unconditionally for all cases and thus should
-"win". The question arises whether the introduction of this element by LWG <a href="lwg-closed.html#424">424</a> had actually intended
-to change the previous <i>Note</i> to a <i>Remarks</i> element. In either case the wording should be improved
-to clarify this special case.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2296"></a>2296. <tt>std::addressof</tt> should be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 20.7.12.1 [specialized.addressof] <b>Status:</b> <a href="lwg-active.html#Review">Review</a>
- <b>Submitter:</b> Daryle Walker <b>Opened:</b> 2013-09-08 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#specialized.addressof">issues</a> in [specialized.addressof].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Review">Review</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I'm writing a function that needs to be <tt>constexpr</tt> and I wanted to take the address of its input. I was 
-thinking of using <tt>std::addressof</tt> to be safe, but it isn't currently <tt>constexpr</tt>. A 
-<a href="http://en.cppreference.com/w/cpp/memory/addressof">sample implementation</a> 
-couldn't be <tt>constexpr</tt> under the C++11 rules, though.
-<p/>
-Daniel Kr&uuml;gler:
-<p/>
-Indeed the core language clarified by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1312">CWG 1312</a> 
-and by <a href="www.open-std.org/jtc1/sc22/wg21/docs/cwg_closed.html#1384">CWG 1384</a>, that such emulations of <tt>std::addressof</tt>
-implementations are not valid in constant expressions, therefore it seems more like a defect than a feature request to ask for 
-the guarantee that <tt>std::addressof</tt> is a <tt>constexpr</tt> function. It should be added that a similar requirement
-already exists for <tt>offsetof</tt> indirectly via the C99 standard as of 7.17 p3:
-</p>
-<blockquote>
-<p>
-The macros are [&hellip;]
-</p>
-<blockquote><pre>
-offsetof(type, member-designator)
-</pre></blockquote>
-<p>
-which expands to an integer constant expression that has type <tt>size_t</tt> [&hellip;]
-</p>
-</blockquote>
-
-<p>
-combined with the noted property in C++11 that:
-</p>
-
-<blockquote><p>
-"<tt>offsetof</tt> is required to work as specified even if unary <tt>operator&amp;</tt> 
-is overloaded for any of the types involved"
-</p></blockquote>
-
-<p>
-Therefore implementations should already be able without heroic efforts to realize this functionality by
-some intrinsic. The wording needs at least to ensure that for any lvalue core constant expression <tt><em>e</em></tt>
-the expression <tt>std::addressof(<em>e</em>)</tt> is a core constant expression.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-</p>
-
-<p><i>[2014-06-08, Daniel improves wording]</i></p>
-
-<p>
-It has been ensured that the wording is in sync with the recent working paper and the usage of "any" has been
-improved to say "every" instead (the fix is similar to that applied by LWG <a href="lwg-defects.html#2150">2150</a>).
-</p>
-
-<p>
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Change header <tt>&lt;memory&gt;</tt> synopsis, 20.7.2 [memory.syn] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  <i>// 20.7.12 [specialized.algorithms], specialized algorithms:</i>
-  template &lt;class T&gt; <ins>constexpr</ins> T* addressof(T&amp; r) noexcept;
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 20.7.12.1 [specialized.addressof] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class T&gt; <ins>constexpr</ins> T* addressof(T&amp; r) noexcept;
-</pre><blockquote>
-<p>
--1- <i>Returns:</i> The actual address of the object or function referenced by <tt>r</tt>, even in the presence of an
-overloaded <tt>operator&amp;</tt>.
-<p/>
-<ins>-?- <i>Remarks:</i> For every lvalue core constant expression <tt><em>e</em></tt> (5.20 [expr.const]), the expression 
-<tt>std::addressof(<em>e</em>)</tt> is a core constant expression.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-06-09, further improvements]</i></p>
-
-<p>
-A new wording form is now used similar to the approach used by LWG <a href="lwg-active.html#2234">2234</a>, which
-is a stricter way to impose the necessary implementation requirements.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
- STL: the intent of this change is good; I think the wording is good<br/>
-- I'm a bit worried about asking for a compiler hook<br/>
-- if every implementer says: yes they can do it we should be good<br/>
-EB: there is missing the word "a" before "subexpression" (in multiple places)<br/>
-MC: the editor should do - we rely on our editors<br/>
-MC: move to Review with a note stating that we wait for implementation experience first<br/>
-- in favor: 13, opposed: 0, abstain: 2
-HB: N4430 will bring something which is addressing this issue<br/>
-MC: good we didn't go to ready then 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Introduce the following new definition to the existing list in 17.3 [definitions]: [<i>Drafting note</i>:
-If LWG <a href="lwg-active.html#2234">2234</a> is accepted before this issue, the accepted wording for the new definition should be used instead
-&mdash; <i>end drafting note</i>]</p>
-
-<blockquote>
-<p>
-<strong>constant subexpression</strong> [defns.const.subexpr]
-<p/>
-an expression whose evaluation as subexpression of a <em>conditional-expression</em> <em>CE</em> (5.16 [expr.cond]) 
-would not prevent <em>CE</em> from being a core constant expression (5.20 [expr.const]).
-</p>
-</blockquote>
-</li>
-
-<li><p>Change header <tt>&lt;memory&gt;</tt> synopsis, 20.7.2 [memory.syn] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  <i>// 20.7.12 [specialized.algorithms], specialized algorithms:</i>
-  template &lt;class T&gt; <ins>constexpr</ins> T* addressof(T&amp; r) noexcept;
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 20.7.12.1 [specialized.addressof] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class T&gt; <ins>constexpr</ins> T* addressof(T&amp; r) noexcept;
-</pre><blockquote>
-<p>
--1- <i>Returns:</i> The actual address of the object or function referenced by <tt>r</tt>, even in the presence of an
-overloaded <tt>operator&amp;</tt>.
-<p/>
-<ins>-?- <i>Remarks:</i> An expression <tt>std::addressof(<em>E</em>)</tt> is a constant subexpression ( [defns.const.subexpr]), 
-if <tt><em>E</em></tt> is an lvalue constant subexpression.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2303"></a>2303. Explicit instantiation of <tt>std::vector&lt;UserType&gt;</tt> broken?</h3>
-<p><b>Section:</b> 18.6.1.3 [new.delete.placement] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.placement">issues</a> in [new.delete.placement].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The library gives explicit permission in 17.6.4.2.1 [namespace.std] p2 that user code may explicitly instantiate
-a library template provided that the instantiations depend on at least one user-defined type:
-</p>
-
-<blockquote><p>
-A program may explicitly instantiate a template defined in the standard library only if the declaration
-depends on the name of a user-defined type and the instantiation meets the standard library requirements
-for the original template.
-</p></blockquote>
-
-<p>
-But it seems that the C++11 library is not specified in a way that guarantees such an instantiation to be well-formed
-if the minimum requirements of the library is not satisfied. 
-<p/>
-For example, in general, the first template parameter of <tt>std::vector</tt> is not required to be 
-<tt>DefaultConstructible</tt> in general, but due to the split of the single C++03 member function
-with default argument
-</p>
-<blockquote><pre>
-void resize(size_type sz, T c = T());
-</pre></blockquote>
-<p>
-into
-</p>
-<blockquote><pre>
-void resize(size_type sz);
-void resize(size_type sz, const T&amp; c);
-</pre></blockquote>
-<p>
-the effect is now that for a type <tt>ND</tt> that is not <tt>DefaultConstructible</tt>, such as
-</p>
-<blockquote><pre>
-struct NP { 
-  NP(int); 
-};
-</pre></blockquote>
-<p>
-the explicit instantiation of <tt>std::vector&lt;ND&gt;</tt> is no longer well-formed, because the attempt to
-instantiate the single-argument overload of <tt>resize</tt> cannot not succeed, because this function imposes
-the <tt>DefaultInsertable</tt> requirements and given the default allocator this effectively requires
-<tt>DefaultConstructible</tt>.
-</p>
-<p>
-But <tt>DefaultConstructible</tt> is not the only point, what about <tt>CopyConstructible</tt> versus
-<tt>MoveConstructible</tt> alone? It turns out that currently the second <tt>resize</tt> overload
-would fail during an explicit instantiation for a type like
-</p>
-<blockquote><pre>
-struct MO { 
-  MO() = default; 
-  MO(MO&amp;&amp;) = default; 
-};
-</pre></blockquote>
-<p>
-because it imposes <tt>CopyInsertable</tt> requirements that end up being equivalent to the <tt>CopyConstructible</tt>
-requirements for the default allocator.
-<p/>
-Technically a library can solve these issues: For special member functions by defining them in some base class, for others
-by transforming them effectively into a function template due to the great feature of default template arguments for
-function templates (At the very moment the validity of the latter approach depends on a resolution of core language issue
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1635">CWG 1635</a>, though). E.g. the here mentioned 
-<tt>resize</tt> functions of <tt>std::vector</tt> could be prevented from instantiation by defining them like this 
-with an implementation:
-</p>
-<blockquote><pre>
-template&lt;class = void&gt;
-void resize(size_type sz) { [&hellip;] }
-template&lt;class = void&gt;
-void resize(size_type sz, const T&amp; c) { [&hellip;] }
-</pre></blockquote>
-<p>
-In this case, these functions could also be defined in a base class, but the latter approach won't work in all cases.
-<p/>
-Basically such an implementation is required to constrain all member functions that are not covered by the general
-requirements imposed on the actual library template parameters. I tested three different C++11 library implementations
-and but none could instantiate for example <tt>std::list</tt>, <tt>std::vector</tt>, or <tt>std::deque</tt> with
-value types that are not <tt>DefaultConstructible</tt> or only <tt>MoveConstructible</tt>. 
-<p/>
-
-<p/>
-This issue is raised to clarify the current situation in regard to the actual requirements imposed on user-provided
-types that are used to explicitly instantiate Library-provided templates. For example, the current Container requirements
-impose very little requirements on the actual value type and it is unclear to which extend library implementations have
-to respect that. 
-<p/>
-The minimum solution of this issue should be to at least realize that there is no fundamental requirement on 
-<tt>DefaultConstructible</tt> for value types of library containers, because we have since C++03 the general
-statement of 17.6.3.1 [utility.arg.requirements] ("In general, a default constructor is not required.").
-It is unclear whether <tt>CopyConstructible</tt> should be required for an explicit instantiation request, but
-given the careful introduction of move operations in the library it would seem astonishing that a
-<tt>MoveConstructible</tt> type wouldn't suffice for value types of the container types.
-<p/>
-In any case I can envision at least two approaches to solve this issue:
-</p>
-<ol>
-<li>
-<p>
-As indicated in LWG <a href="lwg-active.html#2292">2292</a>, those function could get an explicit "<i>Template Constraints:</i>"
-element, albeit this promises more than needed to solve this issue.
-</p>
-</li>
-<li>
-<p>
-The library could introduce a completely new element form, such as "<i>Instantiation Constraints:</i>" that
-would handle this situation for explicit instantiation situations. This would allow for simpler techniques
-to solve the issue when explicit instantiation is required compared to the first bullet, because it would not 
-(necessarily) guarantee SFINAE-friendly expression-wellformedness, such as inspecting the expression 
-<tt>std::declval&lt;std::vector&lt;ND&gt;&amp;&gt;.resize(0)</tt> in an unevaluated context.
-</p>
-</li>
-</ol>
-
-<p>
-It should be noted that the 2013-08-27 comment to LWG <a href="lwg-defects.html#2193">2193</a> could be resolved by a similar solution
-as indicated in this issue here.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2307"></a>2307. Should the Standard Library use <tt>explicit</tt> only when necessary?</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2013-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG <a href="lwg-defects.html#2193">2193</a> yields <tt>explicit</tt> for default ctors to allow <tt>{}</tt>, but not for
-all cases of uniform initialization. For example:
-</p>
-<blockquote><pre>
-explicit vector(size_type count, const Allocator&amp; alloc = Allocator());
-</pre></blockquote>
-<p>
-This prevents <tt>{n, alloc()}</tt>. Although this use is relatively rare,
-but the behavior is inconsistent with that of
-</p>
-<blockquote><pre>
-vector(size_type count, const T&amp; value, const Allocator&amp; alloc = Allocator());
-</pre></blockquote>
-
-<p><i>[Urbana 2014-11-07: Move to Open]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2309"></a>2309. <tt>mutex::lock()</tt> should not throw <tt>device_or_resource_busy</tt></h3>
-<p><b>Section:</b> 30.4.1.2 [thread.mutex.requirements.mutex] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2013-09-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements.mutex">issues</a> in [thread.mutex.requirements.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As discussed during the Chicago meeting in 
-<a href="http://wiki.edg.com/twiki/bin/view/Wg21chicago2013/ThursdayMorningMinutes#LWG_2135_revisited">SG1</a>
-the only reasonable reasons for throwing <tt>device_or_resource_busy</tt> seem to be:
-</p>
-<ul>
-<li><p>
-The thread currently already holds the mutex, the mutex is not recursive, and the implementation detects this.
-In this case <tt>resource_deadlock_would_occur</tt> should be thrown.
-</p></li>
-<li><p>
-Priority reasons. At least <tt>std::mutex</tt> (and possibly all standard mutex types)
-should not be setup this way, otherwise we have real problems with <tt>condition_variable::wait()</tt>.
-</p></li>
-</ul>
-
-<p><i>[2014-06-17 Rapperswil]</i></p>
-
-<p>
-Detlef provides wording
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-We believe we were already done with it. Should be in SG1-OK status.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 30.4.1.2 [thread.mutex.requirements.mutex] as indicated:</p>
-
-<blockquote><p>
--13- <i>Error conditions</i>:
-</p>
-<ul>
-<li><p><tt>operation_not_permitted</tt> &mdash; if the thread does not have the privilege to perform the operation.</p></li>
-<li><p><tt>resource_deadlock_would_occur</tt> &mdash; if the implementation detects that a deadlock would occur.</p></li>
-<li><p><del><tt>device_or_resource_busy</tt> &mdash; if the mutex is already locked and blocking is not possible.</del></p></li>
-</ul>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2310"></a>2310. Public <em>exposition only</em> member in <tt>std::array</tt></h3>
-<p><b>Section:</b> 23.3.2.1 [array.overview] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.3.2.1 [array.overview] shows <tt>std::array</tt> with an "exposition only" data member, <tt>elems</tt>.
-<p/>
-The wording in 17.5.2.3 [objects.within.classes] that defines how
-"exposition only" is used says it applies to private members, but
-<tt>std::array::elems</tt> (or its equivalent) must be public in order for
-<tt>std::array</tt> to be an aggregate.
-<p/>
-If the intention is that <tt>std::array::elems</tt> places requirements on the
-implementation to provide "equivalent external behavior" to a public
-array member, then 17.5.2.3 [objects.within.classes] needs to cover public
-members too, or some other form should be used in 23.3.2.1 [array.overview].
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Open]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2312"></a>2312. <tt>tuple</tt>'s constructor constraints need to be phrased more precisely</h3>
-<p><b>Section:</b> 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-05-06</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.cnstr">active issues</a> in [tuple.cnstr].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.cnstr">issues</a> in [tuple.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following code:
-</p>
-<blockquote><pre>
-void meow(tuple&lt;long, long&gt;) { puts("Two"); }
-
-void meow(tuple&lt;long, long, long&gt;) { puts("Three"); }
-
-tuple&lt;int, int, int&gt; t(0, 0, 0);
-
-meow(t);
-</pre></blockquote>
-<p>
-This should compile and print "Three" because <tt>tuple&lt;long, long&gt;</tt>'s constructor from 
-<tt>const tuple&lt;int, int, int&gt;&amp;</tt> should remove itself from overload resolution.  
-Implementations sensibly do this, but the Standard doesn't actually say it!
-<p/>
-In this case, <tt>Types</tt> is "<tt>long, long</tt>" and <tt>UTypes</tt> is "<tt>int, int, int</tt>". 20.4.2.1 [tuple.cnstr]/3 
-says "let <tt>i</tt> be in the range <tt>[0,sizeof...(Types))</tt> in order", which is <tt>[0, 2)</tt>.  Then /17 says 
-"<i>Remark:</i> This constructor shall not participate in overload resolution unless <tt>const Ui&amp;</tt> is implicitly 
-convertible to <tt>Ti</tt> for all <tt>i</tt>." Interpreted literally, this is true!  /15 says 
-"<i>Requires:</i> <tt>sizeof...(Types) == sizeof...(UTypes)</tt>." but requiring the sizes to be identical doesn't help.  
-Only the special phrase "shall not participate in overload resolution unless" mandates SFINAE/<tt>enable_if</tt> machinery.
-<p/>
-The wording that we need is almost available in the <i>Requires</i> paragraphs, except that the <i>Requires</i> paragraphs say 
-"<tt>is_constructible</tt>" while the Remark paragraphs say "is implicitly convertible", which is the correct thing for the SFINAE 
-constraints to check. My proposed resolution is to unify the <i>Requires</i> and <i>Remark</i> paragraphs, after which there 
-will be no need for <i>Requires</i> (when a constructor participates in overload resolution if and only if <tt>X</tt> is true, 
-then there's no need for it to <i>Require</i> that <tt>X</tt> is true).
-<p/>
-Note: 20.10.4.3 [meta.unary.prop]/6 specifies <tt>is_constructible&lt;To, From&gt;</tt> and 20.10.6 [meta.rel]/4 specifies 
-<tt>is_convertible&lt;From, To&gt;</tt>. Both are specified in terms of 
-"<tt>template &lt;class T&gt; typename add_rvalue_reference&lt;T&gt;::type create();</tt>".  
-Therefore, passing <tt>From</tt> and <tt>From&amp;&amp;</tt> is equivalent, regardless of whether <tt>From</tt> is an object type, 
-an lvalue reference, or an rvalue reference.
-<p/>
-Also note that 20.4.2.1 [tuple.cnstr]/3 defines <tt>T0</tt> and <tt>T1</tt> so we don't need to repeat their definitions.
-</p>
-
-<p><i>[2014-10-05, Daniel comments]</i></p>
-
-<p>
-This issue is closely related to LWG <a href="lwg-active.html#2419">2419</a>.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-AM: Howard wants to do something in this space and I want to wait for him to get a paper in.
-<p/>
-Postponed.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: handled by Daniel's tuple paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4387.html">N4387</a><br/>
-STL: look at status after N4387 applied.
-</p>
-<p><i>[2015-05-05, Daniel comments]</i></p>
-
-<p>
-N4387 doesn't touch these area intentionally. I agree with Howard that a different option exists that would introduce
-a TupleLike concept. Some implementations currently take advantage of this choice and this P/R would forbid them, which seems
-unfortunate to me.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 20.4.2.1 [tuple.cnstr] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-  explicit constexpr tuple(UTypes&amp;&amp;... u);
-</pre><blockquote>
-<p>
-<del>-8- <i>Requires:</i> <tt>sizeof...(Types) == sizeof...(UTypes)</tt>. <tt>is_constructible&lt;Ti, Ui&amp;&amp;&gt;::value</tt> is true
-for all <i>i</i>.</del>
-<p/>
-[&hellip;]
-<p/>
--10- <i>Remark:</i> This constructor shall not participate in overload resolution unless <del>each type in <tt>UTypes</tt> is
-implicitly convertible to its corresponding type in <tt>Types</tt></del><ins><tt>sizeof...(Types) == sizeof...(UTypes)</tt> and 
-both <tt>is_constructible&lt;Ti, Ui&gt;::value</tt> and <tt>is_convertible&lt;Ui, Ti&gt;::value</tt> are true for all <i>i</i></ins>.
-</p>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-  constexpr tuple(const tuple&lt;UTypes...&gt;&amp; u);
-</pre><blockquote>
-<p>
-<del>-15- <i>Requires:</i> <tt>sizeof...(Types) == sizeof...(UTypes)</tt>. <tt>is_constructible&lt;Ti, const Ui&amp;&gt;::value</tt> is true
-for all <i>i</i>.</del>
-<p/>
-[&hellip;]
-<p/>
--17- <i>Remark:</i> This constructor shall not participate in overload resolution unless <del><tt>const Ui&amp;</tt> is implicitly
-convertible to <tt>Ti</tt></del><ins><tt>sizeof...(Types) == sizeof...(UTypes)</tt> and 
-both <tt>is_constructible&lt;Ti, const Ui&amp;&gt;::value</tt> and <tt>is_convertible&lt;const Ui&amp;, Ti&gt;::value</tt> are 
-true</ins> for all <i>i</i>.
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-  constexpr tuple(tuple&lt;UTypes...&gt;&amp;&amp; u);
-</pre><blockquote>
-<p>
-<del>-18- <i>Requires:</i> <tt>sizeof...(Types) == sizeof...(UTypes)</tt>. <tt>is_constructible&lt;Ti, Ui&amp;&amp;&gt;::value</tt> is true
-for all <i>i</i>.</del>
-<p/>
-[&hellip;]
-<p/>
--20- <i>Remark:</i> This constructor shall not participate in overload resolution unless <del>each type in <tt>UTypes</tt> is
-implicitly convertible to its corresponding type in <tt>Types</tt></del><ins><tt>sizeof...(Types) == sizeof...(UTypes)</tt> and 
-both <tt>is_constructible&lt;Ti, Ui&gt;::value</tt> and <tt>is_convertible&lt;Ui, Ti&gt;::value</tt> are true for all <i>i</i></ins>.
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class U1, class U2&gt; constexpr tuple(const pair&lt;U1, U2&gt;&amp; u);
-</pre><blockquote>
-<p>
-<del>-21- <i>Requires:</i> <tt>sizeof...(Types) == 2</tt>. <tt>is_constructible&lt;T0, const U1&amp;&gt;::value</tt> is true for the first
-type <tt>T0</tt> in Types and <tt>is_constructible&lt;T1, const U2&amp;&gt;::value</tt> is true for the second type <tt>T1</tt> in
-<tt>Types</tt>.</del>
-<p/>
-[&hellip;]
-<p/>
--23- <i>Remark:</i> This constructor shall not participate in overload resolution unless <del><tt>const U1&amp;</tt> is implicitly
-convertible to <tt>T0</tt> and <tt>const U2&amp;</tt> is implicitly convertible to <tt>T1</tt></del><ins><tt>sizeof...(Types) == 2 
-&amp;&amp; is_constructible&lt;T0, const U1&amp;&gt;::value &amp;&amp; is_constructible&lt;T1, const U2&amp;&gt;::value &amp;&amp; 
-is_convertible&lt;const U1&amp;, T0&gt;::value &amp;&amp; is_convertible&lt;const U2&amp;, T1&gt;::value</tt> is true</ins>.
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class U1, class U2&gt; constexpr tuple(pair&lt;U1, U2&gt;&amp;&amp; u);
-</pre><blockquote>
-<p>
-<del>-24- <i>Requires:</i> <tt>sizeof...(Types) == 2</tt>. <tt>is_constructible&lt;T0, U1&amp;&amp;&gt;::value</tt> is true for the first
-type <tt>T0</tt> in Types and <tt>is_constructible&lt;T1, U2&amp;&amp;&gt;::value</tt> is true for the second type <tt>T1</tt> in
-<tt>Types</tt>.</del>
-<p/>
-[&hellip;]
-<p/>
--26- <i>Remark:</i> This constructor shall not participate in overload resolution unless <del><tt>U1</tt> is implicitly convertible
-to <tt>T0</tt> and <tt>U2</tt> is implicitly convertible to <tt>T1</tt></del><ins><tt>sizeof...(Types) == 2
-&amp;&amp; is_constructible&lt;T0, U1&gt;::value &amp;&amp; is_constructible&lt;T1, U2&gt;::value &amp;&amp; 
-is_convertible&lt;U1, T0&gt;::value &amp;&amp; is_convertible&lt;U2, T1&gt;::value</tt> is true</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2318"></a>2318. <tt>basic_string</tt>'s wording has confusing relics from the copy-on-write era</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-21.4.4 [string.capacity]/8 specifies <tt>basic_string::resize(n, c)</tt> with:
-</p>
-<blockquote><p>
-<i>Effects:</i> Alters the length of the string designated by <tt>*this</tt> as follows:
-</p>
-<ul>
-<li><p>
-If <tt>n &lt;= size()</tt>, the function replaces the string designated by <tt>*this</tt> with a string of length <tt>n</tt> whose 
-elements are a copy of the initial elements of the original string designated by <tt>*this</tt>.
-</p>
-</li>
-<li><p>
-If <tt>n &gt; size()</tt>, the function replaces the string designated by <tt>*this</tt> with a string of length <tt>n</tt> whose 
-first <tt>size()</tt> elements are a copy of the original string designated by <tt>*this</tt>, and whose remaining elements are all 
-initialized to <tt>c</tt>.
-</p>
-</li>
-</ul>
-</blockquote>
-<p>
-This wording is a relic of the copy-on-write era. In addition to being extremely confusing, it has undesirable implications.  
-Saying "replaces the string designated by <tt>*this</tt> with a string of length <tt>n</tt> whose elements are a copy" suggests 
-that the trimming case can reallocate. Reallocation during trimming should be forbidden, like <tt>vector</tt>.
-<p/>
-At least 7 paragraphs are affected: 21.4.4 [string.capacity]/8, 21.4.6.2 [string::append]/9, 
-21.4.6.3 [string::assign]/3 and /10, 21.4.6.4 [string::insert]/11, 21.4.6.5 [string::erase]/4, and 
-21.4.6.6 [string::replace]/11 say "replaces the string [designated/controlled] by <tt>*this</tt>". (21.4.6.7 [string::copy]/3 
-is different &mdash; it "replaces the string designated by <tt>s</tt>".)
-<p/>
-Of the affected paragraphs, <tt>resize()</tt> and <tt>erase()</tt> are the most important to fix because they should forbid 
-reallocation during trimming.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2321"></a>2321. Moving containers should (usually) be required to preserve iterators</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.2.1 [container.requirements.general]/10 says that unless otherwise specified, "no <tt>swap()</tt> function invalidates 
-any references, pointers, or iterators referring to the elements of the containers being swapped. [<i>Note:</i> The <tt>end()</tt> 
-iterator does not refer to any element, so it may be invalidated. &mdash; <i>end note</i>]". However, move constructors and move 
-assignment operators aren't given similar invalidation guarantees. The guarantees need several exceptions, so I do not believe 
-that blanket language like /11 "Unless otherwise specified (either explicitly or by defining a function in terms of other functions), 
-invoking a container member function or passing a container as an argument to a library function shall not invalidate iterators to, 
-or change the values of, objects within that container." is applicable.
-</p>
-
-<p><i>[2014-02-13 Issaquah]</i></p>
-
-<p>
-General agreeement on intent, several wording nits and additional paragraphs to hit.
-</p>
-<p>
-STL to provide updated wording.  Move to Open.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-AM: in the proposed wording, I'd like to mention that the iterators now refer to elements of a different container. 
-I think we're saying something like this somewhere. JY: There's some wording like that for swap I think. TK: It's also in 
-<tt>list::splice()</tt>. DK to JY: 23.2.1p9.
-<p/>
-VV: The issue says that STL was going to propose new wording. Has he done that? AM: I believe we're looking at that. 
-GR: The request touches on multiple paragraphs, and this PR has only one new paragraph, so this looks like it's not up-to-date. 
-MC: This was last updated a year ago in Issaquah.
-<p/>
-<b>Conclusion</b>: Skip, not up to date. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>In 23.2.1 [container.requirements.general]/10 change as indicated:</p>
-
-<blockquote><p>
--10- Unless otherwise specified (see 23.2.4.1, 23.2.5.1, 23.3.3.4, and 23.3.7.5) all container types defined in this
-Clause meet the following additional requirements:
-</p>
-<ul>
-<li><p>
-[&hellip;]
-</p></li>
-<li><p>
-no copy constructor or assignment operator of a returned iterator throws an exception.
-</p></li>
-<li><p>
-<ins>no move constructor (or move assignment operator when 
-<tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_move_assignment::value</tt> is true) of a container 
-(except for <tt>array</tt>) invalidates any references, pointers, or iterators referring to the elements of the source container. 
-[<i>Note:</i> The <tt>end()</tt> iterator does not refer to any element, so it may be invalidated. &mdash; <i>end note</i>]</ins>
-</p></li>
-<li><p>
-no <tt>swap()</tt> function throws an exception.
-</p></li>
-<li><p>
-no <tt>swap()</tt> function invalidates any references, pointers, or iterators referring to the elements of the
-containers being swapped. [<i>Note:</i> The <tt>end()</tt> iterator does not refer to any element, so it may be
-invalidated. &mdash; <i>end note</i>]
-</p></li>
-</ul>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2326"></a>2326. <tt>uniform_int_distribution&lt;unsigned char&gt;</tt> should be permitted</h3>
-<p><b>Section:</b> 26.5.1.1 [rand.req.genl] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-26.5.1.1 [rand.req.genl]/1 says: "Throughout this subclause 26.5, the effect of instantiating a template [...] that has a 
-template type parameter named <tt>IntType</tt> is undefined unless the corresponding template argument is <i>cv</i>-unqualified 
-and is one of <tt>short</tt>, <tt>int</tt>, <tt>long</tt>, <tt>long long</tt>, <tt>unsigned short</tt>, <tt>unsigned int</tt>, 
-<tt>unsigned long</tt>, or <tt>unsigned long long</tt>."  26.5.8.2.1 [rand.dist.uni.int] specifies 
-<tt>template&lt;class IntType = int> class uniform_int_distribution</tt>, so this forbids 
-<tt>uniform_int_distribution&lt;char/signed char/unsigned char&gt;</tt>.
-<p/>
-I am not aware of anything in <tt>&lt;random&gt;</tt> that works with 16-bit integers but fails with 8-bit integers, so I suspect 
-that <tt>IntType</tt> and <tt>UIntType</tt> could simply be extended to permit the <tt>char</tt> family. Alternatively, this 
-change could be limited to <tt>uniform_int_distribution</tt> alone, where it is definitely safe. A <tt>&lt;random&gt;</tt> expert 
-should decide which change is best.
-</p>
-
-<p><i>[2015-04-04 Geoffrey provides wording]</i></p>
-
-<p>
- I think it's time to call the question; it's just silly that we have a random number library with no natural way to generate 
- random bytes. However, I don't think it's sufficient to fix only <tt>uniform_int_distribution</tt>, or even all of <tt>IntType</tt>. 
- At a bare minimum we need to also fix <tt>independent_bits_engine</tt> (arguably the cleanest way of generating a random byte) 
- and that's specified in terms of <tt>UIntType</tt>.
- <p/>
- The wording provided below is equivalent to adding <tt>unsigned char</tt> to item "f" and adding <tt>signed char</tt> and 
- <tt>unsigned char</tt> to item "e". That means it still excludes <tt>char</tt>, but I'm OK with that. If you want to generate 
- a 1-byte number, you should probably pick a signedess, and if you want to generate a raw byte, the "true" raw byte type is 
- <tt>unsigned char</tt>. This also excludes extended integral types and wide char types, which seem like nice-to-haves at best. 
- I have no objection to supporting any of those types; I just picked this to simplify the wording and hopefully maximize consensus. 
- Note that if we want to broaden <tt>IntType</tt> to permit any integral type, we'll need to decide if we want to exclude <tt>bool</tt>.
-<p/>
-For reference, <tt>IntType</tt> is used as a parameter of the following templates:
-</p>
-<blockquote>
-<pre>
-uniform_int_distribution
-binomial_distribution
-geometric_distribution
-negative_binomial_distribution
-poisson_distribution
-discrete_distribution
-</pre>
-</blockquote>
-<p>
-and <tt>UIntType</tt> is used as a parameter of the following templates:
-</p>
-<blockquote>
-<pre>
-linear_congruential_engine
-mersenne_twister_engine
-subtract_with_carry_engine
-independent_bits_engine
-</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change in 26.5.1.1 [rand.req.genl] p1 as indicated:</p>
-
-<p>
--1- Throughout this subclause 26.5, the effect of instantiating a template:
-</p>
-<ol style="list-style-type:lower-alpha;" start="4">
-<li><p>[&hellip;]</p></li>
-<li><p>that has a template type parameter named <tt>IntType</tt> is undefined unless the corresponding template
-argument is cv-unqualified and is <ins>a standard integer type (3.9.1 [basic.fundamental])</ins><del>one of 
-<tt>short</tt>, <tt>int</tt>, <tt>long</tt>, <tt>long long</tt>, <tt>unsigned short</tt>, <tt>unsigned int</tt>, 
-<tt>unsigned long</tt>, or <tt>unsigned long long</tt></del>.</p></li>
-<li><p>that has a template type parameter named <tt>UIntType</tt> is undefined unless the corresponding template
-argument is cv-unqualified and is <ins>a standard unsigned integer type (3.9.1 [basic.fundamental])</ins><del>one 
-of <tt>unsigned short</tt>, <tt>unsigned int</tt>, <tt>unsigned long</tt>, or <tt>unsigned long long</tt></del>.</p></li>
-</ol>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2328"></a>2328. Rvalue stream extraction should use perfect forwarding</h3>
-<p><b>Section:</b> 27.7.2.6 [istream.rvalue] <b>Status:</b> <a href="lwg-active.html#Review">Review</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.rvalue">active issues</a> in [istream.rvalue].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.rvalue">issues</a> in [istream.rvalue].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Review">Review</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-27.7.2.6 [istream.rvalue] declares <tt>operator&gt;&gt;(basic_istream&lt;charT, traits&gt;&amp;&amp; is, T&amp; x)</tt>.  
-However, 27.7.2.2.3 [istream::extractors]/7 declares <tt>operator&gt;&gt;(basic_istream&lt;charT,traits&gt;&amp; in, charT* s)</tt>, 
-plus additional overloads for <tt>unsigned char*</tt> and <tt>signed char*</tt>. This means that 
-"<tt>return_rvalue_istream() &gt;&gt; &amp;arr[0]</tt>" won't compile, because <tt>T&amp;</tt> won't bind to the rvalue <tt>&amp;arr[0]</tt>.
-</p>
-
-<p><i>[2014-02-12 Issaquah : recategorize as P3]</i></p>
-
-
-<p>
-Jonathan Wakely: Bill was certain the change is right, I think so with less certainty
-</p>
-
-<p>
-Jeffrey Yaskin: I think he's right, hate that we need this
-</p>
-
-<p>
-Jonathan Wakely: is this the security issue Jeffrey raised on lib reflector?
-</p>
-
-<p>
-Move to P3
-</p>
-
-<p><i>[2015-05-06 Lenexa: Move to Review]</i></p>
-
-
-<p>WEB, MC: Proposed wording changes one signature (in two places) to take a forwarding reference.</p>
-<p>TK: Should be consistent with an istream rvalue?</p>
-<p>MC: This is the case where you pass the stream by rvalue reference.</p>
-<p>RP: I would try it before standardizing.</p>
-<p>TK: Does it break anything?</p>
-<p>RP, TK: It will take all arguments, will be an exact match for everything.</p>
-<p>RS, TK: This adapts streaming into an rvalue stream to make it act like streaming into an lvalue stream.</p>
-<p>RS: Should this really return the stream by lvalue reference instead of by rvalue reference? => new LWG issue.</p>
-<p>RP: Security issue?</p>
-<p>MC: No. That's istream >> char*, C++ version of gets(). Remove it, as we did for gets()? => new LWG issue.</p>
-<p>RS: Proposed resolution looks correct to me.</p>
-<p>MC: Makes me (and Jonathan Wakely) feel uneasy.</p>
-<p>Move to Review, consensus.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 27.7.1 [iostream.format.overview], header <tt>&lt;istream&gt;</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  template &lt;class charT, class traits, class T&gt;
-    basic_istream&lt;charT, traits&gt;&amp;
-    operator&gt;&gt;(basic_istream&lt;charT, traits&gt;&amp;&amp; is, T&amp;<ins>&amp;</ins> x);
-}
-</pre></blockquote>
-</li>
-
-<li><p>Edit 27.7.2.6 [istream.rvalue] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits, class T&gt;
-  basic_istream&lt;charT, traits&gt;&amp;
-  operator&gt;&gt;(basic_istream&lt;charT, traits&gt;&amp;&amp; is, T&amp;<ins>&amp;</ins> x);
-</pre><blockquote>
-<p>
--1- <i>Effects:</i> <tt>is &gt;&gt;<del>x</del> <ins>std::forward&lt;T&gt;(x)</ins></tt>
-<p/>
--2- <i>Returns:</i> <tt>is</tt>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2331"></a>2331. <tt>regex_constants::collate</tt>'s effects are inaccurately summarized</h3>
-<p><b>Section:</b> 28.5.1 [re.synopt] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.synopt">active issues</a> in [re.synopt].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.synopt">issues</a> in [re.synopt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The table in 28.5.1 [re.synopt]/1 says that <tt>regex_constants::collate</tt> "Specifies that character ranges of the form 
-"<tt>[a-b]</tt>" shall be locale sensitive.", but 28.13 [re.grammar]/14 says that it affects individual character comparisons 
-too.
-</p>
-
-<p><i>[2012-02-12 Issaquah : recategorize as P3]</i></p>
-
-
-<p>
-Marshall Clow: 28.13/14 only applies to ECMAScript
-</p>
-
-<p>
-All: we're unsure
-</p>
-
-<p>
-Jonathan Wakely: we should ask John Maddock
-</p>
-
-<p>
-Move to P3
-</p>
-
-<p><i>[2014-5-14, John Maddock response]</i></p>
-
-<p>
-The original intention was the original wording: namely that <tt>collate</tt> only made character ranges locale sensitive.  
-To be frank it's a feature that's probably hardly ever used (though I have no real hard data on that), and is a leftover 
-from early POSIX standards which <em>required</em> locale sensitive collation for character ranges, and then later changed 
-to implementation defined if I remember correctly (basically nobody implemented locale-dependent collation).
-<p/>
-So I guess the question is do we gain anything by requiring all character-comparisons to go through the locale when this bit 
-is set? Certainly it adds a great deal to the implementation effort (it's not what Boost.Regex has ever done). I guess the 
-question is are differing code-points that collate identically an important use case? I guess there might be a few Unicode 
-code points that do that, but I don't know how to go about verifying that.
-<p/>
-STL:
-<p/>
-If this was unintentional, then 28.5.1 [re.synopt]/1's table should be left alone, while 28.13 [re.grammar]/14 
-should be changed instead.
-<p/>
-Jeffrey Yasskin:
-<p/>
-<a href="http://www.unicode.org/reports/tr18/tr18-13.html#Tailored_Loose_Matches">This page</a>
-mentions that [V] in Swedish should match "W" in a perfect world.
-<p/>
-However, the most recent version of <a href="http://www.unicode.org/reports/tr18/#Tailored_Loose_Matches">TR18</a> retracts
-both language-specific loose matches <em>and</em> language-specific ranges
-because "for most full-featured regular expression engines, it is
-quite difficult to match under code point equivalences that are not
-1:1" and "tailored ranges can be quite difficult to implement
-properly, and can have very unexpected results in practice. For
-example, languages may also vary whether they consider lowercase below
-uppercase or the reverse. This can have some surprising results: [a-Z]
-may not match anything if <tt>Z &lt; a</tt> in that locale."
-<p/>
-<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.15">ECMAScript</a> doesn't include collation at all.
-<p/>
-IMO, +1 to changing 28.13 instead of 28.5.1. It seems like we'd be on
-fairly solid ground if we wanted to remove <tt>regex_constants::collate</tt>
-entirely, in favor of named character classes, but of course that's
-not for this issue.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>In 28.5.1 [re.synopt]/1, Table 138 &mdash; "<tt>syntax_option_type</tt> effects", change as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 138 &mdash; <tt>syntax_option_type</tt> effects</caption>
-<tr>
-<th align="center">Element</th>
-<th align="center">Effect(s) if set</th>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>collate</tt>
-</td>
-<td>
-Specifies that character <del>ranges of the form "<tt>[a-b]</tt>"</del><ins>comparisons and character range comparisons</ins> 
-shall be locale sensitive.
-</td>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2334"></a>2334. <tt>atomic</tt>'s default constructor requires "uninitialized" state even for types with non-trivial default-constructor</h3>
-<p><b>Section:</b> 29.6.5 [atomics.types.operations.req] <b>Status:</b> <a href="lwg-active.html#SG1">SG1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-10-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.operations.req">active issues</a> in [atomics.types.operations.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations.req">issues</a> in [atomics.types.operations.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#SG1">SG1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to 29.6.5 [atomics.types.operations.req] p4,
-</p>
-<blockquote><pre>
-A ::A () noexcept = default;
-</pre><blockquote>
-<p>
-<i>Effects:</i> leaves the atomic object in an uninitialized state. [<i>Note:</i> These semantics ensure compatibility
-with <tt>C</tt>. &mdash; <i>end note</i>]
-</p>
-</blockquote></blockquote>
-<p>
-This implementation requirement is OK for POD types, like <tt>int</tt>, but 29.5 [atomics.types.generic] p1
-intentionally allows template arguments of <tt>atomic</tt> with a non-trivial default constructor ("The type of the template argument 
-<tt>T</tt> shall be trivially copyable (3.9)"), so this wording can be read in a way that makes the behaviour of the following code
-undefined:
-</p>
-<blockquote><pre>
-#include &lt;atomic&gt;
-#include &lt;iostream&gt;
-
-struct S {
-  S() noexcept : v(42) {}
-  int v;
-};
-
-int main() {
-  std::atomic&lt;S&gt; as; // Default-initialization
-  std::cout &lt;&lt; as.load().v &lt;&lt; std::endl; // ?
-}
-</pre></blockquote>
-<p>
-For a user-defined emulation of <tt>atomic</tt> the expected outcome would be defined and the program would output "42",
-but existing implementations differ and the result value is a "random number" for at least one implementation. This seems
-very surprising to me.
-<p/>
-To realize that seemingly existing requirement, an implementation is either required to violate normal language rules internally
-or to perform specific bit-randomization-techniques after the normal default-initialization that called the default constructor
-of <tt>S</tt>.
-<p/>
-According to my understanding, the non-normative note in 29.6.5 [atomics.types.operations.req] p4 is intended to
-refer to types that are valid <tt>C</tt>-types, but the example type <tt>S</tt> is not such a type.
-<p/>
-To make the mental model of <tt>atomic</tt>'s default constructor more intuitive for user-code, I suggest to clarify the wording
-to have the effects of default-initialization instead. The current state seems more like an unintended effect of imprecise
-language used here and has some similarities to wording that was incorrectly used to specify <tt>atomic_flag</tt> initialization 
-as described by LWG <a href="lwg-defects.html#2159">2159</a>.
-</p>
-
-<p><i>[2014-05-17, Daniel comments and provides alternative wording]</i></p>
-
-
-<p>
-The current wording was considered controversial as expressed by reflector discussions. To me, the actual problem is not newly
-introduced by that wording, but instead is already present in basically all paragraphs specifying semantics of atomic types,
-since the wording never clearly distinguishes the value of the actual atomic type <i>A</i> and the value of the "underlying",
-corresponding non-atomic type <i>C</i>. The revised proposed wording attempts to improve the current ambiguity of these two
-kinds of values.
-</p>
-
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note">
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Modify 29.6.5 [atomics.types.operations.req] p4 as indicated: <em>[Editorial note: There is no exposition-only
-member in <tt>atomic</tt>, which makes it a bit hard to specify what actually is initialized, but the usage of the term "value" 
-seems consistent with similar wording used to specify the effects of the atomic <tt>load</tt> functions]</em></p>
-
-<blockquote><pre>
-A ::A () noexcept = default;
-</pre><blockquote>
-<p>
--4- <i>Effects:</i> <del>leaves the atomic object in an uninitialized state</del><ins>The value of the atomic object
-is default-initialized (8.5 [dcl.init])</ins>. [<i>Note:</i> These semantics ensure compatibility
-with <tt>C</tt>. &mdash; <i>end note</i>]
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Modify 29.6.5 [atomics.types.operations.req] p2 as indicated: <em>[Editorial note: This is a near-to editorial
-change not directly affecting this issue, but <tt>atomic_address</tt> does no longer exist and the pointed to definition is
-relevant in the context of this issue resolution.]</em>
-</p>
-<blockquote>
-<p>
--2- In the following operation definitions:
-</p>
-<ul>
-<li><p>an <i>A</i> refers to one of the atomic types.</p></li>
-<li><p>a <i>C</i> refers to its corresponding non-atomic type. <del>The <tt>atomic_address</tt> atomic type corresponds to the
-<tt>void*</tt> non-atomic type.</del></p></li>
-<li><p>[&hellip;]</p></li>
-</ul>
-</blockquote>
-</li>
-
-<li><p>Modify 29.6.5 [atomics.types.operations.req] p4 and the following as indicated: <em>[Editorial note: There 
-is no exposition-only member in <tt>atomic</tt>, which makes it a bit hard to specify what actually is initialized, but 
-the introductory wording of 29.6.5 [atomics.types.operations.req] p2 b2 defines: "a <i>C</i> refers to its 
-corresponding non-atomic type." which helps to specify the semantics in terms of "the <i>C</i> value referred to by the 
-atomic object"]</em></p>
-
-<blockquote>
-<pre>
-<i>A</i>::<i>A</i>() noexcept = default;
-</pre>
-<blockquote>
-<p>
--4- <i>Effects:</i> <del>leaves the atomic object in an uninitialized state</del><ins>Default-initializes (8.5 [dcl.init]) 
-the <i>C</i> value referred to by the atomic object</ins>. [<i>Note:</i> These semantics ensure compatibility with <tt>C</tt>. 
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<pre>
-constexpr <i>A</i>::<i>A</i>(<i>C</i> desired) noexcept;
-</pre>
-<blockquote>
-<p>
--5- <i>Effects:</i> <ins>Direct-i</ins><del>I</del>nitializes the <ins><i>C</i> value referred to by the atomic</ins> object 
-with the value <tt>desired</tt>. Initialization is not an atomic operation (1.10). [&hellip;]
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-void atomic_init(volatile <i>A</i>* object, <i>C</i> desired) noexcept;
-void atomic_init(<i>A</i>* object, <i>C</i> desired) noexcept;
-</pre>
-<blockquote>
-<p>
--8- <i>Effects:</i> Non-atomically initializes <ins>the <i>C</i> value referred to by</ins> <tt>*object</tt> with value 
-<tt>desired</tt>. [&hellip;]
-</p>
-</blockquote>
-
-<pre>
-void atomic_store(volatile <i>A</i>* object, <i>C</i> desired) noexcept;
-[&hellip;]
-void <i>A</i>::store(<i>C</i> desired, memory_order order = memory_order_seq_cst) noexcept;
-</pre>
-<blockquote>
-<p>
--9- [&hellip;]
-<p/>
--10- <i>Effects:</i> Atomically replaces the <ins><i>C</i></ins> value pointed to by 
-<tt>object</tt> or by <tt>this</tt> with the value of <tt>desired</tt>. [&hellip;]
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-<i>C</i> atomic_load(const volatile <i>A</i>* object) noexcept;
-[&hellip;]
-<i>C</i> <i>A</i>::load(memory_order order = memory_order_seq_cst) const noexcept;
-</pre>
-<blockquote>
-<p>
--13- [&hellip;]
-<p/>
--14- [&hellip;]
-<p/>
--15- <i>Returns:</i> Atomically returns the <ins><i>C</i></ins> value pointed to by <tt>object</tt> or by <tt>this</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-<i>C</i> atomic_exchange(volatile <i>A</i>* object, C desired) noexcept;
-[&hellip;]
-<i>C</i> <i>A</i>::exchange(C desired, memory_order order = memory_order_seq_cst) noexcept;
-</pre>
-<blockquote>
-<p>
--18- <i>Effects</i>: Atomically replaces the <ins><i>C</i></ins> value pointed to by <tt>object</tt> or by <tt>this</tt> with <tt>desired</tt>. [&hellip;]
-<p/>
--19- <i>Returns:</i> Atomically returns the <ins><i>C</i></ins> value pointed to by <tt>object</tt> or by <tt>this</tt> 
-immediately before the effects.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-<i>C</i> atomic_fetch_key(volatile <i>A</i>* object, <i>M</i> operand) noexcept;
-[&hellip;]
-<i>C</i> <i>A</i>::fetch_key(<i>M</i> operand, memory_order order = memory_order_seq_cst) noexcept;
-</pre>
-<blockquote>
-<p>
--28- <i>Effects</i>: Atomically replaces the <ins><i>C</i></ins> value pointed to by <tt>object</tt> or by <tt>this</tt> with 
-the result of the computation applied to the <ins><i>C</i></ins> value pointed to by <tt>object</tt> or by <tt>this</tt> and 
-the given <tt>operand</tt>. [&hellip;]
-<p/>
--29- <i>Returns:</i> Atomically<del>,</del> <ins>returns</ins> the <ins><i>C</i></ins> value pointed to by <tt>object</tt>
-or by <tt>this</tt> immediately before the effects.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-
-<li><p>Modify 29.7 [atomics.flag] p5 and the following as indicated:</p>
-
-<blockquote>
-<pre>
-bool atomic_flag_test_and_set(volatile atomic_flag* object) noexcept;
-[&hellip;]
-bool atomic_flag::test_and_set(memory_order order = memory_order_seq_cst) noexcept;
-</pre>
-<blockquote>
-<p>
--5- <i>Effects</i>: Atomically sets the <ins>bool</ins> value pointed to by <tt>object</tt> or by <tt>this</tt> to <tt>true</tt>. 
-[&hellip;]
-<p/>
--6- <i>Returns</i>: Atomically<del>,</del> <ins>returns</ins> the <ins>bool</ins> value <del>of the</del><ins>pointed 
-to by</ins> <tt>object</tt> <ins>or by <tt>this</tt></ins> immediately before the effects.
-</p>
-</blockquote>
-
-<pre>
-void atomic_flag_clear(volatile atomic_flag* object) noexcept;
-[&hellip;]
-void atomic_flag::clear(memory_order order = memory_order_seq_cst) noexcept;
-</pre>
-<blockquote>
-<p>
--7- [&hellip;]
-<p/>
--8- <i>Effects</i>: Atomically sets the <ins>bool</ins> value pointed to by <tt>object</tt> or by <tt>this</tt> to <tt>false</tt>. 
-[&hellip;]
-</p>
-</blockquote>
-
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2335"></a>2335. <tt>array&lt;array&lt;int, 3&gt;, 4&gt;</tt> should be layout-compatible with <tt>int[4][3]</tt></h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2013-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In order to replace some uses of C arrays with <tt>std::array</tt>, we need it
-to be possible to cast from a <tt>std::array&lt;&gt;</tt> to an equivalent C array.
-Core wording doesn't appear to be in quite the right state to allow
-casting, but if we specify that appropriate types are
-layout-compatible, we can at least write:
-</p>
-<blockquote><pre>
-union {
-  array&lt;array&lt;array&lt;int, 2&gt;, 3&gt;, 4&gt; arr;
-  int carr[4][3][2];
-};
-</pre></blockquote>
-<p>
-to view memory as the other type: C++14 CD [class.mem]p18.
-</p>
-I believe it's sufficient to add "<tt>array&lt;T, N&gt;</tt> shall be
-layout-compatible (3.9 [basic.types]) with <tt>T[N]</tt>." to 
-23.3.2.1 [array.overview], but we might also need some extension to 
-9.2 [class.mem] to address the possibility of layout-compatibility 
-between struct and array types.
-<p>
-I checked that libc++ on MacOS already implements this, although it
-would be good for someone else to double-check; I haven't checked any
-other standard libraries.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2336"></a>2336. <tt>is_trivially_constructible/is_trivially_assignable</tt> traits are always false</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-10-01 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.10.4.3 [meta.unary.prop] we have traits to allow testing for triviality of specific operations, such as
-<tt>is_trivially_constructible</tt> and <tt>is_trivially_assignable</tt> (and their derived forms), which are specified
-in terms of the following initialization and assignment, respectively:
-</p>
-<blockquote><pre>
-T t(create&lt;Args&gt;()...);
-
-declval&lt;T&gt;() = declval&lt;U&gt;()
-</pre></blockquote>
-<p>
-The wording that describes the way how triviality is deduced, is in both cases of the same form:
-</p>
-<blockquote><p>
-[&hellip; ] and the variable definition/assignment, as defined by <tt>is_constructible/is_assignable</tt>, is known
-to call no operation that is not trivial (3.9, 12).
-</p></blockquote>
-<p>
-The problematic part of this wording is that both definitions are specified in terms of an "object construction" function
-<tt>create</tt> or <tt>declval</tt>, respectively, (The former being a conceptual function, the latter being a library function), 
-but for none of these functions we can assume that they could be considered as trivial &mdash; only special member functions can 
-have this property and none of these is one. This problem became obvious, when the similar issue LWG <a href="lwg-defects.html#2298">2298</a> 
-in regard to <tt>is_nothrow_constructible</tt> was opened.
-<p/>
-A possible approach to solve this specification problem is to make a blanket statement for sub-clause 20.10.4.3 [meta.unary.prop]
-that these helper functions are considered trivial for the purpose of defining these traits.
-<p/>
-Using this kind of wording technique can also be used to get rid of the additional helper function template <tt>create</tt>, which
-is currently needed for the <tt>is_convertible</tt> and the <tt>is_constructible</tt> traits, because both traits are specified in
-terms of contexts where technically the corresponding "object construction" function would be considered as odr-used. This is problematic,
-because these traits are defined in terms of well-formed code and odr-using <tt>declval</tt> would make the program ill-formed (see
-20.2.5 [declval]). So extending above blanket statement to consider <tt>std::declval&lt;T&gt;()</tt> as not odr-used
-in the context of the corresponding trait definition would allow for replacing <tt>create</tt> by <tt>declval</tt>.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: would you consider moving the change to 20.10 as editorial or are you uncomfortable with it?<br/>
-JW: this sounds a viable editorial change<br/>
-VV: I guarantee you that moving it doesn't change anything<br/>
-MC: how about this: we move it to Ready as is and if we conclude moving it is editorial we can do it and if not open an issue<br/>
-STL: I would like to guarantee that the lifting happens<br/>
-JW: I do that! If it goes in I move it up<br/>
-MC: move to Ready: in favor: 15, opposed: 0, abstain: 1 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Add a new paragraph after 20.10.4.3 [meta.unary.prop] p3 as indicated: <em>[Editorial note: The first change in
-20.10.4.3 [meta.unary.prop] p3 is recommended, because technically a Clause is always a "main chapter" &mdash; such as
-Clause 20 &mdash; but every child of a Clause or sub-clause is a sub-clause]</em></p>
-
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--3- For all of the class templates <tt>X</tt> declared in this <del>Clause</del><ins>sub-clause</ins>, instantiating that 
-template with a template-argument that is a class template specialization may result in the implicit instantiation of the 
-template argument if and only if the semantics of <tt>X</tt> require that the argument must be a complete type.
-<p/>
-<ins>-?- For the purpose of defining the templates in this sub-clause, a function call expression 
-<tt>declval&lt;T&gt;()</tt> for any type <tt>T</tt> is considered to be a trivial (3.9 [basic.types], 12 [special]) 
-function call that is not an odr-use (3.2 [basic.def.odr]) of <tt>declval</tt> in the context of the corresponding definition 
-notwithstanding the restrictions of 20.2.5 [declval].</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Modify 20.10.4.3 [meta.unary.prop] p7 as indicated:</p>
-
-<blockquote>
-<p>
--7- <del>Given the following function prototype:</del>
-</p>
-<blockquote><pre>
-<del>template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create();</del>
-</pre></blockquote>
-<p>
-<del>t</del><ins>T</ins>he predicate condition for a template specialization <tt>is_constructible&lt;T, Args...&gt;</tt> 
-shall be satisfied if and only if the following variable definition would be well-formed for some invented variable <tt>t</tt>:
-</p>
-<blockquote><pre>
-T t(<del>create</del><ins>declval</ins>&lt;Args&gt;()...);
-</pre></blockquote>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Add a new paragraph after 20.10.6 [meta.rel] p2 as indicated: <em>[Editorial note: Technically we don't need
-the guarantee of "a trivial function call" for the type relationship predicates at the very moment, but it seems more robust and
-consistent to have the exact same guarantee here as well]</em>
-</p>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--2- [&hellip;]
-<p/>
-<ins>-?- For the purpose of defining the templates in this sub-clause, a function call expression 
-<tt>declval&lt;T&gt;()</tt> for any type <tt>T</tt> is considered to be a trivial (3.9 [basic.types], 12 [special]) 
-function call that is not an odr-use (3.2 [basic.def.odr]) of <tt>declval</tt> in the context of the corresponding definition 
-notwithstanding the restrictions of 20.2.5 [declval].</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Modify 20.10.6 [meta.rel] p4 as indicated:</p>
-
-<blockquote>
-<p>
--4- <del>Given the following function prototype:</del>
-</p>
-<blockquote><pre>
-<del>template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create();</del>
-</pre></blockquote>
-<p>
-<del>t</del><ins>T</ins>he predicate condition for a template specialization <tt>is_convertible&lt;From, To&gt;</tt> 
-shall be satisfied if and only if the return expression in the following code would be well-formed, including any implicit 
-conversions to the return type of the function:
-</p>
-<blockquote><pre>
-To test() {
-  return <del>create</del><ins>declval</ins>&lt;From&gt;();
-}
-</pre></blockquote>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2337"></a>2337. <tt>shared_ptr operator*()</tt> should not be <tt>noexcept</tt></h3>
-<p><b>Section:</b> 20.8.2.2.5 [util.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#NAD">Tentatively NAD</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.obs">issues</a> in [util.smartptr.shared.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Tentatively NAD">Tentatively NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.1.2.4 [unique.ptr.single.observers]/3: "<tt>pointer operator-&gt;() const noexcept;</tt> <i>Requires:</i> <tt>get() != nullptr</tt>."
-<p/>
-20.8.2.2.5 [util.smartptr.shared.obs]/2: "<tt>T&amp; operator*() const noexcept;</tt> <i>Requires:</i> <tt>get() != 0</tt>."
-<p/>
-20.8.2.2.5 [util.smartptr.shared.obs]/5: "<tt>T* operator-&gt;() const noexcept;</tt> <i>Requires:</i> <tt>get() != 0</tt>."
-<p/>
-Narrow-contract functions should not be <tt>noexcept</tt>.
-</p>
-
-<p><i>[2014-02-15 Issaquah]</i></p>
-
-<p>
-Issue is contentious, raise to P2.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-AM: This ship has sailed. JM: What's the issue? AM: <tt>operator-&gt;</tt> has narrow contract and should never have had 
-<tt>noexcept</tt>. DK: Not quite. We explicitly called out that for <tt>shared_ptr</tt> this is fine. You said so in your 
-"narrow contract" paper. GR: This would be a fairly major regression in the design of {<tt>unique</tt>,<tt>shared</tt>}<tt>_ptr</tt> 
-over raw pointers; raw pointer dereferencing is <tt>noexcept</tt>. It's not a performance regression but a usability regression. 
-AM: Do we expect users to query <tt>noexpect</tt> on dereference expressions? Room: Yes. VV: We don't just expect it, we have 
-seen it. JM: Yes, users may be querying something like <tt>noexcept(x-&gt;y)</tt> and expect to be checking <tt>y</tt>, but 
-silently end up checking <tt>x-&gt;</tt>. 
-<p/>
-Close as NAD, with explanation from GR.
-</p>
-
-<strong>Previous resolution [SUPERSEDED]:</strong>
-<blockquote class="note">
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>In 20.8.1.2 [unique.ptr.single]/1, class template <tt>unique_ptr</tt> synopsis for single objects, change as indicated:</p>
-
-<blockquote><pre>
-pointer operator-&gt;() const <del>noexcept</del>;
-</pre></blockquote>
-</li>
-
-<li><p>In 20.8.1.2.4 [unique.ptr.single.observers] change as indicated:</p>
-
-<blockquote><pre>
-pointer operator-&gt;() const <del>noexcept</del>;
-</pre><blockquote>
-<p>
--3- <i>Requires:</i> <tt>get() != nullptr</tt>.
-<p/>
--4- <i>Returns:</i> <tt>get()</tt>.
-<p/>
-<ins>-?- <i>Throws:</i> Nothing.</ins>
-<p/>
--5- <i>Note:</i> use typically requires that <tt>T</tt> be a complete type.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>In 20.8.2.2 [util.smartptr.shared]/1, class template <tt>shared_ptr</tt> synopsis, change as indicated:</p>
-
-<blockquote><pre>
-T&amp; operator*() const <del>noexcept</del>;
-T* operator-&gt;() const <del>noexcept</del>;
-</pre></blockquote>
-</li>
-
-<li><p>In 20.8.2.2.5 [util.smartptr.shared.obs] change as indicated:</p>
-
-<blockquote><pre>
-T&amp; operator*() const <del>noexcept</del>;
-</pre><blockquote>
-<p>
--2- <i>Requires:</i> <tt>get() != 0</tt>.
-<p/>
--3- <i>Returns:</i> <tt>*get()</tt>.
-<p/>
-<ins>-?- <i>Throws:</i> Nothing.</ins>
-<p/>
--4- <i>Remarks:</i> When <tt>T</tt> is <tt>void</tt>, it is unspecified whether this member function is declared. 
-If it is declared, it is unspecified what its return type is, except that the declaration (although not necessarily the
-definition) of the function shall be well formed.
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-T* operator-&gt;() const <del>noexcept</del>;
-</pre><blockquote>
-<p>
--5- <i>Requires:</i> <tt>get() != 0</tt>.
-<p/>
--6- <i>Returns:</i> <tt>get()</tt>.
-<p/>
-<ins>-?- <i>Throws:</i> Nothing.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2015-03-03, Geoffrey provides rationale]</i></p>
-
-<p>
-<b>Rationale</b>:
-</p>
-<blockquote>
-<p>
-It is by design that these members are <tt>noexcept</tt>, and changing that now would be a substantial regression in functionality. 
-These classes were designed to substitute for plain pointers as transparently as possible, so since those operations are effectively 
-<tt>noexcept</tt> on plain pointers, they should be <tt>noexcept</tt> on <tt>unique_ptr</tt> and <tt>shared_ptr</tt> as well. 
-This matters in practice because we expect these members to be used fairly often inside the <tt>noexcept</tt> operator, and such 
-code could be broken by this change. These design considerations override our general policy against <tt>noexcept</tt> for 
-narrow-contract functions.
-<p/>
-It is notable that N3279, which proposed this policy, did not propose striking <tt>noexcept</tt> from these operations. It's not 
-clear if the omission of <tt>operator*</tt> and <tt>operator-&gt;</tt> was an oversight, or an intentional reflection of the above 
-considerations. N3279 was based on N3248 by the same authors, which states that:
-</p>
-<blockquote>
-<p>
-"Most applications of <tt>noexcept</tt> for <tt>unique_ptr</tt> and <tt>shared_ptr</tt> are on functions with wide contracts. 
-However, there are preconditions on the atomic access functions, so these should lose the specification."
-</p>
-</blockquote>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2338"></a>2338. [re.traits]/7 expects of locale facets something not guaranteed by [locale.facet]/4</h3>
-<p><b>Section:</b> 28.7 [re.traits], 22.3.1.1.2 [locale.facet] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Sergey Zubkov <b>Opened:</b> 2013-10-15 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.traits">issues</a> in [re.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.7 [re.traits]/7, begins with "if <tt>typeid(use_facet&lt;collate&lt;charT&gt; &gt;) == typeid(collate_byname&lt;charT&gt;)</tt>", 
-which appears to be pseudocode with the intention to convey that the collate facet has not been replaced by the user. Cf. the wording in 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1429.htm">N1429</a> "there is no portable way to implement 
-<tt>transform_primary</tt> in terms of <tt>std::locale</tt>, since even if the sort key format returned by 
-<tt>std::collate_byname&lt;&gt;::transform</tt> is known and can be converted into a primary sort key, the user can still 
-install their own custom <tt>std::collate</tt> implementation into the locale object used, and that can use any sort key 
-format they see fit.".
-<p/>
-Taken literally, 28.7 [re.traits]/7 appears to imply that named locales are required to hold their collate facets with 
-dynamic type <tt>std::collate_byname&lt;charT&gt;</tt>, which is in fact true in some implementations (e.g libc++), but not others 
-(e.g. libstdc++). This does not follow from the description of <tt>_byname</tt> in 22.3.1.1.2 [locale.facet]/4, which is only 
-required to provide equivalent semantics, to the named locale's facet, not to actually be one.
-</p>
-
-
-<p><i>[2015-05-06 Lenexa: Move to Open]</i></p>
-
-
-<p>MC, RP: Consequence of failing to follow the rule is UB.</p>
-<p>MC: Tightening of requirements.</p>
-<p>RP: It should be this way, we just didn't impose it before.</p>
-<p>MC: Second change is a bug fix, original code didn't work.</p>
-<p>TK: Doesn't seem to make things worse.</p>
-<p>Bring up in larger group tomorrow.</p>
-<p>JW arrives.</p>
-<p>JW: libstdc++ violates this due to two std::string ABIs.</p>
-<p>JW: This prevents installing a type derived from Facet_byname, constrains the implementor from using a smarter derived class version.</p>
-<p>JW: Can't look at facet id to detect replacement, because replacements have the same id.</p>
-<p>RP: Can you give it multiple ids through multiple inheritance?</p>
-<p>JW: No, the facet mechanism wouldn't like that.</p>
-<p>JW: We should also ask Martin Sebor, he's implemented this stuff recently.</p>
-<p>MC: Sounds like this resolution doesn't work, need a better solution.</p>
-<p>JW: Write in words "if the facet has not been replaced by the user", the implementation knows how to detect that, but not like this.</p>
-<p>RP: User RE traits need to detect this too.</p>
-<p>JW: =(</p>
-<p>Move to Open, JW will invite Martin Sebor to join LWG for discussion.</p>
-<p>Later ... </p>
-<p>JW: This is not needed for user specializations after all.</p>
-<p>MC: Agree, [re.traits]/7 only applies to the stdlib traits.</p>
-<p>NM: Effects: doesn't make sense.</p>
-<p>JW, NM, Martin Sebor to come up with new wording.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Modify 22.3.1.1.2 [locale.facet]/4 as indicated:</p>
-
-<blockquote><p>
-For some standard facets a standard "...<tt>_byname</tt>" class, derived from it, implements the virtual function
-semantics <del>equivalent to</del><ins>provided by</ins> that facet of the locale constructed by <tt>locale(const char*)</tt> 
-with the same name.
-Each such facet provides a constructor that takes a <tt>const char*</tt> argument, which names the locale, and a
-<tt>refs</tt> argument, which is passed to the base class constructor. Each such facet also provides a constructor
-that takes a string argument <tt>str</tt> and a <tt>refs</tt> argument, which has the same effect as calling the first
-constructor with the two arguments <tt>str.c_str()</tt> and <tt>refs</tt>. If there is no "...<tt>_byname</tt>" 
-version of a facet, the base class implements named locale semantics itself by reference to other facets. <ins>For any 
-locale <tt>loc</tt> constructed by <tt>locale(const char*)</tt> and facet <tt>Facet</tt> that has a corresponding standard 
-<tt>Facet_byname</tt> class, <tt>typeid(use_facet&lt;Facet&gt;(loc)) == typeid(Facet_byname)</tt>.</ins>
-</p></blockquote>
-</li>
-
-<li><p>Modify 28.7 [re.traits]/7 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class ForwardIterator&gt;
-  string_type transform_primary(ForwardIterator first, ForwardIterator last) const;
-</pre><blockquote>
-<p>
--7- <i>Effects:</i> if <tt>typeid(use_facet&lt;collate&lt;charT&gt; &gt;<ins>(getloc())</ins>) == typeid(collate_byname&lt;charT&gt;)</tt> 
-and the form of the sort key returned by <tt>collate_byname&lt;charT&gt;::transform(first, last)</tt> is known and
-can be converted into a primary sort key then returns that key, otherwise returns an empty string.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2342"></a>2342. User conversion to <tt>wchar_t const*</tt> or to <tt>wchar_t</tt> not invoked for <tt>operator&lt;&lt;</tt></h3>
-<p><b>Section:</b> 27.7.3.1 [ostream] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Alf P. Steinbach <b>Opened:</b> 2013-10-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream">issues</a> in [ostream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For wide streams argument types <tt>wchar_t const*</tt> and <tt>wchar_t</tt> are supported only as template parameters. 
-User defined conversions are not considered for template parameter matching. Hence inappropriate overloads of 
-<tt>operator&lt;&lt;</tt> are selected when an implicit conversion is required for the argument, which is inconsistent 
-with the behavior for <tt>char const*</tt> and <tt>char</tt>, is unexpected, and is a useless result.
-<p/>
-Demonstration:
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-
-struct Byte_string
-{ 
-  operator char const*() const { return "Hurray, it works!"; } 
-};
-
-struct Wide_string
-{ 
-  operator wchar_t const*() const { return L"Hurray, it works!"; } 
-};
-
-struct Byte_ch
-{ 
-  operator char() const { return 'X'; } 
-};
-
-struct Wide_ch
-{ 
-  operator wchar_t() const { return L'X'; } 
-};
-
-auto main() -> int
-{
-  using namespace std;
-  wcout &lt;&lt; "'X' as char value   : " &lt;&lt; Byte_ch() &lt;&lt; endl;
-  wcout &lt;&lt; "'X' as wchar_t value: " &lt;&lt; Wide_ch() &lt;&lt; endl;
-  wcout &lt;&lt; "Byte string pointer : " &lt;&lt; Byte_string() &lt;&lt; endl;
-  wcout &lt;&lt; "Wide string pointer : " &lt;&lt; Wide_string() &lt;&lt; endl;
-}
-</pre></blockquote>
-<p>
-Example output:
-</p>
-<blockquote><pre>
-'X' as char value   : X
-'X' as wchar_t value: 88
-Byte string pointer : Hurray, it works!
-Wide string pointer : 000803C8
-</pre></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Modify 27.7.3.1 [ostream], class template <tt>basic_ostream</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-[&hellip;]
-
-<i>// 27.7.3.6.4 character inserters</i>
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp;,
-                                          charT);
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp;,
-                                          char);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp;,
-                                         char);
-<ins>template&lt;class traits&gt;
-  basic_ostream&lt;wchar_t,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;wchar_t,traits&gt;&amp;,
-                                            wchar_t);</ins>
-[&hellip;]
-
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp;,
-                                          const charT*);
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp;,
-                                          const char*);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp;,
-                                         const char*);
-<ins>template&lt;class traits&gt;
-  basic_ostream&lt;wchar_t,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;wchar_t,traits&gt;&amp;,
-                                            const wchar_t*);</ins>
-[&hellip;]
-}
-
-</pre></blockquote>
-</li>
-
-<li><p>Modify 27.7.3.6.4 [ostream.inserters.character] as indicated: <em>[Drafting note: 
-The replacement of <tt>os</tt> by <tt>out</tt> in p1 and the insertion of "<tt>out.</tt>" in p4 
-just fix two obvious typos &mdash; end drafting note]</em></p>
-
-<blockquote><pre>
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          charT c);
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          char c);
-<i>// specialization</i>
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         char c);
-<ins>template&lt;class traits&gt;
-  basic_ostream&lt;wchar_t,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;wchar_t,traits&gt;&amp; out,
-                                            wchar_t c);</ins>
-
-<i>// signed and unsigned</i>
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                          signed char c);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                          unsigned char c);
-</pre><blockquote>
-<p>
--1- <i>Effects:</i> Behaves as a formatted output function (27.7.3.6.1 [ostream.formatted.reqmts]) of <tt>out</tt>. 
-Constructs a character sequence <tt>seq</tt>. If <tt>c</tt> has type <tt>char</tt> and the character type of the stream 
-is not <tt>char</tt>, then <tt>seq</tt> consists of <tt>out.widen(c)</tt>; otherwise <tt>seq</tt> consists of <tt>c</tt>. 
-Determines padding for <tt>seq</tt> as described in 27.7.3.6.1 [ostream.formatted.reqmts]. Inserts <tt>seq</tt> into 
-<tt>out</tt>. Calls <tt><del>os</del><ins>out</ins>.width(0)</tt>.
-<p/>
--2- <i>Returns:</i> <tt>out</tt>.
-</p>
-</blockquote>
-<pre>
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          const charT* s);
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          const char* s);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         const char* s);
-<ins>template&lt;class traits&gt;
-  basic_ostream&lt;wchar_t,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;wchar_t,traits&gt;&amp; out,
-                                            const wchar_t* s);</ins>
-											
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         const signed char* s);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         const unsigned char* s);
-</pre><blockquote>
-<p>
--3- <i>Requires:</i> <tt>s</tt> shall not be a null pointer.
-<p/>
--4- <i>Effects:</i> Behaves like a formatted inserter (as described in 27.7.3.6.1 [ostream.formatted.reqmts]) of <tt>out</tt>. 
-Creates a character sequence <tt>seq</tt> of <tt>n</tt> characters starting at <tt>s</tt>, each widened using <tt>out.widen()</tt> 
-(27.5.5.3), where <tt>n</tt> is the number that would be computed as if by:
-</p>
-<ul>
-<li><p>
-<tt>traits::length(s)</tt> for the <ins>following</ins> overload<ins>s:</ins>
-<ul>
-<li><p>
-where the first argument is of type <tt>basic_ostream&lt;charT, traits&gt;&amp;</tt> 
-and the second is of type <tt>const charT*</tt>,
-</p></li>
-<li><p>
-<del>and also for the overload</del> where the first argument is of type 
-<tt>basic_ostream&lt;char, traits&gt;&amp;</tt> and the second is of type <tt>const char*</tt>,
-</p></li>
-<li><p>
-<ins>where the first argument is of type 
-<tt>basic_ostream&lt;wchar_t, traits&gt;&amp;</tt> and the second is of type <tt>const wchar_t*</tt>,</ins>
-</p></li>
-</ul> 
-</p></li>
-<li><p>
-<tt>std::char_traits&lt;char&gt;::length(s)</tt> for the overload where the first argument is of type
-<tt>basic_ostream&lt;charT, traits&gt;&amp;</tt> and the second is of type <tt>const char*</tt>,
-</p></li>
-<li><p>
-<tt>traits::length(reinterpret_cast&lt;const char*&gt;(s))</tt> for the other two overloads.
-</p></li>
-</ul>
-<p>
-Determines padding for <tt>seq</tt> as described in 27.7.3.6.1 [ostream.formatted.reqmts]. Inserts <tt>seq</tt> into 
-<tt>out</tt>. Calls <tt><ins>out.</ins>width(0)</tt>.
-<p/>
--5- <i>Returns:</i> <tt>out</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2343"></a>2343. Is the value of the ECMA-262 RegExp object's multiline property really false?</h3>
-<p><b>Section:</b> 28.13 [re.grammar] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Nayuta Taga <b>Opened:</b> 2013-10-30 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.grammar">issues</a> in [re.grammar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the following "Multiline" is the value of the ECMA-262 RegExp object's multiline property.
-<p/>
-In <a href="http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf">ECMA-262</a>, 
-there are some definitions that relate to Multiline:
-</p>
-<ul>
-<li><p>
-ECMA-262 15.10.2.6:
-</p>
-<blockquote>
-<p>
-If Multiline is true, ^ matches just after LineTerminator.
-<p/>
-If Multiline is false, ^ does not match just after LineTerminator.
-<p/>
-If Multiline is true, $ matches just before LineTerminator.
-<p/>
-If Multiline is false, $ does not match just before LineTerminator.
-</p>
-</blockquote>
-</li>
-<li>
-<p>
-ECMA-262 15.10.4.1, 15.10.7.4:
-</p>
-<blockquote><p>
-By default, Multiline is false.
-</p></blockquote>
-</li>
-</ul>
-<p>
-So, the C++11 standard says that Multiline is false. As it is false,
-^ matches only the beginning of the string, and $ matches only the end
-of the string.
-<p/>
-However, two flags are defined in 28.5.2 [re.matchflag] Table 139:
-</p>
-<blockquote>
-<p>
-<tt>match_not_bol</tt>: the character ^ in the regular expression shall not match <tt>[first,first)</tt>.
-<p/>
-<tt>match_not_eol</tt>: the character "$" in the regular expression shall not match <tt>[last,last)</tt>.
-</p>
-</blockquote>
-<p>
-As Multiline is false, the <tt>match_not_bol</tt> and the <tt>match_not_eol</tt> are
-meaningless because they only make ^ and $ match none.
-<p/>
-In my opinion, Multiline should be true.
-<p/>
-FYI, Multiline of the existing implementations are as follows:
-<p/>
-<em>Multiline=false:</em>
-</p>
-<ul>
-<li><p>
-libstdc++ r206594
-</p></li>
-<li><p>
-libc++ r199174
-</p></li>
-</ul>
-<p>
-<em>Multiline=true:</em>
-</p>
-<ul>
-<li><p>
-Visual Studio Express 2013
-</p></li>
-<li><p>
-boost 1.55
-</p></li>
-</ul>
-
-<p><i>[2015-05-22, Daniel comments]</i></p>
-
-<p>
-This issue interacts with LWG <a href="lwg-active.html#2503">2503</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2348"></a>2348. <tt>charT('1')</tt> is not the wide equivalent of <tt>'1'</tt></h3>
-<p><b>Section:</b> 20.6 [template.bitset], 27.7.6 [quoted.manip] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2013-12-02 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Example: <tt>char16_t('1') != u'1'</tt> is possible.
-<p/>
-The numeric value of <tt>char16_t</tt> is defined to be Unicode
-code point, which is same to the ASCII value and UTF-8 for
-7-bit chars.  However, <tt>char</tt> is not guaranteed to have an
-encoding which is compatible with ASCII. For example, <tt>'1'</tt> in EBCDIC is 241.
-<p/>
-I found three places in the standard casting narrow char
-literals: <tt>bitset::bitset</tt>, <tt>bitset::to_string</tt> and <tt>quoted</tt>.
-<p/>
-PJ confirmed this issue and says he has a solution used
-in their <tt>&lt;filesystem&gt;</tt> implementation, and he may want to
-propose it to the standard.
-<p/>
-The solution in my mind, for now, is to make those default
-arguments magical, where the "magic" can be implemented
-with a C11 <tt>_Generic</tt> selection (works in clang):
-</p>
-<blockquote><pre>
-#define _G(T, literal) _Generic(T{}, \
-      char: literal, \
-      wchar_t: L ## literal, \
-      char16_t: u ## literal, \
-      char32_t: U ## literal)
-
-  _G(char16_t, '1') == u'1'
-</pre></blockquote>
-
-<p><i>[Lenexa 2015-05-05: Move to Open]</i></p>
-
-<p>Ask for complete PR (need quoted, to string, et al.)</p>
-<p>Will then take it up again</p>
-<p>Expectation is that this is correct way to fix this</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-[<i>Drafting note:</i> This is a sample wording fixing only one case;
- I'm just too lazy to copy-paste it before we discussed whether
- the solution is worth and sufficient (for example, should the
- other `charT`s like `unsigned char` just don't compile without
- supplying those arguments?  I hope so). &mdash; <i>end drafting note</i>]
-
-<ol>
-<li><p>Modify 20.6 [template.bitset] p1, class template <tt>bitset</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;size_t N&gt; class bitset {
-  public:
-    [&hellip;]
-    template&lt;class charT, class traits, class Allocator&gt;
-      explicit bitset(
-        const basic_string&lt;charT,traits,Allocator&gt;&amp; str,
-        typename basic_string&lt;charT,traits,Allocator&gt;::size_type pos = 0,
-        typename basic_string&lt;charT,traits,Allocator&gt;::size_type n =
-          basic_string&lt;charT,traits,Allocator&gt;::npos,
-          charT zero = <del>charT('0')</del><ins><em>see below</em></ins>, charT one = <del>charT('1')</del><ins><em>see below</em></ins>);
-     [&hellip;]
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify 20.6.1 [bitset.cons] as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-explicit 
-bitset(const basic_string&lt;charT, traits, Allocator&gt;&amp; str,
-       typename basic_string&lt;charT, traits, Allocator&gt;::size_type pos = 0,
-       typename basic_string&lt;charT, traits, Allocator&gt;::size_type n =
-         basic_string&lt;charT, traits, Allocator&gt;::npos,
-         charT zero = <del>charT('0')</del><ins><em>see below</em></ins>, charT one = <del>charT('1')</del><ins><em>see below</em></ins>);
-</pre><blockquote>
-<p>
-<ins>-?- The default values of <tt>zero</tt> and <tt>one</tt> compare equal to the
-character literals <tt>0</tt> and <tt>1</tt> of type <tt>charT</tt>, respectively.</ins>
-<p/>
--3- <i>Requires::</i> <tt>pos &lt;= str.size()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2349"></a>2349. Clarify input/output function rethrow behavior</h3>
-<p><b>Section:</b> 27.7.2.2.1 [istream.formatted.reqmts] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2013-12-06 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.reqmts">issues</a> in [istream.formatted.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The formatted input function requirement says in 27.7.2.2.1 [istream.formatted.reqmts]:
-</p>
-<blockquote><p>
-"If an exception is thrown during input then <tt>ios::badbit</tt> is turned on
-in <tt>*this</tt>'s error state.  If <tt>(exceptions()&amp;badbit) != 0</tt> then the exception
-is rethrown."
-</p></blockquote>
-<p>
-while some formatted function may throw an exception from <tt>basic_ios::clear</tt>, for example
-in 20.6.4 [bitset.operators] p6:
-</p>
-<blockquote><p>
-"If no characters are stored in <tt>str</tt>, calls <tt>is.setstate(ios_base::failbit)</tt> (which may 
-throw <tt>ios_base::failure</tt>)"
-</p></blockquote>
-<p>
-So should this exception be considered as "an exception [...] thrown
-during input"?  And here is an implementation divergence (or you
-can read the following as "a bug libc++ only has" :)
-</p>
-<blockquote><pre>
-cin.exceptions(ios_base::failbit);
-bitset&lt;N&gt; b;
-try {
-  cin &gt;&gt; b;  // type 'a' and return
-} catch (...)
-{}
-</pre></blockquote>
-<p>
-Now <tt>cin.rdstate()</tt> is just <tt>failbit</tt> in libstdc++ (and Dinkumware, by
-PJ), but <tt>failbit &amp; badbit</tt> libc++. Similar difference found in other
-places, like <tt>eofbit &amp; badbid</tt> after <tt>std::getline</tt>.
-<p/>
-PJ and Matt both agree that the intention (of <tt>badbit</tt> + rethrow) is
-"to signify an exception arising in user code, not the iostreams package".
-<p/>
-In addition, I found the following words in unformatted input
-function's requirements (27.7.2.3 [istream.unformatted]):
-</p>
-<blockquote><p>
-If an exception is thrown during input then <tt>ios::badbit</tt> is turned on
-in <tt>*this</tt>'s error state. (Exceptions thrown from <tt>basic_ios&lt;&gt;::clear()</tt>
-are not caught or rethrown.)  If <tt>(exceptions()&amp;badbit) != 0</tt> then the
-exception is rethrown.
-</p></blockquote>
-<p>
-The content within the parenthesis is added by LWG defect <a href="lwg-defects.html#61">61</a>,
-and does fix the ambiguity. However, it only fixed the 1 of 4
-requirements, and it lost some context (the word "rethrown" is not
-seen before this sentence within this section).
-</p>
-
-<p><i>[Lenexa 2015-05-07: Marshall to research and report]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-[<i>Drafting note:</i> The editor is kindly asked to introduce additional spaces at the following marked occurrences of
-<tt>operator&amp;</tt> &mdash; <i>end drafting note</i>]
-
-<ol>
-<li><p>Modify 27.7.2.2.1 [istream.formatted.reqmts] p1 as indicated:</p>
-
-<blockquote><p>
--1- Each formatted input function begins execution by constructing an object of class <tt>sentry</tt> with the <tt>noskipws</tt>
-(second) argument false. If the <tt>sentry</tt> object returns true, when converted to a value of type <tt>bool</tt>, the
-function endeavors to obtain the requested input. If an exception<ins>, other than the ones thrown from <tt>clear()</tt>, if any,</ins> 
-is thrown during input then <tt>ios::badbit</tt>
-is turned on[Footnote 314] in <tt>*this</tt>'s error state. If <tt>(exceptions()<ins> </ins>&amp;<ins> </ins>badbit) != 0</tt> 
-then the exception is rethrown.
-In any case, the formatted input function destroys the <tt>sentry</tt> object. If no exception has been thrown, it returns <tt>*this</tt>.
-</p></blockquote>
-</li>
-
-<li><p>Modify 27.7.3.6.1 [ostream.formatted.reqmts] p1 as indicated:</p>
-
-<blockquote><p>
--1- Each formatted output function begins execution by constructing an object of class <tt>sentry</tt>. If this object
-returns true when converted to a value of type <tt>bool</tt>, the function endeavors to generate the requested
-output. If the generation fails, then the formatted output function does <tt>setstate(ios_base::failbit)</tt>,
-which might throw an exception. If an exception<ins>, other than the ones thrown from <tt>clear()</tt>, if any,</ins> is thrown 
-during output, then <tt>ios::badbit</tt> is turned on[Footnote 327]
-in <tt>*this</tt>'s error state. If <tt>(exceptions()<ins> </ins>&amp;<ins> </ins>badbit) != 0</tt> then the exception is rethrown. 
-Whether or not
-an exception is thrown, the <tt>sentry</tt> object is destroyed before leaving the formatted output function. If no
-exception is thrown, the result of the formatted output function is <tt>*this</tt>.
-</p></blockquote>
-</li>
-
-<li><p>Modify 27.7.3.7 [ostream.unformatted] p1 as indicated:</p>
-
-<blockquote><p>
--1- Each unformatted output function begins execution by constructing an object of class <tt>sentry</tt>. If this object
-returns true, while converting to a value of type <tt>bool</tt>, the function endeavors to generate the requested
-output. If an exception<ins>, other than the ones thrown from <tt>clear()</tt>, if any,</ins> is thrown during output, 
-then ios::badbit is turned on[Footnote 330] in <tt>*this</tt>'s error state.
-If <tt>(exceptions() &amp; badbit) != 0</tt> then the exception is rethrown. In any case, the unformatted output
-function ends by destroying the <tt>sentry</tt> object, then, if no exception was thrown, returning the value specified
-for the unformatted output function.
-</p></blockquote>
-</li>
-
-<li><p>Modify 27.7.2.3 [istream.unformatted] p1 as indicated:</p>
-
-<blockquote><p>
--1- Each unformatted input function begins execution by constructing an object of class <tt>sentry</tt> with the default
-argument <tt>noskipws</tt> (second) argument true. If the <tt>sentry</tt> object returns true, when converted to a value
-of type <tt>bool</tt>, the function endeavors to obtain the requested input. Otherwise, if the <tt>sentry</tt> constructor exits
-by throwing an exception or if the sentry object returns false, when converted to a value of type <tt>bool</tt>, the
-function returns without attempting to obtain any input. In either case the number of extracted characters
-is set to <tt>0</tt>; unformatted input functions taking a character array of non-zero size as an argument shall also
-store a null character (using <tt>charT()</tt>) in the first location of the array. If an exception<ins>, other than the 
-ones thrown from <tt>clear()</tt>, if any,</ins> is thrown during input
-then <tt>ios::badbit</tt> is turned on[Footnote 317] in <tt>*this</tt>'s error state. <del>(Exceptions thrown from 
-<tt>basic_ios&lt;&gt;::clear()</tt> are not caught or rethrown.)</del> If <tt>(exceptions()<ins> </ins>&amp;<ins> </ins>badbit) != 0</tt> 
-then the exception is rethrown. It also counts the number of characters extracted. If no exception has been thrown it ends 
-by storing the count in a member object and returning the value specified. In any event the <tt>sentry</tt> object is destroyed 
-before leaving the unformatted input function.
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2352"></a>2352. Is a default-constructed <tt>std::seed_seq</tt> intended to produce a predictable <tt>.generate()</tt>?</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2013-12-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With respect to class <tt>seed_seq</tt> 26.5.7.1 [rand.util.seedseq], is a default-constructed 
-<tt>std::seed_seq</tt> intended to produce a predictable <tt>.generate()</tt> sequence?
-<p/>
-Implementations differ.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2353"></a>2353. <tt>std::next</tt> is over-constrained</h3>
-<p><b>Section:</b> 24.4.4 [iterator.operations] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Eric Niebler <b>Opened:</b> 2013-12-24 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.operations">issues</a> in [iterator.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In LWG <a href="lwg-defects.html#1011">1011</a>, <tt>std::next</tt> and <tt>std::prev</tt> were changed 
-from accepting <tt>InputIterator</tt> to accepting
-<tt>ForwardIterator</tt>. This needlessly excludes perfectly legitimate use
-cases. Consider the following hypothetical range-based implementation of
-drop, which creates a view of a range without the first <tt>n</tt> elements:
-</p>
-<blockquote><pre>
-template&lt;typename Distance, typename InputRange&gt;
-iterator_range&lt;range_iterator_t&lt;InputRange&gt;&gt;
-drop(Distance n, InputRange&amp; rng)
-{
-  return make_iterator_range(
-    std::next(std::begin(rng), n),
-    std::end(rng)
-  );
-}
-</pre></blockquote>
-<p>
-I believe this to be a legitimate use case that is currently outlawed by
-the standard without cause. See the discussion beginning at
-<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=35313">c++std-lib-35313</a> 
-for an in-depth discussion of the issue, in which
-Howard Hinnant agreed that it was a defect.
-<p/>
-(Some discussion then ensued about whether an overload should be added
-that only accepts rvalue <tt>InputIterators</tt> to avoid the surprise that issue
-<a href="lwg-defects.html#1011">1011</a> sought to address. I make no such attempt, nor do I believe it to
-be necessary.)
-<p/>
-Suggested resolution:
-<p/>
-Back out the resolution of <a href="lwg-defects.html#1011">1011</a>.
-</p>
-
-<p><i>[Lenexa 2015-05-07: Move to Ready]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Change 24.3 [iterator.synopsis], header <tt>&lt;iterator&gt;</tt> synopsis, and 24.4.4 [iterator.operations]
-before p.6 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class <del>Forward</del><ins>Input</ins>Iterator&gt;
-  <del>Forward</del><ins>Input</ins>Iterator next(<del>Forward</del><ins>Input</ins>Iterator x,
-    typename std::iterator_traits&lt;<del>Forward</del><ins>Input</ins>Iterator&gt;::difference_type n = 1);
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2358"></a>2358. Apparently-bogus definition of <tt>is_empty</tt> type trait</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-02-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The 'Condition' for <tt>std::is_empty</tt> is listed as:
-</p>
-<blockquote><p>
-"<tt>T</tt> is a class type, but not a union type, with no non-static data members other than bit-fields of length 0, 
-no virtual member functions, no virtual base classes, and no base class <tt>B</tt> for which <tt>is_empty&lt;B&gt;::value</tt> 
-is false."
-</p></blockquote>
-<p>
-This is incorrect: there is no such thing as a non-static data member that is a bit-field of length 0, since bit-fields of 
-length 0 must be unnamed, and unnamed bit-fields are not members (see 9.6 [class.bit] p2).
-<p/>
-It also means that classes such as:
-</p>
-<blockquote><pre>
-struct S {
- int : 3;
-};
-</pre></blockquote>
-<p>
-are empty (because they have no non-static data members). There's implementation divergence on the value of 
-<tt>is_empty&lt;S&gt;::value</tt>.
-<p/>
-I'm not sure what the purpose of <tt>is_empty</tt> is (or how it could be useful), but if it's desirable for the above type to 
-not be treated as empty, something like this could work:
-</p>
-<blockquote><p>
-"<tt>T</tt> is a class type, but not a union type, with no non-static data members <del>other than</del><ins>, no unnamed</ins> 
-bit-fields of <ins>non-zero</ins> length <del>0</del>, no virtual member functions, no virtual base classes, and no base class 
-<tt>B</tt> for which <tt>is_empty&lt;B&gt;::value</tt> is false."
-</p></blockquote>
-<p>
-and if the above type <em>should</em> be treated as empty, then this might be appropriate:
-</p>
-<blockquote><p>
-"<tt>T</tt> is a class type, but not a union type, with no <ins>(named)</ins> non-static data members <del>other than bit-fields of 
-length 0</del>, no virtual member functions, no virtual base classes, and no base class <tt>B</tt> for which 
-<tt>is_empty&lt;B&gt;::value</tt> is false."
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2362"></a>2362. unique, associative <tt>emplace()</tt> should not move/copy the <tt>mapped_type</tt> constructor arguments when no insertion happens</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2014-02-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>a_uniq.emplace(args)</tt> is specified as:
-</p>
-
-<blockquote><p>
-<i>Effects</i>: Inserts a value_type object <tt>t</tt> constructed with<br/>
-<tt>std::forward&lt;Args&gt;(args)...</tt> if and only if there is no element in the<br/>
-container with key equivalent to the key of <tt>t</tt>. The <tt>bool</tt> component of<br/>
-the returned pair is true if and only if the insertion takes place,<br/>
-and the iterator component of the pair points to the element with key<br/>
-equivalent to the key of <tt>t</tt>. 
-</p></blockquote>
-
-<p>
-However, we occasionally find code of the form:
-</p>
-
-<blockquote><pre>
-std::unique_ptr&lt;Foo&gt; p(new Foo);
-auto res = m.emplace("foo", std::move(p));
-</pre></blockquote>
-
-<p>
-where we'd like to avoid destroying the <tt>Foo</tt> if the insertion doesn't
-take place (if the container already had an element with the specified key).
-<p/>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3873">N3873</a> includes
-a partial solution to this in the form of a new <tt>emplace_stable</tt> member function, but LEWG's 
-discussion strongly agreed that we'd rather have <tt>emplace()</tt> Just Work:
-<p/>
-Should <tt>map::emplace()</tt> be guaranteed not to move/copy its arguments if the insertion doesn't happen?
-<p/>
-SF: 8 F: 3 N: 0 A: 0 SA: 0
-<p/>
-This poll was marred by the fact that we didn't notice or call out
-that <tt>emplace()</tt> must construct the key before doing the lookup, and it
-must not then move the key after it determines whether an insert is
-going to happen, and the <tt>mapped_type</tt> instance must live next to the key.
-<p/>
-The very similar issue <a href="lwg-closed.html#2006">2006</a> was previously marked NAD, with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3178.htm">N3178</a> as
-discussion. However, given LEWG's interest in the alternate behavior,
-we should reopen the question in this issue.
-<p/>
-We will need a paper that describes how to implement this before we can make more progress.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2363"></a>2363. Defect in 30.4.1.4.1 [thread.sharedtimedmutex.class]</h3>
-<p><b>Section:</b> 30.4.1.5.1 [thread.sharedtimedmutex.class] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-02-16 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.4.1.5.1 [thread.sharedtimedmutex.class] paragraph 2: 
-</p>
-<blockquote><p> The class <tt>shared_timed_mutex</tt> shall satisfy all of the 
-<tt>SharedTimedMutex</tt> requirements (30.4.1.4). It shall be a standard layout class (Clause 9).
-</p></blockquote> 
-<p>
-There's no <tt>SharedTimedMutex</tt> requirements; this name doesn't appear anywhere else in the standard. (Prior to N3891, 
-this was <tt>SharedMutex</tt>, which was equally undefined.)
-<p/>
-I assume this concept should be defined somewhere?
-<p/>
-Also, n3891 changes 30.4.1.5 [thread.sharedtimedmutex.requirements] from defining "shared mutex type" to defining 
-"shared timed mutex type", but its paragraph 2 still talks about "shared mutex type". Is that OK? I think you could argue 
-that it's clear enough what it means, but presumably it should use the term that paragraph 1 defined.
-<p/>
-30.4.2.3 [thread.lock.shared] paragraph 1 talks about the "shared mutex requirements", which again is a term that isn't 
-defined, and presumably means "the requirements on a shared timed mutex type" or similar (maybe if <tt>SharedMutex</tt> or 
-<tt>SharedTimedMutex</tt> were defined it could be reused here).
-</p>
-
-<p><i>[2014-05-22, Daniel comments]</i></p>
-
-<p>
-As for <tt>SharedTimedMutex</tt>, there exists a similar problem in regard to <tt>TimedMutex</tt> referred to in
-30.4.1.3.1 [thread.timedmutex.class] p2 and in 30.4.1.3.2 [thread.timedmutex.recursive] p2, but nowhere defined.
-<p/>
-Another problem is, that according to 30.4.1.2.1 [thread.mutex.class] p3, "The class <tt>mutex</tt> shall satisfy all the 
-<tt>Mutex</tt> requirements (30.4.1 [thread.mutex.requirements]).", but there are no concrete <tt>Mutex</tt> requirements,
-30.4.1 [thread.mutex.requirements] &mdash; titled as "Mutex requirements" &mdash; describes <em>mutex types</em>,
-<em>timed mutex types</em>, and <em>shared timed mutex types</em>.
-</p>
-
-<p><i>[2014-06-08, Daniel comments and provides wording]</i></p>
-
-<p>
-The presented wording adds to the existing <em>mutex types</em>, <em>timed mutex types</em>, and <em>shared timed mutex types</em> 
-terms a new set of corresponding <tt>MutexType</tt>, <tt>TimedMutexType</tt>, and <tt>SharedTimedMutexType</tt> requirements. 
-<p/>
-The reason for the change of requirement names is two-fold: First, the new name better matches the intention to have a concrete 
-name for the requirements imposed on the corresponding <em>mutex types</em> (This kind of requirement deviate from the more general
-<tt>Lockable</tt> requirements, which are not restricted to a explicitly enumerated set of library types). Second, using 
-<tt>**MutexType</tt> over <tt>**Mutex</tt> provides the additional advantage that it reduces the chances of confusing named 
-requirements from template parameters named <tt>Mutex</tt> (such as for <tt>unique_lock</tt> or <tt>shared_lock</tt>).
-<p/>
-Nonetheless the here presented wording has one unfortunate side-effect: Once applied it would have the effect that types
-used to instantiate <tt>std::shared_lock</tt> cannot be user-defined shared mutex types due to 30.4.2.3 [thread.lock.shared]. 
-The reason is based on the currently lack of an existing <tt>SharedLockable</tt> requirement set, which would complete the 
-existing <tt>BasicLockable</tt> and <tt>Lockable</tt> requirements (which are "real" requirements). This restriction is not
-actually a problem introduced by the provided resolution but instead one that existed before but becomes more obvious now.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-Thanks to Daniel, and please put it in SG1-OK status.  Perhaps open another issue for the remaining problem Daniel points out?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 30.4.1.2 [thread.mutex.requirements.mutex] as indicated:</p>
-
-<blockquote><p>
--1- The <em>mutex types</em> are the standard library types <tt>std::mutex</tt>, <tt>std::recursive_mutex</tt>, <tt>std::timed_mutex</tt>,
-<tt>std::recursive_timed_mutex</tt>, and <tt>std::shared_timed_mutex</tt>. They shall meet the <ins><tt><em>MutexType</em></tt></ins> 
-requirements set out in this section. In this description, <tt>m</tt> denotes an object of a mutex type.
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.1.2.1 [thread.mutex.class] as indicated:</p>
-
-<blockquote><p>
--3- The class <tt>mutex</tt> shall satisfy all the <tt>Mutex<ins>Type</ins></tt> requirements 
-(<ins>30.4.1.2 [thread.mutex.requirements.mutex]</ins><del>30.4.1 [thread.mutex.requirements]</del>). 
-It shall be a standard-layout class (Clause 9).
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.1.2.2 [thread.mutex.recursive] as indicated:</p>
-
-<blockquote><p>
--2- The class <tt>recursive_mutex</tt> shall satisfy all the <del>Mutex</del><ins><tt>MutexType</tt></ins> requirements 
-(<ins>30.4.1.2 [thread.mutex.requirements.mutex]</ins><del>30.4.1 [thread.mutex.requirements]</del>). 
-It shall be a standard-layout class (Clause 9).
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.1.3 [thread.timedmutex.requirements] as indicated:</p>
-
-<blockquote><p>
--1- The <em>timed mutex types</em> are the standard library types <tt>std::timed_mutex</tt>, <tt>std::recursive_timed_mutex</tt>,
-and <tt>std::shared_timed_mutex</tt>. They shall meet the <ins><tt><em>TimedMutexType</em></tt></ins> requirements set out below. 
-In this description, <tt>m</tt> denotes an object of a mutex type, <tt>rel_time</tt> denotes an object of an instantiation of 
-<tt>duration</tt> (20.12.5), and <tt>abs_time</tt> denotes an object of an instantiation of <tt>time_point</tt> (20.12.6).
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.1.3.1 [thread.timedmutex.class] as indicated:</p>
-
-<blockquote><p>
--2- The class <tt>timed_mutex</tt> shall satisfy all of the <tt>TimedMutex<ins>Type</ins></tt> requirements 
-(30.4.1.3 [thread.timedmutex.requirements]). It shall be a standard-layout class (Clause 9).
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.1.3.2 [thread.timedmutex.recursive] as indicated:</p>
-
-<blockquote><p>
--2- The class <tt>recursive_timed_mutex</tt> shall satisfy all of the <tt>TimedMutex<ins>Type</ins></tt> requirements 
-(30.4.1.3 [thread.timedmutex.requirements]). It shall be a standard-layout class (Clause 9).
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.1.5 [thread.sharedtimedmutex.requirements] as indicated: [<i>Drafting note</i>: The reference to the
-timed mutex types requirements has been moved <em>after</em> introducing the new requirement set to ensure that 
-<tt>SharedTimedMutexType</tt> <em>refine</em> <tt>TimedMutexType</tt>.]</p>
-
-<blockquote>
-<p>
--1- The standard library type <tt>std::shared_timed_mutex</tt> is a <em>shared timed mutex type</em>. Shared timed mutex
-types shall meet the <ins><tt><em>SharedTimedMutexType</em></tt></ins> requirements <del>of timed mutex types 
-(30.4.1.3 [thread.timedmutex.requirements]), and additionally shall meet the requirements</del> set out below. In this 
-description, <tt>m</tt> denotes an object of a mutex type, <tt>rel_type</tt> denotes
-an object of an instantiation of <tt>duration</tt> (20.12.5), and <tt>abs_time</tt> denotes an object of an instantiation of
-<tt>time_point</tt> (20.12.6).
-<p/>
-<ins>-?- The shared timed mutex types shall meet the <tt>TimedMutexType</tt> requirements (30.4.1.3 [thread.timedmutex.requirements]).</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 30.4.1.5.1 [thread.sharedtimedmutex.class] as indicated:</p>
-
-<blockquote><p>
--2- The class <tt>shared_timed_mutex</tt> shall satisfy all of the <tt>SharedTimedMutex<ins>Type</ins></tt> requirements 
-(30.4.1.5 [thread.sharedtimedmutex.requirements]). It shall be a standard-layout class (Clause 9).
-</p></blockquote>
-</li>
-
-<li><p>Change 30.4.2.3 [thread.lock.shared] as indicated: [<i>Drafting note</i>: Once 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3995.htm">N3995</a> has been applied, the following 
-reference should be changed to the new <tt>SharedMutexType</tt> requirements ([thread.sharedmutex.requirements]) or 
-even better to some new <tt>SharedLockable</tt> requirements (to be defined) &mdash; <i>end drafting note</i>]</p>
-
-<blockquote><p>
--1- [&hellip;] The supplied <tt>Mutex</tt> type shall meet the <del>shared mutex</del><ins><tt>SharedTimedMutexType</tt></ins> requirements 
-(30.4.1.5 [thread.sharedtimedmutex.requirements]).
-<p/>
--2- [<i>Note</i>: <tt>shared_lock&lt;Mutex&gt;</tt> meets the <tt>TimedLockable</tt> requirements 
-(30.2.5.4). &mdash; <i>end note</i>]
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2366"></a>2366. <tt>istreambuf_iterator</tt> end-of-stream equality</h3>
-<p><b>Section:</b> 24.6.3 [istreambuf.iterator] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Hyman Rosen <b>Opened:</b> 2014-02-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istreambuf.iterator">issues</a> in [istreambuf.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Given the following code,
-</p>
-<blockquote><pre>
-#include &lt;sstream&gt;
-
-std::stringbuf buf;
-std::istreambuf_iterator&lt;char&gt; begin(&amp;buf);
-std::istreambuf_iterator&lt;char&gt; end;
-</pre></blockquote>
-<p>
-it is not clear from the wording of the Standard whether <tt>begin.equal(end)</tt>
-must be true. In at least one implementation it is not (CC: Sun C++ 5.10 SunOS_sparc Patch 128228-25 2013/02/20) and in at least
-one implementation it is (gcc version 4.3.2 x86_64-unknown-linux-gnu).
-<p/>
-24.6.3 [istreambuf.iterator] says that <tt>end</tt> is an end-of-stream iterator since it was default
-constructed. It also says that an iterator becomes equal to an end-of-stream
-iterator when end of stream is reached by <tt>sgetc()</tt> having returned <tt>eof()</tt>.
-24.6.3.5 [istreambuf.iterator::equal] says that <tt>equal()</tt> returns true iff both iterators are end of stream
-or not end of stream. But there seems to be no requirement that <tt>equal</tt> check for end-of-stream by calling <tt>sgetc()</tt>. 
-<p/>
-Jiahan Zi at BloombergLP discovered this issue through his code failing to
-work correctly. Dietmar K&uuml;hl has opined in a private communication that
-the iterators should compare equal.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2367"></a>2367. <tt>pair</tt> and <tt>tuple</tt> are not correctly implemented for <tt>is_constructible</tt> with no args</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2014-02-19 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider:
-</p>
-<blockquote><pre>
-struct X
-{
-  X() = delete;
-};
-
-int main()
-{
-  typedef std::pair&lt;int, X&gt; P;
-  static_assert(!std::is_constructible&lt;P&gt;::value, "");
-  static_assert(!std::is_default_constructible&lt;P&gt;::value, "");
-  typedef std::tuple&lt;int, X&gt; T;
-  static_assert(!std::is_constructible&lt;T&gt;::value, "");
-  static_assert(!std::is_default_constructible&lt;T&gt;::value, "");
-}
-</pre></blockquote>
-<p>
-For me these <tt>static_asserts</tt> fail. And worse than that, even asking the question fails (as opposed to gets the wrong answer):
-</p>
-<blockquote><pre>
-assert(!std::is_constructible&lt;P&gt;::value);
-</pre></blockquote>
-<p>
-In file included from test.cpp:2:
-</p>
-<blockquote><pre>
-error:
-      call to deleted constructor of 'X'
-   pair() : first(), second() {}
-                     ^
-note: function has been explicitly marked deleted here
-    X() = delete;
-    ^
-1 error generated.
-</pre></blockquote>
-<p>
-This can be solved by specializing <tt>is_constructible</tt> on <tt>pair</tt> and <tt>tuple</tt> for zero Args:
-</p>
-<blockquote><pre>
-template &lt;class T, class U&gt;
-struct is_constructible&lt;pair&lt;T, U&gt;&gt;
-  : integral_constant&lt;bool, is_default_constructible&lt;T&gt;::value &amp;&amp;
-                            is_default_constructible&lt;U&gt;::value&gt;
-{};
-
-template &lt;class ...T&gt;
-struct is_constructible&lt;tuple&lt;T...&gt;&gt;
-  : integral_constant&lt;bool,
-                      __all&lt;is_default_constructible&lt;T&gt;::value...&gt;::value&gt;
-{};
-</pre></blockquote>
-<p>
-Now everything just works.
-</p>
-
-<p><i>[2014-05-14, Daniel comments]</i></p>
-
-
-<p>
-The proposed resolution is incomplete, because it wouldn't work for <i>cv</i>-qualified objects of
-<tt>pair</tt> or for references of them during reference-initialization.
-<p/>
-I would like to point out that the approach suggested in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3739.html">N3739</a>
-can be easily extended to solve the problem without need to muddle with specializing <tt>is_constructible</tt>:
-</p>
-<blockquote><pre>
-template&lt;class U1 = T1, class U2 = T2,
-  typename enable_if&lt;
-    is_default_constructible&lt;U1&gt;::value &amp;&amp; is_default_constructible&lt;U2&gt;::value
-  , bool&gt;::type = false
-&gt;
-constexpr pair();
-</pre></blockquote>
-<p>
-The new wording proposal represents an alternative wording change that I would strongly prefer.
-</p>
-
-<strong>Previous resolution from Howard [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note">
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Add to 20.3.3 [pairs.spec]:</p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class T, class U&gt;
-struct is_constructible&lt;pair&lt;T, U&gt;&gt;
-  : integral_constant&lt;bool, is_default_constructible&lt;T&gt;::value &amp;&amp;
-                            is_default_constructible&lt;U&gt;::value&gt;
-{};</ins>
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to 20.4.2.9 [tuple.special]:</p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class ...T&gt;
-struct is_constructible&lt;tuple&lt;T...&gt;&gt;
-  : integral_constant&lt;bool, <i>see below</i>&gt;
-{};</ins>
-</pre>
-<blockquote><p>
-<ins>-?- The second argument to <tt>integral_constant</tt> shall be true if for each <tt>T</tt>, 
-<tt>is_default_constructible&lt;T&gt;::value</tt> is true.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: I object to this resolution due to British spelling of behavior<br/>
-JW: we already have other places of this spelling<br/>
-VV: the easy resolution is to remove the notes<br/>
-MC: if that's all we want to change: put it in and make the editorial change of removing the note<br/>
-VV: the other paper doesn't make any of these changes so it would be consistent<br/>
-JW: this make me want even more the features of having constructors doing the Right Thing
-- I haven't written up the request to do something like that<br/>
-VV: so it would be an aggregate reflecting the properties of the constituting types<br/>
-JW: I should write that up<br/>
-MC: any objection to move to ready? in favor: 16, opposed: 0, abstain: 1 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.3.2 [pairs.pair] around p3 as indicated:</p>
-
-<blockquote><pre>
-constexpr pair();
-</pre>
-<blockquote>
-<p>
-<del>-3- <i>Requires</i>: <tt>is_default_constructible&lt;first_type&gt;::value</tt> is true and 
-<tt>is_default_constructible&lt;second_type&gt;::value</tt> is true.</del>
-<p/>
--4- <i>Effects</i>: Value-initializes first and second.
-<p/>
-<ins>-?- <i>Remarks</i>: This constructor shall not participate in overload resolution unless 
-<tt>is_default_constructible&lt;first_type&gt;::value</tt> is true and 
-<tt>is_default_constructible&lt;second_type&gt;::value</tt> is true. [<i>Note</i>: This behaviour can be implemented
-by a constructor template with default template arguments &mdash; <i>end note</i>].</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.1 [tuple.cnstr] around p4 as indicated:</p>
-
-<blockquote><pre>
-constexpr tuple();
-</pre>
-<blockquote>
-<p>
-<del>-4- <i>Requires</i>: <tt>is_default_constructible&lt;<i>T<sub>i</sub></i>&gt;::value</tt> is true for all <i>i</i>.</del>
-<p/>
--5- <i>Effects</i>: Value initializes each element.
-<p/>
-<ins>-?- <i>Remarks</i>: This constructor shall not participate in overload resolution unless 
-<tt>is_default_constructible&lt;<i>T<sub>i</sub></i>&gt;::value</tt> is true for all <i>i</i>. [<i>Note</i>: This behaviour can 
-be implemented by a constructor template with default template arguments &mdash; <i>end note</i>].</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2368"></a>2368. Replacing global <tt>operator new</tt></h3>
-<p><b>Section:</b> 18.6.1 [new.delete] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Stephen Clamage <b>Opened:</b> 2014-02-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete">issues</a> in [new.delete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 18.6.1 [new.delete] and subsections shows:
-</p>
-<blockquote><pre>
-void* operator new(std::size_t size);
-void* operator new[](std::size_t size);
-</pre></blockquote>
-<p>
-That is, without exception-specifications. (Recall that C++03 specified these functions with <tt>throw(std::bad_alloc)</tt>.)
-<p/>
-Section 17.6.5.12 [res.on.exception.handling] the end of paragraph 4 says:
-</p>
-<blockquote><p>
-Any other functions defined in the C++ standard library that do not have an exception-specification may throw implementation-defined 
-exceptions unless otherwise specified. An implementation may strengthen this implicit exception-specification by adding an explicit one.
-</p></blockquote>
-<p>
-For example, an implementation could provide C++03-compatible declarations of <tt>operator new</tt>.
-<p/>
-Programmers are allowed to replace these <tt>operator new</tt> functions. But how can you write the definition of these functions when 
-the exception specification can vary among implementations? For example, the declarations
-</p>
-<blockquote><pre>
-void* operator new(std::size_t size) throw(std::bad_alloc);
-void* operator new(std::size_t size);
-</pre></blockquote>
-<p>
-are not compatible.
-<p/>
-From what I have been able to determine, gcc has a hack for the special case of <tt>operator new</tt> to ignore the differences in 
-(at least) the two cases I show above. But can users expect all compilers to quietly ignore the incompatibility?
-<p/>
-The blanket permission to add any explicit exception specification could cause a problem for any user-overridable function. 
-Different implementations could provide incompatible specifications, making portable code impossible to write.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2370"></a>2370. Operations involving type-erased allocators should not be <tt>noexcept</tt> in <tt>std::function</tt></h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2014-02-27 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following constructors in 20.9.12.2 [func.wrap.func] are declared <tt>noexcept</tt>, even
-though it is not possible for an implementation to guarantee that they will not throw:
-</p>
-
-<blockquote><pre>
-template &lt;class A&gt; function(allocator_arg_t, const A&amp;) noexcept;
-template &lt;class A&gt; function(allocator_arg_t, const A&amp;, nullptr_t) noexcept;
-</pre></blockquote>
-
-<p>
-In addition, the following functions are guaranteed not to throw if the target
-is a function pointer or a <tt>reference_wrapper</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class A&gt; function(allocator_arg_t, const A&amp; a, const function&amp; f);
-template &lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre></blockquote>
-
-<p>
-In all of the above cases, the function object might need to allocate memory
-(an operation that can throw) in order to hold a copy of the type-erased
-allocator itself. The first two constructors produce an empty function
-object, but the allocator is still needed in case the object is later assigned
-to. In this case, we note that the propagation of allocators on assignment is
-underspecified for <tt>std::function</tt>. There are three possibilities:
-</p>
-
-<ol>
-<li><p>The allocator is never copied on copy-assignment, moved on move-assignment, or swapped on swap.</p>
-</li>
-
-<li><p>The allocator is always copied on copy-assignment, moved on move-assignment, and swapped on swap.</p>
-</li>
-
-<li><p>Whether or not the allocator is copied, moved, or swapped is determined at
-   run-time based on the <tt>propagate_on_container_copy_assignment</tt> and
-   <tt>propagate_on_container_move_assignment</tt> traits of the allocators at
-   construction of the source function, the target function, or both.</p>
-</li>
-</ol>
-
-<p>
-Although the third option seems to be the most consistent with existing
-wording in the containers section of the standard, it is problematic in a
-number of respects. To begin with, the propagation behavior is determined at
-run time based on a pair of type-erased allocators, instead of at compile
-time. Such run-time logic is <em>not</em> consistent with the rest of the standard
-and is hard to reason about. Additionally, there are two allocator types
-involved, rather than one. Any set of rules that attempts to rationally
-interpret the propagation traits of both allocators is likely to be arcane
-at best, and subtly wrong for some set of codes at worst.
-</p>
-
-<p>
-The second option is a non-starter. Historically, and in the vast majority of
-existing code, an allocator does not change after an object is constructed.
-The second option, if adopted, would undermine the programmer's ability to
-construct, e.g., an array of function objects, all using the same allocator.
-</p>
-
-<p>
-The first option is (in Pablo's opinion) the simplest and best. It is
-consistent with historical use of allocators, is easy to understand, and
-requires minimal wording. It is also consistent with the wording in N3916,
-which formalizes type-erased allocators.
-</p>
-
-<p>
-For cross-referencing purposes: The resolution of this issue should be
-harmonized with any resolution to LWG <a href="lwg-active.html#2062">2062</a>, which questions the <tt>noexcept</tt>
-specification on the following member functions of std::function:
-</p>
-
-<blockquote><pre>
-template &lt;class F&gt; function&amp; operator=(reference_wrapper&lt;F&gt;) noexcept;
-void swap(function&amp;) noexcept;
-</pre></blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: change to P3 and status to open.
-<p/>
-STL: note that <tt>noexcept</tt> is an issue and large chunks of allocator should be destroyed.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.9.12.2 [func.wrap.func], class template <tt>function</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-template &lt;class A&gt; function(allocator_arg_t, const A&amp;) <del>noexcept</del>;
-template &lt;class A&gt; function(allocator_arg_t, const A&amp;, nullptr_t) <del>noexcept</del>;
-</pre></blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.1 [func.wrap.func.con] as indicated:</p>
-
-<blockquote>
-<p>
--1- When any function constructor that takes a first argument of type <tt>allocator_arg_t</tt> is invoked, the second
-argument shall have a type that conforms to the requirements for <tt>Allocator</tt> (Table 17.6.3.5). A copy of the
-allocator argument is used to allocate memory, if necessary, for the internal data structures of the constructed
-function object. <ins> For the remaining constructors, an instance of <tt>allocator&lt;T&gt;</tt>, for some suitable type
-<tt>T</tt>, is used to allocate memory, if necessary, for the internal data structures of the constructed function object.</ins>
-</p>
-
-<pre>
-function() noexcept;
-template &lt;class A&gt; function(allocator_arg_t, const A&amp;) <del>noexcept</del>;
-</pre>
-
-<blockquote>
-<p>
--2- <i>Postconditions</i>: <tt>!*this</tt>.
-</p>
-</blockquote>
-
-<pre>
-function(nullptr_t) noexcept;
-template &lt;class A&gt; function(allocator_arg_t, const A&amp;, nullptr_t) <del>noexcept</del>;
-</pre>
-
-<blockquote><p>
--3- <i>Postconditions</i>: <tt>!*this</tt>.
-</p></blockquote>
-
-<pre>
-function(const function&amp; f);
-<del>template &lt;class A&gt; function(allocator_arg_t, const A&amp; a, const function&amp; f);</del>
-</pre>
-
-<blockquote><p>
--4- <i>Postconditions</i>: <tt>!*this</tt> if <tt>!f</tt>; otherwise, <tt>*this</tt> targets a copy of <tt>f.target()</tt>.
-</p>
-
-<p>
--5- <i>Throws</i>: shall not throw exceptions if <tt>f</tt>'s target is a callable object passed
-via <tt>reference_wrapper</tt> or a function pointer. Otherwise, may throw <tt>bad_alloc</tt>
-or any exception thrown by the copy constructor of the stored callable
-object. [<i>Note</i>: Implementations are encouraged to avoid the use of
-dynamically allocated memory for small callable objects, for example, where
-<tt>f</tt>'s target is an object holding only a pointer or reference to an object and
-a member function pointer. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<pre>
-<ins>template &lt;class A&gt; function(allocator_arg_t, const A&amp; a, const function&amp; f);</ins>
-</pre>
-
-<blockquote><p>
-<ins>-?- <i>Postconditions</i>: <tt>!*this</tt> if <tt>!f</tt>; otherwise, <tt>*this</tt> targets a copy of <tt>f.target()</tt>.</ins>
-</p></blockquote>
-
-<pre>
-function(function&amp;&amp; f);
-template &lt;class A&gt; function(allocator_arg_t, const A&amp; a, function&amp;&amp; f);
-</pre>
-
-<blockquote><p>
--6- <i>Effects</i>: If <tt>!f</tt>, <tt>*this</tt> has no target; otherwise, move-constructs the target
-of <tt>f</tt> into the target of <tt>*this</tt>, leaving <tt>f</tt> in a valid state with an
-unspecified value. <ins>If an allocator is not specified, the constructed function will use the same allocator as <tt>f</tt>.</ins>
-</p></blockquote>
-
-<pre>
-template&lt;class F&gt; function(F f);
-template &lt;class F, class A> function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-
-<blockquote>
-<p>
--7- <i>Requires</i>: <tt>F</tt> shall be <tt>CopyConstructible</tt>. 
-<p/>
--8- <i>Remarks</i>: These constructors shall not participate in overload resolution unless <tt>f</tt> is Callable (20.9.11.2)
-for argument types <tt>ArgTypes...</tt> and return type <tt>R</tt>.
-</p>
-
-<p>
--9- <i>Postconditions</i>: <tt>!*this</tt> if any of the following hold:
-</p>
-<ul>
-<li><p><tt>f</tt> is a null function pointer value.</p></li>
-<li><p><tt>f</tt> is a null member pointer value.</p></li>
-<li><p><tt>F</tt> is an instance of the function class template, and <tt>!f</tt></p></li>
-</ul>
-
-<p>
--10- Otherwise, <tt>*this</tt> targets a copy of <tt>f</tt> initialized with <tt>std::move(f)</tt>.
-[<i>Note</i>: Implementations are encouraged to avoid the use of dynamically
-allocated memory for small callable objects, for example, where <tt>f</tt>'s target
-is an object holding only a pointer or reference to an object and a member
-function pointer. &mdash; <i>end note</i>]
-</p>
-
-<p>
--11- <i>Throws</i>: shall not throw exceptions when <ins>an allocator is not specified
-and</ins> <tt>f</tt> is a function pointer or a <tt>reference_wrapper&lt;T&gt;</tt> for some
-<tt>T</tt>. Otherwise, may throw <tt>bad_alloc</tt> or any exception thrown by <tt>F</tt>'s copy or
-move constructor<ins> or by <tt>A</tt>'s allocate function</ins>.
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2372"></a>2372. Assignment from int to <tt>std::string</tt></h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Andrzej Krzemie&#324;ski <b>Opened:</b> 2014-03-13 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following code works in C++:
-</p>
-<blockquote><pre>
-int i = 300;
-std::string threeHundred;
-threeHundred = i;
-</pre></blockquote>
-<p>
-"Works" == "Compiles and doesn't have an undefined behavior". But it may not be obvious and in fact misleading what it does. 
-This assignment converts an <tt>int</tt> to <tt>char</tt> and then uses <tt>string</tt>'s assignment from <tt>char</tt>. While 
-the assignment from <tt>char</tt> can be considered a feature, being able to assign from an int looks like a safety gap. Someone 
-may believe C++ works like "dynamically typed" languages and expect a lexical conversion to take place.
-<p/>
-Ideally the assignment from <tt>char</tt> could be deprecated and later removed, but as a less intrusive alternative one could 
-consider adding a SFINAEd deleted function template:
-</p>
-<blockquote><pre>
-template &lt;typename IntT&gt; // enable if is_integral&lt;IntT&gt;::value
-basic_string&amp; operator=(IntT) = delete;
-</pre></blockquote>
-
-<p><i>[Lenexa 2015-06-06: Move to LEWG]</i></p>
-
-<p>RS: std::string x('0' + n); broken by this.</p>
-<p>MC: This is an extension, move to LEWG.</p>
-<p>Move to LEWG, consensus.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>To 21.4 [basic.string], class template <tt>basic_string</tt> synopsis, add as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp; operator=(const basic_string&amp; str);
-basic_string&amp; operator=(basic_string&amp;&amp; str) noexcept;
-basic_string&amp; operator=(const charT* s);
-basic_string&amp; operator=(charT c);
-<ins>template &lt;class IntT&gt; basic_string&amp; operator=(IntT i) = delete;</ins>
-basic_string&amp; operator=(initializer_list&lt;charT&gt;);
-</pre></blockquote>
-</li>
-
-<li><p>Add after 21.4.2 [string.cons] p26 as indicated:</p>
-
-<blockquote>
-<pre>
-basic_string&amp; operator=(charT c);
-</pre>
-<blockquote>
-<p>
--26- <i>Returns</i>: <tt>*this = basic_string(1,c)</tt>.
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class IntT&gt; basic_string&amp; operator=(IntT i) = delete;</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Remarks</i>: This signature shall not participate in overload resolution unless <tt>is_integral&lt;T&gt;::value</tt> is 
-<tt>true</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2375"></a>2375. Is [iterator.requirements.general]/9 too broadly applied?</h3>
-<p><b>Section:</b> 24.2.1 [iterator.requirements.general] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2014-03-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-24.2.1 [iterator.requirements.general] p9 says:
-</p>
-<blockquote><p>
-Destruction of an iterator may invalidate pointers and references previously obtained from that iterator.
-</p></blockquote>
-<p>
-But the resolution of LWG issue <a href="lwg-defects.html#2360">2360</a> specifically advocates returning <tt>*--temp;</tt> where <tt>temp</tt> is a 
-local variable.
-<p/>
-And 24.2.5 [forward.iterators] p6 says:
-</p>
-<blockquote><p>
-If <tt>a</tt> and <tt>b</tt> are both dereferenceable, then <tt>a == b</tt> if and only if <tt>*a</tt> and <tt>*b</tt> are bound 
-to the same object.
-</p></blockquote>
-<p>
-which disallows "stashing" iterators (i.e, iterators that refer to data inside themselves).
-<p/>
-So, I suspect that the restriction in p9 should only apply to input iterators, and can probably be moved into 
-24.2.3 [input.iterators] instead of 24.2.1 [iterator.requirements.general].
-</p>
-
-<p><i>[2014-05-22, Daniel comments]</i></p>
-
-
-<p>
-Given that forward iterators (and beyond) are refinements of input iterator, moving this constraint to input iterators won't help
-much because it would still hold for all refined forms. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2379"></a>2379. Obtaining native handle of the current thread</h3>
-<p><b>Section:</b> 30.2.3 [thread.req.native], 30.3.2 [thread.thread.this] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2014-03-31 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class <tt>thread</tt> contains an implementation-defined type <tt>thread::native_handle_type</tt>, and an implementation-defined 
-function <tt>thread::native_handle()</tt> that returns a value of that type. The presence and semantics of those members is 
-implementation-defined; the intention is that they can be used for interoperability with libraries that rely on operating system 
-specific features. (Posix libraries that accept arguments of type <tt>pthread_t</tt>, for example.)
-<p/>
-Unfortunately, there appears to be no native handle support for the equivalent of <tt>pthread_self()</tt>. We can use 
-<tt>this_thread::get_id()</tt> to obtain the <tt>thread::id</tt> of the current thread, but there is no mechanism for converting 
-a <tt>thread::id</tt> to a <tt>thread::native_handle</tt>.
-<p/>
-<em>Proposed wording:</em>
-<p/>
-In 30.3.2 [thread.thread.this] add:
-</p>
-<blockquote><pre>
-thread::native_handle_type native_handle(); <i>// See 30.2.3</i>
-</pre></blockquote>
-<p>
- to the <tt>this_thread</tt> namespace synopsis.
-<p/>
-<em>Rationale:</em>
-<p/>
-Informally, we could address this issue either by adding a new function in <tt>this_thread</tt> or by providing a mechanism for converting 
-between <tt>thread::id</tt> and <tt>thread::native_handle</tt>. I propose the former because it seems more localized, and doesn't involve 
-saying anything more about implementation defined native functionality than we currently do.
-<p/>
-It's intentional that the proposed resolution adds a declaration of <tt>native_handle()</tt> without adding a paragraph explaining what 
-it does. This is because everything about <tt>native_handle()</tt> is implementation-defined. The standard does the same thing in 
-30.3.1.5 [thread.thread.member]. 
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-Strong "don't care" reaction from SG1, after pointing out that this only matters in non-portable code, which can call pthread_self() or the like anyway, but the change also doesn't add any non-trivial implementation requirements.  This defused initial strong opinions on both sides.  Since this is essentially a feature request, we did not have sufficient consensus to proceed at this point.  There was a feeling we should reconsider after making more sense out of the much more general TLS issues we have been discussing.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 30.2.3 [thread.req.native] p1 as indicated:</p>
-
-<blockquote>
-<p>
--1- <del>Several classes described in this Clause have members</del><ins>This Clause includes several members named</ins> 
-<tt>native_handle_type</tt> and <tt>native_handle</tt>. The presence of these members and their semantics is 
-implementation-defined. [&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>In 30.3 [thread.threads], header <tt>&lt;thread&gt;</tt> synopsis, add:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  [&hellip;]
-  namespace this_thread {
-    thread::id get_id() noexcept;
-    <ins>thread::native_handle_type native_handle();</ins>
-    [&hellip;]
-  }
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>In 30.3.2 [thread.thread.this] add:</p>
-<blockquote>
-<pre>
-namespace std {
-  namespace this_thread {
-    thread::id get_id() noexcept;
-    <ins>thread::native_handle_type native_handle(); <i>// See 30.2.3 [thread.req.native]</i></ins>
-    [&hellip;]
-  }
-}
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2380"></a>2380. May <tt>&lt;cstdlib&gt;</tt> provide <tt>long ::abs(long)</tt> and <tt>long long ::abs(long long)</tt>?</h3>
-<p><b>Section:</b> 17.6.1.2 [headers] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-03-31 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View all other</b> <a href="lwg-index.html#headers">issues</a> in [headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-D.5 [depr.c.headers] p3 says:
-</p>
-<blockquote><p>
-[<i>Example</i>: The header <tt>&lt;cstdlib&gt;</tt> assuredly provides its declarations and definitions within the namespace
-<tt>std</tt>. It may also provide these names within the global namespace. The header <tt>&lt;stdlib.h&gt;</tt> assuredly
-provides the same declarations and definitions within the global namespace, much as in the C Standard. It
-may also provide these names within the namespace <tt>std</tt>. &mdash; <i>end example</i>]
-</p></blockquote>
-<p>
-This suggests that <tt>&lt;cstdlib&gt;</tt> may provide <tt>::abs(long)</tt> and <tt>::abs(long long)</tt>. But this seems like 
-it might contradict the normative wording of 17.6.1.2 [headers] p4:
-</p>
-<blockquote><p>
-Except as noted in Clauses 18 through 30 and Annex D, the contents of each header <tt>c<em>name</em></tt> shall be the same
-as that of the corresponding header <tt><em>name</em>.h</tt>, as specified in the C standard library (1.2) or the C Unicode
-TR, as appropriate, as if by inclusion. In the C++ standard library, however, the declarations (except for
-names which are defined as macros in C) are within namespace scope (3.3.6) of the namespace <tt>std</tt>. It is
-unspecified whether these names are first declared within the global namespace scope and are then injected
-into namespace <tt>std</tt> by explicit using-declarations (7.3.3).
-</p></blockquote>
-<p>
-Note that this allows <tt>&lt;cstdlib&gt;</tt> to provide <tt>::abs(int)</tt>, but does not obviously allow <tt>::abs(long)</tt> 
-nor <tt>::abs(long long)</tt>, since they are not part of the header <tt>stdlib.h</tt> as specified in the C standard library.
-<p/>
-26.8 [c.math] p7 adds signatures <tt>std::abs(long)</tt> and <tt>std::abs(long long)</tt>, but not in a way that seems 
-to allow <tt>::abs(long)</tt> and <tt>::abs(long long)</tt> to be provided.
-<p/>
-I think the right approach here would be to allow <tt>&lt;cstdlib&gt;</tt> to either provide no <tt>::abs</tt> declaration, or 
-to provide all three declarations from namespace <tt>std</tt>, but it should not be permitted to provide only <tt>int abs(int)</tt>. 
-Suggestion:
-<p/>
-Change in 17.6.1.2 [headers] p4:
-</p>
-<blockquote><p>
-[&hellip;]. It is unspecified whether these names <ins>(including any overloads added in Clauses 18 through 30 and Annex D)</ins> 
-are first declared within the global namespace scope and are then injected into namespace <tt>std</tt> by explicit using-declarations 
-(7.3.3).
-</p></blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: do we need to defer this?<br/>
-PJP: just need to get my mind around it, already playing dirty games here, my reaction is just do it as it will help C++<br/>
-STL: this is safe<br/>
-TP: would be surprising if using abs didn't bring in all of the overloads<br/>
-MC: that's Richard's argument<br/>
-MC: move to ready 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Modify 17.6.1.2 [headers] p4 as indicated:</p>
-
-<blockquote><p>
-Except as noted in Clauses 18 through 30 and Annex D, the contents of each header <tt>c<em>name</em></tt> shall be the same
-as that of the corresponding header <tt><em>name</em>.h</tt>, as specified in the C standard library (1.2) or the C Unicode
-TR, as appropriate, as if by inclusion. In the C++ standard library, however, the declarations (except for
-names which are defined as macros in C) are within namespace scope (3.3.6) of the namespace <tt>std</tt>. It is
-unspecified whether these names <ins>(including any overloads added in Clauses 18 through 30 and Annex D)</ins> are first 
-declared within the global namespace scope and are then injected into namespace <tt>std</tt> by explicit using-declarations (7.3.3).
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2381"></a>2381. Inconsistency in parsing floating point numbers</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2014-04-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 22.4.2.1.2 [facet.num.get.virtuals] we have:
-</p>
-<blockquote><p>
-Stage 3: The sequence of chars accumulated in stage 2 (the field) is converted to a numeric value by the
-rules of one of the functions declared in the header <tt>&lt;cstdlib&gt;</tt>:
-</p>
-<ul>
-<li><p>For a signed integer value, the function <tt>strtoll</tt>.</p></li>
-<li><p>For an unsigned integer value, the function <tt>strtoull</tt>.</p></li>
-<li><p>For a floating-point value, the function <tt>strtold</tt>.</p></li>
-</ul>
-</blockquote>
-<p>
-This implies that for many cases, this routine should return true:
-</p>
-<blockquote><pre>
-bool is_same(const char* p) 
-{
-  std::string str{p};
-  double val1 = std::strtod(str.c_str(), nullptr);
-  std::stringstream ss(str);
-  double val2;
-  ss &gt;&gt; val2;
-  return std::isinf(val1) == std::isinf(val2) &amp;&amp;                 // either they're both infinity
-         std::isnan(val1) == std::isnan(val2) &amp;&amp;                 // or they're both NaN
-         (std::isinf(val1) || std::isnan(val1) || val1 == val2); // or they're equal
-}
-</pre></blockquote>
-<p>
-and this is indeed true, for many strings:
-</p>
-<blockquote><pre>
-assert(is_same("0"));
-assert(is_same("1.0"));
-assert(is_same("-1.0"));
-assert(is_same("100.123"));
-assert(is_same("1234.456e89"));
-</pre></blockquote>
-<p>
-but not for others
-</p>
-<blockquote><pre>
-assert(is_same("0xABp-4")); // hex float
-assert(is_same("inf"));
-assert(is_same("+inf"));
-assert(is_same("-inf"));
-assert(is_same("nan"));
-assert(is_same("+nan"));
-assert(is_same("-nan"));
-
-assert(is_same("infinity"));
-assert(is_same("+infinity"));
-assert(is_same("-infinity"));
-</pre></blockquote>
-<p>
-These are all strings that are correctly parsed by <tt>std::strtod</tt>, but not by the stream extraction operators.
-They contain characters that are deemed invalid in stage 2 of parsing.
-<p/>
-If we're going to say that we're converting by the rules of <tt>strtold</tt>, then we should accept all the things that 
-<tt>strtold</tt> accepts.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2383"></a>2383. Overflow cannot be ill-formed for chrono::duration integer literals</h3>
-<p><b>Section:</b> 20.12.5.8 [time.duration.literals] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-05-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.12.5.8 [time.duration.literals] p3 says:
-</p>
-<blockquote><p>
-If any of these suffixes are applied to an integer literal and the
-resulting <tt>chrono::duration</tt> value cannot be represented in the result
-type because of overflow, the program is ill-formed.
-</p></blockquote>
-<p>
-Ill-formed requires a diagnostic at compile-time, but there is no way
-to  detect the overflow from <tt>unsigned long long</tt> to the <tt>signed
-duration&lt;&gt;::rep</tt> type.
-<p/>
-Overflow could be detected if the duration integer literals were
-literal operator templates, otherwise overflow can either be undefined
-or a run-time error, not ill-formed.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Open]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2384"></a>2384. Allocator's <tt>deallocate</tt> function needs better specification</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-05-19 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to Table 28, 17.6.3.5 [allocator.requirements], an <tt>Allocator</tt>'s <tt>deallocate</tt>
-function is specified as follows:
-</p>
-<blockquote><p>
-All <tt>n</tt> <tt>T</tt> objects in the area
-pointed to by <tt>p</tt> shall be
-destroyed prior to this call. <tt>n</tt>
-shall match the value passed to
-allocate to obtain this
-memory. Does not throw
-exceptions. [<i>Note</i>: <tt>p</tt> shall not be
-singular. &mdash; <i>end note</i>]
-</p></blockquote>
-<p>
-This wording is confusing in regard to the following points:
-</p>
-<ol>
-<li><p>This specification does not make clear that the result of an <tt>allocate</tt>
-call can only be returned once to the <tt>deallocate</tt> function. This is much
-clearer expressed for <tt>operator delete</tt> (18.6.1.1 [new.delete.single] p12, emphasis mine):</p>
-<blockquote><p>
-<i>Requires</i>: <tt>ptr</tt> shall be a null pointer or <span style="color:#C80000;font-weight:bold">its value shall be a value returned 
-by an earlier call to</span> the (possibly replaced) <span style="color:#C80000;font-weight:bold"><tt>operator new(std::size_t)</tt> or 
-<tt>operator new(std::size_t,const std::nothrow_t&amp;)</tt> which has not been invalidated 
-by an intervening call to <tt>operator delete(void*)</tt></span>.
-</p></blockquote>
-</li>
-<li><p>The intended meaning of that wording was to say that <tt>deallocate</tt> shall accept <em>every</em> result value
-that had been returned by a corresponding call to <tt>allocate</tt>, this includes also a possible result of a
-null pointer value, which is possible ("[<i>Note</i>: If <tt>n == 0</tt>, the return value is unspecified.
-&mdash; <i>end note</i>]"). Unfortunately the <tt>deallocate</tt> function uses a non-normative note ("<tt>p</tt> shall not be
-singular.") which refers to the fuzzy term <tt>singular</tt>, that is one of the most unclear and misunderstood terms
-of the library, as pointed out in <a href="lwg-active.html#1213">1213</a>. The occurrence of this term has lead to the possible understanding,
-that this function would never allow null pointer values. Albeit for allocators the intention had not been to require the support
-<em>in general</em> that a null pointer value can be provided to <tt>deallocate</tt> (as it is allowed for <tt>std::free</tt>
-and <tt>operator delete</tt>), the mental model was that <em>every</em> returned value of <tt>allocate</tt> shall be an
-acceptable argument type of the corresponding <tt>deallocate</tt> function.
-</p>
-</li>
-</ol>
-
-<p>
-This issue is not intending to enforce a specific meaning of <em>singular</em> iterator values, but the assertion is
-that this note does more harm than good. In addition to wording from <tt>operator delete</tt> there is no longer any need
-to obfuscate the normative wording. 
-</p>
-
-<p><i>[2014-05-24 Alisdair comments]</i></p>
-
-
-<p>
-Now that I am reading it very precisely, there is another mis-stated assumption
-as a precondition for <tt>deallocate</tt>:
-</p>
-<blockquote><p>
-All <tt>n T</tt> objects in the area pointed to by <tt>p</tt> shall be destroyed prior to this call.
-</p></blockquote>
-<p>
-This makes a poor assumption that every possible object in the allocated buffer
-was indeed constructed, but this is often not the case, e.g., a <tt>vector</tt> that is not
-filled to capacity. We should require calling the destructor for only those objects
-actually constructed in the buffer, which may be fewer than <tt>n</tt>, or even 0.
-<p/>
-I wonder if we really require all objects to be destroyed before calling <tt>deallocate</tt>
-though. Are we really so concerned about leaking objects that might not manage
-resources? Should this not be the proper concern of the library managing the
-objects and memory?
-</p>
-
-<p><i>[2014-06-05 Daniel responds and improves wording]</i></p>
-
-
-<p>
-I fully agree with the last comment and I think that this requirement should be removed. We have no such
-requirements for comparable functions such as <tt>operator delete</tt> or <tt>return_temporary_buffer()</tt>,
-and this wording seems to be a wording rudiment that exists since C++98.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Marshall: What do people think about this?<br/>
-PJP: Sure.<br/>
-Wakely: Love it.<br/>
-Marshall: Ready?<br/>
-Everyone agrees.<br/>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change Table 28 ("<tt>Allocator</tt> requirements") as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 28 &mdash; <tt>Allocator</tt> requirements</caption>
-<tr>
-<th align="center">Expression</th>
-<th align="center">Return type</th>
-<th align="center">Assertion/note<br/>pre-/post-condition</th>
-<th align="center">Default</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.deallocate(p,n)</tt>
-</td>
-<td>
-(not used)
-</td>
-<td>
-<ins><i>Pre</i>: <tt>p</tt> shall be a value returned by an earlier<br/> 
-call to <tt>allocate</tt> which has not been invalidated by<br/> 
-an intervening call to <tt>deallocate</tt>. <tt>n</tt> shall<br/> 
-match the value passed to <tt>allocate</tt> to obtain this<br/> 
-memory.</ins> <del>All <tt>n T</tt> objects in the area pointed to by<br/> 
-<tt>p</tt> shall be destroyed prior to this call.</del><br/>
-<ins><i>Throws</i>: Nothing.</ins><del><tt>n</tt><br/>
-shall match the value passed to<br/>
-allocate to obtain this<br/>
-memory. Does not throw<br/>
-exceptions. [<i>Note</i>: <tt>p</tt> shall not<br/>
-be singular. &mdash; <i>end note</i>]</del>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2385"></a>2385. <tt>function::assign</tt> allocator argument doesn't make sense</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2014-05-23 <b>Last modified:</b> 2015-05-07</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The definition of <tt>function::assign</tt> in N3936 is:
-</p>
-<blockquote><pre>
-template&lt;class F, class A&gt;
-  void assign(F&amp;&amp; f, const A&amp; a);
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: <tt>function(allocator_arg, a, std::forward&lt;F&gt;(f)).swap(*this)</tt>
-</p>
-</blockquote>
-</blockquote>
-<p>
-This definition is flawed in several respects:
-</p>
-<ol>
-<li><p>The interface implies that the intent is to replace the allocator in <tt>*this</tt>
-with the specified allocator, <tt>a</tt>.  Such functionality is unique in the
-standard and is problematic when creating, e.g. a container of function
-objects, all using the same allocator.</p>
-</li>
-<li><p>The current definition of <tt>swap()</tt> makes it unclear whether the objects being
-swapped can have different allocators.  The general practice is that
-allocators must be equal in order to support swap, and this practice is
-reinforced by the proposed library TS. Thus, the definition of <tt>assign</tt> would
-have undefined behavior unless the allocator matched the allocator already
-within function.
-</p>
-</li>
-<li><p>
-The general rule for members of function is to supply the allocator before
-the functor, using the <tt>allocator_arg</tt> prefix. Supplying the allocator as a
-second argument, without the <tt>allocator_arg</tt> prefix is error prone and
-confusing.
-</p></li>
-</ol>
-
-<p>
-I believe that this ill-conceived interface was introduced in the effort to
-add allocators to parts of the standard where it had been missing, when we
-were unpracticed in the right way to accomplish that. Allocators were added
-to function at a time when the allocator model was in flux and it was the
-first class in the standard after <tt>shared_ptr</tt> to use type-erased allocators, so
-it is not surprising to see some errors in specification here. (<tt>shared_ptr</tt> is
-a special case because of its shared semantics, and so is not a good model.)
-<p/>
-The main question is whether this member should be specified with better
-precision or whether it should be deprecated/removed. The only way I can see to
-give a "reasonable" meaning to the existing interface is to describe it in
-terms of destroying and re-constructing <tt>*this</tt>:
-</p>
-<blockquote><pre>
-function temp(allocator_arg, a, std::forward&lt;F&gt;(f));
-this-&gt;~function();
-::new(this) function(std::move(temp));
-</pre></blockquote>
-<p>
-(The temp variable is needed for exception safety). The ugliness of this
-specification underscores the ugliness of the concept. What is the purpose of
-this member other than to reconstruct the object from scratch, a facility that
-library classes do not generally provide? Programmers are always free to
-destroy and re-construct objects &mdash; there is no reason why function should
-make that especially easy.
-<p/>
-I propose, therefore, that we make no attempt at giving the current interface
-a meaningful definition of questionable utility, but simply get rid of it
-all together. This leaves us with only two questions:
-</p>
-<ol>
-<li><p>Should we deprecate the interface or just remove it?</p></li>
-<li><p>Should we replace it with an <tt>assign(f)</tt> member that doesn't take an
-allocator?</p></li>
-</ol>
-<p>
-Of these four combinations of binary answers to the above questions, I think
-the ones that make the most sense are (remove, no) and (deprecate, yes). The
-proposed new interface provides nothing that <tt>operator=</tt> does not already
-provide. However, if the old (deprecated) interface remains, then having the
-new interface will guide the programmer away from it.
-<p/>
-The proposed wording below assumes deprecation. If we choose removal, then
-there is no wording needed; simply remove the offending declaration and
-definition.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change class template <tt>function</tt> synopsis, 20.9.12.2 [func.wrap.func], as indicated:</p>
-
-<blockquote>
-<pre>
-template&lt;class R, class... ArgTypes&gt;
-class function&lt;R(ArgTypes...)&gt; {
-  [&hellip;]
-  <i>// 20.9.11.2.2, function modifiers:</i>
-  void swap(function&amp;) noexcept;
-  template&lt;class F<del>, class A</del>&gt; void assign(F&amp;&amp;<del>, const A&amp;</del>);
-  [&hellip;]
-};
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.2 [func.wrap.func.mod] as indicated:</p>
-
-<blockquote>
-<pre>
-template&lt;class F<del>, class A</del>&gt; void assign(F&amp;&amp; f<del>, const A&amp; a</del>);
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: <tt><ins>*this = forward&lt;F&gt;(f);</ins><del>function(allocator_arg, a, std::forward&lt;F&gt;(f)).swap(*this)</del></tt>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>To deprecation section  [depr.function.objects], add the following new sub-clause:</p>
-
-<blockquote>
-<p>
-<b>Old <tt>assign</tt> member of polymorphic function wrappers [depr.function.objects.assign]</b>
-</p>
-<blockquote>
-<pre>
-namespace std{
-  template&lt;class R, class... ArgTypes&gt;
-  class function&lt;R(ArgTypes...)&gt; {
-    <i>// remainder unchanged</i>
-    template&lt;class F, class A&gt; void assign(F&amp;&amp; f, const A&amp; a);
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-<p>
-The two-argument form of <tt>assign</tt> is defined as follows:
-</p>
-<pre>
-template&lt;class F, class A&gt; void assign(F&amp;&amp; f, const A&amp; a);
-</pre>
-<blockquote>
-<p>
-<i>Requires</i>: <tt>a</tt> shall be equivalent to the allocator used to construct <tt>*this</tt>.
-<p/>
-<i>Effects</i>: <tt>this-&gt;assign(forward&lt;F&gt;(f));</tt>
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: I would ask, does anybody oppose removing this outright?<br/>
-Wakely: I don't even have this signature.<br/>
-Hwrd: And I think this doesn't go far enough, even more should be removed. This is a step in the right direction.<br/>
-PJP: I'm in favor of removal.<br/>
-Wakely: We've already got TS1 that has a new function that does it right. We could wait for feedback on that. 
-I think this issue should be taken now.<br/>
-Marshall: Then the goal will be to move to ready. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li><p>Change class template <tt>function</tt> synopsis, 20.9.12.2 [func.wrap.func], as indicated:</p>
-
-<blockquote>
-<pre>
-template&lt;class R, class... ArgTypes&gt;
-class function&lt;R(ArgTypes...)&gt; {
-  [&hellip;]
-  <i>// 20.9.12.2.2, function modifiers:</i>
-  void swap(function&amp;) noexcept;
-  <del>template&lt;class F, class A&gt; void assign(F&amp;&amp;, const A&amp;);</del>
-  [&hellip;]
-};
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.2 [func.wrap.func.mod] as indicated:</p>
-
-<blockquote>
-<pre>
-<del>template&lt;class F, class A&gt; 
-  void assign(F&amp;&amp; f, const A&amp; a);</del>
-</pre>
-<blockquote>
-<p>
-<del>-2- <i>Effects</i>: <tt>function(allocator_arg, a, std::forward&lt;F&gt;(f)).swap(*this)</tt></del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2391"></a>2391. <tt>basic_string</tt> is missing non-<tt>const</tt> <tt>data()</tt></h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Michael Bradshaw <b>Opened:</b> 2014-05-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Regarding 21.4 [basic.string], <tt>std::basic_string&lt;charT&gt;::data()</tt> returns a <tt>const charT*</tt> 
-21.4.7.1 [string.accessors]. While this method is convenient, it doesn't quite match <tt>std::array&lt;T&gt;::data()</tt> 
-23.3.2.5 [array.data] or <tt>std::vector&lt;T&gt;::data()</tt> 23.3.6.4 [vector.data], both of which provide two 
-versions (that return <tt>T*</tt> or <tt>const T*</tt>). An additional <tt>data()</tt> method can be added to 
-<tt>std::basic_string</tt> that returns a <tt>charT*</tt> so it can be used in similar situations that <tt>std::array</tt> and 
-<tt>std::vector</tt> can be used. Without a non-<tt>const</tt> <tt>data()</tt> method, <tt>std::basic_string</tt> has to be treated 
-specially in code that is otherwise oblivious to the container type being used.
-<p/>
-Adding a <tt>charT*</tt> return type to <tt>data()</tt> would be equivalent to doing <tt>&amp;str[0]</tt> or <tt>&amp;str.front()</tt>.
-<p/>
-Small discussion on the issue can be found <a href="http://stackoverflow.com/questions/7518732/why-are-stdvectordata-and-stdstringdata-different">here</a>
-and in the <a href="https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/ll9HuEML6zo/discussion">std-discussion thread</a>  
-(which didn't get too much attention).
-<p/>
-This requires a small change to <tt>std::basic_string</tt>'s definition in 21.4 [basic.string] to add the method to 
-<tt>std::basic_string</tt>, and another small change in 21.4.7.1 [string.accessors] to define the new method.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Back to LEWG.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change class template <tt>basic_string</tt> synopsis, 21.4 [basic.string], as indicated:</p>
-<blockquote>
-<pre>
-namespace std {
-  template&lt;class charT, class traits = char_traits&lt;charT&gt;,
-  class Allocator = allocator&lt;charT&gt; &gt;
-  class basic_string {
-  public:
-    [&hellip;]
-    <i>// 21.4.7, string operations:</i>
-    const charT* c_str() const noexcept;
-    const charT* data() const noexcept;
-    <ins>charT* data() noexcept;</ins>
-    allocator_type get_allocator() const noexcept;
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-
-</li>
-
-<li><p>Add the following sequence of paragraphs following 21.4.7.1 [string.accessors] p3, as indicated:</p>
-<blockquote>
-<pre>
-<ins>charT* data() noexcept;</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: A pointer <tt>p</tt> such that <tt>p + i == &amp;operator[](i)</tt> for each <tt>i</tt> in <tt>[0,size()]</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: Constant time.</ins>
-<p/>
-<ins>-?- <i>Requires</i>: The program shall not alter the value stored at <tt>p + size()</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2392"></a>2392. "character type" is used but not defined</h3>
-<p><b>Section:</b> 17.3 [defns.ntcts], 22.3.1.1.1 [locale.category], 27.2.2 [iostreams.limits.pos], 27.7.3.6.1 [ostream.formatted.reqmts], 27.7.3.6.4 [ostream.inserters.character] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2014-06-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The term "character type" is used in 17.3 [defns.ntcts], 22.3.1.1.1 [locale.category],
-27.2.2 [iostreams.limits.pos], 27.7.3.6.1 [ostream.formatted.reqmts], and
-27.7.3.6.4 [ostream.inserters.character], but the core language only defines
-"narrow character types" (3.9.1 [basic.fundamental]).
-<p/>
-"wide-character type" is used in 22.5 [locale.stdcvt], but the core
-language only defines a "wide-character set" and "wide-character literal".
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2393"></a>2393. <tt>std::function</tt>'s <em>Callable</em> definition is broken</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The existing definition of <tt>std::function</tt>'s <em>Callable</em> requirements provided in 20.9.12.2 [func.wrap.func]
-p2,
-</p>
-<blockquote><p>
-A callable object <tt>f</tt> of type <tt>F</tt> is <em>Callable</em> for argument types <tt>ArgTypes</tt> and return type 
-<tt>R</tt> if the expression <tt><i>INVOKE</i>(f, declval&lt;ArgTypes&gt;()..., R)</tt>, considered as an unevaluated operand 
-(Clause 5), is well formed (20.9.2).
-</p></blockquote>
-<p>
-is defective in several aspects:
-</p>
-<ol style="list-style-type:upper-roman">
-<li><p>The wording can be read to be defined in terms of callable objects, not of callable types.</p>
-</li>
-<li><p>Contrary to that, 20.9.12.2.5 [func.wrap.func.targ] p2 speaks of "<tt>T</tt> shall be a type that is <em>Callable</em> 
-(20.9.11.2) for parameter types <tt>ArgTypes</tt> and return type <tt>R</tt>."</p>
-</li>
-<li><p>
-The required value category of the callable object during the call expression (lvalue or rvalue) strongly depends on
-an interpretation of the expression <tt>f</tt> and therefore needs to be specified unambiguously.
-</p></li>
-</ol>
-<p>
-The intention of original <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1402.html">proposal</a> 
-(see IIIa. Relaxation of target requirements) was to refer to both types and values ("we say that the function object <tt>f</tt> 
-(and its type <tt>F</tt>) is <em>Callable</em> [&hellip;]"), but that mental model is not really deducible from the
-existing wording. An improved type-dependence wording would also make the sfinae-conditions specified in 20.9.12.2.1 [func.wrap.func.con] 
-p8 and p21 ("[&hellip;] shall not participate in overload resolution unless <tt>f</tt> is Callable (20.9.11.2)
-for argument types <tt>ArgTypes...</tt> and return type <tt>R</tt>.") easier to interpret.
-<p/>
-My understanding always had been (see e.g. Howard's code example in the 2009-05-01 comment in LWG <a href="lwg-defects.html#815">815</a>), that 
-<tt>std::function</tt> invokes the call operator of its target via an <b>lvalue</b>. The required value-category is relevant, 
-because it allows to reflect upon whether an callable object such as
-</p>
-<blockquote><pre>
-struct RVF 
-{
-  void operator()() const &amp;&amp; {}
-};
-</pre></blockquote>
-<p>
-would be a feasible target object for <tt>std::function&lt;void()&gt;</tt> or not.
-<p/>
-Clarifying the current <em>Callable</em> definition seems also wise to make a future transition to language-based concepts
-easier. A local fix of the current wording is simple to achieve, e.g. by rewriting it as follows:
-</p>
-<blockquote><p>
-A callable <del>object <tt>f</tt> of</del> type <ins>(20.9.1 [func.def])</ins> <tt>F</tt> is <em>Callable</em> 
-for argument types <tt>ArgTypes</tt> and return type <tt>R</tt> if the expression <tt><i>INVOKE</i>(<del>f</del><ins>declval&lt;F&amp;&gt;()</ins>, 
-declval&lt;ArgTypes&gt;()..., R)</tt>, considered as an unevaluated operand (Clause 5), is well formed (20.9.2).
-</p></blockquote>
-<p>
-It seems appealing to move such a general <em>Callable</em> definition to a more "fundamental" place (e.g. as another
-paragraph of 20.9.1 [func.def]), but the question arises, whether such a more general concept should impose
-the requirement that the call expression is invoked on an <b>lvalue</b> of the callable object &mdash; such a
-special condition would also conflict with the more general definition of the <tt>result_of</tt> trait, which
-is defined for either lvalues or rvalues of the callable type <tt>Fn</tt>. In this context I would like to point out that
-"<em>Lvalue-Callable</em>" is not the one and only <em>Callable</em> requirement in the library. Counter examples are
-<tt>std::thread</tt>, <tt>call_once</tt>, or <tt>async</tt>, which depend on "<em>Rvalue-Callable</em>", because they 
-all act on functor rvalues, see e.g. 30.3.1.2 [thread.thread.constr]:
-</p>
-<blockquote><p>
-[&hellip;] The new thread of execution executes <tt><i>INVOKE</i>(<i>DECAY_COPY</i>(std::forward&lt;F&gt;(f)), 
-<i>DECAY_COPY</i>(std::forward&lt;Args&gt;(args))...)</tt> [&hellip;]
-</p></blockquote>
-<p>
-For every callable object <tt>F</tt>, the result of <tt><i>DECAY_COPY</i></tt> is an rvalue. These implied rvalue function calls are 
-no artifacts, but had been deliberately voted for by a Committee decision (see LWG <a href="lwg-defects.html#2021">2021</a>, 2011-06-13 comment) 
-and existing implementations respect these constraints correctly. Just to give an example,
-</p>
-<blockquote><pre>
-#include &lt;thread&gt;
-
-struct LVF 
-{
-  void operator()() &amp; {}
-};
-
-int main()
-{
-  LVF lf;
-  std::thread t(lf);
-  t.join();
-}
-</pre></blockquote>
-<p>
-is supposed to be rejected.
-<p/>
-The below presented wording changes are suggested to be minimal (still local to <tt>std::function</tt>), but the used approach
-would simplify a future (second) conceptualization or any further generalization of <em>Callable</em> requirements of the Library.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Related to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4348.html">N4348</a>. Don't touch with a barge pole. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.9.12.2 [func.wrap.func] p2 as indicated:</p>
-
-<blockquote><p>
--2- A callable <del>object <tt>f</tt> of</del> type <ins>(20.9.1 [func.def])</ins> <tt>F</tt> is <em><ins>Lvalue-</ins>Callable</em> 
-for argument types <tt>ArgTypes</tt> and return type <tt>R</tt> if the expression <tt><i>INVOKE</i>(<del>f</del><ins>declval&lt;F&amp;&gt;()</ins>, 
-declval&lt;ArgTypes&gt;()..., R)</tt>, considered as an unevaluated operand (Clause 5), is well formed (20.9.2).
-</p></blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.1 [func.wrap.func.con] p8+p21 as indicated:</p>
-
-<blockquote>
-<pre>
-template&lt;class F&gt; function(F f);
-template &lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--8- <i>Remarks</i>: These constructors shall not participate in overload resolution unless <tt><del>f</del><ins>F</ins></tt> is 
-<tt><ins>Lvalue-</ins>Callable</tt> (20.9.11.2) for argument types <tt>ArgTypes...</tt> and return type <tt>R</tt>.
-</p>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<pre>
-template&lt;class F&gt; function&amp; operator=(F&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--21- <i>Remarks</i>: This assignment operator shall not participate in overload resolution unless 
-<tt><del>declval&lt;typename decay&lt;F&gt;::type&amp;&gt;()</del><ins>decay_t&lt;F&gt;</ins></tt> is 
-<tt><ins>Lvalue-</ins>Callable</tt> (20.9.11.2) for argument types <tt>ArgTypes...</tt> and return type <tt>R</tt>.
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.5 [func.wrap.func.targ] p2 as indicated: [<i>Editorial comment</i>: Instead of adapting the preconditions
-for the naming change I recommend to strike it completely, because the <tt>target()</tt> functions do not depend on it; the
-corresponding wording exists since its <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1667.pdf">initial proposal</a>
-and it seems without any advantage to me. Assume that some template argument <tt>T</tt> is provided, which does <em>not</em>
-satisfy the requirements: The effect will be that the result is a null pointer value, but that case can happen in other (valid) situations
-as well. &mdash; <i>end comment</i>]</p>
-
-<blockquote><pre>
-template&lt;class T&gt; T* target() noexcept;
-template&lt;class T&gt; const T* target() const noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-2- <i>Requires</i>: <tt>T</tt> shall be a type that is <tt>Callable</tt> (20.9.11.2) for parameter types 
-<tt>ArgTypes</tt> and return type <tt>R</tt>.</del>
-<p/>
--3- <i>Returns</i>: If <tt>target_type() == typeid(T)</tt> a pointer to the stored function target; otherwise a null
-pointer.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2394"></a>2394. <tt>locale::name</tt> specification unclear &mdash; what is implementation-defined?</h3>
-<p><b>Section:</b> 22.3.1.3 [locale.members] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-06-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.members">issues</a> in [locale.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.3.1.3 [locale.members] p5 says:
-</p>
-<blockquote><p>
-<i>Returns</i>: The name of <tt>*this</tt>, if it has one; otherwise, the string <tt>"*"</tt>. If <tt>*this</tt> has a name, then
-<tt>locale(name().c_str())</tt> is equivalent to <tt>*this</tt>. Details of the contents of the resulting string are
-otherwise implementation-defined.
-</p></blockquote>
-<p>
-So&hellip; what is implementation-defined here, exactly? The first sentence <em>completely</em> defines the behavior of this function 
-in all cases.
-<p/>
-Also, the second sentence says (effectively) that all locales with the same name are equivalent: given <tt>L1</tt> and <tt>L2</tt> 
-that have the same name <tt>N</tt>, they are both equivalent to <tt>locale(N)</tt>, and since there is no definition of 
-"equivalent" specific to <tt>locale</tt>, I assume it's the normal transitive equivalence property, which would imply that 
-<tt>L1</tt> is equivalent to <tt>L2</tt>. I'm not sure why this central fact is in the description of <tt>locale::name</tt>, nor 
-why it's written in this roundabout way.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2398"></a>2398. <tt>type_info</tt>'s destructor shouldn't be required to be virtual</h3>
-<p><b>Section:</b> 18.7.1 [type.info] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#type.info">issues</a> in [type.info].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>type_info</tt>'s destructor is depicted as being <tt>virtual</tt>, which is nearly unobservable to users (since they can't construct 
-or copy this class, they can't usefully derive from it). However, it's technically observable (via <tt>is_polymorphic</tt> and 
-<tt>has_virtual_destructor</tt>). It also imposes real costs on implementations, requiring them to store one vptr per 
-<tt>type_info</tt> object, when RTTI space consumption is a significant concern.
-<p/>
-Making this implementation-defined wouldn't affect users (who can observe this only if they're specifically looking for it) and 
-wouldn't affect implementations who need <tt>virtual</tt> here, but it would allow other implementations to drop <tt>virtual</tt> 
-and improve their RTTI space consumption.
-<p/>
-Richard Smith:
-<p/>
-It's observable in a few other ways.
-</p>
-<blockquote><pre>
-std::map&lt;void*, something&gt; m;
-m[dynamic_cast&lt;void*&gt;(&amp;typeid(blah))] = stuff;
-</pre></blockquote>
-<p>
-... is broken by this change, because you can't <tt>dynamic_cast</tt> a non-polymorphic class type to <tt>void*</tt>.
-</p>
-<blockquote><pre>
-type_info&amp; f();
-typeid(f());
-</pre></blockquote>
-<p>
-... evaluates <tt>f()</tt> at runtime without this change, and might not do so with this change.
-<p/>
-These are probably rare things, but I can imagine at least some forms of the latter being used in SFINAE tricks.
-</p>
-
-<p><i>[Lenexa 2015-05-05: Move to Open]</i></p>
-
-<p>Marshall to poll LEWG for their opinion</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 18.7.1 [type.info] as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class type_info {
-  public:
-    <del>virtual</del><ins><i>see below</i></ins> ~type_info();
-    [&hellip;]
-  };
-}
-</pre>
-<p>
--1- The class <tt>type_info</tt> describes type information generated by the implementation. Objects of this class
-effectively store a pointer to a name for the type, and an encoded value suitable for comparing two types for
-equality or collating order. The names, encoding rule, and collating sequence for types are all unspecified
-and may differ between programs. <ins>Whether <tt>~type_info()</tt> is <tt>virtual</tt> is implementation-defined.</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2402"></a>2402. <tt>basic_string(const basic_string&amp; str, size_type pos, size_type n = npos)</tt> shouldn't use <tt>Allocator()</tt></h3>
-<p><b>Section:</b> 21.4.2 [string.cons] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.cons">issues</a> in [string.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-21.4.2 [string.cons] p3 specifies:
-</p>
-<blockquote>
-<pre>
-basic_string(const basic_string&amp; str, size_type pos, size_type n = npos, const Allocator&amp; a = Allocator());
-</pre>
-<p>
-But this implies that <tt>basic_string(str, pos)</tt> and <tt>basic_string(str, pos, n)</tt> use <tt>Allocator()</tt> 
-instead of getting an allocator from <tt>str</tt>.
-<p/>
-21.4.1 [string.require] p3 says "The <tt>Allocator</tt> object used shall be obtained as described in 23.2.1."  
-23.2.1 [container.requirements.general] p8 says "Copy constructors for these container types obtain an allocator 
-by calling <tt>allocator_traits&lt;allocator_type&gt;::select_on_container_copy_construction</tt> on the allocator 
-belonging to the container being copied.", but this isn't exactly a copy constructor. Then it talks about move constructors 
-(which this definitely isn't), and finally says that "All other constructors for these container types take a 
-<tt>const allocator_type&amp;</tt> argument. [&hellip;] A copy of this allocator is used for any memory allocation performed".
-</p>
-</blockquote>
-
-<p><i>[2015-05-06 Lenexa: move to Open]</i></p>
-
-<p>STL: there an allocator right there in str, why default-construct one</p>
-<p>STL: my fix, which may not be right, splits out functions with and without allocators</p>
-<p>JW: there are other ways to propagate the allocator from str to the new object</p>
-<p>PJP: hard to get motivated about this one</p>
-<p>JW: I think this is not a copy operation, this is init'ing a string from a range of characters which happens to originate in a string. It makes it inconsistent with the similar ctor taking a const char pointer, and if we had a std::string_view we wouldn't even have this ctor, and it wouldn't be possible to propagate the allocator.</p>
-<p>STL: but people with stateful allocators want it to propagate</p>
-<p>JW: I think the people using stateful allocators will alter the default behaviour of select_on_container_copy_construction so that it doesn't propagate, but will return a default-constructed one (to ensure a stateful allocator referring to a stack buffer doesn't leak to a region where the stack buffer has gone). So for those people, your proposed change does nothing, it changes one default-constructed allocator to a call to select_on_container_copy_construction which returns a default-constructed allocator. For other people who have different stateful allocators they can still provide the right allocator (whatever that may be) by passing it in.</p>
-<p>STL: OK, that's convincing.</p>
-<p>PJP: I agree with Jonathan</p>
-<p>JW: would like to run both our arguments by Pablo in case I'm totally misrepresenting the expected users of allocator-traits stuff</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 21.4 [basic.string] p5, class template <tt>basic_string</tt> synopsis, as indicated:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-<i>// 21.4.2, construct/copy/destroy:</i>
-[&hellip;]
-basic_string(basic_string&amp;&amp; str) noexcept;
-<ins>basic_string(const basic_string&amp; str, size_type pos, size_type n = npos);</ins>
-basic_string(const basic_string&amp; str, size_type pos, size_type n<del> = npos</del>,
-            const Allocator&amp; a<del> = Allocator()</del>);
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 21.4.2 [string.cons] around p3 as indicated:</p>
-
-<blockquote>
-<pre>
-<ins>basic_string(const basic_string&amp; str, 
-             size_type pos, size_type n = npos);</ins>
-basic_string(const basic_string&amp; str, 
-             size_type pos, size_type n<del> = npos</del>,
-             const Allocator&amp; a<del> = Allocator()</del>);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--5- <i>Effects</i>: Constructs an object of class <tt>basic_string</tt> and determines the effective length <tt>rlen</tt> of the
-initial string value as the smaller of <tt>n</tt> and <tt>str.size() - pos</tt>, as indicated in Table 65. <ins>The first constructor 
-obtains an allocator by calling <tt>allocator_traits&lt;allocator_type&gt;::select_on_container_copy_construction</tt> on the 
-allocator belonging to <tt>str</tt>.</ins>
-<p/>
-Table 65 &mdash; <ins><tt>basic_string(const basic_string&amp;, size_type, size_type)</tt> and</ins>
-<tt>basic_string(const basic_string&amp;, size_type, size_type, const Allocator&amp;)</tt> effects
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2412"></a>2412. <tt>promise::set_value()</tt> and <tt>promise::get_future()</tt> should not race</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise], 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#SG1">SG1</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#SG1">SG1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following code has a data race according to the standard:
-</p>
-<blockquote>
-<pre>
-std::promise&lt;void&gt; p;
-std::thread t{ []{
-  p.get_future().wait();
-}};
-p.set_value();
-t.join();
-</pre>
-</blockquote>
-<p>
-The problem is that both <tt>promise::set_value()</tt> and
-<tt>promise::get_future()</tt> are non-const member functions which modify the
-same object, and we only have wording saying that the <tt>set_value()</tt> and
-<tt>wait()</tt> calls (i.e. calls setting and reading the shared state) are
-synchronized.
-<p/>
-The calls don't actually access the same memory locations, so the
-standard should allow it. My suggestion is to state that calling
-<tt>get_future()</tt> does not conflict with calling the various functions that
-make the shared state ready, but clarify with a note that this does
-not imply any synchronization or "happens before", only being free
-from data races.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 30.6.5 [futures.promise] around p12 as indicated:</p>
-
-<blockquote>
-<pre>
-future&lt;R&gt; get_future();
-</pre>
-<blockquote>
-<p>
--12- <i>Returns</i>: A <tt>future&lt;R&gt;</tt> object with the same shared state as <tt>*this</tt>.
-<p/>
-<ins>-?- <i>Synchronization</i>: Calls to this function do not conflict (1.10 [intro.multithread]) 
-with calls to <tt>set_value</tt>, <tt>set_exception</tt>, <tt>set_value_at_thread_exit</tt>, or
-<tt>set_exception_at_thread_exit</tt>. [<i>Note</i>: Such calls need not be synchronized, but implementations 
-must ensure they do not introduce data races. &mdash; <i>end note</i>]</ins>
-<p/>
--13- <i>Throws</i>: <tt>future_error</tt> if <tt>*this</tt> has no shared state or if <tt>get_future</tt> has already been called on a
-<tt>promise</tt> with the same shared state as <tt>*this</tt>.
-<p/>
--14- <i>Error conditions</i>: [&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 30.6.9.1 [futures.task.members] around p13 as indicated:</p>
-
-<blockquote>
-<pre>
-future&lt;R&gt; get_future();
-</pre>
-<blockquote>
-<p>
--13- <i>Returns</i>: A <tt>future&lt;R&gt;</tt> object that shares the same shared state as <tt>*this</tt>.
-<p/>
-<ins>-?- <i>Synchronization</i>: Calls to this function do not conflict (1.10 [intro.multithread]) 
-with calls to <tt>operator()</tt> or <tt>make_ready_at_thread_exit</tt>. [<i>Note</i>: Such calls need not be 
-synchronized, but implementations must ensure they do not introduce data races. &mdash; <i>end note</i>]</ins>
-<p/>
--14- <i>Throws</i>: a <tt>future_error</tt> object if an error occurs.
-<p/>
--15- <i>Error conditions</i>: [&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2413"></a>2413. <tt>assert</tt> macro is overconstrained</h3>
-<p><b>Section:</b> 19.3 [assertions] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> David Krauss <b>Opened:</b> 2014-06-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#assertions">active issues</a> in [assertions].</p>
-<p><b>View all other</b> <a href="lwg-index.html#assertions">issues</a> in [assertions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When <tt>NDEBUG</tt> is defined, <tt>assert</tt> must expand exactly to the token sequence <tt>((void)0)</tt>, with no 
-whitespace (C99 &sect;7.2/1 and also C11 &sect;7.2/1). This is a lost opportunity to pass the condition along to the optimizer.
-<p/>
-The user may observe the token sequence using the stringize operator or discriminate it by making a matching <tt>#define</tt> 
-directive. There is little chance of practical code doing such things. It's reasonable to allow any expansion that is a <tt>void</tt> 
-expression with no side effects or semantic requirements, for example, an extension keyword or an attribute-specifier finagled 
-into the context.
-<p/>
-Conforming optimizations would still be limited to treating the condition as hint, not a requirement. Nonconformance on this 
-point is quite reasonable though, given user preferences. Anyway, it shouldn't depend on preprocessor quirks.
-<p/>
-As for current practice, Darwin OS <tt>&lt;assert.h&gt;</tt> provides a GCC-style compiler hint <tt>__builtin_expect</tt> but only in 
-debug mode. Shouldn't release mode preserve hints?
-<p/>
-Daniel:
-<p/>
-The corresponding resolution should take care not to conflict with the intention behind LWG <a href="lwg-active.html#2234">2234</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2414"></a>2414. Member function reentrancy should be implementation-defined</h3>
-<p><b>Section:</b> 17.6.5.8 [reentrancy] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-07-01 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View all other</b> <a href="lwg-index.html#reentrancy">issues</a> in [reentrancy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N3936 17.6.5.8 [reentrancy]/1 talks about "functions", but that doesn't address the scenario of calling different member 
-functions of a single object. Member functions often have to violate and then re-establish invariants. For example, vectors 
-often have "holes" during insertion, and element constructors/destructors/etc. shouldn't be allowed to observe the vector 
-while it's in this invariant-violating state. The [reentrancy] Standardese should be extended to cover member functions, 
-so that implementers can either say that member function reentrancy is universally prohibited, or selectively allowed for 
-very specific scenarios.
-<p/>
-(For clarity, this issue has been split off from LWG <a href="lwg-closed.html#2382">2382</a>.)
-</p>
-
-<p><i>[2014-11-03 Urbana]</i></p>
-
-<p>
-AJM confirmed with SG1 that they had no special concerns with this issue, and LWG should retain ownership.
-<p/>
-AM: this is too overly broad as it also covers calling the exact same member function on a different object<br/>
-STL: so you insert into a map, and copying the value triggers another insertion into a different map of the same type<br/>
-GR: reentrancy seems to imply the single-threaded case, but needs to consider the multi-threaded case
-<p/>
-Needs more wording.
-</p>
-<p>
-Move to Open
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 17.6.5.8 [reentrancy] p1 as indicated:</p>
-<blockquote>
-<p>
--1- Except where explicitly specified in this standard, it is implementation-defined which functions <ins>(including different 
-member functions called on a single object)</ins> in the Standard C++ library may be recursively reentered.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2417"></a>2417. [fund.ts] <tt>std::experimental::optional::operator&lt;</tt> and <tt>LessThanComparable</tt> requirement</h3>
-<p><b>Section:</b> X [optional.relops], X [optional.comp_with_t] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-06-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-Currently, <tt>std::experimental::optional::operator==</tt> imposes the <tt>EqualityComparable</tt> requirement which provides
-two guarantees: It ensures that <tt>operator!=</tt> can rely on the equivalence-relation property and more importantly, that
-the <tt>BooleanTestable</tt> requirements suggested by issue <a href="lwg-active.html#2114">2114</a> are automatically implied.
-<p/>
-<tt>std::experimental::optional::operator&lt;</tt> doesn't provide a <tt>LessThanComparable</tt> requirement, but there was quite
-an historic set of changes involved with that family of types: As of 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3527.html">N3527</a>
-this operator was defined in terms of <tt>operator&lt;</tt> of the contained type <tt>T</tt> and imposed the <tt>LessThanComparable</tt> 
-requirement. In the final acceptance step of <tt>optional</tt> by the committee, the definition was expressed in terms of <tt>std::less</tt>
-and the <tt>LessThanComparable</tt> requirement had been removed.
-<p/>
-The inconsistency between <tt>operator==</tt> and <tt>operator&lt;</tt> should be removed. One possible course of action would be 
-to add the <tt>LessThanComparable</tt> to <tt>std::experimental::optional::operator&lt;</tt>. The <tt>EqualityComparable</tt> requirement
-of <tt>operator==</tt> could also be removed, but in that case both operators would at least need to require the <tt>BooleanTestable</tt> 
-requirements (see <a href="lwg-active.html#2114">2114</a>) for the result type of <tt>T</tt>'s <tt>operator==</tt> and <tt>operator&lt;</tt>. 
-<p/>
-Arguably, corresponding operators for <tt>pair</tt> and <tt>tuple</tt> do not impose <tt>LessThanComparable</tt> (nor
-<tt>EqualityComparable</tt>), albeit the definition of the "derived" relation functions depend on properties ensured by
-<tt>LessThanComparable</tt>. According to the <a href="https://www.sgi.com/tech/stl/pair.html">SGI definition</a>, the intention was
-to imposed both <tt>EqualityComparable</tt> and <tt>LessThanComparable</tt>. If this is not intended, the standard should clarify
-this position.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-VV, DK, JY discuss why and when <tt>LessThanComparable</tt> was removed. AM: Move to LEWG. Please tell LWG when you look at it. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2419"></a>2419. Clang's libc++ extension to <tt>std::tuple</tt></h3>
-<p><b>Section:</b> 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Akim Demaille <b>Opened:</b> 2014-07-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.cnstr">active issues</a> in [tuple.cnstr].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.cnstr">issues</a> in [tuple.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The issue has been submitted after exchanges with the clang++ team
-as a consequence of two PR I sent:
-<p/>
-<a href="http://llvm.org/bugs/show_bug.cgi?id=20174">Issue 20174</a>
-<p/>
-<a href="http://llvm.org/bugs/show_bug.cgi?id=20175">Issue 20175</a>
-<p/>
-The short version is shown in the program below:
-</p>
-<blockquote>
-<pre>
-#include &lt;iostream&gt;
-#include &lt;tuple&gt;
-
-struct base
-{
-  void out(const std::tuple&lt;char, char&gt;&amp; w) const
-  {
-    std::cerr &lt;&lt; "Tuple: " &lt;&lt; std::get&lt;0&gt;(w) &lt;&lt; std::get&lt;1&gt;(w) &lt;&lt; '\n';
-  }
-};
-
-struct decorator
-{
-  base b_;
-
-  template &lt;typename... Args&gt;
-  auto
-  out(Args&amp;&amp;... args)
-    -> decltype(b_.out(args...))
-  {
-    return b_.out(args...);
-  }
-
-  void out(const char&amp; w)
-  {
-    std::cerr &lt;&lt; "char: " &lt;&lt; w &lt;&lt; '\n';
-  }
-};
-
-int main()
-{
-  decorator d{base{}};
-  char l = 'a';
-  d.out(l);
-}
-</pre>
-</blockquote>
-<p>
-This is a stripped down version of a real world case where I
-wrap objects in decorators.  These decorators contributes some
-functions, and forward all the rest of the API to the wrapped
-object using perfect forwarding.  There can be overloaded names.
-<p/>
-Here the inner object provides an
-</p>
-<blockquote><pre>
-out(const std::tuple&lt;char, char&gt;&amp;) -&gt; void
-</pre></blockquote>
-<p>
-function, and the wrappers, in addition to perfect forwarding,
-provides
-</p>
-<blockquote><pre>
-out(const char&amp;) -&gt; void
-</pre></blockquote>
-<p>
-The main function then call <tt>out(l)</tt> where <tt>l</tt> is a <tt>char</tt> lvalue.
-<p/>
-With (GCC's) libstdc++ I get the expected result: the <tt>char</tt>
-overload is run.  With (clang++'s) libc++ it is the tuple
-version which is run.
-</p>
-<blockquote><pre>
-$ g++-mp-4.9 -std=c++11 bar.cc &amp;&amp; ./a.out
-char: a
-$ clang++-mp-3.5 -std=c++11 bar.cc -Wall &amp;&amp; ./a.out
-Tuple: a
-</pre></blockquote>
-<p>
-It turns out that this is the result of an extension of <tt>std::tuple</tt>
-in libc++ where they accept constructors with fewer values that
-tuple elements.
-<p/>
-The purpose of this issue is to ask the standard to forbid
-that this extension be allowed to participate in overload resolution.
-</p>
-
-<p><i>[2014-10-05, Daniel comments]</i></p>
-
-<p>
-This issue is closely related to LWG <a href="lwg-active.html#2312">2312</a>.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>
-Moved to LEWG.
-</p>
-<p>
-Extensions to <tt>tuple</tt>'s design are initially a question for LEWG.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2421"></a>2421. Non-specification of handling zero size in <tt>std::align</tt> [ptr.align]</h3>
-<p><b>Section:</b> 20.7.5 [ptr.align] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Melissa Mears <b>Opened:</b> 2014-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ptr.align">issues</a> in [ptr.align].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification of <tt>std::align</tt> does not appear to specify what happens when the value of the <tt>size</tt> 
-parameter is 0. (The question of what happens when <tt>alignment</tt> is 0 is mentioned in another Defect Report, <a href="lwg-defects.html#2377">2377</a>; 
-it would change the behavior to be undefined rather than potentially implementation-defined.)
-<p/>
-The case of <tt>size</tt> being 0 is interesting because the result is ambiguous. Consider the following code's output:
-</p>
-<blockquote>
-<pre>
-#include &lt;cstdio&gt;
-#include &lt;memory&gt;
-
-int main()
-{
-  alignas(8) char buffer[8];
-  void *ptr = &amp;buffer[1];
-  std::size_t space = sizeof(buffer) - sizeof(char[1]);
-
-  void *result = std::align(8, 0, ptr, space);
-
-  std::printf("%d %td\n", !!result, result ? (static_cast&lt;char*&gt;(result) - buffer) : std::ptrdiff_t(-1));
-}
-</pre>
-</blockquote>
-<p>
-There are four straightforward answers as to what the behavior of <tt>std::align</tt> with size 0 should be:
-</p>
-<ol>
-<li><p>The behavior is undefined because the size is invalid.</p></li>
-<li><p>The behavior is implementation-defined. This seems to be the status quo, with current implementations using #3.</p></li>
-<li><p>Act the same as <tt>size == 1</tt>, except that if <tt>size == 1</tt> would fail but would be defined and succeed 
-if space were exactly 1 larger, the result is a pointer to the byte past the end of the <tt>ptr</tt> buffer. That is, the 
-"aligned" version of a 0-byte object can be one past the end of an allocation. Such pointers are, of course, valid when not 
-dereferenced (and a "0-byte object" shouldn't be), but whether that is desired is not specified in the Standard's definition 
-of <tt>std::align</tt>, it appears. The output of the code sample is "<tt>1 8</tt>" in this case.</p></li>
-<li><p>Act the same as <tt>size == 1</tt>; this means that returning "one past the end" is not a possible result. In this case, 
-the code sample's output is "<tt>0 -1</tt>".</p></li>
-</ol>
-<p>
-The two compilers I could get working with <tt>std::align</tt>, Visual Studio 2013 and Clang 3.4, implement #3. (Change <tt>%td</tt> to 
-<tt>%Id</tt> on Visual Studio 2013 and earlier. 2014 and later will have <tt>%td</tt>.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2422"></a>2422. <tt>std::numeric_limits&lt;T&gt;::is_modulo</tt> description: "most machines" errata</h3>
-<p><b>Section:</b> 18.3.2.4 [numeric.limits.members] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Melissa Mears <b>Opened:</b> 2014-08-06 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.limits.members">issues</a> in [numeric.limits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The seemingly non-normative (?) paragraph 61 (referring to N3936) describing how "most machines" define 
-<tt>std::numeric_limits&lt;T&gt;::is_modulo</tt> in [numeric.limits.members] appears to have some issues, in my opinion.
-</p>
-<blockquote>
-<p>
--61- On most machines, this is <tt>false</tt> for floating types, <tt>true</tt> for unsigned integers, and <tt>true</tt> 
-for signed integers.
-</p>
-</blockquote>
-<p>
-Issues I see:
-</p>
-<ol>
-<li><p>Very minor: change clause 2 to "this is <tt>false</tt> for floating <ins>point</ins> types". Other uses of the term 
-say "floating point types" rather than just "floating types" &mdash; see nearby <tt>is_iec559</tt>, <tt>tinyness_before</tt>, 
-etc.</p></li>
-<li><p><tt>is_modulo</tt> <em>must</em> be <tt>true</tt> for unsigned integers in order to be compliant with the Standard; 
-this is not just for "most machines". For reference, this requirement is from [basic.fundamental] paragraph 4 with its 
-footnote 48.</p></li>
-<li><p>Depending on the definition of "most machines", <tt>is_modulo</tt> could be <tt>false</tt> for most machines' signed 
-integer types. GCC, Clang and Visual Studio, the 3 most popular C++ compilers by far, by default treat signed integer overflow 
-as undefined.</p></li>
-</ol>
-<p>
-As an additional note regarding the definition of <tt>is_modulo</tt>, it seems like it should be explicitly mentioned that 
-on an implementation for which signed integer overflow is undefined, <tt>is_modulo</tt> shall be <tt>false</tt> for signed 
-integer types. It took bugs filed for all three of these compilers before they finally changed (or planned to change) 
-<tt>is_modulo</tt> to <tt>false</tt> for signed types.
-</p>
-
-<p><i>[2014-12 telecon]</i></p>
-
-<p>
-HH: agree with the proposal, don't like the phrasing<br/>
-AM: second note feels a bit wooly<br/>
-WB: not even happy with the first note, notes shouldn't say "shall"<br/>
-JW: the original isn't very prescriptive because "on most machines" is not something the standard controls.<br/>
-AM: "On most machines" should become a note too?<br/>
-AM: first note is repeating something defined in core, shouldn't say it normatively here. Change "shall" to "is"?<br/>
-MC: don't like "signed integer overflow is left undefined" ... it's just plain undefined.<br/>
-AM: implementations can define what they do in that case and provide guarantees.<br/>
-WB: in paragraph 61, would like to see "this" replaced by "is_modulo"<br/>
-AM: Move to Open 
-</p>
-
-<p><i>[2015-05-05 Lenexa]</i></p>
-
-<p>Marshall: I will contact the submitter to see if she can re-draft the Proposed Resolution</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Edit 18.3.2.4 [numeric.limits.members] around p60 as indicated:</p>
-
-<blockquote>
-<pre>
-static constexpr bool is_modulo;
-</pre>
-<p>
--60- True if the type is modulo.(footnote) A type is modulo if, for any operation involving <tt>+</tt>, <tt>-</tt>, or <tt>*</tt> 
-on values of that type whose result would fall outside the range <tt>[min(),max()]</tt>, the value returned differs from
-the true value by an integer multiple of <tt>max() - min() + 1</tt>.
-<p/>
-<ins>-??- [<i>Note</i>: <tt>is_modulo</tt> shall be <tt>true</tt> for unsigned integer types (3.9.1 [basic.fundamental]). &mdash; 
-<i>end note</i>]</ins>
-<p/>
-<ins>-??- [<i>Note</i>: <tt>is_modulo</tt> shall be <tt>false</tt> for types for which overflow is undefined on the implementation, 
-because such types cannot meet the modulo requirement. Often, signed integer overflow is left undefined on implementations. &mdash; 
-<i>end note</i>]</ins>
-<p/>
--61- On most machines, this is <tt>false</tt> for floating <ins>point</ins> types<del>, <tt>true</tt> for unsigned integers, 
-and <tt>true</tt> for signed integers</del>.
-<p/>
--62- Meaningful for all specializations.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2423"></a>2423. Missing specification <tt>slice_array</tt>, <tt>gslice_array</tt>, <tt>mask_array</tt>, <tt>indirect_array</tt> copy constructor</h3>
-<p><b>Section:</b> 26.6.5 [template.slice.array], 26.6.7 [template.gslice.array], 26.6.8 [template.mask.array], 26.6.9 [template.indirect.array] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Akira Takahashi <b>Opened:</b> 2014-08-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.slice.array">issues</a> in [template.slice.array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I found a missing specification of the copy constructor of the following class templates:
-</p>
-<ul>
-<li><p><tt>slice_array</tt> (26.6.5 [template.slice.array])</p></li>
-<li><p><tt>gslice_array</tt> (26.6.7 [template.gslice.array])</p></li>
-<li><p><tt>mask_array</tt> (26.6.8 [template.mask.array])</p></li>
-<li><p><tt>indirect_array</tt> (26.6.9 [template.indirect.array])</p></li>
-</ul>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Before 26.6.5.2 [slice.arr.assign] insert a new sub-clause as indicated:</p>
-
-<p>
-<ins><b>-?- <tt>slice_array</tt> constructors [slice.arr.cons]</b></ins>
-</p>
-<blockquote>
-<pre>
-<ins>slice_array(const slice_array&amp;);</ins>
-</pre>
-<p>
-<ins>-?- <i>Effects</i>: The constructed slice refers to the same <tt>valarray&lt;T&gt;</tt> object to which
-the argument slice refers.</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>Before 26.6.7.2 [gslice.array.assign] insert a new sub-clause as indicated:</p>
-
-<p>
-<ins><b>-?- <tt>gslice_array</tt> constructors [gslice.array.cons]</b></ins>
-</p>
-<blockquote>
-<pre>
-<ins>gslice_array(const gslice_array&amp;);</ins>
-</pre>
-<p>
-<ins>-?- <i>Effects</i>: The constructed slice refers to the same <tt>valarray&lt;T&gt;</tt> object to which
-the argument slice refers.</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>Before 26.6.8.2 [mask.array.assign] insert a new sub-clause as indicated:</p>
-
-<p>
-<ins><b>-?- <tt>mask_array</tt> constructors [mask.array.cons]</b></ins>
-</p>
-<blockquote>
-<pre>
-<ins>mask_array(const mask_array&amp;);</ins>
-</pre>
-<p>
-<ins>-?- <i>Effects</i>: The constructed slice refers to the same <tt>valarray&lt;T&gt;</tt> object to which
-the argument slice refers.</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>Before 26.6.9.2 [indirect.array.assign] insert a new sub-clause as indicated:</p>
-
-<p>
-<ins><b>-?- <tt>indirect_array</tt> constructors [indirect.array.cons]</b></ins>
-</p>
-<blockquote>
-<pre>
-<ins>indirect_array(const indirect_array&amp;);</ins>
-</pre>
-<p>
-<ins>-?- <i>Effects</i>: The constructed slice refers to the same <tt>valarray&lt;T&gt;</tt> object to which
-the argument slice refers.</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2424"></a>2424. 29.5 should state that atomic types are not trivially copyable</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#Review">Review</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2014-08-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Review">Review</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Otherwise, one could use <tt>memcpy</tt> to save and restore the value according to 3.9p2.
-<p/>
-It seems the core language rules in 9 [class]p6 with 12.8 [class.copy]p12 
-(trivial copy constructor) etc. and 8.4.2 [dcl.fct.def.default]p5 (user-provided) say 
-that the atomic types are trivially copyable, which is bad. We shouldn't rely on future core 
-changes in that area and simply say in the library section 29.5 [atomics.types.generic] 
-that these very special types are not trivially copyable.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>
-Lawrence:Definition of "trivially copyable" has been changing.
-</p>
-<p>
-Doesn't hurt to add proposed change, even if the sentence is redundant
-</p>
-<p>
-Move to Review.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-GR has a minor problem with the style of the wording. VV has major issues with implementability.
-</p>
-
-<p><i>[2015-03-22, Jens Maurer responses to Cologne discussion]</i></p>
-
-<p>
-A library implementation could provide a partial specialization for <tt>is_trivially_copyable&lt;atomic&lt;T&gt;&gt;</tt>, 
-to ensure that any such type query would return <tt>false</tt>.
-<p/>
-Assuming such a specialization would be provided, how could a conforming program observe that per 
-language rules an <tt>atomic</tt> specialization would actually be trivially copyable if there 
-is no way to call the (deleted) copy constructor or copy assignment operator?
-<p/>
-The sole effect of the suggested addition of the constraining sentence is that it would make a user program
-non-conforming that attempts to invoke <tt>memcpy</tt> (and the like) on <tt>atomic</tt> types, since that
-would invoke undefined behaviour.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-SG1 is fine with P/R (and agrees it's needed), but LWG may want to
-check the details; it's not entirely an SG1 issue.
-</p>
-
-<p><i>[2015-05-05 Lenexa]</i></p>
-
-<p>Marshall: This was discussed on the telecon. Alisdair was going to write something to Mike and send it to Core.</p>
-<p>Hwrd: Core says that deleted copies are trivially copyable, which makes no sense to Library people.</p>
-<p>STL: There doesn't appear to be a Core issue about it.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Change 29.5 [atomics.types.generic]p3 as indicated:</p>
-
-<blockquote>
-<p>
-Specializations and instantiations of the <tt>atomic</tt> template shall have a deleted copy constructor, a deleted
-copy assignment operator, and a constexpr value constructor. <ins>They are not trivially copyable 
-types (3.9 [basic.types]).</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2426"></a>2426. Issue about <tt>compare_exchange</tt></h3>
-<p><b>Section:</b> 29.6.5 [atomics.types.operations.req] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2014-08-25 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.operations.req">active issues</a> in [atomics.types.operations.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations.req">issues</a> in [atomics.types.operations.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard is either ambiguous or misleading about the nature of accesses through the <tt>expected</tt> argument 
-to the <tt>compare_exchange_*</tt> functions in 29.6.5 [atomics.types.operations.req]p21.
-<p/>
-It is unclear whether the access to <tt>expected</tt> is itself atomic (intent clearly no) and exactly when the implementation 
-is allowed to read or write it. These affect the correctness of reasonable code.
-<p/>
-Herb Sutter, summarizing a complaint from Duncan Forster wrote:
-</p>
-<blockquote class="note">
-<p>
-Thanks Duncan,
-<p/>
-I think we have a bug in the standardese wording and the implementations are
-legal, but let's check with the designers of the feature.
-<p/>
-Let me try to summarize the issue as I understand it:
-</p>
-<ol>
-<li><p>
-What I think was intended: Lawrence, I believe you championed having
-<tt>compare_exchange_*</tt> take the <tt>expected</tt> value by reference, and update
-<tt>expected</tt> on failure to expose the old value, but this was only for convenience
-to simplify the calling loops which would otherwise always have to write an
-extra "reload" line of code. Lawrence, did I summarize your intent correctly?
-</p></li>
-<li><p>
-What I think Duncan is trying to do: However, it turns out that, now that
-<tt>expected</tt> is an lvalue, it has misled(?) Duncan into trying to use the success of
-<tt>compare_exchange_*</tt> to hand off ownership <em>of <tt>expected</tt> itself</em> to another
-thread. For that to be safe, if the <tt>compare_exchange_*</tt> succeeds then the
-thread that performed it must no longer read or write from <tt>expected</tt> else his
-technique contains a race. Duncan, did I summarize your usage correctly? Is
-that the only use that is broken?
-</p></li>
-<li><p>
-What the standard says: I can see why Duncan thinks the standard supports
-his use, but I don't think this was intended (I don't remember this being
-discussed but I may have been away for that part) and unless you tell me this
-was intended I think it's a defect in the standard. From 29.6.5 [atomics.types.operations.req]/21:
-</p>
-<blockquote><p>
--21- <i>Effects</i>: Atomically, compares the contents of the memory pointed to by
-<tt>object</tt> or by <tt>this</tt> for equality with that in <tt>expected</tt>, and if true, replaces the
-contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt> with that in <tt>desired</tt>, and
-if false, updates the contents of the memory in <tt>expected</tt> with the contents of
-the memory pointed to by <tt>object</tt> or by <tt>this</tt>. [&hellip;]
-</p></blockquote>
-<p>
-I think we have a wording defect here in any case, because the "atomically"
-should not apply to the entire sentence &mdash; I'm pretty sure we never intended the
-atomicity to cover the write to <tt>expected</tt>.
-<p/>
-As a case in point, borrowing from Duncan's mail below, I think the following
-implementation is intended to be legal:
-</p>
-<blockquote><pre>
-inline int _Compare_exchange_seq_cst_4(volatile _Uint4_t *_Tgt, _Uint4_t *_Exp, _Uint4_t _Value)
-{ /* compare and exchange values atomically with
-     sequentially consistent memory order */
-  int _Res;
-  _Uint4_t _Prev = _InterlockedCompareExchange((volatile long *)_Tgt, _Value, *_Exp);
-  <span style="color:#C80000">if (_Prev == *_Exp) //!!!!! Note the unconditional read from *_Exp here</span>
-    _Res = 1;
-  else
-  { /* copy old value */
-    _Res = 0;
-    *_Exp = _Prev;
-  }
-  return (_Res);
-}
-</pre></blockquote>
-<p>
-I think this implementation is intended to be valid &mdash; I think the only code that
-could be broken with the "!!!!!" read of <tt>*_Exp</tt> is Duncan's use of treating
-<tt>a.compare_exchange_*(expected, desired) == true</tt> as implying <tt>expected</tt> got
-handed off, because then another thread could validly be using <tt>*_Exp</tt> &mdash; but we
-never intended this use, right?
-</p>
-</li>
-</ol>
-</blockquote>
-<p>
-In a different thread Richard Smith wrote about the same problem:
-</p>
-<blockquote class="note">
-<p>
-The <tt>atomic_compare_exchange</tt> functions are described as follows:
-</p>
-<blockquote><p>
-"Atomically, compares the contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt> 
-for equality with that in <tt>expected</tt>, and if true, replaces the contents of the memory pointed to 
-by <tt>object</tt> or by <tt>this</tt> with that in <tt>desired</tt>, and if false, updates the contents 
-of the memory in <tt>expected</tt> with the contents of the memory pointed to by <tt>object</tt> or by 
-<tt>this</tt>. Further, if the comparison is true, memory is affected according to the value of <tt>success</tt>, 
-and if the comparison is false, memory is affected according to the value of <tt>failure</tt>."
-</p></blockquote>
-<p>
-I think this is less clear than it could be about the effects of these operations on <tt>*expected</tt> in the failure case:
-</p>
-<ol>
-<li><p>We have "Atomically, compares [&hellip;] and updates the contents of the memory in <tt>expected</tt> [&hellip;]". 
-The update to the memory in <tt>expected</tt> is clearly not atomic, and yet this wording parallels the success case, 
-in which the memory update is atomic.
-</p></li>
-<li><p>The wording suggests that memory (including <tt>*expected</tt>) is affected according to the value of <tt>failure</tt>. 
-In particular, the failure order could be <tt>memory_order_seq_cst</tt>, which might lead someone to incorrectly think they'd 
-published the value of <tt>*expected</tt>.</p></li>
-</ol>
-<p>
-I think this can be clarified with no change in meaning by reordering the wording a little:
-</p>
-<blockquote><p>
-"Atomically, compares the contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt> for equality with that in 
-<tt>expected</tt>, and if true, replaces the contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt> with 
-that in <tt>desired</tt><del>, and if</del><ins>. If the comparison is true, memory is affected according to the value of 
-<tt>success</tt>, and if the comparison is false, memory is affected according to the value of <tt>failure</tt>. Further, 
-if the comparison is</ins> false, <del>updates</del><ins>replaces</ins> the contents of the memory in <tt>expected</tt> with 
-the <del>contents of</del><ins>value that was atomically read from</ins> the memory pointed to by <tt>object</tt> or by 
-<tt>this</tt>. <del>Further, if the comparison is true, memory is affected according to the value of <tt>success</tt>, and 
-if the comparison is false, memory is affected according to the value of <tt>failure</tt>.</del>"
-</p></blockquote>
-</blockquote>
-<p>
-Jens Maurer add:
-</p>
-<blockquote class="note">
-<p>
-I believe this is an improvement.
-<p/>
-I like to see the following additional improvements:
-</p>
-<ul>
-<li><p>
-"contents of the memory" is strange phrasing, which doesn't say how large the
-memory block is. Do we compare the values or the value representation of the lvalue
-<tt>*object</tt> (or <tt>*this</tt>)?
-</p></li>
-<li><p>
-29.3 [atomics.order] defines memory order based on the "affected memory location". It would be
-better to say something like "If the comparison is true, the memory synchronization order for the 
-affected memory location <tt>*object</tt> is [&hellip;]"
-</p></li>
-</ul>
-</blockquote>
-<p>
-There was also a discussion thread involving Herb Sutter, Hans Boehm, and Lawrence Crowl, resulting in proposed 
-wording along the lines of:
-</p>
-<blockquote class="note">
-<blockquote>
-<p>
--21- <i>Effects</i>: Atomically with respect to <tt>expected</tt> and the memory pointed
-to by <tt>object</tt> or by <tt>this</tt>, compares the contents of the memory pointed
-to by <tt>object</tt> or by <tt>this</tt> for equality with that in <tt>expected</tt>, and if and
-only if true, replaces the contents of the memory pointed to by <tt>object</tt>
-or by <tt>this</tt> with that in desired, and if and only if false, updates the
-contents of the memory in expected with the contents of the memory pointed to by 
-<tt>object</tt> or by <tt>this</tt>.
-</p>
-</blockquote>
-<p>
-At the end of paragraph 23, perhaps add
-</p>
-<blockquote>
-<p>
-[<i>Example</i>: Because the <tt>expected</tt> value is updated only on failure,
-code releasing the memory containing the <tt>expected</tt> value on success
-will work. E.g. list head insertion will act atomically and not
-have a data race in the following code.
-</p>
-<blockquote><pre>
-do {
-  p->next = head; // make new list node point to the current head
-} while(!head.compare_exchange_weak(p->next, p)); // try to insert
-</pre></blockquote>
-<p>
-&mdash; <i>end example</i>]
-</p>
-</blockquote>
-</blockquote>
-<p>
-Hans objected that this still gives the misimpression that the update to <tt>expected</tt> is atomic.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>
-Proposed resolution was added after Redmond.
-</p>
-<p>
-Recommendations from SG1:
-</p>
-<ol>
-<li>Change wording to <del>if true</del><ins>if and only if true</ins>, and change <del>if false</del><ins>if and only if false</ins>.</li>
-<li>If they want to add "respect to" clause, say "respect to object or this".</li>
-<li>In example, load from head should be "head.load(memory_order_relaxed)", because people are going to use example as example of good code.</li>
-</ol>
-
-<p>
-<i>(wording edits not yet applied)</i>
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-We believed we were done with it, but it was kicked back to us, with the wording we suggested not yet applied.  It may have been that our suggestions were unclear.  Was that the concern?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Edit 29.6.5 [atomics.types.operations.req] p21 as indicated:</p>
-
-<blockquote>
-<p>
--21- <i>Effects</i>: <ins>Retrieves the value in <tt>expected</tt>. It then a</ins><del>A</del>tomically<del>,</del> 
-compares the contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt> for equality with that 
-<del>in</del><ins>previously retrieved from</ins> <tt>expected</tt>, and if true, replaces the contents of the 
-memory pointed to by <tt>object</tt> or by <tt>this</tt> with that in <tt>desired</tt><del>, and if false, 
-updates the contents of the memory in expected with the contents of the memory pointed to by <tt>object</tt> 
-or by <tt>this</tt>. Further, if</del><ins>. If and only if</ins> the comparison is true, memory is affected according to the value of 
-<tt>success</tt>, and if the comparison is false, memory is affected according to the value of <tt>failure</tt>. 
-When only one <tt>memory_order</tt> argument is supplied, the value of <tt>success</tt> is <tt>order</tt>, 
-and the value of <tt>failure</tt> is <tt>order</tt> except that a value of <tt>memory_order_acq_rel</tt>
-shall be replaced by the value <tt>memory_order_acquire</tt> and a value of <tt>memory_order_release</tt> shall
-be replaced by the value <tt>memory_order_relaxed</tt>. <ins>If the comparison is false then, after the atomic
-operation, the contents of the memory in <tt>expected</tt> are replaced by the value read from <tt>object</tt> or
-by <tt>this</tt> during the atomic comparison.</ins> If the operation returns true, these operations are
-atomic read-modify-write operations (1.10) <ins>on the memory pointed to by <tt>this</tt> or 
-<tt>object</tt></ins>. Otherwise, these operations are atomic load operations <ins>on that memory</ins>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Add the following example to the end of 29.6.5 [atomics.types.operations.req] p23:</p>
-
-<blockquote>
-<p>
--23- [<i>Note</i>: [&hellip;] &mdash; <i>end note</i>] [<i>Example</i>: [&hellip;] &mdash; <i>end example</i>]
-<p/>
-<ins>[<i>Example</i>: Because the expected value is updated only on failure,
-code releasing the memory containing the <tt>expected</tt> value
-on success will work. E.g. list head insertion will act atomically
-and would not introduce a data race in the following code:</ins>
-</p>
-<blockquote>
-<pre><ins>
-do {
-  p-i&gt;next = head; // make new list node point to the current head
-} while(!head.compare_exchange_weak(p-&gt;next, p)); // try to insert
-</ins></pre>
-</blockquote>
-<p>
-<ins>&mdash; <i>end example</i>]</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2430"></a>2430. Heterogeneous container lookup should be enabled using meta-function instead of nested type</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Tomasz Kami&nacute;ski <b>Opened:</b> 2014-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Currently the heterogeneous lookup in associative container are
-enabled by presence of <tt>is_transparent</tt> nested type in the comparator
-type (23.2.4 [associative.reqmts]). This complicates the definition
-of call wrapper types that want to define <tt>is_transparent</tt> if they wrap
-a callable type that defines <tt>is_transparent</tt>, and requires the target
-to be a complete type in cases where an incomplete type would otherwise be ok.
-<p/>
-Another problem is that users cannot add the <tt>is_transparent</tt> member to
-a third-party comparison type that they do not control, even if they
-know it supports heterogeneous comparisons.
-<p/>
-If the associative containers used a trait instead of checking for an
-<tt>is_transparent</tt> member type then it would avoid the requirement for
-complete types, and would allow customization of the trait without
-modifying the comparator type. This would also be consistent with the
-traits <tt>is_placeholder</tt> and <tt>is_bind_expression</tt>.
-<p/>
-For backward compatibility with the existing design, the default
-implementation of the <tt>is_transparent</tt> trait could depend on the
-presence of the <tt>is_transparent</tt> nested type.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>Move to LEWG</p>
-<p>
-Request for a new metafunction should first be responded to by LEWG.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2431"></a>2431. Missing regular expression traits requirements</h3>
-<p><b>Section:</b> 28.3 [re.req] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements on the traits class in 28.3 [re.req] do not say whether a
-regular expression traits class is required to be <tt>DefaultConstructible</tt>, 
-<tt>CopyConstructible</tt>, <tt>CopyAssignable</tt> etc.
-<p/>
-The <tt>std::regex_traits</tt> class appears to be all of the above, but can
-<tt>basic_regex</tt> assume that for user-defined traits classes?
-<p/>
-Should the following statements all leave <tt>u</tt> in equivalent states?
-</p>
-<blockquote><pre>
-X u{v};
-X u; u = v;
-X u; u.imbue(v.getloc();
-</pre></blockquote>
-<p>
-Whether they are equivalent has implications for <tt>basic_regex</tt> copy construction and 
-assignment.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2432"></a>2432. <tt>initializer_list</tt> assignability</h3>
-<p><b>Section:</b> 18.9 [support.initlist] <b>Status:</b> <a href="lwg-active.html#EWG">EWG</a>
- <b>Submitter:</b> David Krauss <b>Opened:</b> 2014-09-30 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.initlist">active issues</a> in [support.initlist].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.initlist">issues</a> in [support.initlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#EWG">EWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>std::initializer_list::operator=</tt> 18.9 [support.initlist] is horribly broken and it needs deprecation:
-</p>
-<blockquote><pre>
-std::initializer_list&lt;foo&gt; a = {{1}, {2}, {3}};
-a = {{4}, {5}, {6}};
-// New sequence is already destroyed.
-</pre></blockquote>
-<p>
-Assignability of <tt>initializer_list</tt> isn't explicitly specified, but most implementations supply a default assignment 
-operator. I'm not sure what 17.5 [description] says, but it probably doesn't matter.
-</p>
-
-<p><i>[Lenexa 2015-05-05: Send to EWG as discussed in Telecon]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Edit 18.9 [support.initlist] p1, class template <tt>initializer_list</tt> synopsis, as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template&lt;class E&gt; class initializer_list {
-  public:
-    [&hellip;]
-    constexpr initializer_list() noexcept;
-  
-    <ins>initializer_list(const initializer_list&amp;) = default;</ins>
-    <ins>initializer_list(initializer_list&amp;&amp;) = default;</ins>
-    <ins>initializer_list&amp; operator=(const initializer_list&amp;) = delete;</ins>
-    <ins>initializer_list&amp; operator=(initializer_list&amp;&amp;) = delete;</ins>
-    
-    constexpr size_t size() const noexcept;
-    [&hellip;]
-  };
-  [&hellip;]
-}
-</pre>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2435"></a>2435. <tt>reference_wrapper::operator()</tt>'s Remark should be deleted</h3>
-<p><b>Section:</b> 20.9.4.4 [refwrap.invoke] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.9.4.4 [refwrap.invoke]/2 is no longer useful. (It was originally TR1 2.1.2.4 [tr.util.refwrp.invoke]/2.)  
-First, we already have the As If Rule (1.9 [intro.execution]/1) and the STL Implementers Can Be Sneaky Rule 
-(17.6.5.5 [member.functions]). Second, with variadic templates and other C++11/14 tech, this can be implemented 
-exactly as depicted.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-DK: I don't see a defect here<br/>
-STL: the issue is that the standard is overly verbose, we don't need this sentence. It's redundant.<br/>
-MC: does anyone think this paragraph has value?<br/>
-JW: it has negative value. reading it makes me wonder if there's some reason I would want to provide a set of overloaded 
-functions, maybe there's some problem with doing it the obvious way that I'm not clever enough to see.<br/>
-Move to Ready status: 8 in favor, none against. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 20.9.4.4 [refwrap.invoke] p2 as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class... ArgTypes&gt;
-  result_of_t&lt;T&amp;(ArgTypes&amp;&amp;...)>
-    operator()(ArgTypes&amp;&amp;... args) const;
-</pre>
-<blockquote>
-<p>
--1- <i>Returns</i>: <tt>INVOKE(get(), std::forward&lt;ArgTypes&gt;(args)...)</tt>. (20.9.2)
-<p/>
-<del>-2- <i>Remark</i>: <tt>operator()</tt> is described for exposition only. Implementations are not required to provide an
-actual <tt>reference_wrapper::operator()</tt>. Implementations are permitted to support <tt>reference_wrapper</tt> function 
-invocation through multiple overloaded operators or through other means.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2436"></a>2436. Comparators for associative containers should always be <tt>CopyConstructible</tt></h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The associative container requirements attempt to permit comparators that are <tt>DefaultConstructible</tt> 
-but non-<tt>CopyConstructible</tt>. However, the Standard contradicts itself. 23.4.4.1 [map.overview] depicts 
-<tt>map() : map(Compare()) { }</tt> which requires both <tt>DefaultConstructible</tt> and <tt>CopyConstructible</tt>.
-<p/>
-Unlike fine-grained element requirements (which are burdensome for implementers, but valuable for users), such 
-fine-grained comparator requirements are both burdensome for implementers (as the Standard's self-contradiction 
-demonstrates) and worthless for users. We should unconditionally require <tt>CopyConstructible</tt> comparators.  
-(Note that <tt>DefaultConstructible</tt> should remain optional; this is not problematic for implementers, and 
-allows users to use lambdas.)
-<p/>
-Key equality predicates for unordered associative containers are also affected. However, 17.6.3.4 [hash.requirements]/1 
-already requires hashers to be <tt>CopyConstructible</tt>, so 23.2.5 [unord.req]'s redundant wording should 
-be removed.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-GR: I prefer to say "<tt>Compare</tt>" rather than "<tt>X::key_compare</tt>", since the former is what the user supplies. 
-JY: It makes sense to use "<tt>Compare</tt>" when we talk about requirements but "<tt>key_compare</tt>" when we use it. 
-<p/>
-AM: We're adding requirements here, which is a breaking change, even though nobody will ever have had a non-<tt>CopyConstructible</tt> 
-comparator. But the simplification is probably worth it.
-<p/>
-GR: I don't care about unmovable containers. But I do worry that people might want to move they comparators. MC: How do 
-you reconcile that with the function that says "give me the comparator"? GR: That one returns by value? JY: Yes. [To MC] 
-You make it a requirement of that function. [To GR] And it [the <tt>key_comp()</tt> function] is missing its requirements. 
-We need to add them everywhere. GR: map already has the right requirements.
-<p/>
-JM: I dispute this. If in C++98 a type wasn't copyable, it had some interesting internal state, but in C++98 you wouldn't 
-have been able to pass it into the container since you would have had to make a copy. JY: No, you could have 
-default-constructed it and never moved it, e.g. a mutex. AM: So, it's a design change, but one that we should make. 
-That's probably an LEWG issue. AM: There's a contradiction in the Standard here, and we need to fix it one way or another.
-<p/>
-<b>Conclusion</b>: Move to LEWG 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 23.2.4 [associative.reqmts] Table 102 as indicated (Editorial note: For "expression" <tt>X::key_compare</tt> 
-"defaults to" is redundant with the class definitions for map/etc.):</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 102 &mdash; Associative container requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X::key_compare</tt>
-</td>
-<td>
-<tt>Compare</tt>
-</td>
-<td>
-<del>defaults to <tt>less&lt;key_type&gt;</tt></del><br/>
-<ins><i>Requires</i>: <tt>key_compare</tt> is <tt>CopyConstructible</tt>.</ins>
-</td>
-<td>
-compile time
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(c)<br/>
-X a(c);</tt>
-</td>
-<td>
-</td>
-<td>
-<del><i>Requires</i>: <tt>key_compare</tt> is <tt>CopyConstructible</tt>.</del><br/>
-<i>Effects</i>: Constructs an empty
-container. Uses a copy of <tt>c</tt> as
-a comparison object.
-</td>
-<td>
-constant
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(i,j,c)<br/>
-X a(i,j,c);</tt>
-</td>
-<td>
-</td>
-<td>
-<i>Requires</i>: <del><tt>key_compare</tt> is <tt>CopyConstructible</tt>.</del><br/>
-<tt>value_type</tt> is <tt>EmplaceConstructible</tt> into <tt>X</tt> from <tt>*i</tt>.<br/>
-<i>Effects</i>: Constructs [&hellip;]
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote></li>
-
-<li><p>Change 23.2.5 [unord.req] Table 103 as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 103 &mdash; Unordered associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X::key_equal</tt>
-</td>
-<td>
-<tt>Pred</tt>
-</td>
-<td>
-<ins><i>Requires</i>: <tt>Pred</tt> is <tt>CopyConstructible</tt>.</ins><br/>
-<tt>Pred</tt> shall be a binary predicate that takes two arguments of type <tt>Key</tt>.<br/> 
-<tt>Pred</tt> is an equivalence relation.
-</td>
-<td>
-compile time
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(n, hf, eq)<br/>
-X a(n, hf, eq);</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-<del><i>Requires</i>: <tt>hasher</tt> and <tt>key_equal</tt> are <tt>CopyConstructible</tt>.</del><br/>
-<i>Effects</i>: Constructs [&hellip;]
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(n, hf)<br/>
-X a(n, hf);</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-<i>Requires</i>: <del><tt>hasher</tt> is <tt>CopyConstructible</tt> and</del><br/>
-<tt>key_equal</tt> is <tt>DefaultConstructible</tt><br/>
-<i>Effects</i>: Constructs [&hellip;]
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(i, j, n, hf, eq)<br/>
-X a(i, j, n, hf, eq);</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-<i>Requires</i>: <del><tt>hasher</tt> and <tt>key_equal</tt> are <tt>CopyConstructible</tt>.</del><br/>
-<tt>value_type</tt> is <tt>EmplaceConstructible</tt> into <tt>X</tt> from <tt>*i</tt>.<br/>
-<i>Effects</i>: Constructs [&hellip;]
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(i, j, n, hf)<br/>
-X a(i, j, n, hf);</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-<i>Requires</i>: <del><tt>hasher</tt> is <tt>CopyConstructible</tt> and</del><br/>
-<tt>key_equal</tt> is <tt>DefaultConstructible</tt><br/>
-<tt>value_type</tt> is <tt>EmplaceConstructible</tt> into <tt>X</tt> from <tt>*i</tt>.<br/>
-<i>Effects</i>: Constructs [&hellip;]
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote></li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2441"></a>2441. Exact-width atomic typedefs should be provided</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>&lt;atomic&gt;</tt> doesn't provide counterparts for <tt>&lt;inttypes.h&gt;</tt>'s most useful typedefs, possibly 
-because they're quasi-optional. We can easily fix this.
-</p>
-
-<p><i>[2014-11, Urbana]</i></p>
-
-<p>
-Typedefs were transitional compatibility hack. Should use <tt>_Atomic</tt> macro or template.
-E.g. <tt>_Atomic(int8_t)</tt>. BUT <tt>_Atomic</tt> disappeared!</p>
-
-<p>
-Detlef will look for <tt>_Atomic</tt> macro. If missing, will open issue.
-</p>
-
-<p><i>[2014-11-25, Hans comments]</i></p>
-
-<p>
-There is no <tt>_Atomic</tt> in C++. This is related to the much more general unanswered question of whether C++17 
-should reference C11, C99, or neither.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-AM: I think this is still an SG1 issue; they need to deal with it before we do.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-Move to SG1-OK status.  This seems like an easy short-term fix.  We probably need a paper on C/C++ atomics compatibility to deal with _Atomic, but that's a separable issue.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 29.5 [atomics.types.generic] p8 as depicted:</p>
-
-<blockquote>
-<p>
--8- There shall be atomic typedefs corresponding to the typedefs in the header <tt>&lt;inttypes.h&gt;</tt> as specified in
-Table 147. <ins><tt>atomic_int<i>N</i>_t</tt>, <tt>atomic_uint<i>N</i>_t</tt>, <tt>atomic_intptr_t</tt>, and 
-<tt>atomic_uintptr_t</tt> shall be defined if and only if <tt>int<i>N</i>_t</tt>, <tt>uint<i>N</i>_t</tt>, <tt>intptr_t</tt>, 
-and <tt>uintptr_t</tt> are defined, respectively.</ins>
-</p>
-</blockquote></li>
-
-<li><p>Change 29.6.5 [atomics.types.operations.req], Table 147 ("<tt>atomic</tt> <tt>&lt;inttypes.h&gt;</tt> 
-typedefs"), as depicted:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 147 &mdash; <tt>atomic</tt> <tt>&lt;inttypes.h&gt;</tt> typedefs</caption>
-<tr>
-<th>Atomic typedef</th>
-<th><tt>&lt;inttypes.h&gt;</tt> type</th>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_int8_t</tt></ins>
-</td>
-<td>
-<ins><tt>int8_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_uint8_t</tt></ins>
-</td>
-<td>
-<ins><tt>uint8_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_int16_t</tt></ins>
-</td>
-<td>
-<ins><tt>int16_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_uint16_t</tt></ins>
-</td>
-<td>
-<ins><tt>uint16_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_int32_t</tt></ins>
-</td>
-<td>
-<ins><tt>int32_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_uint32_t</tt></ins>
-</td>
-<td>
-<ins><tt>uint32_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_int64_t</tt></ins>
-</td>
-<td>
-<ins><tt>int64_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>atomic_uint64_t</tt></ins>
-</td>
-<td>
-<ins><tt>uint64_t</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2443"></a>2443. <tt>std::array</tt> member functions should be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Peter Sommerlad <b>Opened:</b> 2014-10-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When experimenting with C++14 relaxed <tt>constexpr</tt> functions I made the observation that I couldn't 
-use <tt>std::array</tt> to create a table of data at compile time directly using loops in a function. 
-However, a simple substitute I could use instead:
-</p>
-<blockquote>
-<pre>
-template &lt;typename T, size_t n&gt;
-struct ar {
-  T a[n];
-  constexpr ar() : a{{}}{}
-  constexpr auto data() const { return &amp;a[0];}
-  constexpr T const &amp; operator[](size_t i) const { return a[i]; }
-  constexpr T &amp; operator[](size_t i) { return a[i]; }
-};
-
-template &lt;size_t n&gt;
-using arr = ar&lt;size_t, n&gt;; // std::array&lt;size_t, n&gt;;
-
-template &lt;size_t n&gt;
-constexpr auto make_tab(){
-  arr&lt;n&gt; result;
-  for(size_t i=0; i &lt; n; ++i)
-    result[i] = (i+1)*(i+1); // cannot define operator[] for mutable array...
-  return result;
-}
-
-template &lt;size_t n&gt;
-constexpr auto squares=make_tab&lt; n&gt;();
-
-int main() {
-  int dummy[squares&lt;5&gt;[3]];
-}
-</pre>
-</blockquote>
-<p>
-Therefore, I suggest that all member functions of <tt>std::array</tt> should be made <tt>constexpr</tt> 
-to make the type usable in <tt>constexpr</tt> functions.
-<p/>
-Wording should be straight forward, may be with the exception of <tt>fill</tt>, which would require 
-<tt>fill_n</tt> to be <tt>constexpr</tt> as well.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>Move to LEWG</p>
-<p>
-The extent to which <tt>constexpr</tt> becomes a part of the Library design is a policy
-matter best handled initially by LEWG.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2444"></a>2444. Inconsistent complexity for <tt>std::sort_heap</tt></h3>
-<p><b>Section:</b> 25.4.6.4 [sort.heap] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Fran&ccedil;ois Dumont <b>Opened:</b> 2014-10-07 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-While creating complexity tests for the GNU libstdc++ implementation <a href="https://gcc.gnu.org/ml/libstdc++/2014-10/msg00048.html">I 
-stumbled</a> across a surprising requirement for the <tt>std::sort_heap</tt> algorithm.
-<p/>
-In 25.4.6.4 [sort.heap] p3 the Standard states:
-</p>
-<blockquote><p>
-<i>Complexity</i>: At most <tt><i>N</i> log(<i>N</i>)</tt> comparisons (where <tt><i>N</i> == last - first</tt>).
-</p></blockquote>
-<p>
-As stated on the libstdc++ mailing list by Marc Glisse <tt>sort_heap</tt> can be implemented by <tt><i>N</i></tt> calls to 
-<tt>pop_heap</tt>. As max number of comparisons of <tt>pop_heap</tt> is <tt>2 * log(<i>N</i>)</tt> then <tt>sort_heap</tt> 
-max limit should be <tt>2 * log(1) + 2 * log(2) + .... + 2 * log(<i>N</i>)</tt> that is to say <tt>2 * log(<i>N</i>!)</tt>. 
-In terms of <tt>log(<i>N</i>)</tt> we can also consider that this limit is also cap by <tt>2 * <i>N</i> * log(<i>N</i>)</tt> 
-which is surely what the Standard wanted to set as a limit.
-<p/>
-This is why I would like to propose to replace paragraph 3 by:
-</p>
-<blockquote><p>
-<i>Complexity</i>: At most <tt><ins>2</ins><i>N</i> log(<i>N</i>)</tt> comparisons (where <tt><i>N</i> == last - first</tt>).
-</p></blockquote>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Marshall will research the maths and report back in Lenexa.
-</p>
-
-<p><i>[2015-05-06 Lenexa]</i></p>
-
-<p>STL: I dislike exact complexity requirements, they prevent one or two extra checks in debug mode. Would it be better to say O(N log(N)) not at most?</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol><li>
-<p>
-In 25.4.6.4 [sort.heap] p3 the Standard states:
-</p>
-<blockquote>
-<pre>
-template&lt;class RandomAccessIterator&gt;
-  void sort_heap(RandomAccessIterator first, RandomAccessIterator last);
-template&lt;class RandomAccessIterator, class Compare&gt;
-  void sort_heap(RandomAccessIterator first, RandomAccessIterator last,
-                 Compare comp);
-</pre>
-<blockquote><p>
-[&hellip;]
-<p/>
--3- <i>Complexity</i>: At most <tt><ins>2</ins><i>N</i> log(<i>N</i>)</tt> comparisons (where <tt><i>N</i> == last - first</tt>).
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2445"></a>2445. "Stronger" memory ordering</h3>
-<p><b>Section:</b> 20.8.2.6 [util.smartptr.shared.atomic], 29.6.5 [atomics.types.operations.req] <b>Status:</b> <a href="lwg-active.html#SG1">SG1</a>
- <b>Submitter:</b> JF Bastien <b>Opened:</b> 2014-10-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.atomic">issues</a> in [util.smartptr.shared.atomic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#SG1">SG1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The definitions of compare and exchange in 20.8.2.6 [util.smartptr.shared.atomic] p32 and 
-29.6.5 [atomics.types.operations.req] p20 state:
-</p>
-<blockquote><p>
-<i>Requires</i>: The failure argument shall not be <tt>memory_order_release</tt> nor <tt>memory_order_acq_rel</tt>. 
-The <tt>failure</tt> argument shall be no stronger than the <tt>success</tt> argument.
-</p></blockquote>
-<p>
-The term "stronger" isn't defined by the standard.
-<p/>
-It is hinted at by 29.6.5 [atomics.types.operations.req] p21:
-</p>
-<blockquote><p>
-When only one <tt>memory_order</tt> argument is supplied, the value of <tt>success</tt> is <tt>order</tt>, and the 
-value of <tt>failure</tt> is <tt>order</tt> except that a value of <tt>memory_order_acq_rel</tt> shall be replaced 
-by the value <tt>memory_order_acquire</tt> and a value of <tt>memory_order_release</tt> shall be replaced by the 
-value <tt>memory_order_relaxed</tt>.
-</p></blockquote>
-<p>
-Should the standard define a partial ordering for memory orders, where consume and acquire are incomparable with release?
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>
-Move to SG1.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2446"></a>2446. Unspecialized <tt>std::tuple_size</tt> should be defined</h3>
-<p><b>Section:</b> 20.4.1 [tuple.general] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Nevin Liber <b>Opened:</b> 2014-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.4.1 [tuple.general] paragraph 2, the unspecialized <tt>std::tuple_size</tt> is undefined. It would 
-be a lot more useful with SFINAE if it were defined as an empty struct; that way, it can be used with <tt>enable_if</tt> 
-for determining whether or not it is valid to use <tt>tuple_size</tt>, <tt>tuple_element</tt> and get on the 
-corresponding data structure.
-</p>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>Moved to LEWG 42.</p>
-<p>
-This request goes beyond simply making an API respond well to SFINAE, but coupling that with an
-implication for other tuple APIs.  The proper place for such design discussions is LEWG.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 20.4.1 [tuple.general] p2, header <tt>&lt;tuple&gt;</tt> synopsis, as indicated</p>
-<blockquote>
-<pre>
-[&hellip;]
-// <i>20.4.2.5, tuple helper classes</i>:
-template &lt;class T&gt; class tuple_size; <del>// undefined</del>
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.5 [tuple.helper] as indicated</p>
-<blockquote>
-<pre>
-[&hellip;]
-template &lt;class T&gt; struct tuple_size <ins>{ }</ins>;
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2447"></a>2447. Allocators and <tt>volatile</tt>-qualified value types</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-10-16 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to Table 27 &mdash; "Descriptive variable definitions" which is used to define the symbols used in the
-allocator requirements table within 17.6.3.5 [allocator.requirements] we have the following constraints for
-the types <tt>T, U, C</tt>:
-</p>
-<blockquote><p>
-any non-const object type (3.9)
-</p></blockquote>
-<p>
-This wording can be read to allow instead a <tt>volatile</tt>-qualified value type such as <tt>volatile int</tt>.
-<p/>
-The nearest-by way of fixing this would be to add "non-<tt>volatile</tt>" as additional constraint to this table
-row.
-<p/>
-Another choice would be to think of requiring that allocators must be capable to handle any <tt><i>cv</i></tt>-qualified
-value types. This would make all currently existing allocators non-conforming that can't handle <tt><i>cv</i></tt>-qualified 
-value types, so I'm not suggesting to follow that route.
-<p/>
-A less radical step would be to allow <tt><ii>cv</ii></tt>-qualified types just for <tt>C</tt> (which is used to specify the
-functions <tt>construct</tt> and <tt>destroy</tt> and where does not even exist any requirement that <tt>C</tt> actually 
-is related to the value type of the allocator at all). This seemingly extension would be harmless because as of p8 of the
-same sub-clause "An allocator may constrain the types on which it can be instantiated and the arguments for which its
-<tt>construct</tt> member may be called."
-<p/>
-This differs from the requirements imposed on the types <tt>T</tt> and <tt>U</tt> which both refer to value types of allocators.
-<p/>
-The proposed wording attempts to separate the two classes of requirements.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>
-This wording is relative to N4140.
-</p>
-
-<ol>
-<li><p>Change 17.6.3.5 [allocator.requirements], Table 27 &mdash; "Descriptive variable definitions", as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 27 &mdash; Descriptive variable definitions</caption>
-<tr>
-<th>Variable</th>
-<th>Definition</th>
-</tr>
-
-<tr>
-<td>
-<tt>T, U<del>, C</del></tt>
-</td>
-<td>
-any non-<del>const</del><ins><tt>const</tt> and non-<tt>volatile</tt></ins> object type (3.9)
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>C</tt></ins>
-</td>
-<td>
-<ins>any object type</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li><p>Change 17.6.3.5 [allocator.requirements] p8 as indicated: (This wording change is intended to
-fix an obvious asymmetry between <tt>construct</tt> and <tt>destroy</tt> which I believe is not intended)</p>
-
-<blockquote><p>
--8- An allocator may constrain the types on which it can be instantiated and the arguments for which its
-<tt>construct</tt> <ins>or <tt>destroy</tt></ins> member<ins>s</ins> may be called. If a type cannot be 
-used with a particular allocator, the allocator class or the call to <tt>construct</tt> <ins>or <tt>destroy</tt></ins> 
-may fail to instantiate.
-</p></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[2014-11, Urbana]</i></p>
-
-<p>
-JW: say "cv-unqualified" instead?<br/>
-JW: very nervous about allowing construct on const-types, because of the cast to (non-const) <tt>void*</tt><br/>
-MA: should we just make the minimal fix?<br/>
-STL: don't break <tt>C</tt> out for special treatment<br/>
-New proposed resolution: just change "non-const" to "cv-unqualified". Keep addition of <tt>destroy</tt> later. 
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-GR: It makes me nervous that someone at some point decided to not add "non-<tt>volatile</tt>".<br/> 
-AM: That was over ten years ago. It was a deliberate, minuted choice to support <tt>volatile</tt>. We are now reversing that decision. 
-It would be good to poll our vendors, none of which are in the room. This is a bit more work than we expect of a P0 issue.<br/> 
-VV: libstdc++ and libc++ seem to support <tt>volatile</tt> template parameters for the standard allocator.<br/> 
-AM: To clarify, the proposed resolution here would remove the requirement to support <tt>volatile</tt>. Implementations could still 
-choose to support <tt>volatile</tt>.<br/>
-DK: I'm happy to drop this and open a new issue in regard to the <tt>destroy</tt> member specification.<br/>
-AM: I just think this is harder than a P0. Let's reprioritize.
-</p>
-
-<p><i>[2015-04-01 Daniel comments]</i></p>
-
-<p>
-The less controversial part of the issue related to constraints imposed on <tt>destroy</tt> has be handed over to the new 
-issue <a href="lwg-defects.html#2470">2470</a>.
-</p>
-
-<p><i>[2015-05-06 Lenexa: Move to Ready]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N4431.
-</p>
-
-<ol>
-<li><p>Change 17.6.3.5 [allocator.requirements], Table 27 &mdash; "Descriptive variable definitions", as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 27 &mdash; Descriptive variable definitions</caption>
-<tr>
-<th>Variable</th>
-<th>Definition</th>
-</tr>
-
-<tr>
-<td>
-<tt>T, U, C</tt>
-</td>
-<td>
-any <del>non-const</del><ins><i>cv</i>-unqualified</ins> object type (3.9)
-</td>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2449"></a>2449. <tt>vector::insert</tt> invalidates <tt>end()</tt>?</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Marc Glisse <b>Opened:</b> 2014-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-this issue is based on the discussion <a href="https://groups.google.com/a/isocpp.org/d/topic/std-discussion/oYvKscnl280/discussion">here</a>.
-<p/>
-23.3.6.5 [vector.modifiers] says about <tt>vector::insert</tt>: "If no reallocation happens, all the iterators and references 
-before the insertion point remain valid." This doesn't seem to guarantee anything about the iterator <em>at</em> the point of insertion.
-<p/>
-The question comes from people asking if the following is valid, assuming a sufficient call to <tt>reserve()</tt> was done first:
-</p>
-<blockquote><pre>
-v.insert(v.end(), v.begin(), v.end());
-</pre></blockquote>
-<p>
-It could fail for an implementation using a sentinel for the end of the vector, but I don't know of any (it would be quite 
-inconvenient). And for any implementation using a simple position as iterator (pointer (possibly in a wrapper), or base+offset), 
-this is needlessly restrictive. The fact that this alternative:
-</p>
-<blockquote><pre>
-v.insert(v.end(), &amp;v[0], &amp;v[0]+v.size())
-</pre></blockquote>
-<p>
-is arguably valid (again assuming a large enough <tt>reserve()</tt>) makes it a bit confusing that the first version isn't 
-(23.2.3 [sequence.reqmts] has a precondition that iterator arguments to <tt>insert()</tt> do not point into the sequence, 
-but <tt>vector::insert</tt> is more refined and seems to give enough guarantees that it cannot fail).
-<p/>
-Then we might as well say that <tt>vector</tt> iterators act as positions, and that after a reallocation-free operation an 
-iterator points to the same position, whatever may be there now&hellip;
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2450"></a>2450. <tt>(greater|less|greater_equal|less_equal)&lt;void&gt;</tt> do not yield a total order for pointers</h3>
-<p><b>Section:</b> 20.9.6 [comparisons] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz <b>Opened:</b> 2014-10-30 <b>Last modified:</b> 2015-05-06</p>
-<p><b>View other</b> <a href="lwg-index-open.html#comparisons">active issues</a> in [comparisons].</p>
-<p><b>View all other</b> <a href="lwg-index.html#comparisons">issues</a> in [comparisons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>less&lt;void&gt;::operator(t, u)</tt> (and the same applies to the rest of <tt>void</tt> specializations for standard 
-comparison function objects) returns <tt>t &lt; u</tt> even if <tt>t</tt> and <tt>u</tt> are pointers, which by 
-5.9 [expr.rel]/3 is undefined except if both pointers point to the same array or object. This might be 
-regarded as a specification defect since the intention of N3421 is that <tt>less&lt;&gt;</tt> can substitute for 
-<tt>less&lt;T&gt;</tt> in any case where the latter is applicable. <tt>less&lt;void&gt;</tt> can be rewritten in 
-the following manner to cope with pointers:
-</p>
-<blockquote><pre>
-template&lt;&gt; struct less&lt;void&gt;
-{
-
-  typedef <i>unspecified</i> is_transparent;
-
-  template &lt;class T, class U&gt;
-  struct pointer_overload : std::is_pointer&lt;std::common_type_t&lt;T, U&gt;&gt;
-  {};
-
-  template &lt;
-    class T, class U,
-    typename std::enable_if&lt;!pointer_overload&lt;T, U&gt;::value&gt;::type* = nullptr
-  &gt;
-  auto operator()(T&amp;&amp; t, U&amp;&amp; u) const
-    -&gt; decltype(std::forward&lt;T&gt;(t) &lt; std::forward&lt;U&gt;(u))
-  {
-    return std::forward&lt;T&gt;(t) &lt; std::forward&lt;U&gt;(u);
-  } 
-
-  template &lt;
-    class T, class U,
-    typename std::enable_if&lt;pointer_overload&lt;T, U>::value>::type* = nullptr
-  &gt;
-  auto operator()(T&amp;&amp; t, U&amp;&amp; u) const
-    -&gt; decltype(std::declval&lt;std::less&lt;std::common_type_t&lt;T, U&gt;&gt;&gt;()(std::forward&lt;T&gt;(t), std::forward&lt;U&gt;(u)))
-  {
-    std::less&lt;std::common_type_t&lt;T, U&gt;&gt; l;
-    return l(std::forward&lt;T&gt;(t), std::forward&lt;U&gt;(u));
-  }
-
-};
-</pre></blockquote>
-
-<blockquote class="note">
-<p>
-This wording is relative to N4140.
-</p>
-
-<ol>
-<li><p>Change 20.9.6 [comparisons] p14 as indicated:</p>
-<blockquote><p>
--14- For templates <tt>greater</tt>, <tt>less</tt>, <tt>greater_equal</tt>, and <tt>less_equal</tt>, the specializations 
-for any pointer type yield a total order, even if the built-in operators <tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, 
-<tt>&gt;=</tt> do not. <ins>For template specializations <tt>greater&lt;void&gt;</tt>, <tt>less&lt;void&gt;</tt>, 
-<tt>greater_equal&lt;void&gt;</tt>, and <tt>less_equal&lt;void&gt;</tt>, the call operator with arguments whose common 
-type <tt><i>CT</i></tt> is a pointer yields the same value as the corresponding comparison function object class 
-specialization for <tt><i>CT</i></tt>.</ins>
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-AM: Is there any way this will be resolved elsewhere? VV: No. AM: Then we should bite the bullet and deal with it here.
-<p/>
-MC: These diamond operators are already ugly. Making them more ugly isn't a big problem.
-<p/>
-JY found some issue with types that are convertible, and will reword. 
-<p/>
-Jeffrey suggests improved wording.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: when diamond functions designed, this was on purpose<br/>
-STL: this does go against the original design<br/>
-STL: library is smarter and can give a total order<br/>
-MC: given that the original design rejected this, give back to LEWG<br/>
-STL: original proposal did not talk about total order<br/>
-STL: don't feel strongly about changing the design<br/>
-STL: no objections to taking this issue with some wording changes if people want it<br/>
-MC: not happy with wording, comparing pointers &mdash; what does that mean?<br/>
-STL: needs careful attention to wording<br/>
-STL: want to guarantee that <tt>nullptr</tt> participates in total ordering<br/>
-STL: all hooks into composite pointer type<br/>
-MC: move from new to open with better wording<br/>
-STL: to check updates to issue after Lenexa 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N4296.
-</p>
-
-<ol>
-<li><p>Change 20.9.6 [comparisons] p14 as indicated:</p>
-<blockquote><p>
--14- For templates <tt>greater</tt>, <tt>less</tt>, <tt>greater_equal</tt>, and <tt>less_equal</tt>, the specializations 
-for any pointer type yield a total order, even if the built-in operators <tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, 
-<tt>&gt;=</tt> do not. <ins>For template specializations <tt>greater&lt;void&gt;</tt>, <tt>less&lt;void&gt;</tt>, 
-<tt>greater_equal&lt;void&gt;</tt>, and <tt>less_equal&lt;void&gt;</tt>, if the call operator calls a built-in operator 
-comparing pointers, the call operator yields a total order.</ins>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2451"></a>2451. [fund.ts] <tt>optional&lt;T&gt;</tt> should 'forward' <tt>T</tt>'s implicit conversions</h3>
-<p><b>Section:</b> X [optional.object] <b>Status:</b> <a href="lwg-active.html#LEWG">LEWG</a>
- <b>Submitter:</b> Geoffrey Romer <b>Opened:</b> 2014-10-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#LEWG">LEWG</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-Code such as the following is currently ill-formed (thanks to STL for the compelling example):
-</p>
-<blockquote><pre>
-optional&lt;string&gt; opt_str = "meow";
-</pre></blockquote>
-<p>
-This is because it would require two user-defined conversions (from <tt>const char*</tt> to <tt>string</tt>, 
-and from <tt>string</tt> to <tt>optional&lt;string&gt;</tt>) where the language permits only one. This is 
-likely to be a surprise and an inconvenience for users.
-<p/>
-<tt>optional&lt;T&gt;</tt> should be implicitly convertible from any <tt>U</tt> that is implicitly convertible 
-to <tt>T</tt>. This can be implemented as a non-explicit constructor template <tt>optional(U&amp;&amp;)</tt>, 
-which is enabled via SFINAE only if <tt>is_convertible_v&lt;U, T&gt;</tt> and <tt>is_constructible_v&lt;T, U&gt;</tt>, 
-plus any additional conditions needed to avoid ambiguity with other constructors (see 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4064.html">N4064</a>, particularly the 
-"Odd" example, for why <tt>is_convertible</tt> and <tt>is_constructible</tt> are both needed; thanks to Howard 
-Hinnant for spotting this). 
-<p/>
-In addition, we may want to support explicit construction from <tt>U</tt>, which would mean providing a corresponding 
-explicit constructor with a complementary SFINAE condition (this is the single-argument case of the "perfect 
-initialization" pattern described in N4064).
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2452"></a>2452. <tt>is_constructible</tt>, etc. and default arguments</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#Core">Core</a>
- <b>Submitter:</b> Hubert Tong <b>Opened:</b> 2014-11-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Core">Core</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>BaseCharacteristic</tt> for <tt>is_constructible</tt> is defined in terms of the well-formedness 
-of a declaration for an invented variable. The well-formedness of the described declaration itself may 
-change for the same set of arguments because of the introduction of default arguments.
-<p/>
-In the following program, there appears to be conflicting definitions of a specialization of 
-<tt>std::is_constructible</tt>; however, it seems that this situation is caused without a user violation 
-of the library requirements or the ODR. There is a similar issue with <tt>is_convertible</tt>, <tt>result_of</tt>
-and others.
-<p/>
-a.cc:
-</p>
-<blockquote><pre>
-#include &lt;type_traits&gt;
-struct A { A(int, int); };
-const std::false_type&amp; x1 = std::is_constructible&lt;A, int&gt;();
-
-int main() { }
-</pre></blockquote>
-<p>
-b.cc:
-</p>
-<blockquote><pre>
-#include &lt;type_traits&gt;
-struct A { A(int, int); };
-
-inline A::A(int, int = 0) { }
-
-const std::true_type&amp; x2 = std::is_constructible&lt;A, int&gt;();
-</pre></blockquote>
-<p>
-Presumably this program should invoke undefined behaviour, but the Library specification doesn't
-say that.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Core wording should say "this kind of thing is ill-formed, no diagnostic required"
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2453"></a>2453. [iterator.range] and now [iterator.container] aren't available via <tt>&lt;initializer_list&gt;</tt></h3>
-<p><b>Section:</b> 18.9 [support.initlist], 24.7 [iterator.range], 24.8 [iterator.container] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-11-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.initlist">active issues</a> in [support.initlist].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.initlist">issues</a> in [support.initlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-These sections define helper functions, some of which apply to <tt>initializer_list&lt;T&gt;</tt>. And they're 
-available if you include one of a long list of header files, many of which include <tt>&lt;initializer_list&gt;</tt>. 
-But they are not available if you include <tt>&lt;initializer_list&gt;</tt>. This seems very odd.
-</p>
-<blockquote><pre>
-#include &lt;initializer_list&gt;
-auto x = {1, 2, 3};
-const int *p = data(x); // error, undeclared
-#include &lt;vector&gt;
-const int *q = data(x); // ok
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2456"></a>2456. Incorrect exception specifications for '<tt>swap</tt>' throughout library</h3>
-<p><b>Section:</b> 20.2 [utility], 20.3.2 [pairs.pair], 20.4 [tuple], 23.3.2 [array], 23.6.3 [queue], 23.6.4 [priority.queue], 23.6.5 [stack] <b>Status:</b> <a href="lwg-active.html#Open">Open</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-11-14 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View other</b> <a href="lwg-index-open.html#utility">active issues</a> in [utility].</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility">issues</a> in [utility].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Open">Open</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We have this antipattern in various library classes:
-</p>
-<blockquote><pre>
-void swap(priority_queue&amp; q) noexcept(
-    noexcept(swap(c, q.c)) &amp;&amp; noexcept(swap(comp, q.comp)))
-</pre></blockquote>
-<p>
-This doesn't work. The unqualified lookup for 'swap' finds the member named 'swap', and that suppresses ADL, 
-so the exception specification is always ill-formed because you can't call the member 'swap' with two arguments.
-<p/>
-Relevant history on the core language side:
-<p/>
-This used to be ill-formed due to 3.3.7 [basic.scope.class] p1 rule 2: "A name <tt>N</tt> used in a class 
-<tt>S</tt> shall refer to the same declaration in its context and when re-evaluated in the completed scope of <tt>S</tt>. 
-No diagnostic is required for a violation of this rule."
-<p/>
-Core issue 1330 introduced delay-parsing for exception specifications. Due to the 3.3.7 [basic.scope.class] rules, 
-this shouldn't have changed the behavior of any conforming programs. But it changes the behavior in the non-conforming 
-case from "no diagnostic required" to "diagnostic required", so implementations that implement core issue 1330 are now 
-required to diagnose the ill-formed declarations in the standard library.
-<p/>
-Suggested resolution:
-<p/>
-Add an <tt>is_nothrow_swappable</tt> trait, and use it throughout the library in place of these <tt>noexcept</tt> expressions.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-No action for now; we intend to have papers for Lenexa.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Open.
-<p/>
-Daniel: A first paper (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4426.html">N4426</a>) exists 
-to suggest some ways of solving this issue.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2457"></a>2457. <tt>std::begin()</tt> and <tt>std::end()</tt> do not support multi-dimensional arrays correctly</h3>
-<p><b>Section:</b> 24.7 [iterator.range] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Janez &#x17d;emva <b>Opened:</b> 2014-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#iterator.range">active issues</a> in [iterator.range].</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.range">issues</a> in [iterator.range].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following code:
-</p>
-<blockquote><pre>
-#include &lt;algorithm&gt;
-#include &lt;iterator&gt;
-#include &lt;iostream&gt;
-#include &lt;cassert&gt;
-
-int main() 
-{
-  int a[2][3][4] = { { { 1,  2,  3,  4}, { 5,  6,  7,  8}, { 9, 10, 11, 12} },
-                     { {13, 14, 15, 16}, {17, 18, 19, 20}, {21, 22, 23, 24} } };
-  int b[2][3][4];
-
-  assert(std::distance(std::begin(a), std::end(a)) == 2 * 3 * 4);
-  std::copy(std::begin(a), std::end(a), std::begin(b));
-  std::copy(std::begin(b), std::end(b), std::ostream_iterator&lt;int&gt;(std::cout, ","));
-}
-</pre></blockquote>
-<p>
-does not compile. 
-<p/>
-A possible way to remedy this would be to add the following overloads of
-<tt>begin</tt>, <tt>end</tt>, <tt>rbegin</tt>, and <tt>rend</tt> to 24.7 [iterator.range], 
-relying on recursive evaluation:
-</p>
-<blockquote><pre>
-namespace std {
-
-  template &lt;typename T, size_t M, size_t N&gt;
-  constexpr remove_all_extents_t&lt;T&gt;*
-  begin(T (&amp;array)[M][N])
-  {
-    return begin(*array);
-  }
-  
-  template &lt;typename T, size_t M, size_t N&gt;
-  constexpr remove_all_extents_t&lt;T&gt;*
-  end(T (&amp;array)[M][N])
-  {
-    return end(array[M - 1]);
-  }
-
-  template &lt;typename T, size_t M, size_t N&gt;
-  reverse_iterator&lt;remove_all_extents_t&lt;T&gt;*&gt;
-  rbegin(T (&amp;array)[M][N])
-  {
-    return decltype(rbegin(array))(end(array[M - 1]));
-  }
-  
-  template &lt;typename T, size_t M, size_t N&gt;
-  reverse_iterator&lt;remove_all_extents_t&lt;T&gt;*&gt;
-  rend(T (&amp;array)[M][N])
-  {
-    return decltype(rend(array))(begin(*array));
-  }
-
-}
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2460"></a>2460. LWG issue 2408 and value categories</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other], 24.4.1 [iterator.traits] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-11-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG issue <a href="lwg-defects.html#2408">2408</a> changes the meat of the specification of <tt>common_type</tt> to compute:
-</p>
-<blockquote><p>
-[..] the type, if any, of an unevaluated conditional expression (5.16) whose first operand is an 
-arbitrary value of type <tt>bool</tt>, whose second operand is an <tt>xvalue</tt> of type <tt>T1</tt>, 
-and whose third operand is an xvalue of type <tt>T2</tt>.
-</p></blockquote>
-<p>
-This has an effect on the specification that I think was unintended. It used to be the case that 
-<tt>common_type&lt;T&amp;, U&amp;&amp;&gt;</tt> would consider the type of a conditional between an 
-lvalue of type <tt>T</tt> and an xvalue of type <tt>U</tt>. It's now either invalid (because there is 
-no such thing as an xvalue of reference type) or considers the type of a conditional between an xvalue 
-of type <tt>T</tt> and an xvalue of type <tt>U</tt>, depending on how you choose to read it.
-<p/>
-Put another way, this has the effect of changing the usual definition from:
-</p>
-<blockquote><pre>
-typedef decay_t&lt;decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;())&gt; type;
-</pre></blockquote>
-<p>
-to:
-</p>
-<blockquote><pre>
-typedef decay_t&lt;decltype(true ? declval&lt;remove_reference_t&lt;T&gt;&gt;() : declval&lt;remove_reference_t&lt;U&gt;&gt;())&gt; type;
-</pre></blockquote>
-<p>
-It also makes <tt>common_type</tt> underspecified in the case where one of the operands is of type <tt>void</tt>; 
-in that case, the resulting type depends on whether the expression is a throw-expression, which is not 
-specified (but used to be).
-<p/>
-Also on the subject of this wording: the changes to 24.4.1 [iterator.traits] say that 
-<tt>iterator_traits&lt;T&gt;</tt> "shall have no members" in some cases. That's wrong. It's a class type; 
-it always has at least a copy constructor, a copy assignment operator, and a destructor. Plus this 
-removes the usual library liberty to add additional members with names that don't collide with normal 
-usage (for instance, if a later version of the standard adds members, they can't be present here as a 
-conforming extension). Perhaps this should instead require that the class doesn't have members with any 
-of those five names? That's what <a href="lwg-defects.html#2408">2408</a> does for <tt>common_type</tt>'s type member.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2461"></a>2461. Interaction between allocators and container exception safety guarantees</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 23.3.6.3 [vector.capacity], 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> dyp <b>Opened:</b> 2014-12-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When resizing a <tt>vector</tt>, the accessibility and exception specification of the value type's 
-constructors determines whether the elements are copied or moved to the new buffer.
-However, the copy/move is performed via the allocator's <tt>construct</tt> member function, which is 
-assumed, but not required, to call the copy/move constructor and propagate only exceptions 
-from the value type's copy/move constructor. The issue might also affect other classes. 
-<p/>
-The current wording in N4296 relevant here is from Table 28 &mdash; "Allocator requirements" in 
-17.6.3.5 [allocator.requirements]: 
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-<th>Default</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.construct(c, args)</tt>
-</td>
-<td>
-(not used)
-</td>
-<td>
-<i>Effect</i>: Constructs an object of type <tt>C</tt> at <tt>c</tt>
-</td>
-<td>
-<tt>::new ((void*)c) C(forward&lt;Args&gt;(args)...)</tt>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-<p>
-and from 17.6.3.5 [allocator.requirements] p9:
-</p>
-<blockquote><p>
-An allocator may constrain the types on which it can be instantiated and the arguments for which its
-<tt>construct</tt> member may be called. If a type cannot be used with a particular allocator, the allocator class
-or the call to <tt>construct</tt> may fail to instantiate.
-</p></blockquote>
-<p>
-I conclude the following from the wording:
-</p>
-<ol>
-<li><p>The allocator is not required to call the copy constructor if the
-arguments (args) is a single (potentially const) lvalue of the value
-type. Similarly for a non-const rvalue + move constructor. See also
-23.2.1 [container.requirements.general] p15 which seems to try to require
-this, but is not sufficient:
-That paragraph specifies the semantics of the allocator's operations,
-but not which constructors of the value type are used, if any.
-</p></li>
-<li>
-<p>The allocator may throw exceptions in addition to the exceptions propagated by
-the constructors of the value type; it can also propagate exceptions from constructors
-other than a copy/move constructor.
-</p>
-</li>
-</ol>
-<p>
-This leads to an issue with the wording of the exception safety guarantees for vector modifiers in
-23.3.6.5 [vector.modifiers] p1:
-</p>
-<blockquote>
-<p>
-[&hellip;]
-</p>
-<pre>
-void push_back(const T&amp; x);
-void push_back(T&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
-<i>Remarks</i>: Causes reallocation if the new size is greater than the old capacity. If no 
-reallocation happens, all the iterators and references before the insertion point remain valid. 
-If an exception is thrown other than by the copy constructor, move constructor, assignment 
-operator, or move assignment operator of <tt>T</tt> or by any InputIterator operation there are 
-no effects.
-<span  style="color:#C80000;font-weight:bold">
-If an exception is thrown while inserting a single element at the end and <tt>T</tt> 
-is <tt>CopyInsertable</tt> or <tt>is_nothrow_move_constructible&lt;T&gt;::value</tt>
-is true, there are no effects. Otherwise, if an exception is thrown by the move constructor of a
-non-<tt>CopyInsertable</tt> <tt>T</tt>, the effects are unspecified.
-</span>
-</p>
-</blockquote>
-</blockquote>
-<p>
-The wording leads to the following problem:
-Copy and move assignment are invoked directly from <tt>vector</tt>.
-For intermediary objects (see <a href="lwg-active.html#2164">2164</a>),
-<tt>vector</tt> also directly invokes the copy and move constructor of the value type.
-However, construction of the actual element within the buffer is invoked via the allocator abstraction.
-As discussed above, the allocator currently is not required to call a copy/move constructor.
-If <tt>is_nothrow_move_constructible&lt;T&gt;::value</tt> is <tt>true</tt> for some value type <tt>T</tt>,
-but the allocator uses modifying operations for <tt>MoveInsertion</tt> that do throw,
-the implementation is required to ensure that "there are no effects",
-even if the source buffer has been modified.
-<p/>
-Similarly, the <tt>vector</tt> capacity functions specify exception safety guarantees
-referring to the move constructor of the value type. For example, <tt>vector::resize</tt> in 23.3.6.3 [vector.capacity] p14:
-</p>
-<blockquote>
-<i>Remarks</i>: If an exception is thrown other than by the move constructor of a
-non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.
-</blockquote>
-<p>
-The wording leads to the same issue as described above.
-<p/>
-Code example:
-</p>
-<blockquote>
-<pre>
-template&lt;class T&gt;
-class allocator;
-
-class pot_reg_type // a type which creates
-                   // potentially registered instances
-{
-private:
-  friend class allocator&lt;pot_reg_type&gt;;
-  struct register_t {};
-
-  static std::set&lt;pot_reg_type*&gt;&amp; get_registry()
-  {
-    static std::set&lt;pot_reg_type*&gt; registry;
-    return registry;
-  }
-  void enregister() noexcept(false)
-  {
-    get_registry().insert(this);
-  }
-  void deregister()
-  {
-    get_registry().erase(this);
-  }
-
-public:
-  pot_reg_type(void               ) noexcept(true) {}
-  pot_reg_type(pot_reg_type const&amp;) noexcept(true) {}
-  pot_reg_type(pot_reg_type&amp;&amp;     ) noexcept(true) {}
-
-private:
-  pot_reg_type(register_t                     ) noexcept(false)
-  { enregister(); }
-  pot_reg_type(register_t, pot_reg_type const&amp;) noexcept(false)
-  { enregister(); }
-  pot_reg_type(register_t, pot_reg_type&amp;&amp;     ) noexcept(false)
-  { enregister(); }
-};
-
-template&lt;class T&gt;
-class allocator
-{
-public:
-  using value_type = T;
-
-  value_type* allocate(std::size_t p)
-  { return (value_type*) ::operator new(p); }
-
-  void deallocate(value_type* p, std::size_t)
-  { ::operator delete(p); }
-
-  void construct(pot_reg_type* pos)
-  {
-    new((void*)pos) pot_reg_type((pot_reg_type::register_t()));
-  }
-  void construct(pot_reg_type* pos, pot_reg_type const&amp; source)
-  {
-    new((void*)pos) pot_reg_type(pot_reg_type::register_t(), source);
-  }
-
-  template&lt;class... Args&gt;
-  void construct(T* p, Args&amp;&amp;... args)
-  {
-    new((void*)p) T(std::forward&lt;Args&gt;(args)...);
-  }
-}; 
-</pre>
-</blockquote>
-<p>
-The <tt>construct</tt> member function template is only required for rebinding,
-which can be required e.g. to store additional debug information in
-the allocated memory (e.g. VS2013).
-<p/>
-Even though the value type has an accessible and <tt>noexcept(true)</tt> move
-constructor, this allocator won't call that constructor for rvalue arguments.
-In any case, it does not call a constructor for which vector has formulated its 
-requirements. An exception thrown by a constructor called by this allocator is not
-covered by the specification in 23.3.6.5 [vector.modifiers] and therefore is
-guaranteed not to have any effect on the vector object when resizing.
-<p/>
-For an example how this might invalidate the exception safety
-guarantees, see <a href="https://groups.google.com/a/isocpp.org/d/topic/std-discussion/BcM7ya8JeqY/discussion">this post on the std-discussion mailing list</a>.
-<p/>
-Another problem arises for value types whose constructors are private,
-but may be called by the allocator e.g. via friendship.
-Those value types are not <tt>MoveConstructible</tt> 
-(<tt>is_move_constructible</tt> is false), yet they can be <tt>MoveInsertable</tt>.
-It is not possible for <tt>vector</tt> to create intermediary objects (see <a href="lwg-active.html#2164">2164</a>) of such a type
-by directly using the move constructor.
-Current implementations of the single-element forms of <tt>vector::insert</tt> and <tt>vector::emplace</tt>
-do create intermediary objects by directly calling one of the value type's constructors,
-probably to allow inserting objects from references that alias other elements of the container.
-As far as I can see, Table 100 &mdash; "Sequence container requirements" in 23.2.3 [sequence.reqmts]
-does not require that the creation of such intermediare objects can be performed
-by containers using the value type's constructor directly.
-It is unclear to me if the allocator's construct function could be used to create those
-intermediary objects, given that they have not been allocated by the allocator.
-<p/>
-Two possible solutions:
-</p>
-<ol>
-<li><p>
-Add the following requirement to the <tt>allocator_traits::construct</tt> function:
-If the parameter pack <tt>args</tt> consists of a single parameter of the type
-<tt>value_type&amp;&amp;</tt>,
-the function may only propagate exceptions if <tt>is_nothrow_move_constructible&lt;value_type&gt;::value</tt>
-is <tt>false</tt>.
-<p/>
-Requiring <tt>alloctor_traits::construct</tt> to call a true copy/move constructor
-of the value type breaks <tt>std::scoped_allocator_adapter</tt>,
-as pointed out by <a href="https://groups.google.com/a/isocpp.org/d/msg/std-discussion/0yxikZInp-E/Lxj-msFT22cJ">Casey Carter in a post on the std-discussion mailing list</a>.
-</p></li>
-<li>
-<p>
-Change vector's criterion whether to move or copy when resizing:
-<p/>
-Instead of testing the value type's constructors via
-<tt>is_move_constructible</tt>, check the value of
-<tt>noexcept( allocator_traits&lt;Allocator&gt;::construct(alloc, ptr, rval) )</tt>
-where
-<tt>alloc</tt> is an lvalue of type <tt>Allocator</tt>,
-<tt>ptr</tt> is an expression of type <tt>allocator_traits&lt;Allocator&gt;::pointer</tt>
-and
-<tt>rval</tt> is a non-const rvalue of type <tt>value_type</tt>.
-</p>
-</li>
-</ol>
-<p>
-A short discussion of the two solutions:
-<p/>
-Solution 1 allows keeping <tt>is_nothrow_move_constructible&lt;value_type&gt;</tt>
-as the criterion for <tt>vector</tt> to decide between copying and moving when resizing.
-It restricts what can be done inside the <tt>construct</tt> member function of allocators,
-and requires implementers of allocators to pay attention to the value types used.
-One could conceive allocators checking the following with a <tt>static_assert</tt>:
-If the value type <tt>is_nothrow_move_constructible</tt>,
-then the constructor actually called for <tt>MoveInsertion</tt> within the <tt>construct</tt>
-member function is also declared as noexcept.
-<p/>
-Solution 2 requires changing both the implementation of the default
-allocator (add a conditional <tt>noexcept</tt>) and <tt>vector</tt> (replace
-<tt>is_move_constructible</tt> with an allocator-targeted check).
-It does not impose additional restrictions on the allocator (other than
-23.2.1 [container.requirements.general] p15),
-and works nicely even if the move constructor of a <tt>MoveInsertable</tt> type is private or deleted
-(the allocator might be a friend of the value type).
-<p/>
-In both cases, an addition might be required to provide the basic exception safety guarantee.
-A short discussion on this topic can be found
-<a href="https://groups.google.com/a/isocpp.org/d/topic/std-discussion/yZLnYy_y2z0/discussion">
-in the std-discussion mailing list</a>.
-Essentially, if <tt>allocator_traits&lt;Allocator&gt;::construct</tt> throws an exception,
-the object may or may not have been constructed.
-Two solutions are mentioned in that discussion:
-</p>
-<ol>
-<li><p>
-<tt>allocator_traits&lt;Allocator&gt;::construct</tt> needs to tell its caller
-whether or not the construction was successful, in case of an exception.
-</p></li>
-<li><p>
-If <tt>allocator_traits&lt;Allocator&gt;::construct</tt> propagates an exception,
-it shall either not have constructed an object at the specified location,
-or that object shall have been destroyed
-(or it shall ensure otherwise that no resources are leaked).
-</p></li>
-</ol>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2462"></a>2462. <tt>std::ios_base::failure</tt> is overspecified</h3>
-<p><b>Section:</b> 27.5.3 [ios.base], 27.5.3.1.1 [ios::failure] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-12-15 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base">issues</a> in [ios.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-27.5.3 [ios.base] defines <tt>ios_base::failure</tt> as a nested class:
-</p>
-<blockquote>
-<pre>
-namespace std {
-  class ios_base {
-  public:
-    class failure;
-    [&hellip;]
-  };
-  [&hellip;]
-}
-</pre>
-</blockquote>
-<p>
-This means it is valid to use an elaborated-type-specifier to
-refer to <tt>ios_base::failure</tt>:
-</p>
-<blockquote>
-<pre>
-using F = class std::ios_base::failure;
-throw F();
-</pre>
-</blockquote>
-<p>
-Therefore implementations are not permitted to define
-<tt>ios_base::failure</tt> as a typedef e.g.
-</p>
-<blockquote>
-<pre>
- class ios_base {
- public:
-#if __cplusplus &lt; 201103L
-   class failure_cxx03 : public exception {...};
-   typedef failure_cxx03 failure;
-#else
-   class failure_cxx11 : public system_error {...};
-   typedef failure_cxx11 failure;
-#endif
-   [&hellip;]
- };
-</pre>
-</blockquote>
-<p>
-This constrains implementations, making it harder to manage the ABI
-change to <tt>ios_base::failure</tt> between C++03 and C++11.
-</p>
-
-<p><i>[2015-05-06 Lenexa: Move to Ready]</i></p>
-
-<p>JW: the issue is that users are currently allowed to write "class failure" with an elaborated-type-specifier and it must be well-formed, I want the freedom to make that type a typedef, so they can't necessarily use an elaborated-type-specifier (which there is no good reason to use anyway)</p>
-<p>JW: ideally I'd like this everywhere for all nested classes, but that's a paper not an issue, I only need this type fixed right now.</p>
-<p>RD: is a synonym the same as an alias?</p>
-<p>JW: dcl.typedef says a typedef introduces a synonym for another type, so I think this is the right way to say this</p>
-<p>JW: I already shipped this last month</p>
-<p>PJP: we're going to have to break ABIs again some time, we need all the wiggle room we can get to make that easier. This helps.</p>
-<p>MC: do we want this at all? Ready?</p>
-<p>9 in favor, none opose or abstaining</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change the synopsis in 27.5.3 [ios.base] as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class ios_base {
-  public:
-    class failure; <ins><i>// see below</i></ins>
-    [&hellip;]
-  };
-  [&hellip;]
-};
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 27.5.3 [ios.base] paragraph 1:</p>
-
-<blockquote>
-<p>
-<tt>ios_base</tt> defines several member types:
-</p>
-<ul>
-<li><p>a <del>class <tt>failure</tt></del><ins>type <tt>failure</tt>, defined as either
-a class derived from <tt>system_error</tt> or a synonym for a class</ins> derived from 
-<tt>system_error</tt>;</p></li>
-</ul>
-</blockquote>
-</li>
-
-<li><p>Change 27.5.3.1.1 [ios::failure] paragraph 1:</p>
-<blockquote>
-<p>
--1- <ins>An implementation is permitted to define <tt>ios_base::failure</tt> as
-a synonym for a class with equivalent functionality to class <tt>ios_base::failure</tt> shown 
-in this subclause. [<i>Note</i>: When <tt>ios_base::failure</tt> is a synonym for another type 
-it shall provide a nested type <tt>failure</tt>, to emulate the injected class name. &mdash; 
-<i>end note</i>]</ins> The class <tt>failure</tt> defines the base class for the types of all 
-objects thrown as exceptions, by functions in the iostreams library, to report errors detected 
-during stream buffer operations.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2465"></a>2465. SFINAE-friendly <tt>common_type</tt> is nearly impossible to specialize
-correctly and regresses key functionality</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Eric Niebler <b>Opened:</b> 2015-01-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think there's a defect regarding <tt>common_type</tt> and its specializations.
-Unless I've missed it, there is nothing preventing folks from
-instantiating <tt>common_type</tt> with <i>cv</i>-qualified types or reference types. In
-fact, the wording in N3797 explicitly mentions <i>cv</i> <tt>void</tt>, so presumably at
-least <i>cv</i> qualifications are allowed.
-<p/>
-Users are given license to specialize <tt>common_type</tt> when at least of of
-the types is user-defined. (A separate issue is the meaning of
-user-defined. In core, I believe this is any class/struct/union/enum,
-but in lib, I think it means any type not defined in std, right?) There
-is at least one place in the standard that specializes <tt>common_type</tt>
-(time.traits.specializations) on time_point and duration. But the
-specializations are only for non-<i>cv</i>-qualified and non-reference
-specializations of <tt>time_point</tt> and <tt>duration</tt>.
-<p/>
-If the user uses, say, <tt>common_type&lt;duration&lt;X,Y&gt; const, duration&lt;A,B&gt;
-const&gt;</tt>, they're not going to get the behavior they expect.
-<p/>
-Suggest we clarify the requirements of <tt>common_type</tt>'s template
-parameters. Also, perhaps we can add blanket wording that <tt>common_type&lt;A
-[<i>cv</i>][&amp;], B [<i>cv</i>][&amp;]&gt;</tt> is required to be equivalent to 
-<tt>common_type&lt;A,B&gt;</tt> (if that is in fact the way we intent this to work).
-<p/>
-Also, the change to make <tt>common_type</tt> SFINAE-friendly regressed key
-functionality, as noted by Agust&iacute;n K-ballo Berg&eacute; in 
-<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=37178">c++std-lib-37178</a>.
-Since <tt>decay_t</tt> is not applied until the very end of the type computation,
-user specializations are very likely to to be found.
-<p/>
-Agust&iacute;n says:
-</p>
-<blockquote class="note">
-<p>
-Consider the following snippet:
-</p>
-<blockquote>
-<pre>
-struct X {};
-struct Y { explicit Y(X){} };
-
-namespace std {
-  template&lt;> struct common_type&lt;X, Y> { typedef Y type; };
-  template&lt;> struct common_type&lt;Y, X> { typedef Y type; };
-}
-
-static_assert(is_same&lt;common_type_t&lt;X, Y>, Y>()); // (A)
-static_assert(is_same&lt;common_type_t&lt;X, Y, Y>, Y>()); // (B)
-static_assert(is_same&lt;common_type_t&lt;X, X, Y>, Y>()); // (C)
-</pre>
-</blockquote>
-<p>
-Under the original wording, all three assertion holds. Under the current wording,
-</p>
-<ul>
-<li><p>(A) picks the user-defined specialization, so the assertion holds.</p></li>
-
-<li><p>(B) goes to the third bullet and, ignoring the user-defined specialization, looks for 
-<tt>decltype(true ? declval&lt;X&gt;() : declval&lt;Y&gt;())</tt>; since it is ill-formed 
-there is no common type.</p></li>
-
-<li><p>(C) goes to the third bullet and yields <tt>common_type_t&lt;X&amp;&amp;, Y&gt;</tt>, which again misses 
-the user-defined specialization.</p></li>
-</ul>
-</blockquote>
-<p>
-The discussion following <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=35636">c++std-lib-35636</a> 
-seemed to cohere around the idea that the primary <tt>common_type</tt> specialization should have the effect
-of stripping top-level ref and <i>cv</i> qualifiers by applying <tt>std::decay_t</tt> to its arguments and, 
-if any of them change as a result of that transformation, re-dispatching to <tt>common_type</tt> on those transformed
-arguments, thereby picking up any user-defined specializations. This change to <tt>common_type</tt> would make 
-the specializations in time.traits.specializations sufficient.
-<p/>
-<b>Suggested wording</b>:
-<p/>
-I'm afraid I don't know enough to suggest wording. But for exposition,
-the following is my best shot at implementing the suggested resolution.
-I believe it also fixes the regression noted by Agust&iacute;n K-ballo Berg&eacute; in
-<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=37178">c++std-lib-37178</a>.
-</p>
-<blockquote>
-<pre>
-namespace detail
-{
-    template&lt;typename T, typename U&gt;
-    using default_common_t =
-        decltype(true? std::declval&lt;T&gt;() : std::declval&lt;U&gt;());
-
-    template&lt;typename T, typename U, typename Enable = void&gt;
-    struct common_type_if
-    {};
-
-    template&lt;typename T, typename U&gt;
-    struct common_type_if&lt;T, U,
-      void_t&lt;default_common_t&lt;T, U&gt;&gt;&gt;
-    {
-      using type = decay_t&lt;default_common_t&lt;T, U&gt;&gt;;
-    };
-
-    template&lt;typename T, typename U,
-       typename TT = decay_t&lt;T&gt;, typename UU = decay_t&lt;U&gt;&gt;
-    struct common_type2
-      : common_type&lt;TT, UU&gt; // Recurse to catch user specializations
-    {};
-
-    template&lt;typename T, typename U&gt;
-    struct common_type2&lt;T, U, T, U&gt;
-      : common_type_if&lt;T, U&gt;
-    {};
-
-    template&lt;typename Meta, typename Enable = void&gt;
-    struct has_type
-      : std::false_type
-    {};
-
-    template&lt;typename Meta&gt;
-    struct has_type&lt;Meta, void_t&lt;typename Meta::type&gt;&gt;
-      : std::true_type
-    {};
-
-    template&lt;typename Meta, typename...Ts&gt;
-    struct common_type_recurse
-      : common_type&lt;typename Meta::type, Ts...&gt;
-    {};
-
-    template&lt;typename Meta, typename...Ts&gt;
-    struct common_type_recurse_if
-      : std::conditional&lt;
-          has_type&lt;Meta>::value,
-          common_type_recurse&lt;Meta, Ts...&gt;,
-          empty
-        >::type
-    {};
-}
-
-template&lt;typename ...Ts&gt;
-struct common_type
-{};
-
-template&lt;typename T>
-struct common_type&lt;T>
-{
-  using type = std::decay_t&lt;T&gt;;
-};
-
-template&lt;typename T, typename U&gt;
-struct common_type&lt;T, U&gt;
-  : detail::common_type2&lt;T, U&gt;
-{};
-
-template&lt;typename T, typename U, typename... Vs&gt;
-struct common_type&lt;T, U, Vs...&gt;
-  : detail::common_type_recurse_if&lt;common_type&lt;T, U&gt;, Vs...&gt;
-{};
-</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2466"></a>2466. <tt>allocator_traits::max_size()</tt> default behavior is incorrect</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 20.7.8.2 [allocator.traits.members] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2015-01-17 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 28 &mdash; "Allocator requirements" says that default behavior for <tt>a.max_size()</tt> is 
-<tt>numeric_limits&lt;size_type&gt;::max()</tt>. And this is consistent with the matching statement 
-for <tt>allocator_traits</tt> in 20.7.8.2 [allocator.traits.members]/p7:
-</p>
-<blockquote>
-<pre>
-static size_type max_size(const Alloc&amp; a) noexcept;
-</pre>
-<blockquote>
-<p>
-<i>Returns</i>: <tt>a.max_size()</tt> if that expression is well-formed; otherwise, 
-<tt>numeric_limits&lt;size_type&gt;::max()</tt>.
-</p>
-</blockquote>
-</blockquote>
-<p>
-However, when allocating memory, an allocator must allocate <tt>n*sizeof(value_type)</tt> bytes, for example:
-</p>
-<blockquote>
-<pre>
-value_type*
-allocate(std::size_t n)
-{
-  return static_cast&lt;value_type*&gt;(::operator new (n * sizeof(value_type)));
-}
-</pre>
-</blockquote>
-<p>
-When <tt>n == numeric_limits&lt;size_type&gt;::max(), n * sizeof(value_type)</tt> is <em>guaranteed</em> 
-to overflow except when <tt>sizeof(value_type) == 1</tt>.
-<p/>
-A more useful default would be <tt>numeric_limits&lt;size_type&gt;::max() / sizeof(value_type)</tt>.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Marshall: Is this the right solution?<br/>
-PJP: I think it's gilding the lily.<br/>
-STL: I think this is right, and it doesn't interact with the incomplete container stuff because it's in a member function.<br/>
-Marshall: Objections to this?<br/>
-STL: Spaces around binary operators.<br/>
-Hwrd: It's completely wrong without spaces.<br/>
-Marshall: All in favor of Ready?<br/>
-Lots. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 17.6.3.5 [allocator.requirements], Table 28 &mdash; "Allocator requirements", as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-<th>Default</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.max_size()</tt>
-</td>
-<td>
-<tt>X::size_type</tt>
-</td>
-<td>
-the largest value that can<br/>
-meaningfully be passed to<br/>
-<tt>X::allocate()</tt>
-</td>
-<td>
-<tt>numeric_limits&lt;size_type&gt;::max()<ins>/sizeof(value_type)</ins></tt>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Change 20.7.8.2 [allocator.traits.members]/p7 as indicated:</p>
-
-<blockquote>
-<pre>
-static size_type max_size(const Alloc&amp; a) noexcept;
-</pre>
-<blockquote>
-<p>
-<i>Returns</i>: <tt>a.max_size()</tt> if that expression is well-formed; otherwise, 
-<tt>numeric_limits&lt;size_type&gt;::max()<ins>/sizeof(value_type)</ins></tt>.
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2468"></a>2468. Self-move-assignment of library types</h3>
-<p><b>Section:</b> 17.6.4.9 [res.on.arguments], 17.6.3.1 [utility.arg.requirements], 17.6.5.15 [lib.types.movedfrom], 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2015-01-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.arguments">issues</a> in [res.on.arguments].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Suppose we write
-</p>
-<blockquote>
-<pre>
-vector&lt;string&gt; v{"a", "b", "c", "d"};
-v = move(v);
-</pre>
-</blockquote>
-<p>
-What should be the state of <tt>v</tt> be? The standard doesn't say anything specific about self-move-assignment. 
-There's relevant text in several parts of the standard, and it's not clear how to reconcile them.
-<p/>
-17.6.4.9 [res.on.arguments] writes that, for all functions in the standard library, unless explicitly stated 
-otherwise, "If a function argument binds to an rvalue reference parameter, the implementation may assume that this 
-parameter is a unique reference to this argument." The <tt>MoveAssignable</tt> requirements table in 
-17.6.3.1 [utility.arg.requirements] writes that, given <tt>t = rv</tt>, <tt>t</tt>'s state is equivalent to 
-<tt>rv</tt>'s from before the assignment and <tt>rv</tt>'s state is unspecified (but valid). For containers 
-specifically, the requirements table in 23.2.1 [container.requirements.general] says that, given <tt>a = rv</tt>, 
-<tt>a</tt> becomes equal to what <tt>rv</tt> was before the assignment (and doesn't say anything about <tt>rv</tt>'s 
-state post-assignment).
-<p/>
-Taking each of these pieces in isolation, without reference to the other two:
-</p>
-<ul>
-<li><p>17.6.4.9 [res.on.arguments] would clearly imply that the effect of <tt>v = move(v)</tt> is undefined.</p></li>
-<li><p>17.6.3.1 [utility.arg.requirements] would clearly imply that <tt>v = move(v)</tt> has defined behavior. 
-It might be read to imply that this is a no-op, or might be read to imply that it leaves <tt>v</tt> in a valid but 
-unspecified state; I'm not sure which reading is more natural.</p></li>
-<li><p>23.2.1 [container.requirements.general] would clearly imply that <tt>v = move(v)</tt> is a no-op.</p></li>
-</ul>
-<p>
-It's not clear from the text how to put these pieces together, because it's not clear which one takes precedence.  
-Maybe 17.6.4.9 [res.on.arguments] wins (it imposes an implicit precondition that isn't mentioned in the 
-<tt>MoveAssignable</tt> requirements, so <tt>v = move(v)</tt> is undefined), or maybe 
-23.2.1 [container.requirements.general] wins (it explicitly gives additional guarantees for 
-<tt>Container::operator=</tt> beyond what's guaranteed for library functions in general, so <tt>v = move(v)</tt> 
-is a no-op), or maybe something else.
-<p/>
-On the existing implementations that I checked, for what it's worth, <tt>v = move(v)</tt> appeared to clear the vector; 
-it didn't leave the vector unchanged and it didn't cause a crash.
-<p/>
-<em>Proposed wording</em>:
-<p/>
-Informally: change the <tt>MoveAssignable</tt> and Container requirements tables (and any other requirements tables 
-that mention move assignment, if any) to make it explicit that <tt>x = move(x)</tt> is defined behavior and it leaves 
-<tt>x</tt> in a valid but unspecified state. That's probably not what the standard says today, but it's probably what 
-we intended and it's consistent with what we've told users and with what implementations actually do.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2469"></a>2469. Wrong specification of Requires clause of <tt>operator[]</tt> for <tt>map</tt> and <tt>unordered_map</tt></h3>
-<p><b>Section:</b> 23.4.4.3 [map.access], 23.5.4.3 [unord.map.elem] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Tomasz Kami&nacute;ski <b>Opened:</b> 2015-01-21 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.access">issues</a> in [map.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The "Requires:" clause for the <tt>operator[]</tt> for the <tt>unordered_map</tt> and <tt>map</tt>, are defining 
-separate requirements for insertability into container of <tt>mapped_type</tt> and <tt>key_type</tt>.
-<p/>
-23.4.4.3 [map.access] p2: // <tt>T&amp; operator[](const key_type&amp; x);</tt>
-<p/>
-<i>Requires</i>: <tt>key_type</tt> shall be <tt>CopyInsertable</tt> and <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> 
-into <tt>*this</tt>.
-<p/>
-23.4.4.3 [map.access] p6: // <tt>T&amp; operator[](key_type&amp;&amp; x)</tt>
-<p/>
-<i>Requires</i>: <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>.
-<p/>
-23.5.4.3 [unord.map.elem] p1: // <tt>mapped_type&amp; operator[](const key_type&amp; k); 
-mapped_type&amp; operator[](key_type&amp;&amp; k);</tt>
-<p/>
-<i>Requires</i>: <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>. For the first operator, 
-<tt>key_type</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>. For the second operator, <tt>key_type</tt> shall 
-be <tt>MoveConstructible</tt>.
-<p/>
-Definition of the appropriate requirements: 23.2.1 [container.requirements.general] p15.
-<p/>
-<tt>T</tt> is <tt>DefaultInsertable</tt> into <tt>X</tt> means that the following expression is well-formed: //p15.1
-<p/>
-<tt>allocator_traits&lt;A&gt;::construct(m, p)</tt>
-<p/>
-<tt>T</tt> is <tt>MoveInsertable</tt> into <tt>X</tt> means that the following expression is well-formed:   //p15.3
-<p/>
-<tt>allocator_traits&lt;A&gt;::construct(m, p, rv)</tt>
-<p/>
-<tt>T</tt> is <tt>CopyInsertable</tt> into <tt>X</tt> means that, in addition to <tt>T</tt> being <tt>MoveInsertable</tt> 
-into <tt>X</tt>, the following expression is well-formed: //p15.4
-<p/>
-<tt>allocator_traits&lt;A&gt;::construct(m, p, v)</tt>
-<p/>
-In the context of above definition the requirement "<tt>key_type</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>" 
-would mean that the key element of the <tt>pair&lt;const key_type, mapped_type&gt;</tt> (<tt>value_type</tt> of the map) 
-should be constructed using separate call to the <tt>construct</tt> method, the same applies for the <tt>mapped_type</tt>. 
-Such behavior is explicitly prohibited by 23.2.1 [container.requirements.general] p3.
-</p>
-<blockquote><p>
-For the components affected by this sub-clause that declare an allocator_type, objects stored in these 
-components shall be constructed using the <tt>allocator_traits&lt;allocator_type&gt;::construct</tt> function and
-destroyed using the <tt>allocator_traits&lt;allocator_type&gt;::destroy</tt> function (20.7.8.2). These functions
-are called only for the container's element type, not for internal types used by the container.
-</p></blockquote>
-<p>
-It clearly states that <tt>element_type</tt> of the map, must be constructed using allocator for value type, which 
-disallows using of separate construction of first and second element, regardless of the fact if it can be actually 
-performed without causing undefined behavior.
-<p/>
-That means that the <tt>MoveInsertable</tt> and similar requirements may only be expressed in terms of <tt>value_type</tt>, 
-not its members types.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-This issue is related to <a href="lwg-defects.html#2464">2464</a>.
-<p/>
-GR: Effects should say "returns ...". DK: Or just have a Returns clause? MC: A Returns clause is a directive to implementers.
-<p/>
-TK/DK: This PR fails to address the requirements about which it complained in the first place. DK: I can reword this. TK can help. 
-</p> 
-
-<p><i>[2015-03-29, Daniel provides improved wording]</i></p>
-
-<p>
-The revised wording fixes the proper usage of the magic "Equivalent to" wording, which automatically induces <i>Requires:</i>, 
-<i>Returns:</i>, and <i>Complexity:</i> elements (and possibly more). This allows us to strike all the remaining
-elements, because they fall out from the semantics of the wording defined by <a href="lwg-defects.html#2464">2464</a>. In particular it is important
-to realize that the wording form
-</p>
-<blockquote>
-<p>
-<tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>map</tt> from <tt>piecewise_construct</tt>, 
-<tt>forward_as_tuple(k)</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>
-</p>
-</blockquote>
-<p>
-degenerates for the empty pack expansion <tt>args</tt> to:
-</p>
-<blockquote>
-<p>
-<tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>map</tt> from <tt>piecewise_construct</tt>, 
-<tt>forward_as_tuple(k)</tt>, <tt>forward_as_tuple()</tt>
-</p>
-</blockquote>
-<p>
-which again means that such a <tt>pair</tt> construction (assuming <tt>std::allocator</tt>) would copy <tt>k</tt>
-into member <tt>first</tt> and would value-initialize member <tt>second</tt>.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N4296.</p>
-
-<p>Accept resolution of the issue issue <a href="lwg-defects.html#2464">2464</a> and define <tt>operator[]</tt> as follows 
-(This would also address issue <a href="lwg-defects.html#2274">2274</a>):</p>
-
-<ol>
-<li><p>Change 23.4.4.3 [map.access] as indicated:</p>
-
-<blockquote>
-<pre>
-T&amp; operator[](const key_type&amp; x);
-</pre>
-<blockquote><p>
--1- <i>Effects</i>: <del>If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(x, T())</tt> 
-into the map</del><ins>Equivalent to: <tt>try_emplace(x).first-&gt;second</tt></ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-T&amp; operator[](key_type&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
--5- <i>Effects</i>: <del>If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(std::move(x), T())</tt> 
-into the map</del><ins>Equivalent to: <tt>try_emplace(move(x)).first-&gt;second</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.5.4.3 [unord.map.elem] as indicated:</p>
-
-<blockquote>
-<pre>
-mapped_type&amp; operator[](const key_type&amp; k);
-mapped_type&amp; operator[](key_type&amp;&amp; k);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--2- <i>Effects</i>: <del>If the <tt>unordered_map</tt> does not already contain an element whose key is equivalent to <tt>k</tt>, 
-the first operator inserts the value <tt>value_type(k, mapped_type())</tt> and the second operator inserts the
-value <tt>value_type(std::move(k), mapped_type())</tt></del><ins>For the first operator, equivalent to: 
-<tt>try_emplace(k).first-&gt;second</tt>; for the second operator, equivalent to: 
-<tt>try_emplace(move(k)).first-&gt;second</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N4296.</p>
-
-<p>Accept resolution of the issue issue <a href="lwg-defects.html#2464">2464</a> and define <tt>operator[]</tt> as follows 
-(This would also address issue <a href="lwg-defects.html#2274">2274</a>):</p>
-
-<ol>
-<li><p>Change 23.4.4.3 [map.access] as indicated:</p>
-
-<blockquote>
-<pre>
-T&amp; operator[](const key_type&amp; x);
-</pre>
-<blockquote><p>
--1- <i>Effects</i>: <del>If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(x, T())</tt> 
-into the map.</del><ins>Equivalent to: <tt>return try_emplace(x).first-&gt;second;</tt></ins>
-<p/>
-<del>-2- <i>Requires</i>: <tt>key_type</tt> shall be <tt>CopyInsertable</tt> and <tt>mapped_type</tt> shall be 
-<tt>DefaultInsertable</tt> into <tt>*this</tt>.</del>
-<p/>
-<del>-3- <i>Returns</i>: A reference to the <tt>mapped_type</tt> corresponding to <tt>x</tt> in <tt>*this</tt>.</del>
-<p/>
-<del>-4- <i>Complexity</i>: Logarithmic.</del>
-</p>
-</blockquote>
-<pre>
-T&amp; operator[](key_type&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
--5- <i>Effects</i>: <del>If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(std::move(x), T())</tt> 
-into the map.</del><ins>Equivalent to: <tt>return try_emplace(move(x)).first-&gt;second;</tt></ins>
-<p/>
-<del>-6- <i>Requires</i>: <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>.</del>
-<p/>
-<del>-7- <i>Returns</i>: A reference to the <tt>mapped_type</tt> corresponding to <tt>x</tt> in <tt>*this</tt>.</del>
-<p/>
-<del>-8- <i>Complexity</i>: Logarithmic.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.5.4.3 [unord.map.elem] as indicated:</p>
-
-<blockquote>
-<pre>
-mapped_type&amp; operator[](const key_type&amp; k);
-mapped_type&amp; operator[](key_type&amp;&amp; k);
-</pre>
-<blockquote>
-<p>
-<del>-1- <i>Requires</i>: <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>. For the first operator, 
-<tt>key_type</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>. For the second operator, <tt>key_type</tt> shall 
-be <tt>MoveConstructible</tt>.</del>
-<p/>
--2- <i>Effects</i>: <del>If the <tt>unordered_map</tt> does not already contain an element whose key is equivalent to <tt>k</tt>, 
-the first operator inserts the value <tt>value_type(k, mapped_type())</tt> and the second operator inserts the
-value <tt>value_type(std::move(k), mapped_type())</tt></del><ins>For the first operator, equivalent to:</ins>
-</p>
-<blockquote>
-<pre> 
-<ins>return try_emplace(k).first-&gt;second;</ins>
-</pre>
-</blockquote>
-<p>
-<ins>for the second operator, equivalent to:</ins>
-</p>
-<blockquote>
-<pre>
-<ins>return try_emplace(move(k)).first-&gt;second;</ins>
-</pre>
-</blockquote>
-<p>
-<del>-3- <i>Returns</i>: A reference to <tt>x.second</tt>, where <tt>x</tt> is the (unique) element whose key is equivalent to 
-<tt>k</tt>.</del>
-<p/>
-<del>-4- <i>Complexity</i>: Average case &#x1d4aa;(<tt>1</tt>), worst case &#x1d4aa;(<tt>size()</tt>).</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<p>Accept resolution of the issue issue <a href="lwg-defects.html#2464">2464</a> and define <tt>operator[]</tt> as follows 
-(This would also address issue <a href="lwg-defects.html#2274">2274</a>):</p>
-
-<ol>
-<li><p>Change 23.4.4.3 [map.access] as indicated:</p>
-
-<blockquote>
-<pre>
-T&amp; operator[](const key_type&amp; x);
-</pre>
-<blockquote><p>
--1- <i>Effects</i>: <del>If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(x, T())</tt> 
-into the map.</del><ins>Equivalent to: <tt>return try_emplace(x).first-&gt;second;</tt></ins>
-<p/>
-<del>-2- <i>Requires</i>: <tt>key_type</tt> shall be <tt>CopyInsertable</tt> and <tt>mapped_type</tt> shall be 
-<tt>DefaultInsertable</tt> into <tt>*this</tt>.</del>
-<p/>
-<del>-3- <i>Returns</i>: A reference to the <tt>mapped_type</tt> corresponding to <tt>x</tt> in <tt>*this</tt>.</del>
-<p/>
-<del>-4- <i>Complexity</i>: Logarithmic.</del>
-</p>
-</blockquote>
-<pre>
-T&amp; operator[](key_type&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
--5- <i>Effects</i>: <del>If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(std::move(x), T())</tt> 
-into the map.</del><ins>Equivalent to: <tt>return try_emplace(move(x)).first-&gt;second;</tt></ins>
-<p/>
-<del>-6- <i>Requires</i>: <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>.</del>
-<p/>
-<del>-7- <i>Returns</i>: A reference to the <tt>mapped_type</tt> corresponding to <tt>x</tt> in <tt>*this</tt>.</del>
-<p/>
-<del>-8- <i>Complexity</i>: Logarithmic.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.5.4.3 [unord.map.elem] as indicated:</p>
-
-<blockquote>
-<pre>
-mapped_type&amp; operator[](const key_type&amp; k);
-<del>mapped_type&amp; operator[](key_type&amp;&amp; k);</del>
-</pre>
-<blockquote>
-<p>
-<del>-1- <i>Requires</i>: <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>. For the first operator, 
-<tt>key_type</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>. For the second operator, <tt>key_type</tt> shall 
-be <tt>MoveConstructible</tt>.</del>
-<p/>
--2- <i>Effects</i>: <ins>Equivalent to <tt>return try_emplace(k).first-&gt;second;</tt></ins><del>If the <tt>unordered_map</tt> 
-does not already contain an element whose key is equivalent to <tt>k</tt>, 
-the first operator inserts the value <tt>value_type(k, mapped_type())</tt> and the second operator inserts the
-value <tt>value_type(std::move(k), mapped_type())</tt></del>
-</p>
-<p>
-<del>-3- <i>Returns</i>: A reference to <tt>x.second</tt>, where <tt>x</tt> is the (unique) element whose key is equivalent to 
-<tt>k</tt>.</del>
-<p/>
-<del>-4- <i>Complexity</i>: Average case &#x1d4aa;(<tt>1</tt>), worst case &#x1d4aa;(<tt>size()</tt>).</del>
-</p>
-</blockquote>
-
-<pre>
-<ins>mapped_type&amp; operator[](key_type&amp;&amp; k);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Effects</i>: Equivalent to <tt>return try_emplace(move(k)).first-&gt;second;</tt></ins>
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2471"></a>2471. <tt>copy_n</tt>'s number of <tt>InputIterator</tt> increments unspecified</h3>
-<p><b>Section:</b> 25.3.1 [alg.copy] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-01-28 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#alg.copy">active issues</a> in [alg.copy].</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.copy">issues</a> in [alg.copy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It's unspecified how many times <tt>copy_n</tt> increments the <tt>InputIterator</tt>.
-<tt>uninitialized_copy_n</tt> is specified to increment it exactly <tt>n</tt> times,
-which means if an <tt>istream_iterator</tt> is used then the next character
-after those copied is read from the stream and then discarded, losing data.
-<p/>
-I believe all three of Dinkumware, libc++ and libstdc++ implement
-<tt>copy_n</tt> with <tt>n - 1</tt> increments of the <tt>InputIterator</tt>, which avoids reading
-and discarding a character when used with <tt>istream_iterator</tt>, but is
-inconsistent with <tt>uninitialized_copy_n</tt> and causes surprising behaviour
-with <tt>istreambuf_iterator</tt> instead, because <tt>copy_n(in, 2, copy_n(in, 2,
-out))</tt> is not equivalent to <tt>copy_n(in, 4, out)</tt>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2472"></a>2472. Heterogeneous comparisons in the standard library can result in ambiguities</h3>
-<p><b>Section:</b> 20.4.2.7 [tuple.rel], 20.7.9.2 [allocator.globals], 20.8.1.5 [unique.ptr.special], 20.8.2.2.7 [util.smartptr.shared.cmp], 20.12.5.6 [time.duration.comparisons], 20.12.6.6 [time.point.comparisons], 20.13.5 [scoped.adaptor.operators], 24.5.1.3.13 [reverse.iter.op==], 24.5.3.3.13 [move.iter.op.comp] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2015-02-07 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.rel">active issues</a> in [tuple.rel].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.rel">issues</a> in [tuple.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard library specifies a lot of heterogeneous comparison operators. For instance:
-</p>
-<blockquote>
-<pre>
-template&lt;class... TTypes, class... UTypes&gt;
-constexpr bool operator!=(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-</pre>
-</blockquote>
-<p>
-This has an unfortunate consequence:
-</p>
-<blockquote>
-<pre>
-#include &lt;tuple&gt;
-#include &lt;utility&gt;
-
-using namespace std::rel_ops;
-std::tuple&lt;int&gt; a(0);
-bool b = a != a;
-</pre>
-</blockquote>
-<p>
-The last line here is ill-formed due to ambiguity: it might be <tt>rel_ops::operator!=</tt>, and it might be the 
-heterogeneous tuple <tt>operator!=</tt>. These are not partially ordered, because they have different constraints: 
-<tt>rel_ops</tt> requires the types to match, whereas the tuple comparison requires both types to be tuples (but not 
-to match). The same thing happens for user code that defines its own unconstrained 
-'<tt>template&lt;typename T&gt; operator!=(const T&amp;, const T&amp;)</tt>' rather than using <tt>rel_ops</tt>.
-<p/>
-One straightforward fix would be to add a homogeneous overload for each heterogeneous comparison:
-</p>
-<blockquote>
-<pre>
-template&lt;class... TTypes&gt;
-constexpr bool operator!=(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;TTypes...&gt;&amp;);
-</pre>
-<p>
-This is then unambiguously chosen over the other options in the preceding case. FWIW, libstdc++ already does this 
-<a href="https://gcc.gnu.org/onlinedocs/gcc-4.6.4/libstdc++/api/a01065_source.html#l00788">in some cases</a>.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2473"></a>2473. <tt>basic_filebuf</tt>'s relation to C <tt>FILE</tt> semantics</h3>
-<p><b>Section:</b> 27.9.1.5 [filebuf.virtuals] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Aaron Ballman <b>Opened:</b> 2015-02-09 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#filebuf.virtuals">issues</a> in [filebuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The restrictions on reading and writing a sequence controlled by an object of class 
-<tt>basic_filebuf&lt;charT, traits&gt;</tt> are the same as for reading and writing with 
-the Standard C library <tt>FILE</tt>s. One of the restrictions placed by C is on the behavior of 
-a stream that is opened for input and output. See the C99 standard, 7.19.5.3p6 for more 
-details, but the gist is that when opened in update mode, reads and writes must have an 
-intervening file positioning or flushing call to not trigger UB.
-</p>
-
-<p>
-27.9.1.5 [filebuf.virtuals] p13 specifies that <tt>basic_filebuf::seekoff()</tt> calls 
-<tt>std::fseek()</tt>. However, there is no mention of <tt>std::fseek()</tt> in 
-<tt>basic_filebuf::seekpos()</tt>, and no mention of <tt>std::fflush()</tt> in
-<tt>basic_filebuf::sync()</tt>, which seem like an oversight.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<p>Change 27.9.1.5 [filebuf.virtuals] p16 as follows [Editorial note: A footnote referring to <tt>fseek</tt> is not needed,
-because this is already covered by the existing footnote 334]:</p>
-<blockquote>
-<p>
--16- Alters the file position, if possible, to correspond to the position stored in <tt>sp</tt> (as described below).
-Altering the file position performs as follows:
-</p>
-<ol>
-<li><p>if <tt>(om &amp; ios_base::out) != 0</tt>, then update the output sequence and write any unshift sequence;</p></li>
-<li><p>set the file position to <tt>sp</tt> <ins>as if by calling <tt>std::fseek(file, sp, SEEK_SET)</tt></ins>;</p></li>
-<li><p>if <tt>(om &amp; ios_base::in) != 0</tt>, then update the input sequence;</p></li>
-</ol>
-<p>
-where <tt>om</tt> is the open mode passed to the last call to <tt>open()</tt>. The operation fails if 
-<tt>is_open()</tt> returns false.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>Change 27.9.1.5 [filebuf.virtuals] p19 as follows and add a new footnote that mimics comparable footnotes in
-27.9.1.4 [filebuf.members] and 27.9.1.5 [filebuf.virtuals]:</p>
-<blockquote>
-<p>
--19- <i>Effects</i>: If a put area exists, calls <tt>filebuf::overflow</tt> to write the characters to the file<ins>, then
-flushes the file as if by calling <tt>std::fflush(file)</tt> [Footnote: The function signature <tt>fflush(FILE*)</tt> 
-is declared in <tt>&lt;cstdio&gt;</tt> (27.9.2).]</ins>. If a get area exists, the effect is implementation-defined.
-</p>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Aaron provides improved wording by removing the params from <tt>std::fseek()</tt> due to the concerns
-regarding the parameters on systems where <tt>fseek</tt> uses 32-bit parameters.
-<p/>
-Second wording improvement, replacing the new one see below. It
-</p>
-<ol>
-<li><p>drops the <tt>std::</tt></p></li>
-<li><p>drops the footnote for <tt>fflush</tt></p></li>
-<li><p>replaces <tt>fseek</tt> with <tt>fsetpos</tt></p></li>
-</ol>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li>
-<p>Change 27.9.1.5 [filebuf.virtuals] p16 as follows [Editorial note: A footnote referring to <tt>fseek</tt> is not needed,
-because this is already covered by the existing footnote 334]:</p>
-<blockquote>
-<p>
--16- Alters the file position, if possible, to correspond to the position stored in <tt>sp</tt> (as described below).
-Altering the file position performs as follows:
-</p>
-<ol>
-<li><p>if <tt>(om &amp; ios_base::out) != 0</tt>, then update the output sequence and write any unshift sequence;</p></li>
-<li><p>set the file position to <tt>sp</tt> <ins>as if by a call to <tt>std::fseek</tt></ins>;</p></li>
-<li><p>if <tt>(om &amp; ios_base::in) != 0</tt>, then update the input sequence;</p></li>
-</ol>
-<p>
-where <tt>om</tt> is the open mode passed to the last call to <tt>open()</tt>. The operation fails if 
-<tt>is_open()</tt> returns false.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>Change 27.9.1.5 [filebuf.virtuals] p19 as follows and add a new footnote that mimics comparable footnotes in
-27.9.1.4 [filebuf.members] and 27.9.1.5 [filebuf.virtuals]:</p>
-<blockquote>
-<p>
--19- <i>Effects</i>: If a put area exists, calls <tt>filebuf::overflow</tt> to write the characters to the file<ins>, then
-flushes the file as if by calling <tt>std::fflush(file)</tt> [Footnote: The function signature <tt>fflush(FILE*)</tt> 
-is declared in <tt>&lt;cstdio&gt;</tt> (27.9.2).]</ins>. If a get area exists, the effect is implementation-defined.
-</p>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li>
-<p>Change 27.9.1.5 [filebuf.virtuals] p16 as follows [Editorial note: A footnote referring to <tt>fseek</tt> is not needed,
-because this is already covered by the existing footnote 334]:</p>
-<blockquote>
-<p>
--16- Alters the file position, if possible, to correspond to the position stored in <tt>sp</tt> (as described below).
-Altering the file position performs as follows:
-</p>
-<ol>
-<li><p>if <tt>(om &amp; ios_base::out) != 0</tt>, then update the output sequence and write any unshift sequence;</p></li>
-<li><p>set the file position to <tt>sp</tt> <ins>as if by a call to <tt>fsetpos</tt></ins>;</p></li>
-<li><p>if <tt>(om &amp; ios_base::in) != 0</tt>, then update the input sequence;</p></li>
-</ol>
-<p>
-where <tt>om</tt> is the open mode passed to the last call to <tt>open()</tt>. The operation fails if 
-<tt>is_open()</tt> returns false.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>Change 27.9.1.5 [filebuf.virtuals] p19 as follows and add a new footnote that mimics comparable footnotes in
-27.9.1.4 [filebuf.members] and 27.9.1.5 [filebuf.virtuals]:</p>
-<blockquote>
-<p>
--19- <i>Effects</i>: If a put area exists, calls <tt>filebuf::overflow</tt> to write the characters to the file<ins>, then
-flushes the file as if by calling <tt>fflush(file)</tt></ins>. If a get area exists, the effect is implementation-defined.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2474"></a>2474. <tt>&lt;cmath&gt;</tt> functions unfriendly to <tt>integral_constant</tt> arguments</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Matheus Izvekov <b>Opened:</b> 2015-02-13 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Using numeric wrappers with <tt>&lt;cmath&gt;</tt> functions is currently troublesome.
-Code such as: "<tt>std::exp2(std::integral_constant&lt;int, 5&gt;{})</tt>" will fail to 
-compile because of ambiguity.
-<p/>
-Arguments which are implicitly convertible to an arithmetic type should be accepted whenever
-the latter would be accepted.
-<p/>
-David Krauss pointed out that some issue may present itself with numeric libraries which provide <tt>&lt;cmath&gt;</tt> 
-equivalents in their own namespace which are not more specialized than the ones provided in <tt>&lt;cmath&gt;</tt>. 
-If the changes proposed are implemented, then cases where the user brings those into scope through ADL might become ambiguous.
-<p/>
-It's hard to assess how much breakage this would cause in the wild, and how much work it would take to fix. 
-Should this be determined to be a problem, it's possible to make the new behaviour optional, and disabled by 
-default for all user-defined types.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<p>Change 26.8 [c.math] p11 b2 as indicated:</p>
-<blockquote>
-<p>
--11- Moreover, there shall be additional overloads sufficient to ensure:
-</p>
-<ol>
-<li><p>[&hellip;]</p></li>
-<li><p>Otherwise, if any arithmetic argument corresponding to a <tt>double</tt> parameter has type <tt>double</tt> or 
-<del>an integer type</del><ins>a type which is not floating-point, but which is implicitly convertible to <tt>double</tt></ins>, 
-then all arithmetic arguments corresponding to <tt>double</tt> parameters are effectively cast to <tt>double</tt>.</p></li>
-<li><p>[&hellip;]</p></li>
-</ol>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2475"></a>2475. Allow overwriting of <tt>std::basic_string</tt> terminator with <tt>charT()</tt> to allow 
-cleaner interoperation with legacy APIs</h3>
-<p><b>Section:</b> 21.4.5 [string.access] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Matt Weber <b>Opened:</b> 2015-02-21 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.access">issues</a> in [string.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is often desirable to use a <tt>std::basic_string</tt> object as a buffer when interoperating with libraries 
-that mutate null-terminated arrays of characters. In many cases, these legacy APIs write a null terminator at 
-the specified end of the provided buffer. Providing such a function with an appropriately-sized 
-<tt>std::basic_string</tt> results in undefined behavior when the <tt>charT</tt> object at the <tt>size()</tt> 
-position is overwritten, even if the value remains unchanged.
-<p/>
-Absent the ability to allow for this, applications are forced into pessimizations such as: providing 
-appropriately-sized <tt>std::vectors</tt> of <tt>charT</tt> for interoperating with the legacy API, and then 
-copying the <tt>std::vector</tt> to a <tt>std::basic_string</tt>; providing an oversized <tt>std::basic_string</tt> 
-object and then calling <tt>resize()</tt> later.
-<p/>
-A trivial example:
-</p>
-<blockquote>
-<pre>
-#include &lt;string&gt;
-#include &lt;vector&gt;
-
-void legacy_function(char *out, size_t count) {
-  for (size_t i = 0; i &lt; count; ++i) {
-    *out++ = '0' + (i % 10);
-  }
-  *out = '\0'; // <span style="color:#C80000;font-weight:bold">if size() == count, this results in undefined behavior</span>
-}
-
-int main() {
-  std::string s(10, '\0');
-  legacy_function(&amp;s[0], s.size()); // <span style="color:#C80000;font-weight:bold">undefined behavior</span>
-
-  std::vector&lt;char&gt; buffer(11);
-  legacy_function(&amp;buffer[0], buffer.size() - 1);
-  std::string t(&amp;buffer[0], buffer.size() - 1); // potentially expensive copy
-
-  std::string u(11, '\0');
-  legacy_function(&amp;u[0], u.size() - 1);
-  u.resize(u.size() - 1); // needlessly complicates the program's logic
-}
-</pre>
-</blockquote>
-<p>
-A slight relaxation of the requirement on the returned object from the element access operator would 
-allow for this interaction with no semantic change to existing programs.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<p>Edit 21.4.5 [string.access] as indicated:</p>
-<blockquote>
-<pre>
-const_reference operator[](size_type pos) const;
-reference operator[](size_type pos);
-</pre>
-<blockquote>
-<p>
--1- <i>Requires</i>: [&hellip;]
-<p/>
--2- <i>Returns</i>: <tt>*(begin() + pos) if pos &lt; size()</tt>. Otherwise, returns a reference to an object of type
-<tt>charT</tt> with value <tt>charT()</tt>, where modifying the object <ins>to any value other than <tt>charT()</tt></ins> 
-leads to undefined behavior.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2476"></a>2476. <tt>scoped_allocator_adaptor</tt> is not assignable</h3>
-<p><b>Section:</b> 20.13.1 [allocator.adaptor.syn] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-03-02 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class definition in 20.13.1 [allocator.adaptor.syn] declares a move
-constructor, which means that the copy assignment operator is defined
-as deleted, and no move assignment operator is declared.
-<p/>
-This means a <tt>scoped_allocator_adaptor</tt> is not assignable, and a
-container using <tt>scoped_allocator_adaptor&lt;A...&gt;</tt> may not be
-<tt>CopyAssignable</tt> or <tt>MoveAssignable</tt> (depending on the
-<tt>propagate_on_container_xxxx_assignment</tt> traits of the outer and inner
-allocator types).
-</p>
-
-<p><i>[2015-04-03 Howard comments]</i></p>
-
-<p>
-If the contained allocators are not assignable, I think we need the ability of <tt>= default</tt> to automagically become 
-<tt>= delete</tt>. My concern is that <tt>is_copy_assignable&lt;scoped_allocator_adaptor&lt;CustomAllocator&gt;&gt;::value</tt> 
-get the right answer for both cases:
-</p>
-<ol>
-<li><p><tt>is_copy_assignable&lt;CustomAllocator&gt;::value</tt> is <tt>true</tt>.</p></li>
-<li><p><tt>is_copy_assignable&lt;CustomAllocator&gt;::value</tt> is <tt>false</tt>.</p></li>
-</ol>
-<p>
-If we allow the vendor to declare and provide the copy assignment operator, the chance of getting #2 correct goes to zero.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<p>Add to the synopsis in 20.13.1 [allocator.adaptor.syn]/1 [<i>Editorial remark</i>: The proposed wording
-does not explicitly specify the semantics of the added copy/move assignment operators, based on 
-17.5.2.2 [functions.within.classes] p1, which says:
-<p/>
-"For the sake of exposition, Clauses 18 through 30 and Annex D do not describe copy/move constructors,
-assignment operators, or (non-virtual) destructors with the same apparent semantics as those that can be
-generated by default (12.1, 12.4, 12.8)."
-<p/>
-&mdash; <i>end remark</i>]:
-</p>
-<blockquote>
-<pre>
-[&hellip;]
-template &lt;class OuterA2&gt;
-  scoped_allocator_adaptor(
-    scoped_allocator_adaptor&lt;OuterA2, InnerAllocs...&gt;&amp;&amp; other) noexcept;
-<ins>
-scoped_allocator_adaptor&amp; operator=(const scoped_allocator_adaptor&amp;);
-scoped_allocator_adaptor&amp; operator=(scoped_allocator_adaptor&amp;&amp;);
-</ins>
-~scoped_allocator_adaptor();
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Immediate.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<p>Add to the synopsis in 20.13.1 [allocator.adaptor.syn]/1:
-</p>
-<blockquote>
-<pre>
-[&hellip;]
-template &lt;class OuterA2&gt;
-  scoped_allocator_adaptor(
-    scoped_allocator_adaptor&lt;OuterA2, InnerAllocs...&gt;&amp;&amp; other) noexcept;
-<ins>
-scoped_allocator_adaptor&amp; operator=(const scoped_allocator_adaptor&amp;) = default;
-scoped_allocator_adaptor&amp; operator=(scoped_allocator_adaptor&amp;&amp;) = default;
-</ins>
-~scoped_allocator_adaptor();
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2477"></a>2477. Inconsistency of wordings in <tt>std::vector::erase()</tt> and <tt>std::deque::erase()</tt></h3>
-<p><b>Section:</b> 23.3.3.4 [deque.modifiers], 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Anton Savin <b>Opened:</b> 2015-03-03 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.modifiers">issues</a> in [deque.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the latest draft N4296, and in all drafts up to at least N3337:
-<p/>
-23.3.3.4 [deque.modifiers]/5 (regarding <tt>deque::erase()</tt>):
-</p>
-<blockquote>
-<p>
-<i>Complexity</i>: The number of calls to the destructor is the same as the number of elements erased, but
-the number of calls to the <span style="color:#C80000;font-weight:bold">assignment operator</span> is no more 
-than the lesser of the number of elements before the erased elements and the number of elements after the erased elements.
-</p>
-</blockquote>
-<p>
-23.3.6.5 [vector.modifiers]/4 (regarding <tt>vector::erase()</tt>):
-</p>
-<blockquote>
-<p>
-<i>Complexity</i>: The destructor of <tt>T</tt> is called the number of times equal to the number of the elements
-erased, but the <span style="color:#C80000;font-weight:bold">move assignment operator</span> of <tt>T</tt> is called 
-the number of times equal to the number of elements in the vector after the erased elements.
-</p>
-</blockquote>
-<p>
-Is there any reason for explicit mentioning of move assignment for <tt>std::vector::erase()</tt>? 
-Shouldn't these two wordings be the same with this regard?
-<p/>
-Also, for <tt>std::deque</tt>, it's not clear from the text which destructors and assignment operators are called.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Immediate.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 23.3.3.4 [deque.modifiers]/5 to:</p>
-
-<p>
--5- <i>Complexity</i>: The number of calls to the destructor <ins>of <tt>T</tt></ins> is the same as the number of 
-elements erased, but the number of calls to the assignment operator <ins>of <tt>T</tt></ins> is no more than the 
-lesser of the number of elements before the erased elements and the number of elements after the erased elements.
-</p>
-</li>
-
-<li><p>Change 23.3.6.5 [vector.modifiers]/4 to:</p>
-
-<p>
--4- <i>Complexity</i>: The destructor of <tt>T</tt> is called the number of times equal to the number of the elements
-erased, but the <del>move</del> assignment operator of <tt>T</tt> is called the number of times equal to the number of
-elements in the vector after the erased elements.
-</p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2478"></a>2478. Unclear how <tt>wstring_convert</tt> uses <tt>cvtstate</tt></h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-03-04 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-How do <tt>wstring_convert::from_bytes</tt> and <tt>wstring_convert::to_bytes</tt> use
-the <tt>cvtstate</tt> member?
-<p/>
-Is it passed to the <tt>codecvt</tt> member functions? Is a copy of it passed
-to the member functions? "Otherwise it shall be left unchanged"
-implies a copy is used, but if that's really what's intended there are
-simpler ways to say so.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2479"></a>2479. Unclear how <tt>wbuffer_convert</tt> uses <tt>cvtstate</tt></h3>
-<p><b>Section:</b> 22.3.3.2.3 [conversions.buffer] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-03-04 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.buffer">active issues</a> in [conversions.buffer].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.buffer">issues</a> in [conversions.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-How does <tt>wbuffer_convert</tt> use the <tt>cvtstate</tt> member?
-<p/>
-Is the same conversion state object used for converting both the get
-and put areas? That means a read which runs out of bytes halfway 
-through a multibyte character will leave some shift state in cvtstate, 
-which would then be used by a following write, even though the shift 
-state of the get area is unrelated to the put area.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2480"></a>2480. Error handling of <tt>wbuffer_convert</tt> unclear</h3>
-<p><b>Section:</b> 22.3.3.2.3 [conversions.buffer] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-03-04 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.buffer">active issues</a> in [conversions.buffer].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.buffer">issues</a> in [conversions.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If a <tt>codecvt</tt> conversion returns <tt>codecvt_base::error</tt> should that be
-treated as <tt>EOF</tt>? An exception? Should all the successfully converted
-characters before a conversion error be available to the users of the
-<tt>wbuffer_convert</tt> and/or the internal <tt>streambuf</tt>, or does a conversion
-error lose information?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2481"></a>2481. <tt>wstring_convert</tt> should be more precise regarding "byte-error string" etc.</h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-03-04 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 4 of 22.3.3.2.2 [conversions.string] introduces <tt>byte_err_string</tt> 
-as "a byte string to display on errors". What does display mean? The string is returned 
-on error, it's not displayed anywhere.
-<p/>
-Paragraph 14 says "Otherwise, if the object was constructed with a
-byte-error string, the member function shall return the byte-error
-string." The term byte-error string is not used anywhere else.
-<p/>
-Paragraph 17 talks about storing "default values in <tt>byte_err_string</tt>".
-What default value? Is "Hello, world!" allowed? If it means
-default-construction it should say so. If paragraph 14 says it won't
-be used what does it matter how it's initialized? The end of the
-paragraph refers to storing "<tt>byte_err</tt> in <tt>byte_err_string</tt>". This should
-be more clearly related to the wording in paragraph 14.
-<p/>
-It might help if the constructor (and destructor) was specified before
-the other member functions, so it can more formally define the
-difference between being "constructed with a byte-error string" and
-not.
-<p/>
-All the same issues apply to the <tt>wide_err_string</tt> member.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2483"></a>2483. <tt>throw_with_nested()</tt> should use <tt>is_final</tt></h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2559.htm">N2559</a> was voted into the Working Paper, 
-it said "This function template must take special case to handle non-class types, unions and <tt>[[final]]</tt> classes that cannot 
-be derived from, and [...]".  However, its Standardese didn't handle <tt>final</tt> classes, and this was never revisited. Now that 
-we have <tt>is_final</tt>, we can achieve this proposal's original intention.
-<p/>
-Additionally, we need to handle the case where <tt>U</tt> is <tt>nested_exception</tt> itself. <tt>is_base_of</tt>'s wording 
-handles this and ignores <i>cv</i>-qualifiers. (Note that <tt>is_class</tt> detects "non-union class type".)
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL, MC and JW already do this<br/>
-MC: move to Ready, bring to motion on Friday<br/>
-7 in favor, none opposed 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 18.8.6 [except.nested] as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class T&gt; [[noreturn]] void throw_with_nested(T&amp;&amp; t);
-</pre>
-<blockquote>
-<p>
--6- Let <tt>U</tt> be <tt>remove_reference_t&lt;T&gt;</tt>.
-<p/>
--7- Requires: <tt>U</tt> shall be <tt>CopyConstructible</tt>.
-<p/>
--8- Throws: if <del><tt>U</tt> is a non-union class type not derived from 
-<tt>nested_exception</tt></del><ins><tt>is_class&lt;U&gt;::value &amp;&amp; !is_final&lt;U&gt;::value &amp;&amp; 
-!is_base_of&lt;nested_exception, U&gt;::value</tt> is <tt>true</tt></ins>, an exception of unspecified type that 
-is publicly derived from both <tt>U</tt> and <tt>nested_exception</tt> and constructed from 
-<tt>std::forward&lt;T&gt;(t)</tt>, otherwise <tt>std::forward&lt;T&gt;(t)</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2484"></a>2484. <tt>rethrow_if_nested()</tt> is doubly unimplementable</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>rethrow_if_nested()</tt> wants to determine "If the dynamic type of <tt>e</tt> is publicly and unambiguously derived 
-from <tt>nested_exception</tt>", but 5.2.7 [expr.dynamic.cast] specifies that <tt>dynamic_cast</tt> has a couple 
-of limitations.
-<p/>
-First, nonpolymorphic inputs. These could be non-classes, or nonpolymorphic classes. The Standardese handles non-classes, 
-although implementers need special logic. (If <tt>E</tt> is <tt>int</tt>, the dynamic type can't possibly derive from 
-<tt>nested_exception</tt>. Implementers need to detect this and avoid <tt>dynamic_cast</tt>, which would be ill-formed 
-due to 5.2.7 [expr.dynamic.cast]/2.) The Standardese is defective when <tt>E</tt> is a nonpolymorphic class.  
-Consider the following example:
-</p>
-<blockquote>
-<pre>
-struct Nonpolymorphic { };
-struct MostDerived : Nonpolymorphic, nested_exception { };
-MostDerived md;
-const Nonpolymorphic&amp; np = md;
-rethrow_if_nested(np);
-</pre>
-</blockquote>
-<p>
-According to 1.3 [defns.dynamic.type], the dynamic type of <tt>np</tt> is <tt>MostDerived</tt>. However, it's 
-physically impossible to discover this, and attempting to do so will lead to an ill-formed <tt>dynamic_cast</tt> 
-(5.2.7 [expr.dynamic.cast]/6). The Standardese must be changed to say that if <tt>E</tt> is nonpolymorphic, nothing happens.
-<p/>
-Second, statically good but dynamically bad inputs. Consider the following example:
-</p>
-<blockquote>
-<pre>
-struct Nested1 : nested_exception { };
-struct Nested2 : nested_exception { };
-struct Ambiguous : Nested1, Nested2 { };
-Ambiguous amb;
-const Nested1&amp; n1 = amb;
-rethrow_if_nested(n1);
-</pre>
-</blockquote>
-<p>
-Here, the static type <tt>Nested1</tt> is good (i.e. publicly and unambiguously derived from <tt>nested_exception</tt>), but 
-the dynamic type <tt>Ambiguous</tt> is bad. The Standardese currently says that we have to detect the dynamic badness, but 
-<tt>dynamic_cast</tt> won't let us. 5.2.7 [expr.dynamic.cast]/3 and /5 are special cases (identity-casting and upcasting, 
-respectively) that activate before the "run-time check" behavior that we want (/6 and below). Statically good inputs succeed 
-(regardless of the dynamic type) and statically bad inputs are ill-formed (implementers must use type traits to avoid this).
-<p/>
-It might be possible to implement this with clever trickery involving virtual base classes, but implementers shouldn't be asked 
-to do that.  It would definitely be possible to implement this with a compiler hook (a special version of <tt>dynamic_cast</tt>), 
-but implementers shouldn't be asked to do so much work for such an unimportant case. (This case is pathological because the 
-usual way of adding <tt>nested_exception</tt> inheritance is <tt>throw_with_nested()</tt>, which avoids creating bad inheritance.)  
-The Standardese should be changed to say that statically good inputs are considered good.
-<p/>
-Finally, we want <tt>is_base_of</tt>'s "base class or same class" semantics. If the static type is <tt>nested_exception</tt>, 
-we have to consider it good due to <tt>dynamic_cast</tt>'s identity-casting behavior. And if the dynamic type is 
-<tt>nested_exception</tt>, it is definitely good.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-WB: so the <tt>is_polymorphic</tt> trait must be used?<br/>
-STL and JW: yes, that must be used to decide whether to try using <tt>dynamic_cast</tt> or not.<br/>
-JW: I'd already made this fix in our implementation<br/>
-STL: the harder case also involves <tt>dynamic_cast</tt>. should not try using <tt>dynamic_cast</tt> if we can 
-statically detect it is OK, doing the <tt>dynamic_cast</tt> might fail.<br/>
-STL: finally, want "is the same or derived from" behaviour of <tt>is_base_of</tt><br/>
-WB: should there be an "else no effect" at the end? We have "Otherwise, if ..." and nothing saying what if the condition is false.<br/>
-TP I agree.<br/>
-MC: move to Ready and bring to motion on Friday<br/>
-7 in favor, none opposed 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 18.8.6 [except.nested] as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class E&gt; void rethrow_if_nested(const E&amp; e);
-</pre>
-<blockquote>
-<p>
--9- <i>Effects</i>: If <ins><tt>E</tt> is not a polymorphic class type, there is no effect. Otherwise, if the static 
-type or</ins> the dynamic type of <tt>e</tt> <ins>is <tt>nested_exception</tt> or</ins> is publicly and unambiguously 
-derived from <tt>nested_exception</tt>, calls <tt>dynamic_cast&lt;const nested_exception&amp;&gt;(e).rethrow_nested()</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2485"></a>2485. <tt>get()</tt> should be overloaded for <tt>const tuple&amp;&amp;</tt></h3>
-<p><b>Section:</b> 20.4.2.6 [tuple.elem] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.elem">issues</a> in [tuple.elem].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>const</tt> rvalues are weird, but they're part of the type system. Consider the following code:
-</p>
-<blockquote>
-<pre>
-#include &lt;functional&gt;
-#include &lt;string&gt;
-#include &lt;tuple&gt;
-
-using namespace std; 
-
-string str1() { return "one"; }
-const string str2() { return "two"; }
-tuple&lt;string&gt; tup3() { return make_tuple("three"); }
-const tuple&lt;string&gt; tup4() { return make_tuple("four"); }
-
-int main() {
-  // cref(str1()); // BAD, properly rejected
-  // cref(str2()); // BAD, properly rejected
-  // cref(get&lt;0&gt;(tup3())); // BAD, properly rejected
-  cref(get&lt;0&gt;(tup4())); // BAD, but improperly accepted!
-}
-</pre>
-</blockquote>
-<p>
-As <tt>tuple</tt> is a fundamental building block (and the only convenient way to have variadic data members), it should 
-not open a hole in the type system. <tt>get()</tt> should imitate 5.2.5 [expr.ref]'s rules for accessing data members.  
-(This is especially true for <tt>pair</tt>, where both <tt>get&lt;0&gt;()</tt> and <tt>.first</tt> are available.)
-<p/>
-While we're in the neighborhood, we can dramatically simplify the wording here. All we need to do is follow 
-20.4.2.6 [tuple.elem]/9's example of saying "Returns: A reference to STUFF", and allow implementers to figure out how 
-to achieve that with the given return types.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-TP: for the existing overloads there's no change to the code, just descriptions?<br/>
-STL: right.<br/>
-JW: I love it<br/>
-MC: in favor of moving to Ready and bringing up for vote on Friday<br/>
-7 in favor, none opposed 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.2 [utility]/2 "Header <tt>&lt;utility&gt;</tt> synopsis" as depicted:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-template&lt;size_t I, class T1, class T2&gt;
-  constexpr tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;
-    get(pair&lt;T1, T2&gt;&amp;) noexcept;
-template&lt;size_t I, class T1, class T2&gt;
-  constexpr tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;&amp;
-    get(pair&lt;T1, T2&gt;&amp;&amp;) noexcept;
-template&lt;size_t I, class T1, class T2&gt;
-  constexpr const tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;
-    get(const pair&lt;T1, T2&gt;&amp;) noexcept;
-<ins>template&lt;size_t I, class T1, class T2&gt;
-  constexpr const tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;&amp;
-    get(const pair&lt;T1, T2&gt;&amp;&amp;) noexcept;</ins>
-template &lt;class T, class U&gt;
-  constexpr T&amp; get(pair&lt;T, U&gt;&amp; p) noexcept;
-template &lt;class T, class U&gt;
-  constexpr const T&amp; get(const pair&lt;T, U&gt;&amp; p) noexcept;
-template &lt;class T, class U&gt;
-  constexpr T&amp;&amp; get(pair&lt;T, U&gt;&amp;&amp; p) noexcept;
-<ins>template &lt;class T, class U&gt;
-  constexpr const T&amp;&amp; get(const pair&lt;T, U&gt;&amp;&amp; p) noexcept;</ins>
-template &lt;class T, class U&gt;
-  constexpr T&amp; get(pair&lt;U, T&gt;&amp; p) noexcept;
-template &lt;class T, class U&gt;
-  constexpr const T&amp; get(const pair&lt;U, T&gt;&amp; p) noexcept;
-template &lt;class T, class U&gt;
-  constexpr T&amp;&amp; get(pair&lt;U, T&gt;&amp;&amp; p) noexcept;
-<ins>template &lt;class T, class U&gt;
-  constexpr const T&amp;&amp; get(const pair&lt;U, T&gt;&amp;&amp; p) noexcept;</ins>
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.1 [tuple.general]/2 "Header <tt>&lt;tuple&gt;</tt> synopsis" as depicted:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-<i>// 20.4.2.6, element access:</i>
-template &lt;size_t I, class... Types&gt;
-constexpr tuple_element_t&lt;I, tuple&lt;Types...&gt;&gt;&amp;
-get(tuple&lt;Types...&gt;&amp;) noexcept;
-template &lt;size_t I, class... Types&gt;
-constexpr tuple_element_t&lt;I, tuple&lt;Types...&gt;&gt;&amp;&amp;
-get(tuple&lt;Types...&gt;&amp;&amp;) noexcept;
-template &lt;size_t I, class... Types&gt;
-constexpr const tuple_element_t&lt;I, tuple&lt;Types...&gt;&gt;&amp;
-get(const tuple&lt;Types...&gt;&amp;) noexcept;
-<ins>template &lt;size_t I, class... Types&gt;
-constexpr const tuple_element_t&lt;I, tuple&lt;Types...&gt;&gt;&amp;&amp;
-get(const tuple&lt;Types...&gt;&amp;&amp;) noexcept;</ins>
-template &lt;class T, class... Types&gt;
-constexpr T&amp; get(tuple&lt;Types...&gt;&amp; t) noexcept;
-template &lt;class T, class... Types&gt;
-constexpr T&amp;&amp; get(tuple&lt;Types...>&amp;&amp; t) noexcept;
-template &lt;class T, class... Types&gt;
-constexpr const T&amp; get(const tuple&lt;Types...&gt;&amp; t) noexcept;
-<ins>template &lt;class T, class... Types&gt;
-constexpr const T&amp;&amp; get(const tuple&lt;Types...&gt;&amp;&amp; t) noexcept;</ins>
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.1 [sequences.general]/2 "Header <tt>&lt;array&gt;</tt> synopsis" as depicted:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-template &lt;size_t I, class T, size_t N&gt;
-constexpr T&amp; get(array&lt;T, N&gt;&amp;) noexcept;
-template &lt;size_t I, class T, size_t N&gt;
-constexpr T&amp;&amp; get(array&lt;T, N&gt;&amp;&amp;) noexcept;
-template &lt;size_t I, class T, size_t N&gt;
-constexpr const T&amp; get(const array&lt;T, N&gt;&amp;) noexcept;
-<ins>template &lt;size_t I, class T, size_t N&gt;
-constexpr const T&amp;&amp; get(const array&lt;T, N&gt;&amp;&amp;) noexcept;</ins>
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.3.4 [pair.astuple] as depicted:</p>
-
-<blockquote>
-<pre>
-template&lt;size_t I, class T1, class T2&gt;
-constexpr tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;
-get(pair&lt;T1, T2&gt;&amp; p) noexcept;
-template&lt;size_t I, class T1, class T2&gt;
-constexpr const tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;
-get(const pair&lt;T1, T2&gt;&amp; p) noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-3- <i>Returns</i>: If <tt>I == 0</tt> returns <tt>p.first</tt>; if <tt>I == 1</tt> returns <tt>p.second</tt>; 
-otherwise the program is ill-formed.</del>
-</p>
-</blockquote>
-<pre>
-template&lt;size_t I, class T1, class T2&gt;
-constexpr tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;&amp;
-get(pair&lt;T1, T2&gt;&amp;&amp; p) noexcept;
-<ins>template&lt;size_t I, class T1, class T2&gt;
-constexpr const tuple_element_t&lt;I, pair&lt;T1, T2&gt;&gt;&amp;&amp;
-get(const pair&lt;T1, T2&gt;&amp;&amp; p) noexcept;</ins>
-</pre>
-<blockquote>
-<p>
--4- <i>Returns</i>: If <tt>I == 0</tt> returns <ins>a reference to</ins> 
-<tt><del>std::forward&lt;T1&amp;&amp;&gt;(</del>p.first<del>)</del></tt>; if <tt>I == 1</tt> 
-returns <ins>a reference to</ins> <tt><del>std::forward&lt;T2&amp;&amp;&gt;(</del>p.second<del>)</del></tt>; 
-otherwise the program is ill-formed.
-</p>
-</blockquote>
-<pre>
-template &lt;class T, class U&gt;
-constexpr T&amp; get(pair&lt;T, U&gt;&amp; p) noexcept;
-template &lt;class T, class U&gt;
-constexpr const T&amp; get(const pair&lt;T, U&gt;&amp; p) noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-5- Requires: <tt>T</tt> and <tt>U</tt> are distinct types. Otherwise, the program is ill-formed.</del>
-<p/>
-<del>-6- Returns: <tt>get&lt;0&gt;(p)</tt>;</del>
-</p>
-</blockquote>
-<pre>
-template &lt;class T, class U&gt;
-constexpr T&amp;&amp; get(pair&lt;T, U&gt;&amp;&amp; p) noexcept;
-<ins>template &lt;class T, class U&gt;
-constexpr const T&amp;&amp; get(const pair&lt;T, U&gt;&amp;&amp; p) noexcept;</ins>
-</pre>
-<blockquote>
-<p>
--7- Requires: <tt>T</tt> and <tt>U</tt> are distinct types. Otherwise, the program is ill-formed.
-<p/>
--8- Returns: <ins>A reference to <tt>p.first</tt>.</ins><del><tt>get&lt;0&gt;(std::move(p))</tt>;</del>
-</p>
-</blockquote>
-<pre>
-template &lt;class T, class U&gt;
-constexpr T&amp; get(pair&lt;U, T&gt;&amp; p) noexcept;
-template &lt;class T, class U&gt;
-constexpr const T&amp; get(const pair&lt;U, T&gt;&amp; p) noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-9- Requires: <tt>T</tt> and <tt>U</tt> are distinct types. Otherwise, the program is ill-formed.</del>
-<p/>
-<del>-10- Returns: <tt>get&lt;1&gt;(p)</tt>;</del>
-</p>
-</blockquote>
-<pre>
-template &lt;class T, class U&gt;
-constexpr T&amp;&amp; get(pair&lt;U, T&gt;&amp;&amp; p) noexcept;
-<ins>template &lt;class T, class U&gt;
-constexpr const T&amp;&amp; get(const pair&lt;U, T&gt;&amp;&amp; p) noexcept;</ins>
-</pre>
-<blockquote>
-<p>
--11- Requires: <tt>T</tt> and <tt>U</tt> are distinct types. Otherwise, the program is ill-formed.
-<p/>
--12- Returns: <ins>A reference to <tt>p.second</tt>.</ins><del><tt>get&lt;1&gt;(std::move(p))</tt>;</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.6 [tuple.elem] as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;size_t I, class... Types&gt;
-  constexpr tuple_element_t&lt;I, tuple&lt;Types...&gt; &gt;&amp; get(tuple&lt;Types...&gt;&amp; t) noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-1- <i>Requires</i>: <tt>I &lt; sizeof...(Types)</tt>. The program is ill-formed if <tt>I</tt> is out of bounds.</del>
-<p/>
-<del>-2- <i>Returns</i>: A reference to the <tt>I</tt>th element of <tt>t</tt>, where indexing is zero-based.</del>
-</p>
-</blockquote>
-<pre>
-template &lt;size_t I, class... Types&gt;
-  constexpr tuple_element_t&lt;I, tuple&lt;Types...&gt; &gt;&amp;&amp; get(tuple&lt;Types...&gt;&amp;&amp; t) noexcept; <ins><i>// Note A</i></ins>
-</pre>
-<blockquote>
-<p>
-<del>-3- <i>Effects</i>: Equivalent to return std::forward&lt;typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type&amp;&amp;&gt;(get&lt;I&gt;(t));</del>
-<p/>
-<del>-4- <i>Note</i>: if a <tt>T</tt> in <tt>Types</tt> is some reference type <tt>X&amp;</tt>, the return type is <tt>X&amp;</tt>, not 
-<tt>X&amp;&amp;</tt>. However, if the element type is a non-reference type <tt>T</tt>, the return type is <tt>T&amp;&amp;</tt>.</del>
-</p>
-</blockquote>
-<pre>
-template &lt;size_t I, class... Types&gt;
-  constexpr tuple_element_t&lt;I, tuple&lt;Types...&gt; &gt; const&amp; get(const tuple&lt;Types...&gt;&amp; t) noexcept; <ins><i>// Note B</i></ins>
-<ins>template &lt;size_t I, class... Types&gt;
-  constexpr const tuple_element_t&lt;I, tuple&lt;Types...&gt; &gt;&amp;&amp; get(const tuple&lt;Types...&gt;&amp;&amp; t) noexcept;</ins>  
-</pre>
-<blockquote>
-<p>
--5- <i>Requires</i>: <tt>I &lt; sizeof...(Types)</tt>. The program is ill-formed if <tt>I</tt> is out of bounds.
-<p/>
--6- <i>Returns</i>: A <del>const</del> reference to the <tt>I</tt>th element of <tt>t</tt>, where indexing is zero-based.
-<p/>
-<ins>-?- [<i>Note A</i>: if a <tt>T</tt> in <tt>Types</tt> is some reference type <tt>X&amp;</tt>, the return type is <tt>X&amp;</tt>, 
-not <tt>X&amp;&amp;</tt>. However, if the element type is a non-reference type <tt>T</tt>, the return type is <tt>T&amp;&amp;</tt>. 
-&mdash; <i>end note</i>]</ins>
-<p/>
--7- [<i>Note <ins>B</ins></i>: Constness is shallow. If a <tt>T</tt> in <tt>Types</tt> is some reference type <tt>X&amp;</tt>, 
-the return type is <tt>X&amp;</tt>, not <tt>const X&amp;</tt>. However, if the element type is non-reference type <tt>T</tt>, 
-the return type is <tt>const T&amp;</tt>. This is consistent with how constness is defined to work for member variables of 
-reference type. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-<pre>
-template &lt;class T, class... Types&gt;
-  constexpr T&amp; get(tuple&lt;Types...&gt;&amp; t) noexcept;
-template &lt;class T, class... Types&gt;
-  constexpr T&amp;&amp; get(tuple&lt;Types...&gt;&amp;&amp; t) noexcept;
-template &lt;class T, class... Types&gt;
-  constexpr const T&amp; get(const tuple&lt;Types...&gt;&amp; t) noexcept;
-<ins>template &lt;class T, class... Types&gt;
-  constexpr const T&amp;&amp; get(const tuple&lt;Types...&gt;&amp;&amp; t) noexcept;</ins>
-</pre>
-<blockquote>
-<p>
--8- <i>Requires</i>: The type <tt>T</tt> occurs exactly once in <tt>Types...</tt>. Otherwise, the program is ill-formed.
-<p/>
--9- <i>Returns</i>: A reference to the element of <tt>t</tt> corresponding to the type <tt>T</tt> in <tt>Types...</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.2.9 [array.tuple] as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;size_t I, class T, size_t N&gt;
-<ins>  </ins>constexpr T&amp; get(array&lt;T, N&gt;&amp; a) noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-3- <i>Requires</i>: <tt>I &lt; N</tt>. The program is ill-formed if <tt>I</tt> is out of bounds.</del>
-<p/>
-<del>-4- <i>Returns</i>: A reference to the <tt>I</tt>th element of <tt>a</tt>, where indexing is zero-based.</del>
-</p>
-</blockquote>
-<pre>
-template &lt;size_t I, class T, size_t N&gt;
-<ins>  </ins>constexpr T&amp;&amp; get(array&lt;T, N&gt;&amp;&amp; a) noexcept;
-</pre>
-<blockquote>
-<p>
-<del>-5- <i>Effects</i>: Equivalent to <tt>return std::move(get&lt;I&gt;(a));</tt></del>
-</p>
-</blockquote>
-<pre>
-template &lt;size_t I, class T, size_t N&gt;
-<ins>  </ins>constexpr const T&amp; get(const array&lt;T, N&gt;&amp; a) noexcept;
-<ins>template &lt;size_t I, class T, size_t N&gt;
-  constexpr const T&amp;&amp; get(const array&lt;T, N&gt;&amp;&amp; a) noexcept;</ins>
-</pre>
-<blockquote>
-<p>
--6- <i>Requires</i>: <tt>I &lt; N</tt>. The program is ill-formed if <tt>I</tt> is out of bounds.
-<p/>
--7- <i>Returns</i>: A <del>const</del> reference to the <tt>I</tt>th element of <tt>a</tt>, where indexing is zero-based.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2486"></a>2486. <tt>mem_fn()</tt> should be required to use perfect forwarding</h3>
-<p><b>Section:</b> 20.9.2 [func.require] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.require">active issues</a> in [func.require].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.require">issues</a> in [func.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.9.2 [func.require]/4 defines "simple call wrapper" and "forwarding call wrapper". Only <tt>mem_fn()</tt> is 
-specified to be a "simple call wrapper", by 20.9.11 [func.memfn]/1: "A simple call wrapper (20.9.1) <tt>fn</tt> 
-such that the expression <tt>fn(t, a2, ..., aN)</tt> is equivalent to <tt>INVOKE(pm, t, a2, ..., aN)</tt> (20.9.2)."
-<p/>
-This suggests, but doesn't outright state, that perfect forwarding is involved. It matters for PMFs like 
-<tt>R (T::*)(Arg)</tt> where <tt>Arg</tt> is passed by value &mdash; if the <tt>mem_fn()</tt> wrapper's function call 
-operator takes <tt>Arg</tt> by value, an extra copy/move will be observable. We should require perfect forwarding here.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Immediate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.9.2 [func.require] as depicted [<i>Editorial remark</i>: This simply adds "A simple call wrapper 
-is a <ins>forwarding</ins> call wrapper", then moves the sentence. &mdash; <i>end of remark</i>]:</p>
-
-<blockquote>
-<p>
--4- Every call wrapper (20.9.1) shall be <tt>MoveConstructible</tt>. <del>A <i>simple call wrapper</i> is a call wrapper that is
-<tt>CopyConstructible</tt> and <tt>CopyAssignable</tt> and whose copy constructor, move constructor, and assignment
-operator do not throw exceptions.</del> A <i>forwarding call wrapper</i> is a call wrapper that can be called with
-an arbitrary argument list and delivers the arguments to the wrapped callable object as references. This
-forwarding step shall ensure that rvalue arguments are delivered as rvalue-references and lvalue arguments
-are delivered as lvalue-references. <ins>A <i>simple call wrapper</i> is a forwarding call wrapper that is <tt>CopyConstructible</tt> 
-and <tt>CopyAssignable</tt> and whose copy constructor, move constructor, and assignment operator do not throw exceptions.</ins> 
-[<i>Note</i>: In a typical implementation [&hellip;] &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2487"></a>2487. <tt>bind()</tt> should be <tt>const</tt>-overloaded, not <i>cv</i>-overloaded</h3>
-<p><b>Section:</b> 20.9.10.3 [func.bind.bind] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Standard currently requires <tt>bind()</tt> to return something with a <i>cv</i>-overloaded function call operator.  
-<tt>const</tt> is great, but <tt>volatile</tt> is not. First, the Library almost always ignores <tt>volatile</tt>'s 
-existence (with <tt>&lt;type_traits&gt;</tt> and <tt>&lt;atomic&gt;</tt> being rare exceptions). Second, implementations 
-typically store bound arguments in a <tt>tuple</tt>, but <tt>get()</tt> isn't overloaded for <tt>volatile tuple</tt>. Third, 
-when a bound argument is a <tt>reference_wrapper</tt>, we have to call <tt>tid.get()</tt>, but that won't compile for a 
-<tt>volatile reference_wrapper</tt>. Finally, <tt>const</tt> and <tt>volatile</tt> don't always have to be handled symmetrically 
-&mdash; for example, lambda function call operators are <tt>const</tt> by default, but they can't ever be <tt>volatile</tt>.
-<p/>
-Implementers shouldn't be required to provide <i>cv</i>-overloading here. (They can provide it as a conforming extension if 
-they want.)
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-JW: why would a <tt>reference_wrapper</tt> be volatile?<br/>
-STL: if a bound argument is a <tt>reference_wrapper</tt> then in a volatile-qualified operator() that 
-member will be volatile so you can't call get() on it<br/>
-STL: worded like this it's a conforming extension to kep overloading on volatile<br/>
-HH: libc++ doesn't overload on volatile<br/>
-JW: libstdc++ does overload for volatile<br/>
-MC: move to Ready and bring motion on Friday<br/>
-10 in favor, none opposed 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.9.10.3 [func.bind.bind] as depicted:</p>
-
-<blockquote>
-<pre>
-template&lt;class F, class... BoundArgs&gt;
-  <i>unspecified</i> bind(F&amp;&amp; f, BoundArgs&amp;&amp;... bound_args);
-</pre>
-<blockquote>
-<p>
--2- <i>Requires</i>: <tt>is_constructible&lt;FD, F&gt;::value</tt> shall be <tt>true</tt>. For each <tt>Ti</tt> 
-in <tt>BoundArgs</tt>, <tt>is_constructible&lt;TiD, Ti&gt;::value</tt> shall be <tt>true</tt>. 
-<tt><i>INVOKE</i>(fd, w1, w2, ..., wN)</tt> (20.9.2) shall be a valid expression for some values <tt>w1</tt>, <tt>w2</tt>, 
-..., <tt>wN</tt>, where <tt>N == sizeof...(bound_args)</tt>. <ins>The <i>cv</i>-qualifiers <i>cv</i> of the call 
-wrapper <tt>g</tt>, as specified below, shall be neither <tt>volatile</tt> nor <tt>const volatile</tt>.</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-template&lt;class R, class F, class... BoundArgs&gt;
-  <i>unspecified</i> bind(F&amp;&amp; f, BoundArgs&amp;&amp;... bound_args);
-</pre>
-<blockquote>
-<p>
--6- <i>Requires</i>: <tt>is_constructible&lt;FD, F&gt;::value</tt> shall be <tt>true</tt>. For each <tt>Ti</tt> 
-in <tt>BoundArgs</tt>, <tt>is_constructible&lt;TiD, Ti&gt;::value</tt> shall be <tt>true</tt>. 
-<tt><i>INVOKE</i>(fd, w1, w2, ..., wN)</tt> shall be a valid expression for some values <tt>w1</tt>, <tt>w2</tt>, 
-..., <tt>wN</tt>, where <tt>N == sizeof...(bound_args)</tt>. <ins>The <i>cv</i>-qualifiers <i>cv</i> of the call 
-wrapper <tt>g</tt>, as specified below, shall be neither <tt>volatile</tt> nor <tt>const volatile</tt>.</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2489"></a>2489. <tt>mem_fn()</tt> should be <tt>noexcept</tt></h3>
-<p><b>Section:</b> 20.9.11 [func.memfn] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.memfn">issues</a> in [func.memfn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>mem_fn()</tt> is wide contract and doesn't do anything that could throw exceptions, so it should be marked <tt>noexcept</tt>.
-<p/>
-Note that <tt>mem_fn()</tt> is perfectly happy to wrap a null PMF/PMD, it just can't be invoked later. This is exactly like 
-<tt>std::function</tt>, which can be constructed from null PMFs/PMDs. Therefore, <tt>mem_fn()</tt> will remain wide contract forever.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Immediate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.9 [function.objects] p2 "Header <tt>&lt;functional&gt;</tt> synopsis" as depicted:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-<i>// 20.9.11, member function adaptors:</i>
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::*) <ins>noexcept</ins>;
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.11 [func.memfn] as depicted:</p>
-
-<blockquote>
-<pre>
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::* pm) <ins>noexcept</ins>;
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-4- <i>Throws</i>: Nothing.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2490"></a>2490. <tt>&lt;regex&gt;</tt> needs lots of <tt>noexcept</tt></h3>
-<p><b>Section:</b> 28 [re] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re">active issues</a> in [re].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re">issues</a> in [re].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Only 4 functions are marked <tt>noexcept</tt> in all of Clause 28. Many more need to be marked &mdash; for example, 
-<tt>regex_error::code()</tt>, <tt>basic_regex::swap()</tt>, and <tt>sub_match::length()</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2491"></a>2491. <tt>std::less&lt;T*&gt;</tt> in constant expression</h3>
-<p><b>Section:</b> 20.9.6 [comparisons] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Agust&iacute;n K-ballo Berg&eacute; <b>Opened:</b> 2015-04-01 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#comparisons">active issues</a> in [comparisons].</p>
-<p><b>View all other</b> <a href="lwg-index.html#comparisons">issues</a> in [comparisons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is not entirely clear if and when the specializations of <tt>std::less</tt> (and friends) for pointer types 
-can be used in a constant expression. Consider the following code:
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-
-struct foo {};
-foo x, y;
-constexpr bool b = std::less&lt;foo*&gt;{}(&amp;x, &amp;y); // [1]
-
-foo z[] = {{}, {}};
-constexpr bool ba = std::less&lt;foo*&gt;{}(&amp;z[0], &amp;z[1]); // [2]
-</pre></blockquote>
-<p>
-Comparing the address of unrelated objects is not a constant expression since the result is unspecified, so 
-it could be expected for [1] to fail and [2] to succeed. However, <tt>std::less</tt> specialization for pointer 
-types is well-defined and yields a total order, so it could just as well be expected for [1] to succeed. Finally, 
-since the implementation of such specializations is not mandated, [2] could fail as well (This could happen, if
-an implementation would provide such a specialization and if that would use built-in functions that would not be
-allowed in constant expressions, for example). In any case, the standard should be clear so as to avoid 
-implementation-defined <tt>constexpr</tt>-ness.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2492"></a>2492. Clarify requirements for <tt>comp</tt></h3>
-<p><b>Section:</b> 25.4 [alg.sorting] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Anton Savin <b>Opened:</b> 2015-04-14 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.sorting">issues</a> in [alg.sorting].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N4296 25.4 [alg.sorting]/3 reads:
-</p>
-<blockquote><p>
-For all algorithms that take <tt>Compare</tt>, there is a version that uses <tt>operator&lt;</tt> instead. That is, 
-<tt>comp(*i,*j) != false</tt> defaults to <tt>*i &lt; *j != false</tt>. For algorithms other than those described in 
-25.4.3  to work correctly, <tt>comp</tt>  has to induce a strict weak ordering on the values.
-</p></blockquote>
-<p>
-So it's not specified clearly what happens if <tt>comp</tt> or <tt>operator&lt;</tt> don't induce a strict weak ordering. 
-Is it undefined or implementation-defined behavior? It seems that it should be stated more clearly that the behavior is 
-undefined.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Immediate.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li><p>Change 25.4 [alg.sorting]/3 to the following:</p>
-<blockquote>
-<p>
-For all algorithms that take <tt>Compare</tt>, there is a version that uses <tt>operator&lt;</tt> instead. That is, <tt>comp(*i,
-*j) != false</tt> defaults to <tt>*i &lt; *j != false</tt>. For algorithms other than those described in 25.4.3 <del>to work
-correctly</del>, <tt>comp</tt> <ins>shall</ins><del>has to</del> induce a strict weak ordering on the values.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2493"></a>2493. <tt>initializer_list</tt> supports incomplete classes</h3>
-<p><b>Section:</b> 18.9 [support.initlist] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> David Krauss <b>Opened:</b> 2015-04-27 <b>Last modified:</b> 2015-05-04</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.initlist">active issues</a> in [support.initlist].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.initlist">issues</a> in [support.initlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The typical use-case of <tt>std::initializer_list&lt;T&gt;</tt> is for a pass-by-value parameter of <tt>T</tt>'s constructor. 
-However, this contravenes 17.6.4.8 [res.on.functions]/2.5 because <tt>initializer_list</tt> doesn't specifically allow 
-incomplete types (as do for example <tt>std::unique_ptr</tt> (20.8.1 [unique.ptr]/5) and 
-<tt>std::enable_shared_from_this</tt> (20.8.2.5 [util.smartptr.enab]/2)).
-<p/>
-A resolution would be to copy-paste the relevant text from such a paragraph.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2494"></a>2494. [fund.ts.v2] <tt>ostream_joiner</tt> needs <tt>noexcept</tt></h3>
-<p><b>Section:</b> X [iterator.ostream.joiner] <b>Status:</b> <a href="lwg-active.html#Ready">Ready</a>
- <b>Submitter:</b> Nate Wilson <b>Opened:</b> 2015-05-03 <b>Last modified:</b> 2015-05-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Ready">Ready</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts.v2</b></p>
-<p>
-In Library Fundamentals 2 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4481.html#iterator.ostream.joiner.ops">N4481</a>, 
-[iterator.ostream.joiner], all operations are no-ops other than the assignment operator.
-<p/>
-So, they should be marked as <tt>noexcept</tt>.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Move to Immediate.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4481 in regard to fundamental-ts-2 changes.</p>
-
-<ol>
-<li><p>Change class template <tt>ostream_joiner</tt> synopsis, [iterator.ostream.joiner] p2, as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-namespace experimental {
-inline namespace fundamentals_v2 {
-
-template &lt;class DelimT, class charT = char, class traits = char_traits&lt;charT&gt; &gt;
-  class ostream_joiner {
-  public:
-    [&hellip;]
-    ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator*() <ins>noexcept</ins>;
-    ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator++() <ins>noexcept</ins>;
-    ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator++(int) <ins>noexcept</ins>;
-    [&hellip;]
-  };
-
-} // inline namespace fundamentals_v2
-} // namespace experimental
-} // namespace std
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change [iterator.ostream.joiner.ops] p3+5, as indicated:</p>
-
-<blockquote>
-<pre>
-ostream_joiner&lt;DelimT, charT, traits&gt;&amp; operator*() <ins>noexcept</ins>;
-</pre>
-<p>
-[&hellip;]
-</p>
-<pre>
-ostream_joiner&lt;DelimT, charT, traits&gt;&amp; operator++() <ins>noexcept</ins>;
-ostream_joiner&lt;DelimT, charT, traits&gt;&amp; operator++(int) <ins>noexcept</ins>;
-</pre>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2495"></a>2495. There is no such thing as an <i>Exception Safety</i> element</h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2015-05-05 <b>Last modified:</b> 2015-05-20</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.2.2.1 [util.smartptr.shared.const] includes several "Exception safety"
-elements, but that is not one of the elements defined in 17.5.1.4
-17.5.1.4 [structure.specifications]. We should either define what it means, or
-just move those sentences into the <i>Effects:</i> clause.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li><p>Change 20.8.2.2.1 [util.smartptr.shared.const] as follows:</p>
-
-<blockquote>
-<pre>
-template&lt;class Y&gt; explicit shared_ptr(Y* p);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--4- <i>Effects</i>: Constructs a <tt>shared_ptr</tt> object that <i>owns</i> the pointer <tt>p</tt>. <ins>If an exception 
-is thrown, <tt>delete p</tt> is called.</ins>
-<p/>
-[&hellip;]
-<p/>
-<del>-7- <i>Exception safety</i>: If an exception is thrown, <tt>delete p</tt> is called.</del>
-</p>
-</blockquote>
-<pre>
-template &lt;class Y, class D&gt; shared_ptr(Y* p, D d);
-template &lt;class Y, class D, class A&gt; shared_ptr(Y* p, D d, A a);
-template &lt;class D&gt; shared_ptr(nullptr_t p, D d);
-template &lt;class D, class A&gt; shared_ptr(nullptr_t p, D d, A a);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--9- <i>Effects</i>: Constructs a <tt>shared_ptr</tt> object that owns the object <tt>p</tt> and the deleter <tt>d</tt>. 
-The second and fourth constructors shall use a copy of <tt>a</tt> to allocate memory for internal use. <ins>If an exception 
-is thrown, <tt>d(p)</tt> is called.</ins>
-<p/>
-[&hellip;]
-<p/>
-<del>-12- <i>Exception safety</i>: If an exception is thrown, <tt>d(p)</tt> is called.</del>
-</p>
-</blockquote>
-[&hellip;]
-<pre>
-template &lt;class Y&gt; explicit shared_ptr(const weak_ptr&lt;Y&gt;&amp; r);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--24- <i>Effects</i>: Constructs a <tt>shared_ptr</tt> object that shares ownership with <tt>r</tt> and stores a copy of the pointer
-stored in <tt>r</tt>. <ins>If an exception is thrown, the constructor has no effect.</ins>
-<p/>
-[&hellip;]
-<p/>
-<del>-27- <i>Exception safety</i>: If an exception is thrown, the constructor has no effect.</del>
-</p>
-</blockquote>
-<pre>
-template &lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--29- <i>Effects</i>: Equivalent to <tt>shared_ptr(r.release(), r.get_deleter())</tt> when <tt>D</tt> is not a reference type,
-otherwise <tt>shared_ptr(r.release(), ref(r.get_deleter()))</tt>. <ins>If an exception is thrown, the constructor has no effect.</ins>
-<p/>
-<del>-30- <i>Exception safety</i>: If an exception is thrown, the constructor has no effect.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2496"></a>2496. Certain hard-to-avoid errors not in the immediate context are not allowed to be triggered by 
-the evaluation of type traits</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Hubert Tong <b>Opened:</b> 2015-05-07 <b>Last modified:</b> 2015-05-20</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I do not believe that the wording in 20.10.4.3 [meta.unary.prop] paragraph 3 allows for the following program to be ill-formed:
-</p>
-<blockquote>
-<pre>
-#include &lt;type_traits&gt;
-
-template &lt;typename T&gt; struct B : T { };
-template &lt;typename T&gt; struct A { A&amp; operator=(const B&lt;T&gt;&amp;); };
-
-std::is_assignable&lt;A&lt;int&gt;, int&gt; q;
-</pre>
-</blockquote>
-<p>
-In particular, I do not see where the wording allows for the "compilation of the expression" 
-<tt>declval&lt;T&gt;() = declval&lt;U&gt;()</tt> to occur as a consequence of instantiating <tt>std::is_assignable&lt;T, U&gt;</tt> 
-(where <tt>T</tt> and <tt>U</tt> are, respectively, <tt>A&lt;int&gt;</tt> and <tt>int</tt> in the example code).
-<p/>
-Instantiating <tt>A&lt;int&gt;</tt> as a result of requiring it to be a complete type does not trigger the instantiation of 
-<tt>B&lt;int&gt;</tt>; however, the "compilation of the expression" in question does.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2497"></a>2497. Use of <tt>uncaught_exception()</tt></h3>
-<p><b>Section:</b> 27.7.3.4 [ostream::sentry] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Roger Orr <b>Opened:</b> 2015-05-08 <b>Last modified:</b> 2015-05-20</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream::sentry">issues</a> in [ostream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the current 27.7.3.4 [ostream::sentry], p4 refers to the now deprecated <tt>std::uncaught_exception()</tt>: 
-D.9 [depr.uncaught].
-</p>
-<blockquote>
-<p>
-If <tt>((os.flags() &amp; ios_base::unitbuf) &amp;&amp; !uncaught_exception() &amp;&amp; os.good())</tt> is true, calls
-<tt>os.rdbuf()->pubsync()</tt>.
-</p>
-</blockquote>
-<p>
-This needs to be changed, for example to use <tt>std::uncaught_exceptions()</tt> and to capture the value on entry and 
-compare with the saved value on exit.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2498"></a>2498. <tt>operator&gt;&gt;(basic_istream&amp;&amp;, T&amp;&amp;)</tt> returns <tt>basic_istream&amp;</tt>, but should probably return 
-<tt>basic_istream&amp;&amp;</tt></h3>
-<p><b>Section:</b> 27.7.2.6 [istream.rvalue] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2015-05-08 <b>Last modified:</b> 2015-05-20</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.rvalue">active issues</a> in [istream.rvalue].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.rvalue">issues</a> in [istream.rvalue].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider:
-</p>
-<blockquote>
-<pre>
-auto&amp; is = make_istream() &gt;&gt; x; // oops, istream object is already gone
-</pre>
-</blockquote>
-<p>
-With a <tt>basic_istream&amp;&amp;</tt> return type, the above would be ill-formed, and generally we'd 
-preserve the value category properly.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2499"></a>2499. <tt>operator&gt;&gt;(basic_istream&amp;, CharT*)</tt> makes it hard to avoid buffer overflows</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2015-05-08 <b>Last modified:</b> 2015-05-21</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We removed <tt>gets()</tt> (due to an NB comment and C11 &mdash; bastion of backwards compatibility &mdash; doing the same). 
-Should we remove this too?
-<p/>
-Unlike <tt>gets()</tt>, there are legitimate uses:
-</p>
-<blockquote>
-<pre>
-char buffer[32];
-char text[32] = // ...
-ostream_for_buffer(text) &gt;&gt; buffer; // ok, can't overrun buffer
-</pre>
-</blockquote>
-<p>
-&hellip; but the risk from constructs like "<tt>std::cin &gt;&gt; buffer</tt>" seems to outweigh the benefit.
-<p/>
-The issue had been discussed on the library reflector starting around 
-<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=35541">c++std-lib-35541</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2500"></a>2500. [fund.ts.v2] fundts.memory.smartptr.shared.obs/6 should apply to <i>cv</i>-unqualified <tt>void</tt></h3>
-<p><b>Section:</b> X [memory.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2015-05-11 <b>Last modified:</b> 2015-05-20</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts.v2</b></p>
-<p>
-S. B. Tam reported this <a href="https://github.com/cplusplus/fundamentals-ts/issues/51">here</a>.
-<p/>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3920.html">N3920</a> changed <tt>operator*()</tt> in 
-[util.smartptr.shared.obs] as:
-</p>
-<blockquote>
-<p>
-<i>Remarks</i>: When <tt>T</tt> is <ins>an array type or <i>cv</i>-qualified</ins> <tt>void</tt>, it
-is unspecified whether this member function is declared. &hellip;
-</p>
-</blockquote>
-<p>
-This excludes <i>cv</i>-unqualified <tt>void</tt>, which is probably unintended.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>In the <a href="https://rawgit.com/cplusplus/fundamentals-ts/v2/fundamentals-ts.html#memory.smartptr.shared.obs.6">library 
-fundamentals v2</a>, [memory.smartptr.shared.obs] p2, change as indicated:</p>
-<blockquote>
-<p>
-<i>Remarks</i>: When <tt>T</tt> is an array type or <ins>(possibly</ins> <i>cv</i>-qualified<ins>)</ins> 
-<tt>void</tt>, it is unspecified whether this
-member function is declared. If it is declared, it is unspecified what
-its return type is, except that the declaration (although not
-necessarily the definition) of the function shall be well formed.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2501"></a>2501. <tt>std::function</tt> requires POCMA/POCCA</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> David Krauss <b>Opened:</b> 2015-05-20 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The idea behind <tt>propagate_on_container_move_assignment</tt> is that you can keep an allocator attached to a container. 
-But it's not really designed to work with polymorphism, which introduces the condition where the current allocator is non-POCMA 
-and the RHS of assignment, being POCMA, wants to replace it. If function were to respect the literal meaning, any would-be 
-attached allocator is at the mercy of every assignment operation. So, <tt>std::function</tt> is inherently POCMA, and passing 
-a non-POCMA allocator should be ill-formed.
-<p/>
-The other alternative, and the status quo, is to ignore POCMA and assume it is true. This seems just dangerous enough to outlaw. 
-It is, in theory, possible to properly support POCMA as far as I can see, albeit with difficulty and brittle results. It would 
-require function to keep a throwing move constructor, which otherwise can be <tt>noexcept</tt>.
-<p/>
-The same applies to <tt>propagate_on_container_copy_assignment</tt>. This presents more difficulty because <tt>std::allocator</tt> 
-does not set this to true. Perhaps it should. For function to respect this would require inspecting the POCCA of the source allocator, 
-slicing the target from the erasure of the source, slicing the allocation from the erasure of the destination, and performing a 
-copy with the destination's allocator with the source's target. This comes out of the blue for the destination allocator, which 
-might not support the new type anyway. Theoretically possible, but brittle and not very practical. Again, current implementations 
-quietly ignore the issue but this isn't very clean.
-<p/>
-The following code example is intended to demonstrate the issue here:
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-#include &lt;iostream&gt;
-#include &lt;vector&gt;
-
-template &lt;typename T&gt;
-struct diag_alloc 
-{
-  std::string name;
-
-  T* allocate(std::size_t n) const 
-  {
-    std::cout &lt;&lt; '+' &lt;&lt; name &lt;&lt; '\n';
-    return static_cast&lt;T*&gt;(::operator new(n * sizeof(T)));
-  }
-  
-  void deallocate(T* p, std::size_t) const 
-  {
-    std::cout &lt;&lt; '-' &lt;&lt; name &lt;&lt; '\n';
-    return ::operator delete(p);
-  }
-
-  template &lt;typename U&gt;
-  operator diag_alloc&lt;U&gt;() const { return {name}; }
-
-  friend bool operator==(const diag_alloc&amp; a, const diag_alloc&amp; b)
-  { return a.name == b.name; }
-  
-  friend bool operator!=(const diag_alloc&amp; a, const diag_alloc&amp; b)
-  { return a.name != b.name; }
-
-  typedef T value_type;
-  
-  template &lt;typename U&gt;
-  struct rebind { typedef diag_alloc&lt;U&gt; other; };
-};
-
-int main() {
-  std::cout &lt;&lt; "VECTOR\n";
-  std::vector&lt;int, diag_alloc&lt;int&gt;&gt; foo({1, 2}, {"foo"}); // +foo
-  std::vector&lt;int, diag_alloc&lt;int&gt;&gt; bar({3, 4}, {"bar"}); // +bar
-
-  std::cout &lt;&lt; "move\n";
-  foo = std::move(bar); // no message
-
-  std::cout &lt;&lt; "more foo\n";
-  foo.reserve(40); // +foo -foo
-  std::cout &lt;&lt; "more bar\n";
-  bar.reserve(40); // +bar -bar
-
-  std::cout &lt;&lt; "\nFUNCTION\n";
-  int bigdata[100];
-  auto bigfun = [bigdata]{};
-  typedef decltype(bigfun) ft;
-  std::cout &lt;&lt; "make fizz\n";
-  std::function&lt;void()&gt; fizz(std::allocator_arg, diag_alloc&lt;ft&gt;{"fizz"}, bigfun); // +fizz
-  std::cout &lt;&lt; "another fizz\n";
-  std::function&lt;void()&gt; fizz2;
-  fizz2 = fizz; // +fizz as if POCCA
-  std::cout &lt;&lt; "make buzz\n";
-  std::function&lt;void()&gt; buzz(std::allocator_arg, diag_alloc&lt;ft&gt;{"buzz"}, bigfun); // +buzz
-  std::cout &lt;&lt; "move\n";
-  buzz = std::move(fizz); // -buzz as if POCMA
-
-  std::cout &lt;&lt; "\nCLEANUP\n";
-}
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2502"></a>2502. <tt>std::function</tt> does not use <tt>allocator::construct</tt></h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> David Krauss <b>Opened:</b> 2015-05-20 <b>Last modified:</b> 2015-05-21</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is impossible for <tt>std::function</tt> to construct its target object using the <tt>construct</tt> method of a type-erased 
-allocator. More confusingly, it is possible when the allocator and the target are created at the same time. The means 
-of target construction should be specified.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2503"></a>2503. multiline option should be added to <tt>syntax_option_type</tt></h3>
-<p><b>Section:</b> 28.5.1 [re.synopt] <b>Status:</b> <a href="lwg-active.html#New">New</a>
- <b>Submitter:</b> Nozomu Kat&#x14d; <b>Opened:</b> 2015-05-22 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.synopt">active issues</a> in [re.synopt].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.synopt">issues</a> in [re.synopt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification of ECMAScript defines the Multiline property for its
-RegExp and the regular expressions ^ and $ behave differently according
-to the value of this property. Thus, this property should be available
-also in the ECMAScript compatible engine in <tt>std::regex</tt>.
-</p>
-
-<p><i>[2015-05-22, Daniel comments]</i></p>
-
-<p>
-This issue interacts somewhat with LWG <a href="lwg-active.html#2343">2343</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li><p>Change 28.5.1 [re.synopt] as indicated:</p>
-
-<blockquote><pre>
-namespace std::regex_constants {
-  typedef T1 syntax_option_type;
-  constexpr syntax_option_type icase = <i>unspecified</i> ;
-  constexpr syntax_option_type nosubs = <i>unspecified</i> ;
-  constexpr syntax_option_type optimize = <i>unspecified</i> ;
-  constexpr syntax_option_type collate = <i>unspecified</i> ;
-  constexpr syntax_option_type ECMAScript = <i>unspecified</i> ;
-  constexpr syntax_option_type basic = <i>unspecified</i> ;
-  constexpr syntax_option_type extended = <i>unspecified</i> ;
-  constexpr syntax_option_type awk = <i>unspecified</i> ;
-  constexpr syntax_option_type grep = <i>unspecified</i> ;
-  constexpr syntax_option_type egrep = <i>unspecified</i> ;
-  <ins>constexpr syntax_option_type multiline = <i>unspecified</i> ;</ins>
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 28.5.2 [re.matchflag], Table 138 &mdash; "<tt>syntax_option_type</tt> effects" as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 138 &mdash; <tt>syntax_option_type</tt> effects</caption>
-<tr>
-<th align="center">Element</th>
-<th align="center">Effect(s) if set</th>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>multiline</tt></ins>
-</td>
-<td>
-<ins>Specifies that <tt>^</tt> shall match the beginning of a line
-and <tt>$</tt> shall match the end of a line, if the ECMAScript engine is
-selected.</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-</body>
-</html>
diff --git a/libstdc++-v3/doc/html/ext/lwg-closed.html b/libstdc++-v3/doc/html/ext/lwg-closed.html
deleted file mode 100644
index b01c109c74486fcf26e6c74e4938f930a861ece2..0000000000000000000000000000000000000000
--- a/libstdc++-v3/doc/html/ext/lwg-closed.html
+++ /dev/null
@@ -1,42632 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-    "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-<title>C++ Standard Library Closed Issues List</title>
-<style type="text/css">
-  p {text-align:justify}
-  li {text-align:justify}
-  blockquote.note
-  {
-    background-color:#E0E0E0;
-    padding-left: 15px;
-    padding-right: 15px;
-    padding-top: 1px;
-    padding-bottom: 1px;
-  }
-  ins {background-color:#A0FFA0}
-  del {background-color:#FFA0A0}
-</style>
-</head>
-<body>
-<table>
-<tr>
-  <td align="left">Doc. no.</td>
-  <td align="left">N4486</td>
-</tr>
-<tr>
-  <td align="left">Date:</td>
-  <td align="left">2015-05-23</td>
-</tr>
-<tr>
-  <td align="left">Project:</td>
-  <td align="left">Programming Language C++</td>
-</tr>
-<tr>
-  <td align="left">Reply to:</td>
-  <td align="left">Marshall Clow &lt;<a href="mailto:lwgchair@gmail.com">lwgchair@gmail.com</a>&gt;</td>
-</tr>
-</table>
-<h1>C++ Standard Library Closed Issues List (Revision R93)</h1>
-<p><p>Revised 2015-05-23 at 15:05:40 UTC</p>
-</p>
-  <p>Reference ISO/IEC IS 14882:2014(E)</p>
-  <p>Also see:</p>
-    <ul>
-      <li><a href="lwg-toc.html">Table of Contents</a> for all library issues.</li>
-      <li><a href="lwg-index.html">Index by Section</a> for all library issues.</li>
-      <li><a href="lwg-status.html">Index by Status</a> for all library issues.</li>
-      <li><a href="lwg-active.html">Library Active Issues List</a></li>
-      <li><a href="lwg-defects.html">Library Defect Reports List</a></li>
-    </ul>
-
-  <p>This document contains only library issues which have been closed
-  by the Library Working Group as duplicates or not defects. That is,
-  issues which have a status of <a href="lwg-active.html#Dup">Dup</a> or
-  <a href="lwg-active.html#NAD">NAD</a>. See the <a href="lwg-active.html">Library Active Issues List</a> active issues and more
-  information. See the <a href="lwg-defects.html">Library Defect Reports List</a> for issues considered
-  defects.  The introductory material in that document also applies to
-  this document.</p>
-
-<h2>Revision History</h2>
-<ul>
-<li>R93: 2014-05-22 2015 post-Lenexa mailing<ul>
-<li><b>Summary:</b><ul>
-<li>256 open issues, down by 36.</li>
-<li>1770 closed issues, up by 48.</li>
-<li>2026 issues total, up by 12.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 2 Ready issues: <a href="lwg-active.html#2492">2492</a>, <a href="lwg-active.html#2494">2494</a>.</li>
-<li>Added the following 10 New issues: <a href="lwg-active.html#2493">2493</a>, <a href="lwg-active.html#2495">2495</a>, <a href="lwg-active.html#2496">2496</a>, <a href="lwg-active.html#2497">2497</a>, <a href="lwg-active.html#2498">2498</a>, <a href="lwg-active.html#2499">2499</a>, <a href="lwg-active.html#2500">2500</a>, <a href="lwg-active.html#2501">2501</a>, <a href="lwg-active.html#2502">2502</a>, <a href="lwg-active.html#2503">2503</a>.</li>
-<li>Changed the following 2 issues to Ready (from Review): <a href="lwg-active.html#2111">2111</a>, <a href="lwg-active.html#2380">2380</a>.</li>
-<li>Changed the following 20 issues to Ready (from New): <a href="lwg-active.html#2244">2244</a>, <a href="lwg-active.html#2250">2250</a>, <a href="lwg-active.html#2259">2259</a>, <a href="lwg-active.html#2336">2336</a>, <a href="lwg-active.html#2353">2353</a>, <a href="lwg-active.html#2367">2367</a>, <a href="lwg-active.html#2384">2384</a>, <a href="lwg-active.html#2385">2385</a>, <a href="lwg-active.html#2435">2435</a>, <a href="lwg-active.html#2462">2462</a>, <a href="lwg-active.html#2466">2466</a>, <a href="lwg-active.html#2473">2473</a>, <a href="lwg-active.html#2476">2476</a>, <a href="lwg-active.html#2477">2477</a>, <a href="lwg-active.html#2483">2483</a>, <a href="lwg-active.html#2484">2484</a>, <a href="lwg-active.html#2485">2485</a>, <a href="lwg-active.html#2486">2486</a>, <a href="lwg-active.html#2487">2487</a>, <a href="lwg-active.html#2489">2489</a>.</li>
-<li>Changed the following 12 issues to Ready (from Open): <a href="lwg-active.html#1169">1169</a>, <a href="lwg-active.html#2072">2072</a>, <a href="lwg-active.html#2101">2101</a>, <a href="lwg-active.html#2119">2119</a>, <a href="lwg-active.html#2127">2127</a>, <a href="lwg-active.html#2133">2133</a>, <a href="lwg-active.html#2156">2156</a>, <a href="lwg-active.html#2181">2181</a>, <a href="lwg-active.html#2218">2218</a>, <a href="lwg-active.html#2219">2219</a>, <a href="lwg-active.html#2447">2447</a>, <a href="lwg-active.html#2469">2469</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Open): <a href="lwg-active.html#2224">2224</a>.</li>
-<li>Changed the following issue to Review (from New): <a href="lwg-active.html#2296">2296</a>.</li>
-<li>Changed the following issue to Review (from Open): <a href="lwg-active.html#2328">2328</a>.</li>
-<li>Changed the following 11 issues to Open (from New): <a href="lwg-active.html#2262">2262</a>, <a href="lwg-active.html#2289">2289</a>, <a href="lwg-active.html#2338">2338</a>, <a href="lwg-active.html#2348">2348</a>, <a href="lwg-active.html#2349">2349</a>, <a href="lwg-active.html#2370">2370</a>, <a href="lwg-active.html#2398">2398</a>, <a href="lwg-active.html#2402">2402</a>, <a href="lwg-active.html#2422">2422</a>, <a href="lwg-active.html#2450">2450</a>, <a href="lwg-active.html#2456">2456</a>.</li>
-<li>Changed the following 8 issues to Open (from SG1): <a href="lwg-active.html#2245">2245</a>, <a href="lwg-active.html#2265">2265</a>, <a href="lwg-active.html#2276">2276</a>, <a href="lwg-active.html#2309">2309</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-active.html#2441">2441</a>.</li>
-<li>Changed the following issue to LEWG (from New): <a href="lwg-active.html#2372">2372</a>.</li>
-<li>Changed the following issue to EWG (from New): <a href="lwg-active.html#2432">2432</a>.</li>
-<li>Changed the following issue to Deferred (from Open): <a href="lwg-active.html#2202">2202</a>.</li>
-<li>Changed the following 14 issues to WP (from Ready): <a href="lwg-defects.html#2160">2160</a>, <a href="lwg-defects.html#2168">2168</a>, <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>.</li>
-<li>Changed the following 18 issues to WP (from Tentatively Ready): <a href="lwg-defects.html#2059">2059</a>, <a href="lwg-defects.html#2076">2076</a>, <a href="lwg-defects.html#2239">2239</a>, <a href="lwg-defects.html#2369">2369</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-defects.html#2410">2410</a>, <a href="lwg-defects.html#2415">2415</a>, <a href="lwg-defects.html#2418">2418</a>, <a href="lwg-defects.html#2437">2437</a>, <a href="lwg-defects.html#2448">2448</a>, <a href="lwg-defects.html#2454">2454</a>, <a href="lwg-defects.html#2455">2455</a>, <a href="lwg-defects.html#2458">2458</a>, <a href="lwg-defects.html#2459">2459</a>, <a href="lwg-defects.html#2463">2463</a>, <a href="lwg-defects.html#2467">2467</a>, <a href="lwg-defects.html#2470">2470</a>, <a href="lwg-defects.html#2482">2482</a>.</li>
-<li>Changed the following 3 issues to WP (from New): <a href="lwg-defects.html#2420">2420</a>, <a href="lwg-defects.html#2464">2464</a>, <a href="lwg-defects.html#2488">2488</a>.</li>
-<li>Changed the following issue to WP (from Open): <a href="lwg-defects.html#2063">2063</a>.</li>
-<li>Changed the following 2 issues to WP (from SG1): <a href="lwg-defects.html#2407">2407</a>, <a href="lwg-defects.html#2442">2442</a>.</li>
-<li>Changed the following issue to Resolved (from Review): <a href="lwg-defects.html#2228">2228</a>.</li>
-<li>Changed the following 3 issues to Resolved (from Open): <a href="lwg-defects.html#1526">1526</a>, <a href="lwg-defects.html#2274">2274</a>, <a href="lwg-defects.html#2397">2397</a>.</li>
-<li>Changed the following 5 issues to NAD (from New): <a href="lwg-closed.html#2079">2079</a>, <a href="lwg-closed.html#2251">2251</a>, <a href="lwg-closed.html#2351">2351</a>, <a href="lwg-closed.html#2373">2373</a>, <a href="lwg-closed.html#2386">2386</a>.</li>
-<li>Changed the following issue to NAD (from Open): <a href="lwg-closed.html#2388">2388</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R92: 
-2015-04-09 pre-Lenexa mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>292 open issues, up by 33.</li>
-<li>1722 closed issues, up by 0.</li>
-<li>2014 issues total, up by 33.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 5 Tentatively Ready issues: <a href="lwg-active.html#2459">2459</a>, <a href="lwg-active.html#2463">2463</a>, <a href="lwg-active.html#2467">2467</a>, <a href="lwg-active.html#2470">2470</a>, <a href="lwg-active.html#2482">2482</a>.</li>
-<li>Added the following 27 New issues: <a href="lwg-active.html#2460">2460</a>, <a href="lwg-active.html#2461">2461</a>, <a href="lwg-active.html#2462">2462</a>, <a href="lwg-active.html#2464">2464</a>, <a href="lwg-active.html#2465">2465</a>, <a href="lwg-active.html#2466">2466</a>, <a href="lwg-active.html#2468">2468</a>, <a href="lwg-active.html#2471">2471</a>, <a href="lwg-active.html#2472">2472</a>, <a href="lwg-active.html#2473">2473</a>, <a href="lwg-active.html#2474">2474</a>, <a href="lwg-active.html#2475">2475</a>, <a href="lwg-active.html#2476">2476</a>, <a href="lwg-active.html#2477">2477</a>, <a href="lwg-active.html#2478">2478</a>, <a href="lwg-active.html#2479">2479</a>, <a href="lwg-active.html#2480">2480</a>, <a href="lwg-active.html#2481">2481</a>, <a href="lwg-active.html#2483">2483</a>, <a href="lwg-active.html#2484">2484</a>, <a href="lwg-active.html#2485">2485</a>, <a href="lwg-active.html#2486">2486</a>, <a href="lwg-active.html#2487">2487</a>, <a href="lwg-active.html#2488">2488</a>, <a href="lwg-active.html#2489">2489</a>, <a href="lwg-active.html#2490">2490</a>, <a href="lwg-active.html#2491">2491</a>.</li>
-<li>Added the following Open issue: <a href="lwg-active.html#2469">2469</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Review): <a href="lwg-active.html#2378">2378</a>.</li>
-<li>Changed the following 11 issues to Tentatively Ready (from New): <a href="lwg-active.html#2076">2076</a>, <a href="lwg-active.html#2239">2239</a>, <a href="lwg-active.html#2369">2369</a>, <a href="lwg-active.html#2410">2410</a>, <a href="lwg-active.html#2415">2415</a>, <a href="lwg-active.html#2418">2418</a>, <a href="lwg-active.html#2437">2437</a>, <a href="lwg-active.html#2448">2448</a>, <a href="lwg-active.html#2454">2454</a>, <a href="lwg-active.html#2455">2455</a>, <a href="lwg-active.html#2458">2458</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Open): <a href="lwg-active.html#2059">2059</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from New): <a href="lwg-active.html#2337">2337</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from Open): <a href="lwg-active.html#760">760</a>.</li>
-<li>Changed the following 5 issues to Open (from New): <a href="lwg-active.html#2312">2312</a>, <a href="lwg-active.html#2388">2388</a>, <a href="lwg-active.html#2393">2393</a>, <a href="lwg-active.html#2444">2444</a>, <a href="lwg-active.html#2447">2447</a>.</li>
-<li>Changed the following 4 issues to LEWG (from New): <a href="lwg-active.html#2391">2391</a>, <a href="lwg-active.html#2417">2417</a>, <a href="lwg-active.html#2436">2436</a>, <a href="lwg-active.html#2451">2451</a>.</li>
-<li>Changed the following issue to EWG (from Open): <a href="lwg-active.html#2089">2089</a>.</li>
-<li>Changed the following issue to Core (from New): <a href="lwg-active.html#2452">2452</a>.</li>
-<li>Changed the following 13 issues to SG1 (from New): <a href="lwg-active.html#2236">2236</a>, <a href="lwg-active.html#2245">2245</a>, <a href="lwg-active.html#2265">2265</a>, <a href="lwg-active.html#2276">2276</a>, <a href="lwg-active.html#2309">2309</a>, <a href="lwg-active.html#2334">2334</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2407">2407</a>, <a href="lwg-active.html#2412">2412</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-active.html#2442">2442</a>, <a href="lwg-active.html#2445">2445</a>.</li>
-<li>Changed the following issue to SG1 (from Open): <a href="lwg-active.html#2441">2441</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R91: 
-2014-11-23 post-Urbana mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>259 open issues, up by 32.</li>
-<li>1722 closed issues, down by 20.</li>
-<li>1981 issues total, up by 12.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 12 New issues: <a href="lwg-active.html#2447">2447</a>, <a href="lwg-defects.html#2448">2448</a>, <a href="lwg-active.html#2449">2449</a>, <a href="lwg-active.html#2450">2450</a>, <a href="lwg-active.html#2451">2451</a>, <a href="lwg-active.html#2452">2452</a>, <a href="lwg-active.html#2453">2453</a>, <a href="lwg-defects.html#2454">2454</a>, <a href="lwg-defects.html#2455">2455</a>, <a href="lwg-active.html#2456">2456</a>, <a href="lwg-active.html#2457">2457</a>, <a href="lwg-defects.html#2458">2458</a>.</li>
-<li>Changed the following 2 issues to Ready (from Review): <a href="lwg-defects.html#2160">2160</a>, <a href="lwg-defects.html#2364">2364</a>.</li>
-<li>Changed the following 11 issues to Ready (from New): <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>.</li>
-<li>Changed the following issue to Ready (from Open): <a href="lwg-defects.html#2168">2168</a>.</li>
-<li>Changed the following issue to Review (from New): <a href="lwg-active.html#2424">2424</a>.</li>
-<li>Changed the following 5 issues to Open (from New): <a href="lwg-active.html#2307">2307</a>, <a href="lwg-active.html#2310">2310</a>, <a href="lwg-active.html#2383">2383</a>, <a href="lwg-active.html#2414">2414</a>, <a href="lwg-active.html#2441">2441</a>.</li>
-<li>Changed the following 2 issues to Open (from NAD Future): <a href="lwg-active.html#760">760</a>, <a href="lwg-active.html#1173">1173</a>.</li>
-<li>Changed the following 4 issues to LEWG (from New): <a href="lwg-active.html#2419">2419</a>, <a href="lwg-active.html#2430">2430</a>, <a href="lwg-active.html#2443">2443</a>, <a href="lwg-active.html#2446">2446</a>.</li>
-<li>Changed the following 48 issues to LEWG (from NAD Future): <a href="lwg-active.html#255">255</a>, <a href="lwg-active.html#423">423</a>, <a href="lwg-active.html#484">484</a>, <a href="lwg-active.html#523">523</a>, <a href="lwg-active.html#532">532</a>, <a href="lwg-active.html#708">708</a>, <a href="lwg-active.html#839">839</a>, <a href="lwg-active.html#851">851</a>, <a href="lwg-active.html#877">877</a>, <a href="lwg-active.html#933">933</a>, <a href="lwg-active.html#935">935</a>, <a href="lwg-active.html#936">936</a>, <a href="lwg-active.html#961">961</a>, <a href="lwg-active.html#1025">1025</a>, <a href="lwg-active.html#1031">1031</a>, <a href="lwg-active.html#1041">1041</a>, <a href="lwg-active.html#1052">1052</a>, <a href="lwg-active.html#1053">1053</a>, <a href="lwg-active.html#1112">1112</a>, <a href="lwg-active.html#1120">1120</a>, <a href="lwg-active.html#1121">1121</a>, <a href="lwg-active.html#1150">1150</a>, <a href="lwg-active.html#1154">1154</a>, <a href="lwg-active.html#1184">1184</a>, <a href="lwg-active.html#1188">1188</a>, <a href="lwg-active.html#1201">1201</a>, <a href="lwg-active.html#1203">1203</a>, <a href="lwg-active.html#1217">1217</a>, <a href="lwg-active.html#1235">1235</a>, <a href="lwg-active.html#1238">1238</a>, <a href="lwg-active.html#1242">1242</a>, <a href="lwg-active.html#1282">1282</a>, <a href="lwg-active.html#1289">1289</a>, <a href="lwg-active.html#1317">1317</a>, <a href="lwg-active.html#1320">1320</a>, <a href="lwg-active.html#1396">1396</a>, <a href="lwg-active.html#1406">1406</a>, <a href="lwg-active.html#1422">1422</a>, <a href="lwg-active.html#1459">1459</a>, <a href="lwg-active.html#1484">1484</a>, <a href="lwg-active.html#1488">1488</a>, <a href="lwg-active.html#1493">1493</a>, <a href="lwg-active.html#1499">1499</a>, <a href="lwg-active.html#1521">1521</a>, <a href="lwg-active.html#2040">2040</a>, <a href="lwg-active.html#2055">2055</a>, <a href="lwg-active.html#2226">2226</a>, <a href="lwg-active.html#2232">2232</a>.</li>
-<li>Changed the following 2 issues to Pending NAD (from Tentatively NAD): <a href="lwg-closed.html#2302">2302</a>, <a href="lwg-closed.html#2382">2382</a>.</li>
-<li>Changed the following 11 issues to WP (from Ready): <a href="lwg-defects.html#2016">2016</a>, <a href="lwg-defects.html#2170">2170</a>, <a href="lwg-defects.html#2340">2340</a>, <a href="lwg-defects.html#2354">2354</a>, <a href="lwg-defects.html#2377">2377</a>, <a href="lwg-defects.html#2396">2396</a>, <a href="lwg-defects.html#2399">2399</a>, <a href="lwg-defects.html#2400">2400</a>, <a href="lwg-defects.html#2401">2401</a>, <a href="lwg-defects.html#2404">2404</a>, <a href="lwg-defects.html#2408">2408</a>.</li>
-<li>Changed the following 12 issues to WP (from Tentatively Ready): <a href="lwg-defects.html#2106">2106</a>, <a href="lwg-defects.html#2129">2129</a>, <a href="lwg-defects.html#2212">2212</a>, <a href="lwg-defects.html#2217">2217</a>, <a href="lwg-defects.html#2230">2230</a>, <a href="lwg-defects.html#2233">2233</a>, <a href="lwg-defects.html#2266">2266</a>, <a href="lwg-defects.html#2325">2325</a>, <a href="lwg-defects.html#2361">2361</a>, <a href="lwg-defects.html#2365">2365</a>, <a href="lwg-defects.html#2376">2376</a>, <a href="lwg-defects.html#2387">2387</a>.</li>
-<li>Changed the following issue to Resolved (from Ready): <a href="lwg-defects.html#2319">2319</a>.</li>
-<li>Changed the following issue to Resolved (from Review): <a href="lwg-defects.html#2118">2118</a>.</li>
-<li>Changed the following issue to Resolved (from New): <a href="lwg-defects.html#2416">2416</a>.</li>
-<li>Changed the following issue to Resolved (from Open): <a href="lwg-defects.html#2108">2108</a>.</li>
-<li>Changed the following issue to NAD (from New): <a href="lwg-closed.html#2429">2429</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R90: 
-2014-10-13 pre-Urbana mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>227 open issues, up by 31.</li>
-<li>1742 closed issues, up by 0.</li>
-<li>1969 issues total, up by 31.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 31 New issues: <a href="lwg-defects.html#2416">2416</a>, <a href="lwg-active.html#2417">2417</a>, <a href="lwg-defects.html#2418">2418</a>, <a href="lwg-active.html#2419">2419</a>, <a href="lwg-defects.html#2420">2420</a>, <a href="lwg-active.html#2421">2421</a>, <a href="lwg-active.html#2422">2422</a>, <a href="lwg-active.html#2423">2423</a>, <a href="lwg-active.html#2424">2424</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-closed.html#2429">2429</a>, <a href="lwg-active.html#2430">2430</a>, <a href="lwg-active.html#2431">2431</a>, <a href="lwg-active.html#2432">2432</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-active.html#2435">2435</a>, <a href="lwg-active.html#2436">2436</a>, <a href="lwg-defects.html#2437">2437</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>, <a href="lwg-active.html#2441">2441</a>, <a href="lwg-defects.html#2442">2442</a>, <a href="lwg-active.html#2443">2443</a>, <a href="lwg-active.html#2444">2444</a>, <a href="lwg-active.html#2445">2445</a>, <a href="lwg-active.html#2446">2446</a>.</li>
-<li>No issues changed.</li>
-</ul></li>
-</ul>
-</li>
-<li>R89: 
-2014-07-08 post-Rapperswil mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>196 open issues, up by 14.</li>
-<li>1742 closed issues, up by 12.</li>
-<li>1938 issues total, up by 26.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 6 Ready issues: <a href="lwg-defects.html#2396">2396</a>, <a href="lwg-defects.html#2399">2399</a>, <a href="lwg-defects.html#2400">2400</a>, <a href="lwg-defects.html#2401">2401</a>, <a href="lwg-defects.html#2404">2404</a>, <a href="lwg-defects.html#2408">2408</a>.</li>
-<li>Added the following 15 New issues: <a href="lwg-active.html#2391">2391</a>, <a href="lwg-active.html#2392">2392</a>, <a href="lwg-active.html#2393">2393</a>, <a href="lwg-active.html#2394">2394</a>, <a href="lwg-active.html#2398">2398</a>, <a href="lwg-active.html#2402">2402</a>, <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2407">2407</a>, <a href="lwg-defects.html#2410">2410</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-active.html#2412">2412</a>, <a href="lwg-active.html#2413">2413</a>, <a href="lwg-active.html#2414">2414</a>, <a href="lwg-defects.html#2415">2415</a>.</li>
-<li>Added the following Open issue: <a href="lwg-defects.html#2397">2397</a>.</li>
-<li>Added the following 3 WP issues: <a href="lwg-defects.html#2390">2390</a>, <a href="lwg-defects.html#2395">2395</a>, <a href="lwg-defects.html#2409">2409</a>.</li>
-<li>Added the following NAD issue: <a href="lwg-closed.html#2405">2405</a>.</li>
-<li>Changed the following issue to Ready (from New): <a href="lwg-defects.html#2377">2377</a>.</li>
-<li>Changed the following 2 issues to Ready (from Deferred): <a href="lwg-active.html#2253">2253</a>, <a href="lwg-active.html#2255">2255</a>.</li>
-<li>Changed the following 2 issues to Tentatively Ready (from New): <a href="lwg-defects.html#2325">2325</a>, <a href="lwg-defects.html#2387">2387</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from New): <a href="lwg-closed.html#2382">2382</a>.</li>
-<li>Changed the following 3 issues to Review (from New): <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-active.html#2380">2380</a>.</li>
-<li>Changed the following 2 issues to Review (from Open): <a href="lwg-defects.html#2118">2118</a>, <a href="lwg-defects.html#2160">2160</a>.</li>
-<li>Changed the following 3 issues to Open (from New): <a href="lwg-defects.html#2168">2168</a>, <a href="lwg-active.html#2238">2238</a>, <a href="lwg-active.html#2273">2273</a>.</li>
-<li>Changed the following 3 issues to Open (from Deferred): <a href="lwg-active.html#2254">2254</a>, <a href="lwg-active.html#2264">2264</a>, <a href="lwg-active.html#2277">2277</a>.</li>
-<li>Changed the following 3 issues to WP (from New): <a href="lwg-defects.html#2371">2371</a>, <a href="lwg-defects.html#2374">2374</a>, <a href="lwg-defects.html#2389">2389</a>.</li>
-<li>Changed the following 4 issues to Resolved (from Deferred): <a href="lwg-defects.html#2282">2282</a>, <a href="lwg-defects.html#2283">2283</a>, <a href="lwg-defects.html#2287">2287</a>, <a href="lwg-defects.html#2333">2333</a>.</li>
-<li>Changed the following issue to NAD (from Deferred): <a href="lwg-closed.html#2305">2305</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R88: 
-2014-05-24 pre-Rapperswil mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>182 open issues, up by 29.</li>
-<li>1730 closed issues, up by 0.</li>
-<li>1912 issues total, up by 29.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 3 Tentatively Ready issues: <a href="lwg-defects.html#2361">2361</a>, <a href="lwg-defects.html#2365">2365</a>, <a href="lwg-defects.html#2376">2376</a>.</li>
-<li>Added the following 26 New issues: <a href="lwg-active.html#2362">2362</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-active.html#2366">2366</a>, <a href="lwg-active.html#2367">2367</a>, <a href="lwg-active.html#2368">2368</a>, <a href="lwg-defects.html#2369">2369</a>, <a href="lwg-active.html#2370">2370</a>, <a href="lwg-defects.html#2371">2371</a>, <a href="lwg-active.html#2372">2372</a>, <a href="lwg-closed.html#2373">2373</a>, <a href="lwg-defects.html#2374">2374</a>, <a href="lwg-active.html#2375">2375</a>, <a href="lwg-defects.html#2377">2377</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2380">2380</a>, <a href="lwg-active.html#2381">2381</a>, <a href="lwg-closed.html#2382">2382</a>, <a href="lwg-active.html#2383">2383</a>, <a href="lwg-active.html#2384">2384</a>, <a href="lwg-active.html#2385">2385</a>, <a href="lwg-closed.html#2386">2386</a>, <a href="lwg-defects.html#2387">2387</a>, <a href="lwg-closed.html#2388">2388</a>, <a href="lwg-defects.html#2389">2389</a>.</li>
-<li>Changed the following 5 issues to Tentatively Ready (from Open): <a href="lwg-defects.html#2106">2106</a>, <a href="lwg-defects.html#2129">2129</a>, <a href="lwg-defects.html#2212">2212</a>, <a href="lwg-defects.html#2230">2230</a>, <a href="lwg-defects.html#2233">2233</a>.</li>
-</ul></li>
-</ul>
-</li>
-</ul>
-
-<h2>Closed Issues</h2>
-<hr>
-<h3><a name="2"></a>2. Auto_ptr conversions effects incorrect</h3>
-<p><b>Section:</b> X [auto.ptr.conv] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1997-12-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 1 in &quot;Effects&quot;, says &quot;Calls
-p-&gt;release()&quot; where it clearly must be &quot;Calls
-p.release()&quot;. (As it is, it seems to require using
-auto_ptr&lt;&gt;::operator-&gt; to refer to X::release, assuming that
-exists.)</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 20.10.4.3 [meta.unary.prop] paragraph 1 Effects from 
-&quot;Calls p-&gt;release()&quot; to &quot;Calls p.release()&quot;.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect: the proposed change is already found in the standard.
-[Originally classified as a defect, later reclassified.]</p>
-
-
-
-
-
-<hr>
-<h3><a name="4"></a>4. Basic_string size_type and difference_type should be implementation defined</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 1997-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Morristown we changed the size_type and difference_type typedefs
-for all the other containers to implementation defined with a
-reference to 23.2 [container.requirements].  This should probably also have been
-done for strings. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect.  [Originally classified as a defect, later
-reclassified.]  basic_string, unlike the other standard library
-template containers, is severely constrained by its use of
-char_traits. Those types are dictated by the traits class, and are far
-from implementation defined.</p>
-
-
-
-
-
-<hr>
-<h3><a name="6"></a>6. File position not an offset unimplementable</h3>
-<p><b>Section:</b> 27.5.4 [fpos] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1997-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fpos">issues</a> in [fpos].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Table 88, in I/O, is too strict; it's unimplementable on systems
-where a file position isn't just an offset. It also never says just
-what fpos&lt;&gt; is really supposed to be.  [Here's my summary, which
-Jerry agrees is more or less accurate. &quot;I think I now know what
-the class really is, at this point: it's a magic cookie that
-encapsulates an mbstate_t and a file position (possibly represented as
-an fpos_t), it has syntactic support for pointer-like arithmetic, and
-implementors are required to have real, not just syntactic, support
-for arithmetic.&quot; This isn't standardese, of course.] </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect. The LWG believes that the Standard is already clear,
-and that the above summary is what the Standard in effect says.</p>
-
-
-
-
-
-<hr>
-<h3><a name="10"></a>10. Codecvt&lt;&gt;::do unclear</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-01-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#19">19</a></p>
-<p><b>Discussion:</b></p>
-<p>Section 22.2.1.5.2 says that codecvt&lt;&gt;::do_in and do_out
-should return the value noconv if &quot;no conversion was
-needed&quot;. However, I don't see anything anywhere that defines what
-it means for a conversion to be needed or not needed. I can think of
-several circumstances where one might plausibly think that a
-conversion is not &quot;needed&quot;, but I don't know which one is
-intended here. </p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="12"></a>12. Way objects hold allocators unclear</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1998-02-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>I couldn't find a statement in the standard saying whether the allocator object held by
-a container is held as a copy of the constructor argument or whether a pointer of
-reference is maintained internal. There is an according statement for compare objects and
-how they are maintained by the associative containers, but I couldn't find anything
-regarding allocators. </p>
-
-<p>Did I overlook it? Is it an open issue or known defect? Or is it deliberately left
-unspecified? </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect. The LWG believes that the Standard is already
-clear.&nbsp; See 23.2 [container.requirements], paragraph 8.</p>
-
-
-
-
-
-<hr>
-<h3><a name="43"></a>43. Locale table correction</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Brendan Kehoe <b>Opened:</b> 1998-06-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#33">33</a></p>
-<p><b>Discussion:</b></p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="45"></a>45. Stringstreams read/write pointers initial position unclear</h3>
-<p><b>Section:</b> 27.8.4 [ostringstream] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matthias Mueller <b>Opened:</b> 1998-05-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostringstream">issues</a> in [ostringstream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In a comp.lang.c++.moderated Matthias Mueller wrote:</p>
-
-<p>&quot;We are not sure how to interpret the CD2 (see 27.3 [iostream.forward], 27.8.4.1 [ostringstream.cons], 27.8.2.1 [stringbuf.cons])
-with respect to the question as to what the correct initial positions
-of the write and&nbsp; read pointers of a stringstream should
-be.&quot;</p>
-
-<p>&quot;Is it the same to output two strings or to initialize the stringstream with the
-first and to output the second?&quot;</p>
-
-<p><i>[PJ Plauger, Bjarne Stroustrup, Randy Smithey, Sean Corfield, and
-Jerry Schwarz have all offered opinions; see reflector messages
-lib-6518, 6519, 6520, 6521, 6523, 6524.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes the Standard is correct as written. The behavior
-of stringstreams is consistent with fstreams, and there is a
-constructor which can be used to obtain the desired effect. This
-behavior is known to be different from strstreams.</p>
-
-
-
-
-
-<hr>
-<h3><a name="58"></a>58. Extracting a char from a wide-oriented stream</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.6.1.2.3 has member functions for extraction of signed char and
-unsigned char, both singly and as strings. However, it doesn't say
-what it means to extract a <tt>char</tt> from a
-<tt>basic_streambuf&lt;charT, Traits&gt;</tt>. </p>
-
-<p>basic_streambuf, after all, has no members to extract a char, so
-basic_istream must somehow convert from charT to signed char or
-unsigned char. The standard doesn't say how it is to perform that
-conversion. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>The Standard is correct as written.  There is no such extractor and
-this is the intent of the LWG.</p>
-
-
-
-
-<hr>
-<h3><a name="65"></a>65. Underspecification of strstreambuf::seekoff</h3>
-<p><b>Section:</b> D.7.1.3 [depr.strstreambuf.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.strstreambuf.virtuals">issues</a> in [depr.strstreambuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The standard says how this member function affects the current
-stream position. (<tt>gptr</tt> or <tt>pptr</tt>) However, it does not
-say how this member function affects the beginning and end of the
-get/put area. </p>
-
-<p>This is an issue when seekoff is used to position the get pointer
-beyond the end of the current read area. (Which is legal. This is
-implicit in the definition of <i>seekhigh</i> in D.7.1, paragraph 4.)
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agrees that seekoff() is underspecified, but does not wish
-to invest effort in this deprecated feature.</p>
-
-
-
-
-
-<hr>
-<h3><a name="67"></a>67. Setw useless for strings</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1998-07-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#25">25</a></p>
-<p><b>Discussion:</b></p>
-<p>In a comp.std.c++ posting Michel Michaud wrote: What
-should be output by: </p>
-
-<pre>   string text(&quot;Hello&quot;);
-   cout &lt;&lt; '[' &lt;&lt; setw(10) &lt;&lt; right &lt;&lt; text &lt;&lt; ']';
-</pre>
-
-<p>Shouldn't it be:</p>
-
-<pre>   [     Hello]</pre>
-
-<p>Another person replied: Actually, according to the FDIS, the width
-of the field should be the minimum of width and the length of the
-string, so the output shouldn't have any padding. I think that this is
-a typo, however, and that what is wanted is the maximum of the
-two. (As written, setw is useless for strings. If that had been the
-intent, one wouldn't expect them to have mentioned using its value.)
-</p>
-
-<p>It's worth pointing out that this is a recent correction anyway;
-IIRC, earlier versions of the draft forgot to mention formatting
-parameters whatsoever.</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="72"></a>72. Do_convert phantom member function</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#24">24</a></p>
-<p><b>Discussion:</b></p>
-<p>In 22.4.1.4 [locale.codecvt] par 3, and in 22.4.1.4.2 [locale.codecvt.virtuals] par 8, a nonexistent member function
-&quot;do_convert&quot; is mentioned. This member was replaced with
-&quot;do_in&quot; and &quot;do_out&quot;, the proper referents in the
-contexts above.</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="73"></a>73. <tt>is_open</tt> should be const</h3>
-<p><b>Section:</b> 27.9.1 [fstreams] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fstreams">issues</a> in [fstreams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Classes <tt>basic_ifstream</tt>, <tt>basic_ofstream</tt>, and
-<tt>basic_fstream</tt> all have a member function <tt>is_open</tt>. It
-should be a <tt>const</tt> member function, since it does nothing but
-call one of <tt>basic_filebuf</tt>'s const member functions. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect. This is a deliberate feature; const streams would be
-meaningless.</p>
-
-
-
-
-<hr>
-<h3><a name="77"></a>77. Valarray operator[] const returning value</h3>
-<p><b>Section:</b> 26.6.2.4 [valarray.access] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Levente Farkas <b>Opened:</b> 1998-09-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.access">issues</a> in [valarray.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#389">389</a></p>
-<p><b>Discussion:</b></p>
-<p>valarray:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; <tt>T operator[] (size_t) const;</tt><br/>
-<br/>
-why not <br/>
-<br/>
-&nbsp;&nbsp;&nbsp; <tt>const T&amp; operator[] (size_t) const;</tt><br/>
-<br/>
-as in vector ???<br/>
-<br/>
-One can't copy even from a const valarray eg:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; <tt>memcpy(ptr, &amp;v[0], v.size() * sizeof(double));<br/>
-</tt><br/>
-[I] find this bug in valarray is very difficult.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes that the interface was deliberately designed that
-way. That is what valarray was designed to do; that's where the
-&quot;value array&quot; name comes from. LWG members further comment
-that &quot;we don't want valarray to be a full STL container.&quot;
-26.6.2.4 [valarray.access] specifies properties that indicate &quot;an
-absence of aliasing&quot; for non-constant arrays; this allows
-optimizations, including special hardware optimizations, that are not
-otherwise possible. </p>
-
-
-
-
-
-<hr>
-<h3><a name="81"></a>81. Wrong declaration of slice operations</h3>
-<p><b>Section:</b> 26.6.5 [template.slice.array], 26.6.7 [template.gslice.array], 26.6.8 [template.mask.array], 26.6.9 [template.indirect.array] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.slice.array">issues</a> in [template.slice.array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Isn't the definition of copy constructor and assignment operators wrong?
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Instead of</p>
-
-<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; slice_array(const slice_array&amp;); 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; slice_array&amp; operator=(const slice_array&amp;);</pre>
-
-<p>IMHO they have to be</p>
-
-<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slice_array(const slice_array&lt;T&gt;&amp;); 
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;slice_array&amp; operator=(const slice_array&lt;T&gt;&amp;);</pre>
-
-<p>Same for gslice_array. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect. The Standard is correct as written. </p>
-
-
-
-
-<hr>
-<h3><a name="82"></a>82. Missing constant for set elements</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 5 specifies:</p>
-
-<blockquote><p>
-For set and multiset the value type is the same as the key type. For
-map and multimap it is equal to pair&lt;const Key, T&gt;.  
-</p></blockquote>
-
-<p>Strictly speaking, this is not correct because for set and multiset
-the value type is the same as the <b>constant</b> key type.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect. The Standard is correct as written; it uses a
-different mechanism (const &amp;) for <tt>set</tt> and
-<tt>multiset</tt>. See issue <a href="lwg-defects.html#103">103</a> for a related
-issue.</p>
-
-
-
-
-<hr>
-<h3><a name="84"></a>84. Ambiguity with string::insert()</h3>
-<p><b>Section:</b> 21.4.5 [string.access] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.access">issues</a> in [string.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>If I try</p>
-<pre>    s.insert(0,1,' ');</pre>
-
-<p>&nbsp; I get an nasty ambiguity. It might be</p>
-<pre>    s.insert((size_type)0,(size_type)1,(charT)' ');</pre>
-
-<p>which inserts 1 space character at position 0, or</p>
-<pre>    s.insert((char*)0,(size_type)1,(charT)' ')</pre>
-
-<p>which inserts 1 space character at iterator/address 0 (bingo!), or</p>
-<pre>    s.insert((char*)0, (InputIterator)1, (InputIterator)' ')</pre>
-
-<p>which normally inserts characters from iterator 1 to iterator '
-'. But according to 23.1.1.9 (the &quot;do the right thing&quot; fix)
-it is equivalent to the second. However, it is still ambiguous,
-because of course I mean the first!</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Not a defect. The LWG believes this is a &quot;genetic
-misfortune&quot; inherent in the design of string and thus not a
-defect in the Standard as such .</p>
-
-
-
-
-<hr>
-<h3><a name="85"></a>85. String char types</h3>
-<p><b>Section:</b> 21 [strings] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#strings">issues</a> in [strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The standard seems not to require that charT is equivalent to
-traits::char_type. So, what happens if charT is not equivalent to
-traits::char_type?</p>
-
-
-<p><b>Rationale:</b></p>
-<p>There is already wording in 21.2 [char.traits] paragraph 3 that
-requires them to be the same.</p>
-
-
-
-
-<hr>
-<h3><a name="87"></a>87. Error in description of string::compare()</h3>
-<p><b>Section:</b> 21.4.6.8 [string::swap] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::swap">issues</a> in [string::swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#5">5</a></p>
-<p><b>Discussion:</b></p>
-<p>The following compare() description is obviously a bug:</p>
-
-<pre>
-int compare(size_type pos, size_type n1, 
-            charT *s, size_type n2 = npos) const;
-</pre>
-
-<p>because without passing n2 it should compare up to the end of the
-string instead of comparing npos characters (which throws an
-exception) </p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="88"></a>88. Inconsistency between string::insert() and string::append()</h3>
-<p><b>Section:</b> 21.4.6.4 [string::insert], 21.4.6.2 [string::append] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::insert">issues</a> in [string::insert].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Why does </p>
-<pre>  template&lt;class InputIterator&gt; 
-       basic_string&amp; append(InputIterator first, InputIterator last);</pre>
-
-<p>return a string, while</p>
-<pre>  template&lt;class InputIterator&gt; 
-       void insert(iterator p, InputIterator first, InputIterator last);</pre>
-
-<p>returns nothing ?</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes this stylistic inconsistency is not sufficiently 
-serious to constitute a defect.</p>
-
-
-
-
-<hr>
-<h3><a name="89"></a>89. Missing throw specification for string::insert() and string::replace()</h3>
-<p><b>Section:</b> 21.4.6.4 [string::insert], 21.4.6.6 [string::replace] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::insert">issues</a> in [string::insert].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#83">83</a></p>
-<p><b>Discussion:</b></p>
-<p>All insert() and replace() members for strings with an iterator as
-first argument lack a throw specification. The throw
-specification should probably be: length_error if size exceeds
-maximum. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Considered a duplicate because it will be solved by the resolution
-of issue <a href="lwg-defects.html#83">83</a>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="93"></a>93. Incomplete Valarray Subset Definitions</h3>
-<p><b>Section:</b> 26.6 [numarray] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numarray">issues</a> in [numarray].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>You can easily create subsets, but you can't easily combine them
-with other subsets.  Unfortunately, you almost always needs an
-explicit type conversion to valarray. This is because the standard
-does not specify that valarray subsets provide the same operations as
-valarrays. </p>
-
-<p>For example, to multiply two subsets and assign the result to a third subset, you can't
-write the following:</p>
-
-<pre>va[slice(0,4,3)] = va[slice(1,4,3)] * va[slice(2,4,3)];</pre>
-
-<p>Instead, you have to code as follows:</p>
-
-<pre>va[slice(0,4,3)] = static_cast&lt;valarray&lt;double&gt; &gt;(va[slice(1,4,3)]) * 
-                   static_cast&lt;valarray&lt;double&gt; &gt;(va[slice(2,4,3)]);</pre>
-
-<p>This is tedious and error-prone. Even worse, it costs performance because each cast
-creates a temporary objects, which could be avoided without the cast. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Extend all valarray subset types so that they offer all valarray operations.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect in the Standard; it is a request for an extension.</p>
-
-
-
-
-<hr>
-<h3><a name="94"></a>94. May library implementors add template parameters to Standard Library classes?</h3>
-<p><b>Section:</b> 17.6.5 [conforming] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-01-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#conforming">issues</a> in [conforming].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Is it a permitted extension for library implementors to add template parameters to
-standard library classes, provided that those extra parameters have defaults? For example,
-instead of defining <tt>template &lt;class T, class Alloc = allocator&lt;T&gt; &gt; class
-vector;</tt> defining it as <tt>template &lt;class T, class Alloc = allocator&lt;T&gt;,
-int N = 1&gt; class vector;</tt> </p>
-
-<p>The standard may well already allow this (I can't think of any way that this extension
-could break a conforming program, considering that users are not permitted to
-forward-declare standard library components), but it ought to be explicitly permitted or
-forbidden. </p>
-
-<p>comment from Steve Cleary via comp.std.c++:</p>
-<blockquote>
-<p>I disagree [with the proposed resolution] for the following reason:
-consider user library code with template template parameters. For
-example, a user library object may be templated on the type of
-underlying sequence storage to use (deque/list/vector), since these
-classes all take the same number and type of template parameters; this
-would allow the user to determine the performance tradeoffs of the
-user library object. A similar example is a user library object
-templated on the type of underlying set storage (set/multiset) or map
-storage (map/multimap), which would allow users to change (within
-reason) the semantic meanings of operations on that object.</p>
-<p>I think that additional template parameters should be forbidden in
-the Standard classes. Library writers don't lose any expressive power,
-and can still offer extensions because additional template parameters
-may be provided by a non-Standard implementation class:</p>
-<pre> 
-   template &lt;class T, class Allocator = allocator&lt;T&gt;, int N = 1&gt;
-   class __vector
-   { ... };
-   template &lt;class T, class Allocator = allocator&lt;T&gt; &gt;
-   class vector: public __vector&lt;T, Allocator&gt;
-   { ... };
-</pre>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a new subclause [presumably 17.4.4.9] following 17.6.5.12 [res.on.exception.handling]:</p>
-
-<blockquote>
-  <p>17.4.4.9 Template Parameters</p> <p>A specialization of a
-  template class described in the C++ Standard Library behaves the
-  same as if the implementation declares no additional template
-  parameters.</p> <p>Footnote: Additional template parameters with
-  default values are thus permitted.</p>
-</blockquote>
-
-<p>Add &quot;template parameters&quot; to the list of subclauses at
-the end of 17.6.5 [conforming] paragraph 1.</p>
-
-<p><i>[Kona: The LWG agreed the standard needs clarification. After
-discussion with John Spicer, it seems added template parameters can be
-detected by a program using template-template parameters. A straw vote
-- &quot;should implementors be allowed to add template
-parameters?&quot; found no consensus ; 5 - yes, 7 - no.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-There is no ambiguity; the standard is clear as written.  Library
-implementors are not permitted to add template parameters to standard
-library classes.  This does not fall under the &quot;as if&quot; rule,
-so it would be permitted only if the standard gave explicit license
-for implementors to do this.  This would require a change in the 
-standard.
-</p>
-
-<p>
-The LWG decided against making this change, because it would break
-user code involving template template parameters or specializations
-of standard library class templates.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="95"></a>95. Members added by the implementation</h3>
-<p><b>Section:</b> 17.6.5.5 [member.functions] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#member.functions">issues</a> in [member.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 17.3.4.4/2 vs 17.3.4.7/0 there is a hole; an implementation could add virtual
-members a base class and break user derived classes.</p>
-
-<p>Example: </p>
-
-<blockquote>
-  <pre>// implementation code:
-struct _Base { // _Base is in the implementer namespace
-        virtual void foo ();
-};
-class vector : _Base // deriving from a class is allowed
-{ ... };
-
-// user code:
-class vector_checking : public vector 
-{
-        void foo (); // don't want to override _Base::foo () as the 
-                     // user doesn't know about _Base::foo ()
-};</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Clarify the wording to make the example illegal.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect in the Standard.&nbsp; The example is already
-illegal.&nbsp; See 17.6.5.5 [member.functions] paragraph 2.</p>
-
-
-
-
-<hr>
-<h3><a name="96"></a>96. Vector&lt;bool&gt; is not a container</h3>
-<p><b>Section:</b> 23.3.6 [vector] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><tt>vector&lt;bool&gt;</tt> is not a container as its reference and
-pointer types are not references and pointers. </p>
-
-<p>Also it forces everyone to have a space optimization instead of a
-speed one.</p>
-
-<p><b>See also:</b> 99-0008 == N1185 Vector&lt;bool&gt; is
-Nonconforming, Forces Optimization Choice.</p>
-
-<p><i>[In Santa Cruz the LWG felt that this was Not A Defect.]</i></p>
-
-
-<p><i>[In Dublin many present felt that failure to meet Container
-requirements was a defect. There was disagreement as to whether
-or not the optimization requirements constituted a defect.]</i></p>
-
-
-<p><i>[The LWG looked at the following resolutions in some detail:
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; * Not A Defect.<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; * Add a note explaining that vector&lt;bool&gt; does not meet
-Container requirements.<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; * Remove vector&lt;bool&gt;.<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; * Add a new category of container requirements which
-vector&lt;bool&gt; would meet.<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; * Rename vector&lt;bool&gt;.<br/>
-<br/>
-No alternative had strong, wide-spread, support and every alternative
-had at least one &quot;over my dead body&quot; response.<br/>
-<br/>
-There was also mention of a transition scheme something like (1) add
-vector_bool and deprecate vector&lt;bool&gt; in the next standard. (2)
-Remove vector&lt;bool&gt; in the following standard.]</i></p>
-
-
-<p><i>[Modifying container requirements to permit returning proxies
-(thus allowing container requirements conforming vector&lt;bool&gt;)
-was also discussed.]</i></p>
-
-
-<p><i>[It was also noted that there is a partial but ugly workaround in
-that vector&lt;bool&gt; may be further specialized with a customer
-allocator.]</i></p>
-
-
-<p><i>[Kona: Herb Sutter presented his paper J16/99-0035==WG21/N1211,
-<tt>vector&lt;bool&gt;</tt>: More Problems, Better Solutions. Much discussion
-of a two step approach: a) deprecate, b) provide replacement under a
-new name.  LWG straw vote on that: 1-favor, 11-could live with, 2-over
-my dead body.  This resolution was mentioned in the LWG report to the
-full committee, where several additional committee members indicated
-over-my-dead-body positions.]</i></p>
-
-
-<p>Discussed at Lillehammer.  General agreement that we should
-  deprecate <tt>vector&lt;bool&gt;</tt> and introduce this functionality under
-  a different name, e.g. <tt>bit_vector</tt>.  This might make it possible to
-  remove the <tt>vector&lt;bool&gt;</tt> specialization in the standard that comes
-  after C++0x. There was also a suggestion that
-  in C++0x we could additional say that it's implementation defined
-  whether <tt>vector&lt;bool&gt;</tt> refers to the specialization or to the
-  primary template, but there wasn't general agreement that this was a
-  good idea.</p>
-
-<p>We need a paper for the new <tt>bit_vector</tt> class.</p>
-
-<p><i>[
-Batavia:
-]</i></p>
-
-<blockquote><p>
-The LWG feels we need something closer to SGI's <tt>bitvector</tt> to ease migration
-from <tt>vector&lt;bool&gt;</tt>.  Although some of the funcitonality from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2050.pdf">N2050</a>
-could well be used in such a template.  The concern is easing the API migration for those
-users who want to continue using a bit-packed container.  Alan and Beman to work.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>vector&lt;bool&gt;</tt> is now a conforming container under the revised terms of C++0x,
-which supports containers of proxies.
-</p>
-<p>
-Recommend NAD.
-</p>
-<p>
-Two issues remain:
-</p>
-<p>
-i/ premature optimization in the specification.
-There is still some sentiment that deprecation is the correct way to go,
-although it is still not clear what it would mean to deprecate a single
-specialization of a template.
-</p>
-<p>
-Recommend: Create a new issue for the discussion, leave as Open.
-</p>
-<p>
-ii/ Request for a new bitvector class to guarantee the optimization, perhaps
-with a better tuned interface.
-</p>
-<p>
-This is a clear extension request that may be handled via a future TR.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We note that most of this issue has become moot over time,
-and agree with Alisdair's recommendations.
-Move to NAD Future for reconsideration of part (ii).
-</p></blockquote>
-
-<p><i>[
-2009-07-29 Alisdair reopens:
-]</i></p>
-
-
-<blockquote>
-<p>
-This infamous issue was closed as NAD Future when concepts introduced
-support for proxy iterators, so the only remaining requirement was to
-provide a better type to support bitsets of dynamic length.  I fear we
-must re-open this issue until the post-concept form of iterators is
-available, and hopefully will support the necessary proxy functionality
-to allow us to close this issue as NAD.
-</p>
-
-<p>
-I recommend we spawn a separate issue (<a href="lwg-active.html#1184">1184</a>) requesting a dynamic length bitset
-and pre-emptively file it as NAD Future.  It is difficult to resolve #96
-when it effectively contains two separate sub-issues.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD, and give rationale.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We now have:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2050.pdf">N2050</a>
-and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2160.html">N2160</a>.
-</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-We want to support proxy iterators but that is going to be separate
-work. Don't want to see this issue come back in these kinds of terms.
-We're interested in a separate container, and proxy iterators, but both
-of those are separate issues.
-</p>
-<p>
-We've looked at a lot of ways to fix this that would be close to this,
-but those things would break existing code. Attempts to fix this
-directly have not been tractable, and removing it has not been
-tractable. Therefore we are closing.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="97"></a>97. Insert inconsistent definition</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><tt>insert(iterator, const value_type&amp;)</tt> is defined both on
-sequences and on set, with unrelated semantics: insert here (in
-sequences), and insert with hint (in associative containers). They
-should have different names (B.S. says: do not abuse overloading).</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect in the Standard. It is a genetic misfortune of
-the design, for better or for worse.</p>
-
-
-
-
-<hr>
-<h3><a name="99"></a>99. Reverse_iterator comparisons completely wrong</h3>
-<p><b>Section:</b> 24.5.1.3.13 [reverse.iter.op==] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The &lt;, &gt;, &lt;=, &gt;= comparison operator are wrong: they
-return the opposite of what they should.</p>
-
-<p>Note: same problem in CD2, these were not even defined in CD1.  SGI
-STL code is correct; this problem is known since the Morristown
-meeting but there it was too late</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect in the Standard. A careful reading shows the Standard is correct
-as written. A review of several implementations show that they implement
-exactly what the Standard says.</p>
-
-
-
-
-<hr>
-<h3><a name="100"></a>100. Insert iterators/ostream_iterators overconstrained</h3>
-<p><b>Section:</b> 24.5.2 [insert.iterators], 24.6.4 [ostreambuf.iterator] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#insert.iterators">issues</a> in [insert.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Overspecified For an insert iterator it, the expression *it is
-required to return a reference to it. This is a simple possible
-implementation, but as the SGI STL documentation says, not the only
-one, and the user should not assume that this is the case.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes this causes no harm and is not a defect in the
-standard. The only example anyone could come up with caused some
-incorrect code to work, rather than the other way around.</p>
-
-
-
-
-
-<hr>
-<h3><a name="101"></a>101. No way to free storage for vector and deque</h3>
-<p><b>Section:</b> 23.3.6 [vector], 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Reserve can not free storage, unlike string::reserve</p>
-
-<p><i>[
-2010-02-13 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue has been revisited and addressed (<a href="lwg-defects.html#755">755</a>, <a href="lwg-defects.html#850">850</a>). This issues should be reclassified to NAD Editorial to reflect
-this action.
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect in the Standard. The LWG has considered this
-issue in the past and sees no need to change the Standard. Deque has
-no reserve() member function. For vector, shrink-to-fit can be
-expressed in a single line of code (where <tt>v</tt> is
-<tt>vector&lt;T&gt;</tt>):
-</p>
-
-<blockquote>
-  <p><tt>vector&lt;T&gt;(v).swap(v);&nbsp; // shrink-to-fit v</tt></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="102"></a>102. Bug in insert range in associative containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#264">264</a></p>
-<p><b>Discussion:</b></p>
-<p>Table 69 of Containers say that a.insert(i,j) is linear if [i, j) is ordered. It seems
-impossible to implement, as it means that if [i, j) = [x], insert in an associative
-container is O(1)!</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>N+log (size()) if [i,j) is sorted according to value_comp()</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Subsumed by issue <a href="lwg-defects.html#264">264</a>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="104"></a>104. Description of basic_string::operator[] is unclear</h3>
-<p><b>Section:</b> 21.4.4 [string.capacity] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.capacity">issues</a> in [string.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>It is not clear that undefined behavior applies when pos == size ()
-for the non const version.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Rewrite as: Otherwise, if pos &gt; size () or pos == size () and
-the non-const version is used, then the behavior is undefined.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The Standard is correct. The proposed resolution already appears in
-the Standard.</p>
-
-
-
-
-<hr>
-<h3><a name="105"></a>105. fstream ctors argument types desired</h3>
-<p><b>Section:</b> 27.9 [file.streams] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#454">454</a></p>
-<p><b>Discussion:</b></p>
-
-
-<p>fstream ctors take a const char* instead of string.<br/>
-fstream ctors can't take wchar_t</p>
-
-<p>An extension to add a const wchar_t* to fstream would make the
-implementation non conforming.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect in the Standard. It might be an
-interesting extension for the next Standard. </p>
-
-
-
-
-<hr>
-<h3><a name="107"></a>107. Valarray constructor is strange</h3>
-<p><b>Section:</b> 26.6.2 [template.valarray] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.valarray">issues</a> in [template.valarray].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The order of the arguments is (elem, size) instead of the normal
-(size, elem) in the rest of the library. Since elem often has an
-integral or floating point type, both types are convertible to each
-other and reversing them leads to a well formed program.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Inverting the arguments could silently break programs. Introduce
-the two signatures (const T&amp;, size_t) and (size_t, const T&amp;),
-but make the one we do not want private so errors result in a
-diagnosed access violation. This technique can also be applied to STL
-containers.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes that while the order of arguments is unfortunate,
-it does not constitute a defect in the standard. The LWG believes that
-the proposed solution will not work for valarray&lt;size_t&gt; and
-perhaps other cases.</p>
-
-
-
-
-<hr>
-<h3><a name="111"></a>111. <tt>istreambuf_iterator::equal</tt> overspecified, inefficient</h3>
-<p><b>Section:</b> 24.6.3.5 [istreambuf.iterator::equal] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istreambuf.iterator::equal">issues</a> in [istreambuf.iterator::equal].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The member <tt>istreambuf_iterator&lt;&gt;::equal</tt> is specified to be
-unnecessarily inefficient. While this does not affect the efficiency
-of conforming implementations of iostreams, because they can
-&quot;reach into&quot; the iterators and bypass this function, it does
-affect users who use <tt>istreambuf_iterators</tt>. </p>
-
-<p>The inefficiency results from a too-scrupulous definition, which
-requires a &quot;true&quot; result if neither iterator is at eof. In
-practice these iterators can only usefully be compared with the
-&quot;eof&quot; value, so the extra test implied provides no benefit,
-but slows down users' code. </p>
-
-<p>The solution is to weaken the requirement on the function to return
-true only if both iterators are at eof. </p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Reopened by Alisdair.
-</p></blockquote>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Recommend NAD. The proposed wording would violate the axioms of
-concept requirement <tt>EqualityComparable</tt> axioms as part of concept <tt>InputIterator</tt>
-and more specifically it would violate the explicit wording of
-24.2.3 [input.iterators]/7:
-</p>
-
-<blockquote><p>
-If two iterators <tt>a</tt> and <tt>b</tt> of the same type are equal, then either <tt>a</tt>
-and <tt>b</tt> are both dereferenceable or else neither is dereferenceable.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Agree NAD.
-</p></blockquote>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace 24.6.3.5 [istreambuf.iterator::equal], paragraph 1, </p>
-
-<blockquote>
-  <p>-1- <i>Returns</i>: true if and only if both iterators are at end-of-stream, or neither is at
-  end-of-stream, regardless of what streambuf object they use. </p>
-</blockquote>
-
-<p>with</p>
-
-<blockquote>
-  <p>-1- <i>Returns</i>: true if and only if both iterators are at
-  end-of-stream, regardless of what streambuf object they use. </p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>It is not clear that this is a genuine defect. Additionally, the
-LWG was reluctant to make a change that would result in 
-<tt>operator==</tt> not being a equivalence relation. One consequence of
-this change is that an algorithm that's passed the range <tt>[i, i)</tt>
-would no longer treat it as an empty range.</p>
-
-
-
-
-
-<hr>
-<h3><a name="113"></a>113. Missing/extra iostream sync semantics</h3>
-<p><b>Section:</b> 27.7.2.1 [istream], 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1998-10-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream">issues</a> in [istream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 27.6.1.1, class basic_istream has a member function sync, described in 27.6.1.3,
-paragraph 36. </p>
-
-<p>Following the chain of definitions, I find that the various sync functions have defined
-semantics for output streams, but no semantics for input streams. On the other hand,
-basic_ostream has no sync function. </p>
-
-<p>The sync function should at minimum be added to basic_ostream, for internal
-consistency. </p>
-
-<p>A larger question is whether sync should have assigned semantics for input streams. </p>
-
-<p>Classic iostreams said streambuf::sync flushes pending output and attempts to return
-unread input characters to the source. It is a protected member function. The filebuf
-version (which is public) has that behavior (it backs up the read pointer). Class
-strstreambuf does not override streambuf::sync, and so sync can't be called on a
-strstream. </p>
-
-<p>If we can add corresponding semantics to the various sync functions, we should. If not,
-we should remove sync from basic_istream.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>A sync function is not needed in basic_ostream because the flush function provides the
-desired functionality.</p>
-
-<p>As for the other points, the LWG finds the standard correct as written.</p>
-
-
-
-
-
-<hr>
-<h3><a name="116"></a>116. bitset cannot be constructed with a const char*</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-11-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#778">778</a></p>
-<p><b>Discussion:</b></p>
-
-
-
-<p>The following code does not compile with the EDG compiler:</p>
-
-<blockquote>
-  <pre>#include &lt;bitset&gt;
-using namespace std;
-bitset&lt;32&gt; b(&quot;111111111&quot;);</pre>
-</blockquote>
-
-<p>If you cast the ctor argument to a string, i.e.:</p>
-
-<blockquote>
-  <pre>bitset&lt;32&gt; b(string(&quot;111111111&quot;));</pre>
-</blockquote>
-
-<p>then it will compile. The reason is that bitset has the following templatized
-constructor:</p>
-
-<blockquote>
-  <pre>template &lt;class charT, class traits, class Allocator&gt;
-explicit bitset (const basic_string&lt;charT, traits, Allocator&gt;&amp; str, ...);</pre>
-</blockquote>
-
-<p>According to the compiler vendor, Steve Adamcyk at EDG, the user
-cannot pass this template constructor a <tt>const char*</tt> and
-expect a conversion to <tt>basic_string</tt>.  The reason is
-&quot;When you have a template constructor, it can get used in
-contexts where type deduction can be done. Type deduction basically
-comes up with exact matches, not ones involving conversions.&quot;
-</p>
-
-<p>I don't think the intention when this constructor became
-templatized was for construction from a <tt>const char*</tt> to no
-longer work.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to 20.6 [template.bitset] a bitset constructor declaration</p>
-
-<blockquote>
-  <pre>explicit bitset(const char*);</pre>
-</blockquote>
-
-<p>and in Section 20.6.1 [bitset.cons] add:</p>
-
-<blockquote>
-  <pre>explicit bitset(const char* str);</pre>
-  <p>Effects: <br/>
-  &nbsp;&nbsp;&nbsp; Calls <tt>bitset((string) str, 0, string::npos);</tt></p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Although the problem is real, the standard is designed that way so
-it is not a defect.  Education is the immediate workaround. A future
-standard may wish to consider the Proposed Resolution as an
-extension.</p>
-
-
-
-
-
-<hr>
-<h3><a name="121"></a>121. Detailed definition for ctype&lt;wchar_t&gt; specialization</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 22.1.1.1.1 has the following listed in Table 51: ctype&lt;char&gt; ,
-ctype&lt;wchar_t&gt;. </p>
-
-<p>Also Section 22.4.1.1 [locale.ctype] says: </p>
-
-<blockquote>
-  <p>The instantiations required in Table 51 (22.1.1.1.1) namely ctype&lt;char&gt; and
-  ctype&lt;wchar_t&gt; , implement character classing appropriate to the implementation's
-  native character set. </p>
-</blockquote>
-
-<p>However, Section 22.4.1.3 [facet.ctype.special]
-only has a detailed description of the ctype&lt;char&gt; specialization, not the
-ctype&lt;wchar_t&gt; specialization. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the ctype&lt;wchar_t&gt; detailed class description to Section 
-22.4.1.3 [facet.ctype.special]. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Specialization for wchar_t is not needed since the default is acceptable.</p>
-
-
-
-
-
-<hr>
-<h3><a name="128"></a>128. Need open_mode() function for file stream, string streams, file buffers, and string&nbsp; buffers</h3>
-<p><b>Section:</b> 27.8 [string.streams], 27.9 [file.streams] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-02-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.streams">issues</a> in [string.streams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The following question came from Thorsten Herlemann:</p>
-
-<blockquote>
-  <p>You can set a mode when constructing or opening a file-stream or
-  filebuf, e.g.  ios::in, ios::out, ios::binary, ... But how can I get
-  that mode later on, e.g. in my own operator &lt;&lt; or operator
-  &gt;&gt; or when I want to check whether a file-stream or
-  file-buffer object passed as parameter is opened for input or output
-  or binary? Is there no possibility? Is this a design-error in the
-  standard C++ library? </p>
-</blockquote>
-
-<p>It is indeed impossible to find out what a stream's or stream
-buffer's open mode is, and without that knowledge you don't know
-how certain operations behave. Just think of the append mode. </p>
-
-<p>Both streams and stream buffers should have a <tt>mode()</tt> function that returns the
-current open mode setting. </p>
-
-<p><i>[
-post Bellevue:  Alisdair requested to re-Open.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Neither Howard nor Bill has received a customer request for this.
-</p>
-<p>
-No consensus for change. The programmer can save this information to the side.
-</p>
-<p>
-Moved to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>For stream buffers, add a function to the base class as a non-virtual function
-qualified as const to 27.6.3 [streambuf]:</p>
-
-<p>&nbsp;&nbsp;&nbsp;&nbsp;<tt>openmode mode() const</tt>;</p>
-
-<p><b>&nbsp;&nbsp;&nbsp; Returns</b> the current open mode.</p>
-
-<p>With streams, I'm not sure what to suggest. In principle, the mode
-could already be returned by <tt>ios_base</tt>, but the mode is only
-initialized for file and string stream objects, unless I'm overlooking
-anything. For this reason it should be added to the most derived
-stream classes. Alternatively, it could be added to <tt>basic_ios</tt>
-and would be default initialized in <tt>basic_ios&lt;&gt;::init()</tt>.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This might be an interesting extension for some future, but it is
-not a defect in the current standard. The Proposed Resolution is
-retained for future reference.</p>
-
-
-
-
-
-<hr>
-<h3><a name="131"></a>131. list::splice throws nothing</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>What happens if a splice operation causes the size() of a list to grow 
-beyond max_size()?</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Size() cannot grow beyond max_size().&nbsp; </p>
-
-
-
-
-
-<hr>
-<h3><a name="135"></a>135. basic_iostream doubly initialized</h3>
-<p><b>Section:</b> 27.7.2.5.1 [iostream.cons] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>-1- Effects Constructs an object of class basic_iostream, assigning
-initial values to the base classes by calling
-basic_istream&lt;charT,traits&gt;(sb) (lib.istream) and
-basic_ostream&lt;charT,traits&gt;(sb) (lib.ostream)</p>
-
-<p>The called for basic_istream and basic_ostream constructors call
-init(sb). This means that the basic_iostream's virtual base class is
-initialized twice.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.6.1.5.1, paragraph 1 to:</p>
-
-<p>-1- Effects Constructs an object of class basic_iostream, assigning
-initial values to the base classes by calling
-basic_istream&lt;charT,traits&gt;(sb) (lib.istream).</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agreed that the <tt> init()</tt> function is called
-twice, but said that this is harmless and so not a defect in the
-standard.</p>
-
-
-
-
-<hr>
-<h3><a name="138"></a>138. Class <tt>ctype_byname&lt;char&gt;</tt> redundant and misleading</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-03-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 22.4.1.4 [locale.codecvt] specifies that
-<tt>ctype_byname&lt;char&gt;</tt> must be a specialization of the <tt>ctype_byname</tt>
-template.</p>
-
-<p>It is common practice in the standard that specializations of class templates are only
-mentioned where the interface of the specialization deviates from the interface of the
-template that it is a specialization of. Otherwise, the fact whether or not a required
-instantiation is an actual instantiation or a specialization is left open as an
-implementation detail. </p>
-
-<p>Clause 22.2.1.4 deviates from that practice and for that reason is misleading. The
-fact, that <tt>ctype_byname&lt;char&gt;</tt> is specified as a specialization suggests that there
-must be something &quot;special&quot; about it, but it has the exact same interface as the
-<tt>ctype_byname</tt> template. Clause 22.2.1.4 does not have any explanatory value, is at best
-redundant, at worst misleading - unless I am missing anything. </p>
-
-<p>Naturally, an implementation will most likely implement <tt>ctype_byname&lt;char&gt;</tt> as a
-specialization, because the base class <tt>ctype&lt;char&gt;</tt> is a specialization with an
-interface different from the <tt>ctype</tt> template, but that's an implementation detail and need
-not be mentioned in the standard. </p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Reopened by Alisdair.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p> The standard as written is mildly misleading, but the correct fix
-is to deal with the underlying problem in the <tt>ctype_byname</tt> base class,
-not in the specialization. See issue <a href="lwg-defects.html#228">228</a>.</p>
-
-
-
-
-<hr>
-<h3><a name="140"></a>140. map&lt;Key, T&gt;::value_type does not satisfy the assignable requirement</h3>
-<p><b>Section:</b> 23.4.4 [map] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Mark Mitchell <b>Opened:</b> 1999-04-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map">issues</a> in [map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote>
-  <p>23.2 [container.requirements]<br/>
-  <br/>
-  expression&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return type
-  &nbsp;&nbsp;&nbsp;&nbsp; pre/post-condition<br/>
-  -------------&nbsp;&nbsp;&nbsp;&nbsp; ----------- &nbsp;&nbsp;&nbsp;&nbsp;
-  -------------------<br/>
-  X::value_type&nbsp;&nbsp;&nbsp; T
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-  T is assignable<br/>
-  <br/>
-  23.4.4 [map]<br/>
-  <br/>
-  A map satisfies all the requirements of a container.<br/>
-  <br/>
-  For a map&lt;Key, T&gt; ... the value_type is pair&lt;const Key, T&gt;.</p>
-</blockquote>
-
-<p>There's a contradiction here. In particular, `pair&lt;const Key,
-T&gt;' is not assignable; the `const Key' cannot be assigned
-to. So,&nbsp; map&lt;Key, T&gt;::value_type does not satisfy the
-assignable requirement imposed by a container.</p>
-
-<p><i>[See issue <a href="lwg-defects.html#103">103</a> for the slightly related issue of
-modification of set keys.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes that the standard is inconsistent, but that this
-is a design problem rather than a strict defect. May wish to
-reconsider for the next standard.</p>
-
-
-
-
-<hr>
-<h3><a name="143"></a>143. C .h header wording unclear</h3>
-<p><b>Section:</b> D.5 [depr.c.headers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Christophe de Dinechin <b>Opened:</b> 1999-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>[depr.c.headers] paragraph 2 reads:</p>
-
-<blockquote>
-
-<p>Each C header, whose name has the form name.h, behaves as if each
-name placed in the Standard library namespace by the corresponding
-cname header is also placed within the namespace scope of the
-namespace std and is followed by an explicit using-declaration
-(_namespace.udecl_)</p>
-
-</blockquote>
-
-<p>I think it should mention the global name space somewhere...&nbsp;
-Currently, it indicates that name placed in std is also placed in
-std...</p>
-
-<p>I don't know what is the correct wording. For instance, if struct
-tm is defined in time.h, ctime declares std::tm. However, the current
-wording seems ambiguous regarding which of the following would occur
-for use of both ctime and time.h:</p>
-
-<blockquote>
-  <pre>// version 1:
-namespace std {
-        struct tm { ... };
-}
-using std::tm;
-
-// version 2:
-struct tm { ... };
-namespace std {
-        using ::tm;
-}
-
-// version 3:
-struct tm { ... };
-namespace std {
-        struct tm { ... };
-}</pre>
-</blockquote>
-
-<p>I think version 1 is intended.</p>
-
-<p><i>[Kona: The LWG agreed that the wording is not clear. It also
-agreed that version 1 is intended, version 2 is not equivalent to
-version 1, and version 3 is clearly not intended. The example below
-was constructed by Nathan Myers to illustrate why version 2 is not
-equivalent to version 1.</i></p>
-
-<p><i>Although not equivalent, the LWG is unsure if (2) is enough of
-a problem to be prohibited. Points discussed in favor of allowing
-(2):</i></p>
-
-<blockquote>
-  <ul>
-    <li><i>It may be a convenience to implementors.</i></li>
-    <li><i>The only cases that fail are structs, of which the C library
-      contains only a few.</i></li>
-  </ul>
-</blockquote>
-
-<p><i>]</i></p>
-
-<p><b>Example:</b></p>
-
-<blockquote>
-
-<pre>#include &lt;time.h&gt;
-#include &lt;utility&gt;
-
-int main() {
-    std::tm * t;
-    make_pair( t, t ); // okay with version 1 due to Koenig lookup
-                       // fails with version 2; make_pair not found
-    return 0;
-}</pre>
-
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Replace D.5 [depr.c.headers] paragraph 2 with:</p>
-
-<blockquote>
-
-<p> Each C header, whose name has the form name.h, behaves as if each
-name placed in the Standard library namespace by the corresponding
-cname header is also placed within the namespace scope of the
-namespace std by name.h and is followed by an explicit
-using-declaration (_namespace.udecl_) in global scope.</p>
-
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p> The current wording in the standard is the result of a difficult
-compromise that averted delay of the standard. Based on discussions
-in Tokyo it is clear that there is no still no consensus on stricter
-wording, so the issue has been closed. It is suggested that users not
-write code that depends on Koenig lookup of C library functions.</p>
-
-
-
-
-<hr>
-<h3><a name="145"></a>145. adjustfield lacks default value</h3>
-<p><b>Section:</b> 27.5.5.2 [basic.ios.cons] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-05-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.cons">issues</a> in [basic.ios.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>There is no initial value for the adjustfield defined, although
-many people believe that the default adjustment were right. This is a
-common misunderstanding. The standard only defines that, if no
-adjustment is specified, all the predefined inserters must add fill
-characters before the actual value, which is &quot;as if&quot; the
-right flag were set. The flag itself need not be set.</p>
-
-<p>When you implement a user-defined inserter you cannot rely on right
-being the default setting for the adjustfield. Instead, you must be
-prepared to find none of the flags set and must keep in mind that in
-this case you should make your inserter behave &quot;as if&quot; the
-right flag were set. This is surprising to many people and complicates
-matters more than necessary.</p>
-
-<p>Unless there is a good reason why the adjustfield should not be
-initialized I would suggest to give it the default value that
-everybody expects anyway.</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This is not a defect. It is deliberate that the default is no bits
-set. Consider Arabic or Hebrew, for example. See 22.4.2.2.2 [facet.num.put.virtuals] paragraph 19, Table 61 - Fill padding.</p>
-
-
-
-
-<hr>
-<h3><a name="157"></a>157. Meaningless error handling for <tt>pword()</tt> and <tt>iword()</tt></h3>
-<p><b>Section:</b> 27.5.3.5 [ios.base.storage] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base.storage">issues</a> in [ios.base.storage].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#41">41</a></p>
-<p><b>Discussion:</b></p>
-<p>According to paragraphs 2 and 4 of 27.5.3.5 [ios.base.storage], the
-functions <tt>iword()</tt> and <tt>pword()</tt> &quot;set the
-<tt>badbit</tt> (which might throw an exception)&quot; on
-failure. ... but what does it mean for <tt>ios_base</tt> to set the
-<tt>badbit</tt>? The state facilities of the IOStream library are
-defined in <tt>basic_ios</tt>, a derived class! It would be possible
-to attempt a down cast but then it would be necessary to know the
-character type used...</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="162"></a>162. Really &quot;formatted input functions&quot;?</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#60">60</a></p>
-<p><b>Discussion:</b></p>
-<p>It appears to be somewhat nonsensical to consider the functions
-defined in the paragraphs 1 to 5 to be &quot;Formatted input
-function&quot; but since these functions are defined in a section
-labeled &quot;Formatted input functions&quot; it is unclear to me
-whether these operators are considered formatted input functions which
-have to conform to the &quot;common requirements&quot; from 27.7.2.2.1 [istream.formatted.reqmts]: If this is the case, all manipulators, not just
-<tt>ws</tt>, would skip whitespace unless <tt>noskipws</tt> is set
-(... but setting <tt>noskipws</tt> using the manipulator syntax would
-also skip whitespace :-)</p>
-
-<p>See also issue <a href="lwg-closed.html#166">166</a> for the same problem in formatted
-output</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="163"></a>163. Return of <tt>gcount()</tt> after a call to <tt>gcount</tt></h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#60">60</a></p>
-<p><b>Discussion:</b></p>
-<p>It is not clear which functions are to be considered unformatted
-input functions. As written, it seems that all functions in 27.7.2.3 [istream.unformatted] are unformatted input functions. However, it does not
-really make much sense to construct a sentry object for
-<tt>gcount()</tt>, <tt>sync()</tt>, ... Also it is unclear what
-happens to the <tt>gcount()</tt> if eg. <tt>gcount()</tt>,
-<tt>putback()</tt>, <tt>unget()</tt>, or <tt>sync()</tt> is called:
-These functions don't extract characters, some of them even
-&quot;unextract&quot; a character. Should this still be reflected in
-<tt>gcount()</tt>? Of course, it could be read as if after a call to
-<tt>gcount()</tt> <tt>gcount()</tt> return <tt>0</tt> (the last
-unformatted input function, <tt>gcount()</tt>, didn't extract any
-character) and after a call to <tt>putback()</tt> <tt>gcount()</tt>
-returns <tt>-1</tt> (the last unformatted input function
-<tt>putback()</tt> did &quot;extract&quot; back into the
-stream). Correspondingly for <tt>unget()</tt>. Is this what is
-intended?  If so, this should be clarified. Otherwise, a corresponding
-clarification should be used.</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="166"></a>166. Really &quot;formatted output functions&quot;?</h3>
-<p><b>Section:</b> 27.7.3.6.3 [ostream.inserters] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#60">60</a></p>
-<p><b>Discussion:</b></p>
-<p>From 27.7.3.6.1 [ostream.formatted.reqmts] it appears that all the functions
-defined in 27.7.3.6.3 [ostream.inserters] have to construct a
-<tt>sentry</tt> object. Is this really intended?</p> 
-
-<p>This is basically the same problem as issue <a href="lwg-closed.html#162">162</a> but
-for output instead of input.</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="177"></a>177. Complex operators cannot be explicitly instantiated</h3>
-<p><b>Section:</b> 26.4.6 [complex.ops] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1999-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.ops">issues</a> in [complex.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>A user who tries to explicitly instantiate a complex non-member operator will
-get compilation errors. Below is a simplified example of the reason why. The
-problem is that iterator_traits cannot be instantiated on a non-pointer type
-like float, yet when the compiler is trying to decide which operator+ needs to
-be instantiated it must instantiate the declaration to figure out the first
-argument type of a reverse_iterator operator.</p>
-<pre>namespace std {
-template &lt;class Iterator&gt; 
-struct iterator_traits
-{
-    typedef typename Iterator::value_type value_type;
-};
-
-template &lt;class T&gt; class reverse_iterator;
-
-// reverse_iterator operator+
-template &lt;class T&gt; 
-reverse_iterator&lt;T&gt; operator+
-(typename iterator_traits&lt;T&gt;::difference_type, const reverse_iterator&lt;T&gt;&amp;);
-
-template &lt;class T&gt; struct complex {};
-
-// complex operator +
-template &lt;class T&gt;
-complex&lt;T&gt; operator+ (const T&amp; lhs, const complex&lt;T&gt;&amp; rhs) 
-{ return complex&lt;T&gt;();} 
-}
-
-// request for explicit instantiation
-template std::complex&lt;float&gt; std::operator+&lt;float&gt;(const float&amp;, 
-     const std::complex&lt;float&gt;&amp;);</pre>
-<p>See also c++-stdlib reflector messages: lib-6814, 6815, 6816.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Implementors can make minor changes and the example will
-work. Users are not affected in any case.</p> <p>According to John
-Spicer, It is possible to explicitly instantiate these operators using
-different syntax: change &quot;std::operator+&lt;float&gt;&quot; to
-&quot;std::operator+&quot;.</p>
-
-<p>The proposed resolution of issue 120 is that users will not be able
-to explicitly instantiate standard library templates. If that
-resolution is accepted then library implementors will be the only ones
-that will be affected by this problem, and they must use the indicated
-syntax.</p>
-
-
-
-
-<hr>
-<h3><a name="178"></a>178. Should clog and cerr initially be tied to cout?</h3>
-<p><b>Section:</b> 27.4.2 [narrow.stream.objects] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1999-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#narrow.stream.objects">issues</a> in [narrow.stream.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 27.3.1 says &quot;After the object cerr is initialized,
-cerr.flags() &amp; unitbuf is nonzero. Its state is otherwise the same as
-required for ios_base::init (lib.basic.ios.cons).  It doesn't say
-anything about the the state of clog.  So this means that calling
-cerr.tie() and clog.tie() should return 0 (see Table 89 for
-ios_base::init effects).
-</p>
-<p>
-Neither of the popular standard library implementations
-that I tried does this, they both tie cerr and clog
-to &amp;cout. I would think that would be what users expect.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The standard is clear as written.</p>
-<p>27.3.1/5 says that &quot;After the object cerr is initialized, cerr.flags()
-&amp; unitbuf is nonzero. Its state is otherwise the same as required for
-ios_base::init (27.4.4.1).&quot; Table 89 in 27.4.4.1, which gives the
-postconditions of basic_ios::init(), says that tie() is 0. (Other issues correct
-ios_base::init to basic_ios::init().)</p>
-
-
-
-
-<hr>
-<h3><a name="188"></a>188. valarray helpers missing augmented assignment operators</h3>
-<p><b>Section:</b> 26.6.2.7 [valarray.cassign] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 1999-08-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cassign">issues</a> in [valarray.cassign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>26.5.2.6 defines augmented assignment operators
-valarray&lt;T&gt;::op=(const T&amp;), but fails to provide
-corresponding versions for the helper classes. Thus making the
-following illegal:</p>
-<blockquote>
-<pre>#include &lt;valarray&gt;
-
-int main()
-{
-std::valarray&lt;double&gt; v(3.14, 1999);
-
-v[99] *= 2.0; // Ok
-
-std::slice s(0, 50, 2);
-
-v[s] *= 2.0; // ERROR
-}</pre>
-</blockquote>
-<p>I can't understand the intent of that omission.  It makes the
-valarray library less intuitive and less useful.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Although perhaps an unfortunate
-design decision, the omission is not a defect in the current
-standard.&nbsp; A future standard may wish to add the missing
-operators.</p>
-
-
-
-
-<hr>
-<h3><a name="190"></a>190. min() and max() functions should be std::binary_functions</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Mark Rintoul <b>Opened:</b> 1999-08-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Both std::min and std::max are defined as template functions.  This
-is very different than the definition of std::plus (and similar
-structs) which are defined as function objects which inherit
-std::binary_function.<br/>
-<br/>
-        This lack of inheritance leaves std::min and std::max somewhat useless in standard library algorithms which require
-a function object that inherits std::binary_function.</p>
-
-<p><i>[
-post Bellevue:  Alisdair requested to re-Open.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-C++0x has lambdas to address this problem now.
-</p>
-<p>
-Moved to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Although perhaps an unfortunate design decision, the omission is not a defect
-in the current standard.&nbsp; A future standard may wish to consider additional
-function objects.</p>
-
-
-
-
-<hr>
-<h3><a name="191"></a>191. Unclear complexity for algorithms such as binary search</h3>
-<p><b>Section:</b> 25.4.3 [alg.binary.search] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1999-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.binary.search">issues</a> in [alg.binary.search].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The complexity of binary_search() is stated as "At most
-log(last-first) + 2 comparisons", which seems to say that the
-algorithm has logarithmic complexity. However, this algorithms is
-defined for forward iterators. And for forward iterators, the need to
-step element-by-element results into linear complexity. But such a
-statement is missing in the standard. The same applies to
-lower_bound(), upper_bound(), and equal_range().&nbsp;<br/>
-<br/>
-However, strictly speaking the standard contains no bug here. So this
-might considered to be a clarification or improvement.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The complexity is expressed in terms of comparisons, and that
-complexity can be met even if the number of iterators accessed is
-linear. Paragraph 1 already says exactly what happens to
-iterators.</p>
-
-
-
-
-<hr>
-<h3><a name="192"></a>192. a.insert(p,t) is inefficient and overconstrained</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Ed Brey <b>Opened:</b> 1999-06-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#233">233</a></p>
-<p><b>Discussion:</b></p>
-<p>As defined in 23.1.2, paragraph 7 (table 69), a.insert(p,t) suffers from
-several problems:</p>
-<table border="1" cellpadding="5">
-  <tr>
-    <td><b>expression</b></td>
-    <td><b>return type</b></td>
-    <td><b>pre/post-condition</b></td>
-    <td><b>complexity</b></td>
-  </tr>
-  <tr>
-    <td><tt>a.insert(p,t)</tt></td>
-    <td><tt>iterator</tt></td>
-    <td>inserts t if and only if there is no element with key equivalent to the key of 
-       t in containers with unique keys; always inserts t in containers with equivalent 
-       keys. always returns the iterator pointing to the element with key equivalent to 
-       the key of t . iterator p is a hint pointing to where the insert should start to search.</td>
-    <td>logarithmic in general, but amortized constant if t is inserted right after p .</td>
-  </tr>
-</table>
-<p>1. For a container with unique keys, only logarithmic complexity is
-guaranteed if no element is inserted, even though constant complexity is always
-possible if p points to an element equivalent to t.</p>
-<p>2. For a container with equivalent keys, the amortized constant complexity
-guarantee is only useful if no key equivalent to t exists in the container.
-Otherwise, the insertion could occur in one of multiple locations, at least one
-of which would not be right after p.</p>
-<p>3. By guaranteeing amortized constant complexity only when t is inserted
-after p, it is impossible to guarantee constant complexity if t is inserted at
-the beginning of the container. Such a problem would not exist if amortized
-constant complexity was guaranteed if t is inserted before p, since there is
-always some p immediately before which an insert can take place.</p>
-<p>4. For a container with equivalent keys, p does not allow specification of
-where to insert the element, but rather only acts as a hint for improving
-performance. This negates the added functionality that p would provide if it
-specified where within a sequence of equivalent keys the insertion should occur.
-Specifying the insert location provides more control to the user, while
-providing no disadvantage to the container implementation.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 23.2.4 [associative.reqmts] paragraph 7, replace the row in table 69
-for a.insert(p,t) with the following two rows:</p>
-<table border="1" cellpadding="5">
-  <tr>
-    <td><b>expression</b></td>
-    <td><b>return type</b></td>
-    <td><b>pre/post-condition</b></td>
-    <td><b>complexity</b></td>
-  </tr>
-  <tr>
-    <td><tt>a_uniq.insert(p,t)</tt></td>
-    <td><tt>iterator</tt></td>
-    <td>inserts t if and only if there is no element with key equivalent to the
-      key of t. returns the iterator pointing to the element with key equivalent
-      to the key of t.</td>
-    <td>logarithmic in general, but amortized constant if t is inserted right
-      before p or p points to an element with key equivalent to t.</td>
-  </tr>
-  <tr>
-    <td><tt>a_eq.insert(p,t)</tt></td>
-    <td><tt>iterator</tt></td>
-    <td>inserts t and returns the iterator pointing to the newly inserted
-      element. t is inserted right before p if doing so preserves the container
-      ordering.</td>
-    <td>logarithmic in general, but amortized constant if t is inserted right
-      before p.</td>
-  </tr>
-</table>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Too big a change.&nbsp; Furthermore, implementors report checking
-both before p and after p, and don't want to change this behavior.</p>
-
-
-
-
-
-<hr>
-<h3><a name="194"></a>194. rdbuf() functions poorly specified</h3>
-<p><b>Section:</b> 27.5.5 [ios] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1999-09-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In classic iostreams, base class ios had an rdbuf function that returned a
-pointer to the associated streambuf. Each derived class had its own rdbuf
-function that returned a pointer of a type reflecting the actual type derived
-from streambuf. Because in ARM C++, virtual function overrides had to have the
-same return type, rdbuf could not be virtual.</p>
-<p>In standard iostreams, we retain the non-virtual rdbuf function design, and
-in addition have an overloaded rdbuf function that sets the buffer pointer.
-There is no need for the second function to be virtual nor to be implemented in
-derived classes.</p>
-<p>Minor question: Was there a specific reason not to make the original rdbuf
-function virtual?</p>
-<p>Major problem: Friendly compilers warn about functions in derived classes
-that hide base-class overloads. Any standard implementation of iostreams will
-result in such a warning on each of the iostream classes, because of the
-ill-considered decision to overload rdbuf only in a base class.</p>
-<p>In addition, users of the second rdbuf function must use explicit
-qualification or a cast to call it from derived classes. An explicit
-qualification or cast to basic_ios would prevent access to any later overriding
-version if there was one.</p>
-<p>What I'd like to do in an implementation is add a using- declaration for the
-second rdbuf function in each derived class. It would eliminate warnings about
-hiding functions, and would enable access without using explicit qualification.
-Such a change I don't think would change the behavior of any valid program, but
-would allow invalid programs to compile:</p>
-<blockquote>
-  <pre> filebuf mybuf;
- fstream f;
- f.rdbuf(mybuf); // should be an error, no visible rdbuf</pre>
-</blockquote>
-<p>I'd like to suggest this problem as a defect, with the proposed resolution to
-require the equivalent of a using-declaration for the rdbuf function that is not
-replaced in a later derived class. We could discuss whether replacing the
-function should be allowed.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>For historical reasons, the standard is correct as written. There is a subtle difference between the base
-class <tt> rdbuf()</tt> and derived class <tt>rdbuf()</tt>. The derived
-class <tt> rdbuf()</tt> always returns the original streambuf, whereas the base class
-<tt> rdbuf()</tt> will return the "current streambuf" if that has been changed by the variant you mention.</p>
-
-<p>Permission is not required to add such an extension.  See 
-17.6.5.5 [member.functions].</p>
-
-
-
-
-<hr>
-<h3><a name="196"></a>196. Placement new example has alignment problems</h3>
-<p><b>Section:</b> 18.6.1.3 [new.delete.placement] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.placement">issues</a> in [new.delete.placement].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#114">114</a></p>
-<p><b>Discussion:</b></p>
-<p>The example in 18.6.1.3 [new.delete.placement] paragraph 4 reads: </p>
-
-<blockquote>
-
-<p>[Example: This can be useful for constructing an object at a known address:<br/>
-<br/>
-<tt>&nbsp;&nbsp; char place[sizeof(Something)];<br/>
-&nbsp;&nbsp; Something* p = new (place) Something();<br/>
-<br/>
-</tt>end example] </p>
-
-</blockquote>
-
-<p>This example has potential alignment problems. </p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="197"></a>197. max_size() underspecified</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 1999-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Must the value returned by max_size() be unchanged from call to call? </p>
-
-<p>Must the value returned from max_size() be meaningful? </p>
-
-<p>Possible meanings identified in lib-6827: </p>
-
-<p>1) The largest container the implementation can support given "best
-case" conditions - i.e. assume the run-time platform is "configured to
-the max", and no overhead from the program itself. This may possibly
-be determined at the point the library is written, but certainly no
-later than compile time.<br/>
-<br/>
-2) The largest container the program could create, given "best case"
-conditions - i.e. same platform assumptions as (1), but take into
-account any overhead for executing the program itself. (or, roughly
-"storage=storage-sizeof(program)"). This does NOT include any resource
-allocated by the program. This may (or may not) be determinable at
-compile time.<br/>
-<br/>
-3) The largest container the current execution of the program could
-create, given knowledge of the actual run-time platform, but again,
-not taking into account any currently allocated resource. This is
-probably best determined at program start-up.<br/>
-<br/>
-4) The largest container the current execution program could create at
-the point max_size() is called (or more correctly at the point
-max_size() returns :-), given it's current environment (i.e. taking
-into account the actual currently available resources). This,
-obviously, has to be determined dynamically each time max_size() is
-called. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>max_size() isn't useful for very many things, and the existing
-  wording is sufficiently clear for the few cases that max_size() can
-  be used for.  None of the attempts to change the existing wording
-  were an improvement.</p>
-
-<p>It is clear to the LWG that the value returned by max_size() can't
-  change from call to call.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="203"></a>203. basic_istream::sentry::sentry() is uninstantiable with ctype&lt;user-defined type&gt;</h3>
-<p><b>Section:</b> 27.7.2.1.3 [istream::sentry] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt McClure and Dietmar K&uuml;hl <b>Opened:</b> 2000-01-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::sentry">issues</a> in [istream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.6.1.1.2 Paragraph 4 states:</p>
-<blockquote>
-  <p>To decide if the character c is a whitespace character, the constructor      
-     performs ''as if'' it executes the following code fragment:&nbsp;</p>
-  <pre>const ctype&lt;charT&gt;&amp; ctype = use_facet&lt;ctype&lt;charT&gt; &gt;(is.getloc());
-if (ctype.is(ctype.space,c)!=0)
-// c is a whitespace character.</pre>
-</blockquote>
-
-<p> But Table 51 in 22.1.1.1.1 only requires an implementation to
-provide specializations for ctype&lt;char&gt; and
-ctype&lt;wchar_t&gt;.  If sentry's constructor is implemented using
-ctype, it will be uninstantiable for a user-defined character type
-charT, unless the implementation has provided non-working (since it
-would be impossible to define a correct ctype&lt;charT&gt; specialization
-for an arbitrary charT) definitions of ctype's virtual member
-functions.</p>
-
-<p>
-It seems the intent the standard is that sentry should behave, in
-every respect, not just during execution, as if it were implemented
-using ctype, with the burden of providing a ctype specialization
-falling on the user.  But as it is written, nothing requires the
-translation of sentry's constructor to behave as if it used the above
-code, and it would seem therefore, that sentry's constructor should be
-instantiable for all character types.
-</p>
-
-<p> 
-Note: If I have misinterpreted the intent of the standard with
-respect to sentry's constructor's instantiability, then a note should
-be added to the following effect:
-</p>
-
-<blockquote><p>
-An implementation is forbidden from using the above code if it renders
-the constructor uninstantiable for an otherwise valid character
-type.
-</p></blockquote>
-
-<p>In any event, some clarification is needed.</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>It is possible but not easy to instantiate on types other than char
-or wchar_t; many things have to be done first. That is by intention
-and is not a defect.</p>
-
-
-
-
-<hr>
-<h3><a name="204"></a>204. distance(first, last) when &quot;last&quot; is before &quot;first&quot;</h3>
-<p><b>Section:</b> 24.4.4 [iterator.operations] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Rintala Matti <b>Opened:</b> 2000-01-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.operations">issues</a> in [iterator.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 24.3.4 describes the function distance(first, last) (where first and
-last are iterators) which calculates &quot;the number of increments or
-decrements needed to get from 'first' to 'last'&quot;.</p>
-<p>The function should work for forward, bidirectional and random access
-iterators, and there is a requirement 24.3.4.5 which states that &quot;'last'
-must be reachable from 'first'&quot;.</p>
-<p>With random access iterators the function is easy to implement as &quot;last
-- first&quot;.</p>
-<p>With forward iterators it's clear that 'first' must point to a place before
-'last', because otherwise 'last' would not be reachable from 'first'.</p>
-<p>But what about bidirectional iterators? There 'last' is reachable from
-'first' with the -- operator even if 'last' points to an earlier position than
-'first'. However, I cannot see how the distance() function could be implemented
-if the implementation does not know which of the iterators points to an earlier
-position (you cannot use ++ or -- on either iterator if you don't know which
-direction is the &quot;safe way to travel&quot;).</p>
-<p>The paragraph 24.3.4.1 states that &quot;for ... bidirectional iterators they
-use ++ to provide linear time implementations&quot;. However, the ++ operator is
-not mentioned in the reachability requirement. Furthermore 24.3.4.4 explicitly
-mentions that distance() returns the number of increments _or decrements_,
-suggesting that it could return a negative number also for bidirectional
-iterators when 'last' points to a position before 'first'.</p>
-<p>Is a further requirement is needed to state that for forward and
-bidirectional iterators &quot;'last' must be reachable from 'first' using the ++
-operator&quot;. Maybe this requirement might also apply to random access
-iterators so that distance() would work the same way for every iterator
-category?</p>
-
-
-<p><b>Rationale:</b></p>
-<p>&quot;Reachable&quot; is defined in the standard in X [iterator.concepts] paragraph 6.
-The definition is only in terms of operator++(). The LWG sees no defect in
-the standard.</p>
-
-
-
-
-<hr>
-<h3><a name="205"></a>205.  numeric_limits unclear on how to determine floating point types</h3>
-<p><b>Section:</b> 18.3.2.4 [numeric.limits.members] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Steve Cleary <b>Opened:</b> 2000-01-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.limits.members">issues</a> in [numeric.limits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In several places in 18.3.2.4 [numeric.limits.members], a member is
-described as &quot;Meaningful for all floating point types.&quot;
-However, no clear method of determining a floating point type is
-provided.</p>
-
-<p>In 18.3.2.7 [numeric.special], paragraph 1 states &quot;. . . (for
-example, epsilon() is only meaningful if is_integer is
-false). . .&quot; which suggests that a type is a floating point type
-if is_specialized is true and is_integer is false; however, this is
-unclear.</p>
-
-<p>When clarifying this, please keep in mind this need of users: what
-exactly is the definition of floating point? Would a fixed point or
-rational representation be considered one? I guess my statement here
-is that there could also be types that are neither integer or
-(strictly) floating point.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>It is up to the implementor of a user define type to decide if it is a
-floating point type.</p>
-
-
-
-
-<hr>
-<h3><a name="207"></a>207. ctype&lt;char&gt; members return clause incomplete</h3>
-<p><b>Section:</b> 22.4.1.3.2 [facet.ctype.char.members] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 1999-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.ctype.char.members">issues</a> in [facet.ctype.char.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#153">153</a></p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>widen</tt> and <tt>narrow</tt> member functions are described
-in 22.2.1.3.2, paragraphs 9-11.  In each case we have two overloaded
-signatures followed by a <b>Returns</b> clause.  The <b>Returns</b>
-clause only describes one of the overloads.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the returns clause in 22.4.1.3.2 [facet.ctype.char.members]
-paragraph 10 from:</p>
-<p>&nbsp;&nbsp;&nbsp; Returns: do_widen(low, high, to).</p>
-
-<p>to:</p>
-<p>&nbsp;&nbsp;&nbsp; Returns: do_widen(c) or do_widen(low, high, to), 
-respectively.</p>
-
-<p>Change the returns clause in 22.4.1.3.2 [facet.ctype.char.members] paragraph 11
-from:</p> 
-<p>&nbsp;&nbsp;&nbsp; Returns: do_narrow(low, high, to).</p>
-
-<p>to:</p>
-<p>&nbsp;&nbsp;&nbsp; Returns: do_narrow(c) or do_narrow(low, high, to), 
-respectively.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Subsumed by issue <a href="lwg-defects.html#153">153</a>, which addresses the same
-paragraphs.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="213"></a>213. Math function overloads ambiguous</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 2000-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Due to the additional overloaded versions of numeric functions for
-float and long double according to Section 26.5, calls such as int x;
-std::pow (x, 4) are ambiguous now in a standard conforming
-implementation. Current implementations solve this problem very
-different (overload for all types, don't overload for float and long
-double, use preprocessor, follow the standard and get
-ambiguities).</p> <p>This behavior should be standardized or at least
-identified as implementation defined.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>These math issues are an
-understood and accepted consequence of the design. They have
-been discussed several times in the past. Users must write casts
-or write floating point expressions as arguments.</p>
-
-
-
-
-<hr>
-<h3><a name="215"></a>215. Can a map's key_type be const?</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-02-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>A user noticed that this doesn't compile with the Rogue Wave library because
-the rb_tree class declares a key_allocator, and allocator&lt;const int&gt; is
-not legal, I think:</p>
-<blockquote>
-  <pre>map &lt; const int, ... &gt; // legal?</pre>
-</blockquote>
-<p>which made me wonder whether it is legal for a map's key_type to be const. In
-email from Matt Austern he said:</p>
-<blockquote>
-<p>I'm not sure whether it's legal to declare a map with a const key type. I
-hadn't thought about that question until a couple weeks ago. My intuitive
-feeling is that it ought not to be allowed, and that the standard ought to say
-so. It does turn out to work in SGI's library, though, and someone in the
-compiler group even used it. Perhaps this deserves to be written up as an issue
-too.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The &quot;key is assignable&quot; requirement from table 69 in
-23.2.4 [associative.reqmts] already implies the key cannot be const.</p>
-
-
-
-
-<hr>
-<h3><a name="216"></a>216. setbase manipulator description flawed</h3>
-<p><b>Section:</b> 27.7.4 [std.manip] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Hyman Rosen <b>Opened:</b> 2000-02-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#std.manip">issues</a> in [std.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#193">193</a></p>
-<p><b>Discussion:</b></p>
-<p>27.7.4 [std.manip] paragraph 5 says:</p>
-<blockquote>
-<pre>smanip setbase(int base);</pre>
-<p> Returns: An object s of unspecified type such that if out is an
-(instance of) basic_ostream then the expression out&lt;&lt;s behaves
-as if f(s) were called, in is an (instance of) basic_istream then the
-expression in&gt;&gt;s behaves as if f(s) were called. Where f can be
-defined as:</p>
-<pre>ios_base&amp; f(ios_base&amp; str, int base)
-{
-  // set basefield
-  str.setf(n == 8 ? ios_base::oct :
-                n == 10 ? ios_base::dec :
-                n == 16 ? ios_base::hex :
-                  ios_base::fmtflags(0), ios_base::basefield);
-  return str;
-}</pre>
-</blockquote>
-<p>There are two problems here. First, f takes two parameters, so the
-description needs to say that out&lt;&lt;s and in&gt;&gt;s behave as if f(s,base)
-had been called. Second, f is has a parameter named base, but is written as if
-the parameter was named n.</p>
-<p>Actually, there's a third problem. The paragraph has grammatical errors.
-There needs to be an &quot;and&quot; after the first comma, and the &quot;Where
-f&quot; sentence fragment needs to be merged into its preceding sentence. You
-may also want to format the function a little better. The formatting above is
-more-or-less what the Standard contains.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The resolution of this defect is subsumed by the proposed resolution for
-issue <a href="lwg-defects.html#193">193</a>.</p>
-
-<p><i>[Tokyo: The LWG agrees that this is a defect and notes that it
-occurs additional places in the section, all requiring fixes.]</i></p>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="218"></a>218. Algorithms do not use binary predicate objects for default comparisons</h3>
-<p><b>Section:</b> 25.4 [alg.sorting] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2000-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.sorting">issues</a> in [alg.sorting].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Many of the algorithms take an argument, pred, of template parameter type
-BinaryPredicate or an argument comp of template parameter type Compare. These
-algorithms usually have an overloaded version that does not take the predicate
-argument. In these cases pred is usually replaced by the use of operator== and
-comp is replaced by the use of operator&lt;.</p>
-<p>This use of hard-coded operators is inconsistent with other parts of the
-library, particularly the containers library, where equality is established
-using equal_to&lt;&gt; and ordering is established using less&lt;&gt;. Worse,
-the use of operator&lt;, would cause the following innocent-looking code to have
-undefined behavior:</p>
-<blockquote>
-  <pre>vector&lt;string*&gt; vec;
-sort(vec.begin(), vec.end());</pre>
-</blockquote>
-<p>The use of operator&lt; is not defined for pointers to unrelated objects. If
-std::sort used less&lt;&gt; to compare elements, then the above code would be
-well-defined, since less&lt;&gt; is explicitly specialized to produce a total
-ordering of pointers.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This use of operator== and operator&lt; was a very deliberate, conscious, and
-explicitly made design decision; these operators are often more efficient. The
-predicate forms are available for users who don't want to rely on operator== and
-operator&lt;.</p>
-
-
-
-
-<hr>
-<h3><a name="219"></a>219. <tt>find</tt> algorithm missing version that takes a binary predicate argument</h3>
-<p><b>Section:</b> 25.2.5 [alg.find] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2000-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.find">issues</a> in [alg.find].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The find function always searches for a value using <tt>operator==</tt> to compare the
-value argument to each element in the input iterator range. This is inconsistent
-with other find-related functions such as <tt>find_end</tt> and <tt>find_first_of</tt>, which
-allow the caller to specify a binary predicate object to be used for determining
-equality. The fact that this can be accomplished using a combination of <tt>find_if</tt>
-and <tt>bind_1st</tt> or <tt>bind_2nd</tt> does not negate the desirability of a consistent,
-simple, alternative interface to <tt>find</tt>.</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Reopened by Alisdair.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-The same thing can be achieved using <tt>find_if</tt> (as noted in the issue).
-</p>
-<p>
-Moved to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<blockquote>
-<p>In section 25.2.5 [alg.find], add a second prototype for find
-(between the existing prototype and the prototype for find_if), as
-follows:</p>
-<pre>    template&lt;class InputIterator, class T, class BinaryPredicate&gt;
-      InputIterator find(InputIterator first, InputIterator last,
-                         const T&amp; value, BinaryPredicate bin_pred);</pre>
-<p>Change the description of the return from:</p>
-<blockquote>
-  <p>Returns: The first iterator <tt>i</tt> in the range <tt>[first, last)</tt> for which the following corresponding
-  conditions hold: <tt>*i == value</tt>, <tt>pred(*i) != false</tt>. Returns <tt>last</tt> if no such iterator is found.</p>
-</blockquote>
-<p>&nbsp;to:</p>
-<blockquote>
-  <p>Returns: The first iterator <tt>i</tt> in the range <tt>[first, last)</tt> for which the following&nbsp;
-  corresponding condition holds: <tt>*i == value</tt>, <tt>bin_pred(*i,value) != false</tt>, <tt>pred(*)
-  != false</tt>. Return <tt>last</tt> if no such iterator is found.</p>
-</blockquote>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>This is request for a pure extension, so it is not a defect in the
-current standard.&nbsp; As the submitter pointed out, &quot;this can
-be accomplished using a combination of <tt>find_if</tt> and <tt>bind_1st</tt> or
-<tt>bind_2nd</tt>&quot;.</p>
-
-
-
-
-<hr>
-<h3><a name="236"></a>236. ctype&lt;char&gt;::is() member modifies facet</h3>
-<p><b>Section:</b> 22.4.1.3.2 [facet.ctype.char.members] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 2000-04-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.ctype.char.members">issues</a> in [facet.ctype.char.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#28">28</a></p>
-<p><b>Discussion:</b></p>
-<p>The description of the <tt>is()</tt> member in paragraph 4 of 22.4.1.3.2 [facet.ctype.char.members] is broken: According to this description, the
-second form of the <tt>is()</tt> method modifies the masks in the
-<tt>ctype</tt> object. The correct semantics if, of course, to obtain
-an array of masks. The corresponding method in the general case,
-ie. the <tt>do_is()</tt> method as described in 22.4.1.1.2 [locale.ctype.virtuals] paragraph 1 does the right thing.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-  <p>Change paragraph 4 from</p>
-    <blockquote><p>
-    The second form, for all *p in the range [low, high), assigns
-    vec[p-low] to table()[(unsigned char)*p].
-    </p></blockquote>
-  <p>to become</p>
-    <blockquote><p>
-    The second form, for all *p in the range [low, high), assigns
-    table()[(unsigned char)*p] to vec[p-low].
-  </p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="244"></a>244. Must <tt>find</tt>'s third argument be CopyConstructible?</h3>
-<p><b>Section:</b> 25.2.5 [alg.find] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2000-05-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.find">issues</a> in [alg.find].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Is the following implementation of <tt>find</tt> acceptable?</p>
-
-<pre>
-        template&lt;class Iter, class X&gt;
-        Iter find(Iter begin, Iter end, const X&amp; x)
-        {
-            X x1 = x;           // this is the crucial statement
-            while (begin != end &amp;&amp; *begin != x1)
-                ++begin;
-            return begin;
-        }
-</pre>
-
-<p>If the answer is yes, then it is implementation-dependent as to
-whether the following fragment is well formed:</p>
-
-<pre>
-        vector&lt;string&gt; v;
-
-        find(v.begin(), v.end(), &quot;foo&quot;);
-</pre>
-
-<p>At issue is whether there is a requirement that the third argument
-of find be CopyConstructible.  There may be no problem here, but
-analysis is necessary.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>There is no indication in the standard that find's third argument
-is required to be Copy Constructible.  The LWG believes that no such
-requirement was intended.  As noted above, there are times when a user
-might reasonably pass an argument that is not Copy Constructible.</p>
-
-
-
-
-<hr>
-<h3><a name="245"></a>245. Which operations on <tt>istream_iterator</tt> trigger input operations?</h3>
-<p><b>Section:</b> 24.6.1 [istream.iterator] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2000-05-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator">issues</a> in [istream.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>I do not think the standard specifies what operation(s) on istream
-iterators trigger input operations.  So, for example:</p>
-
-<pre>
-        istream_iterator&lt;int&gt; i(cin);
-
-        int n = *i++;
-</pre>
-
-<p>I do not think it is specified how many integers have been read
-from cin.  The number must be at least 1, of course, but can it be 2?
-More?</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The standard is clear as written: the stream is read every time
-operator++ is called, and it is also read either when the iterator is
-constructed or when operator* is called for the first time.  In the
-example above, exactly two integers are read from cin.</p>
-
-<p>There may be a problem with the interaction between istream_iterator
-and some STL algorithms, such as find.  There are no guarantees about
-how many times find may invoke operator++.</p>
-
-
-
-
-<hr>
-<h3><a name="246"></a>246. <tt>a.insert(p,t)</tt> is incorrectly specified</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Mark Rodgers <b>Opened:</b> 2000-05-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#233">233</a></p>
-<p><b>Discussion:</b></p>
-<p>Closed issue 192 raised several problems with the specification of
-this function, but was rejected as Not A Defect because it was too big
-a change with unacceptable impacts on existing implementations.
-However, issues remain that could be addressed with a smaller change
-and with little or no consequent impact.</p>
-
-<ol>
-   <li><p> The specification is inconsistent with the original
-   proposal and with several implementations.</p>
-
-   <p>The initial implementation by Hewlett Packard only ever looked
-   immediately <i>before</i> p, and I do not believe there was any
-   intention to standardize anything other than this behavior.
-   Consequently, current implementations by several leading
-   implementors also look immediately before p, and will only insert
-   after p in logarithmic time.  I am only aware of one implementation
-   that does actually look after p, and it looks before p as well.  It
-   is therefore doubtful that existing code would be relying on the
-   behavior defined in the standard, and it would seem that fixing
-   this defect as proposed below would standardize existing
-   practice.</p></li>
-
-   <li><p>
-   The specification is inconsistent with insertion for sequence
-   containers.</p>
-
-   <p>This is difficult and confusing to teach to newcomers.  All
-   insert operations that specify an iterator as an insertion location
-   should have a consistent meaning for the location represented by
-   that iterator.</p></li>
-
-   <li><p> As specified, there is no way to hint that the insertion
-   should occur at the beginning of the container, and the way to hint
-   that it should occur at the end is long winded and unnatural.</p>
-
-   <p>For a container containing n elements, there are n+1 possible
-   insertion locations and n+1 valid iterators.  For there to be a
-   one-to-one mapping between iterators and insertion locations, the
-   iterator must represent an insertion location immediately before
-   the iterator.</p></li>
-
-   <li><p> When appending sorted ranges using insert_iterators,
-   insertions are guaranteed to be sub-optimal.</p>
-
-   <p>In such a situation, the optimum location for insertion is
-   always immediately after the element previously inserted.  The
-   mechanics of the insert iterator guarantee that it will try and
-   insert after the element after that, which will never be correct.
-   However, if the container first tried to insert before the hint,
-   all insertions would be performed in amortized constant
-   time.</p></li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 23.1.2 [lib.associative.reqmts] paragraph 7, table 69, make
-the following changes in the row for a.insert(p,t):</p>
-
-<p><i>assertion/note pre/post condition:</i>
-<br/>Change the last sentence from</p>
-     <blockquote><p>
-     &quot;iterator p is a hint pointing to where the insert should
-     start to search.&quot;
-     </p></blockquote>
-<p>to</p>
-     <blockquote><p>
-     &quot;iterator p is a hint indicating that immediately before p
-     may be a correct location where the insertion could occur.&quot;
-     </p></blockquote>
-
-<p><i>complexity:</i><br/>
-Change the words "right after" to "immediately before".</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="249"></a>249. Return Type of <tt>auto_ptr::operator=</tt></h3>
-<p><b>Section:</b> X [auto.ptr] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Joseph Gottman <b>Opened:</b> 2000-06-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#auto.ptr">issues</a> in [auto.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>According to section 20.4.5, the function
-<tt>auto_ptr::operator=()</tt> returns a reference to an auto_ptr.
-The reason that <tt>operator=()</tt> usually returns a reference is to
-facilitate code like</p>
-
-<pre>
-    int x,y,z;
-    x = y = z = 1;
-</pre>
-
-<p>However, given analogous code for <tt>auto_ptr</tt>s,</p>
-<pre>
-    auto_ptr&lt;int&gt; x, y, z;
-    z.reset(new int(1));
-    x = y = z;
-</pre>
-
-<p>the result would be that <tt>z</tt> and <tt>y</tt> would both be set to 
-NULL, instead of all the <tt>auto_ptr</tt>s being set to the same value. 
-This makes such cascading assignments useless and counterintuitive for 
-<tt>auto_ptr</tt>s.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change <tt>auto_ptr::operator=()</tt> to return <tt>void</tt> instead
-of an <tt>auto_ptr</tt> reference.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The return value has uses other than cascaded assignments: a user can
-call an auto_ptr member function, pass the auto_ptr to a
-function, etc.  Removing the return value could break working user
-code.</p>
-
-
-
-
-<hr>
-<h3><a name="257"></a>257. STL functional object and iterator inheritance.</h3>
-<p><b>Section:</b> X [depr.base], 24.4.2 [iterator.basic] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Robert Dick  <b>Opened:</b> 2000-08-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.base">issues</a> in [depr.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to the November 1997 Draft Standard, the results of deleting an
-object of a derived class through a pointer to an object of its base class are
-undefined if the base class has a non-virtual destructor.  Therefore, it is
-potentially dangerous to publicly inherit from such base classes.
-</p>
-
-<p>Defect:
-<br/>
-The STL design encourages users to publicly inherit from a number of classes
-which do nothing but specify interfaces, and which contain non-virtual
-destructors.
-</p>
-
-<p>Attribution:
-<br/>
-Wil Evers and William E. Kempf suggested this modification for functional
-objects.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-When a base class in the standard library is useful only as an interface
-specifier, i.e., when an object of the class will never be directly
-instantiated, specify that the class contains a protected destructor.  This
-will prevent deletion through a pointer to the base class without performance,
-or space penalties (on any implementation I'm aware of).
-</p>
-
-<p>
-As an example, replace...
-</p>
-
-<pre>
-    template &lt;class Arg, class Result&gt;
-    struct unary_function {
-            typedef Arg    argument_type;
-            typedef Result result_type;
-    };
-</pre>
-
-<p>
-... with...
-</p>
-
-<pre>
-    template &lt;class Arg, class Result&gt;
-    struct unary_function {
-            typedef Arg    argument_type;
-            typedef Result result_type;
-    protected:
-            ~unary_function() {}
-    };
-</pre>
-
-<p>
-Affected definitions:
-<br/>
-  &nbsp;20.3.1 [lib.function.objects] -- unary_function, binary_function
-  <br/>
-  &nbsp;24.3.2 [lib.iterator.basic] -- iterator
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The standard is clear as written; this is a request for change, not a
-defect in the strict sense.  The LWG had several different objections
-to the proposed change.  One is that it would prevent users from
-creating objects of type <tt>unary_function</tt> and
-<tt>binary_function</tt>.  Doing so can sometimes be legitimate, if users
-want to pass temporaries as traits or tag types in generic code.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="267"></a>267. interaction of strstreambuf::overflow() and seekoff()</h3>
-<p><b>Section:</b> D.7.1.3 [depr.strstreambuf.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.strstreambuf.virtuals">issues</a> in [depr.strstreambuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It appears that the interaction of the strstreambuf members overflow()
-and seekoff() can lead to undefined behavior in cases where defined
-behavior could reasonably be expected. The following program
-demonstrates this behavior:
-</p>
-
-<pre>
-    #include &lt;strstream&gt;
-
-    int main ()
-    {
-         std::strstreambuf sb;
-         sb.sputc ('c');
-
-         sb.pubseekoff (-1, std::ios::end, std::ios::in);
-         return !('c' == sb.sgetc ());
-    }
-</pre>
-
-<p>
-D.7.1.1, p1 initializes strstreambuf with a call to basic_streambuf&lt;&gt;(),
-which in turn sets all pointers to 0 in 27.5.2.1, p1.
-</p>
- 
-<p>
-27.5.2.2.5, p1 says that basic_streambuf&lt;&gt;::sputc(c) calls
-overflow(traits::to_int_type(c)) if a write position isn't available (it
-isn't due to the above).
-</p>
-
-<p>
-D.7.1.3, p3 says that strstreambuf::overflow(off, ..., ios::in) makes at
-least one write position available (i.e., it allows the function to make
-any positive number of write positions available).
-</p>
-
-<p>
-D.7.1.3, p13 computes newoff = seekhigh - eback(). In D.7.1, p4 we see
-seekhigh = epptr() ? epptr() : egptr(), or seekhigh = epptr() in this
-case. newoff is then epptr() - eback().
-</p>
-
-<p>
-D.7.1.4, p14 sets gptr() so that gptr() == eback() + newoff + off, or
-gptr() == epptr() + off holds.
-</p>
-
-<p>
-If strstreambuf::overflow() made exactly one write position available
-then gptr() will be set to just before epptr(), and the program will
-return 0. Buf if the function made more than one write position
-available, epptr() and gptr() will both point past pptr() and the
-behavior of the program is undefined.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-   <p>Change the last sentence of D.7.1 [depr.strstreambuf] paragraph 4 from</p>
-
-      <blockquote><p>
-      Otherwise, seeklow equals gbeg and seekhigh is either pend, if
-      pend is not a null pointer, or gend.
-      </p></blockquote>
-
-   <p>to become</p>
-
-      <blockquote><p>
-      Otherwise, seeklow equals gbeg and seekhigh is either gend if
-      0 == pptr(), or pbase() + max where max is the maximum value of
-      pptr() - pbase() ever reached for this stream.
-      </p></blockquote>
-
-<p><i>[
-  pre-Copenhagen: Dietmar provided wording for proposed resolution.
-]</i></p>
-
-
-<p><i>[
-  post-Copenhagen: Fixed a typo: proposed resolution said to fix
-  4.7.1, not D.7.1.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>This is related to issue <a href="lwg-closed.html#65">65</a>: it's not clear what it
-means to seek beyond the current area.  Without resolving issue <a href="lwg-closed.html#65">65</a> we can't resolve this.  As with issue <a href="lwg-closed.html#65">65</a>, 
-the library working group does not wish to invest time nailing down
-corner cases in a deprecated feature.</p>
-
-
-
-
-
-<hr>
-<h3><a name="269"></a>269. cstdarg and unnamed parameters</h3>
-<p><b>Section:</b> 18.8 [support.exception] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> J. Stephen Adamczyk <b>Opened:</b> 2000-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.exception">issues</a> in [support.exception].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-One of our customers asks whether this is valid C++:
-</p>
-
-<pre>
-   #include &lt;cstdarg&gt;
-
-   void bar(const char *, va_list);
-
-   void
-   foo(const char *file, const char *, ...)
-   {
-     va_list ap;
-     va_start(ap, file);
-     bar(file, ap);
-     va_end(ap);
-   }
-</pre>
-
-<p>
-The issue being whether it is valid to use cstdarg when the final
-parameter before the &quot;...&quot; is unnamed.  cstdarg is, as far
-as I can tell, inherited verbatim from the C standard. and the
-definition there (7.8.1.1 in the ISO C89 standard) refers to &quot;the
-identifier of the rightmost parameter&quot;.  What happens when there
-is no such identifier?
-</p>
-
-<p>
-My personal opinion is that this should be allowed, but some tweak
-might be required in the C++ standard.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Not a defect, the C and C++ standards are clear.  It is impossible to
-use varargs if the parameter immediately before &quot;...&quot; has no
-name, because that is the parameter that must be passed to va_start.
-The example given above is broken, because va_start is being passed
-the wrong parameter.
-</p>
-
-<p>
-There is no support for extending varargs to provide additional
-functionality beyond what's currently there.  For reasons of C/C++
-compatibility, it is especially important not to make gratuitous
-changes in this part of the C++ standard.  The C committee has already
-been requested not to touch this part of the C standard unless
-necessary.
-</p>
-
-
-
-
-<hr>
-<h3><a name="277"></a>277. Normative encouragement in allocator requirements unclear</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2000-11-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.1.5, paragraph 5, the standard says that &quot;Implementors are
-encouraged to supply libraries that can accept allocators that
-encapsulate more general memory models and that support non-equal
-instances.&quot; This is intended as normative encouragement to
-standard library implementors.  However, it is possible to interpret
-this sentence as applying to nonstandard third-party libraries.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.1.5, paragraph 5, change &quot;Implementors&quot; to
-&quot;Implementors of the library described in this International
-Standard&quot;.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes the normative encouragement is already
-sufficiently clear, and that there are no important consequences
-even if it is misunderstood.</p>
-
-
-
-
-
-<hr>
-<h3><a name="279"></a>279. const and non-const iterators should have equivalent typedefs</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Steve Cleary <b>Opened:</b> 2000-11-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This came from an email from Steve Cleary to Fergus in reference to
-issue <a href="lwg-defects.html#179">179</a>. The library working group briefly discussed
-this in Toronto and believes it should be a separate issue.
-</p>
-
-<p>
-Steve said: &quot;We may want to state that the const/non-const iterators must have
-the same difference type, size_type, and category.&quot;
-</p>
-
-<p>
-(Comment from Judy)
-I'm not sure if the above sentence should be true for all
-const and non-const iterators in a particular container, or if it means 
-the container's iterator can't be compared with the container's
-const_iterator unless the above it true. I suspect the former.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In <b>Section:</b> 23.2 [container.requirements],
-table 65, in the assertion/note pre/post condition for X::const_iterator,
-add the following:
-</p>
-
-<blockquote>
-<p>
-typeid(X::const_iterator::difference_type) == typeid(X::iterator::difference_type)
-</p>
-
-<p>
-typeid(X::const_iterator::size_type) == typeid(X::iterator::size_type)
-</p>
-
-<p>
-typeid(X::const_iterator::category) == typeid(X::iterator::category)
-</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Going through the types one by one: Iterators don't have a
-<tt>size_type</tt>.  We already know that the difference types are
-identical, because the container requirements already say that the
-difference types of both X::iterator and X::const_iterator are both
-X::difference_type.  The standard does not require that X::iterator
-and X::const_iterator have the same iterator category, but the LWG
-does not see this as a defect: it's possible to imagine cases in which
-it would be useful for the categories to be different.</p>
-
-<p>It may be desirable to require X::iterator and X::const_iterator to
-have the same value type, but that is a new issue. (Issue <a href="lwg-defects.html#322">322</a>.)</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="287"></a>287. conflicting ios_base fmtflags</h3>
-<p><b>Section:</b> 27.5.3.2 [fmtflags.state] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fmtflags.state">issues</a> in [fmtflags.state].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Effects clause for ios_base::setf(fmtflags fmtfl) says
-&quot;Sets fmtfl in flags()&quot;.  What happens if the user first calls
-ios_base::scientific and then calls ios_base::fixed or vice-versa?
-This is an issue for all of the conflicting flags, i.e. ios_base::left
-and ios_base::right or ios_base::dec, ios_base::hex and ios_base::oct.
-</p>
-
-<p>
-I see three possible solutions: 
-</p>
-
-<ol>
-<li>Set ios_base::failbit whenever the user specifies a conflicting
-flag with one previously explicitly set. If the constructor is
-supposed to set ios_base::dec (see discussion below), then
-the user setting hex or oct format after construction will not
-set failbit. </li>
-<li>The last call to setf &quot;wins&quot;, i.e. it clears any conflicting
-previous setting.</li>
-<li>All the flags that the user specifies are set, but when actually 
-interpreting them, fixed always override scientific, right always 
-overrides left, dec overrides hex which overrides oct.</li>
-</ol>
-
-<p>
-Most existing implementations that I tried seem to conform to resolution #3,
-except that when using the iomanip manipulator hex or oct then that always 
-overrides dec, but calling setf(ios_base::hex) doesn't. 
-</p>
-
-<p>
-There is a sort of related issue, which is that although the ios_base
-constructor says that each ios_base member has an indeterminate value
-after construction, all the existing implementations I tried explicitly set 
-ios_base::dec.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-<tt>adjustfield</tt>, <tt>basefield</tt>, and <tt>floatfield</tt>
-are each multi-bit fields.  It is possible to set multiple bits within
-each of those fields.  (For example, <tt>dec</tt> and
-<tt>oct</tt>). These fields are used by locale facets.  The LWG
-reviewed the way in which each of those three fields is used, and
-believes that in each case the behavior is well defined for any
-possible combination of bits.  See for example Table 58, in 22.4.2.2.2 [facet.num.put.virtuals], noting the requirement in paragraph 6 of that
-section.
-</p>
-<p>
-Users are advised to use manipulators, or else use the two-argument
-version of <tt>setf</tt>, to avoid unexpected behavior.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="289"></a>289. &lt;cmath&gt; requirements missing C float and long double versions</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-    In ISO/IEC 9899:1990 Programming Languages C we find the following
-    concerning &lt;math.h&gt;:
-</p>
-
-<blockquote><p>
-         7.13.4 Mathematics &lt;math.h&gt;
-         <br/>
-         The names of all existing functions declared in the &lt;math.h&gt;
-         header, suffixed with f or l, are reserved respectively for
-         corresponding functions with float and long double arguments
-         are return values.
-</p></blockquote>
-
-<p>
-    For example, <tt>float&nbsp;sinf(float)</tt>
-    is reserved.
-</p>
-
-<p>
-    In the C99 standard, &lt;math.h&gt; must contain declarations
-    for these functions.
-</p>
-
-<p>
-So, is it acceptable for an implementor to add these prototypes to the
-C++ versions of the math headers? Are they required?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add these Functions to Table 80, section 26.5 and to Table 99,
-section C.2:
-</p>
-
-<pre>
-    acosf asinf atanf atan2f ceilf cosf coshf 
-    expf fabsf floorf fmodf frexpf ldexpf 
-    logf log10f modff powf sinf sinhf sqrtf 
-    tanf tanhf 
-    acosl asinl atanl atan2l ceill cosl coshl 
-    expl fabsl floorl fmodl frexpl ldexpl 
-    logl log10l modfl powl sinl sinhl sqrtl 
-    tanl tanhl
-</pre>
-
-<p>
-There should probably be a note saying that these functions
-are optional and, if supplied, should match the description in
-the 1999 version of the C standard. In the next round
-of C++ standardization they can then become mandatory. 
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The C90 standard, as amended, already permits (but does not
-require) these functions, and the C++ standard incorporates the
-C90 standard by reference.  C99 is not an issue, because it is
-never referred to by the C++ standard.</p>
-
-
-
-
-
-<hr>
-<h3><a name="290"></a>290. Requirements to for_each and its function object</h3>
-<p><b>Section:</b> 25.2.4 [alg.foreach] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 2001-01-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.foreach">issues</a> in [alg.foreach].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The specification of the for_each algorithm does not have a
-&quot;Requires&quot; section, which means that there are no
-restrictions imposed on the function object whatsoever. In essence it
-means that I can provide any function object with arbitrary side
-effects and I can still expect a predictable result. In particular I
-can expect that the function object is applied exactly last - first
-times, which is promised in the &quot;Complexity&quot; section.
-</p>
-
-<p>I don't see how any implementation can give such a guarantee
-without imposing requirements on the function object.
-</p>
-
-<p>Just as an example: consider a function object that removes
-elements from the input sequence.  In that case, what does the
-complexity guarantee (applies f exactly last - first times) mean?
-</p>
-
-<p>One can argue that this is obviously a nonsensical application and
-a theoretical case, which unfortunately it isn't.  I have seen
-programmers shooting themselves in the foot this way, and they did not
-understand that there are restrictions even if the description of the
-algorithm does not say so.
-</p>
-<p><i>[Lillehammer: This is more general than for_each.  We don't want
-  the function object in transform invalidiating iterators
-  either. There should be a note somewhere in clause 17 (17, not 25)
-  saying that user code operating on a range may not invalidate
-  iterators unless otherwise specified.  Bill will provide wording.]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Moved to NAD.
-</p>
-<p>
-It was felt that the current description is adequate, and that there are
-limits to what the standard can reasonably say to prohibit perverse uses
-of the library.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="293"></a>293. Order of execution in transform algorithm</h3>
-<p><b>Section:</b> 25.3.4 [alg.transform] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 2001-01-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.transform">issues</a> in [alg.transform].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>This issue is related to issue 242.  In case that the resolution
-proposed for issue 242 is accepted, we have have the following
-situation: The 4 numeric algorithms (accumulate and consorts) as well
-as transform would allow a certain category of side effects.  The
-numeric algorithms specify that they invoke the functor &quot;for
-every iterator i in the range [first, last) in order&quot;. transform,
-in contrast, would not give any guarantee regarding order of
-invocation of the functor, which means that the functor can be invoked
-in any arbitrary order.
-</p>
-
-<p>Why would that be a problem?  Consider an example: say the
-transformator that is a simple enumerator ( or more generally
-speaking, &quot;is order-sensitive&quot; ).  Since a standard
-compliant implementation of transform is free to invoke the enumerator
-in no definite order, the result could be a garbled enumeration.
-Strictly speaking this is not a problem, but it is certainly at odds
-with the prevalent understanding of transform as an algorithms that
-assigns &quot;a new _corresponding_ value&quot; to the output
-elements.
-</p>
-
-<p>All implementations that I know of invoke the transformator in
-definite order, namely starting from first and proceeding to last -
-1. Unless there is an optimization conceivable that takes advantage of
-the indefinite order I would suggest to specify the order, because it
-eliminate the uncertainty that users would otherwise have regarding
-the order of execution of their potentially order-sensitive function
-objects.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In section 25.2.3 - Transform [lib.alg.transform] change:</p>
-<blockquote><p>
--1- Effects: Assigns through every iterator i in the range [result,
-result + (last1 - first1)) a new corresponding
-value equal to op(*(first1 + (i - result)) or binary_op(*(first1 +
-(i - result), *(first2 + (i - result))).
-</p></blockquote>
-<p>to:</p>
-<blockquote><p>
--1- Effects: Computes values by  invoking the operation op or binary_op 
-for every iterator in the range [first1, last1) in order. Assigns through
-every iterator i in the range [result, result + (last1 - first1)) a new
-corresponding
-value equal to op(*(first1 + (i - result)) or binary_op(*(first1 +
-(i - result), *(first2 + (i - result))).
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>For Input Iterators an order is already guaranteed, because
-only one order is possible.  If a user who passes a Forward
-Iterator to one of these algorithms really needs a specific
-order of execution, it's possible to achieve that effect by
-wrapping it in an Input Iterator adaptor.</p>
-
-
-
-
-
-<hr>
-<h3><a name="299"></a>299. Incorrect return types for iterator dereference</h3>
-<p><b>Section:</b> 24.2.6 [bidirectional.iterators], 24.2.7 [random.access.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> John Potter <b>Opened:</b> 2001-01-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bidirectional.iterators">issues</a> in [bidirectional.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In section 24.2.6 [bidirectional.iterators],
-Table 75 gives the return type of <tt>*r--</tt> as convertible to <tt>T</tt>.  This is
-not consistent with Table 74 which gives the return type of <tt>*r++</tt> as
-<tt>T&amp;</tt>.  <tt>*r++ = t</tt> is valid while <tt>*r-- = t</tt> is invalid.
-</p>
-
-<p>
-In section 24.2.7 [random.access.iterators],
-Table 76 gives the return type of <tt>a[n]</tt> as convertible to <tt>T</tt>.  This is
-not consistent with the semantics of <tt>*(a + n)</tt> which returns <tt>T&amp;</tt> by
-Table 74.  <tt>*(a + n) = t</tt> is valid while <tt>a[n] = t</tt> is invalid.
-</p>
-
-<p>
-Discussion from the Copenhagen meeting: the first part is
-uncontroversial.  The second part, <tt>operator[]</tt> for Random Access
-Iterators, requires more thought.  There are reasonable arguments on
-both sides.  Return by value from <tt>operator[]</tt> enables some potentially
-useful iterators, e.g. a random access "iota iterator" (a.k.a
-"counting iterator" or "int iterator").  There isn't any obvious way
-to do this with return-by-reference, since the reference would be to a
-temporary.  On the other hand, <tt>reverse_iterator</tt> takes an
-arbitrary Random Access Iterator as template argument, and its
-<tt>operator[]</tt> returns by reference.  If we decided that the return type
-in Table 76 was correct, we would have to change
-<tt>reverse_iterator</tt>.  This change would probably affect user
-code.
-</p>
-
-<p>
-History: the contradiction between <tt>reverse_iterator</tt> and the
-Random Access Iterator requirements has been present from an early
-stage.  In both the STL proposal adopted by the committee
-(N0527==94-0140) and the STL technical report (HPL-95-11 (R.1), by
-Stepanov and Lee), the Random Access Iterator requirements say that
-<tt>operator[]</tt>'s return value is "convertible to <tt>T</tt>".  In N0527
-reverse_iterator's <tt>operator[]</tt> returns by value, but in HPL-95-11
-(R.1), and in the STL implementation that HP released to the public,
-reverse_iterator's <tt>operator[]</tt> returns by reference.  In 1995, the
-standard was amended to reflect the contents of HPL-95-11 (R.1).  The
-original intent for <tt>operator[]</tt> is unclear.
-</p>
-
-<p>
-In the long term it may be desirable to add more fine-grained 
-iterator requirements, so that access method and traversal strategy
-can be decoupled.  (See "Improved Iterator Categories and
-Requirements", N1297 = 01-0011, by Jeremy Siek.)  Any decisions
-about issue 299 should keep this possibility in mind.
-</p>
-
-<p>Further discussion: I propose a compromise between John Potter's
-resolution, which requires <tt>T&amp;</tt> as the return type of
-<tt>a[n]</tt>, and the current wording, which requires convertible to
-<tt>T</tt>. The compromise is to keep the convertible to <tt>T</tt>
-for the return type of the expression <tt>a[n]</tt>, but to also add
-<tt>a[n] = t</tt> as a valid expression. This compromise "saves" the
-common case uses of random access iterators, while at the same time
-allowing iterators such as counting iterator and caching file
-iterators to remain random access iterators (iterators where the
-lifetime of the object returned by <tt>operator*()</tt> is tied to the
-lifetime of the iterator).
-</p>
-
-<p>
-Note that the compromise resolution necessitates a change to
-<tt>reverse_iterator</tt>. It would need to use a proxy to support
-<tt>a[n] = t</tt>.
-</p>
-
-<p>
-Note also there is one kind of mutable random access iterator that
-will no longer meet the new requirements. Currently, iterators that
-return an r-value from <tt>operator[]</tt> meet the requirements for a
-mutable random access iterator, even though the expression <tt>a[n] =
-t</tt> will only modify a temporary that goes away. With this proposed
-resolution, <tt>a[n] = t</tt> will be required to have the same
-operational semantics as <tt>*(a + n) = t</tt>.
-</p>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-09-18 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Why can't we write through the reference returned from <tt>operator[]</tt> on a
-random access iterator?
-</p>
-
-<p>
-Recommended solution:
-</p>
-
-<p>
-In table Table 104 &mdash; Random access iterator requirements, replace
-</p>
-
-<blockquote><p>
-<tt>a[n]</tt> : convertible to <del><tt>const T &amp;</tt></del>
-<ins><tt>T&amp;</tt> if <tt>X</tt> is mutable, otherwise convertible to <tt>const T&amp;</tt></ins>
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open. Alisdair to spearhead a paper on revivification.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In section 24.1.4 [lib.bidirectdional.iterators], change the return
-type in table 75 from &quot;convertible to <tt>T</tt>&quot; to
-<tt>T&amp;</tt>.
-</p>
-
-<p>
-In section 24.1.5 [lib.random.access.iterators], change the
-operational semantics for <tt>a[n]</tt> to &quot; the r-value of
-<tt>a[n]</tt> is equivalent to the r-value of <tt>*(a +
-n)</tt>&quot;. Add a new row in the table for the expression <tt>a[n] = t</tt>
-with a return type of convertible to <tt>T</tt> and operational semantics of
-<tt>*(a + n) = t</tt>.
-</p>
-
-<p><i>[Lillehammer: Real problem, but should be addressed as part of
-  iterator redesign]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2758.pdf">N2758</a>.
-</p></blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="302"></a>302. Need error indication from codecvt&lt;&gt;::do_length</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Gregory Bumgardner <b>Opened:</b> 2001-01-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The effects of <tt>codecvt&lt;&gt;::do_length()</tt> are described in
-22.2.1.5.2, paragraph 10.  As implied by that paragraph, and clarified
-in issue <a href="lwg-defects.html#75">75</a>, <tt>codecvt&lt;&gt;::do_length()</tt> must
-process the source data and update the <tt>stateT</tt> argument just
-as if the data had been processed by <tt>codecvt&lt;&gt;::in()</tt>.
-However, the standard does not specify how <tt>do_length()</tt> would
-report a translation failure, should the source sequence contain
-untranslatable or illegal character sequences.
-</p>
-
-<p>
-The other conversion methods return an &quot;error&quot; result value
-to indicate that an untranslatable character has been encountered, but
-<tt>do_length()</tt> already has a return value (the number of source
-characters that have been processed by the method).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This issue cannot be resolved without modifying the interface. An exception
-cannot be used, as there would be no way to determine how many characters
-have been processed and the state object would be left in an indeterminate
-state.
-</p>
-
-<p>
-A source compatible solution involves adding a fifth argument to length()
-and do_length() that could be used to return position of the offending
-character sequence. This argument would have a default value that would
-allow it to be ignored:
-</p>
-
-<pre>
-  int length(stateT&amp; state, 
-             const externT* from, 
-             const externT* from_end, 
-             size_t max,
-             const externT** from_next = 0);
-
-  virtual
-  int do_length(stateT&amp; state, 
-                const externT* from, 
-                const externT* from_end, 
-                size_t max,
-                const externT** from_next);
-</pre>
-
-<p>
-Then an exception could be used to report any translation errors and
-the from_next argument, if used, could then be used to retrieve the
-location of the offending character sequence.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The standard is already clear: the return value is the number of
-"valid complete characters".  If it encounters an invalid sequence of
-external characters, it stops.</p>
-
-
-
-
-
-<hr>
-<h3><a name="304"></a>304. Must <tt>*a</tt> return an lvalue when <tt>a</tt> is an input iterator?</h3>
-<p><b>Section:</b> X [iterator.concepts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2001-02-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.concepts">issues</a> in [iterator.concepts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We all &quot;know&quot; that input iterators are allowed to produce
-values when dereferenced of which there is no other in-memory copy.
-</p>
-
-<p>
-But: Table 72, with a careful reading, seems to imply that this can only be
-the case if the value_type has no members (e.g. is a built-in type).
-</p>
-
-<p>The problem occurs in the following entry:</p>
-
-<pre>
-  a->m     pre: (*a).m is well-defined
-           Equivalent to (*a).m
-</pre>
-
-<p>
-<tt>*a.m</tt> can be well-defined if <tt>*a</tt> is not a reference
-type, but since <tt>operator->()</tt> must return a pointer for
-<tt>a->m</tt> to be well-formed, it needs something to return a
-pointer <i>to</i>. This seems to indicate that <tt>*a</tt> must be
-buffered somewhere to make a legal input iterator.
-</p>
-
-<p>I don't think this was intentional.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The current standard is clear and consistent.  Input iterators that
-  return rvalues are in fact implementable.  They may in some cases
-  require extra work, but it is still possible to define an operator->
-  in such cases: it doesn't have to return a T*, but may return a
-  proxy type.  No change to the standard is justified.</p>
-
-
-
-
-
-<hr>
-<h3><a name="309"></a>309. Does sentry catch exceptions?</h3>
-<p><b>Section:</b> 27.7 [iostream.format] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.format">issues</a> in [iostream.format].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The descriptions of the constructors of basic_istream&lt;&gt;::sentry
-(27.7.2.1.3 [istream::sentry]) and basic_ostream&lt;&gt;::sentry
-(27.7.3.4 [ostream::sentry]) do not explain what the functions do in
-case an exception is thrown while they execute. Some current
-implementations allow all exceptions to propagate, others catch them
-and set ios_base::badbit instead, still others catch some but let
-others propagate.
-</p>
-
-<p>
-The text also mentions that the functions may call setstate(failbit)
-(without actually saying on what object, but presumably the stream
-argument is meant).  That may have been fine for
-basic_istream&lt;&gt;::sentry prior to issue <a href="lwg-defects.html#195">195</a>, since
-the function performs an input operation which may fail. However,
-issue <a href="lwg-defects.html#195">195</a> amends 27.7.2.1.3 [istream::sentry], p2 to
-clarify that the function should actually call setstate(failbit |
-eofbit), so the sentence in p3 is redundant or even somewhat
-contradictory.
-</p>
-
-<p>
-The same sentence that appears in 27.7.3.4 [ostream::sentry], p3
-doesn't seem to be very meaningful for basic_istream&lt;&gt;::sentry
-which performs no input. It is actually rather misleading since it
-would appear to guide library implementers to calling
-setstate(failbit) when os.tie()-&gt;flush(), the only called function,
-throws an exception (typically, it's badbit that's set in response to
-such an event).
-</p>
-
-<p><b>Additional comments from Martin, who isn't comfortable with the
-    current proposed resolution</b> (see c++std-lib-11530)</p>
-
-<p>
-The istream::sentry ctor says nothing about how the function
-deals with exemptions (27.6.1.1.2, p1 says that the class is
-responsible for doing "exception safe"(*) prefix and suffix
-operations but it doesn't explain what level of exception
-safety the class promises to provide). The mockup example
-of a "typical implementation of the sentry ctor" given in
-27.6.1.1.2, p6, removed in ISO/IEC 14882:2003, doesn't show
-exception handling, either. Since the ctor is not classified
-as a formatted or unformatted input function, the text in
-27.6.1.1, p1 through p4 does not apply. All this would seem
-to suggest that the sentry ctor should not catch or in any
-way handle exceptions thrown from any functions it may call.
-Thus, the typical implementation of an istream extractor may
-look something like [1].
-</p>
-
-<p>
-The problem with [1] is that while it correctly sets ios::badbit
-if an exception is thrown from one of the functions called from
-the sentry ctor, if the sentry ctor reaches EOF while extracting
-whitespace from a stream that has eofbit or failbit set in
-exceptions(), it will cause an ios::failure to be thrown, which
-will in turn cause the extractor to set ios::badbit.
-</p>
-
-<p>
-The only straightforward way to prevent this behavior is to
-move the definition of the sentry object in the extractor
-above the try block (as suggested by the example in 22.2.8,
-p9 and also indirectly supported by 27.6.1.3, p1). See [2].
-But such an implementation will allow exceptions thrown from
-functions called from the ctor to freely propagate to the
-caller regardless of the setting of ios::badbit in the stream
-object's exceptions().
-</p>
-
-<p>
-So since neither [1] nor [2] behaves as expected, the only
-possible solution is to have the sentry ctor catch exceptions
-thrown from called functions, set badbit, and propagate those
-exceptions if badbit is also set in exceptions(). (Another
-solution exists that deals with both kinds of sentries, but
-the code is non-obvious and cumbersome -- see [3].)
-</p>
-
-<p>
-Please note that, as the issue points out, current libraries
-do not behave consistently, suggesting  that implementors are
-not quite clear on the exception handling in istream::sentry,
-despite the fact that some LWG members might feel otherwise.
-(As documented by the parenthetical comment here:
-http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1480.html#309)
-</p>
-
-<p>
-Also please note that those LWG members who in Copenhagen
-felt that "a sentry's constructor should not catch exceptions,
-because sentries should only be used within (un)formatted input
-functions and that exception handling is the responsibility of
-those functions, not of the sentries," as noted here
-http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2001/n1310.html#309
-would in effect be either arguing for the behavior described
-in [1] or for extractors implemented along the lines of [3].
-</p>
-
-<p>
-The original proposed resolution (Revision 25 of the issues
-list) clarifies the role of the sentry ctor WRT exception
-handling by making it clear that extractors (both library
-or user-defined) should be implemented along the lines of
-[2] (as opposed to [1]) and that no exception thrown from
-the callees should propagate out of either function unless
-badbit is also set in exceptions().
-</p>
-
-
-<p>[1] Extractor that catches exceptions thrown from sentry:</p>
-
-<blockquote>
-<pre>
-struct S { long i; };
-
-istream&amp; operator&gt;&gt; (istream &amp;strm, S &amp;s)
-{
-    ios::iostate err = ios::goodbit;
-    try {
-        const istream::sentry guard (strm, false);
-        if (guard) {
-            use_facet&lt;num_get&lt;char&gt; &gt;(strm.getloc ())
-                .get (istreambuf_iterator&lt;char&gt;(strm),
-                      istreambuf_iterator&lt;char&gt;(),
-                      strm, err, s.i);
-        }
-    }
-    catch (...) {
-        bool rethrow;
-        try {
-            strm.setstate (ios::badbit);
-            rethrow = false;
-        }
-        catch (...) {
-            rethrow = true;
-        }
-        if (rethrow)
-            throw;
-    }
-    if (err)
-        strm.setstate (err);
-    return strm;
-}
-</pre>
-</blockquote>
-
-<p>[2] Extractor that propagates exceptions thrown from sentry:</p>
-
-<blockquote>
-<pre>
-istream&amp; operator&gt;&gt; (istream &amp;strm, S &amp;s)
-{
-    istream::sentry guard (strm, false);
-    if (guard) {
-        ios::iostate err = ios::goodbit;
-        try {
-            use_facet&lt;num_get&lt;char&gt; &gt;(strm.getloc ())
-                .get (istreambuf_iterator&lt;char&gt;(strm),
-                      istreambuf_iterator&lt;char&gt;(),
-                      strm, err, s.i);
-        }
-        catch (...) {
-            bool rethrow;
-            try {
-                strm.setstate (ios::badbit);
-                rethrow = false;
-            }
-            catch (...) {
-                rethrow = true;
-            }
-            if (rethrow)
-                throw;
-        }
-        if (err)
-            strm.setstate (err);
-    }
-    return strm;
-}
-</pre>
-</blockquote>
-
-<p>
-[3] Extractor that catches exceptions thrown from sentry
-but doesn't set badbit if the exception was thrown as a
-result of a call to strm.clear().
-</p>
-
-<blockquote>
-<pre>
-istream&amp; operator&gt;&gt; (istream &amp;strm, S &amp;s)
-{
-    const ios::iostate state = strm.rdstate ();
-    const ios::iostate except = strm.exceptions ();
-    ios::iostate err = std::ios::goodbit;
-    bool thrown = true;
-    try {
-        const istream::sentry guard (strm, false);
-        thrown = false;
-        if (guard) {
-            use_facet&lt;num_get&lt;char&gt; &gt;(strm.getloc ())
-                .get (istreambuf_iterator&lt;char&gt;(strm),
-                      istreambuf_iterator&lt;char&gt;(),
-                      strm, err, s.i);
-        }
-    }
-    catch (...) {
-        if (thrown &amp;&amp; state &amp; except)
-            throw;
-        try {
-            strm.setstate (ios::badbit);
-            thrown = false;
-        }
-        catch (...) {
-            thrown = true;
-        }
-        if (thrown)
-            throw;
-    }
-    if (err)
-        strm.setstate (err);
-
-    return strm;
-}
-</pre>
-</blockquote>
-
-<p>
-[Pre-Berlin] Reopened at the request of Paolo Carlini and Steve Clamage.
-</p>
-
-<p>
-[Pre-Portland] A relevant newsgroup post:
-</p>
-
-<p>
-The current proposed resolution of issue #309
-(http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#309)  is
-unacceptable.   I write commerical software and coding around this
-makes my code ugly, non-intuitive, and requires comments referring
-people to this very issue.   Following is the full explanation of my
-experience.
-</p>
-<p>
-In the course of writing software for commercial use, I constructed
-std::ifstream's based on user-supplied pathnames on typical POSIX
-systems.
-</p>
-<p>
-It was expected that some files that opened successfully might not read
-successfully -- such as a pathname which actually refered to a
-directory.   Intuitively, I expected the streambuffer underflow() code
-to throw an exception in this situation, and recent implementations of
-libstdc++'s basic_filebuf do just that (as well as many of my own
-custom streambufs).
-</p>
-<p>
-I also intuitively expected that the istream code would convert these
-exceptions to the "badbit' set on the stream object, because I had not
-requested exceptions.    I refer to 27.6.1.1. P4.
-</p>
-<p>
-However, this was not the case on at least two implementations -- if
-the first thing I did with an istream was call operator>>( T&amp; ) for T
-among the basic arithmetic types and std::string.   Looking further I
-found that the sentry's constructor was invoking the exception when it
-pre-scanned for whitespace, and the extractor function (operator>>())
-was not catching exceptions in this situation.
-</p>
-<p>
-So, I was in a situation where setting 'noskipws' would change the
-istream's behavior even though no characters (whitespace or not) could
-ever be successfully read.
-</p>
-<p>
-Also, calling .peek() on the istream before calling the extractor()
-changed the behavior (.peek() had the effect of setting the badbit
-ahead of time).
-</p>
-<p>
-I found this all to be so inconsistent and inconvenient for me and my
-code design, that I filed a bugzilla entry for libstdc++.   I was then
-told that the bug cannot be fixed until issue #309 is resolved by the
-committee.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Moved to NAD.
-</p>
-<p>
-See the rationale in the issue. Paolo, who requested that the issue be
-reopened, agreed with the rationale.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agrees there is minor variation between implementations,
-  but believes that it doesn't matter. This is a rarely used corner
-  case. There is no evidence that this has any commercial importance
-  or that it causes actual portability problems for customers trying
-  to write code that runs on multiple implementations.</p>
-
-
-
-
-
-<hr>
-<h3><a name="313"></a>313. set_terminate and set_unexpected question</h3>
-<p><b>Section:</b> 18.8.3.4 [terminate] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2001-04-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#terminate">issues</a> in [terminate].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to section 18.7.3.3 of the standard, std::terminate() is
-supposed to call the terminate_handler in effect immediately after
-evaluating the throw expression.
-</p>
-
-<p>
-Question: what if the terminate_handler in effect is itself
-std::terminate?
-</p>
-
-<p>For example:</p>
-
-<pre>
-  #include &lt;exception&gt;
-
-  int main () {
-      std::set_terminate(std::terminate);
-      throw 5;
-      return 0;
-  }
-</pre>
-
-<p>
-Is the implementation allowed to go into an infinite loop?
-</p>
-
-<p>
-I think the same issue applies to std::set_unexpected.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>Infinite recursion is to be expected: users who set the terminate
-handler to <tt>terminate</tt> are explicitly asking for <tt>terminate</tt>
-to call itself.</p>
-
-
-
-
-
-<hr>
-<h3><a name="314"></a>314. Is the stack unwound when terminate() is called?</h3>
-<p><b>Section:</b> 18.8.3.4 [terminate] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2001-04-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#terminate">issues</a> in [terminate].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The standard appears to contradict itself about whether the stack is
-unwound when the implementation calls terminate().
-</p>
-
-<p>From 18.7.3.3p2:</p>
-<blockquote><p>
-    Calls the terminate_handler function in effect immediately
-    after evaluating the throw-expression (lib.terminate.handler),
-    if called by the implementation [...]
-</p></blockquote>
-
-<p>So the stack is guaranteed not to be unwound.</p>
-
-<p>But from 15.3p9:</p>
-<blockquote><p>
-    [...]whether or not the stack is unwound before this call
-    to terminate() is implementation-defined (except.terminate).
-</p></blockquote>
-
-<p>
-And 15.5.1 actually defines that in most cases the stack is unwound.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>There is definitely no contradiction between the core and library
-clauses; nothing in the core clauses says that stack unwinding happens
-after <tt>terminate</tt> is called.  18.7.3.3p2 does not say anything
-about when terminate() is called; it merely specifies which
-<tt>terminate_handler</tt> is used.</p>
-
-
-
-
-
-<hr>
-<h3><a name="323"></a>323. <tt>abs()</tt> overloads in different headers</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2001-06-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Currently the standard mandates the following overloads of
-abs():</p>
-
-<pre>
-    abs(long), abs(int) in &lt;cstdlib&gt;
-
-    abs(float), abs(double), abs(long double) in &lt;cmath&gt;
-
-    template&lt;class T&gt; T abs(const complex&lt;T&gt;&amp;) in &lt;complex&gt;
-
-    template&lt;class T&gt; valarray&lt;T&gt; abs(const valarray&lt;T&gt;&amp;); in &lt;valarray&gt;
-</pre>
-
-<p>
-The problem is that having only some overloads visible of a function
-that works on "implicitly inter-convertible" types is dangerous in
-practice. The headers that get included at any point in a translation
-unit can change unpredictably during program
-development/maintenance. The wrong overload might be unintentionally
-selected.
-</p>
-
-<p>
-Currently, there is nothing that mandates the simultaneous visibility
-of these overloads. Indeed, some vendors have begun fastidiously
-reducing dependencies among their (public) headers as a QOI issue: it
-helps people to write portable code by refusing to compile unless all
-the correct headers are #included.
-</p>
-
-<p>The same issue may exist for other functions in the library.</p>
-
-<p>Redmond: PJP reports that C99 adds two new kinds of <tt>abs</tt>: <tt>complex</tt>,
-and <tt>int_max_abs</tt>.</p>
-
-<p>Related issue: <a href="lwg-defects.html#343">343</a>.</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-The situation is not sufficiently severe to warrant a change.
-</p></blockquote>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The programs that could potentially be broken by this situation are
-  already fragile, and somewhat contrived: For example, a user-defined
-  class that has conversion overloads both to <tt>long</tt> and
-  to <tt>float</tt>.  If <tt>x</tt> is a value of such a class, then
-  <tt>abs(x)</tt> would give the <tt>long</tt> version if the user
-  included &lt;cstdlib&gt;, the <tt>float</tt> version if the user
-  included &lt;cmath&gt;, and would be diagnosed as ambiguous at
-  compile time if the user included both headers.  The LWG couldn't
-  find an example of a program whose meaning would be changed (as
-  opposed to changing it from well-formed to ill-formed) simply by
-  adding another standard header.</p>
-
-<p>Since the harm seems minimal, and there don't seem to be any simple
-  and noninvasive solutions, this is being closed as NAD.  It is
-  marked as "Future" for two reasons.  First, it might be useful to
-  define an <tt>&lt;all&gt;</tt> header that would include all
-  Standard Library headers.  Second, we should at least make sure that
-  future library extensions don't make this problem worse.</p>
-
-
-
-
-
-<hr>
-<h3><a name="326"></a>326. Missing typedef in moneypunct_byname</h3>
-<p><b>Section:</b> 22.4.6.4 [locale.moneypunct.byname] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-07-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The definition of the moneypunct facet contains the typedefs char_type
-and string_type. Only one of these names, string_type, is defined in
-the derived facet, moneypunct_byname.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>For consistency with the numpunct facet, add a typedef for
-char_type to the definition of the moneypunct_byname facet in
-22.4.6.4 [locale.moneypunct.byname].</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The absence of the typedef is irrelevant.  Users can still access
-the typedef, because it is inherited from the base class.</p>
-
-
-
-
-
-<hr>
-<h3><a name="330"></a>330. Misleading "exposition only" value in class locale definition</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-07-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The "exposition only" value of the std::locale::none constant shown in
-the definition of class locale is misleading in that it on many
-systems conflicts with the value assigned to one if the LC_XXX
-constants (specifically, LC_COLLATE on AIX, LC_ALL on HP-UX, LC_CTYPE
-on Linux and SunOS). This causes incorrect behavior when such a
-constant is passed to one of the locale member functions that accept a
-locale::category argument and interpret it as either the C LC_XXX
-constant or a bitmap of locale::category values. At least three major
-implementations adopt the suggested value without a change and
-consequently suffer from this problem.
-</p>
-
-<p>
-For instance, the following code will (presumably) incorrectly copy facets
-belonging to the collate category from the German locale on AIX:
-</p>
-
-<pre>
-  std::locale l (std::locale ("C"), "de_DE", std::locale::none);
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agrees that it may be difficult to implement locale member
-functions in such a way that they can take either <tt>category</tt>
-arguments or the LC_ constants defined in &lt;cctype&gt;.  In light of
-this requirement (22.3.1.1.1 [locale.category], paragraph 2), and in light
-of the requirement in the preceding paragraph that it is possible to
-combine <tt>category</tt> bitmask elements with bitwise operations,
-defining the <tt>category</tt> elements is delicate,
-particularly if an implementor is constrained to work with a
-preexisting C library.  (Just using the existing LC_ constants would
-not work in general.)  There's no set of "exposition only" values that
-could give library implementors proper guidance in such a delicate
-matter.  The non-normative example we're giving is no worse than
-any other choice would be.</p>
-
-<p>See issue <a href="lwg-defects.html#347">347</a>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="332"></a>332. Consider adding increment and decrement operators to std::fpos&lt; T &gt; </h3>
-<p><b>Section:</b> 27.5.4 [fpos] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> PremAnand M. Rao <b>Opened:</b> 2001-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fpos">issues</a> in [fpos].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Increment and decrement operators are missing from 
-Table 88 -- Position type requirements in 27.5.4 [fpos].
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Table 88 (section 27.4.3) -- Position type requirements
-be updated to include increment and decrement operators.
-</p>
-
-<pre>
-expression        return type     operational    note
-
-++p               fpos&amp;           p += O(1)
-p++               fpos            { P tmp = p;
-                                    ++p;
-                                    return tmp; }
---p               fpos&amp;           p -= O(1)
-p--               fpos            { P tmp = p;
-                                    --p;
-                                    return tmp; }
-</pre>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes this is a request for extension, not a defect
-report.  Additionally, nobody saw a clear need for this extension;
-<tt>fpos</tt> is used only in very limited ways.</p>
-
-
-
-
-
-<hr>
-<h3><a name="342"></a>342. seek and eofbit</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2001-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>I think we have a defect.</p>
-
-<p>According to lwg issue <a href="lwg-defects.html#60">60</a> which is now a dr, the
-description of seekg in 27.7.2.3 [istream.unformatted] paragraph 38 now looks
-like:</p>
-
-<blockquote><p>
-Behaves as an unformatted input function (as described in 27.6.1.3, 
-paragraph 1), except that it does not count the number of characters 
-extracted and does not affect the value returned by subsequent calls to 
-gcount(). After constructing a sentry object, if fail() != true, 
-executes rdbuf()->pubseekpos( pos).
-</p></blockquote>
-
-<p>And according to lwg issue <a href="lwg-defects.html#243">243</a> which is also now a dr,
-27.6.1.3, paragraph 1 looks like:</p>
-
-<blockquote><p>
-Each unformatted input function begins execution by constructing an 
-object of class sentry with the default argument noskipws (second) 
-argument true. If the sentry object returns true, when converted to a 
-value of type bool, the function endeavors to obtain the requested 
-input.  Otherwise, if the sentry constructor exits by throwing an 
-exception or if the sentry object returns false, when converted to a 
-value of type bool, the function returns without attempting to obtain 
-any input. In either case the number of extracted characters is set to 
-0; unformatted input functions taking a character array of non-zero 
-size as an argument shall also store a null character (using charT()) 
-in the first location of the array. If an exception is thrown during 
-input then ios::badbit is turned on in *this'ss error state. If 
-(exception()&amp;badbit)!= 0 then the exception is rethrown. It also counts 
-the number of characters extracted. If no exception has been thrown it 
-ends by storing the count in a member object and returning the value 
-specified. In any event the sentry object is destroyed before leaving 
-the unformatted input function.
-</p></blockquote>
-
-<p>And finally 27.6.1.1.2/5 says this about sentry:</p>
-
-<blockquote><p>
-If, after any preparation is completed, is.good() is true, ok_ != false 
-otherwise, ok_ == false.
-</p></blockquote>
-
-<p>
-So although the seekg paragraph says that the operation proceeds if 
-!fail(), the behavior of unformatted functions says the operation 
-proceeds only if good().  The two statements are contradictory when only 
-eofbit is set.  I don't think the current text is clear which condition 
-should be respected.
-</p>
-
-<p><b>Further discussion from Redmond:</b></p>
-
-<p>PJP: It doesn't seem quite right to say that <tt>seekg</tt> is
-"unformatted". That makes specific claims about sentry that
-aren't quite appropriate for seeking, which has less fragile failure
-modes than actual input.  If we do really mean that it's unformatted
-input, it should behave the same way as other unformatted input.  On
-the other hand, "principle of least surprise" is that seeking from EOF
-ought to be OK.</p>
-
-<p>
-Pre-Berlin:  Paolo points out several problems with the proposed resolution in
-Ready state:
-</p>
-
-<ul>
-<li>It should apply to both overloads of seekg.</li>
-<li>tellg has similar issues, except that it should not call clear().</li>
-<li>The point about clear() seems to apply to seekp().</li>
-<li>Depending on the outcome of <a href="lwg-defects.html#419">419</a>
-if the sentry
-sets <tt>failbit</tt> when it finds <tt>eofbit</tt> already set, then
-you can never seek away from the end of stream.</li>
-</ul>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Moved to NAD. Will reopen if proposed resolution is supplied.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change 27.7.2.3 [istream.unformatted] to:</p>
-<blockquote><p>
-Behaves as an unformatted input function (as described in 27.6.1.3,
-paragraph 1), except that it does not count the number of characters
-extracted, does not affect the value returned by subsequent calls to
-gcount(), and does not examine the value returned by the sentry
-object. After constructing a sentry object, if <tt>fail() !=
-true</tt>, executes <tt>rdbuf()->pubseekpos(pos)</tt>.  In
-case of success, the function calls clear().
-In case of failure, the function calls <tt>setstate(failbit)</tt>
-(which may throw <tt>ios_base::failure</tt>).
-</p></blockquote>
-
-<p><i>[Lillehammer: Matt provided wording.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>In C, fseek does clear EOF.  This is probably what most users would
-  expect.  We agree that having eofbit set should not deter a seek,
-  and that a successful seek should clear eofbit. Note
-  that <tt>fail()</tt> is true only if <tt>failbit</tt>
-  or <tt>badbit</tt> is set, so using <tt>!fail()</tt>, rather
-  than <tt>good()</tt>, satisfies this goal.</p>
-
-
-
-
-
-<hr>
-<h3><a name="344"></a>344. grouping + showbase</h3>
-<p><b>Section:</b> 22.4.2 [category.numeric] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2001-10-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When both grouping and showbase are active and the basefield is octal, 
-does the leading 0 participate in the grouping or not?  For example, 
-should one format as: 0,123,456 or 0123,456?
-</p>
-<p>
-An analogy can be drawn with hexadecimal.  It appears that 0x123,456 is 
-preferred over 0x,123,456.  However, this analogy is not universally 
-accepted to apply to the octal base.  The standard is not clear on how 
-to format (or parse) in this manner.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert into 22.4.3.1.2 [facet.numpunct.virtuals] paragraph 3, just before the last
-sentence:
-</p>
-<blockquote><p>
-The leading hexadecimal base specifier "0x" does not participate in 
-grouping.  The leading '0' octal base specifier may participate in 
-grouping.  It is unspecified if the leading '0' participates in 
-formatting octal numbers.  In parsing octal numbers, the implementation 
-is encouraged to accept both the leading '0' participating in the 
-grouping, and not participating (e.g. 0123,456 or 0,123,456).
-</p></blockquote>
-
-<p><b>Rationale:</b></p>
-<p>
-The current behavior may be unspecified, but it's not clear that it
-matters.  This is an obscure corner case, since grouping is usually
-intended for the benefit of humans and oct/hex prefixes are usually
-intended for the benefit of machines.  There is not a strong enough
-consensus in the LWG for action.
-</p>
-
-
-
-
-<hr>
-<h3><a name="348"></a>348. Minor issue with std::pair operator&lt;</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2001-10-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-active.html#532">532</a></p>
-<p><b>Discussion:</b></p>
-
-
-<p>
-The current wording of 20.2.2 [lib.pairs] p6 precludes the use of
-operator&lt; on any pair type which contains a pointer.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 20.3 [pairs] paragraph 6, replace:</p>
-<pre>
-    Returns: x.first &lt; y.first || (!(y.first &lt; x.first) &amp;&amp; x.second &lt;
-        y.second).
-</pre>
-<p>With:</p>
-<pre>
-    Returns: std::less&lt;T1&gt;()( x.first, y.first ) ||
-             (!std::less&lt;T1&gt;()( y.first, x.first) &amp;&amp; 
-             std::less&lt;T2&gt;()( x.second, y.second ) )
-</pre>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This is an instance of a much more general problem.  If we want
-  operator&lt; to translate to std::less for pairs of pointers, where
-  do we draw the line?  The same issue applies to individual
-  pointers, smart pointer wrappers, std::vector&lt;T*&gt;, and so
-  on.</p>
-
-<p>Andy Koenig suggests that the real issue here is that we aren't
-  distinguishing adequately between two different orderings, a
-  "useful ordering" and a "canonical ordering" that's used just
-  because we sometimes need <i>some</i> ordering without caring much
-  which ordering it is.  Another example of the later is typeinfo's
-  <tt>before</tt>.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="350"></a>350. allocator&lt;&gt;::address</h3>
-<p><b>Section:</b> 20.7.9.1 [allocator.members], 17.6.3.5 [allocator.requirements], 17.6.1.1 [contents] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 2001-10-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.members">issues</a> in [allocator.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#634">634</a></p>
-<p><b>Discussion:</b></p>
-<p>See c++std-lib-9006 and c++std-lib-9007.  This issue is taken
-verbatim from -9007.</p>
-
-<p>
-The core language feature allowing definition of operator&amp;() applied 
-to any non-builtin type makes that operator often unsafe to use in 
-implementing libraries, including the Standard Library.  The result
-is that many library facilities fail for legal user code, such as
-the fragment</p>
-<pre>
-  class A { private: A* operator&amp;(); };
-  std::vector&lt;A&gt; aa;
-
-  class B { };
-  B* operator&amp;(B&amp;) { return 0; }
-  std::vector&lt;B&gt; ba;
-</pre>
-
-<p>
-In particular, the requirements table for Allocator (Table 32) specifies
-no semantics at all for member address(), and allocator&lt;&gt;::address is 
-defined in terms of unadorned operator &amp;.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.6.1.1, Change the definition of allocator&lt;&gt;::address from:</p>
-<blockquote><p>
-  Returns: &amp;x
-</p></blockquote>
-
-<p>to:</p>
-
-<p>
-  Returns: The value that the built in operator&amp;(x) would return if not 
-  overloaded.
-</p>
-
-<p>
-In 20.1.6, Table 32, add to the Notes column of the a.address(r) and
-a.address(s) lines, respectively: 
-</p>
-
-<pre>
-  allocator&lt;T&gt;::address(r)
-  allocator&lt;T&gt;::address(s)
-</pre> 
-
-<p>In addition, in clause 17.4.1.1, add a statement:</p>
-
-<blockquote><p>
- The Standard Library does not apply operator&amp; to any type for which
- operator&amp; may be overloaded.
-</p></blockquote> 
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes both examples are ill-formed.  The contained type
-is required to be CopyConstructible (17.6.3.1 [utility.arg.requirements]), and that
-includes the requirement that &amp;t return the usual types and
-values. Since allocators are intended to be used in conjunction with
-containers, and since the CopyConstructible requirements appear to
-have been written to deal with the concerns of this issue, the LWG
-feels it is NAD unless someone can come up with a well-formed example
-exhibiting a problem.</p>
-
-<p>It may well be that the CopyConstructible requirements are too
-  restrictive and that either the container requirements or the
-  CopyConstructive requirements should be relaxed, but that's a far
-  larger issue.  Marking this issue as "future" as a pointer to that
-  larger issue.</p>
-
-
-
-
-
-<hr>
-<h3><a name="351"></a>351. unary_negate and binary_negate: struct or class?</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Dale Riley <b>Opened:</b> 2001-11-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.9 [function.objects] the header &lt;functional&gt; synopsis declares
-the unary_negate and binary_negate function objects as struct.
-However in 20.9.9 [negators] the unary_negate and binary_negate
-function objects are defined as class.  Given the context, they are
-not "basic function objects" like negate, so this is either a typo or
-an editorial oversight.
-</p>
-
-<p><i>[Taken from comp.std.c++]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the synopsis to reflect the useage in 20.9.9 [negators]</p>
-
-<p><i>[Cura&ccedil;ao: Since the language permits &quot;struct&quot;, the LWG
-views this as NAD. They suggest, however, that the Project Editor
-might wish to make the change as editorial.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="356"></a>356. Meaning of ctype_base::mask enumerators</h3>
-<p><b>Section:</b> 22.4.1 [category.ctype] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2002-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#category.ctype">issues</a> in [category.ctype].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>What should the following program print?</p>
-
-<pre>
-  #include &lt;locale&gt;
-  #include &lt;iostream&gt;
-
-  class my_ctype : public std::ctype&lt;char&gt;
-  {
-    typedef std::ctype&lt;char&gt; base;
-  public:
-    my_ctype(std::size_t refs = 0) : base(my_table, false, refs)
-    {
-      std::copy(base::classic_table(), base::classic_table() + base::table_size,
-                my_table);
-      my_table[(unsigned char) '_'] = (base::mask) (base::print | base::space);
-    }
-  private:
-    mask my_table[base::table_size];
-  };
-
-  int main()
-  {
-    my_ctype ct;
-    std::cout &lt;&lt; "isspace: " &lt;&lt; ct.is(std::ctype_base::space, '_') &lt;&lt; "    "
-              &lt;&lt; "isalpha: " &lt;&lt; ct.is(std::ctype_base::alpha, '_') &lt;&lt; std::endl;
-  }
-</pre>
-
-<p>The goal is to create a facet where '_' is treated as whitespace.</p>
-
-<p>On gcc 3.0, this program prints "isspace: 1 isalpha: 0".  On
-Microsoft C++ it prints "isspace: 1 isalpha: 1".</p>
-
-<p>
-I believe that both implementations are legal, and the standard does not
-give enough guidance for users to be able to use std::ctype's
-protected interface portably.</p>
-
-<p>
-The above program assumes that ctype_base::mask enumerators like
-<tt>space</tt> and <tt>print</tt> are disjoint, and that the way to
-say that a character is both a space and a printing character is to or
-those two enumerators together.  This is suggested by the "exposition
-only" values in 22.4.1 [category.ctype], but it is nowhere specified in
-normative text.  An alternative interpretation is that the more
-specific categories subsume the less specific.  The above program
-gives the results it does on the Microsoft compiler because, on that
-compiler, <tt>print</tt> has all the bits set for each specific
-printing character class.
-</p>
-
-<p>From the point of view of std::ctype's public interface, there's no
-important difference between these two techniques.  From the point of
-view of the protected interface, there is.  If I'm defining a facet
-that inherits from std::ctype&lt;char&gt;, I'm the one who defines the
-value that table()['a'] returns.  I need to know what combination of
-mask values I should use.  This isn't so very esoteric: it's exactly
-why std::ctype has a protected interface.  If we care about users
-being able to write their own ctype facets, we have to give them a
-portable way to do it.
-</p>
-
-<p>
-Related reflector messages:
-lib-9224, lib-9226, lib-9229, lib-9270, lib-9272, lib-9273, lib-9274,
-lib-9277, lib-9279.
-</p>
-
-<p>Issue <a href="lwg-defects.html#339">339</a> is related, but not identical.  The
-proposed resolution if issue <a href="lwg-defects.html#339">339</a> says that
-ctype_base::mask must be a bitmask type. It does not say that the
-ctype_base::mask elements are bitmask elements, so it doesn't
-directly affect this issue.</p>
-
-<p>More comments from Benjamin Kosnik, who believes that 
-that C99 compatibility essentially requires what we're
-calling option 1 below.</p>
-
-<blockquote>
-<pre>
-I think the C99 standard is clear, that isspace -&gt; !isalpha.
---------
-
-#include &lt;locale&gt;
-#include &lt;iostream&gt;
-
-class my_ctype : public std::ctype&lt;char&gt;
-{
-private:
-  typedef std::ctype&lt;char&gt; base;
-  mask my_table[base::table_size];
-
-public:
-  my_ctype(std::size_t refs = 0) : base(my_table, false, refs)
-  {
-    std::copy(base::classic_table(), base::classic_table() + base::table_size,
-              my_table);
-    mask both = base::print | base::space;
-    my_table[static_cast&lt;mask&gt;('_')] = both;
-  }
-};
-
-int main()
-{
-  using namespace std;
-  my_ctype ct;
-  cout &lt;&lt; "isspace: " &lt;&lt; ct.is(ctype_base::space, '_') &lt;&lt; endl;
-  cout &lt;&lt; "isprint: " &lt;&lt; ct.is(ctype_base::print, '_') &lt;&lt; endl;
-
-  // ISO C99, isalpha iff upper | lower set, and !space.
-  // 7.5, p 193
-  // -&gt; looks like g++ behavior is correct.
-  // 356 -&gt; bitmask elements are required for ctype_base
-  // 339 -&gt; bitmask type required for mask
-  cout &lt;&lt; "isalpha: " &lt;&lt; ct.is(ctype_base::alpha, '_') &lt;&lt; endl;
-}
-</pre>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Informally, we have three choices:</p> 
-<ol>
-<li>Require that the enumerators are disjoint (except for alnum and
-graph)</li>
-<li>Require that the enumerators are not disjoint, and specify which
-of them subsume which others.  (e.g. mandate that lower includes alpha
-and print)</li>
-<li>Explicitly leave this unspecified, which the result that the above
-program is not portable.</li>
-</ol>
-
-<p>Either of the first two options is just as good from the standpoint
-of portability.  Either one will require some implementations to
-change.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agrees that this is a real ambiguity, and that both
-interpretations are conforming under the existing standard. However,
-there's no evidence that it's causing problems for real users. Users
-who want to define ctype facets portably can test the ctype_base masks
-to see which interpretation is being used.</p>
-
-
-
-
-
-<hr>
-<h3><a name="357"></a>357. &lt;cmath&gt; float functions cannot return HUGE_VAL</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2002-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The float versions of the math functions have no meaningful value to return 
-for a range error. The long double versions have a value they can return, 
-but it isn't necessarily the most reasonable value.
-</p>
-
-<p>
-Section 26.5 [lib.c.math], paragraph 5, says that C++ "adds float and long 
-double overloaded versions of these functions, with the same semantics," 
-referring to the math functions from the C90 standard.
-</p>
-
-<p>
-The C90 standard, in section 7.5.1, paragraph 3, says that functions return 
-"the value of the macro HUGE_VAL" when they encounter a range error. 
-Section 7.5, paragraph 2, defines HUGE_VAL as a macro that "expands to a 
-positive double expression, not necessarily representable as a float."
-</p>
-
-<p>
-Therefore, the float versions of the math functions have no way to
-signal a range error. <i>[Cura&ccedil;ao: The LWG notes that this isn't
-strictly correct, since errno is set.]</i> The semantics require that they
-return HUGE_VAL, but they cannot because HUGE_VAL might not be
-representable as a float.
-</p>
-
-<p>
-The problem with long double functions is less severe because HUGE_VAL is 
-representable as a long double. On the other hand, it might not be a "huge" 
-long double value, and might fall well within the range of normal return 
-values for a long double function. Therefore, it does not make sense for a 
-long double function to return a double (HUGE_VAL) for a range error.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Cura&ccedil;ao: C99 was faced with a similar problem, which they fixed by
-adding HUGE_VALF and HUGE_VALL in addition to HUGE_VAL.</p>
-
-<p>C++ must also fix, but it should be done in the context of the
-general C99 based changes to C++, not via DR. Thus the LWG in Cura&ccedil;ao
-felt the resolution should be NAD, FUTURE, but the issue is being held
-open for one more meeting to ensure LWG members not present during the
-discussion concur.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Will be fixed as part of more general work in the TR.</p>
-
-
-
-
-
-<hr>
-<h3><a name="361"></a>361. num_get&lt;&gt;::do_get (..., void*&amp;) checks grouping</h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.2.2.2.2, p12 specifies that <tt>thousands_sep</tt> is to be inserted only
-for integral types (issue 282 suggests that this should be done for
-all arithmetic types).
-</p>
-
-<p>
-22.2.2.1.2, p12 requires that grouping be checked for all extractors
-including that for <tt>void*</tt>.
-</p>
-
-<p>
-I don't think that's right. <tt>void*</tt> values should not be checked for
-grouping, should they? (Although if they should, then <tt>num_put</tt> needs
-to write them out, otherwise their extraction will fail.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the first sentence of 22.2.2.2.2, p12 from
-</p>
-<blockquote><p>
-    Digit grouping is checked. That is, the positions of discarded
-    separators is examined for consistency with
-    use_facet&lt;numpunct&lt;charT&gt; &gt;(loc).grouping().
-    If they are not consistent then ios_base::failbit is assigned
-    to err.
-</p></blockquote>
-
-<p>to</p>
-<blockquote><p>
-    Except for conversions to void*, digit grouping is checked...
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This would be a change: as it stands, the standard clearly
-  specifies that grouping applies to void*.  A survey of existing
-  practice shows that most existing implementations do that, as they
-  should.</p>
-
-
-
-
-
-<hr>
-<h3><a name="366"></a>366. Excessive const-qualification</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown, Marc Paterno <b>Opened:</b> 2002-05-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following member functions are declared const, yet return non-const
-pointers. We believe they are should be changed, because they allow code
-that may surprise the user. See document N1360 for details and
-rationale.
-</p>
-
-<p><i>[Santa Cruz: the real issue is that we've got const member
-functions that return pointers to non-const, and N1360 proposes
-replacing them by overloaded pairs.  There isn't a consensus about
-whether this is a real issue, since we've never said what our
-constness policy is for iostreams.  N1360 relies on a distinction
-between physical constness and logical constness; that distinction, or
-those terms, does not appear in the standard.]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.4.4 and 27.4.4.2</p>
-<p>Replace</p>
-<pre>
-  basic_ostream&lt;charT,traits&gt;* tie() const;
-</pre>
-<p>with</p>
-<pre>
-  basic_ostream&lt;charT,traits&gt;* tie();
-  const basic_ostream&lt;charT,traits&gt;* tie() const;
-</pre>
-
-<p>and replace</p>
-<pre>
-  basic_streambuf&lt;charT,traits&gt;* rdbuf() const;
-</pre>
-<p>with</p>
-<pre>
-  basic_streambuf&lt;charT,traits&gt;* rdbuf();
-  const basic_streambuf&lt;charT,traits&gt;* rdbuf() const;
-</pre>
-
-<p>In 27.5.2 and 27.5.2.3.1</p>
-<p>Replace</p>
-<pre>
-  char_type* eback() const;
-</pre>
-<p>with</p>
-<pre>
-  char_type* eback();
-  const char_type* eback() const;
-</pre>
-
-<p>Replace</p>
-<pre>
-  char_type gptr() const;
-</pre>
-<p>with</p>
-<pre>
-  char_type* gptr();
-  const char_type* gptr() const;
-</pre>
-
-<p>Replace</p>
-<pre>
-  char_type* egptr() const;
-</pre>
-<p>with</p>
-<pre>
-  char_type* egptr();
-  const char_type* egptr() const;
-</pre>
-
-<p>In 27.5.2 and 27.5.2.3.2</p>
-<p>Replace</p>
-<pre>
-  char_type* pbase() const;
-</pre>
-<p>with</p>
-<pre>
-  char_type* pbase();
-  const char_type* pbase() const;
-</pre>
-
-<p>Replace</p>
-<pre>
-  char_type* pptr() const;
-</pre>
-<p>with</p>
-<pre>
-  char_type* pptr();
-  const char_type* pptr() const;
-</pre>
-
-<p>Replace</p>
-<pre>
-  char_type* epptr() const;
-</pre>
-<p>with</p>
-<pre>
-  char_type* epptr();
-  const char_type* epptr() const;
-</pre>
-
-<p>In 27.7.2, 27.7.2.2, 27.7.3 27.7.3.2, 27.7.4, and 27.7.6</p>
-<p>Replace</p>
-<pre>
-  basic_stringbuf&lt;charT,traits,Allocator&gt;* rdbuf() const;
-</pre>
-<p>with</p>
-<pre>
-  basic_stringbuf&lt;charT,traits,Allocator&gt;* rdbuf();
-  const basic_stringbuf&lt;charT,traits,Allocator&gt;* rdbuf() const;
-</pre>
-
-<p>In  27.8.1.5, 27.8.1.7, 27.8.1.8, 27.8.1.10, 27.8.1.11, and 27.8.1.13</p>
-<p>Replace</p>
-<pre>
-  basic_filebuf&lt;charT,traits&gt;* rdbuf() const;
-</pre>
-<p>with</p>
-<pre>
-  basic_filebuf&lt;charT,traits&gt;* rdbuf();
-  const basic_filebuf&lt;charT,traits&gt;* rdbuf() const;
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>The existing specification is a bit sloppy, but there's no
-  particular reason to change this other than tidiness, and there are
-  a number of ways in which streams might have been designed
-  differently if we were starting today.  There's no evidence that the
-  existing constness policy is harming users.  We might consider
-  a different constness policy as part of a full stream redesign.</p>
-
-
-
-
-
-<hr>
-<h3><a name="367"></a>367. remove_copy/remove_copy_if and Input Iterators</h3>
-<p><b>Section:</b> 25.3.8 [alg.remove] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2002-05-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.remove">issues</a> in [alg.remove].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-remove_copy and remove_copy_if (25.3.8 [alg.remove]) permit their
-input range to be marked with Input Iterators. However, since two
-operations are required against the elements to copy (comparison and
-assigment), when the input range uses Input Iterators, a temporary
-copy must be taken to avoid dereferencing the iterator twice. This
-therefore requires the value type of the InputIterator to be
-CopyConstructible. If the iterators are at least Forward Iterators,
-then the iterator can be dereferenced twice, or a reference to the
-result maintained, so the temporary is not required.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add "If InputIterator does not meet the requirements of forward
-iterator, then the value type of InputIterator must be copy
-constructible. Otherwise copy constructible is not required." to
-25.3.8 [alg.remove] paragraph 6.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The assumption is that an input iterator can't be dereferenced
-  twice.  There's no basis for that assumption in the Standard.</p>
-
-
-
-
-
-<hr>
-<h3><a name="368"></a>368. basic_string::replace has two "Throws" paragraphs</h3>
-<p><b>Section:</b> 21.4.6.6 [string::replace] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2002-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::replace">issues</a> in [string::replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-21.4.6.6 [string::replace] basic_string::replace, second
-signature, given in paragraph 1, has two "Throws" paragraphs (3 and
-5).
-</p>
-
-<p>
-In addition, the second "Throws" paragraph (5) includes specification
-(beginning with "Otherwise, the function replaces ...") that should be
-part of the "Effects" paragraph.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is editorial. Both "throws" statements are true. The bug is
-  just that the second one should be a sentence, part of the "Effects"
-  clause, not a separate "Throws".  The project editor has been
-  notified.</p>
-
-
-
-
-
-<hr>
-<h3><a name="372"></a>372. Inconsistent description of stdlib exceptions</h3>
-<p><b>Section:</b> 17.6.5.12 [res.on.exception.handling], 18.7.1 [type.info] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Randy Maddox <b>Opened:</b> 2002-07-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.exception.handling">issues</a> in [res.on.exception.handling].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Paragraph 3 under clause 17.6.5.12 [res.on.exception.handling], Restrictions on
-Exception Handling, states that "Any other functions defined in the
-C++ Standard Library that do not have an exception-specification may
-throw implementation-defined exceptions unless otherwise specified."
-This statement is followed by a reference to footnote 178 at the
-bottom of that page which states, apparently in reference to the C++
-Standard Library, that "Library implementations are encouraged (but
-not required) to report errors by throwing exceptions from (or derived
-from) the standard exceptions."</p>
-
-<p>These statements appear to be in direct contradiction to clause
-18.7.1 [type.info], which states "The class exception defines the
-base class for the types of objects thrown as exceptions by the C++
-Standard library components ...".</p>
-
-<p>Is this inconsistent?</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>Clause 17 is setting the overall library requirements, and it's
-  clear and consistent.  This sentence from Clause 18 is descriptive,
-  not setting a requirement on any other class.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="374"></a>374. moneypunct::frac_digits returns int not unsigned</h3>
-<p><b>Section:</b> 22.4.6.3.1 [locale.moneypunct.members], 22.4.6.3.2 [locale.moneypunct.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2002-08-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In section 22.4.6.3.1 [locale.moneypunct.members], frac_digits() returns type
-"int". This implies that frac_digits() might return a negative value,
-but a negative value is nonsensical. It should return "unsigned".
-</p>
-
-<p>
-Similarly, in section 22.4.6.3.2 [locale.moneypunct.virtuals], do_frac_digits()
-should return "unsigned".
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>Regardless of whether the return value is int or unsigned, it's
-always conceivable that frac_digits might return a nonsensical
-value. (Is 4294967295 really any better than -1?)  The clients of
-moneypunct, the get and put facets, can and do perform range
-checks.</p>
-
-
-
-
-
-<hr>
-<h3><a name="377"></a>377. basic_string::insert and length_error</h3>
-<p><b>Section:</b> 21.4.6.4 [string::insert] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2002-08-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::insert">issues</a> in [string::insert].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 21.4.6.4 [string::insert], paragraph 4, contains the following,
-"Then throws length_error if size() >= npos - rlen."
-</p>
-
-<p>
-Related to DR 83, this sentence should probably be removed.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p><p>This requirement is redundant but correct.  No change is
-needed.</p>
-
-
-
-
-<hr>
-<h3><a name="378"></a>378. locale immutability and locale::operator=()</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#31">31</a></p>
-<p><b>Discussion:</b></p>
-<p>
-I think there is a problem with 22.1.1, p6 which says that
-</p>
-<pre>
-    -6- An instance of locale is immutable; once a facet reference
-        is obtained from it, that reference remains usable as long
-        as the locale value itself exists.
-</pre>
-<p>
-and 22.1.1.2, p4:
-</p>
-<pre>
-    const locale&amp; operator=(const locale&amp; other) throw();
-
-    -4- Effects: Creates a copy of other, replacing the current value.
-</pre>
-<p>
-How can a reference to a facet obtained from a locale object remain
-valid after an assignment that clearly must replace all the facets
-in the locale object? Imagine a program such as this
-</p>
-<pre>
-    std::locale loc ("de_DE");
-    const std::ctype&lt;char> &amp;r0 = std::use_facet&lt;std::ctype&lt;char> >(loc);
-    loc = std::locale ("en_US");
-    const std::ctype&lt;char> &amp;r1 = std::use_facet&lt;std::ctype&lt;char> >(loc);
-</pre>
-<p>
-Is r0 really supposed to be preserved and destroyed only when loc goes
-out of scope?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[Summer '04 mid-meeting mailing: Martin and Dietmar believe this
-  is a duplicate of issue <a href="lwg-defects.html#31">31</a> and recommend that it be
-  closed.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="382"></a>382. codecvt do_in/out result</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It seems that the descriptions of codecvt do_in() and do_out() leave
-sufficient room for interpretation so that two implementations of
-codecvt may not work correctly with the same filebuf. Specifically,
-the following seems less than adequately specified:
-</p>
-
-<ol>
-<li>
-  the conditions under which the functions terminate
-</li>
-<li>
-  precisely when the functions return ok
-</li>
-<li>
-  precisely when the functions return partial
-</li>
-<li>
-  the full set of conditions when the functions return error
-</li>
-</ol>
-
-<ol>
-<li>
-   22.4.1.4.2 [locale.codecvt.virtuals], p2 says this about the effects of the
-   function: ...Stops if it encounters a character it cannot
-   convert...  This assumes that there *is* a character to
-   convert. What happens when there is a sequence that doesn't form a
-   valid source character, such as an unassigned or invalid UNICODE
-   character, or a sequence that cannot possibly form a character
-   (e.g., the sequence "\xc0\xff" in UTF-8)?
-</li>
-<li>
-   Table 53 says that the function returns codecvt_base::ok
-   to indicate that the function(s) "completed the conversion."
-   Suppose that the source sequence is "\xc0\x80" in UTF-8,
-   with from pointing to '\xc0' and (from_end==from + 1).
-   It is not clear whether the return value should be ok
-   or partial (see below).
-</li>
-<li>
-   Table 53 says that the function returns codecvt_base::partial
-   if "not all source characters converted." With the from pointers
-   set up the same way as above, it is not clear whether the return
-   value should be partial or ok (see above).
-</li>
-<li>
-   Table 53, in the row describing the meaning of error mistakenly
-   refers to a "from_type" character, without the symbol from_type
-   having been defined. Most likely, the word "source" character
-   is intended, although that is not sufficient. The functions
-   may also fail when they encounter an invalid source sequence
-   that cannot possibly form a valid source character (e.g., as
-   explained in bullet 1 above).
-</li>
-</ol>
-<p>
-Finally, the conditions described at the end of 22.4.1.4.2 [locale.codecvt.virtuals], p4 don't seem to be possible:
-</p>
-<blockquote><p>
-    "A return value of partial, if (from_next == from_end),
-    indicates that either the destination sequence has not
-    absorbed all the available destination elements, or that
-    additional source elements are needed before another
-    destination element can be produced."
-</p></blockquote>
-<p>
-If the value is partial, it's not clear to me that (from_next
-==from_end) could ever hold if there isn't enough room
-in the destination buffer. In order for (from_next==from_end) to
-hold, all characters in that range must have been successfully
-converted (according to 22.4.1.4.2 [locale.codecvt.virtuals], p2) and since there are no
-further source characters to convert, no more room in the
-destination buffer can be needed.
-</p>
-<p>
-It's also not clear to me that (from_next==from_end) could ever
-hold if additional source elements are needed to produce another
-destination character (not element as incorrectly stated in the
-text). partial is returned if "not all source characters have
-been converted" according to Table 53, which also implies that
-(from_next==from) does NOT hold.
-</p>
-<p>
-Could it be that the intended qualifying condition was actually
-(from_next != from_end), i.e., that the sentence was supposed
-to read
-</p>
-<blockquote><p>
-    "A return value of partial, if (from_next != from_end),..."
-</p></blockquote>
-<p>
-which would make perfect sense, since, as far as I understand it,
-partial can only occur if (from_next != from_end)?
-</p>
-<p><i>[Lillehammer: Defer for the moment, but this really needs to be
-  fixed. Right now, the description of codecvt is too vague for it to
-  be a useful contract between providers and clients of codecvt
-  facets.  (Note that both vendors and users can be both providers and
-  clients of codecvt facets.) The major philosophical issue is whether
-  the standard should only describe mappings that take a single wide
-  character to multiple narrow characters (and vice versa), or whether
-  it should describe fully general N-to-M conversions. When the
-  original standard was written only the former was contemplated, but
-  today, in light of the popularity of utf8 and utf16, that doesn't
-  seem sufficient for C++0x. Bill supports general N-to-M conversions;
-  we need to make sure Martin and Howard agree.]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-codecvt is meant to be a 1-to-N to N-to-1 conversion. It does not work
-well for N-to-M conversions. wbuffer_convert now exists, and handles
-N-to-M cases. Also, there is a new specialization of codecvt that
-permits UTF-16 &lt;-&gt; UTF-8 conversions.
-</p>
-<p>
-NAD without prejudice. Will reopen if proposed resolution is supplied.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-<hr>
-<h3><a name="385"></a>385. Does call by value imply the CopyConstructible requirement?</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2002-10-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Many function templates have parameters that are passed by value;
-a typical example is <tt>find_if</tt>'s <i>pred</i> parameter in
-25.2.5 [alg.find].  Are the corresponding template parameters
-(<tt>Predicate</tt> in this case) implicitly required to be
-CopyConstructible, or does that need to be spelled out explicitly?
-</p>
-
-<p>
-This isn't quite as silly a question as it might seem to be at first
-sight.  If you call <tt>find_if</tt> in such a way that template
-argument deduction applies, then of course you'll get call by value
-and you need to provide a copy constructor.  If you explicitly provide
-the template arguments, however, you can force call by reference by
-writing something like <tt>find_if&lt;my_iterator,
-my_predicate&amp;&gt;</tt>.  The question is whether implementation
-are required to accept this, or whether this is ill-formed because
-my_predicate&amp; is not CopyConstructible.
-</p>
-
-<p>
-The scope of this problem, if it is a problem, is unknown.  Function
-object arguments to generic algorithms in clauses 25 [algorithms]
-and 26 [numerics] are obvious examples.  A review of the whole
-library is necessary.
-</p>
-<p><i>[
-This is really two issues.  First, predicates are typically passed by
-value but we don't say they must be Copy Constructible.  They should
-be. Second: is specialization allowed to transform value arguments
-into references? References aren't copy constructible, so this should
-not be allowed.
-]</i></p>
-
-<p><i>[
-2007-01-12, Howard: First, despite the note above, references <b>are</b>
-copy constructible. They just aren't assignable.  Second, this is very
-closely related to <a href="lwg-defects.html#92">92</a> and should be consistent with that.
-That issue already says that implementations are allowed to copy
-function objects.  If one passes in a reference, it is copyable, but
-susceptible to slicing if one passes in a reference to a base.  Third,
-with rvalue reference in the language one only needs to satisfy
-MoveConstructible to pass an rvalue "by value".  Though the function
-might still copy the function object internally (requiring
-CopyConstructible). Finally (and fwiw), if we wanted to, it is easy to
-code all of the std::algorithms such that they do not copy function
-objects internally.  One merely passes them by reference internally if
-desired (this has been fully implemented and shipped for several years).
- If this were mandated, it would reverse <a href="lwg-defects.html#92">92</a>, allowing
-function objects to reliably maintain state.  E.g. the example in <a href="lwg-defects.html#92">92</a> would reliably remove only the third element.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Recommend NAD.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Generic algorithms will be marked with concepts and these will imply a requirement
-of MoveConstructible (not CopyConstructible).  The signature of the function will
-then precisely describe and enforce the precise requirements.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="388"></a>388. Use of <tt>complex</tt> as a key in associative containers</h3>
-<p><b>Section:</b> 26.4 [complex.numbers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 2002-11-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#complex.numbers">active issues</a> in [complex.numbers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.numbers">issues</a> in [complex.numbers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Practice with <tt>std::complex&lt;&gt;</tt> and the associative containers
-occasionally reveals artificial and distracting issues with constructs
-resembling: <tt>std::set&lt;std::complex&lt;double&gt; &gt; s;</tt>
-</p>
-
-<p>
-The main reason for the above to fail is the absence of an appropriate
-definition for <tt>std::less&lt;std::complex&lt;T&gt; &gt;</tt>. That in turn comes from
-the definition of the primary template <tt>std::less&lt;&gt;</tt> in terms of
-<tt>operator&lt;</tt>.
-</p>
-
-<p>
-The usual argument goes as follows: Since there is no ordering over
-the complex field compatible with field operations it makes little
-sense to define a function <tt>operator&lt;</tt> operating on the datatype
-<tt>std::complex&lt;T&gt;</tt>.  That is fine. However, that reasoning does not carry
-over to <tt>std::less&lt;T&gt;</tt> which is used, among other things, by associative
-containers as an ordering useful to meet complexity requirements.
-</p>
-
-<p>Related issue: <a href="lwg-closed.html#348">348</a>.</p>
-
-<p><i>[
-Pre Bellevue: Reopened at the request of Alisdair.
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-This is a request for a design change, and not a defect in the standard.
-It is in scope to consider, but the group feels that it is not a change
-that we need to do. Is there a total ordering for floating point values,
-including NaN? There is not a clear enough solution or big enough
-problem for us to solve. Solving this problem would require solving the
-problem for floating point, which is equally unclear. The LWG noted that
-users who want to put objects into an associative container for which
-<tt>operator&lt;</tt> isn't defined can simply provide their own comparison 
-function object. NAD
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Informally: Add a specialization of <tt>std::less</tt> for <tt>std::complex</tt>.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Discussed in Santa Cruz.  An overwhelming majority of the LWG
-believes this should not be treated a DR: it's a request for a design
-change, not a defect in the existing standard.  Most people (10-3)
-believed that we probably don't want this change, period: as with
-issue <a href="lwg-closed.html#348">348</a>, it's hard to know where to draw the line.
-The LWG noted that users who want to put objects into an associative
-container for which <tt>operator&lt;</tt> isn't defined can simply
-provide their own comparison function object.</p>
-
-
-
-
-
-<hr>
-<h3><a name="390"></a>390. CopyConstructible requirements too strict</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2002-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The CopyConstructible requirements in Table 30 state that for an
-object t of type T (where T is CopyConstructible), the expression &amp;t
-returns the address of t (with type T*). This requirement is overly
-strict, in that it disallows types that overload operator&amp; to not
-return a value of type T*. This occurs, for instance, in the <a
-href="http://www.boost.org/libs/lambda">Boost.Lambda</a> library, where
-operator&amp; is overloaded for a Boost.Lambda function object to return
-another function object.
-</p>
-
-<p>Example:</p>
-
-<pre>
-  std::vector&lt;int&gt; u, v;
-  int x;
-  // ...
-  std::transform(u.begin(), u.end(), std::back_inserter(v), _1 * x);
-</pre>
-
-<p>
-_1 * x returns an unnamed function object with operator&amp; overloaded to
-not return T* , therefore rendering the std::transform call ill-formed.
-However, most standard library implementations will compile this code
-properly, and the viability of such binder libraries is severely hindered
-by the unnecessary restriction in the CopyConstructible requirements.
-</p>
-
-<p>
-For reference, the address of an object can be retrieved without using
-the address-of operator with the following function template:
-</p>
-
-<pre>
-  template &lt;typename T&gt; T* addressof(T&amp; v)
-  {
-    return reinterpret_cast&lt;T*&gt;(
-         &amp;const_cast&lt;char&amp;&gt;(reinterpret_cast&lt;const volatile char &amp;&gt;(v)));
-  }
-</pre>
-
-<p>
-Note: this relates directly to library issue <a href="lwg-closed.html#350">350</a>, which
-will need to be reexamined if the CopyConstructible requirements
-change.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the last two rows of Table 30, eliminating the requirements
-that &amp;t and &amp;u return the address of t and u, respectively.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This was a deliberate design decision.  Perhaps it should be
-   reconsidered for C++0x. </p>
-
-
-
-
-
-<hr>
-<h3><a name="392"></a>392. 'equivalence' for input iterators</h3>
-<p><b>Section:</b> 24.2.3 [input.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Corwin Joy <b>Opened:</b> 2002-12-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.iterators">issues</a> in [input.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In section 24.2.3 [input.iterators] table 72 -
-'Input Iterator Requirements' we have as a postcondition of *a:
-"If a==b and (a, b) is in the domain of == then *a is equivalent to *b".
-</p>
-
-<p>
-In section 24.6.3.5 [istreambuf.iterator::equal] it states that
-"istreambuf_iterator::equal returns true if and only if both iterators
-are at end-of-stream, or neither is at end-of-stream, <i>regardless of
-what streambuf object they use</i>."  (My emphasis).
-</p>
-
-<p>
-The defect is that either 'equivalent' needs to be more precisely
-defined or the conditions for equality in 24.6.3.5 [istreambuf.iterator::equal]
-are incorrect. (Or both).
-</p>
-
-<p>Consider the following example:</p>
-<pre>
-   #include &lt;iostream&gt;
-   #include &lt;fstream&gt;
-   #include &lt;iterator&gt;
-   using namespace std;
-
-   int main() {
-    ifstream file1("file1.txt"), file2("file2.txt");
-    istreambuf_iterator&lt;char&gt; f1(file1), f2(file2);
-    cout &lt;&lt; "f1 == f2 : " &lt;&lt; boolalpha &lt;&lt; (f1 == f2) &lt;&lt; endl;
-    cout &lt;&lt; "f1 = " &lt;&lt; *f1 &lt;&lt; endl;
-    cout &lt;&lt; "f2 = " &lt;&lt; *f2 &lt;&lt; endl;
-    return 0;
-   }
-</pre>
-
-<p>Now assuming that neither f1 or f2 are at the end-of-stream then
-f1 == f2 by 24.6.3.5 [istreambuf.iterator::equal].</p>
-
-<p>However, it is unlikely that *f1 will give the same value as *f2 except
-by accident.</p>
-
-<p>So what does *f1 'equivalent' to *f2 mean?  I think the standard should
-be clearer on this point, or at least be explicit that this does not
-mean that *f1 and *f2 are required to have the same value in the case
-of input iterators.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p><p>The two iterators aer not in the domain of ==</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="393"></a>393. do_in/do_out operation on state unclear</h3>
-<p><b>Section:</b> 22.4.1.4.2 [locale.codecvt.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alberto Barbati <b>Opened:</b> 2002-12-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.virtuals">issues</a> in [locale.codecvt.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-this DR follows the discussion on the previous thread "codecvt::do_in
-not consuming external characters". It's just a clarification issue
-and not a request for a change.
-</p>
-<p>
-Can do_in()/do_out() produce output characters without consuming input 
-characters as a result of operation on state?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a note at the end of 22.4.1.4.2 [locale.codecvt.virtuals], 
-paragraph 3:
-</p>
-
-<p>
-[Note: As a result of operations on state, it can return ok or partial 
-and set from_next == from and to_next != to. --end note]
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The submitter believes that standard already provides an affirmative
-answer to the question. However, the current wording has induced a few
-library implementors to make the incorrect assumption that
-do_in()/do_out() always consume at least one internal character when
-they succeed.
-</p>
-
-<p>
-The submitter also believes that the proposed resolution is not in
-conflict with the related issue 76. Moreover, by explicitly allowing
-operations on state to produce characters, a codecvt implementation
-may effectively implement N-to-M translations without violating the
-"one character at a time" principle described in such issue. On a side
-note, the footnote in the proposed resolution of issue 76 that
-informally rules out N-to-M translations for basic_filebuf should be
-removed if this issue is accepted as valid.
-</p>
-
-
-<p><i>[
-Kona (2007): The proposed resolution is to add a note. Since this is
-non-normative, the issue is editorial, but we believe that the note is
-correct. Proposed Disposition: NAD, Editorial
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="394"></a>394. behavior of formatted output on failure</h3>
-<p><b>Section:</b> 27.7.3.6.1 [ostream.formatted.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-12-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is a contradiction in Formatted output about what bit is
-supposed to be set if the formatting fails. On sentence says it's
-badbit and another that it's failbit.
-</p>
-<p>
-27.6.2.5.1, p1 says in the Common Requirements on Formatted output
-functions:
-</p>
-<pre>
-     ... If the generation fails, then the formatted output function
-     does setstate(ios::failbit), which might throw an exception.
-</pre>
-<p>
-27.6.2.5.2, p1 goes on to say this about Arithmetic Inserters:
-</p>
-<p>
-     ... The formatting conversion occurs as if it performed the
-     following code fragment:
-</p>
-<pre>
-     bool failed =
-         use_facet&lt;num_put&lt;charT,ostreambuf_iterator&lt;charT,traits>
-         > >
-         (getloc()).put(*this, *this, fill(), val). failed();
-
-     ... If failed is true then does setstate(badbit) ...
-</pre>
-<p>
-The original intent of the text, according to Jerry Schwarz (see
-c++std-lib-10500), is captured in the following paragraph:
-</p>
-<p>
-In general "badbit" should mean that the stream is unusable because
-of some underlying failure, such as disk full or socket closure;
-"failbit" should mean that the requested formatting wasn't possible
-because of some inconsistency such as negative widths.  So typically
-if you clear badbit and try to output something else you'll fail
-again, but if you clear failbit and try to output something else
-you'll succeed.
-</p>
-<p>
-In the case of the arithmetic inserters, since num_put cannot
-report failure by any means other than exceptions (in response
-to which the stream must set badbit, which prevents the kind of
-recoverable error reporting mentioned above), the only other
-detectable failure is if the iterator returned from num_put
-returns true from failed().
-</p>
-<p>
-Since that can only happen (at least with the required iostream
-specializations) under such conditions as the underlying failure
-referred to above (e.g., disk full), setting badbit would seem
-to be the appropriate response (indeed, it is required in
-27.6.2.5.2, p1). It follows that failbit can never be directly
-set by the arithmetic (it can only be set by the sentry object
-under some unspecified conditions).
-</p>
-<p>
-The situation is different for other formatted output functions
-which can fail as a result of the streambuf functions failing
-(they may do so by means other than exceptions), and which are
-then required to set failbit.
-</p>
-<p>
-The contradiction, then, is that ostream::operator&lt;&lt;(int) will
-set badbit if the disk is full, while operator&lt;&lt;(ostream&amp;,
-char) will set failbit under the same conditions. To make the behavior
-consistent, the Common requirements sections for the Formatted output
-functions should be changed as proposed below.
-</p>
-<p><i>[Kona: There's agreement that this is a real issue.  What we
-  decided at Kona: 1. An error from the buffer (which can be detected
-  either directly from streambuf's member functions or by examining a
-  streambuf_iterator) should always result in badbit getting set.
-  2. There should never be a circumstance where failbit gets set.
-  That represents a formatting error, and there are no circumstances
-  under which the output facets are specified as signaling a
-  formatting error. (Even more so for string output that for numeric
-  because there's nothing to format.)  If we ever decide to make it
-  possible for formatting errors to exist then the facets can signal
-  the error directly, and that should go in clause 22, not clause 27.
-  3. The phrase "if generation fails" is unclear and should be
-  eliminated.  It's not clear whether it's intended to mean a buffer
-  error (e.g. a full disk), a formatting error, or something else.
-  Most people thought it was supposed to refer to buffer errors; if
-  so, we should say so.  Martin will provide wording.]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-NAD. This issue is already fixed.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="397"></a>397. <tt>ostream::sentry</tt> dtor throws exceptions</h3>
-<p><b>Section:</b> 27.7.3.4 [ostream::sentry] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-01-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream::sentry">issues</a> in [ostream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-    <p>
-17.4.4.8, p3 prohibits library dtors from throwing exceptions.
-    </p>
-    <p>
-27.6.2.3, p4 says this about the ostream::sentry dtor:
-    </p>
-    <pre>
-    -4- If ((os.flags() &amp; ios_base::unitbuf) &amp;&amp; !uncaught_exception())
-        is true, calls os.flush().
-    </pre>
-    <p>
-27.6.2.6, p7 that describes ostream::flush() says:
-    </p>
-    <pre>
-    -7- If rdbuf() is not a null pointer, calls rdbuf()->pubsync().
-        If that function returns ?-1 calls setstate(badbit) (which
-        may throw ios_base::failure (27.4.4.3)).
-    </pre>
-    <p>
-That seems like a defect, since both pubsync() and setstate() can
-throw an exception. 
-    </p>
-<p><i>[
-The contradiction is real.  Clause 17 says destructors may never
-throw exceptions, and clause 27 specifies a destructor that does
-throw.  In principle we might change either one.  We're leaning
-toward changing clause 17: putting in an "unless otherwise specified"
-clause, and then putting in a footnote saying the sentry destructor
-is the only one that can throw.  PJP suggests specifying that
-sentry::~sentry() should internally catch any exceptions it might cause.
-]</i></p>
-
-
-<p><i>[
-See <a href="lwg-closed.html#418">418</a> and <a href="lwg-defects.html#622">622</a> for related issues.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Move to Review. Add "Throws: nothing" to the specification of <tt>ostream::sentry::~sentry()</tt>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-13 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of <a href="lwg-defects.html#835">835</a> is written to match the outcome
-of this issue.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open.  Our intent is to solve this issue with <a href="lwg-defects.html#835">835</a>.
-</p></blockquote>
-
-<p><i>[
-2010-03-06 Martin updates wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Editorial.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="lwg-defects.html#835">835</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add after 27.7.3.4 [ostream::sentry] p17:
-</p>
-
-<blockquote>
-<pre>
-~sentry();
-</pre>
-<blockquote>
-<p>
--17- If <tt>(os.flags() &amp; ios_base::unitbuf)</tt>
-is <tt>true</tt>, calls <tt>os.flush()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="398"></a>398. effects of end-of-file on unformatted input functions</h3>
-<p><b>Section:</b> 27.7.3.4 [ostream::sentry] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-01-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream::sentry">issues</a> in [ostream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-    <p>
-While reviewing unformatted input member functions of istream
-for their behavior when they encounter end-of-file during input
-I found that the requirements vary, sometimes unexpectedly, and
-in more than one case even contradict established practice (GNU
-libstdc++ 3.2, IBM VAC++ 6.0, STLPort 4.5, SunPro 5.3, HP aCC
-5.38, Rogue Wave libstd 3.1, and Classic Iostreams).
-    </p>
-    <p>
-The following unformatted input member functions set eofbit if they
-encounter an end-of-file (this is the expected behavior, and also
-the behavior of all major implementations):
-    </p>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    get (char_type*, streamsize, char_type);
-    </pre>
-    <p>
-    Also sets failbit if it fails to extract any characters.
-    </p>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    get (char_type*, streamsize);
-    </pre>
-    <p>
-    Also sets failbit if it fails to extract any characters.
-    </p>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    getline (char_type*, streamsize, char_type);
-    </pre>
-    <p>
-    Also sets failbit if it fails to extract any characters.
-    </p>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    getline (char_type*, streamsize);
-    </pre>
-    <p>
-    Also sets failbit if it fails to extract any characters.
-    </p>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    ignore (int, int_type);
-    </pre>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    read (char_type*, streamsize);
-    </pre>
-    <p>
-    Also sets failbit if it encounters end-of-file.
-    </p>
-    <pre>
-    streamsize readsome (char_type*, streamsize);
-    </pre>
-
-    <p>
-The following unformated input member functions set failbit but
-not eofbit if they encounter an end-of-file (I find this odd
-since the functions make it impossible to distinguish a general
-failure from a failure due to end-of-file; the requirement is
-also in conflict with all major implementation which set both
-eofbit and failbit):
-    </p>
-    <pre>
-    int_type get();
-    </pre>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    get (char_type&amp;);
-    </pre>
-    <p>
-These functions only set failbit of they extract no characters,
-otherwise they don't set any bits, even on failure (I find this
-inconsistency quite unexpected; the requirement is also in
-conflict with all major implementations which set eofbit
-whenever they encounter end-of-file):
-    </p>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    get (basic_streambuf&lt;charT, traits>&amp;, char_type);
-    </pre>
-    <pre>
-    basic_istream&lt;charT, traits>&amp;
-    get (basic_streambuf&lt;charT, traits>&amp;);
-    </pre>
-    <p>
-This function sets no bits (all implementations except for
-STLport and Classic Iostreams set eofbit when they encounter
-end-of-file):
-    </p>
-    <pre>
-    int_type peek ();
-    </pre>
-<p>Informally, what we want is a global statement of intent saying
-  that eofbit gets set if we trip across EOF, and then we can take
-  away the specific wording for individual functions.  A full review
-  is necessary.  The wording currently in the standard is a mishmash,
-  and changing it on an individual basis wouldn't make things better.
-  Dietmar will do this work.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.  See 27.7.2.1 [istream] p3.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-<hr>
-<h3><a name="399"></a>399. volations of unformatted input function requirements</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-01-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-    <p>
-The Effects clauses for the two functions below violate the
-general requirements on unformatted input functions outlined
-in 27.6.1.3: they do not begin by constructing a sentry object.
-Instead, they begin by calling widen ('\n'), which may throw
-an exception. The exception is then allowed to propagate from
-the unformatted input function irrespective of the setting of
-exceptions().
-    </p>
-    <p>
-Note that in light of 27.6.1.1, p3 and p4, the fact that the
-functions allow exceptions thrown from widen() to propagate
-may not strictly speaking be a defect (but the fact that the
-functions do not start by constructing a sentry object still
-is). However, since an exception thrown from ctype&lt;charT>
-::widen() during any other input operation (say, from within
-a call to num_get&lt;charT>::get()) will be caught and cause
-badbit to be set, these two functions should not be treated
-differently for the sake of consistency.
-    </p>
-  
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Not a defect.  The standard is consistent, and the behavior required
-by the standard is unambiguous.  Yes, it's theoretically possible for
-widen to throw.  (Not that this will happen for the default ctype
-facet or for most real-world replacement ctype facets.)  Users who
-define ctype facets that can throw, and who care about this behavior,
-can use alternative signatures that don't call widen.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="408"></a>408. Is <tt>vector&lt;reverse_iterator&lt;char*&gt; &gt;</tt> forbidden?</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 2003-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I've been discussing iterator semantics with Dave Abrahams, and a 
-surprise has popped up.  I don't think this has been discussed before.
-</p>
-
-<p>
-X [iterator.concepts] says that the only operation that can be performed on "singular"
-iterator values is to assign a non-singular value to them.  (It 
-doesn't say they can be destroyed, and that's probably a defect.)  
-Some implementations have taken this to imply that there is no need 
-to initialize the data member of a <tt>reverse_iterator&lt;&gt;</tt> in the default
-constructor.  As a result, code like
-</p>
-<blockquote><pre>
-  std::vector&lt;std::reverse_iterator&lt;char*&gt; &gt; v(7);
-  v.reserve(1000);
-</pre></blockquote>
-<p>
-invokes undefined behavior, because it must default-initialize the
-vector elements, and then copy them to other storage.  Of course many 
-other vector operations on these adapters are also left undefined,
-and which those are is not reliably deducible from the standard.
-</p>
-
-<p>
-I don't think that 24.1 was meant to make standard-library iterator 
-types unsafe.  Rather, it was meant to restrict what operations may 
-be performed by functions which take general user- and standard 
-iterators as arguments, so that raw pointers would qualify as
-iterators.  However, this is not clear in the text, others have come 
-to the opposite conclusion.
-</p>
-
-<p>
-One question is whether the standard iterator adaptors have defined
-copy semantics.  Another is whether they have defined destructor
-semantics: is
-</p>
-<blockquote><pre>
-  { std::vector&lt;std::reverse_iterator&lt;char*&gt; &gt;  v(7); }
-</pre></blockquote>
-<p>
-undefined too?
-</p>
-
-<p>
-Note this is not a question of whether algorithms are allowed to
-rely on copy semantics for arbitrary iterators, just whether the
-types we actually supply support those operations.  I believe the 
-resolution must be expressed in terms of the semantics of the 
-adapter's argument type.  It should make clear that, e.g., the 
-<tt>reverse_iterator&lt;T&gt;</tt> constructor is actually required to execute
-<tt>T()</tt>, and so copying is defined if the result of <tt>T()</tt> is copyable.
-</p>
-
-<p>
-Issue <a href="lwg-defects.html#235">235</a>, which defines <tt>reverse_iterator</tt>'s default
-constructor more precisely, has some relevance to this issue.
-However, it is not the whole story.
-</p>
-
-<p>
-The issue was whether 
-</p>
-<blockquote><pre>
-  reverse_iterator() { }
-</pre></blockquote>
-<p>
-is allowed, vs. 
-</p>
-<blockquote><pre>
-  reverse_iterator() : current() { }
-</pre></blockquote>
-
-<p>
-The difference is when <tt>T</tt> is <tt>char*</tt>, where the first leaves the member
-uninitialized, and possibly equal to an existing pointer value, or
-(on some targets) may result in a hardware trap when copied.
-</p>
-
-<p>
-8.5 paragraph 5 seems to make clear that the second is required to
-satisfy DR <a href="lwg-defects.html#235">235</a>, at least for non-class Iterator argument
-types.
-</p>
-
-<p>
-But that only takes care of <tt>reverse_iterator</tt>, and doesn't establish
-a policy for all iterators.  (The reverse iterator adapter was just
-an example.)  In particular, does my function
-</p>
-<blockquote><pre>
-  template &lt;typename Iterator&gt;
-    void f() { std::vector&lt;Iterator&gt;  v(7); } 
-</pre></blockquote>
-<p>
-evoke undefined behavior for some conforming iterator definitions?
-I think it does, now, because <tt>vector&lt;&gt;</tt> will destroy those singular
-iterator values, and that's explicitly disallowed.
-</p>
-
-<p>
-24.1 shouldn't give blanket permission to copy all singular iterators,
-because then pointers wouldn't qualify as iterators.  However, it
-should allow copying of that subset of singular iterator values that
-are default-initialized, and it should explicitly allow destroying any
-iterator value, singular or not, default-initialized or not.
-</p>
-
-<p>Related issues: <a href="lwg-defects.html#407">407</a>, <a href="lwg-defects.html#1012">1012</a></p>
-<p><i>[
-We don't want to require all singular iterators to be copyable,
-because that is not the case for pointers.  However, default
-construction may be a special case.  Issue: is it really default
-construction we want to talk about, or is it something like value
-initialization?  We need to check with core to see whether default
-constructed pointers are required to be copyable; if not, it would be
-wrong to impose so strict a requirement for iterators.
-]</i></p>
-
-
-<p><i>[
-2009-05-10 Alisdair provided wording.
-]</i></p>
-
-
-<blockquote><p>
-The comments regarding destroying singular iterators have already been
-resolved.  That just leaves copying (with moving implied).
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-This is related to LWG <a href="lwg-defects.html#1012">1012</a>.
-</p>
-<p>
-Note that there is a bug in the proposed resolution to LWG <a href="lwg-defects.html#1012">1012</a>. The
-change to  [reverse.iter.con] should be modified so that the word
-"default" in the second sentence of the Effects clause is replaced by
-"value."
-</p>
-<p>
-We believe that the proposed fix to LWG <a href="lwg-defects.html#1012">1012</a> (now corrected) is
-sufficient to solve the problem for reverse_iterator. However, Alisdair
-pointed out that LWG <a href="lwg-defects.html#1012">1012</a> does not solve the general problem for authors
-of iterator adaptors.
-</p>
-<p>
-There are some problems with the proposed resolution. The phrase "safely
-copyable" is not a term of art. Also, it mentions a
-DefaultConstructible? concept.
-</p>
-<p>
-Move to Review after Alisdair updates the wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-31 Alisdair revised wording:
-]</i></p>
-
-
-<p><i>[
-2009-08-17 Alisdair and Daniel collaborate on slightly revised wording.
-This issue depends upon <a href="lwg-defects.html#724">724</a>
-]</i></p>
-
-
-<p><i>[
-2009-10-14 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-There is a clear dependency on <a href="lwg-active.html#1213">1213</a>, because the term "singular",
-which is used as part of the resolution, is not properly defined yet.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Open. Alisdair will provide improved wording to make
-this have "value semantics" and otherwise behave like a valid iterator.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new paragrpah to Iterator concepts 24.2 [iterator.requirements] after para 5 (the one describing
-singular iterators)
-</p>
-<blockquote>
-<p>
-Just as a regular pointer to an array guarantees that there is a pointer
-value pointing past the last element of the array, so for any iterator
-type there is an iterator value that points past the last element of a
-corresponding container. These values are called <i>past-the-end</i> values.
-Values of an iterator <tt>i</tt> for which the expression <tt>*i</tt> is defined are called
-<i>dereferenceable</i>. The library never assumes that past-the-end values are
-dereferenceable. Iterators can also have singular values that are not
-associated with any container. [<i>Example:</i> After the declaration of an
-uninitialized pointer <tt>x</tt> (as with <tt>int* x;</tt>), <tt>x</tt> must always be assumed to
-have a singular value of a pointer. &mdash; <i>end example</i>] Results of most
-expressions are undefined for singular values; the only exceptions are
-destroying an iterator that holds a singular value and the assignment of
-a non-singular value to an iterator that holds a singular value. In this
-case the singular value is overwritten the same way as any other value.
-Dereferenceable values are always non-singular.
-</p>
-<p><ins>
-After value-initialization, any iterator that satisfies the
-<tt>DefaultConstructible</tt> requirements ([defaultconstructible]) shall not introduce undefined behaviour
-when used <ins>as</ins> the
-source of a copy or move operation, even if it would
-otherwise be singular. [<i>Note:</i> This guarantee is not offered for
-default-initialization (8.5 [dcl.init]), although the distinction only
-matters for types with trivial default constructors such as pointers. &mdash;
-<i>end note</i>]
-</ins></p>
-
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="417"></a>417. what does <tt>ctype::do_widen()</tt> return on failure</h3>
-<p><b>Section:</b> 22.4.1.1.2 [locale.ctype.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.ctype.virtuals">issues</a> in [locale.ctype.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Effects and Returns clauses of the <tt>do_widen()</tt> member function of
-the <tt>ctype</tt> facet fail to specify the behavior of the function on failure.
-That the function may not be able to simply cast the narrow character
-argument to the type of the result since doing so may yield the wrong value
-for some <tt>wchar_t</tt> encodings. Popular implementations of <tt>ctype&lt;wchar_t&gt;</tt> that
-use <tt>mbtowc()</tt> and UTF-8 as the native encoding (e.g., GNU glibc) will fail
-when the argument's MSB is set. There is no way for the the rest of locale
-and iostream to reliably detect this failure. 
-</p>
-<p><i>[Kona: This is a real problem.  Widening can fail.  It's unclear
-  what the solution should be.  Returning <tt>WEOF</tt> works for the <tt>wchar_t</tt>
-  specialization, but not in general.  One option might be to add a
-  default, like <i>narrow</i>.  But that's an incompatible change.
-  Using <i>traits::eof</i> might seem like a good idea, but facets
-  don't have access to traits (a recurring problem).  We could
-  have <i>widen</i> throw an exception, but that's a scary option;
-  existing library components aren't written with the assumption
-  that <i>widen</i> can throw.]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-NAD. The behavior is specified for all of the facets that an
-implementation is required to provide, for the basic character set.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-<hr>
-<h3><a name="418"></a>418. exceptions thrown during iostream cleanup</h3>
-<p><b>Section:</b> 27.5.3.1.6 [ios::Init] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios::Init">issues</a> in [ios::Init].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The dtor of the <tt>ios_base::Init</tt> object is supposed to call <tt>flush()</tt> on the
-6 standard iostream objects <tt>cout</tt>, <tt>cerr</tt>, <tt>clog</tt>, <tt>wcout</tt>, 
-<tt>wcerr</tt>, and <tt>wclog</tt>.
-This call may cause an exception to be thrown.
-</p>
-
-<p>
-17.4.4.8, p3 prohibits all library destructors from throwing exceptions.
-</p>
-
-<p>
-The question is: What should this dtor do if one or more of these calls
-to <tt>flush()</tt> ends up throwing an exception? This can happen quite easily
-if one of the facets installed in the locale imbued in the iostream
-object throws.
-</p>
-<p><i>[Kona: We probably can't do much better than what we've got, so
-  the LWG is leaning toward NAD.  At the point where the standard
-  stream objects are being cleaned up, the usual error reporting
-  mechanism are all unavailable.  And exception from <tt>flush</tt> at this
-  point will definitely cause problems.  A quality implementation
-  might reasonably swallow the exception, or call <tt>abort</tt>, or do
-  something even more drastic.]</i></p>
-
-
-<p><i>[
-See <a href="lwg-closed.html#397">397</a> and <a href="lwg-defects.html#622">622</a> for related issues.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD, no consensus for change.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-<hr>
-<h3><a name="421"></a>421. is <tt>basic_streambuf</tt> copy-constructible?</h3>
-<p><b>Section:</b> 27.6.3.1 [streambuf.cons] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf.cons">issues</a> in [streambuf.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The reflector thread starting with c++std-lib-11346 notes that the class
-template <tt>basic_streambuf</tt>, along with <tt>basic_stringbuf</tt> and <tt>basic_filebuf</tt>,
-is copy-constructible but that the semantics of the copy constructors
-are not defined anywhere. Further, different implementations behave
-differently in this respect: some prevent copy construction of objects
-of these types by declaring their copy ctors and assignment operators
-private, others exhibit undefined behavior, while others still give
-these operations well-defined semantics.
-</p>
-
-<p>
-Note that this problem doesn't seem to be isolated to just the three
-types mentioned above. A number of other types in the library section
-of the standard provide a compiler-generated copy ctor and assignment
-operator yet fail to specify their semantics.  It's believed that the
-only types for which this is actually a problem (i.e. types where the
-compiler-generated default may be inappropriate and may not have been
-intended) are locale facets.  See issue <a href="lwg-closed.html#439">439</a>.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-NAD. Option B is already in the Working Draft.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-27.5.2 [lib.streambuf]:  Add into the synopsis, public section, just above the destructor declaration:
-</p>
-
-<blockquote>
-<pre>
-basic_streambuf(const basic_streambuf&amp; sb);
-basic_streambuf&amp; operator=(const basic_streambuf&amp; sb);
-</pre>
-</blockquote>
-
-<p>Insert after 27.5.2.1, paragraph 2:</p>
-<blockquote>
-<pre>
-basic_streambuf(const basic_streambuf&amp; sb);
-</pre>
-
-<p>Constructs a copy of <tt>sb</tt>.</p>
-<p>Postcondtions:</p>
-<pre>
-                eback() == sb.eback()
-                gptr()  == sb.gptr()
-                egptr() == sb.egptr()
-                pbase() == sb.pbase()
-                pptr()  == sb.pptr()
-                epptr() == sb.epptr()
-                getloc() == sb.getloc()
-</pre>
-
-<pre>
-basic_streambuf&amp; operator=(const basic_streambuf&amp; sb);
-</pre>
-
-<p>Assigns the data members of <tt>sb</tt> to this.</p>
-
-<p>Postcondtions:</p>
-<pre>
-                eback() == sb.eback()
-                gptr()  == sb.gptr()
-                egptr() == sb.egptr()
-                pbase() == sb.pbase()
-                pptr()  == sb.pptr()
-                epptr() == sb.epptr()
-                getloc() == sb.getloc()
-</pre>
-
-<p>Returns: *this.</p>
-</blockquote>
-
-<p>27.7.1 [lib.stringbuf]:</p>
-
-<p><b>Option A:</b></p>
-
-<blockquote>
-<p>Insert into the <tt>basic_stringbuf</tt> synopsis in the private section:</p>
-
-<pre>
-basic_stringbuf(const basic_stringbuf&amp;);             // not defined
-basic_stringbuf&amp; operator=(const basic_stringbuf&amp;);  // not defined
-</pre>
-</blockquote>
-
-<p><b>Option B:</b></p>
-
-<blockquote>
-<p>Insert into the <tt>basic_stringbuf</tt> synopsis in the public section:</p>
-
-<pre>
-basic_stringbuf(const basic_stringbuf&amp; sb);
-basic_stringbuf&amp; operator=(const basic_stringbuf&amp; sb);
-</pre>
-
-<p>27.7.1.1, insert after paragraph 4:</p>
-
-<pre>basic_stringbuf(const basic_stringbuf&amp; sb);</pre>
-
-<p>
-Constructs an independent copy of <tt>sb</tt> as if with <tt>sb.str()</tt>, and with the openmode that <tt>sb</tt> was constructed with.
-</p>
-
-<p>Postcondtions: </p>
-<pre>
-               str() == sb.str()
-               gptr()  - eback() == sb.gptr()  - sb.eback()
-               egptr() - eback() == sb.egptr() - sb.eback()
-               pptr()  - pbase() == sb.pptr()  - sb.pbase()
-               getloc() == sb.getloc()
-</pre>
-
-<p>
-Note:  The only requirement on <tt>epptr()</tt> is that it point beyond the initialized range if an 
-output sequence exists.  There is no requirement that <tt>epptr() - pbase() == sb.epptr() - sb.pbase()</tt>.
-</p>
-
-<pre>basic_stringbuf&amp; operator=(const basic_stringbuf&amp; sb);</pre>
-<p>
-After assignment the <tt>basic_stringbuf</tt> has the same state as if it were initially copy constructed 
-from <tt>sb</tt>, except that the <tt>basic_stringbuf</tt> is allowed to retain any excess capacity it 
-might have, which may in turn effect the value of <tt>epptr()</tt>.
-</p>
-</blockquote>
-
-<p>27.8.1.1 [lib.filebuf]</p>
-
-<p>Insert at the bottom of the <tt>basic_filebuf</tt> synopsis:</p>
-
-<blockquote>
-<pre>
-private:
-  basic_filebuf(const basic_filebuf&amp;);             // not defined
-  basic_filebuf&amp; operator=(const basic_filebuf&amp;);  // not defined
-</pre>
-</blockquote>
-<p><i>[Kona: this is an issue for <tt>basic_streambuf</tt> itself and for its
-  derived classes.  We are leaning toward allowing <tt>basic_streambuf</tt> to
-  be copyable, and specifying its precise semantics.  (Probably the
-  obvious: copying the buffer pointers.)  We are less sure whether
-  the <tt>streambuf</tt> derived classes should be copyable.  Howard will
-  write up a proposal.]</i></p>
-
-
-<p><i>[Sydney: Dietmar presented a new argument against <tt>basic_streambuf</tt>
-  being copyable: it can lead to an encapsulation violation. <tt>filebuf</tt>
-  inherits from <tt>streambuf</tt>. Now suppose you inherit a <tt>my_hijacking_buf</tt>
-  from <tt>streambuf</tt>. You can copy the <tt>streambuf</tt> portion of a <tt>filebuf</tt> to a
-  <tt>my_hijacking_buf</tt>, giving you access to the pointers into the
-  <tt>filebuf</tt>'s internal buffer. Perhaps not a very strong argument, but
-  it was strong enough to make people nervous. There was weak
-  preference for having <tt>streambuf</tt> not be copyable. There was weak
-  preference for having <tt>stringbuf</tt> not be copyable even if <tt>streambuf</tt>
-  is. Move this issue to open for now.
-]</i></p>
-
-
-<p><i>[
-2007-01-12, Howard:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1862.html#27.5.2%20-%20Class%20template%20basic_streambuf%3CcharT,traits%3E">Rvalue Reference Recommendations for Chapter 27</a>
-recommends protected copy constructor and assignment for <tt>basic_streambuf</tt> with the same semantics
-as would be generated by the compiler.  These members aid in derived classes implementing move semantics.
-A protected copy constructor and copy assignment operator do not expose encapsulation more so than it is
-today as each data member of a <tt>basic_streambuf</tt> is already both readable and writable by derived
-classes via various get/set protected member functions (<tt>eback()</tt>, <tt>setp()</tt>, etc.).  Rather
-a protected copy constructor and copy assignment operator simply make the job of derived classes implementing
-move semantics less tedious and error prone.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-27.5.2 [lib.streambuf]: The proposed <tt>basic_streambuf</tt> copy constructor
-and assignment operator are the same as currently implied by the lack
-of declarations: public and simply copies the data members.  This
-resolution is not a change but a clarification of the current
-standard.
-</p>
-
-<p>
-27.7.1 [lib.stringbuf]: There are two reasonable options: A) Make
-<tt>basic_stringbuf</tt> not copyable.  This is likely the status-quo of
-current implementations.  B) Reasonable copy semantics of
-<tt>basic_stringbuf</tt> can be defined and implemented.  A copyable
-<tt>basic_streambuf</tt> is arguably more useful than a non-copyable one.  This
-should be considered as new functionality and not the fixing of a
-defect.  If option B is chosen, ramifications from issue 432 are taken
-into account.
-</p>
-
-<p>
-27.8.1.1 [lib.filebuf]: There are no reasonable copy semantics for
-<tt>basic_filebuf</tt>.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="424"></a>424. normative notes</h3>
-<p><b>Section:</b> 17.5.1.2 [structure.summary] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The text in 17.3.1.1, p1 says:
-<br/>
-
-"Paragraphs labelled "Note(s):" or "Example(s):" are informative, other
-paragraphs are normative."
-<br/>
-
-The library section makes heavy use of paragraphs labeled "Notes(s),"
-some of which are clearly intended to be normative (see list 1), while
-some others are not (see list 2). There are also those where the intent
-is not so clear (see list 3).
-<br/><br/>
-
-List 1 -- Examples of (presumably) normative Notes:
-<br/>
-
-20.7.9.1 [allocator.members], p3,<br/>
-20.7.9.1 [allocator.members], p10,<br/>
-21.4.2 [string.cons], p11,<br/>
-22.3.1.2 [locale.cons], p11,<br/>
-23.3.3.4 [deque.modifiers], p2,<br/>
-25.4.7 [alg.min.max], p3,<br/>
-26.4.6 [complex.ops], p15,<br/>
-27.6.3.4.3 [streambuf.virt.get], p7.<br/>
-<br/>
-
-List 2 -- Examples of (presumably) informative Notes:
-<br/>
-
-18.6.1.3 [new.delete.placement], p3,<br/>
-21.4.6.6 [string::replace], p14,<br/>
-22.4.1.4.2 [locale.codecvt.virtuals], p3,<br/>
-25.2.4 [alg.foreach], p4,<br/>
-26.4.5 [complex.member.ops], p1,<br/>
-27.5.3.5 [ios.base.storage], p6.<br/>
-<br/>
-
-List 3 -- Examples of Notes that are not clearly either normative
-or informative:
-<br/>
-
-22.3.1.2 [locale.cons], p8,<br/>
-22.3.1.5 [locale.statics], p6,<br/>
-27.6.3.4.5 [streambuf.virt.put], p4.<br/>
-<br/>
-
-None of these lists is meant to be exhaustive.
-</p>
-
-<p><i>[Definitely a real problem.  The big problem is there's material
-  that doesn't quite fit any of the named paragraph categories
-  (e.g. <b>Effects</b>).  Either we need a new kind of named
-  paragraph, or we need to put more material in unnamed paragraphs
-  jsut after the signature.  We need to talk to the Project Editor
-  about how to do this.
-]</i></p>
-
-
-<p><i>[
-Bellevue: Specifics of list 3: First 2 items correct in std (22.1.1.2,
-22.1.1.5) Third item should be non-normative (27.5.2.4.5), which Pete
-will handle editorially.
-]</i></p>
-
-
-<p><i>[
-post San Francisco:  Howard: reopened, needs attention.
-]</i></p>
-
-
-<p><i>[Pete: I changed the paragraphs marked "Note" and "Notes" to use "Remark" and "Remarks".
-Fixed as editorial.  This change has been in the WD since the post-Redmond mailing, in 2004.
-Recommend NAD.]</i></p>
-
-
-<p><i>[
-Batavia:  We feel that the references in List 2 above should be changed from <i>Remarks</i>
-to <i>Notes</i>.  We also feel that those items in List 3 need to be double checked for
-the same change.  Alan and Pete to review.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-A spot-check of List 2 suggests the issue is still relevant,
-and a review of List 3 still seems called-for.
-</p>
-<p>
-Move to NAD Editorial.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-<hr>
-<h3><a name="429"></a>429. typo in basic_ios::clear(iostate)</h3>
-<p><b>Section:</b> 27.5.5.4 [iostate.flags] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#412">412</a></p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The Effects clause in 27.4.4.3, p5 describing the effects of a call to
-the ios_base member function clear(iostate state) says that the function
-only throws if the respective bits are already set prior to the function
-call. That's obviously not the intent. If it was, a call to clear(badbit)
-on an object for which (rdstate() == goodbit &amp;&amp; exceptions() == badbit)
-holds would not result in an exception being thrown.
-
-        </p>
-    
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-The text ought to be changed from
-<br/>
-
-"If (rdstate() &amp; exceptions()) == 0, returns. ..."
-<br/>
-
-to
-<br/>
-
-"If (state &amp; exceptions()) == 0, returns. ..."
-        </p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="433"></a>433. Contradiction in specification of unexpected()</h3>
-<p><b>Section:</b> D.8.4 [unexpected] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Vyatcheslav Sysoltsev <b>Opened:</b> 2003-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Clause 15.5.2 [except.unexpected] paragraph 1 says that "void unexpected();
-is called (18.7.2) immediately after completing the stack unwinding
-for the former function", but 18.7.2.4 (Effects) says that "void
-unexpected(); . . . Calls the unexpected_handler function in effect
-immediately after evaluating the throwexpression (18.7.2.2),".  Isn't
-here a contradiction: 15.5.2 requires stack have been unwound when in
-void unexpected() and therefore in unexpected_handler but 18.7.2.4
-claims that unexpected_handler is called "in effect immediately" after
-evaluation of throw expression is finished, so there is no space left
-for stack to be unwound therefore?  I think the phrase "in effect
-immediately" should be removed from the standard because it brings
-ambiguity in understanding.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>There is no contradiction.  The phrase "in effect immediately" is
-  just to clarify which handler is to be called.</p>
-
-
-
-
-
-<hr>
-<h3><a name="437"></a>437. Formatted output of function pointers is confusing</h3>
-<p><b>Section:</b> 27.7.3.6.2 [ostream.inserters.arithmetic] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Ivan Godard <b>Opened:</b> 2003-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.inserters.arithmetic">issues</a> in [ostream.inserters.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Given:
-</p>
-<pre>
-void f(int) {}
-void(*g)(int) = f;
-cout &lt;&lt; g;
-</pre>
-
-<p>
-(with the expected #include and usings), the value printed is a rather
-surprising "true". Rather useless too.
-</p>
-
-<p>The standard defines:</p>
-
-<pre>ostream&amp; operator&lt;&lt;(ostream&amp;, void*);</pre>
-
-<p>which picks up all data pointers and prints their hex value, but does
-not pick up function pointers because there is no default conversion
-from function pointer to void*. Absent that, we fall back to legacy
-conversions from C and the function pointer is converted to bool.
-</p>
-
-<p>There should be an analogous inserter that prints the address of a
-  function pointer.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is indeed a wart, but there is no good way to solve it.  C
-  doesn't provide a portable way of outputting the address of a
-  function point either.</p>
-
-
-
-
-
-<hr>
-<h3><a name="439"></a>439. Should facets be copyable?</h3>
-<p><b>Section:</b> 22.4 [locale.categories] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2003-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.categories">issues</a> in [locale.categories].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The following facets classes have no copy constructors described in
-  the standard, which, according to the standard, means that they are
-  supposed to use the compiler-generated defaults.  Default copy
-  behavior is probably inappropriate.  We should either make these
-  classes uncopyable or else specify exactly what their constructors do.</p>
-
-<p>Related issue: <a href="lwg-closed.html#421">421</a>.</p>
-
-<pre>
-        ctype_base
-        ctype
-        ctype_byname
-        ctype&lt;char>
-        ctype_byname&lt;char>
-        codecvt_base
-        codecvt
-        codecvt_byname
-        num_get
-        num_put
-        numpunct
-        numpunct_byname
-        collate
-        collate_byname
-        time_base
-        time_get
-        time_get_byname
-        time_put
-        time_put_byname
-        money_get
-        money_put
-        money_base
-        moneypunct
-        moneypunct_byname
-        messages_base
-        messages
-        messages_byname
-</pre>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>The copy constructor in the base class is private.</p>
-
-
-
-
-
-<hr>
-<h3><a name="440"></a>440. Should std::complex use unqualified transcendentals?</h3>
-<p><b>Section:</b> 26.4.8 [complex.transcendentals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2003-11-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Operations like <tt>pow</tt> and <tt>exp</tt> on
-<tt>complex&lt;T&gt;</tt> are typically implemented in terms of
-operations like <tt>sin</tt> and <tt>cos</tt> on <tt>T</tt>.  
-Should implementations write this as <tt>std::sin</tt>, or as plain
-unqualified <tt>sin</tt>?
-</p>
-
-<p>The issue, of course, is whether we want to use
-argument-dependent lookup in the case where <tt>T</tt> is a
-user-defined type.  This is similar to the issue of valarray
-transcendentals, as discussed in issue <a href="lwg-defects.html#226">226</a>.</p>
-
-<p>This issue differs from valarray transcendentals in two important
-ways.  First, "the effect of instantiating the template
-<tt>complex</tt> for types other than float, double or long double is
-unspecified." (26.4.1 [complex.syn]) Second, the standard does not
-dictate implementation, so there is no guarantee that a particular
-real math function is used in the implementation of a particular
-complex function.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>If you instantiate std::complex for user-defined types, all bets
-are off.</p>
-
-
-
-
-
-<hr>
-<h3><a name="446"></a>446. Iterator equality between different containers</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements], 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Andy Koenig <b>Opened:</b> 2003-12-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-What requirements does the standard place on equality comparisons between
-iterators that refer to elements of different containers.  For example, if
-<tt>v1</tt> and <tt>v2</tt> are empty vectors, is <tt>v1.end() == v2.end()</tt> 
-allowed to yield true? Is it allowed to throw an exception?
-</p>
-
-<p>
-The standard appears to be silent on both questions.
-</p>
-<p><i>[Sydney: The intention is that comparing two iterators from
-different containers is undefined, but it's not clear if we say that,
-or even whether it's something we should be saying in clause 23 or in
-clause 24.  Intuitively we might want to say that equality is defined
-only if one iterator is reachable from another, but figuring out how
-to say it in any sensible way is a bit tricky: reachability is defined
-in terms of equality, so we can't also define equality in terms of
-reachability.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Daniel volunteered to work on this.
-</p></blockquote>
-
-<p><i>[
-2009-09-20 Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as Open. Alisdair has volunteered to refine the wording.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert a new paragraph between 24.2 [iterator.requirements]/7+8:
-</p>
-
-<blockquote>
-<p>
-[..] The result of the application of functions in the library to invalid
-ranges is undefined.
-</p>
-
-<p><ins>The result of directly or indirectly evaluating any comparison function
-or the binary - operator with two iterator values as arguments that
-were obtained
-from two different ranges <tt>r1</tt> and <tt>r2</tt> (including their past-the-end values) which
-are not subranges of one common range is undefined, unless explicitly
-described otherwise.</ins>
-</p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="447"></a>447. Wrong template argument for time facets</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2003-12-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#327">327</a></p>
-<p><b>Discussion:</b></p>
-<p>
-22.1.1.1.1/4, table 52, "Required Instantiations", lists, among others:
-</p>
-<pre>
-    time_get&lt;char,InputIterator>
-    time_get_byname&lt;char,InputIterator>
-    time_get&lt;wchar_t,OutputIterator>
-    time_get_byname&lt;wchar_t,OutputIterator>
-</pre>
-
-<p>
-The second argument to the last two should be InputIterator, not
-OutputIterator.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the second template argument to InputIterator.
-</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="450"></a>450. set::find is inconsistent with associative container requirements</h3>
-<p><b>Section:</b> 23.4.6 [set] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#set">issues</a> in [set].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#214">214</a></p>
-<p><b>Discussion:</b></p>
-<p>map/multimap have:</p>
-
-<pre>
-    iterator find(const key_type&amp; x) const;
-    const_iterator find(const key_type&amp; x) const;
-</pre>
-
-<p>
-which is consistent with the table of associative container requirements.
-But set/multiset have:
-</p>
-<pre>
-    iterator find(const key_type&amp;) const;
-</pre>
-
-<p>
-set/multiset should look like map/multimap, and honor the requirements
-table, in this regard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="451"></a>451. Associative erase should return an iterator</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.4 [associative] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#130">130</a></p>
-<p><b>Discussion:</b></p>
-<p>map/multimap/set/multiset have:</p>
-<pre>
-    void erase(iterator);
-    void erase(iterator, iterator);
-</pre>
-
-<p>But there's no good reason why these can't return an iterator, as for
-vector/deque/list:</p>
-<pre>
-    iterator erase(iterator);
-    iterator erase(iterator, iterator);
-</pre>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Informally: The table of associative container requirements, and the
-relevant template classes, should return an iterator designating the
-first element beyond the erased subrange.
-</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="452"></a>452.  locale::combine should be permitted to generate a named locale</h3>
-<p><b>Section:</b> 22.3.1.3 [locale.members] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.members">issues</a> in [locale.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<pre>
-template&lt;class Facet>
-    locale::combine(const locale&amp;) const;
-</pre>
-<p>
-is obliged to create a locale that has no name. This is overspecification
-and overkill. The resulting locale should follow the usual rules -- it
-has a name if the locale argument has a name and Facet is one of the
-standard facets.
-</p>
-
-<p><i>[
- Sydney and post-Sydney (see c++std-lib-13439, c++std-lib-13440,
- c++std-lib-13443): agreed that it's overkill to say that the locale
- is obligated to be nameless.  However, we also can't require it to
- have a name.  At the moment, locale names are based on categories
- and not on individual facets.  If a locale contains two different
- facets of different names from the same category, then this would
- not fit into existing naming schemes.  We need to give
- implementations more freedom.  Bill will provide wording.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>After further discussion the LWG decided to close this as NAD.
-  The fundamental problem is that names right now are per-category,
-  not per-facet.  The <tt>combine</tt> member function works at the
-  wrong level of granularity.</p>
-
-
-
-
-
-<hr>
-<h3><a name="454"></a>454. <tt>basic_filebuf::open</tt> should accept <tt>wchar_t</tt> names</h3>
-<p><b>Section:</b> 27.9.1.4 [filebuf.members] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#filebuf.members">issues</a> in [filebuf.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#105">105</a></p>
-<p><b>Discussion:</b></p>
-<pre>
-    basic_filebuf *basic_filebuf::open(const char *, ios_base::open_mode);
-</pre>
-
-<p>should be supplemented with the overload:</p>
-
-<pre>
-    basic_filebuf *basic_filebuf::open(const wchar_t *, ios_base::open_mode);
-</pre>
-
-<p>
-Depending on the operating system, one of these forms is fundamental and
-the other requires an implementation-defined mapping to determine the
-actual filename.
-</p>
-
-<p><i>[Sydney: Yes, we want to allow <tt>wchar_t</tt> filenames.  Bill will
-  provide wording.]</i></p>
-
-
-<p><i>[
-In Toronto we noted that this is issue 5 from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1569.htm">N1569</a>.
-]</i></p>
-
-<p>
-How does this interact with the newly-defined character types, and how
-do we avoid interface explosion considering <tt>std::string</tt> overloads that
-were added? Propose another solution that is different than the
-suggestion proposed by PJP.
-</p>
-<p>
-Suggestion is to make a member template function for <tt>basic_string</tt> (for
-<tt>char</tt>, <tt>wchar_t</tt>, <tt>u16char</tt>, <tt>u32char</tt> instantiations), and then just keep a
-<tt>const char*</tt> member.
-</p>
-<p>
-Goal is to do implicit conversion between character string literals to
-appropriate <tt>basic_string</tt> type. Not quite sure if this is possible.
-</p>
-<p>
-Implementors are free to add specific overloads for non-char character
-types.
-</p>
-
-<p><i>[
-Martin adds pre-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Please see <a href="http://wiki.dinkumware.com/twiki/pub/Wg21sophiaAntipolis/LibraryWorkingGroup/issue-454.html">issue 454: problems and solutions</a>.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Beman is concerned that making these changes to <tt>basic_filebuf</tt> is not
-usefully changed unless <tt>fstream</tt> is also changed; this also only handles
-<tt>wchar_t</tt> and not other character types.
-</p>
-<p>
-The TR2 filesystem library is a more complete solution, but is not available soon.
-</p>
-</blockquote>
-
-<p><i>[
-Martin adds:  please reference
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2683.html">N2683</a> for
-problems and solutions.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change from:</p>
-<blockquote>
-<pre>
-basic_filebuf&lt;charT,traits>* open(
-    const char* s,
-    ios_base::openmode mode );
-</pre>
-
-<p>
-Effects: If is_open() != false, returns a null pointer.
-Otherwise, initializes the filebuf as required. It then
-opens a file, if possible, whose name is the NTBS s ("as if"
-by calling std::fopen(s,modstr)).</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<pre>
-basic_filebuf&lt;charT,traits>* open(
-    const char* s,
-    ios_base::openmode mode );
-
-basic_filebuf&lt;charT,traits>* open(
-    const wchar_t* ws,
-    ios_base::openmode mode );
-</pre>
-
-<p>
-<i>Effects</i>: If <tt>is_open() != false</tt>, returns a null pointer.
-Otherwise, initializes the <tt>filebuf</tt> as required. It then
-opens a file, if possible, whose name is the NTBS <tt>s</tt> ("as if"
-by calling <tt>std::fopen(s,modstr)</tt>).
-For the second signature, the NTBS <tt>s</tt> is determined from the
-WCBS <tt>ws</tt> in an implementation-defined manner.
-</p>
-
-<p>
-(NOTE: For a system that "naturally" represents a filename
-as a WCBS, the NTBS s in the first signature may instead
-be mapped to a WCBS; if so, it follows the same mapping
-rules as the first argument to open.)
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Slightly controversial, but by a 7-1 straw poll the LWG agreed to move
-this to Ready.  The controversy was because the mapping between wide
-names and files in a filesystem is implementation defined.  The
-counterargument, which most but not all LWG members accepted, is that
-the mapping between narrow files names and files is also
-implemenation defined.</p>
-
-<p><i>[Lillehammer: Moved back to "open" status, at Beman's urging.
-(1) Why just basic_filebuf, instead of also basic_fstream (and
-possibly other things too). (2) Why not also constructors that take
-std::basic_string? (3) We might want to wait until we see Beman's
-filesystem library; we might decide that it obviates this.]</i></p>
-
-
-<p><i>[
-post Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Move again to Ready.
-</p>
-<p>
-There is a timing issue here. Since the filesystem library will not be
-in C++0x, this should be brought forward. This solution would remain
-valid in the context of the proposed filesystem.
-</p>
-<p>
-This issue has been kicking around for a while, and the wchar_t addition
-alone would help many users. Thus, we suggest putting this on the
-reflector list with an invitation for someone to produce proposed
-wording that covers basic_fstream. In the meantime, we suggest that the
-proposed wording be adopted as-is.
-</p>
-<p>
-If more of the Lillehammer questions come back, they should be
-introduced as separate issues.
-</p>
-</blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Some existing implementations provide overload already. Expected
-filesystem "path" object overloads neatly, without surprises; implying
-NAD.
-</p></blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="458"></a>458. 24.1.5 contains unintended limitation for <tt>operator-</tt></h3>
-<p><b>Section:</b> 24.2.7 [random.access.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Frey <b>Opened:</b> 2004-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#random.access.iterators">issues</a> in [random.access.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 24.1.5 [lib.random.access.iterators], table 76 the operational
-semantics for the expression "<tt>r -= n</tt>" are defined as "<tt>return r += -n</tt>".
-This means, that the expression <tt>-n</tt> must be valid, which is not the case
-for unsigned types.
-</p>
-
-<p><i>[
-Sydney: Possibly not a real problem, since difference type is required
-to be a signed integer type. However, the wording in the standard may
-be less clear than we would like.
-]</i></p>
-
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue refers to a requirements table we have removed.
-</p>
-<p>
-The issue might now relate to 24.2.7 [random.access.iterators] p5.
-However, the rationale in the issue already recognises that the
-<tt>difference_type</tt> must be signed, so this really looks NAD.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with Alisdair's observations.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Need to look at again without concepts.
-</p>
-<p>
-There was a question about this phrase in the discussion: "the
-expression <tt>-n</tt> must be valid, which is not the case for unsigned types."
-If <tt>n</tt> is an object of the iterator <tt>difference_type</tt> (eg <tt>ptrdiff_t</tt>), 
-then it is never unsigned.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-The group reviewed the wording in the draft and agreed that <tt>n</tt> is of
-difference type, the difference type is signed, and the current wording
-is correct.  Moved to NAD.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-To remove this limitation, I suggest to change the
-operational semantics for this column to:
-</p>
-<blockquote><pre>
-    { Distance m = n;
-      if (m >= 0)
-        while (m--) --r;
-      else
-        while (m++) ++r;
-      return r; }
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="459"></a>459. Requirement for widening in stage 2 is overspecification</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-03-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>When parsing strings of wide-character digits, the standard
-  requires the library to widen narrow-character "atoms" and compare
-  the widened atoms against the characters that are being parsed.
-  Simply narrowing the wide characters would be far simpler, and
-  probably more efficient.  The two choices are equivalent except in
-  convoluted test cases, and many implementations already ignore the
-  standard and use narrow instead of widen.</p>
-
-<p>
-First, I disagree that using narrow() instead of widen() would
-necessarily have unfortunate performance implications. A possible
-implementation of narrow() that allows num_get to be implemented
-in a much simpler and arguably comparably efficient way as calling
-widen() allows, i.e. without making a virtual call to do_narrow every
-time, is as follows:
-</p>
-
-<pre>
-  inline char ctype&lt;wchar_t>::narrow (wchar_t wc, char dflt) const
-  {
-      const unsigned wi = unsigned (wc);
-
-      if (wi > UCHAR_MAX)
-          return typeid (*this) == typeid (ctype&lt;wchar_t>) ?
-                 dflt : do_narrow (wc, dflt);
-
-      if (narrow_ [wi] &lt; 0) {
-         const char nc = do_narrow (wc, dflt);
-         if (nc == dflt)
-             return dflt;
-         narrow_ [wi] = nc;
-      }
-
-      return char (narrow_ [wi]);
-  }
-</pre>
-
-<p>
-Second, I don't think the change proposed in the issue (i.e., to use
-narrow() instead of widen() during Stage 2) would be at all
-drastic. Existing implementations with the exception of libstdc++
-currently already use narrow() so the impact of the change on programs
-would presumably be isolated to just a single implementation. Further,
-since narrow() is not required to translate alternate wide digit
-representations such as those mentioned in issue <a href="lwg-defects.html#303">303</a> to
-their narrow equivalents (i.e., the portable source characters '0'
-through '9'), the change does not necessarily imply that these
-alternate digits would be treated as ordinary digits and accepted as
-part of numbers during parsing. In fact, the requirement in 22.4.1.1.2 [locale.ctype.virtuals], p13 forbids narrow() to translate an alternate
-digit character, wc, to an ordinary digit in the basic source
-character set unless the expression
-(ctype&lt;charT>::is(ctype_base::digit, wc) == true) holds. This in
-turn is prohibited by the C standard (7.25.2.1.5, 7.25.2.1.5, and
-5.2.1, respectively) for charT of either char or wchar_t.
-</p>
-
-<p><i>[Sydney: To a large extent this is a nonproblem. As long as
-you're only trafficking in char and wchar_t we're only dealing with a
-stable character set, so you don't really need either 'widen' or
-'narrow': can just use literals. Finally, it's not even clear whether
-widen-vs-narrow is the right question; arguably we should be using
-codecvt instead.]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-NAD. The standard is clear enough as written.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change stage 2 so that implementations are permitted to use either
-technique to perform the comparison:</p>
-<ol>
-  <li> call widen on the atoms and compare (either by using
-      operator== or char_traits&lt;charT>::eq) the input with
-      the widened atoms, or</li>
-  <li> call narrow on the input and compare the narrow input
-      with the atoms</li>
-  <li> do (1) or (2) only if charT is not char or wchar_t,
-      respectively; i.e., avoid calling widen or narrow
-      if it the source and destination types are the same</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="462"></a>462. Destroying objects with static storage duration</h3>
-<p><b>Section:</b> 3.6.3 [basic.start.term], 18.4 [cstdint] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-03-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-3.6.3 Termination spells out in detail the interleaving of static
-destructor calls and calls to functions registered with atexit. To
-match this behavior requires intimate cooperation between the code
-that calls destructors and the exit/atexit machinery. The former
-is tied tightly to the compiler; the latter is a primitive mechanism
-inherited from C that traditionally has nothing to do with static
-construction and destruction. The benefits of intermixing destructor
-calls with atexit handler calls is questionable at best, and <i>very</i>
-difficult to get right, particularly when mixing third-party C++
-libraries with different third-party C++ compilers and C libraries
-supplied by still other parties.
-</p>
-
-<p>
-I believe the right thing to do is defer all static destruction
-until after all atexit handlers are called. This is a change in
-behavior, but one that is likely visible only to perverse test
-suites. At the very least, we should <i>permit</i> deferred destruction
-even if we don't require it.
-</p>
-
-<p><i>[If this is to be changed, it should probably be changed by CWG.
-  At this point, however, the LWG is leaning toward NAD.  Implementing
-  what the standard says is hard work, but it's not impossible and
-  most vendors went through that pain years ago.  Changing this
-  behavior would be a user-visible change, and would break at least
-  one real application.]</i></p>
-
-
-<p><i>[
-Batavia:  Send to core with our recommendation that we should permit deferred
-destruction but not require it.
-]</i></p>
-
-
-<p><i>[
-Howard:  The course of action recommended in Batavia would undo LWG
-issue <a href="lwg-defects.html#3">3</a> and break current code implementing the "phoenix
-singleton". Search the net for "phoenix singleton atexit" to get a feel
-for the size of the adverse impact this change would have.  Below is
-sample code which implements the phoenix singleton and would break if
-<tt>atexit</tt> is changed in this way:
-]</i></p>
-
-
-<blockquote><pre>
-#include &lt;cstdlib&gt;
-#include &lt;iostream&gt;
-#include &lt;type_traits&gt;
-#include &lt;new&gt;
-
-class A
-{
-    bool alive_;
-    A(const A&amp;);
-    A&amp; operator=(const A&amp;);
-public:
-    A() : alive_(true) {std::cout &lt;&lt; "A()\n";}
-    ~A() {alive_ = false; std::cout &lt;&lt; "~A()\n";}
-    void use()
-    {
-        if (alive_)
-            std::cout &lt;&lt; "A is alive\n";
-        else
-            std::cout &lt;&lt; "A is dead\n";
-    }
-};
-
-void deallocate_resource();
-
-// This is the phoenix singleton pattern
-A&amp; get_resource(bool create = true)
-{
-    static std::aligned_storage&lt;sizeof(A), std::alignment_of&lt;A&gt;::value&gt;::type buf;
-    static A* a;
-    if (create)
-    {
-        if (a != (A*)&amp;buf)
-        {
-            a = ::new (&amp;buf) A;
-            std::atexit(deallocate_resource);
-        }
-    }
-    else
-    {
-        a-&gt;~A();
-        a = (A*)&amp;buf + 1;
-    }
-    return *a;
-}
-
-void deallocate_resource()
-{
-    get_resource(false);
-}
-
-void use_A(const char* message)
-{
-    A&amp; a = get_resource();
-    std::cout &lt;&lt; "Using A " &lt;&lt; message &lt;&lt; "\n";
-    a.use();
-}
-
-struct B
-{
-    ~B() {use_A("from ~B()");}
-};
-
-B b;
-
-int main()
-{
-    use_A("from main()");
-}
-</pre></blockquote>
-
-<p>
-The correct output is:
-</p>
-
-<blockquote><pre>
-A()
-Using A from main()
-A is alive
-~A()
-A()
-Using A from ~B()
-A is alive
-~A()
-</pre></blockquote>
-
-<p><i>[
-Bellevue: Confirmed no interaction with <tt>quick_exit</tt>.
-Strong feeling against mandating the change. Leaning towards NAD rather than permitting the change,
-as this would make common implementations of pheonix-singleton pattern implementation defined, as noted by Howard.
-Bill agrees issue is no longer serious, and accepts NAD.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="463"></a>463. <tt>auto_ptr</tt> usability issues</h3>
-<p><b>Section:</b> X [auto.ptr] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Rani Sharoni <b>Opened:</b> 2003-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#auto.ptr">issues</a> in [auto.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-TC1 CWG DR #84 effectively made the <tt>template&lt;class Y&gt; operator auto_ptr&lt;Y&gt;()</tt>
-member of <tt>auto_ptr</tt> (20.4.5.3/4) obsolete.
-</p>
-
-<p>
-The sole purpose of this obsolete conversion member is to enable copy
-initialization base from r-value derived (or any convertible types like
-cv-types) case:
-</p>
-<pre>
-#include &lt;memory&gt;
-using std::auto_ptr;
-
-struct B {};
-struct D : B {};
-
-auto_ptr&lt;D&gt; source();
-int sink(auto_ptr&lt;B&gt;);
-int x1 = sink( source() ); // #1 EDG - no suitable copy constructor
-</pre>
-
-<p>
-The excellent analysis of conversion operations that was given in the final
-<tt>auto_ptr</tt> proposal
-(http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1997/N1128.pdf)
-explicitly specifies this case analysis (case 4). DR #84 makes the analysis
-wrong and actually comes to forbid the loophole that was exploited by the
-<tt>auto_ptr</tt> designers.
-</p>
-
-<p>
-I didn't encounter any compliant compiler (e.g. EDG, GCC, BCC and VC) that
-ever allowed this case. This is probably because it requires 3 user defined
-conversions and in fact current compilers conform to DR #84.
-</p>
-
-<p>
-I was surprised to discover that the obsolete conversion member actually has
-negative impact of the copy initialization base from l-value derived
-case:</p>
-<pre>
-auto_ptr&lt;D&gt; dp;
-int x2 = sink(dp); // #2 EDG - more than one user-defined conversion applies
-</pre>
-
-<p>
-I'm sure that the original intention was allowing this initialization using
-the <tt>template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y&gt;&amp; a)</tt> constructor (20.4.5.1/4) but
-since in this copy initialization it's merely user defined conversion (UDC)
-and the obsolete conversion member is UDC with the same rank (for the early
-overloading stage) there is an ambiguity between them.
-</p>
-
-<p>
-Removing the obsolete member will have impact on code that explicitly
-invokes it:
-</p>
-<pre>
-int y = sink(source().operator auto_ptr&lt;B>());
-</pre>
-
-<p>
-IMHO no one ever wrote such awkward code and the reasonable workaround for
-#1 is:
-</p>
-<pre>
-int y = sink( auto_ptr&lt;B>(source()) );
-</pre>
-
-<p>
-I was even more surprised to find out that after removing the obsolete
-conversion member the initialization was still ill-formed:
-<tt>int x3 = sink(dp); // #3 EDG - no suitable copy constructor</tt>
-</p>
-
-<p>
-This copy initialization semantically requires copy constructor which means
-that both template conversion constructor and the <tt>auto_ptr_ref</tt> conversion
-member (20.4.5.3/3) are required which is what was explicitly forbidden in
-DR #84. This is a bit amusing case in which removing ambiguity results with
-no candidates.
-</p>
-
-<p>
-I also found exception safety issue with <tt>auto_ptr</tt> related to <tt>auto_ptr_ref</tt>:
-</p>
-<pre>
-int f(auto_ptr&lt;B>, std::string);
-auto_ptr&lt;B> source2();
-
-// string constructor throws while auto_ptr_ref
-// "holds" the pointer
-int x4 = f(source2(), "xyz"); // #4
-</pre>
-
-<p>
-The theoretic execution sequence that will cause a leak:
-</p>
-<ol>
-<li>call auto_ptr&lt;B>::operator auto_ptr_ref&lt;B>()</li>
-<li>call string::string(char const*) and throw</li>
-</ol>
-
-<p>
-According to 20.4.5.3/3 and 20.4.5/2 the <tt>auto_ptr_ref</tt> conversion member
-returns <tt>auto_ptr_ref&lt;Y&gt;</tt> that holds <tt>*this</tt> and this is another defect since
-the type of <tt>*this</tt> is <tt>auto_ptr&lt;X&gt;</tt> where <tt>X</tt> might 
-be different from <tt>Y</tt>. Several library vendors (e.g. SGI) implement 
-<tt>auto_ptr_ref&lt;Y&gt;</tt> with <tt>Y*</tt> as member which
-is much more reasonable. Other vendor implemented <tt>auto_ptr_ref</tt> as
-defectively required and it results with awkward and catastrophic code:
-<tt>int oops = sink(auto_ptr&lt;B>(source())); // warning recursive on all control paths</tt>
-</p>
-
-<p>
-Dave Abrahams noticed that there is no specification saying that
-<tt>auto_ptr_ref</tt> copy constructor can't throw.
-</p>
-
-<p>
-My proposal comes to solve all the above issues and significantly simplify
-<tt>auto_ptr</tt> implementation. One of the fundamental requirements from 
-<tt>auto_ptr</tt> is that it can be constructed in an intuitive manner (i.e. 
-like ordinary pointers) but with strict ownership semantics which yield that source
-<tt>auto_ptr</tt> in initialization must be non-const. My idea is to add additional
-constructor template with sole propose to generate ill-formed, diagnostic
-required, instance for const auto_ptr arguments during instantiation of
-declaration. This special constructor will not be instantiated for other
-types which is achievable using 14.8.2/2 (SFINAE). Having this constructor
-in hand makes the constructor <tt>template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y> const&amp;)</tt>
-legitimate since the actual argument can't be const yet non const r-value
-are acceptable.
-</p>
-
-<p>
-This implementation technique makes the "private auxiliary class"
-<tt>auto_ptr_ref</tt> obsolete and I found out that modern C++ compilers (e.g. EDG,
-GCC and VC) consume the new implementation as expected and allow all
-intuitive initialization and assignment cases while rejecting illegal cases
-that involve const <tt>auto_ptr</tt> arguments.
-</p>
-
-<p>The proposed auto_ptr interface:</p>
-
-<pre>
-namespace std {
-    template&lt;class X&gt; class auto_ptr {
-    public:
-        typedef X element_type;
-
-        // 20.4.5.1 construct/copy/destroy:
-        explicit auto_ptr(X* p=0) throw();
-        auto_ptr(auto_ptr&amp;) throw();
-        template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y&gt; const&amp;) throw();
-        auto_ptr&amp; operator=(auto_ptr&amp;) throw();
-        template&lt;class Y&gt; auto_ptr&amp; operator=(auto_ptr&lt;Y&gt;) throw();
-        ~auto_ptr() throw();
-
-        // 20.4.5.2 members:
-        X&amp; operator*() const throw();
-        X* operator->() const throw();
-        X* get() const throw();
-        X* release() throw();
-        void reset(X* p=0) throw();
-
-    private:
-        template&lt;class U&gt;
-        auto_ptr(U&amp; rhs, typename
-unspecified_error_on_const_auto_ptr&lt;U&gt;::type = 0);
-    };
-}
-</pre>
-
-<p>
-One compliant technique to implement the <tt>unspecified_error_on_const_auto_ptr</tt>
-helper class is using additional private <tt>auto_ptr</tt> member class template like
-the following:
-</p>
-<pre>
-template&lt;typename T&gt; struct unspecified_error_on_const_auto_ptr;
-
-template&lt;typename T&gt;
-struct unspecified_error_on_const_auto_ptr&lt;auto_ptr&lt;T&gt; const&gt;
-{ typedef typename auto_ptr&lt;T&gt;::const_auto_ptr_is_not_allowed type; };
-</pre>
-
-<p>
-There are other techniques to implement this helper class that might work
-better for different compliers (i.e. better diagnostics) and therefore I
-suggest defining its semantic behavior without mandating any specific
-implementation. IMO, and I didn't found any compiler that thinks otherwise,
-14.7.1/5 doesn't theoretically defeat the suggested technique but I suggest
-verifying this with core language experts.
-</p>
-
-<p><b>Further changes in standard text:</b></p>
-<p>Remove section 20.4.5.3</p>
-
-<p>Change 20.4.5/2 to read something like:
-Initializing <tt>auto_ptr&lt;X&gt;</tt> from <tt>const auto_ptr&lt;Y&gt;</tt> will result with unspecified
-ill-formed declaration that will require unspecified diagnostic.</p>
-
-<p>Change 20.4.5.1/4,5,6 to read:</p>
-
-<pre>template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y&gt; const&amp; a) throw();</pre>
-<p> 4 <i>Requires</i>: <tt>Y*</tt> can be implicitly converted to <tt>X*</tt>.</p>
-<p> 5 <i>Effects</i>: Calls <tt>const_cast&lt;auto_ptr&lt;Y&gt;&amp;&gt;(a).release()</tt>.</p>
-<p> 6 <i>Postconditions</i>: <tt>*this</tt> holds the pointer returned from <tt>a.release()</tt>.</p>
-
-<p>Change 20.4.5.1/10</p>
-<pre>
-template&lt;class Y&gt; auto_ptr&amp; operator=(auto_ptr&lt;Y&gt; a) throw();
-</pre>
-<p>
-10 <i>Requires</i>: <tt>Y*</tt> can be implicitly converted to <tt>X*</tt>. The expression <tt>delete
-get()</tt> is well formed.
-</p>
-
-<p>LWG TC DR #127 is obsolete.</p>
-
-<p>
-Notice that the copy constructor and copy assignment operator should remain
-as before and accept non-<tt>const auto_ptr&amp;</tt> since they have effect on the form
-of the implicitly declared copy constructor and copy assignment operator of
-class that contains auto_ptr as member per 12.8/5,10:
-</p>
-<pre>
-struct X {
-    // implicit X(X&amp;)
-    // implicit X&amp; operator=(X&amp;)
-    auto_ptr&lt;D> aptr_;
-};
-</pre>
-
-<p>
-In most cases this indicates about sloppy programming but preserves the
-current <tt>auto_ptr</tt> behavior.
-</p>
-
-<p>
-Dave Abrahams encouraged me to suggest fallback implementation in case that
-my suggestion that involves removing of <tt>auto_ptr_ref</tt> will not be accepted.
-In this case removing the obsolete conversion member to <tt>auto_ptr&lt;Y&gt;</tt> and
-20.4.5.3/4,5 is still required in order to eliminate ambiguity in legal
-cases. The two constructors that I suggested will co exist with the current
-members but will make <tt>auto_ptr_ref</tt> obsolete in initialization contexts.
-<tt>auto_ptr_ref</tt> will be effective in assignment contexts as suggested in DR
-#127 and I can't see any serious exception safety issues in those cases
-(although it's possible to synthesize such). <tt>auto_ptr_ref&lt;X&gt;</tt> semantics will
-have to be revised to say that it strictly holds pointer of type <tt>X</tt> and not
-reference to an <tt>auto_ptr</tt> for the favor of cases in which <tt>auto_ptr_ref&lt;Y&gt;</tt> is
-constructed from <tt>auto_ptr&lt;X&gt;</tt> in which <tt>X</tt> is different from 
-<tt>Y</tt> (i.e. assignment from r-value derived to base).
-</p>
-
-<p><i>[Redmond: punt for the moment. We haven't decided yet whether we
-  want to fix auto_ptr for C++-0x, or remove it and replace it with
-  move_ptr and unique_ptr.]</i></p>
-
-
-<p><i>[
-Oxford 2007: Recommend NAD.  We're just going to deprecate it.  It still works for simple use cases
-and people know how to deal with it.  Going forward <tt>unique_ptr</tt> is the recommended
-tool.
-]</i></p>
-
-
-<p><i>[
-2007-11-09: Reopened at the request of David Abrahams, Alisdair Meredith and Gabriel Dos Reis.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-This is a complicated issue, so we agreed to defer discussion until
-later in the week so that interested parties can read up on it.
-</p></blockquote>
-
-<p><i>[
-2009-10-04 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I suggest to close this issue as NAD. The reasons are two-fold: First, the
-suggested proposed resolution uses no longer appropriate language means
-to solve this issue, which has the effect that the recommended resolution is
-another - but better - form of hack. Second, either following the suggested
-resolution or the now more natural alternative via the added member set
-</p>
-
-<blockquote><pre>
-template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y&gt;&amp;&amp;) throw();
-template&lt;class Y&gt; auto_ptr&amp; operator=(auto_ptr&lt;Y&gt;&amp;&amp;) throw();
-</pre></blockquote>
-
-<p>
-would still have a non-zero probability to break user-code that actively
-references <tt>auto_ptr_ref</tt>. This risk seems to indicate that a
-decision which would not touch the current spec of <tt>auto_ptr</tt> at
-all (but deprecating it) and instead recommending to use
-<tt>unique_ptr</tt> for new code instead might have the best
-cost-benefit ratio. IMO the current solution of <a href="lwg-defects.html#1100">1100</a> can
-be considered as an active user-support for this transition.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD. Alisdair will open a new issue (<a href="lwg-defects.html#1247">1247</a>) with
-proposed wording to handle <tt>auto_ptr_ref</tt>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in X [auto.ptr]:
-</p>
-
-<blockquote><pre>
-namespace std { 
-  <del>template &lt;class Y&gt; struct auto_ptr_ref {};</del>
-
-  <ins>// exposition only</ins>
-  <ins>template &lt;class T&gt; struct constant_object;</ins>
-
-  <ins>// exposition only</ins>
-  <ins>template &lt;class T&gt;</ins>
-  <ins>struct cannot_transfer_ownership_from</ins>
-    <ins>: constant_object&lt;T&gt; {};</ins>
-
-  template &lt;class X&gt; class auto_ptr { 
-  public: 
-    typedef X element_type; 
-
-    // D.9.1.1 construct/copy/destroy: 
-    explicit auto_ptr(X* p =0) throw(); 
-    auto_ptr(auto_ptr&amp;) throw(); 
-    template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y&gt;<ins> const</ins>&amp;) throw(); 
-    auto_ptr&amp; operator=(auto_ptr&amp;) throw(); 
-    template&lt;class Y&gt; auto_ptr&amp; operator=(auto_ptr&lt;Y&gt;<del>&amp;</del>) throw();
-    <del>auto_ptr&amp; operator=(auto_ptr_ref&lt;X&gt; r) throw();</del>
-    ~auto_ptr() throw(); 
-
-    // D.9.1.2 members: 
-    X&amp; operator*() const throw();
-    X* operator-&gt;() const throw();
-    X* get() const throw();
-    X* release() throw();
-    void reset(X* p =0) throw();
-
-    <del>// D.9.1.3 conversions:</del>
-    <del>auto_ptr(auto_ptr_ref&lt;X&gt;) throw();</del>
-    <del>template&lt;class Y&gt; operator auto_ptr_ref&lt;Y&gt;() throw();</del>
-    <del>template&lt;class Y&gt; operator auto_ptr&lt;Y&gt;() throw();</del>
-
-    <ins>// exposition only</ins>
-    <ins>template&lt;class U&gt;</ins>
-    <ins>auto_ptr(U&amp; rhs, typename cannot_transfer_ownership_from&lt;U&gt;::error = 0);</ins>
-  }; 
-
-  template &lt;&gt; class auto_ptr&lt;void&gt; 
-  { 
-  public: 
-    typedef void element_type; 
-  }; 
-
-}
-</pre></blockquote>
-
-<p>
-Remove X [auto.ptr.conv].
-</p>
-
-<p>
-Change X [auto.ptr], p3:
-</p>
-
-<blockquote><p>
-The <tt>auto_ptr</tt> provides a semantics of strict ownership. An
-<tt>auto_ptr</tt> owns the object it holds a pointer to. Copying an
-<tt>auto_ptr</tt> copies the pointer and transfers ownership to the
-destination. If more than one <tt>auto_ptr</tt> owns the same object at
-the same time the behavior of the program is undefined. <ins>Templates
-<tt>constant_object</tt> and <tt>cannot_transfer_ownership_from</tt>,
-and the final constructor of <tt>auto_ptr</tt> are for exposition only.
-For any types <tt>X</tt> and <tt>Y</tt>, initializing
-<tt>auto_ptr&lt;X&gt;</tt> from <tt>const auto_ptr&lt;Y&gt;</tt> is
-ill-formed, diagnostic required.</ins> [<i>Note:</i> The uses of
-<tt>auto_ptr</tt> include providing temporary exception-safety for
-dynamically allocated memory, passing ownership of dynamically allocated
-memory to a function, and returning dynamically allocated memory from a
-function. <tt>auto_ptr</tt> does not meet the <tt>CopyConstructible</tt>
-and <tt>Assignable</tt> requirements for Standard Library container
-elements and thus instantiating a Standard Library container with an
-<tt>auto_ptr</tt> results in undefined behavior. <i>-- end note</i>]
-</p></blockquote>
-
-<p>
-Change  [auto.ptr.cons], p5:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class Y&gt; auto_ptr(auto_ptr&lt;Y&gt;<ins> const</ins>&amp; a) throw();
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>Y*</tt> can be implicitly converted to <tt>X*</tt>.
-</p>
-<p>
-<i>Effects:</i> Calls <ins><tt>const_cast&lt;auto_ptr&lt;Y&gt;&amp;&gt;(</tt></ins><tt>a</tt><ins><tt>)</tt></ins><tt>.release()</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>*this</tt> holds the pointer returned from <tt>a.release()</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change  [auto.ptr.cons], p10:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class Y&gt; auto_ptr&amp; operator=(auto_ptr&lt;Y&gt;<del>&amp;</del> a) throw();
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>Y*</tt> can be implicitly converted to <tt>X*</tt>.
-The expression <tt>delete get()</tt> is well formed.
-</p>
-<p>
-<i>Effects:</i> Calls <tt>reset(a.release())</tt>.
-</p>
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="466"></a>466. <tt>basic_string</tt> ctor should prevent null pointer error</h3>
-<p><b>Section:</b> 21.4.1 [string.require] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Frey <b>Opened:</b> 2004-06-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.require">issues</a> in [string.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Today, my colleagues and me wasted a lot of time. After some time, I
-found the problem. It could be reduced to the following short example:
-</p>
-
-<pre>
-  #include &lt;string&gt;
-  int main() { std::string( 0 ); }
-</pre>
-
-<p>The problem is that the tested compilers (GCC 2.95.2, GCC 3.3.1 and
-Comeau online) compile the above without errors or warnings! The
-programs (at least for the GCC) resulted in a SEGV.</p>
-
-<p>I know that the standard explicitly states that the ctor of string
-requires a <tt>char*</tt> which is not zero. STLs could easily detect the above
-case with a private ctor for <tt>basic_string</tt> which takes a single '<tt>int</tt>'
-argument. This would catch the above code at compile time and would not
-ambiguate any other legal ctors.</p>
-
-<p><i>[Redmond: No great enthusiasm for doing this.  If we do,
-  however, we want to do it for all places that take <tt>charT*</tt>
-  pointers, not just the single-argument constructor.  The other
-  question is whether we want to catch this at compile time (in which
-  case we catch the error of a literal 0, but not an expression whose
-  value is a null pointer), at run time, or both.
-  Recommend NAD.  Relegate this functionality to debugging implementations.]</i></p>
-
-
-<p><i>[
-Post Summit: Alisdair requests this be re-opened as several new language facilities are
-designed to solve exactly this kind of problem.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We are unable to achieve consensus on an approach to a resolution.
-There is some sentiment for treating this as a QOI matter.
-It is also possible
-that when <tt>string</tt> is brought into the concepts world,
-this issue might be addressed in that context.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-We considered three options:
-</p>
-
-<ul>
-<li>The proposed resolution.</li>
-<li>NAD</li>
-<li>Interpret a null pointer as the empty string.</li>
-</ul>
-
-<p>
-The consensus was NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the synopsis in 21.4 [basic.string]
-</p>
-
-<blockquote><pre>
-<ins>basic_string( nullptr_t ) = delete;</ins>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="470"></a>470. accessing containers from their elements' special functions</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The standard doesn't prohibit the destructors (or any other special
-functions) of containers' elements invoked from a member function
-of the container from "recursively" calling the same (or any other)
-member function on the same container object, potentially while the
-container is in an intermediate state, or even changing the state
-of the container object while it is being modified. This may result
-in some surprising (i.e., undefined) behavior.
-</p>
-
-<p>Read email thread starting with c++std-lib-13637 for more.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add to Container Requirements the following new paragraph:</p>
-
-<pre>
-    Unless otherwise specified, the behavior of a program that
-    invokes a container member function f from a member function
-    g of the container's value_type on a container object c that
-    called g from its mutating member function h, is undefined.
-    I.e., if v is an element of c, directly or indirectly calling
-    c.h() from v.g() called from c.f(), is undefined.
-</pre>
-
-<p><i>[Redmond: This is a real issue, but it's probably a clause 17
-  issue, not clause 23.  We get the same issue, for example, if we
-  try to destroy a stream from one of the stream's callback functions.]</i></p>
-
-  
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD.  We agree this is an issue, but not a defect.
-We believe that there is no wording we can put in the standard
-that will cover all cases without introducing unfortunate
-corner cases.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="472"></a>472. Missing "Returns" clause in std::equal_range</h3>
-<p><b>Section:</b> 25.4.3.3 [equal.range] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Prateek R Karandikar <b>Opened:</b> 2004-06-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#equal.range">issues</a> in [equal.range].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#270">270</a></p>
-<p><b>Discussion:</b></p>
-<p>
-There is no "Returns:" clause for std::equal_range, which returns non-void.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>Fixed as part of issue <a href="lwg-defects.html#270">270</a>.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="476"></a>476. Forward Iterator implied mutability</h3>
-<p><b>Section:</b> 24.2.5 [forward.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2004-07-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward.iterators">issues</a> in [forward.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>24.1/3 says:</p>
-<blockquote><p>
-  Forward iterators satisfy all the requirements of the input and
-  output iterators and can be used whenever either kind is specified
-</p></blockquote>
-
-<p>
-The problem is that satisfying the requirements of output iterator
-means that you can always assign *something* into the result of
-dereferencing it.  That makes almost all non-mutable forward
-iterators non-conforming.  I think we need to sever the refinement
-relationship between forward iterator and output iterator.
-</p>
-
-<p>Related issue: <a href="lwg-defects.html#200">200</a>.  But this is not a dup.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>Yes, 24.1/3 does say that. But it's introductory material. The
-precise specification is in 24.1.3, and the requrements table there is
-right.  We don't need to fine-tune introductory wording.  (Especially
-since this wording is likely to be changed as part of the iterator
-overhaul.)</p> 
-
-
-
-
-
-<hr>
-<h3><a name="477"></a>477. Operator-> for const forward iterators</h3>
-<p><b>Section:</b> 24.2.5 [forward.iterators] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2004-07-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward.iterators">issues</a> in [forward.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#478">478</a></p>
-<p><b>Discussion:</b></p>
-<p>
-The Forward Iterator requirements table contains the following:
-</p>
-<pre>
- expression  return type         operational  precondition
-                                  semantics
-  ==========  ==================  ===========  ==========================
-  a->m        U&amp; if X is mutable, (*a).m       pre: (*a).m is well-defined.
-              otherwise const U&amp;
-
-  r->m        U&amp;                  (*r).m       pre: (*r).m is well-defined.
-</pre>
-
-<p>
-The first line is exactly right.  The second line is wrong.  Basically
-it implies that the const-ness of the iterator affects the const-ness
-of referenced members.  But Paragraph 11 of [lib.iterator.requirements] says:
-</p>
-
-<blockquote><p>
-   In the following sections, a and b denote values of type const X, n
-   denotes a value of the difference type Distance, u, tmp, and m
-   denote identifiers, r denotes a value of X&amp;, t denotes a value of
-   value type T, o denotes a value of some type that is writable to
-   the output iterator.
-</p></blockquote>
-
-<p>AFAICT if we need the second line at all, it should read the same
-as the first line.</p>
-
-<p>Related issue: <a href="lwg-defects.html#478">478</a></p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agrees that this is a real problem.  Marked as a DUP
-  because the LWG chose to adopt the solution proposed in
-  <a href="lwg-defects.html#478">478</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="479"></a>479. Container requirements and placement new</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2004-08-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#580">580</a></p>
-<p><b>Discussion:</b></p>
-<p>Nothing in the standard appears to make this program ill-formed:</p>
-
-<pre>
-  struct C {
-    void* operator new( size_t s ) { return ::operator new( s ); }
-    // NOTE: this hides in-place and nothrow new
-  };
-
-  int main() {
-    vector&lt;C> v;
-    v.push_back( C() );
-  }
-</pre>
-
-<p>Is that intentional?  We should clarify whether or not we intended
-  to require containers to support types that define their own special
-  versions of <tt>operator new</tt>.</p>
-
-<p><i>[
-Lillehammer: A container will definitely never use this overridden
-operator new, but whether it will fail to compile is unclear from the
-standard.  Are containers supposed to use qualified or unqualified
-placement new?  20.4.1.1 is somewhat relevant, but the standard
-doesn't make it completely clear whether containers have to use
-Allocator::construct(). If containers don't use it, the details of how
-containers use placement new are unspecified. That is the real bug,
-but it needs to be fixed as part of the allocator overhaul.  Weak
-support that the eventual solution should make this code well formed.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="480"></a>480. unary_function and binary_function should have protected nonvirtual destructors</h3>
-<p><b>Section:</b> X [depr.base] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2004-08-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.base">issues</a> in [depr.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The classes std::unary_function and std::binary_function are both
-designed to be inherited from but contain no virtual functions.  This
-makes it too easy for a novice programmer to write code like
-binary_function&lt;int, int, int> *p = new plus&lt;int>; delete p;</p>
-
-<p>There are two common ways to prevent this source of undefined
-behavior: give the base class a public virtual destructor, or give it
-a protected nonvirtual destructor.  Since unary_function and
-binary_function have no other virtual functions, (note in particular
-the absence of an operator()() ), it would cost too much to give them
-public virtual destructors.  Therefore, they should be given protected
-nonvirtual destructors.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change Paragraph 20.3.1 of the Standard from</p>
-<pre>
-    template &lt;class Arg, class Result>
-    struct unary_function {
-        typedef Arg argument_type;
-        typedef Result result_type;
-    };
-
-    template &lt;class Arg1, class Arg2, class Result>
-    struct binary_function {
-        typedef Arg1 first_argument_type;
-        typedef Arg2 second_argument_type;
-        typedef Result result_type;
-    };
-</pre>
-
-<p>to</p>
-<pre>
-    template &lt;class Arg, class Result>
-        struct unary_function {
-        typedef Arg argument_type;
-        typedef Result result_type;
-    protected:
-        ~unary_function() {}
-    };
-
-    template &lt;class Arg1, class Arg2, class Result>
-    struct binary_function {
-        typedef Arg1 first_argument_type;
-        typedef Arg2 second_argument_type;
-        typedef Result result_type;
-    protected:
-        ~binary_function() {}
-    };
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG doesn't believe the existing definition causes anybody any
-  concrete harm.</p>
-
-
-
-
-
-<hr>
-<h3><a name="481"></a>481. unique's effects on the range [result, last)</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2004-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard says that unique(first, last) "eliminates all but the
-first element from every consecutive group of equal elements" in
-[first, last) and returns "the end of the resulting range".  So a
-postcondition is that [first, result) is the same as the old [first,
-last) except that duplicates have been eliminated.
-</p>
-
-<p>What postconditions are there on the range [result, last)?  One
-  might argue that the standard says nothing about those values, so
-  they can be anything.  One might also argue that the standard
-  doesn't permit those values to be changed, so they must not be.
-  Should the standard say something explicit one way or the other?</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>We don't want to make many guarantees about what's in [result,
-end). Maybe we aren't being quite explicit enough about not being
-explicit, but it's hard to think that's a major problem.</p>
-
-
-
-
-
-<hr>
-<h3><a name="483"></a>483. Heterogeneous equality and EqualityComparable</h3>
-<p><b>Section:</b> 25.2 [alg.nonmodifying], 25.3 [alg.modifying.operations] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2004-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#283">283</a></p>
-<p><b>Discussion:</b></p>
-<p>c++std-lib-14262</p>
-
-<p>[lib.alg.find] requires T to be EqualityComparable:</p>
-
-<pre>
-template &lt;class InputIterator, class T>
-   InputIterator find(InputIterator first, InputIterator last,
-                      const T&amp; value);
-</pre>
-
-<p>
-However the condition being tested, as specified in the Effects
-clause, is actually *i == value, where i is an InputIterator.
-</p>
-
-<p>
-The two clauses are in agreement only if the type of *i is T, but this
-isn't necessarily the case. *i may have a heterogeneous comparison
-operator that takes a T, or a T may be convertible to the type of *i.
-</p>
-
-<p>Further discussion (c++std-lib-14264): this problem affects a
-  number of algorithsm in clause 25, not just <tt>find</tt>.  We
-  should try to resolve this problem everywhere it appears.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>[lib.alg.find]:</p>
-<blockquote><p>
-   Remove [lib.alg.find]/1.
-</p></blockquote>
-
-<p>[lib.alg.count]:</p>
-<blockquote><p>
-   Remove [lib.alg.count]/1.
-</p></blockquote>
-
-<p>[lib.alg.search]:</p>
-<blockquote><p>
-   Remove "Type T is EqualityComparable (20.1.1), " from [lib.alg.search]/4.
-</p></blockquote>
-
-<p>[lib.alg.replace]:</p>
-
-<blockquote>
-   <p>
-   Remove [lib.alg.replace]/1.
-   Replace [lb.alg.replace]/2 with:
-   </p>
-
-       <blockquote><p>
-       For every iterator i in the range [first, last) for which *i == value
-       or pred(*i) holds perform *i = new_value.
-       </p></blockquote>
-
-   <p>
-   Remove the first sentence of /4.
-   Replace the beginning of /5 with:
-   </p>
-
-       <blockquote><p>
-       For every iterator i in the range [result, result + (last -
-       first)), assign to *i either...
-       </p></blockquote>
-
-   <p>(Note the defect here, current text says assign to i, not *i).</p>
-</blockquote>
-
-<p>[lib.alg.fill]:</p>
-
-<blockquote>
-   <p>
-   Remove "Type T is Assignable (23.1), " from /1.
-   Replace /2 with:
-   </p>
-
-       <blockquote><p>
-       For every iterator i in the range [first, last) or [first, first + n),
-       perform *i = value.
-       </p></blockquote>
-</blockquote>
-
-<p>[lib.alg.remove]:</p>
-<blockquote><p>
-   Remove /1.
-   Remove the first sentence of /6.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Duplicate of (a subset of) issue <a href="lwg-defects.html#283">283</a>.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="486"></a>486. min/max CopyConstructible requirement is too strict</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2004-10-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#281">281</a></p>
-<p><b>Discussion:</b></p>
-<p>A straightforward implementation of these algorithms does not need to
-copy T.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>drop the the words "and CopyConstructible" from paragraphs 1 and 4</p>
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="487"></a>487. Allocator::construct is too limiting</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Dhruv Matani <b>Opened:</b> 2004-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard's version of allocator::construct(pointer,
-const_reference) severely limits what you can construct using this
-function.  Say you can construct a socket from a file descriptor. Now,
-using this syntax, I first have to manually construct a socket from
-the fd, and then pass the constructed socket to the construct()
-function so it will just to an uninitialized copy of the socket I
-manually constructed. Now it may not always be possible to copy
-construct a socket eh! So, I feel that the changes should go in the
-allocator::construct(), making it:
-</p>
-<pre>
-    template&lt;typename T>
-    struct allocator{
-      template&lt;typename T1>
-      void construct(pointer T1 const&amp; rt1);
-    };
-</pre>
-
-<p>
-Now, the ctor of the class T which matches the one that takes a T1 can
-be called! Doesn't that sound great?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>NAD. STL uses copying all the time, and making it possible for
-  allocators to construct noncopyable objects is useless in the
-  absence of corresponding container changes. We might consider this
-  as part of a larger redesign of STL.</p>
-
-
-
-
-
-<hr>
-<h3><a name="489"></a>489. std::remove / std::remove_if wrongly specified</h3>
-<p><b>Section:</b> 25.3.8 [alg.remove] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Mang <b>Opened:</b> 2004-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.remove">issues</a> in [alg.remove].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Section 25.2.7 [lib.alg.remove], paragraphs 1 to 5 describe the
-behavior of the mutating sequence operations std::remove and
-std::remove_if. However, the wording does not reflect the intended
-behavior [Note: See definition of intended behavior below] of these
-algorithms, as it is known to the C++ community [1].
-</p>
-
-
-
-<p>1) Analysis of current wording:</p>
-
-
-<p>25.2.7 [lib.alg.remove], paragraph 2:</p>
-
-<p>Current wording says:
-"Effects: Eliminates all the elements referred to by iterator i in the
-range [first, last) for which the following corresponding conditions
-hold: *i == value, pred(*i) != false."</p>
-
-<p>
-This sentences expresses specifically that all elements denoted by the
-(original) range [first, last) for which the corresponding condition
-hold will be eliminated. Since there is no formal definition of the term
-"eliminate" provided, the meaning of "eliminate" in everyday language
-implies that as postcondition, no element in the range denoted by
-[first, last) will hold the corresponding condition on reiteration over
-the range [first, last).
-</p>
-
-<p>
-However, this is neither the intent [Note: See definition of intended
-behavior below] nor a general possible approach. It can be easily proven
-that if all elements of the original range[first, last) will hold the
-condition, it is not possible to substitute them by an element for which
-the condition will not hold.
-</p>
-
-
-<p>25.2.7 [lib.alg.remove], paragraph 3:</p>
-
-<p>
-Current wording says:
-"Returns: The end of the resulting range."
-</p>
-
-<p>
-The resulting range is not specified. In combination with 25.2.7
-[lib.alg.remove], paragraph 2, the only reasonable interpretation of
-this so-called resulting range is the range [first,last) - thus
-returning always the ForwardIterator 'last' parameter.
-</p>
-
-
-<p>
-25.2.7 [lib.alg.remove], paragraph 4:
-</p>
-
-<p>
-Current wording says:
-"Notes: Stable: the relative order of the elements that are not removed
-is the same as their relative order in the original range"
-</p>
-
-<p>
-This sentences makes use of the term "removed", which is neither
-specified, nor used in a previous paragraph (which uses the term
-"eliminate"), nor unamgiuously separated from the name of the algorithm.
-</p>
-
-
-<p>2) Description of intended behavior:</p>
-
-<p>
-For the rest of this Defect Report, it is assumed that the intended
-behavior was that all elements of the range [first, last) which do not
-hold the condition *i == value (std::remove) or  pred(*i) != false
-(std::remove_if)], call them s-elements [Note: s...stay], will be placed
-into a contiguous subrange of [first, last), denoted by the iterators
-[first, return value). The number of elements in the resulting range
-[first, return value) shall be equal to the number of s-elements in the
-original range [first, last). The relative order of the elements in the
-resulting subrange[first, return value) shall be the same as the
-relative order of the corresponding elements in the original range. It
-is undefined whether any elements in the resulting subrange [return
-value, last) will hold the corresponding condition, or not.
-</p>
-
-<p>
-All implementations known to the author of this Defect Report comply
-with this intent. Since the intent  of the behavior (contrary to the
-current wording) is also described in various utility references serving
-the C++ community [1], it is not expected that fixing the paragraphs
-will influence current code - unless the code relies on the behavior as
-it is described by current wording and the implementation indeed
-reflects the current wording, and not the intent.
-</p>
-
-
-
-<p>3) Proposed fixes:</p>
-
-
-<p>Change 25.2.7 [lib.alg.remove], paragraph 2 to:</p>
-
-<p>
-"Effect: Places all the elements referred to by iterator i in the range
-[first, last) for which the following corresponding conditions hold :
-!(*i == value), pred(*i) == false into the subrange [first, k) of the
-original range, where k shall denote a value of type ForwardIterator. It
-is undefined whether any elements in the resulting subrange [k, last)
-will hold the corresponding condition, or not."
-</p>
-
-<p>Comments to the new wording:</p>
-
-<p>
-a) "Places" has no special meaning, and the everyday language meaning
-should fit.
-b) The corresponding conditions were negated compared to the current
-wording, becaue the new wording requires it.
-c) The wording "of the original range" might be redundant, since any
-subrange starting at 'first' and containing no more elements than the
-original range is implicitly a subrange of the original range [first,
-last).
-d) The iterator k was introduced instead of "return value" in order to
-avoid a cyclic dependency on 25.2.7/3. The wording ", where k shall
-denote a value of type ForwardIterator" might be redundant, because it
-follows implicitly by 25.2.7/3.
-e) "Places" does, in the author's opinion, explicitly forbid duplicating
-any element holding the corresponding condition in the original range
-[first, last) within the resulting range [first, k). If there is doubt
-this term might be not unambiguous regarding this, it is suggested that
-k is specified more closely by the following wording: "k shall denote a
-value of type ForwardIterator [Note: see d)] so that k - first is equal
-to the number of elements in the original range [first, last) for which
-the corresponding condition did hold". This could also be expressed as a
-separate paragraph "Postcondition:"
-f) The senctence "It is undefined whether any elements in the resulting
-subrange [k, last) will hold the corresponding condition, or not." was
-added consciously so the term "Places" does not imply if the original
-range [first, last) contains n elements holding the corresponding
-condition, the identical range[first, last) will also contain exactly n
-elements holding the corresponding condition after application of the
-algorithm.
-</p>
-
-<p>
-Change 25.2.7 [lib.alg.remove], paragraph 3 to:
-
-"Returns: The iterator k."
-</p>
-
-<p>
-Change 25.2.7 [lib.alg.remove], paragraph 4 to:
-
-"Notes: Stable: the relative order of the elements that are placed into
-the subrange [first, return value) shall be the same as their relative
-order was in the original range [first, last) prior to application of
-the algorithm."
-</p>
-
-<p>
-Comments to the new wording:
-</p>
-
-<p>
-a) the wording "was ...  prior to application of the algorithm" is used
-to explicitly distinguish the original range not only by means of
-iterators, but also by a 'chronological' factor from the resulting range
-[first, return value). It might be redundant.
-</p>
-
-<p>
-[1]:
-The wording of these references is not always unambiguous, and provided
-examples partially contradict verbal description of the algorithms,
-because the verbal description resembles the problematic wording of
-ISO/IEC 14882:2003.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes that the standard is sufficiently clear, and that
-  there is no evidence of any real-world confusion about this point.</p>
-
-
-
-
-
-<hr>
-<h3><a name="490"></a>490. std::unique wrongly specified</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Mang <b>Opened:</b> 2004-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Section 25.2.8 [lib.alg.unique], paragraphs 1 to 3 describe the
-behavior of the mutating sequence operation std::unique. However, the
-wording does not reflect the intended behavior [Note: See definition of
-intended behavior below] of these algorithms, as it is known to the C++
-community [1].</p>
-
-
-
-<p>1) Analysis of current wording:</p>
-
-
-<p>25.2.8 [lib.alg.unique], paragraph 1:</p>
-
-<p>
-Current wording says:
-"Effects: Eliminates all but the first element from every consecutive
-group of equal elements referred to by the iterator i in the range
-[first, last) for which the following corresponding conditions hold: *i
-== *(i - 1) or pred(*i, *(i -1)) != false"
-</p>
-
-<p>
-This sentences expresses specifically that all elements denoted by the
-(original) range [first, last) which are not but the first element from
-a consecutive group of equal elements (where equality is defined as *i
-== *(i - 1) or pred(*i, *(i - 1)) ! = false) [Note: See DR 202], call
-them r-elements [Note: r...remove], will be eliminated. Since there is
-no formal definition of the term "eliminate" provided, it is undefined
-how this "elimination" takes place. But the meaning of "eliminate" in
-everyday language seems to disallow explicitly that after application of
-the algorithm, any r-element will remain at any position of the range
-[first, last) [2].
-</p>
-
-<p>
-Another defect in the current wording concerns the iterators used to
-compare two elements for equality: The current wording contains the
-expression "(i - 1)", which is not covered by 25/9 [Note: See DR
-submitted by Thomas Mang regarding invalid iterator arithmetic
-expressions].
-</p>
-
-
-<p>
-25.2.8 [lib.alg.unique], paragraph 2:
-</p>
-<p>Current wording says:
-"Returns: The end of the resulting range."</p>
-
-<p>
-The resulting range is not specified. In combination with 25.2.8
-[lib.alg.unique], paragraph 1, one reasonable interpretation (in the
-author's opinion even the only possible interpretation) of this
-so-called resulting range is the range [first, last) - thus returning
-always the ForwardIterator 'last' parameter.
-</p>
-
-<p>2) Description of intended behavior:</p>
-
-<p>
-For the rest of this Defect Report, it is assumed that the intended
-behavior was that all elements denoted by the original range [first,
-last) which are the first element from a consecutive group of elements
-for which the corresponding conditions: *(i-1) == *i (for the version of
-unique without a predicate argument) or pred(*(i-1), *i) ! = false (for
-the version of unique with a predicate argument) [Note: If such a group
-of elements consists of only a single element, this is also considered
-the first element] [Note: See resolutions of DR 202], call them
-s-elements [Note: s...stay], will be placed into a contiguous subrange
-of [first, last), denoted by the iterators [first, return value). The
-number of elements in the resulting range [first, return value) shall be
-equal to the number of s-elements in the original range [first, last).
-Invalid iterator arithmetic expressions are expected to be resolved as
-proposed in DR submitted by Thomas Mang regarding invalid iterator
-arithmetic expressions. It is also assumed by the author that the
-relative order of the elements in the resulting subrange [first, return
-value) shall be the same as the relative order of the corresponding
-elements (the s-elements) in the original range [Note: If this was not
-intended behavior, the additional proposed paragraph about stable order
-will certainly become obsolete].
-Furthermore, the resolutions of DR 202 are partially considered.
-</p>
-
-<p>
-All implementations known to the author of this Defect Report comply
-with this intent [Note: Except possible effects of DR 202]. Since this
-intent of the behavior (contrary to the current wording) is also
-described in various utility references serving the C++ community [1],
-it is not expected that fixing the paragraphs will influence current
-code [Note: Except possible effects of DR 202] - unless the code relies
-on the behavior as it is described by current wording and the
-implementation indeed reflects the current wording, and not the intent.
-</p>
-
-
-
-<p>3) Proposed fixes:</p>
-
-<p>
-Change 25.2.8 [lib.alg.unique], paragraph 1 to:
-</p>
-
-<p>
-"Effect: Places the first element from every consecutive group of
-elements, referred to by the iterator i in the range [first, last), for
-which the following conditions hold: *(i-1) == *i (for the version of
-unique without a predicate argument) or pred(*(i -1), *i) != false (for
-the version of unique with a predicate argument), into the subrange
-[first, k) of the original range, where k shall denote a value of type
-ForwardIterator."
-</p>
-
-<p>Comments to the new wording:</p>
-
-<p>
-a) The new wording was influenced by the resolutions of DR 202. If DR
-202 is resolved in another way, the proposed wording need also
-additional review.
-b) "Places" has no special meaning, and the everyday language meaning
-should fit.
-c) The expression "(i - 1)" was left, but is expected that DR submitted
-by Thomas Mang regarding invalid iterator arithmetic expressions will
-take this into account.
-d) The wording "(for the version of unique without a predicate
-argument)" and "(for the version of unique with a predicate argument)"
-was added consciously for clarity and is in resemblence with current
-23.2.2.4 [lib.list.ops], paragraph 19. It might be considered redundant.
-e) The wording "of the original range" might be redundant, since any
-subrange starting at first and containing no more elements than the
-original range is implicitly a subrange of the original range [first,
-last).
-f) The iterator k was introduced instead of "return value" in order to
-avoid a cyclic dependency on 25.2.8 [lib.alg.unique], paragraph 2. The
-wording ", where k shall denote a value of type ForwardIterator" might
-be redundant, because it follows implicitly by 25.2.8 [lib.alg.unique],
-paragraph 2.
-g) "Places" does, in the author's opinion, explicitly forbid duplicating
-any s-element in the original range [first, last) within the resulting
-range [first, k). If there is doubt this term might be not unambiguous
-regarding this, it is suggested that k is specified more closely by the
-following wording: "k shall denote a value of type ForwardIterator
-[Note: See f)] so that k - first is equal to the number of elements in
-the original range [first, last) being the first element from every
-consecutive group of elements for which the corresponding condition did
-hold". This could also be expressed as a separate paragraph
-"Postcondition:".
-h) If it is considered that the wording is unclear whether it declares
-the element of a group which consists of only a single element
-implicitly to be the first element of this group [Note: Such an
-interpretation could eventually arise especially in case last - first ==
-1] , the following additional sentence is proposed: "If such a group of
-elements consists of only a single element, this element is also
-considered the first element."
-</p>
-
-<p>
-Change 25.2.8 [lib.alg.unique], paragraph 2 to:
-"Returns: The iterator k."
-</p>
-
-<p>
-Add a separate paragraph "Notes:" as 25.2.8 [lib.alg.unique], paragraph
-2a or 3a, or a separate paragraph "Postcondition:" before 25.2.8
-[lib.alg.unique], paragraph 2 (wording inside {} shall be eliminated if
-the preceding expressions are used, or the preceding expressions shall
-be eliminated if wording inside {} is used):
-</p>
-
-<p>
-"Notes:{Postcondition:} Stable: the relative order of the elements that
-are placed into the subrange [first, return value {k}) shall be the same
-as their relative order was in the original range [first, last) prior to
-application of the algorithm."
-</p>
-
-<p>Comments to the new wording:</p>
-
-<p>
-a) It is assumed by the author that the algorithm was intended to be
-stable.
-In case this was not the intent, this paragraph becomes certainly
-obsolete.
-b) The wording "was ...  prior to application of the algorithm" is used
-to explicitly distinguish the original range not only by means of
-iterators, but also by a 'chronological' factor from the resulting range
-[first, return value). It might be redundant.
-</p>
-
-<p>
-25.2.8 [lib.alg.unique], paragraph 3:
-</p>
-<p>See DR 239.</p>
-
-<p>
-4) References to other DRs:
-</p>
-
-<p>
-See DR 202, but which does not address any of the problems described in
-this Defect Report [Note: This DR is supposed to complement DR 202].
-See DR 239.
-See DR submitted by Thomas Mang regarding invalid iterator arithmetic
-expressions.
-</p>
-
-<p>
-[1]:
-The wording of these references is not always unambiguous, and provided
-examples partially contradict verbal description of the algorithms,
-because the verbal description resembles the problematic wording of
-ISO/IEC 14882:2003.
-</p>
-
-<p>
-[2]:
-Illustration of conforming implementations according to current wording:
-</p>
-
-<p>
-One way the author of this DR considers how this "elimination" could be
-achieved by a conforming implementation according to current wording is
-by substituting each r-element by _any_ s-element [Note: s...stay; any
-non-r-element], since all r-elements are "eliminated".
-</p>
-
-<p>
-In case of a sequence consisting of elements being all 'equal' [Note:
-See DR 202], substituting each r-element by the single s-element is the
-only possible solution according to current wording.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes the standard is sufficiently clear. No
-implementers get it wrong, and changing it wouldn't cause any code to
-change, so there is no real-world harm here.</p>
-
-
-
-
-
-<hr>
-<h3><a name="491"></a>491. std::list&lt;>::unique incorrectly specified</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Mang <b>Opened:</b> 2004-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Section 23.3.5.5 [list.ops], paragraphs 19 to 21 describe the
-behavior of the std::list&lt;T, Allocator>::unique operation. However, the
-current wording is defective for various reasons.</p>
-
-
-
-<p>
-1) Analysis of current wording:
-</p>
-
-<p>23.3.5.5 [list.ops], paragraph 19:</p>
-
-<p>
-Current wording says:
-"Effects:  Eliminates all but the first element from every consecutive
-group of equal elements referred to by the iterator i in the range
-[first + 1, last) for which *i == *(i - 1) (for the version of unique
-with no argument) or pred(*i, *(i -1)) (for the version of unique with a
-predicate argument) holds."</p>
-
-<p>
-This sentences makes use of the undefined term "Eliminates". Although it
-is, to a certain degree, reasonable to consider the term "eliminate"
-synonymous with "erase", using "Erase" in the first place, as the
-wording of 23.3.5.5 [list.ops], paragraph 15 does, would be clearer.</p>
-
-<p>
-The range of the elements referred to by iterator i is "[first + 1,
-last)". However, neither "first" nor "last" is defined.</p>
-
-<p>
-The sentence makes three times use of iterator arithmetic expressions (
-"first + 1", "*i == *(i - 1)", "pred(*i, *(i -1))" ) which is not
-defined for bidirectional iterator [see DR submitted by Thomas Mang
-regarding invalid iterator arithmetic expressions].</p>
-
-<p>
-The same problems as pointed out in DR 202 (equivalence relation / order
-of arguments for pred()) apply to this paragraph.</p>
-
-<p>
-23.3.5.5 [list.ops], paragraph 20:
-</p>
-
-<p>
-Current wording says:
-"Throws: Nothing unless an exception in thrown by *i == *(i-1) or
-pred(*i, *(i - 1))"</p>
-
-<p>
-The sentence makes two times use of invalid iterator arithmetic
-expressions ( "*i == *(i - 1)", "pred(*i, *(i -1))" ).
-</p>
-<p>
-[Note: Minor typos: "in" / missing dot at end of sentence.]
-</p>
-
-<p>
-23.3.5.5 [list.ops], paragraph 21:</p>
-
-<p>
-Current wording says:
-"Complexity: If the range (last - first) is not empty, exactly (last -
-first) - 1 applications of the corresponding predicate, otherwise no
-application of the predicate.</p>
-
-<p>
-See DR 315 regarding "(last - first)" not yielding a range.</p>
-
-<p>
-Invalid iterator arithmetic expression "(last - first) - 1" left .</p>
-
-
-<p>2) Description of intended behavior:</p>
-
-<p>
-For the rest of this Defect Report, it is assumed that "eliminate" is
-supposed to be synonymous to "erase", that "first" is equivalent to an
-iterator obtained by a call to begin(), "last" is equivalent to an
-iterator obtained by a call to end(), and that all invalid iterator
-arithmetic expressions are resolved as described in DR submitted by
-Thomas Mang regarding invalid iterator arithmetic expressions.</p>
-
-<p>
-Furthermore, the resolutions of DR 202 are considered regarding
-equivalence relation and order of arguments for a call to pred.</p>
-
-<p>
-All implementations known to the author of this Defect Report comply
-with these assumptions, apart from the impact of the alternative
-resolution of DR 202. Except for the changes implied by the resolutions
-of DR 202, no impact on current code is expected.</p>
-
-<p>
-3) Proposed fixes:</p>
-
-<p>
-Change 23.3.5.5 [list.ops], paragraph 19 to:</p>
-
-<p>
-"Effect: Erases all but the first element from every consecutive group
-of elements, referred to by the iterator i in the range [begin(),
-end()), for which the following conditions hold: *(i-1) == *i (for the
-version of unique with no argument) or pred(*(i-1), *i) != false (for
-the version of unique with a predicate argument)."</p>
-
-<p>
-Comments to the new wording:</p>
-
-<p>
-a) The new wording was influenced by DR 202 and the resolutions
-presented there. If DR 202 is resolved in another way, the proposed
-wording need also additional review.
-b) "Erases" refers in the author's opinion unambiguously to the member
-function "erase". In case there is doubt this might not be unamgibuous,
-a direct reference to the member function "erase" is suggested [Note:
-This would also imply a change of 23.3.5.5 [list.ops], paragraph
-15.].
-c) The expression "(i - 1)" was left, but is expected that DR submitted
-by Thomas Mang regarding invalid iterator arithmetic expressions will
-take this into account.
-d) The wording "(for the version of unique with no argument)" and "(for
-the version of unique with a predicate argument)" was kept consciously
-for clarity.
-e) "begin()" substitutes "first", and "end()" substitutes "last". The
-range need adjustment from "[first + 1, last)" to "[begin(), end())" to
-ensure a valid range in case of an empty list.
-f) If it is considered that the wording is unclear whether it declares
-the element of a group which consists of only a single element
-implicitly to be the first element of this group [Note: Such an
-interpretation could eventually arise especially in case size() == 1] ,
-the following additional sentence is proposed: "If such a group of
-elements consists of only a single element, this element is also
-considered the first element."</p>
-
-<p>
-Change 23.3.5.5 [list.ops], paragraph 20 to:</p>
-
-<p>
-"Throws: Nothing unless an exception is thrown by *(i-1) == *i or
-pred(*(i-1), *i)."</p>
-
-<p>
-Comments to the new wording:</p>
-
-<p>
-a) The wording regarding the conditions is identical to proposed
-23.3.5.5 [list.ops], paragraph 19. If 23.3.5.5 [list.ops],
-paragraph 19 is resolved in another way, the proposed wording need also
-additional review.
-b) The expression "(i - 1)" was left, but is expected that DR submitted
-by Thomas Mang regarding invalid iterator arithmetic expressions will
-take this into account.
-c) Typos fixed.</p>
-
-<p>
-Change 23.3.5.5 [list.ops], paragraph 21 to:</p>
-
-<p>
-"Complexity: If empty() == false, exactly size() - 1 applications of the
-corresponding predicate, otherwise no applications of the corresponding
-predicate."</p>
-
-<p>
-Comments to the new wording:</p>
-
-<p>
-a) The new wording is supposed to also replace the proposed resolution
-of DR 315, which suffers from the problem of undefined "first" / "last".
-</p>
-
-<p>
-5) References to other DRs:</p>
-
-<p>See DR 202.
-See DR 239.
-See DR 315.
-See DR submitted by Thomas Mang regarding invalid iterator arithmetic
-expressions.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>"All implementations known to the author of this Defect Report
-comply with these assumption", and "no impact on current code is
-expected", i.e. there is no evidence of real-world confusion or
-harm.</p>
-
-
-
-
-
-<hr>
-<h3><a name="492"></a>492. Invalid iterator arithmetic expressions</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Mang <b>Opened:</b> 2004-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Various clauses other than clause 25 make use of iterator arithmetic not
-supported by the iterator category in question.
-Algorithms in clause 25 are exceptional because of 25 [lib.algorithms],
-paragraph 9, but this paragraph does not provide semantics to the
-expression "iterator - n", where n denotes a value of a distance type
-between iterators.</p>
-
-<p>1) Examples of current wording:</p>
-
-<p>Current wording outside clause 25:</p>
-
-<p>
-23.2.2.4 [lib.list.ops], paragraphs 19-21: "first + 1", "(i - 1)",
-"(last - first)"
-23.3.1.1 [lib.map.cons], paragraph 4: "last - first"
-23.3.2.1 [lib.multimap.cons], paragraph 4: "last - first"
-23.3.3.1 [lib.set.cons], paragraph 4: "last - first"
-23.3.4.1 [lib.multiset.cons], paragraph 4: "last - first"
-24.4.1 [lib.reverse.iterators], paragraph 1: "(i - 1)"
-</p>
-
-<p>
-[Important note: The list is not complete, just an illustration. The
-same issue might well apply to other paragraphs not listed here.]</p>
-
-<p>None of these expressions is valid for the corresponding iterator
-category.</p>
-
-<p>Current wording in clause 25:</p>
-
-<p>
-25.1.1 [lib.alg.foreach], paragraph 1: "last - 1"
-25.1.3 [lib.alg.find.end], paragraph 2: "[first1, last1 -
-(last2-first2))"
-25.2.8 [lib.alg.unique], paragraph 1: "(i - 1)"
-25.2.8 [lib.alg.unique], paragraph 5: "(i - 1)"
-</p>
-
-<p>
-However, current wording of 25 [lib.algorithms], paragraph 9 covers
-neither of these four cases:</p>
-
-<p>Current wording of 25 [lib.algorithms], paragraph 9:</p>
-
-<p>
-"In the description of the algorithms operator + and - are used for some
-of the iterator categories for which they do not have to be defined. In
-these cases the semantics of a+n is the same as that of</p>
-<pre>
-{X tmp = a;
-advance(tmp, n);
-return tmp;
-}
-</pre>
-<p>and that of b-a is the same as of return distance(a, b)"</p>
-
-<p>
-This paragrpah does not take the expression "iterator - n" into account,
-where n denotes a value of a distance type between two iterators [Note:
-According to current wording, the expression "iterator - n" would be
-resolved as equivalent to "return distance(n, iterator)"]. Even if the
-expression "iterator - n" were to be reinterpreted as equivalent to
-"iterator + -n" [Note: This would imply that "a" and "b" were
-interpreted implicitly as values of iterator types, and "n" as value of
-a distance type], then 24.3.4/2 interfers because it says: "Requires: n
-may be negative only for random access and bidirectional iterators.",
-and none of the paragraphs quoted above requires the iterators on which
-the algorithms operate to be of random access or bidirectional category.
-</p>
-
-<p>2) Description of intended behavior:</p>
-
-<p>
-For the rest of this Defect Report, it is assumed that the expression
-"iterator1 + n" and "iterator1 - iterator2" has the semantics as
-described in current 25 [lib.algorithms], paragraph 9, but applying to
-all clauses. The expression "iterator1 - n" is equivalent to an
-result-iterator for which the expression "result-iterator + n" yields an
-iterator denoting the same position as iterator1 does. The terms
-"iterator1", "iterator2" and "result-iterator" shall denote the value of
-an iterator type, and the term "n" shall denote a value of a distance
-type between two iterators.</p>
-
-<p>
-All implementations known to the author of this Defect Report comply
-with these assumptions.
-No impact on current code is expected.</p>
-
-<p>3) Proposed fixes:</p>
-
-
-<p>Change 25 [lib.algorithms], paragraph 9 to:</p>
-
-<p>
-"In the description of the algorithms operator + and - are used for some
-of the iterator categories for which they do not have to be defined. In
-this paragraph, a and b denote values of an iterator type, and n denotes
-a value of a distance type between two iterators. In these cases the
-semantics of a+n is the same as that of</p>
-<pre>
-{X tmp = a;
-advance(tmp, n);
-return tmp;
-}
-</pre>
-<p>,the semantics of a-n denotes the value of an iterator i for which the
-following condition holds:
-advance(i, n) == a,
-and that of b-a is the same as of
-return distance(a, b)".
-</p>
-
-<p>Comments to the new wording:</p>
-
-<p>
-a) The wording " In this paragraph, a and b denote values of an iterator
-type, and n denotes a value of a distance type between two iterators."
-was added so the expressions "b-a" and "a-n" are distinguished regarding
-the types of the values on which they operate.
-b) The wording ",the semantics of a-n denotes the value of an iterator i
-for which the following condition holds: advance(i, n) == a" was added
-to cover the expression 'iterator - n'. The wording "advance(i, n) == a"
-was used to avoid a dependency on the semantics of a+n, as the wording
-"i + n == a" would have implied. However, such a dependency might well
-be deserved.
-c) DR 225 is not considered in the new wording.
-</p>
-
-<p>
-Proposed fixes regarding invalid iterator arithmetic expressions outside
-clause 25:</p>
-
-<p>
-Either
-a) Move modified 25 [lib.algorithms], paragraph 9 (as proposed above)
-before any current invalid iterator arithmetic expression. In that case,
-the first sentence of 25 [lib.algorithms], paragraph 9, need also to be
-modified and could read: "For the rest of this International Standard,
-...." / "In the description of the following clauses including this
-...." / "In the description of the text below ..." etc. - anyways
-substituting the wording "algorithms", which is a straight reference to
-clause 25.
-In that case, 25 [lib.algorithms] paragraph 9 will certainly become
-obsolete.
-Alternatively,
-b) Add an appropiate paragraph similar to resolved 25 [lib.algorithms],
-paragraph 9, to the beginning of each clause containing invalid iterator
-arithmetic expressions.
-Alternatively,
-c) Fix each paragraph (both current wording and possible resolutions of
-DRs) containing invalid iterator arithmetic expressions separately.
-</p>
-
-<p>5) References to other DRs:</p>
-
-<p>
-See DR 225.
-See DR 237. The resolution could then also read "Linear in last -
-first".
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Keep open and ask Bill to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-This issue is related to <a href="lwg-defects.html#997">997</a>.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Hinnant: this isn't going to change any user's code or any vendor's implementation.
-</p>
-<p>
-No objection to "NAD without prejudice." If anyone proposes a
-resolution, the LWG will consider it.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[Lillehammer: Minor issue, but real. We have a blanket statement
-about this in 25/11. But (a) it should be in 17, not 25; and (b) it's
-not quite broad enough, because there are some arithmetic expressions
-it doesn't cover. Bill will provide wording.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="493"></a>493. Undefined Expression in Input Iterator Note Title</h3>
-<p><b>Section:</b> 24.2.3 [input.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2004-12-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.iterators">issues</a> in [input.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>1) In 24.1.1/3, the following text is currently present.</p>
-
-<p>"Note: For input iterators, a==b does not imply ++a=++b (Equality does
-not guarantee the substitution property or referential transparency)."</p>
-
-<p>However, when in Table 72, part of the definition of ++r is given as:</p>
-
-<p>"pre: r is dereferenceable.
-post: any copies of the previous value of r are no longer required
-either to be dereferenceable ..."</p>
-
-<p>While a==b does not imply that b is a copy of a, this statement should
-perhaps still be made more clear.</p>
-
-<p>2) There are no changes to intended behaviour</p>
-
-<p>
-3) This Note should be altered to say "Note: For input iterators a==b,
-when its behaviour is defined ++a==++b may still be false (Equality does
-not guarantee the substitution property or referential transparency).</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is descriptive text, not normative, and the meaning is clear.</p>
-
-
-
-
-
-<hr>
-<h3><a name="494"></a>494. Wrong runtime complexity for associative container's insert and delete</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Hans B os <b>Opened:</b> 2004-12-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>According to [lib.associative.reqmts] table 69, the runtime comlexity
-of insert(p, t) and erase(q) can be done in amortized constant time.</p>
-
-<p>It was my understanding that an associative container could be
-implemented as a balanced binary tree.</p>
-
-<p>For inser(p, t), you 'll have to iterate to p's next node to see if t
-can be placed next to p.  Furthermore, the insertion usually takes
-place at leaf nodes. An insert next to the root node will be done at
-the left of the root next node</p>
-
-<p>So when p is the root node you 'll have to iterate from the root to
-its next node, which  takes O(log(size)) time in a balanced tree.</p>
-
-<p>If you insert all values with insert(root, t) (where root is the
-root of the tree before insertion) then each insert takes O(log(size))
-time.  The amortized complexity per insertion will be O(log(size))
-also.</p>
-
-<p>For erase(q), the normal algorithm for deleting a node that has no
-empty left or right subtree, is to iterate to the next (or previous),
-which is a leaf node. Then exchange the node with the next and delete
-the leaf node.  Furthermore according to DR 130, erase should return
-the next node of the node erased.  Thus erasing the root node,
-requires iterating to the next node.</p>
-
-<p>Now if you empty a map by deleting the root node until the map is
-empty, each operation will take O(log(size)), and the amortized
-complexity is still O(log(size)).</p>
-
-<p>The operations can be done in amortized constant time if iterating
-to the next node can be done in (non amortized) constant time.  This
-can be done by putting all nodes in a double linked list.  This
-requires two extra links per node.  To me this is a bit overkill since
-you can already efficiently insert or erase ranges with erase(first,
-last) and insert(first, last).</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>Only "amortized constant" in special circumstances, and we believe
-  that's implementable. That is: doing this N times will be O(N), not
-  O(log N).</p>
-
-
-
-
-
-<hr>
-<h3><a name="499"></a>499. Std. doesn't seem to require stable_sort() to be stable!</h3>
-<p><b>Section:</b> 25.4.1.2 [stable.sort] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Prateek Karandikar <b>Opened:</b> 2005-04-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote><p>
-17.3.1.1 Summary</p>
-
-<p>
-1 The Summary provides a synopsis of the category, and introduces the 
-first-level subclauses. Each subclause also provides a summary, listing 
-the headers specified in the subclause and the library entities 
-provided in each header. 
-</p>
-<p>
-2 Paragraphs labelled "Note(s):" or "Example(s):" are informative, 
-other paragraphs are normative.
-</p></blockquote> 
-
-<p>So this means that a "Notes" paragraph wouldn't be normative. </p>
-
-<blockquote><p>
-25.3.1.2 stable_sort
-</p>
-<pre>
-template&lt;class RandomAccessIterator&gt; 
-void stable_sort(RandomAccessIterat or first, RandomAccessIterator last); 
-
-template&lt;class RandomAccessIterator, class Compare&gt; 
-void stable_sort(RandomAccessIterat or first, RandomAccessIterator last, Compare comp);
-</pre>
-<p>
-1 Effects: Sorts the elements in the range [first, last).
-</p>
-<p>
-2 Complexity: It does at most N(log N)^2 (where N == last - first) 
-comparisons; if enough extra memory is available, it is N log N.
-</p>
-<p>
-3 Notes: Stable: the relative order of the equivalent elements is 
-preserved. 
-</p></blockquote> 
-
-<p>
-The Notes para is informative, and nowhere else is stability mentioned above. 
-</p>
-
-<p>
-Also, I just searched for the word "stable" in my copy of the Standard. 
-and the phrase "Notes: Stable: the relative order of the elements..." 
-is repeated several times in the Standard library clauses for 
-describing various functions. How is it that stability is talked about 
-in the informative paragraph? Or am I missing something obvious? 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-This change has already been made.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="500"></a>500. do_length cannot be implemented correctly</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Krzysztof &#379;elechowski <b>Opened:</b> 2005-05-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol>
-<li>codecvt::do_length is of type int;</li>
-<li>it is assumed to be sort-of returning from_next - from of type ptrdiff_t;</li>
-<li>ptrdiff_t cannot be cast to an int without data loss.</li>
-</ol>
-<p>
-Contradiction.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="501"></a>501. Proposal: strengthen guarantees of lib.comparisons</h3>
-<p><b>Section:</b> X [depr.base] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Me &lt;anti_spam_email2003@yahoo.com&gt; <b>Opened:</b> 2005-06-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.base">issues</a> in [depr.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote><p>
-"For templates greater, less, greater_equal, and less_equal,
-the specializations for any pointer type yield a total order, even if
-the built-in operators &lt;, &gt;, &lt;=, &gt;= do not."
-</p></blockquote>
-
-<p>
-The standard should do much better than guarantee that these provide a
-total order, it should guarantee that it can be used to test if memory
-overlaps, i.e. write a portable memmove. You can imagine a platform
-where the built-in operators use a uint32_t comparison (this tests for
-overlap on this platform) but the less&lt;T*&gt; functor is allowed to be
-defined to use a int32_t comparison. On this platform, if you use
-std::less with the intent of making a portable memmove, comparison on
-an array that straddles the 0x7FFFFFFF/0x8000000 boundary can give
-incorrect results.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a footnote to 20.5.3/8 saying:
-</p>
-
-<blockquote><p>
-Given a p1 and p2 such that p1 points to N objects of type T and p2
-points to M objects of type T. If [p1,p1+N) does not overlap [p2,p2+M),
-less returns the same value when comparing all pointers in [p1,p1+N) to
-all pointers in [p2,p2+M). Otherwise, there is a value Q and a value R
-such that less returns the same value when comparing all pointers in
-[p1,p1+Q) to all pointers in [p2,p2+R) and an opposite value when
-comparing all pointers in [p1+Q,p1+N) to all pointers in [p2+R,p2+M).
-For the sake of completeness, the null pointer value (4.10) for T is
-considered to be an array of 1 object that doesn't overlap with any
-non-null pointer to T. less_equal, greater, greater_equal, equal_to,
-and not_equal_to give the expected results based on the total ordering
-semantics of less. For T of void, treat it as having similar semantics
-as T of char i.e. less&lt;cv T*&gt;(a, b) gives the same results as less&lt;cv
-void*&gt;(a, b) which gives the same results as less&lt;cv char*&gt;((cv
-char*)(cv void*)a, (cv char*)(cv void*)b).
-</p></blockquote>
-
-<p>
-I'm also thinking there should be a footnote to 20.5.3/1 saying that if
-A and B are similar types (4.4/4), comp&lt;A&gt;(a,b) returns the same value
-as comp&lt;B&gt;(a,b) (where comp is less, less_equal, etc.). But this might
-be problematic if there is some really funky operator overloading going
-on that does different things based on cv (that should be undefined
-behavior if somebody does that though). This at least should be
-guaranteed for all POD types (especially pointers) that use the
-built-in comparison operators.
-</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-less is already required to provide a strict weak ordering which is good enough
-to detect overlapping memory situations.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="502"></a>502. Proposition: Clarification of the interaction between a facet and an iterator</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Christopher Conrade Zseleghovski <b>Opened:</b> 2005-06-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Motivation:
-</p>
-
-<p>
-This requirement seems obvious to me, it is the essence of code modularity. 
-I have complained to Mr. Plauger that the Dinkumware library does not 
-observe this principle but he objected that this behaviour is not covered in 
-the standard.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-No objection to NAD, Fixed.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Append the following point to 22.1.1.1.1:
-</p>
-
-<p>
-6. The implementation of a facet of Table 52 parametrized with an 
-InputIterator/OutputIterator should use that iterator only as character 
-source/sink respectively.
-For a *_get facet, it means that the value received depends only on the 
-sequence of input characters and not on how they are accessed.
-For a *_put facet, it means that the sequence of characters output depends 
-only on the value to be formatted and not of how the characters are stored.
-</p>
-
-<p><i>[
-Berlin:  Moved to Open, Need to clean up this area to make it clear
-locales don't have to contain open ended sets of facets. Jack, Howard,
-Bill.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="503"></a>503. more on locales</h3>
-<p><b>Section:</b> 22.4 [locale.categories] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2005-06-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.categories">issues</a> in [locale.categories].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-a) In 22.2.1.1 para. 2 we refer to "the instantiations required in Table
-51" to refer to the facet *objects* associated with a locale. And we
-almost certainly mean just those associated with the default or "C"
-locale. Otherwise, you can't switch to a locale that enforces a different
-mapping between narrow and wide characters, or that defines additional
-uppercase characters.
-</p>
-
-<p>
-b) 22.2.1.5 para. 3 (codecvt) has the same issues.
-</p>
-
-<p>
-c) 22.2.1.5.2 (do_unshift) is even worse. It *forbids* the generation of
-a homing sequence for the basic character set, which might very well need
-one.
-</p>
-
-<p>
-d) 22.2.1.5.2 (do_length) likewise dictates that the default mapping
-between wide and narrow characters be taken as one-for-one.
-</p>
-
-<p>
-e) 22.2.2 para. 2 (num_get/put) is both muddled and vacuous, as far as
-I can tell. The muddle is, as before, calling Table 51 a list of
-instantiations. But the constraint it applies seems to me to cover
-*all* defined uses of num_get/put, so why bother to say so?
-</p>
-
-<p>
-f) 22.2.3.1.2 para. 1(do_decimal_point) says "The required instantiations
-return '.' or L'.'.) Presumably this means "as appropriate for the
-character type. But given the vague definition of "required" earlier,
-this overrules *any* change of decimal point for non "C" locales.
-Surely we don't want to do that.
-</p>
-
-<p>
-g) 22.2.3.1.2 para. 2 (do_thousands_sep) says "The required instantiations
-return ',' or L','.) As above, this probably means "as appropriate for the
-character type. But this overrules the "C" locale, which requires *no*
-character ('\0') for the thousands separator. Even if we agree that we
-don't mean to block changes in decimal point or thousands separator,
-we should also eliminate this clear incompatibility with C.
-</p>
-
-<p>
-h) 22.2.3.1.2 para. 2 (do_grouping) says "The required instantiations
-return the empty string, indicating no grouping." Same considerations
-as for do_decimal_point.
-</p>
-
-<p>
-i) 22.2.4.1 para. 1 (collate) refers to "instantiations required in Table
-51". Same bad jargon.
-</p>
-
-<p>
-j) 22.2.4.1.2 para. 1 (do_compare) refers to "instantiations required
-in Table 51". Same bad jargon.
-</p>
-
-<p>
-k) 22.2.5 para. 1 (time_get/put) uses the same muddled and vacuous
-as num_get/put.
-</p>
-
-<p>
-l) 22.2.6 para. 2 (money_get/put) uses the same muddled and vacuous
-as num_get/put.
-</p>
-
-<p>
-m) 22.2.6.3.2 (do_pos/neg_format) says "The instantiations required
-in Table 51 ... return an object of type pattern initialized to
-{symbol, sign, none, value}." This once again *overrides* the "C"
-locale, as well as any other locale."
-</p>
-
-<p>
-3) We constrain the use_facet calls that can be made by num_get/put,
-so why don't we do the same for money_get/put? Or for any of the
-other facets, for that matter?
-</p>
-
-<p>
-4) As an almost aside, we spell out when a facet needs to use the ctype
-facet, but several also need to use a codecvt facet and we don't say so.
-</p>
-<p><i>[
-Berlin: Bill to provide wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-No objection to NAD.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="504"></a>504. Integer types in pseudo-random number engine requirements</h3>
-<p><b>Section:</b> 26.5.1 [rand.req], TR1 5.1.1 [tr.rand.req] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req">issues</a> in [rand.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In [tr.rand.req], Paragraph 2 states that "... s is a value of integral type,
-g is an ... object returning values of unsigned integral type ..."
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 5.1.1 [tr.rand.req], Paragraph 2 replace
-</p>
-
-<blockquote><p>
-... s is a value of integral type, g is an lvalue of a type other than X that
-defines a zero-argument function object returning values of <del>unsigned integral</del> type
-<ins><tt>unsigned long int</tt></ins>,
-...
-</p></blockquote>
-
-<p>
-In 5.1.1 [tr.rand.seq], Table 16, replace in the line for X(s)
-</p>
-
-<blockquote><p>
-creates an engine with the initial internal state
-determined by <ins><tt>static_cast&lt;unsigned long&gt;(</tt></ins><tt><i>s</i></tt><ins><tt>)</tt></ins>
-</p></blockquote>
-
-<p><i>[
-Mont Tremblant:  Both s and g should be unsigned long.
-This should refer to the constructor signatures. Jens  provided wording post Mont Tremblant.
-]</i></p>
-
-
-<p><i>[
-Berlin:  N1932 adopts the proposed resolution:  see 26.3.1.3/1e and Table 3 row 2. Moved
-to Ready.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Jens:  Just requiring X(unsigned long) still makes it possible
-for an evil library writer to also supply a X(int) that does something
-unexpected.  The wording above requires that X(s) always performs
-as if X(unsigned long) would have been called.  I believe that is
-sufficient and implements our intentions from Mont Tremblant.  I
-see no additional use in actually requiring a X(unsigned long)
-signature.  u.seed(s) is covered by its reference to X(s), same
-arguments.
-</p>
-
-
-<p><i>[
-Portland:  Subsumed by N2111.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="506"></a>506. Requirements of Distribution parameter for variate_generator</h3>
-<p><b>Section:</b> 26.5 [rand], TR1 5.1.3 [tr.rand.var] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 3 requires that template argument U (which corresponds to template
-parameter Engine) satisfy all uniform random number generator requirements.
-However, there is no  analogous requirement regarding the template argument
-that corresponds to template parameter Distribution.  We believe there should
-be, and that it should require that this template argument satisfy all random
-distribution requirements.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Consequence 1: Remove the precondition clauses [tr.rand.var]/16 and /18.
-</p>
-<p>
-Consequence 2: Add max() and min() functions to those distributions that
-do not already have them.
-</p>
-
-<p><i>[
-Mont Tremblant: Jens reccommends NAD, min/max not needed everywhere.
-Marc supports having min and max to satisfy generic programming interface.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>Berlin:  N1932 makes this moot: variate_generator has been eliminated.</p>
-
-
-
-
-
-<hr>
-<h3><a name="509"></a>509. Uniform_int template parameters</h3>
-<p><b>Section:</b> 26.5.8.2 [rand.dist.uni], TR1 5.1.7.1 [tr.rand.dist.iunif] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.uni">issues</a> in [rand.dist.uni].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In [tr.rand.dist.iunif] the uniform_int distribution currently has a single
-template parameter, IntType, used as the input_type and as the result_type
-of the distribution.  We believe there is no reason to conflate these types
-in this way.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We recommend that there be a second template  parameter to
-reflect the distribution's input_type, and that the existing first template
-parameter continue to reflect (solely) the result_type:
-</p>
-<blockquote><pre>
-template&lt; class IntType = int, UIntType = unsigned int &gt;
-class uniform_int
-{
-public:
-  // types
-  typedef  UIntType  input_type;
-  typedef  IntType   result_type;
-</pre></blockquote>
-
-<p><i>[
-Berlin: Moved to NAD.  N1932 makes this moot: the input_type template parameter has been
-eliminated.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="510"></a>510. Input_type for bernoulli_distribution</h3>
-<p><b>Section:</b> 26.5.8.3 [rand.dist.bern], TR1 5.1.7.2 [tr.rand.dist.bern] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In [tr.rand.dist.bern] the distribution currently requires;
-</p>
-<blockquote><pre>
-typedef  int  input_type;
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We believe this is an unfortunate choice, and recommend instead:
-</p>
-<blockquote><pre>
-typedef  unsigned int  input_type;
-</pre></blockquote>
-
-<p><i>[
-Berlin:  Moved to NAD. N1932 makes this moot: the input_type template parameter has been
-eliminated.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="511"></a>511. Input_type for binomial_distribution</h3>
-<p><b>Section:</b> 26.5.8 [rand.dist], TR1 5.1.7.5 [tr.rand.dist.bin] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist">issues</a> in [rand.dist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Unlike all other distributions in TR1, this binomial_distribution has an
-implementation-defined  input_type.  We believe this is an unfortunate choice,
-because it hinders users from writing portable code.  It also hinders the
-writing of compliance tests.  We recommend instead:
-</p>
-<blockquote><pre>
-typedef  RealType  input_type;
-</pre></blockquote>
-<p>
-While this choice is somewhat arbitrary (as it was for some of the other
-distributions), we make  this particular choice because (unlike all other
-distributions) otherwise this template would not publish its RealType
-argument and so users could not write generic code that accessed this
-second template parameter.  In this respect, the choice is consistent with
-the other distributions in  TR1. 
-</p>
-<p>
-We have two reasons for recommending that a real type be specified instead.
-One reason is  based specifically on characteristics of binomial distribution
-implementations, while the other is based on mathematical characteristics of
-probability distribution functions in general.
-</p>
-<p>
-Implementations of binomial distributions commonly use Stirling approximations
-for values in certain ranges.  It is far more natural to use real values to
-represent these approximations than it would be to use integral values to do
-so.  In other ranges, implementations reply on the Bernoulli  distribution to
-obtain values.  While TR1's bernoulli_distribution::input_type is specified as
-int, we believe this would be better specified as double.
-</p>
-<p>
-This brings us to our main point:  The notion of a random distribution rests
-on the notion of a cumulative distribution function, which in turn mathematically
-depends on a continuous dependent variable.  Indeed, such a distribution function
-would be meaningless if it depended on  discrete values such as integers - and this
-remains true even if the distribution function were to take discrete steps.
-</p>
-<p>
-Although this note is specifically about binomial_distribution::input_type,
-we intend to recommend that all of the random distributions input_types be
-specified as a real type (either a RealType template parameter, or double,
-as appropriate).
-</p>
-<p>
-Of the nine distributions in TR1, four already have this characteristic
-(uniform_real, exponential_distribution, normal_distribution, and
-gamma_distribution).  We have already argued the case for the binomial the
-remaining four distributions.
-</p>
-<p>
-In the case of uniform_int, we believe that the calculations to produce an
-integer result in a  specified range from an integer in a different specified
-range is best done using real arithmetic.  This is because it involves a
-product, one of whose terms is the ratio of the extents of the two ranges.
-Without real arithmetic, the results become less uniform: some numbers become
-more  (or less) probable that they should be.  This is, of course, undesireable
-behavior in a uniform distribution.
-</p>
-<p>
-Finally, we believe that in the case of the bernoulli_distribution (briefly
-mentioned earlier), as well as the cases of the geometric_distribution and the
-poisson_distribution, it would be far more natural to have a real input_type.
-This is because the most natural computation involves the  random number
-delivered and the distribution's parameter p (in the case of bernoulli_distribution,
-for example, the computation is a comparison against p), and p is already specified
-in each case as having some real type.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<blockquote><pre>
-typedef  RealType  input_type;
-</pre></blockquote>
-
-<p><i>[
-Berlin:  Moved to NAD.  N1932 makes this moot: the input_type template parameter has been
-eliminated.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="512"></a>512. Seeding <tt>subtract_with_carry_01</tt> from a single unsigned long</h3>
-<p><b>Section:</b> 26.5.3 [rand.eng], TR1 5.1.4.4 [tr.rand.eng.sub1] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng">issues</a> in [rand.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 8 specifies the algorithm by which a <tt>subtract_with_carry_01</tt> engine
-is to be seeded given a single unsigned long.  This algorithm is seriously
-flawed in the case where the engine parameter w (also known as word_size)
-exceeds 31 [bits].  The key part of the paragraph reads:
-</p>
-<blockquote><p>
-sets x(-r) ... x(-1) to (lcg(1)*2**(-w)) mod 1
-</p></blockquote>
-<p>
-and so forth. 
-</p>
-<p>
-Since the specified linear congruential engine, lcg, delivers numbers with
-a maximum of 2147483563 (just a shade under 31 bits), then when w is, for
-example, 48, each of the x(i) will be less than 2**-17.  The consequence
-is that roughly the first 400 numbers delivered will be conspicuously
-close to either zero or one.
-</p>
-<p>
-Unfortunately, this is not an innocuous flaw:  One of the predefined engines
-in [tr.rand.predef], namely <tt>ranlux64_base_01</tt>, has w = 48 and would exhibit
-this poor behavior, while the original N1378 proposal states that these
-pre-defined engines are intended to be of "known good properties."
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 5.1.4.4 [tr.rand.eng.sub1], replace the "effects" clause for
-void seed(unsigned long value = 19780503) by
-</p>
-
-<blockquote><p>
-<i>Effects:</i> If <tt>value == 0</tt>, sets value to <tt>19780503</tt>. In any
-case, <del>with a linear congruential generator <tt>lcg</tt>(i) having parameters
-<tt><i>m<sub>lcg</sub></i> = 2147483563</tt>, <tt><i>a<sub>lcg</sub></i> = 40014</tt>,
-<tt><i>c<sub>lcg</sub></i> = 0</tt>, and <tt><i>lcg</i>(0) = value</tt>,</del>
-sets <ins>carry<tt>(-1)</tt> and</ins> <tt>x(-r) &hellip; x(-1)</tt>
-<ins>as if executing</ins></p>
-
-<blockquote><pre><ins>
-linear_congruential&lt;unsigned long, 40014, 0, 2147483563&gt; lcg(value);
-seed(lcg);
-</ins></pre></blockquote>
-
-<p>
-<del>to <tt>(<i>lcg</i>(1) &middot; 2<sup>-<i>w</i></sup>) mod 1
-&hellip; (<i>lcg</i>(<i>r</i>) &middot; 2<sup>-<i>w</i></sup>) mod 1</tt>,
-respectively. If <tt><i>x</i>(-1) == 0</tt>, sets carry<tt>(-1) = 2<sup>-<i>w</i></sup></tt>,
-else sets carry<tt>(-1) = 0</tt>.</del></p>
-</blockquote>
-
-<p><i>[
-Jens provided revised wording post Mont Tremblant.
-]</i></p>
-
-
-<p><i>[
-Berlin: N1932 adopts the originally-proposed resolution of the issue.
-Jens's supplied wording is a clearer description of what is
-intended.  Moved to Ready.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Jens: I'm using an explicit type here, because fixing the
-prose would probably not qualify for the (with issue <a href="lwg-closed.html#504">504</a> even
-stricter) requirements we have for seed(Gen&amp;).
-</p>
-
-<p><i>[
-Portland: Subsumed by N2111.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="513"></a>513. Size of state for subtract_with_carry_01</h3>
-<p><b>Section:</b> 26.5.3 [rand.eng], TR1 5.1.4.4 [tr.rand.eng.sub1] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng">issues</a> in [rand.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 3 begins:
-</p>
-<blockquote><p>
-The size of the state is r.
-</p></blockquote>
-<p>
-However, this is not quite consistent with the remainder of the paragraph
-which specifies a total  of nr+1 items in the textual representation of
-the state.  We recommend the sentence be corrected to match:
-</p>
-<blockquote><p>
-The size of the state is nr+1.
-</p></blockquote>
-<p>
-To give meaning to the coefficient n, it may be also desirable to move
-n's definition from later in the paragraph.  Either of the following
-seem reasonable formulations:
-</p>
-<blockquote><p>
-With n=..., the size of the state is nr+1.
-</p></blockquote>
-<blockquote><p>
-The size of the state is nr+1, where n=... .
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-Jens:  I plead for "NAD" on the grounds that "size of state" is only
-used as an argument for big-O complexity notation, thus
-constant factors and additions don't count.
-]</i></p>
-
-
-<p><i>[
-Berlin: N1932 adopts the proposed NAD.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="514"></a>514. Size of state for subtract_with_carry</h3>
-<p><b>Section:</b> 26.5.3.3 [rand.eng.sub], TR1 5.1.4.3 [tr.rand.eng.sub] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 2 begins:
-</p>
-<blockquote><p>
-The size of the state is r.
-</p></blockquote>
-<p>
-However, the next sentence specifies a total of r+1 items in the textual
-representation of the state,  r specific x's as well as a specific carry.
-This makes a total of r+1 items that constitute the size of the state,
-rather than r.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We recommend the sentence be corrected to match:
-</p>
-<blockquote><p>
- The size of the state is r+1.
-</p></blockquote>
-
-<p><i>[
-Jens:  I plead for "NAD" on the grounds that "size of state" is only
-used as an argument for big-O complexity notation, thus
-constant factors and additions don't count.
-]</i></p>
-
-
-<p><i>[
-Berlin: N1932 adopts the proposed NAD.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="515"></a>515. Random number engine traits</h3>
-<p><b>Section:</b> 26.5.2 [rand.synopsis], TR1 5.1.2 [tr.rand.synopsis] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.synopsis">issues</a> in [rand.synopsis].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-To accompany the concept of a pseudo-random number engine as defined in Table 17,
-we propose and recommend an adjunct template, engine_traits, to be declared in
-[tr.rand.synopsis] as:
-</p>
-<blockquote><pre>
-template&lt; class PSRE &gt;
-class engine_traits;
-</pre></blockquote>
-<p>
-This template's primary purpose would be as an aid to generic programming involving
-pseudo-random number engines.  Given only the facilities described in tr1, it would
-be very difficult to produce any algorithms involving the notion of a generic engine.
-The intent of this proposal is to  provide, via engine_traits&lt;&gt;, sufficient
-descriptive information to allow an algorithm to employ a pseudo-random number engine
-without regard to its exact type, i.e., as a template parameter.
-</p>
-<p>
-For example, today it is not possible to write an efficient generic function that
-requires any specific number of random bits.  More specifically, consider a
-cryptographic application that internally needs 256 bits of randomness per call:
-</p>
-<blockquote><pre>
-template&lt; class Eng, class InIter, class OutIter &gt;
-void crypto( Eng&amp; e, InIter in, OutIter out );
-</pre></blockquote>
-<p>
-Without knowning the number of bits of randomness produced per call to a provided
-engine, the algorithm has no means of determining how many times to call the engine.
-</p>
-<p>
-In a new section [tr.rand.eng.traits], we proposed to define the engine_traits
-template as: 
-</p>
-<blockquote><pre>
-template&lt; class PSRE &gt;
-class engine_traits
-{
-  static  std::size_t  bits_of_randomness = 0u;
-  static  std::string  name()  { return "unknown_engine"; }
-  // TODO: other traits here
-};
-</pre></blockquote>
-<p>
-Further, each engine described in [tr.rand.engine] would be accompanied by a
-complete specialization of this new engine_traits template.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-Berlin:  Walter: While useful for implementation per TR1, N1932 has no need for this
-feature.  Recommend close as NAD.
-]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1932.pdf">N1932</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2111.pdf">N2111</a>
-covers this.  Already in WP.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="516"></a>516. Seeding subtract_with_carry_01 using a generator</h3>
-<p><b>Section:</b> 26.5.3 [rand.eng], TR1 5.1.4.4 [tr.rand.eng.sub1] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng">issues</a> in [rand.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 6 says:
-</p>
-<blockquote><p>
-... obtained by successive invocations of g, ... 
-</p></blockquote>
-<p>
-We recommend instead:
-</p>
-<blockquote><p>
-... obtained by taking successive invocations of g mod 2**32, ...
-</p></blockquote>
-<p>
-as the context seems to require only 32-bit quantities be used here.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Berlin: N1932 adopts the proposed resultion: see 26.3.3.4/7.  Moved to Ready.
-</p>
-
-<p><i>[
-Portland:  Subsumed by N2111.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="517"></a>517. Should include name in external representation</h3>
-<p><b>Section:</b> 26.5.1 [rand.req], TR1 5.1.1 [tr.rand.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req">issues</a> in [rand.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The last two rows of Table 16 deal with the i/o requirements of an engine,
-specifying that the textual representation of an engine's state,
-appropriately formatted, constitute the engine's  external representation.
-</p>
-<p>
-This seems adequate when an engine's type is known.  However, it seems
-inadequate in the  context of generic code, where it becomes useful and
-perhaps even necessary to determine an engine's type via input.
-</p>
-<p>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We therefore recommend that, in each of these two rows of Table 16, the
-text "textual representation" be expanded so as to read "engine name
-followed by the textual representation."
-</p>
-
-<p><i>[
-Berlin: N1932 considers this NAD. This is a QOI issue.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="526"></a>526. Is it undefined if a function in the standard changes in parameters?</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2005-09-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Problem: There are a number of places in the C++ standard library where
-it is possible to write what appear to be sensible ways of calling
-functions, but which can cause problems in some (or all)
-implementations, as they cause the values given to the function to be
-changed in a way not specified in standard (and therefore not coded to
-correctly work). These fall into two similar categories.
-</p>
-
-<p>
-1) Parameters taken by const reference can be changed during execution
-of the function
-</p>
-
-<p>
-Examples:
-</p>
-
-<p>
-Given std::vector&lt;int&gt; v:
-</p>
-<p>
-v.insert(v.begin(), v[2]);
-</p>
-<p>
-v[2] can be changed by moving elements of vector
-</p>
-
-
-<p>
-Given std::list&lt;int&gt; l:
-</p>
-<p>
-l.remove(*l.begin());
-</p>
-<p>
-Will delete the first element, and then continue trying to access it.
-This is particularily vicious, as it will appear to work in almost all
-cases.
-</p>
-
-<p>
-2) A range is given which changes during the execution of the function:
-Similarly,
-</p>
-
-<p>
-v.insert(v.begin(), v.begin()+4, v.begin()+6);
-</p>
-
-<p>
-This kind of problem has been partly covered in some cases. For example
-std::copy(first, last, result) states that result cannot be in the range
-[first, last). However, does this cover the case where result is a
-reverse_iterator built from some iterator in the range [first, last)?
-Also, std::copy would still break if result was reverse_iterator(last +
-1), yet this is not forbidden by the standard
-</p>
-
-<p>
-Solution:
-</p>
-
-<p>
-One option would be to try to more carefully limit the requirements of
-each function. There are many functions which would have to be checked.
-However as has been shown in the std::copy case, this may be difficult.
-A simpler, more global option would be to somewhere insert text similar to:
-</p>
-
-<p>
-If the execution of any function would change either any values passed
-by reference or any value in any range passed to a function in a way not
-defined in the definition of that function, the result is undefined.
-</p>
-
-<p>
-Such code would have to at least cover chapters 23 and 25 (the sections
-I read through carefully). I can see no harm on applying it to much of
-the rest of the standard.
-</p>
-
-<p>
-Some existing parts of the standard could be improved to fit with this,
-for example the requires for 25.2.1 (Copy) could be adjusted to:
-</p>
-
-<p>
-Requires: For each non-negative integer n &lt; (last - first), assigning to
-*(result + n) must not alter any value in the range [first + n, last).
-</p>
-
-<p>
-However, this may add excessive complication.
-</p>
-
-<p>
-One other benefit of clearly introducing this text is that it would
-allow a number of small optimisations, such as caching values passed
-by const reference.
-</p>
-
-<p>
-Matt Austern adds that this issue also exists for the <tt>insert</tt> and
-<tt>erase</tt> members of the ordered and unordered associative containers.
-</p>
-
-<p><i>[
-Berlin: Lots of controversey over how this should be solved. Lots of confusion
-as to whether we're talking about self referencing iterators or references.
-Needs a good survey as to the cases where this matters, for which
-implementations, and how expensive it is to fix each case.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD.
-</p>
-<ul>
-<li><tt>vector::insert(iter, value)</tt> is required to work because the standard
-doesn't give permission for it not to work.</li>
-<li><tt>list::remove(value)</tt> is required to work because the standard
-doesn't give permission for it not to work.</li>
-<li><tt>vector::insert(iter, iter, iter)</tt> is not required to work because
-23.2.3 [sequence.reqmts], p4 says so.</li>
-<li><tt>copy</tt> has to work, except where 25.3.1 [alg.copy] says
-it doesn't have to work.  While a language lawyer can tear this wording apart,
-it is felt that the wording is not prone to accidental interpretation.</li>
-<li>The current working draft provide exceptions for the unordered associative
-containers similar to the containers requirements which exempt the member
-template insert functions from self referencing.</li>
-</ul>
-
-
-
-
-
-<hr>
-<h3><a name="528"></a>528. <tt>const_iterator</tt> <tt>iterator</tt> issue when they are the same type</h3>
-<p><b>Section:</b> 23.5 [unord], TR1 6.3.4 [tr.unord.unord] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2005-10-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-while implementing the resolution of issue 6.19 I'm noticing the
-following: according to 6.3.4.3/2 (and 6.3.4.5/2), for unordered_set and
-unordered_multiset:
-</p>
-
-<blockquote><p>
-    "The iterator and const_iterator types are both const types. It is
-unspecified whether they are the same type"
-</p></blockquote>
-
-<p>
-Now, according to the resolution of 6.19, we have overloads of insert
-with hint and erase (single and range) both for iterator and
-const_iterator, which, AFAICS, can be meaningful at the same time *only*
-if iterator and const_iterator *are* in fact different types.
-</p>
-<p>
-Then, iterator and const_iterator are *required* to be different types?
-Or that is an unintended consequence? Maybe the overloads for plain
-iterators should be added only to unordered_map and unordered_multimap?
-Or, of course, I'm missing something?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 6.3.4.3p2 (and 6.3.4.5p2):
-</p>
-<p>
-2  ... The iterator and const_iterator types are both <del>const</del>
-<ins>constant</ins> iterator types.
-It is unspecified whether they are the same type. 
-</p>
-
-<p>
-Add a new subsection to 17.4.4 [lib.conforming]:
-</p>
-
-<blockquote>
-<p>
-An implementation shall not supply an overloaded function
-       signature specified in any library clause if such a signature
-       would be inherently ambiguous during overload resolution
-       due to two library types referring to the same type.
-</p>
-<p>
-       [Note: For example, this occurs when a container's iterator
-       and const_iterator types are the same. -- end note]
-</p>
-</blockquote>
-
-<p><i>[
-Post-Berlin: Beman supplied wording.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p><p>
-Toronto:  The first issue has been fixed by N2350 (the insert and erase members
-are collapsed into one signature).  Alisdair to open a separate issue on the
-chapter 17 wording.
-</p>
-
-
-
-
-<hr>
-<h3><a name="529"></a>529. The standard encourages redundant and confusing preconditions</h3>
-<p><b>Section:</b> 17.6.4.11 [res.on.required] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2005-10-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.4.3.8/1 says:
-</p>
-
-<blockquote><p>
-Violation of the preconditions specified in a function's 
-Required behavior: paragraph results in undefined behavior unless the 
-function's Throws: paragraph specifies throwing an exception when the 
-precondition is violated.
-</p></blockquote>
-
-<p>
-This implies that a precondition violation can lead to defined
-behavior.  That conflicts with the only reasonable definition of
-precondition: that a violation leads to undefined behavior.  Any other
-definition muddies the waters when it comes to analyzing program
-correctness, because precondition violations may be routinely done in
-correct code (e.g. you can use std::vector::at with the full
-expectation that you'll get an exception when your index is out of
-range, catch the exception, and continue).  Not only is it a bad
-example to set, but it encourages needless complication and redundancy
-in the standard.  For example:
-</p>
-
-<blockquote><pre>
-  21 Strings library 
-  21.3.3 basic_string capacity
-
-  void resize(size_type n, charT c);
-
-  5 Requires: n &lt;= max_size()
-  6 Throws: length_error if n &gt; max_size().
-  7 Effects: Alters the length of the string designated by *this as follows:
-</pre></blockquote>
-
-<p>
-The Requires clause is entirely redundant and can be dropped.  We
-could make that simplifying change (and many others like it) even
-without changing 17.4.3.8/1; the wording there just seems to encourage
-the redundant and error-prone Requires: clause.
-</p>
-
-<p><i>[
-Batavia:  Alan and Pete to work.
-]</i></p>
-
-
-<p><i>[
-Bellevue:  NAD Editorial, this group likes 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2121.html">N2121</a>,
-Pete agrees, accepting it is Pete's business.
-General agreement that precondition violations are synonymous with UB.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-1. Change 17.4.3.8/1 to read:
-</p>
-
-<blockquote><p>
-Violation of the preconditions specified in a function's
-<i>Required behavior:</i> paragraph results in undefined behavior
-<del>unless the function's <i>Throws:</i> paragraph specifies throwing
-an exception when the precondition is violated</del>.
-</p></blockquote>
-
-<p>
-2. Go through and remove redundant Requires: clauses.  Specifics to be
-   provided by Dave A.
-</p>
-
-<p><i>[
-Berlin: The LWG requests a detailed survey of part 2 of the proposed resolution.
-]</i></p>
-
-
-<p><i>[
-Alan provided the survey
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2121.html">N2121</a>.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="536"></a>536. Container iterator constructor and explicit convertibility</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz <b>Opened:</b> 2005-12-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#589">589</a></p>
-<p><b>Discussion:</b></p>
-<p>
-The iterator constructor X(i,j) for containers as defined in 23.1.1 and
-23.2.2 does only require that i and j be input iterators but
-nothing is said about their associated value_type. There are three
-sensible
-options:
-</p>
-<ol>
-<li>iterator's value_type is exactly X::value_type (modulo cv).</li>
-<li>iterator's value_type is *implicitly* convertible to X::value_type.</li>
-<li>iterator's value_type is *explicitly* convertible to X::value_type.</li>
-</ol>
-<p>
-The issue has practical implications, and stdlib vendors have
-taken divergent approaches to it: Dinkumware follows 2,
-libstdc++ follows 3.
-</p>
-<p>
-The same problem applies to the definition of insert(p,i,j) for
-sequences and insert(i,j) for associative contianers, as well as
-assign.
-</p>
-
-<p><i>[
-The following added by Howard and the example code was originally written by
-Dietmar.
-]</i></p>
-
-<p>
-Valid code below?
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt; 
-#include &lt;iterator&gt; 
-#include &lt;iostream&gt; 
-
-struct foo 
-{ 
-    explicit foo(int) {} 
-}; 
-
-int main() 
-{ 
-    std::vector&lt;int&gt; v_int; 
-    std::vector&lt;foo&gt; v_foo1(v_int.begin(), v_int.end()); 
-    std::vector&lt;foo&gt; v_foo2((std::istream_iterator&lt;int&gt;(std::cin)), 
-                             std::istream_iterator&lt;int&gt;()); 
-} 
-</pre></blockquote>
-<p><i>[
-Berlin: Some support, not universal, for respecting the explicit qualifier.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="544"></a>544. minor NULL problems in C.2</h3>
-<p><b>Section:</b> C.5 [diff.library] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2005-11-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#diff.library">issues</a> in [diff.library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to C.2.2.3, p1, "the macro NULL, defined in any of &lt;clocale&gt;,
-&lt;cstddef&gt;, &lt;cstdio&gt;, &lt;cstdlib&gt;, &lt;cstring&gt;, &lt;ctime&gt;,
-or &lt;cwchar&gt;." This is consistent with the C standard.
-</p>
-<p>
-However, Table 95 in C.2 fails to mention &lt;clocale&gt; and &lt;cstdlib&gt;.
-</p>
-<p>
-In addition, C.2, p2 claims that "The C++ Standard library provides
-54 standard macros from the C library, as shown in Table 95." While
-table 95 does have 54 entries, since a couple of them (including the
-NULL macro) are listed more than once, the actual number of macros
-defined by the C++ Standard Library may not be 54.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-I propose we add &lt;clocale&gt; and &lt;cstdlib&gt; to Table 96 and remove the
-number of macros from C.2, p2 and reword the sentence as follows:
-</p>
-<blockquote><p>
-The C++ Standard library <del>provides 54 standard macros from</del>
-<ins>defines a number macros corresponding to those defined by</ins> the C 
-<ins>Standard</ins> library, as shown in Table 96.
-</p></blockquote>
-
-<p><i>[
-Portland:  Resolution is considered editorial.  It will be incorporated into the WD.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="546"></a>546. _Longlong and _ULonglong are integer types</h3>
-<p><b>Section:</b> TR1 5.1.1 [tr.rand.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2006-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The TR sneaks in two new integer types, _Longlong and _Ulonglong, in [tr.c99].
-The rest of the TR should use that type.  I believe this affects two places.
-First, the random number requirements, 5.1.1/10-11, lists all of the types with
-which template parameters named IntType and UIntType may be instantiated.
-_Longlong (or "long long", assuming it is added to C++0x) should be added to the
-IntType list, and UIntType (again, or "unsigned long long") should be added to
-the UIntType list.  Second, 6.3.2 lists the types for which hash&lt;&gt; is
-required to be instantiable. _Longlong and _Ulonglong should be added to that
-list, so that people may use long long as a hash key.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-We are not going to fix TR1.
-</p>
-<p>
-The paper "long long goes to the library" addresses the integration of
-long long into the C++0x library.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="547"></a>547. division should be floating-point, not integer</h3>
-<p><b>Section:</b> 26.5 [rand], TR1 5.1 [tr.rand] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2006-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 10 describes how a variate generator uses numbers produced by an
-engine to pass to a generator. The sentence that concerns me is: "Otherwise, if
-the value for engine_value_type::result_type is true and the value for
-Distribution::input_type is false [i.e. if the engine produces integers and the
-engine wants floating-point values], then the numbers in s_eng are divided by
-engine().max() - engine().min() + 1 to obtain the numbers in s_e." Since the
-engine is producing integers, both the numerator and the denominator are
-integers and we'll be doing integer division, which I don't think is what we
-want. Shouldn't we be performing a conversion to a floating-point type first?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD as the affected section is now gone and so the issue is moot.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2111.pdf">N2111</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="548"></a>548. May random_device block?</h3>
-<p><b>Section:</b> 26.5.6 [rand.device], TR1 5.1.6 [tr.rand.device] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2006-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.device">issues</a> in [rand.device].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class random_device "produces non-deterministic random numbers", using some
-external source of entropy. In most real-world systems, the amount of available
-entropy is limited. Suppose that entropy has been exhausted. What is an
-implementation permitted to do? In particular, is it permitted to block
-indefinitely until more random bits are available, or is the implementation
-required to detect failure immediately? This is not an academic question. On
-Linux a straightforward implementation would read from /dev/random, and "When
-the entropy pool is empty, reads to /dev/random will block until additional
-environmental noise is gathered." Programmers need to know whether random_device
-is permitted to (or possibly even required to?) behave the same way.
-</p>
-
-<p><i>[
-Berlin: Walter: N1932 considers this NAD. Does the standard specify whether std::cin
-may block?
-]</i></p>
-
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a> (NAD).
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="549"></a>549. Undefined variable in binomial_distribution</h3>
-<p><b>Section:</b> 26.5.8 [rand.dist], TR1 5.1.7.5 [tr.rand.dist.bin] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2006-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist">issues</a> in [rand.dist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 1 says that "A binomial distributon random distribution produces
-integer values i&gt;0 with p(i) = (n choose i) * p*i * (1-p)^(t-i), where t and
-p are the parameters of the distribution. OK, that tells us what t, p, and i
-are. What's n?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Berlin: Typo: "n" replaced by "t" in N1932: see 26.3.7.2.2/1.
-</p>
-
-<p><i>[
-Portland:  Subsumed by N2111.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="553"></a>553. very minor editorial change <tt>intptr_t</tt> / <tt>uintptr_t</tt></h3>
-<p><b>Section:</b> 18.4.1 [cstdint.syn], TR1 8.22.1 [tr.c99.cstdint.syn] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2006-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cstdint.syn">issues</a> in [cstdint.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the synopsis, some types are identified as optional: <tt>int8_t</tt>, <tt>int16_t</tt>,
-and so on, consistently with C99, indeed.
-</p>
-<p>
-On the other hand, <tt>intptr_t</tt> and <tt>uintptr_t</tt>, are not marked as such and
-probably should, consistently with C99, 7.18.1.4.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.4.1 [cstdint.syn]:
-</p>
-
-<blockquote><pre>
-...
-typedef <i>signed integer type</i> intptr_t;    <ins><i>// optional</i></ins>
-...
-typedef <i>unsigned integer type</i> uintptr_t;    <ins><i>// optional</i></ins>
-...
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-Recommend NAD and fix as editorial with the proposed resolution.
-</p>
-
-
-
-
-<hr>
-<h3><a name="554"></a>554. Problem with lwg DR 184 numeric_limits&lt;bool&gt;</h3>
-<p><b>Section:</b> 18.3.2.7 [numeric.special] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2006-01-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.special">issues</a> in [numeric.special].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I believe we have a bug in the resolution of:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#184">lwg 184</a>
-(WP status).
-</p>
-
-<p>
-The resolution spells out each member of <tt>numeric_limits&lt;bool&gt;</tt>.
-The part I'm having a little trouble with is:
-</p>
-<blockquote><pre>
-static const bool traps = false;
-</pre></blockquote>
-
-<p>
-Should this not be implementation defined?  Given:
-</p>
-
-<blockquote><pre>
-int main()
-{
-     bool b1 = true;
-     bool b2 = false;
-     bool b3 = b1/b2;
-}
-</pre></blockquote>
-
-<p>
-If this causes a trap, shouldn't <tt>numeric_limits&lt;bool&gt;::traps</tt> be
-<tt>true</tt>?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.2.1.5p3:
-</p>
-
-<blockquote><p>
--3- The specialization for <tt>bool</tt> shall be provided as follows: </p>
-<blockquote><pre>
-namespace std { 
-   template &lt;&gt; class numeric_limits&lt;bool&gt; {
-      ...
-      static const bool traps = <del>false</del> <ins><i>implementation-defined</i></ins>;
-      ...
-   };
-}
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-Redmond:  NAD because traps refers to values, not operations.  There is no bool
-value that will trap.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="555"></a>555. TR1, 8.21/1: typo</h3>
-<p><b>Section:</b> TR1 8.21 [tr.c99.boolh] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2006-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This one, if nobody noticed it yet, seems really editorial:
-s/cstbool/cstdbool/
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 8.21p1:
-</p>
-<blockquote><p>
--1- The header behaves as if it defines the additional macro defined in
-<tt>&lt;cst<ins>d</ins>bool&gt;</tt> by including the header <tt>&lt;cstdbool&gt;</tt>.
-</p></blockquote>
-
-<p><i>[
-Redmond:  Editorial.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="557"></a>557. TR1: div(_Longlong, _Longlong) vs div(intmax_t, intmax_t)</h3>
-<p><b>Section:</b> 18.4 [cstdint], TR1 8.22 [tr.c99.cstdint] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2006-02-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cstdint">issues</a> in [cstdint].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I'm seeing a problem with such overloads: when, _Longlong == intmax_t ==
-long long we end up, essentially, with the same arguments and different
-return types (lldiv_t and imaxdiv_t, respectively). Similar issue with
-abs(_Longlong) and abs(intmax_t), of course.
-</p>
-<p>
-Comparing sections 8.25 and 8.11, I see an important difference,
-however: 8.25.3 and 8.25.4 carefully describe div and abs for _Longlong
-types (rightfully, because not moved over directly from C99), whereas
-there is no equivalent in 8.11: the abs and div overloads for intmax_t
-types appear only in the synopsis and are not described anywhere, in
-particular no mention in 8.11.2 (at variance with 8.25.2).
-</p>
-<p>
-I'm wondering whether we really, really, want div and abs for intmax_t...
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-<p><i>[
-Portland: no consensus.
-]</i></p>
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-Batavia, Bill: The <tt>&lt;cstdint&gt;</tt> synopsis in TR1 8.11.1 [tr.c99.cinttypes.syn] contains:
-]</i></p>
-
-<blockquote><pre>
-intmax_t imaxabs(intmax_t i);
-intmax_t abs(intmax_t i);
-
-imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
-imaxdiv_t div(intmax_t numer, intmax_t denom);
-</pre></blockquote>
-
-<p><i>[
-and in TR1 8.11.2 [tr.c99.cinttypes.def]:
-]</i></p>
-
-
-<blockquote><p>
-The header defines all functions, types, and macros the same as C99
-subclause 7.8.
-</p></blockquote>
-
-<p><i>[
-This is as much definition as we give for most other C99 functions,
-so nothing need change. We might, however, choose to add the footnote:
-]</i></p>
-
-
-<blockquote><p>
-[<i>Note:</i> These overloads for <tt>abs</tt> and <tt>div</tt> may well be equivalent to
-those that take <tt>long long</tt> arguments. If so, the implementation is
-responsible for avoiding conflicting declarations. -- <i>end note</i>]
-</p></blockquote>
-
-<p><i>[
-Bellevue: NAD Editorial. Pete must add a footnote, as described below.
-]</i></p>
-
-
-<blockquote>
-<p><i>[
-Looks like a real problem. Dietmar suggests div() return a template
-type. Matt: looks like imaxdiv_t is loosly defined. Can it be a typedef
-for lldiv_t when _Longlong == intmax_t? PJP seems to agree. We would
-need a non-normative note declaring that the types lldiv_t and imaxdiv_t
-may not be unique if intmax_t==_longlong.
-]</i></p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="558"></a>558. lib.input.iterators Defect</h3>
-<p><b>Section:</b> 24.2.3 [input.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2006-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.iterators">issues</a> in [input.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote>
-<p>
-  24.1.1 Input iterators [lib.input.iterators]
-</p>
-<p>
-  1 A class or a built-in type X satisfies the requirements of an
-  input iterator for the value type T if the following expressions are
-  valid, where U is the type of any specified member of type T, as
-  shown in Table 73.
-</p>
-</blockquote>
-<p>
-There is no capital U used in table 73.  There is a lowercase u, but
-that is clearly not meant to denote a member of type T.  Also, there's
-no description in 24.1.1 of what lowercase a means.  IMO the above
-should have been...Hah, a and b are already covered in 24.1/11, so maybe it
-should have just been:
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.1.1p1:
-</p>
-<blockquote><p>
--1- A class or a built-in type <tt>X</tt> satisfies the requirements of an
-input iterator for the value type <tt>T</tt> if the following expressions 
-are valid<del>, where <tt>U</tt> is the type of any specified member of type
-<tt>T</tt>,</del> as shown in Table 73.
-</p></blockquote>
-
-<p><i>[
-Portland: Editorial.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="560"></a>560. User-defined allocators without default constructor</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sergey P. Derevyago <b>Opened:</b> 2006-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<h4>1. The essence of the problem.</h4>
-<p>
-User-defined allocators without default constructor are not explicitly
-supported by the standard but they can be supported just like std::vector
-supports elements without default constructor.
-</p>
-<p>
-As a result, there exist implementations that work well with such allocators
-and implementations that don't.
-</p>
-
-<h4>2. The cause of the problem.</h4>
-<p>
-1) The standard doesn't explicitly state this intent but it should. In
-particular, 20.1.5p5 explicitly state the intent w.r.t. the allocator
-instances that compare non-equal. So it can similarly state the intent w.r.t.
-the user-defined allocators without default constructor.
-</p>
-<p>
-2) Some container operations are obviously underspecified. In particular,
-21.3.7.1p2 tells:
-</p>
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt; operator+(
-    const charT* lhs,
-    const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs
-  );
-</pre>
-<p>
-Returns: <tt>basic_string&lt;charT,traits,Allocator&gt;(lhs) + rhs</tt>.
-</p>
-</blockquote>
-<p>
-That leads to the basic_string&lt;charT,traits,Allocator&gt;(lhs, Allocator()) call.
-Obviously, the right requirement is:
-</p>
-<blockquote><p>
-Returns: <tt>basic_string&lt;charT,traits,Allocator&gt;(lhs, rhs.get_allocator()) + rhs</tt>.
-</p></blockquote>
-<p>
-It seems like a lot of DRs can be submitted on this "Absent call to
-get_allocator()" topic.
-</p>
-
-<h4>3. Proposed actions.</h4>
-<p>
-1) Explicitly state the intent to allow for user-defined allocators without
-default constructor in 20.1.5 Allocator requirements.
-</p>
-<p>
-2) Correct all the places, where a correct allocator object is available
-through the get_allocator() call but default Allocator() gets passed instead.
-</p>
-<h4>4. Code sample.</h4>
-<p>
-Let's suppose that the following memory pool is available:
-</p>
-<blockquote><pre>
-class mem_pool {
-      // ...
-      void* allocate(size_t size);
-      void deallocate(void* ptr, size_t size);
-};
-</pre></blockquote>
-<p>
-So the following allocator can be implemented via this pool:
-</p>
-<blockquote><pre>
-class stl_allocator {
-      mem_pool&amp; pool;
-
- public:
-      explicit stl_allocator(mem_pool&amp; mp) : pool(mp) {}
-      stl_allocator(const stl_allocator&amp; sa) : pool(sa.pool) {}
-      template &lt;class U&gt;
-      stl_allocator(const stl_allocator&lt;U&gt;&amp; sa)  : pool(sa.get_pool()) {}
-      ~stl_allocator() {}
-
-      pointer allocate(size_type n, std::allocator&lt;void&gt;::const_pointer = 0)
-      {
-       return (n!=0) ? static_cast&lt;pointer&gt;(pool.allocate(n*sizeof(T))) : 0;
-      }
-
-      void deallocate(pointer p, size_type n)
-      {
-       if (n!=0) pool.deallocate(p, n*sizeof(T));
-      }
-
-      // ...
-};
-</pre></blockquote>
-<p>
-Then the following code works well on some implementations and doesn't work on
-another:
-</p>
-<blockquote><pre>
-typedef basic_string&lt;char, char_traits&lt;char&gt;, stl_allocator&lt;char&gt; &gt; 
-  tl_string;
-mem_pool mp;
-tl_string s1("abc", stl_allocator&lt;int&gt;(mp));
-printf("(%s)\n", ("def"+s1).c_str());
-</pre></blockquote>
-<p>
-In particular, on some implementations the code can't be compiled without
-default stl_allocator() constructor.
-</p>
-<p>
-The obvious way to solve the compile-time problems is to intentionally define
-a NULL pointer dereferencing default constructor
-</p>
-<blockquote><pre>
-stl_allocator() : pool(*static_cast&lt;mem_pool*&gt;(0)) {}
-</pre></blockquote>
-<p>
-in a hope that it will not be called. The problem is that it really gets
-called by operator+(const char*, const string&amp;) under the current 21.3.7.1p2
-wording.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD.  <tt>operator+()</tt> with <tt>string</tt> already requires the desired
-semantics of copying the allocator from one of the strings (<i>lhs</i> when there is a choice).
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="568"></a>568. <tt>log2</tt> overloads missing</h3>
-<p><b>Section:</b> TR1 8.16.4 [tr.c99.cmath.over] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2006-03-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>log2</tt> is missing from the list of "additional overloads" in TR1 8.16.4 [tr.c99.cmath.over] p1.
-</p>
-
-<p>
-Hinnant:  This is a TR1 issue only.  It is fixed in the current (N2135) WD.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree this has been fixed in the Working Draft.
-Move to NAD.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add <tt>log2</tt> to the list of functions in TR1 8.16.4 [tr.c99.cmath.over] p1.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="569"></a>569. Postcondition for basic_ios::clear(iostate) incorrectly stated</h3>
-<p><b>Section:</b> 27.5.5.4 [iostate.flags] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Seungbeom Kim <b>Opened:</b> 2006-03-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#272">272</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Section: 27.4.4.3 [lib.iostate.flags]
-</p>
-<p>
-Paragraph 4 says:
-</p>
-<blockquote>
-<blockquote><pre>
-void clear(iostate <i>state</i> = goodbit);
-</pre></blockquote>
-<p>
-<i>Postcondition:</i> If <tt>rdbuf()!=0</tt> then <tt><i>state</i> == rdstate();</tt>
-otherwise <tt>rdstate()==<i>state</i>|ios_base::badbit</tt>.
-</p>
-</blockquote>
-
-<p>
-The postcondition "rdstate()==state|ios_base::badbit" is parsed as
-"(rdstate()==state)|ios_base::badbit", which is probably what the
-committee meant.
-</p>
-
-
-
-
-<p><b>Rationale:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="570"></a>570. Request adding additional explicit specializations of <tt>char_traits</tt></h3>
-<p><b>Section:</b> 21.2 [char.traits] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Jack Reeves <b>Opened:</b> 2006-04-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits">issues</a> in [char.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Currently, the Standard Library specifies only a declaration for template class
-<tt>char_traits&lt;&gt;</tt> and requires the implementation provide two explicit
-specializations: <tt>char_traits&lt;char&gt;</tt> and <tt>char_traits&lt;wchar_t&gt;</tt>. 
-I feel the Standard should require explicit specializations for all built-in 
-character types, i.e. <tt>char</tt>, <tt>wchar_t</tt>, <tt>unsigned char</tt>, 
-and <tt>signed char</tt>.
-</p>
-<p>
-I have put together a paper
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1985.htm">N1985</a>)
-that describes this in more detail and
-includes all the necessary wording.
-</p>
-<p><i>[
-Portland: Jack will rewrite
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1985.htm">N1985</a>
-to propose a primary template that will work with other integral types.
-]</i></p>
-
-<p><i>[
-Toronto: issue has grown with addition of <tt>char16_t</tt> and <tt>char32_t</tt>.
-]</i></p>
-
-
-<p><i>[
-post Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-We suggest that Jack be asked about the status of his paper, and if it
-is not forthcoming, the work-item be assigned to someone else. If no one
-steps forward to do the paper before the next meeting, we propose to
-make this NAD without further discussion. We leave this Open for now,
-but our recommendation is NAD.
-</p>
-<p>
-Note: the issue statement should be updated, as the Toronto comment has
-already been resolved. E.g., char_traits specializations for <tt>char16_t</tt>
-and <tt>char32_t</tt> are now in the working paper.
-</p>
-</blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Nobody has submitted the requested paper, so we move to NAD, as suggested by the decision at the last meeting.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="571"></a>571. Update C90 references to C99?</h3>
-<p><b>Section:</b> 1.2 [intro.refs] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2006-04-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#intro.refs">issues</a> in [intro.refs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-1.2 Normative references [intro.refs] of the WP currently refers to ISO/IEC
-9899:1990, Programming languages - C. Should that be changed to ISO/IEC
-9899:1999?
-</p>
-<p>
-What impact does this have on the library?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 1.2/1 [intro.refs] of the WP, change:
-</p>
-<blockquote>
-<ul>
-<li>ISO/IEC 9899:<del>1990</del><ins>1999 + TC1 + TC2</ins>, <i>Programming languages - C</i></li>
-</ul>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-Recommend NAD, fixed editorially.
-</p>
-
-
-
-
-<hr>
-<h3><a name="572"></a>572. Oops, we gave 507 WP status</h3>
-<p><b>Section:</b> 26.5 [rand], TR1 5.1 [tr.rand] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2006-04-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Berlin, as a working group, we voted in favor of N1932 which makes issue 507 moot:
-variate_generator has been eliminated.  Then in full committee we voted to give
-this issue WP status (mistakenly).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike the proposed resolution of issue 507.
-</p>
-<p><i>[
-post-Portland:  Walter and Howard recommend NAD.  The proposed resolution of 507 no longer
-exists in the current WD.
-]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-NAD.  Will be moot once
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2135.pdf">N2135</a>
-is adopted.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="573"></a>573. C++0x file positioning should handle modern file sizes</h3>
-<p><b>Section:</b> 27.5.4 [fpos] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2006-04-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fpos">issues</a> in [fpos].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are two deficiencies related to file sizes:
-</p>
-<ol>
-<li>It doesn't appear that the Standard Library is specified in
-      a way that handles modern file sizes, which are often too
-      large to be represented by an unsigned long.</li>
-
-<li>The <tt>std::fpos</tt> class does not currently have the ability to
-      set/get file positions.</li>
-</ol>
-<p>
-The Dinkumware implementation of the Standard Library as shipped with the Microsoft compiler copes with these issues by:
-</p>
-<ol style="list-style-type:upper-alpha">
-<li>Defining <tt>fpos_t</tt> be <tt>long long</tt>, which is large enough to
-      represent any file position likely in the foreseeable future.</li>
-
-<li>Adding member functions to class <tt>fpos</tt>. For example,
-<blockquote><pre>
-fpos_t seekpos() const;
-</pre></blockquote>
-</li>
-</ol>
-<p>
-Because there are so many types relating to file positions and offsets (<tt>fpos_t</tt>,
-<tt>fpos</tt>, <tt>pos_type</tt>, <tt>off_type</tt>, <tt>streamoff</tt>, <tt>streamsize</tt>, 
-<tt>streampos</tt>, <tt>wstreampos</tt>, and perhaps more), it is difficult to know if 
-the Dinkumware extensions are sufficient. But they seem a useful starting place for 
-discussions, and they do represent existing practice.
-</p>
-
-<p><i>[
-Kona (2007): We need a paper. It would be nice if someone proposed
-clarifications to the definitions of <tt>pos_type</tt> and <tt>off_type</tt>. Currently
-these definitions are horrible. Proposed Disposition: Open
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-This is the subject of paper N2926.
-</p>
-<p>
-If we choose to take any action, we will move the paper, so the issue can be closed.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="579"></a>579. <tt>erase(iterator)</tt> for unordered containers should not return an iterator</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz <b>Opened:</b> 2006-06-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses ES-2</b></p>
-
-<p>
-See
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2023.pdf">N2023</a>
-for full discussion.
-</p>
-
-<p><i>[
-2009-12-11 Paolo opens:
-]</i></p>
-
-
-<blockquote><p>
-I'm asking for DR 579 to be re-opened, basing on recent discussions on the
-library reflector, see Message c++std-lib-26040 and replies.
-</p></blockquote>
-
-<p><i>[
-2010-02-07 Paolo updates wording.
-]</i></p>
-
-
-<blockquote><p>
-As pointed out by Chris in c++std-lib-26040, that an
-<tt>erase(unordered_container, iterator)</tt> returning an <tt>iterator</tt> can
-easily implemented in user code, if needed; that actually returning an
-<tt>iterator</tt> costs nothing for the overload taking two <tt>iterator</tt>s,
-thus that proposed change is only for consistency; that
-<tt>forward_list::erase_after</tt> also returns <tt>void</tt> (for different
-reasons, granted, but isn't that any "<tt>erase</tt>" function in the containers
-uniformly returns an <tt>iterator</tt>); that, also in thread started by Chris'
-message, Alberto pointed out that the proxy idea isn't a good one; that users
-both of the GNU and Boost implementations are reporting serious performance
-problems with the current version returning an <tt>iterator</tt>.
-</p></blockquote>
-
-<p><i>[
-2010-02-07 Original wording saved here:
-]</i></p>
-
-
-<blockquote class="note">
-<p>
-Option 1:
-</p>
-
-<p>
-The problem can be eliminated by omitting the requirement that <tt>a.erase(q)</tt> return an 
-iterator. This is, however, in contrast with the equivalent requirements for other 
-standard containers.
-</p>
-
-<p>
-Option 2:
-</p>
-
-<p>
-<tt>a.erase(q)</tt> can be made to compute the next iterator only when explicitly requested: 
-the technique consists in returning a proxy object implicitly convertible to <tt>iterator</tt>, so 
-that
-</p>
-
-<blockquote><pre>
-iterator q1=a.erase(q);
-</pre></blockquote>
-
-<p>
-works as expected, while
-</p>
-
-<blockquote><pre>
-a.erase(q);
-</pre></blockquote>
-
-<p>
-does not ever invoke the conversion-to-iterator operator, thus avoiding the associated 
-computation. To allow this technique, some sections of TR1 along the line "return value 
-is an iterator..." should be changed to "return value is an unspecified object implicitly 
-convertible to an iterator..." Although this trick is expected to work transparently, it can 
-have some collateral effects when the expression <tt>a.erase(q)</tt> is used inside generic 
-code.
-</p>
-
-</blockquote>
-
-<p><i>[
-2010-03-27 Joaqu&iacute;n adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Signature of <tt>iterator erase(const_iterator)</tt> should be changed to <tt>void
-erase(const_iterator)</tt>. If this is not viable an acceptable tradeoff
-could be to make the return type of <tt>erase(const_iterator)</tt>
-<i>implementation defined</i>.
-</p>
-
-<p>
-The standard should allow implementations of unordered associative
-containers using either singly or doubly linked lists.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2023.pdf">N2023</a>
-proves that singly-linked lists implementations cannot provide the required
-complexity for <tt>iterator erase(const_iterator)</tt>. Thus, some action is
-needed to allow both implementations.
-</p>
-
-<p> 
-Option 1: Changing the required complexity from O(1) to O(log n). This option
-merely masks a design flaw. Users are forcefully penalized for what they don't
-use (the returned iterator). Besides, they would have to learn about the
-pathological (yet very real) situations where using <tt>erase</tt> can lead to
-quadratic performance. Two out of these three objections remain even if some
-alternative member function like <tt>void quick_erase(const_iterator)</tt> is
-thrown in to the interface.
-</p>
-
-<p> 
-Some objections have been expressed to changing return type of <tt>erase</tt> to
-<tt>void</tt>, arguing that it would break current existing practice with
-standard library implementations based on doubly-linked lists, where the problem
-does not occur. However implementations based on drafts should not block the
-resolution of a serious design issue, more so when the issue will hurt future
-users of C++, as it's happening already.
-</p>
-
-<p> 
-Option 2: Make <tt>erase</tt> return type <i>implementation defined</i>. There's
-a possible tradeoff with the objectors above consisting in changing the
-signature to <i>implementation defined</i> <tt>erase(iterator)</tt>, so that
-returning an iterator is indeed a valid extension. To this it can be argued that
-this would make implementantions returning an iterator look as somehow promoting
-proprietary extensions: this in my opinion is not a valid argument since those
-implementations are <em>already</em> extending the required interface by
-providing bidirectional iterators (just forward iterators are required).
-</p>
-</blockquote>
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote>
-<p>
-The issue was lengthy discussed and implementation experience was demonstrated that a non-void return
-type is implementable for both single-linked and double-linked lists without loss of efficiency.
-</p>
-
-<p>
-By a 12-1-1-0 poll voted to keep the return type of erase as <tt>iterator</tt> instead of 
-<tt>void</tt> and a second 0-0-3-10 poll rejected the additional proposal to add a 
-<tt>quick_erase</tt> returning <tt>void</tt>, thus LWG decided for NAD.
-</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-
-<p>
-No consensus for a change.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="580"></a>580. unused allocator members</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#479">479</a></p>
-<p><b>Discussion:</b></p>
-<p>
-
-C++ Standard Library  templates that take an allocator  as an argument
-are    required    to    call    the    <code>allocate()</code>    and
-<code>deallocate()</code>  members of the  allocator object  to obtain
-storage.  However, they do not appear to be required to call any other
-allocator      members      such     as      <code>construct()</code>,
-<code>destroy()</code>,           <code>address()</code>,          and
-<code>max_size()</code>.  This makes these allocator members less than
-useful in portable programs.
-
-        </p>
-        <p>
-
-It's unclear to me whether the absence of the requirement to use these
-allocator  members  is  an  unintentional  omission  or  a  deliberate
-choice. However,  since the functions exist in  the standard allocator
-and  since  they are  required  to  be  provided by  any  user-defined
-allocator I  believe the standard  ought to be clarified  to explictly
-specify  whether programs  should or  should not  be able  to  rely on
-standard containers calling the functions.
-
-        </p>
-        <p>
-
-I  propose  that all  containers  be required  to  make  use of  these
-functions.
-
-        </p>
-<p><i>[
-Batavia:  We support this resolution.  Martin to provide wording.
-]</i></p>
-
-<p><i>[
-pre-Oxford:  Martin provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-04-28 Pablo adds:
-]</i></p>
-
-
-<blockquote><p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2554.pdf">N2554</a>
-(scoped allocators),
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2768.pdf">N2768</a>
-(allocator concepts), and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2810.pdf">N2810</a>
-(allocator defects), address all of these points EXCEPT <tt>max_size()</tt>.
-So, I would add a note to that affect and re-class the defect as belonging
-to section 23.2.1 [container.requirements.general].
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-The comment in the description of this issue that this "would be"
-rendered editorial by the adoption of N2257 is confusing. It appears
-that N2257 was never adopted.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Editorial.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-</p></blockquote>
-
-
-
-    <p><b>Proposed resolution:</b></p>
-       <p>
-
-Specifically, I propose to change 23.2 [container.requirements],
-p9 as follows:
-
-       </p>
-           <blockquote>
-<p>
--9- Copy constructors  for all container types defined  in this clause
-<ins>that   are  parametrized  on   <code>Allocator</code></ins>  copy
-<del>an</del><ins>the</ins>  allocator argument from  their respective
-first parameters.
-
-All other  constructors for  these container types  take a<del>n</del>
-<ins>const</ins>  <code>Allocator&amp;</code>  argument  (20.1.6),  an
-allocator whose <code>value_type</code> is the same as the container's
-<code>value_type</code>.
-
-A copy of this  argument <del>is</del><ins>shall be</ins> used for any
-memory  allocation <ins> and  deallocation</ins> performed<del>,</del>
-by these  constructors and by all  member functions<del>,</del> during
-the  lifetime  of each  container  object.   <ins>Allocation shall  be
-performed  "as  if"  by  calling  the  <code>allocate()</code>  member
-function on  a copy  of the allocator  object of the  appropriate type
-<sup>New  Footnote)</sup>,   and  deallocation  "as   if"  by  calling
-<code>deallocate()</code> on  a copy of  the same allocator  object of
-the corresponding type.</ins>
-
-<ins>A  copy of  this argument  shall also  be used  to  construct and
-destroy objects whose lifetime  is managed by the container, including
-but not  limited to those of  the container's <code>value_type</code>,
-and  to  obtain  their  address.   All  objects  residing  in  storage
-allocated by a  container's allocator shall be constructed  "as if" by
-calling the <code>construct()</code> member  function on a copy of the
-allocator object of  the appropriate type.  The same  objects shall be
-destroyed "as if"  by calling <code>destroy()</code> on a  copy of the
-same allocator object  of the same type.  The  address of such objects
-shall be obtained "as if" by calling the <code>address()</code> member
-function  on  a  copy  of  the allocator  object  of  the  appropriate
-type.</ins>
-
-<ins>Finally, a copy  of this argument shall be  used by its container
-object to determine  the maximum number of objects  of the container's
-<code>value_type</code> the container may  store at the same time. The
-container  member function <code>max_size()</code> obtains  this number
-from      the      value      returned      by     a      call      to
-<code>get_allocator().max_size()</code>.</ins>
-
-In   all  container   types  defined   in  this   clause <ins>that  are
-parametrized     on    <code>Allocator</code></ins>,     the    member
-<code>get_allocator()</code>     returns     a     copy     of     the
-<code>Allocator</code>     object     used     to    construct     the
-container.<sup>258)</sup>
-</p>
-<p>
-New Footnote: This type  may be different from <code>Allocator</code>:
-it     may    be     derived    from     <code>Allocator</code>    via
-<code>Allocator::rebind&lt;U&gt;::other</code>   for  the  appropriate
-type <code>U</code>.
-</p>
-           </blockquote>
-       <p>
-
-The proposed wording seems cumbersome but I couldn't think of a better
-way   to  describe   the   requirement  that   containers  use   their
-<code>Allocator</code>  to manage  only objects  (regardless  of their
-type)  that  persist  over  their  lifetimes  and  not,  for  example,
-temporaries  created on the  stack. That  is, containers  shouldn't be
-required  to  call  <code>Allocator::construct(Allocator::allocate(1),
-elem)</code>  just to  construct a  temporary copy  of an  element, or
-<code>Allocator::destroy(Allocator::address(temp),     1)</code>    to
-destroy temporaries.
-
-       </p>
-
-
-<p><i>[
-Howard: This same paragraph will need some work to accommodate <a href="lwg-defects.html#431">431</a>.
-]</i></p>
-
-
-<p><i>[
-post Oxford:  This would be rendered NAD Editorial by acceptance of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2257.html">N2257</a>.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="582"></a>582. specialized algorithms and volatile storage</h3>
-<p><b>Section:</b> 20.7.12.2 [uninitialized.copy] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#uninitialized.copy">issues</a> in [uninitialized.copy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Related to <a href="lwg-closed.html#1029">1029</a></p>
-        <p>
-
-The specialized  algorithms [lib.specialized.algorithms] are specified
-as having the general effect of invoking the following expression:
-
-        </p>
-            <pre>
-
-new (static_cast&lt;void*&gt;(&amp;*i))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type (x)
-
-            </pre>
-        <p>
-
-This  expression is  ill-formed  when the  type  of the  subexpression
-<code>&amp;*i</code> is some volatile-qualified <code>T</code>.
-
-        </p>
-
-<p><i>[
-Batavia:  Lack of support for proposed resolution but agree there is a
-defect.  Howard to look at wording.  Concern that move semantics
-properly expressed if iterator returns rvalue.
-]</i></p>
-
-
-
-<p><i>[
-2009-06-17 Pablo adds:
-]</i></p>
-
-
-<blockquote>
-
-<p>Propose that Issue <a href="lwg-closed.html#582">582</a> be closed NAD.</p>
-<p>
-Issue <a href="lwg-closed.html#582">582</a> asks that <tt>uninitialized_copy</tt>,
-<tt>uninitialized_fill</tt>, and <tt>uninitialized_fill_n</tt> should be
-well-formed if the result type is volatile.  My feeling is that the
-standard does not, and should not, guarantee any useful behavior when
-constructors are invoked on volatile storage, so making it syntactically
-legal to call <tt>uninitialized_copy</tt> on volatile storage is not useful. A
-possible editorial change would be to put my previous sentence into a
-non-normative note.
-</p>
-<p>
-Note that the three sections starting with 20.7.12.2 [uninitialized.copy] do not
-yet have concepts.  Here's a first crack at the first one:
-</p>
-<blockquote><pre>
-template &lt;InputIterator InIter, OutputIterator OutIter&gt;
-requires ExplicitConvertible&lt;HasDereference&lt;OutIter::reference&gt;::result,
-                             OutIter::value_type&amp;&gt;
-      &amp;&amp; Convertible&lt;OutIter::value_type*, void*&gt;
-      &amp;&amp; ExplicitConvertible&lt;OutIter::value_type, InIter::reference&gt;
-  OutIter uninitialized_copy(InIter first, InIter last, OutIter result);
-</pre>
-<blockquote>
-<p>
-Effects:
-</p>
-<blockquote><pre>
-while (first != last) {
-  typedef OutIter::value_type value_type;
-  value_type&amp; outRef = static_cast&lt;value_type&amp;&gt;(*result++);
-  ::new (static_cast&lt;void*&gt;(addressof(outRef))) value_type(*first++);
-}
-</pre></blockquote>
-</blockquote>
-
-</blockquote>
-
-<p>
-Notes:
-</p>
-<ol>
-<li>This definition is actually LESS constrained than in C++03 because
-there is no requirement that the result be a forward iterator.
-</li>
-<li>
-If
-OutIter returns a proxy type with an overloaded operator&amp;, this
-definition probably won't compile.  Lifting this limitation while
-allowing value_type to have an overloaded operator&amp; would be hard, but
-is probably possible with careful overloading.  I'm not sure it's worth
-it.
-</li>
-<li>
-This definition retains the prohibition on the use of volatile types for the result.
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-We don't deal with volatile in the library.
-</p>
-<p>
-Jim: should we state that explicitly somewhere?
-</p>
-<p>
-Beman: you might argue that clause 17 should say something about
-volatile. However, if you want to raise we argument, we should open it
-as a separate issue and consult with experts on concurrency.
-</p>
-<p>
-Hinnant: actually, some library components do handle volatile, so we'd
-need to be very careful about what we say in clause 17.
-</p>
-<p>
-No objection to NAD.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-    
-
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-In order  to allow these algorithms  to operate on  volatile storage I
-propose to change the expression so as to make it well-formed even for
-pointers  to volatile  types.  Specifically,  I propose  the following
-changes to clauses 20 and 24. Change 20.6.4.1, p1 to read:
-
-        </p>
-            <pre>
-
-<i>Effects</i>:
-
-typedef typename iterator_traits&lt;ForwardIterator&gt;::pointer    pointer;
-typedef typename iterator_traits&lt;ForwardIterator&gt;::value_type value_type;
-
-for (; first != last; ++result, ++first)
-    new (static_cast&lt;void*&gt;(const_cast&lt;pointer&gt;(&amp;*result))
-        value_type (*first);
-
-            </pre>
-        <p>
-
-change 20.6.4.2, p1 to read
-
-        </p>
-            <pre>
-
-<i>Effects</i>:
-
-typedef typename iterator_traits&lt;ForwardIterator&gt;::pointer    pointer;
-typedef typename iterator_traits&lt;ForwardIterator&gt;::value_type value_type;
-
-for (; first != last; ++result, ++first)
-    new (static_cast&lt;void*&gt;(const_cast&lt;pointer&gt;(&amp;*first))
-        value_type (*x);
-
-            </pre>
-        <p>
-
-and change 20.6.4.3, p1 to read
-
-        </p>
-            <pre>
-
-<i>Effects</i>:
-
-typedef typename iterator_traits&lt;ForwardIterator&gt;::pointer    pointer;
-typedef typename iterator_traits&lt;ForwardIterator&gt;::value_type value_type;
-
-for (; n--; ++first)
-    new (static_cast&lt;void*&gt;(const_cast&lt;pointer&gt;(&amp;*first))
-        value_type (*x);
-
-            </pre>
-        <p>
-
-In   addition,  since   there   is  no   partial  specialization   for
-<code>iterator_traits&lt;volatile T*&gt;</code>  I propose to  add one
-to parallel such specialization  for &lt;const T*&gt;. Specifically, I
-propose to add the following text to the end of 24.3.1, p3:
-
-        </p>
-        <p>
-
-and for pointers to volatile as 
-
-        </p>
-            <pre>
-
-namespace std {
-template&lt;class T&gt; struct iterator_traits&lt;volatile T*&gt; {
-typedef ptrdiff_t difference_type;
-typedef T value_type;
-typedef volatile T* pointer;
-typedef volatile T&amp; reference;
-typedef random_access_iterator_tag iterator_category;
-};
-}
-
-            </pre>
-        <p>
-
-Note that  the change to  <code>iterator_traits</code> isn't necessary
-in order to implement the  specialized algorithms in a way that allows
-them to operate on volatile  strorage. It is only necesassary in order
-to specify  their effects in terms  of <code>iterator_traits</code> as
-is  done here.   Implementations can  (and some  do) achieve  the same
-effect by means of function template overloading.
-
-        </p>
-    
-
-
-
-<hr>
-<h3><a name="583"></a>583. <tt>div()</tt> for unsigned integral types</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2006-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is no <tt>div()</tt> function for unsigned integer types.
-</p>
-<p>
-There are several possible resolutions.  The simplest one is noted below.  Other
-possibilities include a templated solution.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 26.7 [lib.c.math] paragraph 8:
-</p>
-
-<blockquote><pre>
-struct udiv_t div(unsigned, unsigned);
-struct uldiv_t div(unsigned long, unsigned long);
-struct ulldiv_t div(unsigned long long, unsigned long long);
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-Toronto:  C99 does not have these unsigned versions because
-the signed version exist just to define the implementation-defined behavior
-of signed integer division.  Unsigned integer division has no implementation-defined
-behavior and thus does not need this treatment.
-</p>
-
-
-
-
-<hr>
-<h3><a name="584"></a>584. missing int <tt>pow(int,int)</tt> functionality</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2006-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is no <tt>pow()</tt> function for any integral type.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add something like:
-</p>
-
-<blockquote><pre>
-template&lt; typename T&gt;
-T power( T x, int n );
-// requires: n &gt;=0
-</pre></blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-Toronto:  We already have <tt>double pow(<i>integral</i>, <i>integral</i>)</tt> from 26.8 [c.math] p11.
-</p>
-
-
-
-
-<hr>
-<h3><a name="585"></a>585. facet error reporting</h3>
-<p><b>Section:</b> 22.4 [locale.categories] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor, Paolo Carlini <b>Opened:</b> 2006-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.categories">issues</a> in [locale.categories].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-Section  22.2, paragraph 2  requires facet  <code>get()</code> members
-that    take    an    <code>ios_base::iostate&amp;</code>    argument,
-<code><i>err</i></code>,  to   ignore  the  (initial)   value  of  the
-argument, but to set it to <code>ios_base::failbit</code> in case of a
-parse error.
-
-        </p>
-        <p>
-
-We  believe  there  are  a   few  minor  problems  with  this  blanket
-requirement  in   conjunction  with   the  wording  specific   to  each
-<code>get()</code> member function.
-
-        </p>
-        <p>
-
-First,  besides <code>get()</code>  there are  other  member functions
-with     a      slightly     different     name      (for     example,
-<code>get_date()</code>). It's not completely clear that the intent of
-the  paragraph  is  to  include  those  as  well,  and  at  least  one
-implementation has interpreted the requirement literally.
-
-        </p>
-        <p>
-
-Second,    the     requirement    to    "set     the    argument    to
-<code>ios_base::failbit</code>  suggests that  the  functions are  not
-permitted    to   set    it   to    any   other    value    (such   as
-<code>ios_base::eofbit</code>,   or   even  <code>ios_base::eofbit   |
-ios_base::failbit</code>).
-
-        </p>
-        <p>
-
-However, 22.2.2.1.2, p5 (Stage  3 of <code>num_get</code> parsing) and
-p6 (<code>bool</code> parsing)  specifies that the <code>do_get</code>
-functions  perform <code><i>err</i> |=  ios_base::eofbit</code>, which
-contradicts  the earlier  requirement to  ignore  <i>err</i>'s initial
-value.
-
-        </p>
-        <p>
-
-22.2.6.1.2,  p1  (the  Effects  clause of  the  <code>money_get</code>
-facet's  <code>do_get</code>  member  functions) also  specifies  that
-<code><i>err</i></code>'s initial  value be used to  compute the final
-value  by  ORing  it  with  either  <code>ios_base::failbit</code>  or
-with<code>ios_base::eofbit | ios_base::failbit</code>.
-
-        </p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD.
-</p></blockquote>
-
-    
-
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-We believe the  intent is for all facet member  functions that take an
-<code>ios_base::iostate&amp;</code> argument to:
-
-        </p>
-            <ul>
-                <li>
-
-ignore the initial value of the <code><i>err</i></code> argument,
-
-                </li>
-                <li>
-
-reset <code><i>err</i></code>  to <code>ios_base::goodbit</code> prior
-to any further processing,
-
-                </li>
-                <li>
-
-and       set      either       <code>ios_base::eofbit</code>,      or
-<code>ios_base::failbit</code>, or both in <code><i>err</i></code>, as
-appropriate,  in response  to  reaching the  end-of-file  or on  parse
-error, or both.
-
-                </li>
-            </ul>
-        <p>
-
-To that effect we propose to change 22.2, p2 as follows:
-
-        </p>
-        <p>
-
-The  <i>put</i><del>()</del>  members  make  no  provision  for  error
-reporting.   (Any  failures of  the  OutputIterator  argument must  be
-extracted   from  the   returned  iterator.)    <ins>Unless  otherwise
-specified, </ins>the <i>get</i><del>()</del>  members  <ins>that</ins>
-take an  <code>ios_base::iostate&amp;</code> argument <del>whose value
-they  ignore,  but  set  to  ios_base::failbit  in  case  of  a  parse
-error.</del><ins>,   <code><i>err</i></code>,   start  by   evaluating
-<code>err  =   ios_base::goodbit</code>,  and  may   subsequently  set
-<i>err</i>     to     either     <code>ios_base::eofbit</code>,     or
-<code>ios_base::failbit</code>,     or     <code>ios_base::eofbit    |
-ios_base::failbit</code> in response to reaching the end-of-file or in
-case of a parse error, or both, respectively.</ins>
-
-        </p>
-    
-    
-<p><i>[
-Kona (2007): We need to change the proposed wording to clarify that the
-phrase "the get members" actually denotes <tt>get()</tt>, <tt>get_date()</tt>, etc.
-Proposed Disposition: Open
-]</i></p>
-
-
-
-
-<hr>
-<h3><a name="587"></a>587. iststream ctor missing description</h3>
-<p><b>Section:</b> D.7.2.1 [depr.istrstream.cons] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The  <code>iststream(char*, streamsize)</code>  ctor is  in  the class
-synopsis  in D.7.2  but its  signature is  missing in  the description
-below (in D.7.2.1).
-
-        </p>
-    
-
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-This seems like a simple editorial issue and the missing signature can
-be added to the one for <code>const char*</code> in paragraph 2.
-
-        </p>
-
-<p><i>[
-post Oxford: Noted that it is already fixed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2284.pdf">N2284</a>
-]</i></p>
-
-
-    
-
-
-
-<hr>
-<h3><a name="588"></a>588. requirements on zero sized <tt>tr1::arrays</tt> and other details</h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Gennaro Prota <b>Opened:</b> 2006-07-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The wording used for section 23.2.1 [lib.array] seems to be subtly
-ambiguous about zero sized arrays (N==0). Specifically:
-</p>
-<p>
-* "An instance of array&lt;T, N&gt; stores N elements of type T, so that
-[...]"
-</p>
-<p>
-Does this imply that a zero sized array object stores 0 elements, i.e.
-that it cannot store any element of type T? The next point clarifies
-the rationale behind this question, basically how to implement begin()
-and end():
-</p>
-<p>
-* 23.2.1.5 [lib.array.zero], p2: "In the case that N == 0, begin() ==
-end() == unique value."
-</p>
-<p>
-What does "unique" mean in this context? Let's consider the following
-possible implementations, all relying on a partial specialization:
-</p>
-<blockquote><pre>
-a)
-    template&lt; typename T &gt;
-    class array&lt; T, 0 &gt; {
-    
-        ....
-
-        iterator begin()
-        { return iterator( reinterpret_cast&lt; T * &gt;( this ) ); }
-        ....
-
-    };
-</pre></blockquote>
-<p>
-This has been used in boost, probably intending that the return value
-had to be unique to the specific array object and that array couldn't
-store any T. Note that, besides relying on a reinterpret_cast, has
-(more than potential) alignment problems.
-</p>
-<blockquote><pre>
-b)
-    template&lt; typename T &gt;
-    class array&lt; T, 0 &gt; {
-    
-        T t;
-
-        iterator begin()
-        { return iterator( &amp;t ); }
-        ....
-
-    };
-</pre></blockquote>
-<p>
-This provides a value which is unique to the object and to the type of
-the array, but requires storing a T. Also, it would allow the user to
-mistakenly provide an initializer list with one element.
-</p>
-<p>
-A slight variant could be returning *the* null pointer of type T
-</p>
-<blockquote><pre>
-    return static_cast&lt;T*&gt;(0);
-</pre></blockquote>
-<p>
-In this case the value would be unique to the type array&lt;T, 0&gt; but not
-to the objects (all objects of type array&lt;T, 0&gt; with the same value
-for T would yield the same pointer value).
-</p>
-<p>
-Furthermore this is inconsistent with what the standard requires from
-allocation functions (see library issue 9).
-</p>
-<p>
-c) same as above but with t being a static data member; again, the
-value would be unique to the type, not to the object.
-</p>
-<p>
-d) to avoid storing a T *directly* while disallowing the possibility
-to use a one-element initializer list a non-aggregate nested class
-could be defined
-</p>
-<blockquote><pre>
-    struct holder { holder() {} T t; } h;
-</pre></blockquote>
-<p>
-and then begin be defined as
-</p>
-<blockquote><pre>
- iterator begin() { return &amp;h.t; }
-</pre></blockquote>
-<p>
-But then, it's arguable whether the array stores a T or not.
-Indirectly it does.
-</p>
-<p>
------------------------------------------------------
-</p>
-<p>
-Now, on different issues:
-</p>
-<p>
-* what's the effect of calling assign(T&amp;) on a zero-sized array? There
-seems to be only mention of front() and back(), in 23.2.1 [lib.array]
-p4 (I would also suggest to move that bullet to section 23.2.1.5
-[lib.array.zero], for locality of reference)
-</p>
-<p>
-* (minor) the opening paragraph of 23.2.1 [lib.array] wording is a bit
-inconsistent with that of other sequences: that's not a problem in
-itself, but compare it for instance with "A vector is a kind of
-sequence that supports random access iterators"; though the intent is
-obvious one might argue that the wording used for arrays doesn't tell
-what an array is, and relies on the reader to infer that it is what
-the &lt;array&gt; header defines.
-</p>
-<p>
-* it would be desiderable to have a static const data member of type
-std::size_t, with value N, for usage as integral constant expression
-</p>
-<p>
-* section 23.1 [lib.container.requirements] seem not to consider
-fixed-size containers at all, as it says: "[containers] control
-allocation and deallocation of these objects [the contained objects]
-through constructors, destructors, *insert and erase* operations"
-</p>
-<p>
-* max_size() isn't specified: the result is obvious but, technically,
-it relies on table 80: "size() of the largest possible container"
-which, again, doesn't seem to consider fixed size containers
-</p>
-
-<p><i>[
-2009-05-29 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-star bullet 1 ("what's the effect of calling <tt>assign(T&amp;)</tt> on a
-zero-sized array?[..]");
-</p>
-<blockquote><p>
-<tt>assign</tt> has been renamed to <tt>fill</tt> and the semantic of <tt>fill</tt> is now
-defined in terms of
-the free algorithm <tt>fill_n</tt>, which is well-defined for this situation.
-</p></blockquote>
-</li>
-<li>
-<p>
-star bullet 3 ("it would be desiderable to have a static const data
-member..."):
-</p>
-<blockquote><p>
-It seems that <tt>tuple_size&lt;array&lt;T, N&gt; &gt;::value</tt> as of 23.3.2.9 [array.tuple] does
-provide this functionality now.
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Alisdair to address by the next meeting, or declare NAD.
-</p>
-<p>
-Moved to Tentatively NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><i>[
-Kona (2007): requirements on zero sized <tt>tr1::array</tt>s and other details
-Issue 617: <tt>std::array</tt> is a sequence that doesn't satisfy the sequence
-requirements? Alisdair will prepare a paper. Proposed Disposition: Open
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="590"></a>590. Type traits implementation latitude should be removed for C++0x</h3>
-<p><b>Section:</b> 20.10 [meta], TR1 4.9 [tr.meta.req] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2006-08-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.4.9 [lib.meta.req], Implementation requirements, provides latitude for type
-traits implementers that is not needed in C++0x. It includes the wording:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> the latitude granted to implementers in this clause is temporary,
-and is expected to be removed in future revisions of this document. -- <i>end note</i>]
-</p></blockquote>
-
-<p>
-Note:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2157.html">N2157: Minor Modifications to the type traits Wording</a>
-also has the intent of removing this wording from the WP.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove 20.4.9 [lib.meta.req] in its entirety from the WP.
-</p>
-
-<p><i>[
-post-Oxford: Recommend NAD Editorial.  This resolution is now in the
-current working draft.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="591"></a>591. Misleading "built-in</h3>
-<p><b>Section:</b> 18.3.2.4 [numeric.limits.members] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> whyglinux <b>Opened:</b> 2006-08-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.limits.members">issues</a> in [numeric.limits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-18.2.1.2 numeric_limits members [lib.numeric.limits.members]
-Paragraph 7:
-</p>
-<blockquote><p>
-"For built-in integer types, the number of non-sign bits in the
-representation."
-</p></blockquote>
-
-<p>
-26.1 Numeric type requirements [lib.numeric.requirements]
-Footnote:
-</p>
-
-<blockquote><p>
-"In other words, value types. These include built-in arithmetic types,
-pointers, the library class complex, and instantiations of valarray for
-value types."
-</p></blockquote>
-
-<p>
-Integer types (which are bool, char, wchar_t, and the signed and
-unsigned integer types) and arithmetic types (which are integer and
-floating types) are all built-in types and thus there are no
-non-built-in (that is, user-defined) integer or arithmetic types. Since
-the redundant "built-in" in the above 2 sentences can mislead that
-there may be built-in or user-defined integer and arithmetic types
-(which is not correct), the "built-in" should be removed.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-18.2.1.2 numeric_limits members [lib.numeric.limits.members]
-Paragraph 7:
-</p>
-<blockquote><p>
-"For <del>built-in</del> integer types, the number of non-sign bits in the
-representation."
-</p></blockquote>
-
-<p>
-26.1 Numeric type requirements [lib.numeric.requirements]
-Footnote:
-</p>
-
-<blockquote><p>
-"In other words, value types. These include <del>built-in</del> arithmetic types,
-pointers, the library class complex, and instantiations of valarray for
-value types."
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD / Editorial.  The proposed resolution is accepted as editorial.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="592"></a>592. Incorrect treatment of rdbuf()->close() return type</h3>
-<p><b>Section:</b> 27.9.1.9 [ifstream.members] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Christopher Kohlhoff <b>Opened:</b> 2006-08-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ifstream.members">issues</a> in [ifstream.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I just spotted a minor problem in 27.8.1.7
-[lib.ifstream.members] para 4 and also 27.8.1.13
-[lib.fstream.members] para 4. In both places it says:
-</p>
-<blockquote>
-<pre>
-void close();
-</pre>
-<p>
-Effects: Calls rdbuf()-&gt;close() and, if that function returns false, ...
-</p>
-</blockquote>
-<p>
-However, basic_filebuf::close() (27.8.1.2) returns a pointer to the
-filebuf on success, null on failure, so I think it is meant to
-say "if that function returns a null pointer". Oddly, it is
-correct for basic_ofstream.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.9.1.9 [ifstream.members], p5:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Calls <tt>rdbuf()-&gt;close()</tt> and, if that function
-<ins>fails (</ins>returns <del><tt>false</tt></del> <ins>a null pointer)</ins>,
-calls <tt>setstate(failbit)</tt> (which may throw <tt>ios_base::failure</tt>
-(27.4.4.3)).
-</p></blockquote>
-
-<p>
-Change 27.9.1.17 [fstream.members], p5:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Calls <tt>rdbuf()-&gt;close()</tt> and, if that function
-<ins>fails (</ins>returns <del><tt>false</tt></del> <ins>a null pointer)</ins>,
-calls <tt>setstate(failbit)</tt> (which may throw <tt>ios_base::failure</tt>
-(27.4.4.3)).
-</p></blockquote>
-
-
-
-<p><i>[
-Kona (2007): Proposed Disposition: NAD, Editorial
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="597"></a>597. Decimal: The notion of 'promotion' cannot be emulated by user-defined types.</h3>
-<p><b>Section:</b> TRDecimal 3.2 [trdec.types.types] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daveed Vandevoorde <b>Opened:</b> 2006-04-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#trdec.types.types">issues</a> in [trdec.types.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In a private email, Daveed writes:
-</p>
-<blockquote>
-<p>
-I am not familiar with the C TR, but my guess is that the
-class type approach still won't match a built-in type
-approach because the notion of "promotion" cannot be
-emulated by user-defined types.
-</p>
-<p>
-Here is an example:
-</p>
-</blockquote>
-<pre>
-
-         struct S {
-           S(_Decimal32 const&amp;);  // Converting constructor
-         };
-         void f(S);
-
-         void f(_Decimal64);
-
-         void g(_Decimal32 d) {
-           f(d);
-         }
-</pre>
-
-<blockquote>
-<p>
-If _Decimal32 is a built-in type, the call f(d) will likely
-resolve to f(_Decimal64) because that requires only a
-promotion, whereas f(S) requires a user-defined conversion.
-</p>
-<p>
-If _Decimal32 is a class type, I think the call f(d) will be
-ambiguous because both the conversion to _Decimal64 and the
-conversion to S will be user-defined conversions with neither
-better than the other.
-</p>
-</blockquote>
-<p>
-Robert comments:
-</p>
-<p>
-In general, a library of arithmetic types cannot exactly emulate the behavior of the intrinsic numeric types.  There are several ways to tell whether an implementation of the decimal types uses compiler intrinisics or a library.  For example:
-</p>
-<pre>
-                 _Decimal32 d1;
-                 d1.operator+=(5);  // If d1 is a builtin type, this won't compile.
-</pre>
-<p>
-In preparing the decimal TR, we have three options:
-</p>
-<ol>
-<li>require that the decimal types be class types</li>
-<li>require that the decimal types be builtin types, like float and double</li>
-<li>specify a library of class types, but allow enough implementor latitude that a conforming implementation could instead provide builtin types</li>
-</ol>
-<p>
-We decided as a group to pursue option #3, but that approach implies that implementations may not agree on the semantics of certain use cases (first example, above), or on whether certain other cases are well-formed (second example).  Another potentially important problem is that, under the present definition of POD, the decimal classes are not POD types, but builtins will be.
-</p>
-<p>
-Note that neither example above implies any problems with respect to C-to-C++ compatibility, since neither example can be expressed in C.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Decimal numeric types may either be builtin types or library types. We
-only intend to specify the common subset of behaviors of the two
-implementation approaches. The front matter of the Decimal TR says this
-explicitly.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="606"></a>606. Decimal: allow narrowing conversions</h3>
-<p><b>Section:</b> TRDecimal 3.2 [trdec.types.types] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#trdec.types.types">issues</a> in [trdec.types.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In c++std-lib-17205, Martin writes:
-</p>
-<blockquote><p>
-...was it a deliberate design choice to make narrowing assignments ill-formed while permitting narrowing compound assignments?  For instance:
-</p></blockquote>
-<pre>
-      decimal32 d32;
-      decimal64 d64;
-
-      d32 = 64;     // error
-      d32 += 64;    // okay
-</pre>
-<p>
-In c++std-lib-17229, Robert responds:
-</p>
-<blockquote><p>
-It is a vestige of an old idea that I forgot to remove from the paper.  Narrowing assignments should be permitted.  The bug is that the converting constructors that cause narrowing should not be explicit.  Thanks for pointing this out.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-The current state of the Decimal TR is the result of a deliberate design
-decision that has been examined many times.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-1.  In "3.2.2 Class <code>decimal32</code>" synopsis, remove the <code>explicit</code> specifier from the narrowing conversions:
-</p>
-<pre>
-                // <i>3.2.2.2 conversion from floating-point type:</i>
-                <del>explicit</del> decimal32(decimal64 <i>d64</i>);
-                <del>explicit</del> decimal32(decimal128 <i>d128</i>);
-</pre>
-<p>
-2.  Do the same thing in "3.2.2.2. Conversion from floating-point type."
-</p>
-<p>
-3.  In "3.2.3 Class <code>decimal64</code>" synopsis, remove the <code>explicit</code> specifier from the narrowing conversion:
-</p>
-<pre>
-                // <i>3.2.3.2 conversion from floating-point type:</i>
-                <del>explicit</del> decimal64(decimal128 <i>d128</i>);
-</pre>
-<p>
-4.  Do the same thing in "3.2.3.2. Conversion from floating-point type."
-</p>
-
-<p><i>[
-Redmond: We prefer explicit conversions for narrowing and implicit for widening.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="614"></a>614. <tt>std::string</tt> allocator requirements still inconsistent</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2006-12-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This is based on N2134, where 21.3.1/2 states:
-"... The Allocator object used shall be a copy of the Allocator object 
-passed to the basic_string object's constructor or, if the constructor does 
-not take an Allocator argument, a copy of a default-constructed Allocator 
-object."
-</p>
-<p>
-Section 21.3.2/1 lists two constructors:
-</p>
-<blockquote><pre>
-basic_string(const basic_string&lt;charT,traits,Allocator&gt;&amp; str );
-
-basic_string(const basic_string&lt;charT,traits,Allocator&gt;&amp; str ,
-             size_type pos , size_type n = npos,
-             const Allocator&amp; a = Allocator());
-</pre></blockquote>
-<p>
-and then says "In the first form, the Allocator value used is copied from 
-str.get_allocator().", which isn't an option according to 21.3.1.
-</p>
-<p><i>[
-Batavia:  We need blanket statement to the effect of:
-]</i></p>
-
-
-<ol>
-<li>If an allocator is passed in, use it, or,</li>
-<li>If a string is passed in, use its allocator.</li>
-</ol>
-<p><i>[
-Review constructors and functions that return a string; make sure we follow these
-rules (substr, operator+, etc.).  Howard to supply wording.
-]</i></p>
-
-
-<p><i>[
-Bo adds:  The new container constructor which takes only a <tt>size_type</tt> is not
-consistent with 23.2 [container.requirements], p9 which says in part:
-]</i></p>
-
-
-<blockquote><p>
-All other constructors for these container types take an
-<tt>Allocator&amp;</tt> argument (20.1.2), an allocator whose value type
-is the same as the container's value type. A copy of this argument is
-used for any memory allocation performed, by these constructors and by
-all member functions, during the lifetime of each container object.
-</p></blockquote>
-
-<p><i>[
-post Bellevue: We re-confirm that the issue is real. Pablo will provide wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="615"></a>615. Inconsistencies in Section 21.4</h3>
-<p><b>Section:</b> 21.8 [c.strings] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2006-12-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.strings">active issues</a> in [c.strings].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.strings">issues</a> in [c.strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the current draft N2134, 21.4/1 says
-</p>
-<p>
-"Tables 59,228) 60, 61, 62,and 63 229) 230) describe headers &lt;cctype&gt;, 
-&lt;cwctype&gt;, &lt;cstring&gt;, &lt;cwchar&gt;, and &lt;cstdlib&gt; (character conversions), 
-respectively."
-</p>
-<p>
-Here footnote 229 applies to table 62, not table 63.
-</p>
-<p>
-Also, footnote 230 lists the new functions in table 63, "atoll, strtoll, 
-strtoull, strtof, and strtold added by TR1". However, strtof is not present 
-in table 63.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend NAD, editorial.  Send to Pete.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="617"></a>617. <tt>std::array</tt> is a sequence that doesn't satisfy the sequence requirements?</h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2006-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>&lt;array&gt;</tt> header is given under 23.3 [sequences].
-23.3.2 [array]/paragraph 3 says:
-</p>
-<blockquote><p>
-"Unless otherwise specified, all array operations are as described in
-23.2 [container.requirements]".
-</p></blockquote>
-<p>
-However, <tt>array</tt> isn't mentioned at all in section 23.2 [container.requirements].
-In particular, Table 82 "Sequence requirements" lists several operations (insert, erase, clear) 
-that <tt>std::array</tt> does not have in 23.3.2 [array].
-</p>
-<p>
-Also, Table 83 "Optional sequence operations" lists several operations that 
-<tt>std::array</tt> does have, but array isn't mentioned.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-The real issue seems to be different than what is described here.
-Non-normative text says that <tt>std::array</tt> is a sequence container, but
-there is disagreement about what that really means. There are two
-possible interpretations:
-</p>
-<ol>
-<li>
-a sequence container is one that satisfies all sequence container requirements
-</li>
-<li>
-a sequence container is one that satisfies some of the sequence
-container requirements. Any operation that the container supports is
-specified by one or more sequence container requirements, unless that
-operation is specifically singled out and defined alongside the
-description of the container itself.
-</li>
-</ol>
-<p>
-Move to Tentatively NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-15 Lo&iuml;c Joly adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The section 23.2.3 [sequence.reqmts]/1 states that array is a sequence. 23.2.3 [sequence.reqmts]/3
-introduces table 83, named Sequence container requirements. This seems
-to me to be defining the requirements for all sequences. However, array
-does not follow all of this requirements (this can be read in the array
-specific section, for the standard is currently inconsistent).
-</p>
-
-<p>
-Proposed resolution 1 (minimal change): 
-</p>
-<blockquote>
-<p>
-Say that array is a container, that in addition follows only some of the
-sequence requirements, as described in the array section:
-</p>
-
-<blockquote><p>
-The library provides <del>five</del> <ins>three</ins> basic kinds of sequence containers: <del><tt>array</tt></del>,
-<tt>vector</tt>, 
-<del><tt>forward_list</tt></del>, <tt>list</tt>, and <tt>deque</tt>. <ins>In addition, <tt>array</tt>
-and <tt>forward_list</tt> follows some of the requirements 
-of sequences, as described in their respective sections.</ins>
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Proposed resolution 2 (most descriptive description, no full wording provided): 
-</p>
-<blockquote><p>
-Introduce the notion of a Fixed Size Sequence, with it requirement table
-that would be a subset of the current Sequence container. array would be
-the only Fixed Size Sequence (but dynarray is in the queue for TR2).
-Sequence requirements would now be requirements in addition to Fixed
-Size Sequence requirements (it is currently in addition to container).
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD Editorial
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-This will require a lot of reorganization. Editor doesn't think this is really
-an issue, since the description of array can be considered as overriding
-what's specified about sequences. Move to NAD.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="626"></a>626. new <i>Remark</i> clauses not documented</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The <i>Remark</i> clauses newly  introduced into the Working Paper 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2134.pdf">N2134</a>)
-are  not mentioned  in  17.5.1.4 [structure.specifications] where  we list  the
-meaning  of <i>Effects</i>, <i>Requires</i>,  and other  clauses (with
-the exception  of <i>Notes</i> which are documented  as informative in
-17.5.1.2 [structure.summary], p2, and which they replace in many cases).
-
-        </p>
-        <p>
-
-Propose add a bullet for <i>Remarks</i> along with a brief description.
-
-        </p>
-<p><i>[
-Batavia:  Alan and Pete to work.
-]</i></p>
-
-
-<p><i>[
-Bellevue: Already resolved in current working paper.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="627"></a>627. Low memory and exceptions</h3>
-<p><b>Section:</b> 18.6.1.1 [new.delete.single] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2007-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.single">issues</a> in [new.delete.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I recognize the need for nothrow guarantees in the exception reporting
-mechanism, but I strongly believe that implementors also need an escape hatch
-when memory gets really low. (Like, there's not enough heap to construct and
-copy exception objects, or not enough stack to process the throw.) I'd like to
-think we can put this escape hatch in 18.6.1.1 [new.delete.single],
-<tt>operator new</tt>, but I'm not sure how to do it. We need more than a
-footnote, but the wording has to be a bit vague. The idea is that if
-<tt>new</tt> can't allocate something sufficiently small, it has the right to
-<tt>abort</tt>/call <tt>terminate</tt>/call <tt>unexpected</tt>.
-</p>
-
-<p><i>[
-Bellevue: NAD.  1.4p2 specifies a program must behave correctly "within
-its resource limits", so no further escape hatch is necessary.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="631"></a>631. conflicting requirements for <tt>BinaryPredicate</tt></h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2007-01-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The general requirements for <tt><tt>BinaryPredicate</tt></tt> (in 25 [algorithms]/8) contradict the implied specific requirements for
-some functions. In particular, it says that:
-</p>
-
-<blockquote><p>
-[...] if an algorithm takes <tt>BinaryPredicate <i>binary_pred</i></tt>
-as its argument and <tt><i>first1</i></tt> and <i>first2</i> as its
-iterator arguments, it should work correctly in the construct <tt>if
-(binary_pred (*<i>first1</i> , *<i>first2</i> )){...}</tt>.
-<tt>BinaryPredicate</tt> always takes the first iterator type as its
-first argument, that is, in those cases when <tt>T <i>value</i></tt> is
-part of the signature, it should work correctly in the context of <tt>if
-(binary_pred (*<i>first1</i> , <i>value</i>)){...}</tt>.
-</p></blockquote>
-
-<p>
-In the description of <tt>upper_bound</tt> (25.4.3.2 [upper.bound]/2), however, the use is described as
-"<tt>!comp(<i>value</i>, <i>e</i>)</tt>", where <tt><i>e</i></tt> is an
-element of the sequence (a result of dereferencing
-<tt>*<i>first</i></tt>).
-</p>
-
-<p>
-In the description of <tt>lexicographical_compare</tt>, we have both
-"<tt>*<i>first1</i> &lt; *<i>first2</i></tt>" and "<tt>*<i>first2</i>
-&lt; *<i>first1</i></tt>" (which presumably implies "<tt>comp(
-*<i>first1</i>, *<i>first2</i> )</tt>" and "<tt>comp( *<i>first2</i>,
-*<i>first1</i> )</tt>".
-</p>
-
-<p>
-Logically, the <tt>BinaryPredicate</tt> is used as an ordering
-relationship, with the semantics of "less than".  Depending on the
-function, it may be used to determine equality, or any of the inequality
-relationships; doing this requires being able to use it with either
-parameter first.  I would thus suggest that the requirement be:
-</p>
-
-<p>
-Alternatively, one could specify an order for each function. IMHO, this
-would be more work for the committee, more work for the implementors,
-and of no real advantage for the user: some functions, such as
-<tt>lexicographical_compare</tt> or <tt>equal_range</tt>, will still require both
-functions, and it seems like a much easier rule to teach that both
-functions are always required, rather than to have a complicated list of
-when you only need one, and which one.
-</p>
-
-<p><i>[
-Toronto:  Moved to Open.  ConceptGCC seems to get <tt>lower_bound</tt>
-and <tt>upper_bound</tt> to work withoutt these changes.
-]</i></p>
-
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Review. The small problem with the "iterator type"
-will be fixed. The cited functions (<tt>lower_bound</tt>, <tt>uppwer_bound</tt>,
-<tt>equal_range</tt>) don't actually use <tt>BinaryPredicate</tt> , and where it is used,
-it is consistent with  [algorithm]/8, so the main complaint of the issue
-is moot.
-</p></blockquote>
-
-<p><i>[
-2010-01-16 Beman clarified wording.
-]</i></p>
-
-
-<p><i>[
-2010-01-31: Moved to Tentatively NAD after 5 positive votes on c++std-lib. 
-Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2759.pdf">N2759</a>.
-</p>
-</blockquote>
-
-<p>
-2010-01-31: The draft standard is well specified as is, and this specification
-is desired.  Issues <a href="lwg-defects.html#556">556</a> and <a href="lwg-defects.html#870">870</a> solve the remaining
-unclearness regarding the meaning of BinaryPredicate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>Change 25 [algorithms] paragraph 8 as indicated:</i></p>
-
-<blockquote>
-
-<p>
-8 The <tt>BinaryPredicate</tt> parameter is used whenever an algorithm expects a
-function object that when applied to the result of dereferencing two
-corresponding iterators or to dereferencing an iterator and type <tt>T</tt> when
-<tt>T</tt> is part of the signature returns a value testable as true. <ins>
-<tt>BinaryPredicate</tt> always takes the first iterator <tt>value_type</tt> as
-one of its arguments; which argument is unspecified.</ins> <del>In other words,
-if</del> <ins> If</ins> an algorithm takes <tt>BinaryPredicate binary_pred</tt>
-as its argument and <tt>first1</tt> and <tt>first2</tt> as its iterator
-arguments, it should work correctly <ins>both</ins> in the construct <tt>if
-(binary_pred(*first1, *first2)){...}</tt> <ins>and <tt>if (binary_pred (*first2,
-*first1)){...}</tt></ins>. <del><tt>BinaryPredicate</tt> always takes the first
-iterator type as its first argument, that is, in</del> <ins>In</ins> those cases
-when <tt>T value</tt> is part of the signature, it should work correctly in the
-context of <tt> if (binary_pred(*first1, value)){...}</tt> <ins>and of <tt>if
-(binary_pred (value, *first1)){...}</tt></ins>. <del> <tt>binary_pred</tt> shall
-not apply any non-constant function through the dereferenced iterators.</del>
-<ins>[<i>Note:</i> if the two types are not identical, and neither is
-convertable to the other, this may require that the <tt>BinaryPredicate</tt> be
-a functional object with two overloaded <tt>operator()()</tt> functions.
-&mdash; <i>end note</i>]</ins>
-</p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="632"></a>632. Time complexity of <tt>size()</tt> for <tt>std::set</tt></h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Lionel B <b>Opened:</b> 2007-02-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A recent news group discussion:
-</p>
-<blockquote>
-<p>
-Anyone know if the Standard has anything to say about the time complexity
-of <tt>size()</tt> for <tt>std::set</tt>?   I need to access a set's size (<em>not</em> 
-to know if it is empty!) heavily during an algorithm and was thus wondering 
-whether I'd be better off tracking the size "manually" or whether that'd be pointless.
-</p>
-<p>
-That would be pointless. <tt>size()</tt> is O(1).
-</p>
-<p>
-Nit: the standard says "should" have constant time. Implementations may take
-license to do worse. I know that some do this for <tt>std::list&lt;&gt;</tt> as a part of
-some trade-off with other operation.
-</p>
-
-<p>
-I was aware of that, hence my reluctance to use size() for std::set.
-</p>
-<p>
-However, this reason would not apply to <tt>std::set&lt;&gt;</tt> as far as I can see.
-</p>
-<p>
-Ok, I guess the only option is to try it and see...
-</p>
-</blockquote>
-
-<p>
-If I have any recommendation to the C++ Standards Committee it is that
-implementations must (not "should"!) document clearly[1], where known, the
-time complexity of *all* container access operations.
-</p>
-<p>
-[1] In my case (gcc 4.1.1) I can't swear that the time complexity of size()
-for std::set is not documented... but if it is it's certainly well hidden
-away.
-</p>
-
-<p><i>[
-Kona (2007): This issue affects all the containers. We'd love to see a
-paper dealing with the broad issue. We think that the complexity of the
-<tt>size()</tt> member of every container -- except possibly <tt>list</tt> -- should be
-O(1). Alan has volunteered to provide wording.
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Mandating O(1) size will not fly, too many implementations would be
-invalidated. Alan to provide wording that toughens wording, but that
-does not absolutely mandate O(1).
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We observed that the wording "should" (in note a) has no effect.
-Howard prefers that O(1) size be mandated.
-It is not clear that this issue can be resolved to everyone's satisfaction,
-but Alan will provide wording nonetheless.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Fixed by paper N2923.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="633"></a>633. Return clause mentions undefined "type()"</h3>
-<p><b>Section:</b> 20.9.12.2.5 [func.wrap.func.targ] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.9.12.2.5 [func.wrap.func.targ], p4 says:
-</p>
-<blockquote><p>
-<i>Returns:</i> If <tt>type() == typeid(T)</tt>, a pointer to the stored
-function target; otherwise a null pointer.
-</p></blockquote>
-
-<ol>
-<li>
-There exists neither a type, a typedef <tt>type</tt>, nor member
-function <tt>type()</tt> in class template function nor in the global or
-<tt>std</tt> namespace.
-</li>
-<li>
-Assuming that <tt>type</tt> should have been <tt>target_type()</tt>,
-this description would lead to false results, if <tt>T = <i>cv</i>
-void</tt> due to returns clause 20.9.12.2.5 [func.wrap.func.targ], p1.
-</li>
-</ol>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.12.2.5 [func.wrap.func.targ], p4:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> If <tt><del>type()</del> <ins>target_type()</ins> == typeid(T) <ins>&amp;&amp; typeid(T) !=
-typeid(void)</ins></tt>, a pointer to the stored function target;
-otherwise a null pointer.
-</p></blockquote>
-
-<p><i>[
-Pete: Agreed. It's editorial, so I'll fix it.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="636"></a>636. 26.5.2.3 valarray::operator[]</h3>
-<p><b>Section:</b> 26.6.2.4 [valarray.access] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-02-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.access">issues</a> in [valarray.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The signature of the const operator[] has been changed to return a const 
-reference.
-</p>
-<p>
-The description in paragraph 1 still says that the operator returns by 
-value.
-</p>
-<p><i>[
-Pete recommends editorial fix.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="637"></a>637. [c.math]/10 inconsistent return values</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-02-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-26.8 [c.math], paragraph 10 has long lists of added signatures for float and long double 
-functions. All the signatures have float/long double return values, which is 
-inconsistent with some of the double functions they are supposed to 
-overload.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.8 [c.math], paragraph 10,
-</p>
-
-<blockquote><pre>
-<del>float</del> <ins>int</ins> ilogb(float);
-<del>float</del> <ins>long</ins> lrint(float);
-<del>float</del> <ins>long</ins> lround(float);
-<del>float</del> <ins>long long</ins> llrint(float);
-<del>float</del> <ins>long long</ins> llround(float);
-
-<del>long double</del> <ins>int</ins> ilogb(long double);
-<del>long double</del> <ins>long</ins> lrint(long double);
-<del>long double</del> <ins>long</ins> lround(long double);
-<del>long double</del> <ins>long long</ins> llrint(long double);
-<del>long double</del> <ins>long long</ins> llround(long double);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="639"></a>639. Still problems with exceptions during streambuf IO</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors], 27.7.3.6.3 [ostream.inserters] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There already exist two active DR's for the wording of 27.7.2.2.3 [istream::extractors]/13
-from 14882:2003(E), namely <a href="lwg-defects.html#64">64</a> and <a href="lwg-defects.html#413">413</a>.
-</p>
-
-<p>
-Even with these proposed corrections, already maintained in N2134,
-I have the feeling, that the current wording does still not properly
-handle the "exceptional" situation. The combination of para 14
-</p>
-
-<blockquote><p>
-"[..] Characters are extracted and inserted until
-any of the following occurs:
-</p>
-<p>
-[..]
-</p>
-<p>
-- an exception occurs (in which case the exception is caught)."
-</p></blockquote>
-
-<p>
-and 15
-</p>
-
-<blockquote><p>
-"If the function inserts no characters, it calls setstate(failbit),
-which
-may throw ios_base::failure (27.4.4.3). If it inserted no characters
-because it caught an exception thrown while extracting characters
-from *this and failbit is on in exceptions() (27.4.4.3), then the
-caught
-exception is rethrown."
-</p></blockquote>
-
-<p>
-both in N2134 seems to imply that any exception, which occurs
-*after* at least one character has been inserted is caught and lost
-for
-ever. It seems that even if failbit is on in exceptions() rethrow is
-not
-allowed due to the wording "If it inserted no characters because it
-caught an exception thrown while extracting".
-</p>
-
-<p>
-Is this behaviour by design?
-</p>
-
-<p>
-I would like to add that its output counterpart in 27.7.3.6.3 [ostream.inserters]/7-9
-(also
-N2134) does not demonstrate such an exception-loss-behaviour.
-On the other side, I wonder concerning several subtle differences
-compared to input::
-</p>
-<p>
-1) Paragraph 8 says at its end:
-</p>
-
-<blockquote><p>
-"- an exception occurs while getting a character from sb."
-</p></blockquote>
-
-<p>
-Note that there is nothing mentioned which would imply that such
-an exception will be caught compared to 27.7.2.2.3 [istream::extractors]/14.
-</p>
-
-<p>
-2) Paragraph 9 says:
-</p>
-
-<blockquote><p>
-"If the function inserts no characters, it calls setstate(failbit)
-(which
-may throw ios_base::failure (27.4.4.3)). If an exception was thrown
-while extracting a character, the function sets failbit in error
-state,
-and if failbit is on in exceptions() the caught exception is
-rethrown."
-</p></blockquote>
-
-<p>
-The sentence starting with "If an exception was thrown" seems to
-imply that such an exception *should* be caught before.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-(a) In 27.7.2.2.3 [istream::extractors]/15 (N2134) change the sentence
-</p>
-
-<blockquote><p>
-If the function inserts no characters, it calls
-<tt>setstate(failbit)</tt>, which may throw <tt>ios_base::failure</tt>
-(27.4.4.3). If <del>it inserted no characters because it caught an
-exception thrown while extracting characters from <tt>*this</tt></del>
-<ins>an exception was thrown while extracting a character from
-<tt>*this</tt>, the function sets <tt>failbit</tt> in error state,</ins>
-and <tt>failbit</tt> is on in <tt>exceptions()</tt> (27.4.4.3), then the
-caught exception is rethrown.
-</p></blockquote>
-
-<p>
-(b) In 27.7.3.6.3 [ostream.inserters]/8 (N2134) change the sentence:
-</p>
-
-<blockquote>
-<p>
-Gets characters from <tt>sb</tt> and inserts them in <tt>*this</tt>.
-Characters are read from <tt>sb</tt> and inserted until any of the
-following occurs:
-</p>
-<ul>
-<li>end-of-file occurs on the input sequence;</li>
-<li>inserting in the output sequence fails (in which case the character to be inserted is not extracted);</li>
-<li>an exception occurs while getting a character from <tt>sb</tt> <ins>(in which
-case the exception is caught)</ins>.</li>
-</ul>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-This extractor is described as a formatted input function so the
-exception behavior is already specified. There is additional behavior
-described in this section that applies to the case in which failbit is
-set. This doesn't contradict the usual exception behavior for formatted
-input functions because that applies to the case in which badbit is set.
-</p>
-
-
-
-
-<hr>
-<h3><a name="641"></a>641. Editorial fix for 27.6.4 (N2134)</h3>
-<p><b>Section:</b> 27.7.5 [ext.manip] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ext.manip">issues</a> in [ext.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The function <tt>f</tt> in para 4 (27.7.5 [ext.manip]) references an unknown <tt>strm</tt>
-in the following line:
-</p>
-
-<blockquote><pre>
-mg.get(Iter(str.rdbuf()), Iter(), intl, strm, err, mon);
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.7.5 [ext.manip], p4:
-</p>
-
-<blockquote><pre>
-mg.get(Iter(str.rdbuf()), Iter(), intl, str<del>m</del>, err, mon);
-</pre></blockquote>
-
-<p><i>[
-Oxford:  Editorial.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="642"></a>642. Invalidated fstream footnotes in N2134</h3>
-<p><b>Section:</b> 27.9.1.9 [ifstream.members], 27.9.1.13 [ofstream.members] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ifstream.members">issues</a> in [ifstream.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard wording of N2134 has extended the 14882:2003(E)
-wording for the ifstream/ofstream/fstream open function to fix
-a long standing problem, see <a href="lwg-defects.html#409">409</a>.
-</p>
-
-<p>
-Now it's properly written as
-</p>
-
-<blockquote><p>
-"If that function does not return a null pointer calls clear(),
-otherwise
-calls setstate(failbit)[..]"
-</p></blockquote>
-
-<p>
-instead of the previous
-</p>
-
-<blockquote><p>
-"If that function returns a null pointer, calls setstate(failbit)[..]
-</p></blockquote>
-
-<p>
-While the old footnotes saying
-</p>
-
-<blockquote><p>
-"A successful open does not change the error state."
-</p></blockquote>
-
-<p>
-where correct and important, they are invalid now for ifstream and
-ofstream (because clear *does* indeed modify the error state) and
-should be removed (Interestingly fstream itself never had these,
-although
-they where needed for that time).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.9.1.9 [ifstream.members], remove footnote:
-</p>
-
-<blockquote><p>
-<del><sup>334)</sup> A successful open does not change the error state.</del>
-</p></blockquote>
-
-<p>
-In 27.9.1.13 [ofstream.members], remove footnote:
-</p>
-
-<blockquote><p>
-<del><sup>335)</sup> A successful open does not change the error state.</del>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="644"></a>644. Possible typos in 'function' description</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-02-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.9.12.2 [func.wrap.func]
-</p>
-<p>
-The note in paragraph 2 refers to 'undefined void operators', while the
-section declares a pair of operators returning <tt>bool</tt>.
-</p>
-
-<p><i>[
-Post-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Changed from Pending WP to Open.  This issue was voted to WP at the same time the operators were
-changed from private to deleted.  The two issues stepped on each other.  What do we want the return
-type of these deleted functions to be?
-</p></blockquote>
-
-<p><i>[
-2009-05-02 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I suggest harmonizing this issue with similar classes. E.g. in
-20.8.2.3 [util.smartptr.weak] <tt>bool</tt> return values for
-</p>
-<blockquote><pre>
-template &lt;class Y&gt; bool operator&lt;(weak_ptr&lt;Y&gt; const&amp;) const = delete;
-template &lt;class Y&gt; bool operator&lt;=(weak_ptr&lt;Y&gt; const&amp;) const = delete;
-template &lt;class Y&gt; bool operator&gt;(weak_ptr&lt;Y&gt; const&amp;) const = delete;
-template &lt;class Y&gt; bool operator&gt;=(weak_ptr&lt;Y&gt; const&amp;) const = delete;
-</pre></blockquote>
-
-<p>
-are used and basically all <em>newer</em> provided deleted copy assignment operators
-of type <tt>X</tt> use the canonical return type <tt>X&amp;</tt> instead of <tt>void</tt>. Since the note
-mentioned in the issue description has now already been changed to
-</p>
-<blockquote><p>
-deleted overloads close possible hole in the type system
-</p></blockquote>
-<p>
-it seems to be of even lesser need to perform the change. Therefore
-I recommend declaring the issue as NAD.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with Daniel's recommendation.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.12.2 [func.wrap.func]
-</p>
-
-<blockquote><pre>
-...
-private:
-   // 20.9.12.2 [func.wrap.func], undefined operators:
-   template&lt;class Function2&gt; <del>bool</del> <ins>void</ins> operator==(const function&lt;Function2&gt;&amp;);
-   template&lt;class Function2&gt; <del>bool</del> <ins>void</ins> operator!=(const function&lt;Function2&gt;&amp;);
-};
-</pre></blockquote>
-
-<p>
-Change 20.9.12.2 [func.wrap.func]
-</p>
-
-<blockquote><pre>
-template&lt;class Function2&gt; <del>bool</del> <ins>void</ins> operator==(const function&lt;Function2&gt;&amp;);
-template&lt;class Function2&gt; <del>bool</del> <ins>void</ins> operator!=(const function&lt;Function2&gt;&amp;);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="645"></a>645. Missing members in match_results</h3>
-<p><b>Section:</b> 28.10 [re.results] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results">issues</a> in [re.results].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to the description given in 28.10 [re.results]/2 the class template
-match_results "shall satisfy the requirements of a Sequence, [..],
-except that only operations defined for const-qualified Sequences
-are supported".
-Comparing the provided operations from 28.10 [re.results]/3 with the
-sequence/container tables 80 and 81 one recognizes the following
-missing operations:
-</p>
-
-<p>
-1) The members
-</p>
-
-<blockquote><pre>
-const_iterator rbegin() const;
-const_iterator rend() const;
-</pre></blockquote>
-
-<p>
-should exists because 23.1/10 demands these for containers
-(all sequences are containers) which support bidirectional
-iterators. Aren't these supported by match_result? This is not
-explicitely expressed, but it's somewhat implied by two arguments:
-</p>
-<p>
-(a) Several typedefs delegate to
-<tt>iterator_traits&lt;BidirectionalIterator&gt;</tt>.
-</p>
-<p>
-(b) The existence of <tt>const_reference operator[](size_type n) const</tt>
-implies even random-access iteration.
-I also suggest, that <tt>match_result</tt> should explicitly mention,
-which minimum iterator category is supported and if this does
-not include random-access the existence of <tt>operator[]</tt> is
-somewhat questionable.
-</p>
-<p>
-2) The new "convenience" members
-</p>
-<blockquote><pre>
-const_iterator cbegin() const;
-const_iterator cend() const;
-const_iterator crbegin() const;
-const_iterator crend() const;
-</pre></blockquote>
-<p>
-should be added according to tables 80/81.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following members to the <tt>match_results</tt> synopsis after <tt>end()</tt> in 28.10 [re.results]
-para 3:
-</p>
-
-<blockquote><pre>
-const_iterator cbegin() const; 
-const_iterator cend() const;
-</pre></blockquote>
-
-<p>
-In section 28.10.4 [re.results.acc] change:
-</p>
-
-<blockquote>
-<pre>
-const_iterator begin() const;
-<ins>const_iterator cbegin() const;</ins>
-</pre>
-<blockquote>
-<p>
--7- <i>Returns:</i> A starting iterator that enumerates over all the sub-expressions stored in <tt>*this</tt>.
-</p>
-</blockquote>
-
-<pre>
-const_iterator end() const;
-<ins>const_iterator cend() const;</ins>
-</pre>
-<blockquote>
-<p>
--8- <i>Returns:</i> A terminating iterator that enumerates over all the sub-expressions stored in <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007): Voted to adopt proposed wording in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2409.pdf">N2409</a>
-except removing the entry in the table container requirements.  Moved to Review.
-]</i></p>
-
-
-<p><i>[
-Bellevue:  Proposed wording now in the WP.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="647"></a>647. Inconsistent <tt>regex_search</tt> params</h3>
-<p><b>Section:</b> 28.11.3 [re.alg.search] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.11.3 [re.alg.search]/5 declares
-</p>
-
-<blockquote><pre>
-template &lt;class iterator, class charT, class traits&gt;
-bool regex_search(iterator first, iterator last,
-                  const basic_regex&lt;charT, traits&gt;&amp; e,
-                  regex_constants::match_flag_type flags =
-                      regex_constants::match_default);
-</pre></blockquote>
-
-<p>
-where it's not explained, which iterator category
-the parameter iterator belongs to. This is inconsistent
-to the preceding declaration in the synopsis section
-28.4 [re.syn], which says:
-</p>
-
-<blockquote><pre>
-template &lt;class BidirectionalIterator, class charT, class traits&gt;
-bool regex_search(BidirectionalIterator first, BidirectionalIterator last,
-                  const basic_regex&lt;charT, traits&gt;&amp; e,
-                  regex_constants::match_flag_type flags =
-                      regex_constants::match_default);
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 28.11.3 [re.alg.search]/5 replace all three occurences of param "iterator" with
-"BidirectionalIterator"
-</p>
-
-<blockquote><pre>
-template &lt;class <del>iterator</del> <ins>BidirectionalIterator</ins>, class charT, class traits&gt;
-  bool regex_search(<del>iterator</del> <ins>BidirectionalIterator</ins> first, <del>iterator</del> <ins>BidirectionalIterator</ins> last, 
-                    const basic_regex&lt;charT, traits&gt;&amp; e, 
-                    regex_constants::match_flag_type flags = 
-                      regex_constants::match_default);
-</pre>
-<p>
--6- <i>Effects:</i> Behaves "as if" by constructing an object what of
-type <tt>match_results&lt;<del>iterator</del>
-<ins>BidirectionalIterator</ins>&gt;</tt> and then returning the result
-of <tt>regex_search(first, last, what, e, flags)</tt>.
-</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-Applied to working paper while issue was still in New status.
-</p>
-
-
-
-
-<hr>
-<h3><a name="648"></a>648. regex_iterator c'tor needs clarification/editorial fix</h3>
-<p><b>Section:</b> 28.12.1.1 [re.regiter.cnstr] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 28.12.1.1 [re.regiter.cnstr]/2 the effects paragraph starts with:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> Initializes begin and end to point to the beginning and the
-end of the target sequence, sets pregex to &amp;re, sets flags to f,[..]
-</p></blockquote>
-
-<p>
-There are two issues with this description:
-</p>
-
-<ol>
-<li>
-The meaning of very first part of this quote is unclear, because
-there is no target sequence provided, instead there are given two
-parameters a and b, both of type BidirectionalIterator. The mentioned
-part does not explain what a and b represent.
-</li>
-<li>
-There does not exist any parameter f, but instead a parameter
-m in the constructor declaration, so this is actually an editorial
-fix.
-</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 28.12.1.1 [re.regiter.cnstr]/2 change the above quoted part by
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Initializes <tt>begin</tt> and <tt>end</tt> to point to
-the beginning and the end of the target sequence <ins>designated by the
-iterator range <tt>[a, b)</tt></ins>, sets <tt>pregex</tt> to
-<tt>&amp;re</tt>, sets <tt>flags</tt> to <tt><del>f</del>
-<ins>m</ins></tt>, then calls <tt>regex_search(begin, end, match,
-*pregex, flags)</tt>. If this call returns <tt>false</tt> the
-constructor sets <tt>*this</tt> to the end-of-sequence iterator.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="649"></a>649. Several typos in regex_token_iterator constructors</h3>
-<p><b>Section:</b> 28.12.2.1 [re.tokiter.cnstr] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.tokiter.cnstr">issues</a> in [re.tokiter.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 28.12.2.1 [re.tokiter.cnstr]/1+2 both the constructor declaration
-and the following text shows some obvious typos:
-</p>
-<p>
-1) The third constructor form is written as
-</p>
-<blockquote><pre>
-template &lt;std::size_t N&gt;
-  regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, 
-                       const regex_type&amp; re, 
-                       const int (&amp;submatches)[R], 
-                       regex_constants::match_flag_type m = 
-                         regex_constants::match_default);
-</pre></blockquote>
-
-<p>
-where the dimensions of submatches are specified by an
-unknown value R, which should be N.
-</p>
-<p>
-2) Paragraph 2 of the same section says in its last sentence:
-</p>
-
-<blockquote><p>
-The third constructor initializes the member <tt>subs</tt> to hold a
-copy of the sequence of integer values pointed to by the iterator range
-<tt>[&amp;submatches, &amp;submatches + R)</tt>.
-</p></blockquote>
-
-<p>
-where again R must be replaced by N.
-</p>
-
-<p>
-3) Paragraph 3 of the same section says in its first sentence:
-</p>
-
-<blockquote><p>
-Each constructor then sets <tt>N</tt> to <tt>0</tt>, and
-<tt>position</tt> to <tt>position_iterator(a, b, re, f)</tt>.
-</p></blockquote>
-
-<p>
-where a non-existing parameter "f" is mentioned, which must be
-replaced
-by the parameter "m".
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 28.12.2.1 [re.tokiter.cnstr]/1:
-</p>
-<blockquote><pre>
-template &lt;std::size_t N&gt;
-  regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, 
-                       const regex_type&amp; re, 
-                       const int (&amp;submatches)[<del>R</del> <ins>N</ins>], 
-                       regex_constants::match_flag_type m = 
-                         regex_constants::match_default);
-</pre></blockquote>
-
-<p>
-Change 28.12.2.1 [re.tokiter.cnstr]/2:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> The first constructor initializes the member
-<tt>subs</tt> to hold the single value <tt>submatch</tt>. The second
-constructor initializes the member <tt>subs</tt> to hold a copy of the
-argument <tt>submatches</tt>. The third constructor initializes the
-member <tt>subs</tt> to hold a copy of the sequence of integer values
-pointed to by the iterator range <tt>[&amp;submatches, &amp;submatches +
-<del>R</del> <ins>N</ins>)</tt>.
-</p></blockquote>
-
-<p>
-Change 28.12.2.1 [re.tokiter.cnstr]/3:
-</p>
-
-<blockquote><p>
-Each constructor then sets <tt>N</tt> to <tt>0</tt>, and
-<tt>position</tt> to <tt>position_iterator(a, b, re, <del>f</del>
-<ins>m</ins>)</tt>. If <tt>position</tt> is not an end-of-sequence
-iterator the constructor sets <tt>result</tt> to the address of the
-current match. Otherwise if any of the values stored in <tt>subs</tt> is
-equal to <tt>-1</tt> the constructor sets <tt>*this</tt> to a suffix
-iterator that points to the range <tt>[a, b)</tt>, otherwise the
-constructor sets <tt>*this</tt> to an end-of-sequence iterator.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="653"></a>653. Library reserved names</h3>
-<p><b>Section:</b> 1.2 [intro.refs] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-03-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#intro.refs">issues</a> in [intro.refs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-</p>
-<blockquote>
-<p>
-1.2 [intro.refs] Normative references
-</p>
-
-<p>
-The following standards contain provisions which, through reference in
-this text, constitute provisions of this Interna- tional Standard. At
-the time of publication, the editions indicated were valid. All
-standards are subject to revision, and parties to agreements based on
-this International Standard are encouraged to investigate the
-possibility of applying the most recent editions of the standards
-indicated below. Members of IEC and ISO maintain registers of currently
-valid International Standards.
-</p>
-
-<ul>
-<li>Ecma International, ECMAScript Language Specification, Standard
-Ecma-262, third edition, 1999.</li>
-<li>ISO/IEC 2382 (all parts), Information technology - Vocabulary</li>
-<li>ISO/IEC 9899:1990, Programming languages - C</li>
-<li>ISO/IEC 9899/Amd.1:1995, Programming languages - C, AMENDMENT 1: C
-Integrity</li>
-<li>ISO/IEC 9899:1999, Programming languages - C</li>
-<li>ISO/IEC 9899:1999/Cor.1:2001 Programming languages - C</li>
-<li>ISO/IEC 9899:1999/Cor.2:2004 Programming languages - C</li>
-<li>ISO/IEC 9945:2003, Information Technology-Portable Operating System
-Interface (POSIX)</li>
-<li>ISO/IEC 10646-1:1993 Information technology - Universal Multiple-Octet
-Coded Character Set (UCS) - Part 1: Architecture and Basic Multilingual
-Plane</li>
-</ul>
-</blockquote>
-
-<p>
-I'm not sure how many of those reserve naming patterns that might affect
-us, but I am equally sure I don't own a copy of any of these to check!
-</p>
-<p>
-The point is to list the reserved naming patterns, rather than the
-individual names themselves - although we may want to list C keywords
-that are valid identifiers in C++ but likely to cause trouble in shared
-headers (e.g. restrict)
-</p>
-
-<p><i>[
-Kona (2007): Recommend NAD.  No one has identified a specific defect, just the possibility of one.
-]</i></p>
-
-
-<p><i>[
-Post-Kona: Alisdair request Open. A good example of the problem was a
-discussion of the system error proposal, where it was pointed out an all-caps
-identifier starting with a capital E conflicted with reserved macro names for
-both Posix and C.  I had absolutely no idea of this rule, and suspect I was
-not the only one in the room.<br/>
-<br/>
-Resolution will require someone with access to all the listed documents to
-research their respective name reservation rules, or people with access to
-specific documents add their rules to this issue until the list is complete.
-]</i></p>
-
-
-<p><i>[
-Bellevue: Wording is aleady present in various standards, and no-one has come forward with wording.
-Suggest a formal paper rather than a defect report is the correct way to proceed.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="656"></a>656. Typo in subtract_with_carry_engine declaration</h3>
-<p><b>Section:</b> 26.5.2 [rand.synopsis] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.synopsis">issues</a> in [rand.synopsis].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-26.5.2 [rand.synopsis] the header <tt>&lt;random&gt;</tt> synopsis
-contains an unreasonable closing curly brace inside the
-<tt>subtract_with_carry_engine</tt> declaration.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the current declaration in 26.5.2 [rand.synopsis]
-</p>
-
-<blockquote><pre>
-template &lt;class UIntType, size_t w<del>}</del>, size_t s, size_t r&gt;
-class subtract_with_carry_engine;
-</pre></blockquote>
-
-
-<p><i>[
-Pete: Recommends editorial.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="657"></a>657. unclear requirement about header inclusion</h3>
-<p><b>Section:</b> 17.6.2.2 [using.headers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Gennaro Prota <b>Opened:</b> 2007-03-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#using.headers">issues</a> in [using.headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.6.2.2 [using.headers] states:
-</p>
-
-<blockquote><p>
-A translation unit shall include a header only outside of any
-external declaration or definition, [...]
-</p></blockquote>
-
-<p>
-I see three problems with this requirement:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li><p>The C++ standard doesn't define what an "external declaration" or
-an "external definition" are (incidentally the C99 standard does, and
-has a sentence very similar to the above regarding header inclusion).
-</p><p>
-I think the intent is that the #include directive shall lexically
-appear outside *any* declaration; instead, when the issue was pointed
-out on comp.std.c++ at least one poster interpreted "external
-declaration" as "declaration of an identifier with external linkage".
-If this were the correct interpretation, then the two inclusions below
-would be legal:
-</p>
-<blockquote><pre>
-  // at global scope
-  static void f()
-  {
-# include &lt;cstddef&gt;
-  }
-
-  static void g()
-  {
-# include &lt;stddef.h&gt;
-  }
-</pre></blockquote>
-<p>
-(note that while the first example is unlikely to compile correctly,
-the second one may well do)
-</p></li>
-
-<li><p>as the sentence stands, violations will require a diagnostic; is
-this the intent? It was pointed out on comp.std.c++ (by several
-posters) that at least one way to ensure a diagnostic exists:
-</p>
-<blockquote><p>
-   [If there is an actual file for each header,] one simple way
-   to implement this would be to insert a reserved identifier
-   such as __begin_header  at the start of each standard header.
-   This reserved identifier would be ignored for all other
-   purposes, except that, at the appropriate point in phase 7, if
-   it is found inside an external definition, a diagnostic is
-   generated. There's many other similar ways to achieve the same
-   effect.
-   </p>
-<p>                                 --James Kuyper, on comp.std.c++
-</p></blockquote></li>
-
-<li><p>is the term "header" meant to be limited to standard headers?
-Clause 17 is all about the library, but still the general question is
-interesting and affects one of the points in the explicit namespaces
-proposal (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1691.html">n1691</a>):
-</p>
-<blockquote><p>
-    Those seeking to conveniently enable argument-dependent
-    lookups for all operators within an explicit namespace
-    could easily create a header file that does so:
-</p><pre>
-    namespace mymath::
-    {
-        #include "using_ops.hpp"
-    }
-</pre></blockquote>
-</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-We believe that the existing language does not cause any real confusion
-and any new formulation of the rules that we could come up with are
-unlikely to be better than what's already in the standard.
-</p>
-
-
-
-
-<hr>
-<h3><a name="662"></a>662. Inconsistent handling of incorrectly-placed thousands separators</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Cosmin Truta <b>Opened:</b> 2007-04-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From Section 22.4.2.1.2 [facet.num.get.virtuals], paragraphs 11 and 12, it is implied
-that the value read from a stream must be stored
-even if the placement of thousands separators does not conform to the
-<code>grouping()</code> specification from the <code>numpunct</code> facet.
-Since incorrectly-placed thousands separators are flagged as an extraction
-failure (by the means of <code>failbit</code>), we believe it is better not
-to store the value. A consistent strategy, in which any kind of extraction
-failure leaves the input item intact, is conceptually cleaner, is able to avoid
-corner-case traps, and is also more understandable from the programmer's point
-of view.
-</p>
-<p>
-Here is a quote from <i>"The C++ Programming Language (Special Edition)"</i>
-by B.&nbsp;Stroustrup (Section&nbsp;D.4.2.3, pg.&nbsp;897):
-</p>
-<blockquote><p>
-<i>"If a value of the desired type could not be read, failbit is set in r.
-[...] An input operator will use r to determine how to set the state of its
-stream. If no error was encountered, the value read is assigned through v;
-otherwise, v is left unchanged."</i>
-</p></blockquote>
-<p>
-This statement implies that <code>rdstate()</code> alone is sufficient to
-determine whether an extracted value is to be assigned to the input item
-<i>val</i> passed to <code>do_get</code>. However, this is in disagreement
-with the current C++ Standard. The above-mentioned assumption is true in all
-cases, except when there are mismatches in digit grouping. In the latter case,
-the parsed value is assigned to <i>val</i>, and, at the same time, <i>err</i>
-is assigned to <code>ios_base::failbit</code> (essentially "lying" about the
-success of the operation). Is this intentional? The current behavior raises
-both consistency and usability concerns.
-</p>
-<p>
-Although digit grouping is outside the scope of <code>scanf</code> (on which
-the virtual methods of <code>num_get</code> are based), handling of grouping
-should be consistent with the overall behavior of scanf. The specification of
-<code>scanf</code> makes a distinction between input failures and matching
-failures, and yet both kinds of failures have no effect on the input items
-passed to <code>scanf</code>. A mismatch in digit grouping logically falls in
-the category of matching failures, and it would be more consistent, and less
-surprising to the user, to leave the input item intact whenever a failure is
-being signaled.
-</p>
-<p>
-The extraction of <code>bool</code> is another example outside the scope of
-<code>scanf</code>, and yet consistent, even in the event of a successful
-extraction of a <code>long</code> but a failed conversion from
-<code>long</code> to <code>bool</code>.
-</p>
-<p>
-Inconsistency is further aggravated by the fact that, when failbit is set,
-subsequent extraction operations are no-ops until <code>failbit</code> is
-explicitly cleared. Assuming that there is no explicit handling of
-<code>rdstate()</code> (as in <code>cin&gt;&gt;i&gt;&gt;j</code>) it is
-counter-intuitive to be able to extract an integer with mismatched digit
-grouping, but to be unable to extract another, properly-formatted integer
-that immediately follows.
-</p>
-<p>
-Moreover, setting <code>failbit</code>, and selectively assigning a value to
-the input item, raises usability problems. Either the strategy of
-<code>scanf</code> (when there is no extracted value in case of failure), or
-the strategy of the <code>strtol</code> family (when there is always an
-extracted value, and there are well-defined defaults in case of a failure) are
-easy to understand and easy to use. On the other hand, if <code>failbit</code>
-alone cannot consistently make a difference between a failed extraction, and a
-successful but not-quite-correct extraction whose output happens to be the same
-as the previous value, the programmer must resort to implementation tricks.
-Consider the following example:
-</p>
-<pre>
-    int i = old_i;
-    cin &gt;&gt; i;
-    if (cin.fail())
-        // can the value of i be trusted?
-        // what does it mean if i == old_i?
-        // ...
-</pre>
-<p>
-Last but not least, the current behvaior is not only confusing to the casual
-reader, but it has also been confusing to some book authors. Besides
-Stroustrup's book, other books (e.g. "Standard C++ IOStreams and Locales" by
-Langer and Kreft) are describing the same mistaken assumption. Although books
-are not to be used instead of the standard reference, the readers of these
-books, as well as the people who are generally familiar to <code>scanf</code>,
-are even more likely to misinterpret the standard, and expect the input items
-to remain intact when a failure occurs.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals]:
-</p>
-
-<blockquote>
-<p>
-<b>Stage 3:</b> The result of stage 2 processing can be one of
-</p>
-<ul>
-<li>A sequence of <code>chars</code> has been accumulated in stage 2 that is converted (according to the rules of <code>scanf</code>) to a value of the type of <code><i>val</i></code>.  <del>This value is stored in <code><i>val</i></code> and <code>ios_base::goodbit</code> is stored in <code><i>err</i></code>.</del></li>
-
-<li>The sequence of <code>chars</code> accumulated in stage 2 would have caused <code>scanf</code> to report an input failure. <code>ios_base::failbit</code> is assigned to <code><i>err</i></code>.</li>
-</ul>
-<p>
-<ins>In the first case,</ins> <del>D</del><ins>d</ins>igit grouping is checked.  That is, the positions of discarded separators is examined for consistency with <code>use_facet&lt;numpunct&lt;charT&gt; &gt;(<i>loc</i>).grouping()</code>.  If they are not consistent then <code>ios_base::failbit</code> is assigned to <code><i>err</i></code>.  <ins>Otherwise, the value that was converted in stage 2 is stored in <code><i>val</i></code> and <code>ios_base::goodbit</code> is stored in <code><i>err</i></code>.</ins>
-</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-post-Toronto: Changed from New to NAD at the request of the author.  The preferred solution of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2327.pdf">N2327</a>
-makes this resolution obsolete.
-</p>
-
-
-
-
-<hr>
-<h3><a name="663"></a>663. Complexity Requirements</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.5.1.4 [structure.specifications] para 5 says
-</p>
-
-<blockquote><p>
--5- Complexity requirements specified in the library
-clauses are upper bounds, and implementations that provide better
-complexity guarantees satisfy the requirements.
-</p></blockquote>
-
-<p>
-The following
-objection has been raised:
-</p>
-
-<blockquote><p>
-The library clauses suggest general
-guidelines regarding complexity, but we have been unable to discover
-any absolute hard-and-fast formulae for these requirements. Unless
-or until the Library group standardizes specific hard-and-fast
-formulae, we regard all the complexity requirements as subject to a
-"fudge factor" without any intrinsic upper bound.
-</p></blockquote>
-
-<p>
-[Plum ref
-_23213Y31 etc]
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-Kona (2007): No specific instances of underspecification have been
-identified, and big-O notation always involves constant factors.
-</p>
-
-
-
-
-<hr>
-<h3><a name="667"></a>667. <tt>money_get</tt>'s widened minus sign</h3>
-<p><b>Section:</b> 22.4.6.1.2 [locale.money.get.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.money.get.virtuals">issues</a> in [locale.money.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.6.1.2 [locale.money.get.virtuals], para 1 says:
-</p>
-
-<blockquote><p>
-The result is returned as an integral value
-stored in <tt>units</tt> or as a sequence of digits possibly preceded by a
-minus sign (as produced by <tt>ct.widen(c)</tt> where <tt>c</tt> is '-' or in the range
-from '0' through '9', inclusive) stored in <tt>digits</tt>.
-</p></blockquote>
-
-<p>
-The following
-objection has been raised:
-</p>
-
-<blockquote><p>
-Some implementations interpret this to mean that a facet derived from
-<tt>ctype&lt;wchar_t&gt;</tt> can provide its own member <tt>do_widen(char)</tt>
-which produces e.g. <tt>L'@'</tt> for the "widened" minus sign, and that the
-<tt>'@'</tt> symbol will appear in the resulting sequence of digits.  Other
-implementations have assumed that one or more places in the standard permit the
-implementation to "hard-wire" <tt>L'-'</tt> as the "widened" minus sign.  Are
-both interpretations permissible, or only  one?
-</p></blockquote>
-
-<p>
-[Plum ref _222612Y14]
-</p>
-
-<p>
-Furthermore: if <tt>ct.widen('9')</tt> produces <tt>L'X'</tt> (a non-digit), does a
-parse fail if a <tt>'9'</tt> appears in the subject string? [Plum ref _22263Y33]
-</p>
-
-<p><i>[
-Kona (2007): Bill and Dietmar to provide proposed wording.
-]</i></p>
-
-
-<p><i>[
-post Bellevue: Bill adds:
-]</i></p>
-
-
-<blockquote><p>
-The Standard is clear that the minus sign stored in <tt>digits</tt> is <tt>ct.widen('-')</tt>.
-The subject string must contain characters <tt>c</tt> in the set <tt>[-0123456789]</tt>
-which are translated by <tt>ct.widen(c)</tt> calls before being stored in <tt>digits</tt>;
-the widened characters are not relevant to the parsing of the subject string.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with Bill's comment above,
-in line with the first of the interpretations offered in the issue.
-Move to NAD.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="668"></a>668. <tt>money_get</tt>'s empty minus sign</h3>
-<p><b>Section:</b> 22.4.6.1.2 [locale.money.get.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.money.get.virtuals">issues</a> in [locale.money.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.6.1.2 [locale.money.get.virtuals], para 3 says:
-</p>
-
-<blockquote><p>
-If <tt>pos</tt> or <tt>neg</tt> is empty, the sign component is
-optional, and if no sign is detected, the result is given the sign
-that corresponds to the source of the empty string.
-</p></blockquote>
-
-<p>
-The following objection has been raised:
-</p>
-
-<blockquote><p>
-A <tt>negative_sign</tt> of "" means "there is no
-way to write a negative sign" not "any null sequence is a negative
-sign, so it's always there when you look for it".
-</p></blockquote>
-
-<p>
-[Plum ref _222612Y32]
-</p>
-
-<p><i>[
-Kona (2007): Bill to provide proposed wording and interpretation of existing wording.
-]</i></p>
-
-
-<p>
-Related to <a href="lwg-closed.html#669">669</a>.
-</p>
-
-<p><i>[
-2009-05-17 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I disagree that a <tt>negative_sign</tt> of "" means "there is no way to
-write a negative sign".  The meaning requires the sentences of 22.4.6.1.2 [locale.money.get.virtuals] p3 following that quoted above to be
-taken into account:
-</p>
-
-<blockquote><p>
--3- ... If <tt>pos</tt> or <tt>neg</tt> is empty, the sign component is
-optional, and if no sign is detected, the result is given the sign that
-corresponds to the source of the empty string. Otherwise, the character
-in the indicated position must match the first character of <tt>pos</tt>
-or <tt>neg</tt>, and the result is given the corresponding sign. If the
-first character of <tt>pos</tt> is equal to the first character of
-<tt>neg</tt>, or if both strings are empty, the result is given a
-positive sign.
-</p></blockquote>
-
-<p>
-So a <tt>negative_sign</tt> of "" means "there is no way to write a
-negative sign" only when <tt>positive_sign</tt> is also "".  However
-when <tt>negative_sign</tt> is "" and <tt>postive_sign.size() &gt;
-0</tt>, then one writes a negative value by not writing the
-<tt>postive_sign</tt> in the position indicated by
-<tt>money_base::sign</tt>.
-For example:
-</p>
-
-<blockquote><pre>
-pattern = {symbol, sign, value, none}
-positive_sign = "+"
-negative_sign = ""
-$123   // a negative value, using optional sign
-$+123  // a positive value
-$-123  // a parse error
-</pre></blockquote>
-
-<p>
-And:
-</p>
-
-<blockquote><pre>
-pattern = {symbol, sign, value, none}
-positive_sign = ""
-negative_sign = ""
-$123   // a positive value, no sign possible
-$+123  // a parse error
-$-123  // a parse error
-</pre></blockquote>
-
-
-<p>
-And (regarding <a href="lwg-closed.html#669">669</a>):
-</p>
-
-<blockquote><pre>
-pattern = {symbol, sign, value, none}
-positive_sign = "-"
-negative_sign = "-"
-$123   // a parse error, sign is mandatory
-$+123  // a parse error
-$-123  // a positive value
-</pre></blockquote>
-
-
-<p>
-The text seems both unambiguous and clear to me.  I recommend NAD for
-both this issue and <a href="lwg-closed.html#669">669</a>.  However I would have no
-objection to adding examples such as those above.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-This discussion applies equally to issue <a href="lwg-closed.html#669">669</a> (q.v.).
-Howard has added examples above,
-and recommends either NAD or a resolution that adds his (or similar) examples
-to the Working Paper.
-</p>
-<p>
-Alan would like to rewrite paragraph 3.
-</p>
-<p>
-We recommend moving to NAD.
-Anyone who feels strongly about adding the examples
-is invited to submit corresponding wording.
-We further recommend issue <a href="lwg-closed.html#669">669</a> be handled identically.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-14 Alan reopens with improved wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-No consensus for closing as NAD.  Leave in Review.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD.  Agreed that the original assessment as NAD was correct.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.4.6.1.2 [locale.money.get.virtuals] p3:
-</p>
-
-<blockquote><p>
--3- <del>If the first character (if any) in the string pos returned by
-<tt>mp.positive_sign()</tt> or the string <tt>neg</tt> returned by
-<tt>mp.negative_sign()</tt> is recognized in the position indicated by
-sign in the format pattern, it is consumed and any remaining characters
-in the string are required after all the other format components.
-[<i>Example:</i> If <tt>showbase</tt> is off, then for a <tt>neg</tt>
-value of "()" and a currency symbol of "L", in "(100 L)" the "L" is
-consumed; but if <tt>neg</tt> is "-", the "L" in "-100 L" is not
-consumed. -- <i>end example</i>] If <tt>pos</tt> or <tt>neg</tt> is
-empty, the sign component is optional, and if no sign is detected, the
-result is given the sign that corresponds to the source of the empty
-string. Otherwise, the character in the indicated position must match
-the first character of <tt>pos</tt> or <tt>neg</tt>, and the result is
-given the corresponding sign. If the first character of <tt>pos</tt> is
-equal to the first character of <tt>neg</tt>, or if both strings are
-empty, the result is given a positive sign.</del>
-
-<ins>The sign pattern strings <tt>pos</tt> and <tt>neg</tt> are returned by
-<tt>mp.positive_sign()</tt> and <tt>mp.negative_sign()</tt> respectively. A sign pattern
-is matched if its first character is recognized in <tt>s</tt> in the position
-indicated by <tt>sign</tt> in the format pattern, or if the pattern is empty and
-there is no sign recognized in <tt>s</tt>. A match is required to occur. If both
-patterns are matched, the result is given a positive sign, otherwise the
-result is given the sign corresponding to the matched pattern. 
-If the pattern contains more than one character, the characters after the first 
-must be matched in <tt>s</tt> after all other format components. 
-If any sign
-characters are matched, <tt>s</tt> is consumed up to and including those characters.
-[<i>Example:</i> If <tt>showbase</tt> is off, then for a <tt>neg</tt>
-value of "<tt>()</tt>" and a currency symbol of "<tt>L</tt>", in
-"<tt>(100 L)</tt>" the entire string is consumed; but for a <tt>neg</tt>
-value of "<tt>-</tt>", in "<tt>-100 L</tt>", the string is consumed
-through the second "<tt>0</tt>" (the space and "<tt>L</tt>" are not consumed). &mdash; <i>end
-example</i>] </ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="669"></a>669. Equivalent postive and negative signs in <tt>money_get</tt></h3>
-<p><b>Section:</b> 22.4.6.1.2 [locale.money.get.virtuals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.money.get.virtuals">issues</a> in [locale.money.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.6.1.2 [locale.money.get.virtuals], para 3 sentence 4 says:
-</p>
-
-<blockquote><p>
-If the first character of <tt>pos</tt> is equal to the first character of <tt>neg</tt>, 
-or if both strings are empty, the result is given a positive sign.
-</p></blockquote>
-
-<p>
-One interpretation is that an input sequence must match either the
-positive pattern or the negative pattern, and then in either event it
-is interpreted as positive.  The following objections has been raised:
-</p>
-
-<blockquote><p>
-The input can successfully match only a positive sign, so the negative
-pattern is an unsuccessful match.
-</p></blockquote>
-
-<p>
-[Plum ref _222612Y34, 222612Y51b]
-</p>
-
-<p><i>[
-Bill to provide proposed wording and interpretation of existing wording.
-]</i></p>
-
-
-<p><i>[
-2009-05-17 See Howard's comments in related issue <a href="lwg-closed.html#668">668</a>.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-This discussion applies equally to issue <a href="lwg-closed.html#668">668</a> (q.v.).
-Howard has added examples there,
-and recommends either NAD or a resolution that adds his (or similar) examples
-to the Working Paper.
-</p>
-<p>
-We recommend moving to NAD.
-Anyone who feels strongly about adding the examples
-is invited to submit corresponding wording.
-We further recommend issue <a href="lwg-closed.html#668">668</a> be handled identically.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="670"></a>670. <tt>money_base::pattern</tt> and <tt>space</tt></h3>
-<p><b>Section:</b> 22.4.6.3 [locale.moneypunct] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#836">836</a></p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.6.3 [locale.moneypunct], para 2 says:
-</p>
-
-<blockquote><p>
-The value <tt>space</tt> indicates that at least one space is required at 
-that position.
-</p></blockquote>
-
-<p>
-The following objection has been raised:
-</p>
-
-<blockquote><p>
-Whitespace is optional when matching space. (See 22.4.6.1.2 [locale.money.get.virtuals], para 2.)
-</p></blockquote>
-
-<p>
-[Plum ref _22263Y22]
-</p>
-
-<p><i>[
-Kona (2007): Bill to provide proposed wording. We agree that C++03 is
-ambiguous, and that we want C++0X to say "space" means 0 or more
-whitespace characters on input.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="683"></a>683. regex_token_iterator summary error</h3>
-<p><b>Section:</b> 28.12.2 [re.tokiter] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Eric Niebler <b>Opened:</b> 2007-06-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.tokiter">issues</a> in [re.tokiter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.12.2 [re.tokiter], p3 says:
-</p>
-<blockquote>
-<p>
-After it is constructed, the iterator finds and stores a value
-<tt>match_results&lt;BidirectionalIterator&gt;</tt> position and sets the
-internal count <tt>N</tt> to zero.
-</p>
-</blockquote>
-
-<p>
-Should read:
-</p>
-
-<blockquote>
-<p>
-After it is constructed, the iterator finds and stores a value
-<tt><del>match_results</del><ins>regex_iterator</ins>&lt;BidirectionalIterator<ins>, charT, traits</ins>&gt;</tt>
-position and sets the internal count <tt>N</tt> to zero.
-</p>
-</blockquote>
-
-<p><i>[
-John adds:
-]</i></p>
-
-
-<blockquote><p>
-Yep, looks like a typo/administrative fix to me.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="684"></a>684. Unclear which members of match_results should be used in comparison</h3>
-<p><b>Section:</b> 28.10 [re.results] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Nozomu Katoo <b>Opened:</b> 2007-05-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results">issues</a> in [re.results].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 28.4 [re.syn] of N2284, two template functions 
-are declared here: 
-</p>
-<blockquote><pre>
-// 28.10, class template match_results: 
-  &lt;<i>snip</i>&gt;
-// match_results comparisons 
-  template &lt;class BidirectionalIterator, class Allocator&gt; 
-    bool operator== (const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m1, 
-                     const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m2); 
-  template &lt;class BidirectionalIterator, class Allocator&gt; 
-    bool operator!= (const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m1, 
-                     const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m2); 
-
-// 28.10.6, match_results swap:
-</pre></blockquote>
-
-<p>
-But the details of these two bool operator functions (i.e., which members of
-<tt>match_results</tt> should be used in comparison) are not described in any
-following sections.
-</p>
-
-<p><i>[
-John adds:
-]</i></p>
-
-
-<blockquote><p>
-That looks like a bug: <tt>operator==</tt> should return <tt>true</tt> only if
-the two objects refer to the same match - ie if one object was constructed as a
-copy of the other.
-</p></blockquote>
-
-<p><i>[
-Kona (2007): Bill and Pete to add minor wording to that proposed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2409.pdf">N2409</a>.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new section after 28.10.7 [re.results.swap], which reads:
-</p>
-<p>
-28.10.7 match_results non-member functions.
-</p>
-
-<blockquote>
-<pre>
-template&lt;class BidirectionalIterator, class Allocator&gt; 
-  bool operator==(const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m1, 
-                  const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m2);
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>true</tt> only if the two objects refer to the same match.
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-template&lt;class BidirectionalIterator, class Allocator&gt; 
-  bool operator!=(const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m1, 
-                  const match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m2);
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>!(m1 == m2)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-template&lt;class BidirectionalIterator, class Allocator&gt; 
-  void swap(match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m1, 
-            match_results&lt;BidirectionalIterator, Allocator&gt;&amp; m2);
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>m1.swap(m2)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-<p><i>[
-Bellevue:  Proposed wording now in WP.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="686"></a>686. <tt>unique_ptr</tt> and <tt>shared_ptr</tt> fail to specify non-convertibility to int for unspecified-bool-type</h3>
-<p><b>Section:</b> 20.8.1.2.4 [unique.ptr.single.observers], 20.8.2.2.5 [util.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2007-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard library uses the <tt>operator <i>unspecified-bool-type</i>() const</tt> idiom in
-five places. In three of those places (20.9.12.2.3 [func.wrap.func.cap], function capacity 
-for example) the returned value is constrained to disallow
-unintended conversions to int. The standardese is
-</p>
-<blockquote><p>
-The return type shall not be convertible to <tt>int</tt>.
-</p></blockquote>
-<p>
-This constraint is omitted for <tt>unique_ptr</tt> and <tt>shared_ptr</tt>. It should be added for those.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Close as NAD. Accepting paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2435.htm">N2435</a>
-makes it irrelevant.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-To the <i>Returns</i> paragraph for <tt>operator <i>unspecified-bool-type</i>()
-const</tt> of 20.8.1.2.4 [unique.ptr.single.observers] paragraph 11 and 20.8.2.2.5 [util.smartptr.shared.obs] paragraph 16, add the sentence:
-</p>
-<blockquote><p>
-The return type shall not be convertible to <tt>int</tt>.
-</p></blockquote>
-
-
-<p><i>[
-Kona (2007): Uncertain if <tt>nullptr</tt> will address this issue.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="690"></a>690. abs(long long) should return long long</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2007-06-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Quoting the latest draft (n2135), 26.8 [c.math]: 
-</p>
-
-<blockquote>
-<p>
-The added signatures are:
-</p>
-<blockquote><pre>
-long abs(long); // labs()
-long abs(long long); // llabs()
-</pre></blockquote>
-</blockquote>
-<p>
-Shouldn't <tt>abs(long long)</tt> have <tt>long long</tt> as return type?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.8 [c.math]: 
-</p>
-<blockquote><pre>
-<ins>long </ins>long abs(long long); // llabs()
-</pre></blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-Had already been fixed in the WP by the time the LWG reviewed this.
-</p>
-
-
-
-
-<hr>
-<h3><a name="701"></a>701. assoc laguerre poly's</h3>
-<p><b>Section:</b> TR1 5.2.1.1 [tr.num.sf.Lnm] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Christopher Crawford <b>Opened:</b> 2007-06-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I see that the definition the associated Laguerre
-polynomials TR1 5.2.1.1 [tr.num.sf.Lnm] has been corrected since
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1687.pdf">N1687</a>.
-However, the draft standard only specifies ranks of integer value <tt>m</tt>,
-while the associated Laguerre polynomials are actually valid for real
-values of <tt>m &gt; -1</tt>.  In the case of non-integer values of <tt>m</tt>, the
-definition  <tt><i>L</i><sub>n</sub><sup>(m)</sup> = (1/n!)e<sup>x</sup>x<sup>-m</sup> (d/dx)<sup>n</sup> (e<sup>-x</sup>x<sup>m+n</sup>)</tt>
-must be used, which also holds for integer values of <tt>m</tt>.  See
-Abramowitz &amp; Stegun, 22.11.6 for the general case, and 22.5.16-17 for
-the integer case.  In fact fractional values are most commonly used in
-physics, for example to <tt>m = +/- 1/2</tt> to describe the harmonic
-oscillator in 1 dimension, and <tt>1/2, 3/2, 5/2, ...</tt> in 3
-dimensions.
-</p>
-<p>
-If I am correct, the calculation of the more general case is no
-more difficult, and is in fact the function implemented in the GNU
-Scientific Library.  I would urge you to consider upgrading the 
-standard, either adding extra functions for real <tt>m</tt> or switching the
-current ones to <tt>double</tt>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We understand the issue, and have opted not to extend as recommended.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="702"></a>702. Restriction in associated Legendre functions</h3>
-<p><b>Section:</b> TR1 5.2.1.2 [tr.num.sf.Plm] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Christopher Crawford <b>Opened:</b> 2007-06-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-One other small thing, in TR1 5.2.1.2 [tr.num.sf.Plm], the restriction should  be
-<tt>|x| &lt;= 1</tt>, not <tt>x &gt;= 0</tt>.</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-The error has been corrected in the pending IS.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="707"></a>707. null pointer constant for <tt>exception_ptr</tt></h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2007-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-From the Toronto Core wiki:
-</p>
-
-<p>
-What do you mean by "null pointer constant"? How do you guarantee that
-<tt>exception_ptr() == 1</tt> doesn't work?  Do you even want to prevent that?
-What's the semantics?  What about <tt>void *p = 0; exception_ptr() == p</tt>?
-Maybe disallow those in the interface, but how do you do that with
-portable C++? Could specify just "make it work".
-</p>
-
-<p>
-Peter's response:
-</p>
-
-<p>
-null pointer constant as defined in 4.10 [conv.ptr]. Intent is "just make it
-work", can be implemented as assignment operator taking a unique pointer
-to member, as in the unspecified bool type idiom.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Original implementation was possible using the "unspecified-null-pointer" idiom, similar to unspecified-bool.
-</p>
-<p>
-Even simpler now with nullptr_t.
-</p>
-<p>
-NAD Rationale : null pointer constant is a perfectly defined term, and
-while API is clearly implementable there is no need to spell out
-implementation details.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="717"></a>717. Incomplete <tt>valarray::operator[]</tt> specification in [valarray.access]</h3>
-<p><b>Section:</b> 26.6.2.4 [valarray.access] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.access">issues</a> in [valarray.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Since the return type of <tt>valarray</tt>'s <tt>operator[] const</tt> overload has been
-changed to <tt>const T&amp;</tt> as described in <a href="lwg-defects.html#389">389</a> several paragraphs of
-the section 26.6.2.4 [valarray.access] are now
-incompletely
-specified, because many requirements and guarantees should now also
-apply to the const overload. Most notably, the address and reference
-guarantees should be extended to the const overload case.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.6.2.4 [valarray.access]:
-</p>
-
-<blockquote>
-<p>
--1- <del>When applied to a constant array, the subscript operator returns a
-reference to the corresponding element of the array. When applied to a
-non-constant array, t</del><ins>T</ins>he subscript operator returns a
-reference to the corresponding element of the array.
-</p>
-
-<p>
--3- The expression <tt>&amp;a[i+j] == &amp;a[i] + j</tt> evaluates as <tt>true</tt> for all <tt>size_t i</tt>
-and <tt>size_t j</tt> such that <tt>i+j</tt> is less 
-than the length of the <del>non-constant</del> array <tt>a</tt>.
-</p>
-
-<p>
--4- Likewise, the expression <tt>&amp;a[i] != &amp;b[j]</tt> evaluates
-as <tt>true</tt> for any two <del>non-constant</del> arrays <tt>a</tt> and
-<tt>b</tt> and for any <tt>size_t i</tt> and <tt>size_t j</tt> such that
-<tt>i</tt> is less than the length of <tt>a</tt> and <tt>j</tt> is less
-than the length of <tt>b</tt>. This property indicates an absence of
-aliasing and may be used to advantage by optimizing
-compilers.<sup>281)</sup>
-</p>
-
-<p>
--5- The reference returned by the subscript operator for a<ins>n</ins> <del>non-constant</del> array is guaranteed to be valid until
-the member function <tt>resize(size_t, T)</tt> (26.5.2.7) is called for that array or until the lifetime 
-of that array ends, whichever happens first.
-</p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="718"></a>718. <tt>basic_string</tt> is not a sequence</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 21.4 [basic.string]/3 states:
-</p>
-
-<blockquote>
-<p>
-The class template <tt>basic_string</tt> conforms to the requirements for a 
-Sequence (23.1.1) and for a Reversible Container (23.1).
-</p>
-</blockquote>
-
-<p>
-First of all, 23.2.3 [sequence.reqmts] is no longer "Sequence" but "Sequence container". 
-Secondly, after the resent changes to containers (<tt>emplace</tt>, <tt>push_back</tt>, 
-<tt>const_iterator</tt> parameters to <tt>insert</tt> and <tt>erase</tt>), <tt>basic_string</tt> is not 
-even close to conform to the current requirements.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<ul>
-<li>emplace, for example, may not make sense for strings. Is also likely suboptimal</li>
-<li>with concepts do we need to maintain string as sequence container?</li>
-<li>One approach might be to say something like: string is a sequence except it doesn't have these functions</li>
-</ul>
-<ul>
-<li>basic_string already has push_back</li>
-<li>const_iterator parameters to insert and erase should be added to basic_string</li>
-<li>this leaves emplace to handle -- we have the following options:
-<ul>
-<li>option 1: add it to string even though it's optional</li>
-<li>option 2: make emplace optional to sequences (move from table 89 to 90)</li>
-<li>option 3: say string not sequence (the proposal),</li>
-<li>option 4: add an exception to basic string wording.</li>
-</ul>
-</li>
-</ul>
-<p>General consensus is to suggest option 2.</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD Editorial
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove this sentence, in recognition of the fact that <tt>basic_string</tt> is 
-not just a <tt>vector</tt>-light for literal types, but something quite 
-different, a string abstraction in its own right.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="721"></a>721. <tt>wstring_convert</tt> inconsistensies</h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 3 says that the <tt>Codecvt</tt> template parameter shall meet the 
-requirements of <tt>std::codecvt</tt>, even though <tt>std::codecvt</tt> itself cannot 
-be used (because of a protected destructor).
-</p>
-
-<p>
-How are we going to explain this code to beginning programmers?
-</p>
-
-<blockquote><pre>
-template&lt;class I, class E, class S&gt;
-struct codecvt : std::codecvt&lt;I, E, S&gt;
-{
-    ~codecvt()
-    { }
-};
-
-void main()
-{
-    std::wstring_convert&lt;codecvt&lt;wchar_t, char, std::mbstate_t&gt; &gt; compiles_ok;
-    
-    std::wstring_convert&lt;std::codecvt&lt;wchar_t, char, std::mbstate_t&gt; &gt;   not_ok;
-}
-</pre></blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Bill will propose a resolution.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-codecvt isn't intended for beginning programmers. This is a regrettable
-consequence of the original design of the facet.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="725"></a>725. Optional sequence container requirements column label</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2007-09-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 90: (Optional sequence container operations) states the
-"assertion note pre/post-condition" of <tt>operator[]</tt> to be
-</p>
-
-<blockquote><pre>
-*(a.begin() + n)
-</pre></blockquote>
-
-<p>
-Surely that's meant to be "operational semantics?"
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<blockquote>
-<table border="1">
-<caption>Table 90: Optional sequence container operations</caption>
-<tr>
-<th>expression</th> <th>return type</th> <th><del>assertion/note<br/>pre/post-condition</del><br/> <ins>operational semantics</ins></th> <th>container</th>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="726"></a>726. Missing <tt>regex_replace()</tt> overloads</h3>
-<p><b>Section:</b> 28.11.4 [re.alg.replace] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2007-09-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.alg.replace">issues</a> in [re.alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Two overloads of <tt>regex_replace()</tt> are currently provided:
-</p>
-
-<blockquote><pre>
-template &lt;class OutputIterator, class BidirectionalIterator, 
-    class traits, class charT&gt; 
-  OutputIterator 
-  regex_replace(OutputIterator out, 
-                BidirectionalIterator first, BidirectionalIterator last, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const basic_string&lt;charT&gt;&amp; fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);
- 
-template &lt;class traits, class charT&gt; 
-  basic_string&lt;charT&gt; 
-  regex_replace(const basic_string&lt;charT&gt;&amp; s, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const basic_string&lt;charT&gt;&amp; fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);
-</pre></blockquote>
-
-<ol>
-<li>Overloads taking <tt>const charT *</tt> are provided for <tt>regex_match()</tt> and
-<tt>regex_search()</tt>, but not <tt>regex_replace()</tt>.  This is inconsistent.</li>
-<li>
-<p>The absence of <tt>const charT *</tt> overloads prevents ordinary-looking code from compiling, such as:</p>
-
-<blockquote><pre>
-const string s("kitten");
-const regex r("en");
-cout &lt;&lt; regex_replace(s, r, "y") &lt;&lt; endl;
-</pre></blockquote>
-
-<p>
-The compiler error message will be something like "could not deduce
-template argument for 'const std::basic_string&lt;_Elem&gt; &amp;' from 'const
-char[1]'".
-</p>
-
-<p>
-Users expect that anything taking a <tt>basic_string&lt;charT&gt;</tt> can also take a
-<tt>const charT *</tt>.  In their own code, when they write a function taking
-<tt>std::string</tt> (or <tt>std::wstring</tt>), they can pass a <tt>const char *</tt> (or <tt>const
-wchar_t *</tt>), thanks to <tt>basic_string</tt>'s implicit constructor.  Because the
-regex algorithms are templated on <tt>charT</tt>, they can't rely on
-<tt>basic_string</tt>'s implicit constructor (as the compiler error message
-indicates, template argument deduction fails first).
-</p>
-
-<p>
-If a user figures out what the compiler error message means, workarounds
-are available - but they are all verbose.  Explicit template arguments
-could be given to <tt>regex_replace()</tt>, allowing <tt>basic_string</tt>'s implicit
-constructor to be invoked - but <tt>charT</tt> is the last template argument, not
-the first, so this would be extremely verbose.  Therefore, constructing
-a <tt>basic_string</tt> from each C string is the simplest workaround.
-</p>
-</li>
-
-<li>
-There is an efficiency consideration: constructing <tt>basic_string</tt>s can
-impose performance costs that could be avoided by a library
-implementation taking C strings and dealing with them directly. 
-(Currently, for replacement sources, C strings can be converted into
-iterator pairs at the cost of verbosity, but for format strings, there
-is no way to avoid constructing a <tt>basic_string</tt>.)
-</li>
-</ol>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-We note that Boost already has these overloads. However, the proposed
-wording is provided only for 28.11.4 [re.alg.replace]; wording is needed for the synopsis
-as well. We also note that this has impact on <tt>match_results::format</tt>,
-which may require further overloads.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Daniel to tweak for us.
-</p></blockquote>
-
-<p><i>[
-2009-07-25 Daniel tweaks both this issue and <a href="lwg-defects.html#727">727</a>.
-]</i></p>
-
-
-<blockquote>
-<p>
-This is solved by the proposed resolution of <a href="lwg-defects.html#727">727</a>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open. Though we believe this is solved by the proposed resolution
-to <a href="lwg-defects.html#727">727</a>.
-</p></blockquote>
-
-<p><i>[
-2010-01-27 Moved to Tentatively NAD after 5 positive votes on c++std-lib. 
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="lwg-defects.html#727">727</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Provide additional overloads for <tt>regex_replace()</tt>: one additional
-overload of the iterator-based form (taking <tt>const charT* fmt</tt>), and three
-additional overloads of the convenience form (one taking <tt>const charT*
-str</tt>, another taking <tt>const charT* fmt</tt>, and the third taking both <tt>const
-charT* str</tt> and <tt>const charT* fmt</tt>).  28.11.4 [re.alg.replace]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class OutputIterator, class BidirectionalIterator, 
-    class traits, class charT&gt; 
-  OutputIterator 
-  regex_replace(OutputIterator out, 
-                BidirectionalIterator first, BidirectionalIterator last, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const basic_string&lt;charT&gt;&amp; fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);
-
-<ins>template &lt;class OutputIterator, class BidirectionalIterator, 
-    class traits, class charT&gt; 
-  OutputIterator 
-  regex_replace(OutputIterator out, 
-                BidirectionalIterator first, BidirectionalIterator last, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const charT* fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);</ins>
-</pre>
-<p>...</p>
-<pre>
-template &lt;class traits, class charT&gt; 
-  basic_string&lt;charT&gt; 
-  regex_replace(const basic_string&lt;charT&gt;&amp; s, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const basic_string&lt;charT&gt;&amp; fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);
-
-<ins>template &lt;class traits, class charT&gt; 
-  basic_string&lt;charT&gt; 
-  regex_replace(const basic_string&lt;charT&gt;&amp; s, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const charT* fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);</ins>
-
-<ins>template &lt;class traits, class charT&gt; 
-  basic_string&lt;charT&gt; 
-  regex_replace(const charT* s, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const basic_string&lt;charT&gt;&amp; fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);</ins>
-
-<ins>template &lt;class traits, class charT&gt; 
-  basic_string&lt;charT&gt; 
-  regex_replace(const charT* s, 
-                const basic_regex&lt;charT, traits&gt;&amp; e, 
-                const charT* fmt, 
-                regex_constants::match_flag_type flags = 
-                  regex_constants::match_default);</ins>
-</pre>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="729"></a>729. Problem in [rand.req.eng]/3</h3>
-<p><b>Section:</b> 26.5.1.4 [rand.req.eng] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.eng">issues</a> in [rand.req.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The 3rd table row in 26.5.1.4 [rand.req.eng]/3 requires random number engines to accept any 
-arithmetic type as a seed, which is then casted to the engine's <tt>result_type</tt> and subsequently 
-used for seeding the state of the engine. The requirement stated as "Creates an engine with 
-initial state determined by <tt>static_cast&lt;X::result_type&gt;(s)</tt>" forces random number engines 
-to either use a seeding method that completely depends on the <tt>result_type</tt> (see the discussion 
-of seeding for the <tt>mersenne_twister_engine</tt> in point T2 above) or at least to throw away "bits 
-of randomness" in the seed value if the <tt>result_type</tt> is smaller than the seed type. This seems 
-to be inappropriate for many modern random number generators, in particular F2-linear or 
-cryptographic ones, which operate on an internal bit array that in principle is independent of the 
-type of numbers returned.
-</p>
-
-<p>
-<b>Possible resolution:</b> I propose to change the wording to a version similar to "Creates an 
-engine with initial state determined by <tt>static_cast&lt;UintType&gt;(s)</tt>, where <tt>UintType</tt> is an 
-implementation specific unsigned integer type."
-</p>
-
-<p>
-Additionally, the definition of s in 26.5.1.4 [rand.req.eng]/1 c) could be restricted to unsigned integer types.
-</p>
-
-<p>
-Similarly, the type of the seed in 26.5.1.5 [rand.req.adapt]/3 e) could be left unspecified.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for further discussion.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-In reply to the discussion in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-regarding this issue:
-</p>
-<p>
-The descriptions of all engines and engine adaptors given in sections
-26.5.3 [rand.eng] and 26.5.4 [rand.adapt] already specify the concrete
-types of the integer arguments for seeding. Hence, relaxing the general
-requirement in 26.5.1.4 [rand.req.eng] would not affect portability and
-reproducibility of the standard library. Furthermore, it is not clear to
-me what exactly the guarantee "with initial state determined by
-<tt>static_cast&lt;X::result_type&gt;(s)</tt>" is useful for. On the other hand,
-relaxing the requirement would allow developers to implement  other
-random number engines that do not have to cast all arithmetic seed
-arguments to their result_types.
-</p>
-</blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Propose close NAD for the reasons given in N2424.
-</p></blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for further discussion.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Change row 3 of table 105 "Random number engine requirements" in 26.5.1.4 [rand.req.eng]/3
-</p>
-
-<blockquote><p>
-Creates an engine with initial state determined by
-<tt><del>static_cast&lt;X::result_type&gt;(</del>s<del>)</del></tt>
-</p></blockquote>
-
-<p>
-Similarly, change 26.5.1.5 [rand.req.adapt]/3 e)
-</p>
-
-<blockquote><p>
-When <tt>X::X</tt> is invoked with <del>an <tt>X::result_type</tt></del> value <tt>s</tt>
-<ins>of arithmetic type (3.9.1)</ins>, ...
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="730"></a>730. Comment on [rand.req.adapt]/3 e)</h3>
-<p><b>Section:</b> 26.5.1.5 [rand.req.adapt] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If an engine adaptor is invoked with an argument of type <tt>seed_seq</tt>, then all base 
-engines are specified to be seeded with this <tt>seed_seq</tt>. As <tt>seed_seq</tt>'s randomization method is 
-qualified as constant, this procedure will ef fectively initialize all base engines with the same seed 
-(though the resulting state might still dif fer to a certain degree if the engines are of different types). 
-It is not clear whether this mode of operation is in general appropriate, hence -- as far as the 
-stated requirements are of general nature and not just specific to the engine adaptors provided by 
-the library -- it might be better to leave the behaviour unspecified, since the current definition of 
-<tt>seed_seq</tt> does not allow for a generally satisfying specification.
-</p>
-
-<p>
-<b>Posssible resolution:</b> [As above]
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for further discussion.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Close NAD for the reasons given in N2424.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="731"></a>731. proposal for a customizable <tt>seed_seq</tt></h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The proper way to seed random number engines seems to be the most frequently 
-discussed issue of the 26.5 [rand] proposal. While the new <tt>seed_seq</tt> approach is already rather 
-general and probably sufficient for most situations, it is unlikely to be optimal in every case (one 
-problem was pointed out in point T5 above). In some situations it might, for instance, be better to 
-seed the state with a cryptographic generator. 
-</p>
-<p>
-In my opinion this is a pretty strong argument for extending the standard with a simple facility to 
-customize the seeding procedure. This could, for example, be done with the following minimal 
-changes:
-</p>
-
-<p>
-<b>Possible resolution:</b>
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-Turn the interface specification of 26.5.7.1 [rand.util.seedseq]/2 into a "SeedSeq" requirement, where the 
-exact behaviour of the constructors and the randomize method are left unspecified and where the
-const qualification for randomize is removed. Classes implementing this interface are additionally 
-required to specialize the traits class in c).
-</li>
-<li>
-Provide the class <tt>seed_seq</tt> as a default implementation of the SeedSeq interface.
-</li>
-<li>
-<p>
-Supplement the <tt>seed_seq</tt> with a traits class
-</p>
-<blockquote><pre>
-template &lt;typename T&gt; 
-struct is_seed_seq { static const bool value = false; }
-</pre></blockquote>
-<p>and the specialization</p>
-<blockquote><pre>
-template &lt;&gt; 
-struct is_seed_seq&lt;seed_seq&gt; { static const bool value = true; }
-</pre></blockquote>
-<p>which users can supplement with further specializations.</p>
-</li>
-<li>
-Change 26.5.1.4 [rand.req.eng]/1 d) to "q is an lvalue of a type that fulfils the SeedSeq requirements", and 
-modify the constructors and seed methods in 26.5.3 [rand.eng] appropriately (the actual implementation 
-could be done using the SFINAE technique).
-</li>
-</ol>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-See N2424. Close NAD but note that "conceptizing" the library may cause
-this problem to be solved by that route.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="733"></a>733. Comment on [rand.req.dist]/9</h3>
-<p><b>Section:</b> 26.5.1.6 [rand.req.dist] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirement "P shall have a declaration of the form <tt>typedef X distribution_- 
-type</tt>" effectively makes the use of inheritance for implementing distributions very inconvenient, 
-because the child of a distribution class in general will not satisfy this requirement. In my opinion 
-the benefits of having a typedef in the parameter class pointing back to the distribution class are 
-not worth the hassle this requirement causes. [In my code base I never made use of the nested 
-typedef but on several occasions could have profited from being able to use simple inheritance for 
-the implementation of a distribution class.]
-</p>
-
-<p>
-<b>Proposed resolution:</b> I propose to drop this requirement.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Close NAD for the reasons given in N2424. In practice it is not inconvenient to meet these requirements.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="735"></a>735. Unfortunate naming</h3>
-<p><b>Section:</b> 26.5.8.3.2 [rand.dist.bern.bin], 26.5.8.3.4 [rand.dist.bern.negbin] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In my opinion the choice of name for the <tt>t</tt> parameter of the <tt>binomial_distribution</tt>
-is very unfortunate. In virtually every internet reference, book and software implementation 
-this parameter is called <tt>n</tt> instead, see for example Wikipedia, Mathworld, Evans et al. (1993) 
-Statistical Distributions, 2nd E., Wiley, p. 38, the R statistical computing language, p. 926, 
-Mathematica and Matlab.
-</p>
-
-<p>
-Similarly, the choice of <tt>k</tt> for the parameter of the negative binomial distributions is rather unusual. 
-The most common choice for the negative binomial distribution seems to be <tt>r</tt> instead.
-</p>
-
-<p>
-Choosing unusual names for the parameters causes confusion among users and makes the 
-interface unnecessarily inconvenient to use.
-</p>
-
-<p>
-<b>Possible resolution:</b> For these reasons, I propose to change the name of the respective parameters
-to <tt>n</tt> and <tt>r</tt>.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-In N2424. NAD It has been around for a while. It is hardly universal,
-there is prior art, and this would confuse people.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="736"></a>736. Comment on [rand.dist.samp.discrete]</h3>
-<p><b>Section:</b> 26.5.8.6.1 [rand.dist.samp.discrete] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.discrete">issues</a> in [rand.dist.samp.discrete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol style="list-style-type:lower-alpha">
-<li>
-The specification for <tt>discrete_distribution</tt> requires the member <tt>probabilities()</tt>
-to return a vector of <i>standardized</i> probabilities, which forces the implementation every time to 
-divide each probability by the sum of all probabilities, as the sum will in practice almost never be 
-exactly 1.0. This is unnecessarily inef ficient as the implementation would otherwise not need to 
-compute the standardized probabilities at all and could instead work with the non-standardized 
-probabilities and the sum. If there was no standardization the user would just get back the 
-probabilities that were previously supplied to the distribution object, which to me seems to be the 
-more obvious solution.
-</li>
-<li>
-The behaviour of <tt>discrete_distribution</tt> is not specified in case the number of given
-probabilities is larger than the maximum number representable by the IntType.
-</li>
-</ol>
-
-<p>
-<b>Possible resolution:</b> I propose to change the specification such that the non-standardized 
-probabilities need to be returned and that an additional requirement is included for the number 
-of probabilities to be smaller than the maximum of IntType.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-In reply to the discussion in 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-of this issue:
-</p>
-<p>
-Rescaled floating-point parameter vectors can not be expected to compare
-equal because of the limited precision of floating-point numbers.
-My proposal would at least guarantee that a parameter
-vector (of type double) passed into the distribution would compare equal
-with the one returned by the <tt>probabilities()</tt> method. Furthermore, I do
-not understand why "the changed requirement would lead to a significant
-increase in the amount of state in the distribution object". A typical
-implementation's state would increase by exactly one number: the sum of
-all probabilities. The textual representation for serialization would
-not need to grow at all. Finally, the proposed replacement "<tt>0 &lt; n &lt;=
-numeric_limits&lt;IntType&gt;::max() + 1</tt>" makes the implementation
-unnecessarily complicated, "<tt>0 &lt; n &lt;= numeric_limits&lt;IntType&gt;::max()</tt>"
-would be better.
-</p>
-</blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-In N2424. We agree with the observation and the proposed resolution to
-part b). We recommend the wording n &gt; 0 be replaced with 0 &lt; n
-numeric_limits::max() + 1. However, we disagree with part a), as it
-would interfere with the definition of parameters' equality. Further,
-the changed requirement would lead to a significant increase in the
-amount of state of the distribution object.
-</p>
-
-<p>
-As it stands now, it is convenient, and the changes proposed make it
-much less so.
-</p>
-
-<p>
-NAD. Part a the current behavior is desirable. Part b, any constructor
-can fail, but the rules under which it can fail do not need to be listed
-here.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-In 26.5.8.6.1 [rand.dist.samp.discrete]:
-</p>
-
-<p>
-Proposed wording a):
-</p>
-
-<blockquote>
-<p>
-Change in para. 2
-</p>
-
-<blockquote><p>
-Constructs a <tt>discrete_distribution</tt> object with <tt>n=1</tt> and <tt>p<sub>0</sub> <ins>= w<sub>0</sub></ins> = 1</tt>
-</p></blockquote>
-
-<p>
-and change in para. 5
-</p>
-
-<blockquote><p>
-<i>Returns:</i> A <tt>vector&lt;double&gt;</tt> whose <tt>size</tt> member returns <tt>n</tt> and whose
-<tt>operator[]</tt> member returns <del><tt>p<sub>k</sub></tt></del>
-<ins>the weight <tt>w<sub>k</sub></tt> as a double value</ins>
-when invoked with argument <tt>k</tt> for <tt>k = 0,
-..., n-1</tt>
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Proposed wording b):
-</p>
-
-<blockquote>
-<p>
-Change in para. 3:
-</p>
-
-<blockquote><p>
-If <tt>firstW == lastW</tt>, let the sequence <tt>w</tt> have length <tt>n = 1</tt> and consist
-of the single value <tt>w<sub>0</sub> = 1</tt>. Otherwise, <tt>[firstW,lastW)</tt> shall form a
-sequence <tt>w</tt> of length <tt>n <del>&gt; 0</del></tt> 
-<ins>such that <tt>0 &lt; n &lt;= numeric_limits&lt;IntType&gt;::max()</tt>,</ins>
-and <tt>*firstW</tt> shall yield a value <tt>w<sub>0</sub></tt>
-convertible to <tt>double</tt>. [<i>Note:</i> The values <tt>w<sub>k</sub></tt> are commonly known
-as the weights . <i>-- end note</i>]
-</p></blockquote>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="737"></a>737. Comment on [rand.dist.samp.pconst]</h3>
-<p><b>Section:</b> 26.5.8.6.2 [rand.dist.samp.pconst] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.pconst">issues</a> in [rand.dist.samp.pconst].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol style="list-style-type:lower-alpha">
-<li>
-The discussion in point T11 above regarding <tt>probabilities()</tt> similarly applies 
-to the method <tt>densities()</tt> of <tt>piecewise_constant_distribution</tt>.
-</li>
-<li>
-<p>
-The design of the constructor
-</p>
-<blockquote><pre>
-template &lt;class InputIteratorB, class InputIteratorW&gt; 
-piecewise_constant_distribution( InputIteratorB firstB, InputIteratorB lastB, 
-                                 InputIteratorW firstW);
-</pre></blockquote>
-<p>
-is unnecessarily unsafe, as there is no separate end-iterator given for the weights. I can't see 
-any performance or convenience reasons that would justify the risks inherent in such a function 
-interface, in particular the risk that input error might go unnoticed.
-</p>
-</li>
-</ol>
-
-<p>
-<b>Possible resolution:</b> I propose to add an <tt>InputIteratorW lastW</tt> argument to the interface.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-<blockquote><p>
-In reply to the discussion in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-I'd like to make the same comments as for <a href="lwg-closed.html#736">736</a>.
-</p></blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-In N2424. There is already precedent elsewhere in the library. Follows existing convention. NAD.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-In 26.5.8.6.2 [rand.dist.samp.pconst]:
-</p>
-
-<p>
-Proposed wording a)
-</p>
-
-<blockquote>
-<p>
-Change in para. 2
-</p>
-<blockquote><p>
-Constructs a <tt>piecewise_constant_distribution</tt> object with <tt>n = 1</tt>, <tt>p<sub>0</sub> <ins>= w<sub>0</sub></ins> = 1</tt>,
-<tt>b<sub>0</sub> = 0</tt>, and <tt>b<sub>1</sub> = 1</tt>
-</p></blockquote>
-
-<p>
-and change in para. 5
-</p>
-
-<blockquote><p>
-A <tt>vector&lt;result_type&gt;</tt> whose <tt>size</tt> member returns <tt>n</tt> and whose <tt>operator[]</tt>
-member returns <del><tt>p<sub>k</sub></tt></del>
-<ins>the weight <tt>w<sub>k</sub></tt> as a double value</ins>
-when invoked with argument <tt>k</tt> for <tt>k = 0, ..., n-1</tt>
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Proposed wording b)
-</p>
-
-<blockquote>
-<p>
-Change both occurrences of
-</p>
-
-<blockquote><pre>
-"piecewise_constant_distribution(InputIteratorB firstB, InputIteratorB lastB,
-                                 InputIteratorW firstW<ins>, InputIteratorW lastW</ins>)
-</pre></blockquote>
-
-<p>
-and change in para. 3
-</p>
-
-<blockquote><p>
-<del>the length of the sequence <tt>w</tt> starting from <tt>firstW</tt> shall be at least <tt>n</tt>,
-<tt>*firstW</tt> shall return a value <tt>w<sub>0</sub></tt> that is convertible to <tt>double</tt>, and any
-<tt>w<sub>k</sub></tt> for <tt>k &gt;= n</tt> shall be ignored by the distribution</del>
-<ins><tt>[firstW, lastW)</tt> shall form a sequence <tt>w</tt> of length <tt>n</tt> whose leading element
-<tt>w<sub>0</sub></tt> shall be convertible to <tt>double</tt></ins>
-</p></blockquote>
-
-</blockquote>
-
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="738"></a>738. Editorial issue in [rand.adapt.disc]/3</h3>
-<p><b>Section:</b> 26.5.4.2 [rand.adapt.disc] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.adapt.disc">issues</a> in [rand.adapt.disc].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Since the template parameter <tt>p</tt> and <tt>r</tt> are of type <tt>size_t</tt>, the member <tt>n</tt> in the class 
-exposition should have type <tt>size_t</tt>, too.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="739"></a>739. Defect in [rand.util.canonical]/3</h3>
-<p><b>Section:</b> 26.5.7.2 [rand.util.canonical] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.canonical">issues</a> in [rand.util.canonical].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The complexity of <tt>generate_canonical</tt> is specified to be "exactly k=max(1, ceil(b/log2 
-R)) invocations of g". This terms involves a logarithm that is not rounded and hence can not (in 
-general) be computed at compile time. As this function template is performance critical, I propose 
-to replace ceil(b/log2 R) with ceil(b/floor(log2 R)).
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for further discussion.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-In N2424. Close NAD as described there.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="741"></a>741. Const-incorrect <tt>get_deleter</tt> function for <tt>shared_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2.10 [util.smartptr.getdeleter] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-09-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.getdeleter">issues</a> in [util.smartptr.getdeleter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following issue was raised by Alf P. Steinbach in c.l.c++.mod:
-</p>
-
-<p>
-According to the recent draft N2369, both the header memory synopsis
-of 20.7 [memory] and 20.8.2.2.10 [util.smartptr.getdeleter] declare:
-</p>
-
-<blockquote><pre>
-template&lt;class D, class T&gt; D* get_deleter(shared_ptr&lt;T&gt; const&amp; p);
-</pre></blockquote>
-
-<p>
-This allows to retrieve the pointer to a mutable deleter of a <tt>const
-shared_ptr</tt> (if that owns one) and therefore contradicts the usual
-philosophy that associated functors are either read-only (e.g.
-<tt>key_comp</tt> or <tt>value_comp</tt> of <tt>std::map</tt>) or do at least reflect
-the mutability of the owner (as seen for the both overloads of
-<tt>unique_ptr::get_deleter</tt>).
-Even the next similar counter-part of <tt>get_deleter</tt> - the two
-overloads of <tt>function::target</tt> in the class template function
-synopsis 20.9.12.2 [func.wrap.func] or in 20.9.12.2.5 [func.wrap.func.targ] - do
-properly mirror the const-state of the owner.
-</p>
-
-<p><b>Possible proposed resolutions:</b></p>
-
-<p>
-Replace the declarations of <tt>get_deleter</tt> in the header <tt>&lt;memory&gt;</tt>
-synopsis of 20.7 [memory] and in 20.8.2.2.10 [util.smartptr.getdeleter] by one of the
-following alternatives (A) or (B):
-</p>
-
-<ol style="list-style-type:upper-alpha">
-<li>
-Provide <b>only</b> the immutable variant. This would reflect the
-current praxis of <tt>container::get_allocator()</tt>, <tt>map::key_comp()</tt>, or
-<tt>map::value_comp</tt>.
-
-<blockquote><pre>
-template&lt;class D, class T&gt; const D* get_deleter(shared_ptr&lt;T&gt; const&amp; p);
-</pre></blockquote>
-</li>
-<li>
-Just remove the function.
-</li>
-</ol>
-
-<p>
-Alberto Ganesh Barbati adds:
-</p>
-
-<ol style="list-style-type:upper-alpha" start="3">
-<li>
-<p>
-Replace it with two functions:
-</p>
-<blockquote><pre>
-template &lt;class D, class T&gt; D get_deleter(shared_ptr&lt;T&gt; const&amp;);
-template &lt;class D, class T&gt; bool has_deleter(shared_ptr&lt;T&gt; const&amp;);
-</pre></blockquote>
-
-<p>
-The first one would throw if <tt>D</tt> is the wrong type, while the latter would
-never throw. This approach would reflect the current praxis of
-<tt>use_facet/has_facet</tt>, with the twist of returning the deleter by value as
-<tt>container::get_allocator()</tt> do.
-</p>
-</li>
-</ol>
-
-<p>
-Peter Dimov adds:
-</p>
-
-<blockquote>
-<p>
-My favorite option is "not a defect". A, B and C break useful code.
-</p>
-</blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Concern this is similar to confusing "pointer to const" with "a constant pointer".
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="745"></a>745. copy_exception API slices.</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It could be I did not understand the design rationale, but I thought
-copy_exception would produce an exception_ptr to the most-derived (dynamic)
-type of the passed exception.  Instead it slices, which appears to be less
-useful, and a likely source of FAQ questions in the future.
-</p>
-<p>
-(Peter Dimov suggests NAD)
-</p>
-
-<p><i>[
-Bellevue: 
-]</i></p>
-
-
-<blockquote>
-<p>
-How could this be implemented in a way that the dynamic type is cloned?
-</p>
-<p>
-The feature is designed to create an exception_ptr from an object whose
-static type is identical to the dynamic type and thus there is no
-slicing involved.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="747"></a>747. We have 3 separate type traits to identify classes supporting no-throw operations</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We have 3 separate type traits to identify classes supporting no-throw
-operations, which are very useful when trying to provide exception safety
-guarantees.  However, I'm not entirely clear on what the current wording
-requires of a conforming implementation.  To quote from
-<tt>has_nothrow_default_constructor</tt>:
-</p>
-<blockquote><p>
-or <tt>T</tt> is a class type with a default constructor that is known not to throw
-any exceptions
-</p></blockquote>
-<p>
-What level of magic do we expect to deduce if this is known?
-</p>
-<p>
-E.g.
-</p>
-
-<blockquote><pre>
-struct test{
- int x;
- test() : x() {}
-};
-</pre></blockquote>
-<p>
-Should I expect a conforming compiler to 
- <tt>assert( has_nothrow_constructor&lt;test&gt;::value )</tt>
-</p>
-<p>
-Is this a QoI issue?
-</p>
-<p>
-Should I expect to 'know' only if-and-only-if there is an inline definition
-available?
-</p>
-<p>
-Should I never expect that to be true, and insist that the user supplies an
-empty throw spec if they want to assert the no-throw guarantee?
-</p>
-<p>
-It would be helpful to maybe have a footnote explaining what is required,
-but right now I don't know what to suggest putting in the footnote.
-</p>
-<p>
-(agreement since is that trivial ops and explicit no-throws are required.
-Open if QoI should be allowed to detect further)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-This looks like a QoI issue.
-In the case of trivial and nothrow it is known. Static analysis of the program is definitely into QoI.
-Move to OPEN. Need to talk to Core about this.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-This is QoI.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="748"></a>748. The is_abstract type trait is defined by reference to 10.4.</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I am trying to decide is a pure virtual function is a <i>necessary</i> as well as
-sufficient requirement to be classified as abstract?
-</p>
-<p>
-For instance, is the following (non-polymorphic) type considered abstract?
-</p>
-<blockquote><pre>
-struct abstract {
-protected:
- abstract(){}
- abstract( abstract const &amp; ) {}
- ~abstract() {}
-};
-</pre></blockquote>
-<p>
-(Suggested that this may be NAD, with an editorial fix-up from Pete on the
-core wording to make clear that abstract requires a pure virtual function)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Core has clarified that the definition abstract is adequate. Issue withdrawn by submitter. NAD.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="750"></a>750. The current definition for <tt>is_convertible</tt> requires that the type be
-implicitly convertible, so explicit constructors are ignored.</h3>
-<p><b>Section:</b> 20.10.6 [meta.rel] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.rel">issues</a> in [meta.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#719">719</a></p>
-<p><b>Discussion:</b></p>
-<p>
-With the pending arrival of explicit conversion functions though, I'm
-wondering if we want an additional trait, <tt>is_explictly_convertible</tt>?
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Alisdair is considering preparing a paper listing a number of missing
-type traits, and feels that it might be useful to handle them all
-together rather than piecemeal. This would affect issue 719 and 750.
-These two issues should move to OPEN pending AM paper on type traits.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Duplicate of <a href="lwg-defects.html#719">719</a> (for our purposes).
-</p></blockquote>
-
-<p><i>[
-Addressed in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2947.html">N2947</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="751"></a>751. change pass-by-reference members of <tt>vector&lt;bool&gt;</tt> to pass-by-value?</h3>
-<p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A number of <tt>vector&lt;bool&gt;</tt> members take const bool&amp; as arguments.
-Is there any chance we could change them to pass-by-value or would I 
-be wasting everyone's time if wrote up an issue?
-</p>
-
-<p><i>[
-post Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-As we understand it, the original requester (Martin Sebor) would like
-for implementations to be permitted to pass-by-value. Alisdair suggests
-that if this is to be resolved, it should be resolved more generally,
-e.g. in other containers as well.
-</p>
-<p>
-We note that this would break ABI. However, we also suspect that this
-might be covered under the "as-if" rule in section 1.9.
-</p>
-<p>
-Many in the group feel that for vector&lt;bool&gt;, this is a "don't care",
-and that at this point in the process it's not worth the bandwidth.
-</p>
-<p>
-Issue <a href="lwg-defects.html#679">679</a> -- which was in ready status pre-Bellevue and is
-now in the working paper -- is related to this, though not a duplicate.
-</p>
-<p>
-Moving to Open with a task for Alisdair to craft a informative note to
-be put whereever appropriate in the WP. This note would clarify places
-where pass-by-const-ref can be transformed to pass-by-value under the
-as-if rule.
-</p>
-</blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-This is really a clause 17 issue, rather than something specific to vector&lt;bool&gt;.
-</p>
-<p>
-Move to Open. Alisdair to provide a resolution. Alternately, Howard can
-close this as NAD and then open a new issue to handle the general issue
-(rather than the vector&lt;bool&gt; one).
-</p>
-<p>
-Howard:  Haven't yet opened new issue.  Lacking wording for it.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-NAD.  Insufficient motivation to make any changes.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="754"></a>754. Ambiguous return clause for <tt>std::uninitialized_copy</tt></h3>
-<p><b>Section:</b> 20.7.12.2 [uninitialized.copy] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#uninitialized.copy">issues</a> in [uninitialized.copy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-14882-2003, [lib.uninitialized.copy] is currently written as follows:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class InputIterator, class ForwardIterator&gt;
-  ForwardIterator uninitialized_copy(InputIterator <i>first</i>, InputIterator <i>last</i>,
-                                     ForwardIterator <i>result</i>);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects:</i>
-</p>
-<blockquote><pre>
-for (; first != last; ++result, ++first)
-  new (static_cast&lt;void*&gt;(&amp;*result))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-</pre></blockquote>
-<p>
--2- <i>Returns:</i> <tt><i>result</i></tt>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-similarily for N2369, and its corresponding section
-20.7.12.2 [uninitialized.copy].
-</p>
-
-<p>
-It's not clear to me what the return clause is supposed to mean, I see
-two
-possible interpretations:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-The notion of <tt><i>result</i></tt> is supposed to mean the value given by the
-function parameter <tt><i>result</i></tt> [Note to the issue editor: Please use italics for
-<tt><i>result</i></tt>].
-This seems somewhat implied by recognizing that both the function
-parameter
-and the name used in the clause do have the same italic font.
-</li>
-<li>
-The notion of "result" is supposed to mean the value of <tt><i>result</i></tt>
-after the
-preceding effects clause. This is in fact what all implementations I
-checked
-do (and which is probably it's intend, because it matches the
-specification of <tt>std::copy</tt>).
-</li>
-</ol>
-
-<p>
-The problem is: I see nothing in the standard which grants that this
-interpretation
-is correct, specifically [lib.structure.specifications] or
-17.5.1.4 [structure.specifications]
-resp. do not clarify which "look-up" rules apply for names found in
-the elements
-of the detailed specifications - Do they relate to the corresponding
-synopsis or
-to the effects clause (or possibly other elements)? Fortunately most
-detailed
-descriptions are unambigious in this regard, e.g. this problem does
-not apply
-for <tt>std::copy</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the wording of the return clause to say (20.7.12.2 [uninitialized.copy]):
-</p>
-
-<blockquote>
-<p>
--2- <i>Returns:</i> <ins>The value of</ins> <tt><i>result</i></tt> <ins>after effects have taken place.</ins>
-</p>
-</blockquote>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Resolution: NAD editorial -- project editor to decide if change is
-worthwhile. Concern is that there are many other places this might
-occur.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="757"></a>757. Typo in the synopsis of vector</h3>
-<p><b>Section:</b> 23.3.6 [vector] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2007-11-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the synopsis 23.3.6 [vector], there is the signature:
-</p>
-
-<blockquote><pre>
-void insert(const_iterator position, size_type n, T&amp;&amp; x);
-</pre></blockquote>
-
-<p>
-instead of:
-</p>
-
-<blockquote><pre>
-iterator insert(const_iterator position, T&amp;&amp; x);
-</pre></blockquote>
-
-<p>
-23.3.6.5 [vector.modifiers] is fine.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 23.3.6 [vector]:
-</p>
-
-<blockquote><pre>
-iterator insert(const_iterator position, const T&amp; x); 
-<ins>iterator insert(const_iterator position, T&amp;&amp; x);</ins>
-void     insert(const_iterator position, size_type n, const T&amp; x); 
-<del>void     insert(const_iterator position, size_type n, T&amp;&amp; x);</del>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="763"></a>763. Renaming <tt>emplace()</tt> overloads</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sylvain Pion <b>Opened:</b> 2007-12-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The associative containers provide 2 overloads of <tt>emplace()</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; emplace(Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator emplace(const_iterator position, Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-This is a problem if you mean the first overload while passing
-a <tt>const_iterator</tt> as first argument.
-</p>
-
-<p><i>[
-Related to <a href="lwg-defects.html#767">767</a>
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<p>
-This can be disambiguated by passing "begin" as the first argument in
-the case when the non-default choice is desired. We believe that desire
-will be rare.
-</p>
-
-<p><i>[For related discussion see <a href="lwg-closed.html#1302">1302</a>]</i></p>
-
-
-<p>
-LWG <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2680.pdf">N2680</a> 
-renamed one of the overloads to <tt>emplace_hint</tt>.
-</p>
-
-<p>
-Resolution: Change state to NAD.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Rename one of the two overloads.
-For example to <tt>emplace_here</tt>, <tt>hint_emplace</tt>...
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="764"></a>764. <tt>equal_range</tt> on unordered containers should return a <tt>pair</tt> of <tt>local_iterators</tt></h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2007-11-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-    A major attribute of the unordered containers is that iterating 
-though them inside a bucket is very fast while iterating between buckets 
-can be much slower.  If an unordered container has a low load factor, 
-iterating between the last iterator in one bucket and the next iterator, 
-which is in another bucket, is <tt>O(bucket_count())</tt> which may be much 
-larger than <tt>O(size())</tt>.
-</p>
-<p>
-    If <tt>b</tt> is an non-const unordered container of type <tt>B</tt> and <tt>k</tt> is an 
-object of it's <tt>key_type</tt>, then <tt>b.equal_range(k)</tt> currently returns 
-<tt>pair&lt;B::iterator, B::iterator&gt;</tt>. Consider the following code:
-</p>
-
-<blockquote><pre>
-B::iterator lb, ub;
-tie(lb, ub) = b.equal_range(k);
-for (B::iterator it = lb; it != ub; ++it) {
-        // Do something with *it
-}
-</pre></blockquote>
-
-<p>
-If <tt>b.equal_range(k)</tt> returns a non-empty range (i.e. <tt>b</tt> contains at least 
-on element whose key is equivalent to <tt>k</tt>), then every iterator in the 
-half-open range <tt>[lb, ub)</tt> will be in the same bucket, but <tt>ub</tt> will likely 
-either be in a different bucket or be equal to <tt>b.end()</tt>.  In either case, 
-iterating between <tt>ub - 1</tt> and <tt>ub</tt> could take a much longer time than 
-iterating through the rest of the range.
-</p>
-<p>
-If instead of returning <tt>pair&lt;iterator, iterator&gt;</tt>, <tt>equal_range</tt> were to 
-return <tt>pair&lt;local_iterator, local_iterator&gt;</tt>, then <tt>ub</tt> (which, like <tt>lb</tt>, 
-would now be a <tt>local_iterator</tt>) could be guaranteed to always be in the 
-same bucket as <tt>lb</tt>. In the cases where currently <tt>ub</tt> is equal to <tt>b.end()</tt>
-or is in a different bucket, <tt>ub</tt> would be equal to <tt>b.end(b.bucket(key))</tt>. 
-  This would make iterating between <tt>lb</tt> and <tt>ub</tt> much faster, as every 
-iteration would be constant time.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution breaks consistency with other container types
-for dubious benefit, and iterators are already constant time.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the entry for <tt>equal_range</tt> in Table 93 (23.2.5 [unord.req]) as follows:
-</p>
-<table border="1">
-<tr>
-<th>expression</th> <th>return type</th> <th>assertion/note pre/post-condition</th> <th>complexity</th>
-</tr>
-
-<tr>
-<td><tt>b.equal_range(k)</tt></td>
-<td><tt>pair&lt;<ins>local_</ins>iterator,<ins>local_</ins>iterator&gt;; pair&lt;const_<ins>local_</ins>iterator,const_<ins>local_</ins>iterator&gt;</tt> for <tt>const b</tt>.</td>
-<td>Returns a range containing all elements with keys equivalent to <tt>k</tt>. Returns <tt>make_pair(b.end(<ins>b.bucket(key)</ins>),b.end(<ins>b.bucket(key)</ins>))</tt> if no such elements exist.</td>
-<td>Average case &Theta;<tt>(b.count(k))</tt>. Worst case &Theta;<tt>(b.size())</tt>. </td>
-</tr>
-</table>
-
-
-
-
-
-<hr>
-<h3><a name="773"></a>773. issues with random</h3>
-<p><b>Section:</b> 26.5.8.2 [rand.dist.uni] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-01-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.uni">issues</a> in [rand.dist.uni].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol>
-<li>
-26.5.8.2.1 [rand.dist.uni.int] <tt>uniform_int</tt> constructor has changed the default
-max constructor parameter from 9 (in TR1) to <tt>max()</tt>. The value
-is arbitrary at best and shouldn't be lightly changed because
-it breaks backward compatibility.
-</li>
-
-<li>
-26.5.8.2.1 [rand.dist.uni.int] <tt>uniform_int</tt> has a parameter <tt>param</tt> that you can
-provide on construction or <tt>operator()</tt>, set, and get. But there
-is not even a hint of what this might be for.
-</li>
-
-<li>
-26.5.8.2.2 [rand.dist.uni.real] <tt>uniform_real</tt>. Same issue as #2.
-</li>
-</ol>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-NAD. Withdrawn.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="784"></a>784. unique_lock::release</h3>
-<p><b>Section:</b> 30.4.2.2.3 [thread.lock.unique.mod] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Constantine Sapuntzakis <b>Opened:</b> 2008-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>unique_lock::release</tt> will probably lead to many mistakes where people
-call <tt>release</tt> instead of <tt>unlock</tt>. I just coded such a mistake using the
-boost pre-1.35 threads library last week.
-</p>
-
-<p>
-In many threading libraries, a call with <tt>release</tt> in it unlocks the
-lock (e.g. ReleaseMutex in Win32, java.util.concurrent.Semaphore).
-</p>
-
-<p>
-I don't call <tt>unique_lock::lock</tt> much at all, so I don't get to see the
-symmetry between <tt>::lock</tt> and <tt>::unlock</tt>. I usually use the constructor to
-lock the mutex. So I'm left to remember whether to call <tt>release</tt> or
-<tt>unlock</tt> during the few times I need to release the mutex before the scope
-ends. If I get it wrong, the compiler doesn't warn me.
-</p>
-
-<p>
-An alternative name for release may be <tt>disown</tt>.
-</p>
-
-<p>
-This might be a rare case where usability is hurt by consistency with
-the rest of the C++ standard (e.g. <tt>std::auto_ptr::release</tt>).
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Change a name from release to disown. However prior art uses the release
-name. Compatibility with prior art is more important that any possible
-benefit such a change might make. We do not see the benefit for
-changing. NAD
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 30.4.2.2 [thread.lock.unique]:
-</p>
-
-<blockquote><pre>
-template &lt;class Mutex&gt; 
-class unique_lock 
-{ 
-public:
-   ...
-   mutex_type* <del>release</del> <ins>disown</ins>();
-   ...
-};
-</pre></blockquote>
-
-<p>
-Change 30.4.2.2.3 [thread.lock.unique.mod]:
-</p>
-
-<blockquote><pre>
-mutex_type *<del>release</del> <ins>disown</ins>();
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="785"></a>785. Random Number Requirements in TR1</h3>
-<p><b>Section:</b> TR1 5.1.4.5 [tr.rand.eng.disc], TR1 5.1.4.6 [tr.rand.eng.xor] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> John Maddock <b>Opened:</b> 2008-01-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 16 of TR1 requires that all Pseudo Random Number generators have a
-</p>
-
-<blockquote><pre>
-seed(integer-type s)
-</pre></blockquote>
-
-<p>
-member function that is equivalent to:
-</p>
-
-<blockquote><pre>
-mygen = Generator(s)
-</pre></blockquote>
-
-<p>
-But the generators <tt>xor_combine</tt> and <tt>discard_block</tt> have no such seed member, only the
-</p>
-
-<blockquote><pre>
-template &lt;class Gen&gt;
-seed(Gen&amp;);
-</pre></blockquote>
-
-<p>
-member, which will not accept an integer literal as an argument: something that appears to violate the intent of Table 16.
-</p>
-
-<p>
-So... is this a bug in TR1?
-</p>
-
-<p>
-This is a real issue BTW, since the Boost implementation does adhere to the requirements of Table 16, while at least one commercial implementation does not and follows a strict adherence to sections 5.1.4.5 and 5.1.4.6 instead.
-</p>
-
-<p><i>[
-Jens adds:
-]</i></p>
-
-
-<blockquote><p>
-Both engines do have the necessary
-constructor, therefore the omission of the <tt>seed()</tt> member
-functions appears to be an oversight.
-</p></blockquote>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Recommend NAD: <tt>xor_combine</tt> does no longer exist and <tt>discard_block[_engine]</tt>
-has now the required seed overload accepting a <tt>result_type</tt>, which shall be an
-unsigned integral type.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to NAD as recommended.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-NAD Recommended.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="790"></a>790. <tt>xor_combine::seed</tt> not specified</h3>
-<p><b>Section:</b> X [rand.adapt.xor] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.adapt.xor">issues</a> in [rand.adapt.xor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>xor_combine::seed(result_type)</tt> and <tt>seed(seed_seq&amp;)</tt> don't say what
-happens to each of the sub-engine seeds. (Should probably do the same
-to both, unlike TR1.)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Overcome by the previous proposal. NAD mooted by resolution of <a href="lwg-defects.html#789">789</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="791"></a>791. <tt>piecewise_constant_distribution::densities</tt> has wrong name</h3>
-<p><b>Section:</b> 26.5.8.6.2 [rand.dist.samp.pconst] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.pconst">issues</a> in [rand.dist.samp.pconst].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>piecewise_constant_distribution::densities()</tt> should be <tt>probabilities()</tt>,
-just like <tt>discrete_distribution</tt>. (There's no real use for weights divided
-by areas.)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Fermilab does not agree with this summary. As defined in the equation in
-26.4.8.5.2/4, the quantities are indeed probability densities not
-probabilities. Because we view this distribution as a parameterization
-of a *probability density function*, we prefer to work in terms of
-probability densities.
-</p>
-
-<p>
-We don't think this should be changed.
-</p>
-
-<p>
-If there is a technical argument about why the implementation dealing
-with these values can't be as efficient as one dealing with
-probabilities, we might reconsider. We don't care about this one member
-function being somewhat more or less efficient; we care about the size
-of the distribution object and the speed of the calls to generate
-variates.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change synopsis in 26.5.8.6.2 [rand.dist.samp.pconst]:
-</p>
-
-<blockquote><pre>
-template &lt;class RealType = double&gt; 
-class piecewise_constant_distribution 
-{ 
-public:
-    ...
-    vector&lt;double&gt; <del>densities</del> <ins>probabilities</ins>() const;
-    ...
-};
-</pre></blockquote>
-
-<p>
-Change 26.5.8.6.2 [rand.dist.samp.pconst]/6:
-</p>
-
-<blockquote><pre>
-vector&lt;double&gt; <del>densities</del> <ins>probabilities</ins>() const;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="795"></a>795. <tt>general_pdf_distribution</tt> should be dropped</h3>
-<p><b>Section:</b> X [rand.dist.samp.genpdf] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.genpdf">issues</a> in [rand.dist.samp.genpdf].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#732">732</a></p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>general_pdf_distribution</tt> should be dropped. (It's a research topic in
-adaptive numerical integration.)
-</p>
-
-<p><i>[
-Stephan Tolksdorf notes:
-]</i></p>
-
-
-<blockquote><p>
-This appears to be a duplicate of <a href="lwg-defects.html#732">732</a>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="796"></a>796. <tt>ranlux48_base</tt> returns wrong value</h3>
-<p><b>Section:</b> 26.5.5 [rand.predef] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.predef">issues</a> in [rand.predef].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The 10,000<sup>th</sup> value returned by <tt>ranlux48_base</tt> is supposed to be
-61839128582725. We get 192113843633948. (Note that the underlying
-generator was changed in Kona.)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Submitter withdraws defect.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.5.5 [rand.predef]/p5:
-</p>
-
-<blockquote>
-<pre>
-typedef subtract_with_carry_engine&lt;uint_fast64_t, 48, 5, 12&gt; 
-        ranlux48_base; 
-</pre>
-<blockquote><p>
-<i>Required behavior:</i> The 10000<sup>th</sup> consecutive invocation of a default-constructed
-object of type <tt>ranlux48_base</tt> shall produce the value
-<del>61839128582725</del> <ins>192113843633948</ins>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="797"></a>797. <tt>ranlux48</tt> returns wrong value</h3>
-<p><b>Section:</b> 26.5.5 [rand.predef] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.predef">issues</a> in [rand.predef].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The 10,000<sup>th</sup> value returned by <tt>ranlux48</tt> is supposed to be
-249142670248501. We get 88229545517833. (Note that this depends
-on <tt>ranlux48_base</tt>.)
-</p>
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Submitter withdraws defect.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.5.5 [rand.predef]/p6:
-</p>
-
-<blockquote>
-<pre>
-typedef discard_block_engine&lt;ranlux48_base, 389, 11&gt; 
-        ranlux48
-</pre>
-<blockquote><p>
-<i>Required behavior:</i> The 10000<sup>th</sup> consecutive invocation of a default-constructed
-object of type <tt>ranlux48</tt> shall produce the value
-<del>249142670248501</del> <ins>88229545517833</ins>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="799"></a>799. [tr.rand.eng.mers] and [rand.eng.mers]</h3>
-<p><b>Section:</b> 26.5.3.2 [rand.eng.mers], TR1 5.1.4.2 [tr.rand.eng.mers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2008-02-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng.mers">issues</a> in [rand.eng.mers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-TR1 5.1.4.2 [tr.rand.eng.mers](10) requires that <tt>operator==</tt> for the <tt>mersenne_twister</tt>
-returns <tt>true</tt> if and only if the states of two <tt>mersenne_twisters</tt>,
-consisting each of <tt>n</tt> integers between <tt>0</tt> and <tt>2<sup>w</sup> - 1</tt>, are completely
-equal. This is a contradiction with TR1 5.1.1 [tr.rand.req](3) because the given
-definition of the state also includes the lower <tt>r</tt> bits of <tt>x(i-n)</tt>, which
-will never be used to generate a random number. If two <tt>mersenne_twister</tt>s
-only differ in the lower bits of <tt>x(i-n)</tt> they will not compare equal,
-although they will produce an identical sequence of random numbers.
-</p>
-
-<p>
-26.5.3.2 [rand.eng.mers] in the latest C++ draft does not specify the behaviour
-of <tt>operator==</tt> but uses a similar definition of the state and, just like
-TR1 5.1.4.2 [tr.rand.eng.mers], requires the textual representation of a
-<tt>mersenne_twister_engine</tt> to consist of <tt>X<sub>i-n</sub></tt> to <tt>X<sub>i-1</sub></tt>, including the
-lower bits of <tt>X<sub>i-n</sub></tt>. This leads to two problems: First, the
-unsuspecting implementer is likely to erroneously compare the lower <tt>r</tt>
-bits of <tt>X<sub>i-n</sub></tt> in <tt>operator==</tt>. Second, if only the lower <tt>r</tt> bits differ,
-two <tt>mersenne_twister_engine</tt>s will compare equal (if correctly
-implemented) but have different textual representations, which
-conceptually is a bit ugly.
-</p>
-
-<p>
-I propose that a paragraph or footnote is added to 26.5.3.2 [rand.eng.mers] which
-clarifies that the lower <tt>r</tt> bits of <tt>X<sub>i-n</sub></tt> are not to be compared in
-<tt>operator==</tt> and <tt>operator!=</tt>. It would only be consequent if furthermore
-the specification for the textual respresentation was changed to
-<tt>X<sub>i-n</sub> bitand ((2<sup>w</sup> - 1) - (2<sup>r</sup> - 1)), X<sub>i-(n-1)</sub>, ...,  X<sub>i-1</sub></tt> or
-something similar.
-</p>
-
-<p>
-These changes would likely have no practical effect, but would allow an
-implementation that does the right thing to be standard-conformant.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Fermi Lab has no objection to the proposed change. However it feels that
-more time is needed to check the details, which would suggest a change
-to REVIEW.
-</p>
-<p>
-Bill feels that this is NAD, not enough practical importance to abandon
-the simple definition of equality, and someone would have to do a lot
-more study to ensure that all cases are covered for a very small
-payback. The submitter admits that "These changes would likely have no
-practical effect,", and according to Plum's razor this means that it is
-not worth the effort!
-</p>
-<p>
-Revisted: Agree that the fact that there is no practical difference means that no change can be justified.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 26.5.3.2 [rand.eng.mers]:
-</p>
-
-<blockquote>
-<p>
-Insert at the end of para 2.:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> The lower <tt>r</tt> bits of <tt>X<sub>i-n</sub></tt> do not influence
-the state transition and hence should not be compared when comparing two
-<tt>mersenne_twister_engine</tt> objects. <i>-- end note</i>]
-</p></blockquote>
-
-<p>
-In para 5. change:
-</p>
-
-<blockquote><p>
-The textual representation of <tt>x<sub>i</sub></tt> consists of the values of
-<tt>X<sub>i-n</sub> <ins>bitand ((2<sup>w</sup> - 1) - (2<sup>r</sup> - 1)),  X<sub>i-(n-1)</sub></ins>,
-..., X<sub>i-1</sub></tt>, in that order.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="802"></a>802. <tt>knuth_b</tt> returns wrong value</h3>
-<p><b>Section:</b> 26.5.5 [rand.predef] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.predef">issues</a> in [rand.predef].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The 10,000<sup>th</sup> value returned by <tt>knuth_b</tt> is supposed to be
-1112339016. We get 2126698284.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.5.5 [rand.predef]/p8:
-</p>
-
-<blockquote>
-<pre>
-typedef shuffle_order_engine&lt;minstd_rand0, 256&gt; 
-        knuth_b; 
-</pre>
-<blockquote><p>
-<i>Required behavior:</i> The 10000<sup>th</sup> consecutive invocation of a default-constructed
-object of type <tt>knuth_b</tt> shall produce the value
-<del>1112339016</del> <ins>2126698284</ins>.
-</p></blockquote>
-</blockquote>
-
-
-<p><i>[
-Bellevue: Submitter withdraws defect. "We got the wrong value for entirely the right reasons". NAD.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="812"></a>812. unsolicited multithreading considered harmful?</h3>
-<p><b>Section:</b> 25.4.1 [alg.sort] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Paul McKenney <b>Opened:</b> 2008-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Multi-threading is a good thing, but unsolicited multi-threading can
-potentially be harmful.  For example, <tt>sort()</tt> performance might be
-greatly increased via a multithreaded implementation.  However, such
-a multithreaded implementation could result in concurrent invocations
-of the user-supplied comparator.  This would in turn result in problems
-given a caching comparator that might be written for complex sort keys.
-Please note that this is not a theoretical issue, as multithreaded
-implementations of <tt>sort()</tt> already exist.
-</p>
-<p>
-Having a multithreaded <tt>sort()</tt> available is good, but it should not
-be the default for programs that are not explicitly multithreaded.
-Users should not be forced to deal with concurrency unless they have
-asked for it.
-</p>
-
-<p><i>[
-This may be covered by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2410.html">N2410</a>
-Thread-Safety in the Standard Library (Rev 1).
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-This is already covered by 17.6.5.6/20 in N2723.
-</p>
-
-
-
-
-<hr>
-<h3><a name="822"></a>822. Object with explicit copy constructor no longer <tt>CopyConstructible</tt></h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2008-04-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I just noticed that the following program is legal in C++03, but
-is forbidden in the current draft:
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt;
-#include &lt;iostream&gt;
-
-class Toto
-{
-public:
-    Toto() {}
-    explicit Toto( Toto const&amp; ) {}
-} ;
-
-int
-main()
-{
-    std::vector&lt; Toto &gt; v( 10 ) ;
-    return 0 ;
-}
-</pre></blockquote>
-
-<p>
-Is this change intentional?  (And if so, what is the
-justification?  I wouldn't call such code good, but I don't see
-any reason to break it unless we get something else in return.)
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-The subgroup that looked at this felt this was a good change, but it may
-already be handled by incoming concepts (we're not sure).
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Alisdair: Proposed resolution kinda funky as these tables no longer
-exist. Move from direct init to copy init. Clarify with Doug, recommends
-NAD.
-</p>
-<p>
-Walter: Suggest NAD via introduction of concepts.
-</p>
-<p>
-Recommend close as NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Need to look at again without concepts.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Move to Ready with original proposed resolution.
-</p>
-<p><i>[Howard:  Original proposed resolution restored.]</i></p>
-
-</blockquote>
-
-<p><i>[
-2010-11 Batavia:
-]</i></p>
-
-<p>
-This issue was re-reviewed in relation to [another issue, number to follow],
-and the verdict was reversed.  Explicit copy and move constructors are rare
-beasts, and the ripple effect of this fix was far more difficult to contain
-than simply saying such types do not satisfy the <tt>MoveConstructible</tt>
-and <tt>CopyConstructible</tt> requirements.
-</p>
-
-<blockquote>
-<p>
-In 17.6.3.1 [utility.arg.requirements] change Table 33: <tt>MoveConstructible</tt> requirements [moveconstructible]:
-</p>
-
-<blockquote>
-<table border="1">
-<tr>
-<th>expression</th><th>post-condition</th>
-</tr>
-<tr>
-<td><tt>T t<ins>(rv)</ins><del> = rv</del></tt></td><td><tt>t</tt> is equivalent to the value of <tt>rv</tt> before the construction</td>
-</tr>
-<tr>
-<td colspan="2" align="center">...</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-In 17.6.3.1 [utility.arg.requirements] change Table 34: <tt>CopyConstructible</tt> requirements [copyconstructible]:
-</p>
-
-<blockquote>
-<table border="1">
-<tr>
-<th>expression</th><th>post-condition</th>
-</tr>
-<tr>
-<td><tt>T t<ins>(u)</ins><del> = u</del></tt></td><td>the value of <tt>u</tt> is unchanged and is equivalent to <tt>t</tt></td>
-</tr>
-<tr>
-<td colspan="2" align="center">...</td>
-</tr>
-</table>
-</blockquote>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3215.htm">n3215</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="826"></a>826. Equivalent of <tt>%'d</tt>, or rather, lack thereof?</h3>
-<p><b>Section:</b> 22.4.2.2 [locale.nm.put] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-04-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the spirit of <tt>printf vs iostream</tt>...
-</p>
-
-<p>
-POSIX <tt>printf</tt> says that <tt>%'d</tt> should insert grouping characters (and the
-implication is that in the absence of <tt>'</tt> no grouping characters are
-inserted). The <tt>num_put</tt> facet, on the other hand, seems to always insert
-grouping characters. Can this be considered a defect worth fixing for
-C++0x? Maybe <tt>ios_base</tt> needs an additional flag?
-</p>
-
-<p><i>[
-Pablo Halpern:
-]</i></p>
-
-
-<blockquote><p>
-I'm not sure it constitutes a defect, but I would be in favor of adding
-another flag (and corresponding manipulator).
-</p></blockquote>
-
-<p><i>[
-Martin Sebor:
-]</i></p>
-
-
-<blockquote><p>
-I don't know if it qualifies as a defect but I agree that there
-should be an easy way to control whether the thousands separator
-should or shouldn't be inserted. A new flag would be in line with
-the current design of iostreams (like <tt>boolalpha</tt>, <tt>showpos</tt>, or
-<tt>showbase</tt>).
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-This is not a part of C99. LWG suggests submitting a paper may be appropriate.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="830"></a>830. Incomplete list of char_traits specializations</h3>
-<p><b>Section:</b> 21.2 [char.traits] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Dietmar K&#252;hl <b>Opened:</b> 2008-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits">issues</a> in [char.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-  Paragraph 4 of 21.2 [char.traits] mentions that this
-  section specifies two specializations (<code>char_traits&lt;char&gt;</code>
-  and (<code>char_traits&lt;wchar_t&gt;</code>). However, there are actually
-  four specializations provided, i.e. in addition to the two above also
-  <code>char_traits&lt;char16_t&gt;</code> and <code>char_traits&lt;char32_t&gt;</code>).
-  I guess this was just an oversight and there is nothing wrong with just
-  fixing this.
-</p>
-
-<p><i>[
-Alisdair adds:
-]</i></p>
-
-<blockquote><p>
-<tt>char_traits&lt; char16/32_t &gt;</tt>
-should also be added to <tt>&lt;ios_fwd&gt;</tt> in 27.3 [iostream.forward], and all the specializations
-taking a <tt>char_traits</tt> parameter in that header.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Idea of the issue is ok.
-</p>
-<p>
-Alisdair to provide wording, once that wording arrives, move to review.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-05-04 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The main point of the issue was resolved editorially in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>,
-so we are
-close to NAD Editorial.
-However, exploring the issue we found a second tweak was necessary for
-<tt>&lt;iosfwd&gt;</tt> and that is still outstanding, so here are the words I am long
-overdue delivering:
-</p>
-
-<p><i>[
-Howard:  I've put Alisdair's words into the proposed wording section and
-moved the issue to Review.
-]</i></p>
-
-
-</blockquote>
-
-<p><i>[
-Original proposed wording.
-]</i></p>
-
-
-<blockquote>
-
-<p>
-  Replace paragraph 4 of 21.2 [char.traits] by:
-</p>
-<blockquote>
-<p>
-  This subclause specifies a struct template, <code>char_traits&lt;charT&gt;</code>,
-  and four explicit specializations of it, <code>char_traits&lt;char&gt;</code>,
-  <code>char_traits&lt;char16_t&gt;</code>, <code>char_traits&lt;char32_t&gt;</code>, and
-  <code>char_traits&lt;wchar_t&gt;</code>, all of which appear in the header
-  &lt;string&gt; and satisfy the requirements below.
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree.  Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Forward declarations 27.3 [iostream.forward]:
-</p>
-
-<blockquote>
-<p>
-<b>Header <tt>&lt;iosfwd&gt;</tt> synopsis</b>
-</p>
-<pre>
-namespace std {
-   template&lt;class charT&gt; class char_traits;
-   template&lt;&gt; class char_traits&lt;char&gt;;
-   <ins>template&lt;&gt; class char_traits&lt;char16_t&gt;;</ins>
-   <ins>template&lt;&gt; class char_traits&lt;char32_t&gt;;</ins>
-   template&lt;&gt; class char_traits&lt;wchar_t&gt;;
-...
-}
-</pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="831"></a>831. wrong type for not_eof()</h3>
-<p><b>Section:</b> 21.2.3 [char.traits.specializations] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Dietmar K&#252;hl <b>Opened:</b> 2008-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits.specializations">issues</a> in [char.traits.specializations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-  In Table 56 (Traits requirements) the <tt>not_eof()</tt> member function
-  is using an argument of type <i>e</i> which denotes an object of
-  type <code>X::int_type</code>. However, the specializations in
-  21.2.3 [char.traits.specializations] all use <code>char_type</code>.
-  This would effectively mean that the argument type actually can't
-  represent EOF in the first place. I'm pretty sure that the type used
-  to be <code>int_type</code> which is quite obviously the only sensible
-  argument.
-</p>
-<p>
-  This issue is close to being editorial. I suspect that the proposal
-  changing this section to include the specializations for <code>char16_t</code>
-  and <code>char32_t</code> accidentally used the wrong type.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-  In 21.2.3.1 [char.traits.specializations.char],
-  21.2.3.2 [char.traits.specializations.char16_t],
-  21.2.3.3 [char.traits.specializations.char32_t], and
-   [char.traits.specializations.wchar_t] correct the
-  argument type from <code>char_type</code> to <code>int_type</code>.
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-Already fixed in WP.
-</p>
-
-
-
-
-<hr>
-<h3><a name="832"></a>832. Applying constexpr to System error support</h3>
-<p><b>Section:</b> 19.5 [syserr] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2008-05-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr">issues</a> in [syserr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Initialization of objects of class <tt>error_code</tt>
-(19.5.2 [syserr.errcode]) and class
-<tt>error_condition</tt> (19.5.3 [syserr.errcondition]) can be made simpler and more reliable by use of
-the new <tt>constexpr</tt> feature 
-[<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2349.pdf">N2349</a>]
-of C++0x. Less code will need to be
-generated for both library implementations and user programs when
-manipulating constant objects of these types. 
-</p>
-
-<p>
-This was not proposed originally because the constant expressions
-proposal was moving into the standard at about the same time as the
-Diagnostics Enhancements proposal 
-[<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2241.html">N2241</a>],
-and it wasn't desirable to
-make the later depend on the former. There were also technical concerns
-as to how <tt>constexpr</tt> would apply to references. Those concerns are now
-resolved; <tt>constexpr</tt> can't be used for references, and that fact is
-reflected in the proposed resolution.
-</p>
-
-<p>
-Thanks to Jens Maurer, Gabriel Dos Reis, and Bjarne Stroustrup for clarification of <tt>constexpr</tt> requirements.
-</p>
-
-<p>
-LWG issue <a href="lwg-defects.html#804">804</a> is related in that it raises the question of whether the
-exposition only member <tt>cat_</tt> of class <tt>error_code</tt> (19.5.2 [syserr.errcode]) and class
-<tt>error_condition</tt> (19.5.3 [syserr.errcondition]) should be presented as a reference or pointer.
-While in the context of <a href="lwg-defects.html#804">804</a> that is arguably an editorial question,
-presenting it as a pointer becomes more or less required with this
-proposal, given <tt>constexpr</tt> does not play well with references. The
-proposed resolution thus changes the private member to a pointer, which
-also brings it in sync with real implementations.
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-On going question of extern pointer vs. inline functions for interface.
-</p></blockquote>
-
-<p><i>[
-Pre-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Beman Dawes reports that this proposal is unimplementable, and thus NAD.
-</p>
-<p>
-Implementation would require <tt>constexpr</tt> objects of classes derived
-from class <tt>error_category</tt>, which has virtual functions, and that is
-not allowed by the core language. This was determined when trying to
-implement the proposal using a constexpr enabled compiler provided
-by Gabriel Dos Reis, and subsequently verified in discussions with
-Gabriel and Jens Maurer.
-</p>
-
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-The proposed wording assumes the LWG <a href="lwg-defects.html#805">805</a> proposed wording has been
-applied to the WP, resulting in the former <tt>posix_category</tt> being renamed
-<tt>generic_category</tt>. If <a href="lwg-defects.html#805">805</a> has not been applied, the names in this
-proposal must be adjusted accordingly.
-</p>
-
-<p>
-Change 19.5.1.1 [syserr.errcat.overview] Class
-<tt>error_category</tt> overview <tt>error_category</tt> synopsis  as
-indicated:
-</p>
-
-<blockquote><pre>
-<del>const error_category&amp; get_generic_category();</del>
-<del>const error_category&amp; get_system_category();</del>
-
-<del>static</del> <ins>extern</ins> const error_category<del>&amp;</del><ins>* const</ins> generic_category<del> = get_generic_category()</del>;
-<del>static</del> <ins>extern</ins> const error_category<del>&amp;</del><ins>* const</ins> <del>native_category</del> system_category<del> = get_system_category()</del>;
-</pre></blockquote>
-
-<p>
-Change 19.5.1.5 [syserr.errcat.objects] Error category objects as indicated:
-</p>
-
-<blockquote>
-<pre>
-<ins>extern</ins> const error_category<del>&amp;</del><ins>* const</ins> <del>get_</del>generic_category<del>()</del>;
-</pre>
-<p>
-<del><i>Returns:</i> A reference</del> <ins><tt>generic_category</tt> shall point</ins>
-to <del>an</del> <ins>a statically initialized</ins> object of a type derived from
-class <tt>error_category</tt>.
-</p>
-
-<p>
-<del><i>Remarks:</i></del> The object's <tt>default_error_condition</tt> and <tt>equivalent</tt> virtual
-functions shall behave as specified for the class <tt>error_category</tt>. The
-object's <tt>name</tt> virtual function shall return a pointer to the string
-<tt>"GENERIC"</tt>.
-</p>
-
-<pre>
-<ins>extern</ins> const error_category<del>&amp;</del><ins>* const</ins> <del>get_</del>system_category<del>()</del>;
-</pre>
-
-<p>
-<del><i>Returns:</i> A reference</del> <ins><tt>system_category</tt> shall point</ins>
-to <del>an</del> <ins>a statically
-initialized</ins> object of a type derived from class <tt>error_category</tt>.
-</p>
-
-<p>
-<del><i>Remarks:</i></del>  The object's <tt>equivalent</tt> virtual functions shall behave as
-specified for class <tt>error_category</tt>. The object's <tt>name</tt> virtual function
-shall return a pointer to the string <tt>"system"</tt>. The object's
-<tt>default_error_condition</tt> virtual function shall behave as follows:
-</p>
-
-<p>
-If the argument <tt>ev</tt> corresponds to a POSIX <tt>errno</tt> value <tt>posv</tt>, the function
-shall return <tt>error_condition(posv, generic_category)</tt>. Otherwise, the
-function shall return <tt>error_condition(ev, system_category)</tt>. What
-constitutes correspondence for any given operating system is
-unspecified. [<i>Note:</i> The number of potential system error codes is large
-and unbounded, and some may not correspond to any POSIX <tt>errno</tt> value.
-Thus implementations are given latitude in determining correspondence.
-<i>-- end note</i>]
-</p>
-</blockquote>
-
-<p>
-Change 19.5.2.1 [syserr.errcode.overview] Class <tt>error_code</tt> overview as indicated:
-</p>
-
-<blockquote><pre>
-class error_code {
-public:
-  ...;
-  <ins>constexpr</ins> error_code(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-  ...
-  void assign(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-  ...
-  const error_category<del>&amp;</del><ins>*</ins> category() const;
-  ...
-private:
-  int val_;                    // exposition only
-  const error_category<del>&amp;</del><ins>*</ins> cat_; // exposition only
-</pre></blockquote>
-
-<p>
-Change 19.5.2.2 [syserr.errcode.constructors] Class <tt>error_code</tt> constructors as indicated:
-</p>
-
-<blockquote>
-<pre>
-<ins>constexpr</ins> error_code(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-</pre>
-<p>
-<i>Effects:</i> Constructs an object of type <tt>error_code</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-
-<p>
-Change 19.5.2.3 [syserr.errcode.modifiers] Class <tt>error_code</tt> modifiers  as indicated:
-</p>
-
-<blockquote>
-<pre>
-void assign(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-</pre>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-
-<p>
-Change 19.5.2.4 [syserr.errcode.observers] Class <tt>error_code</tt> observers  as indicated:
-</p>
-
-<blockquote>
-<pre>
-const error_category<del>&amp;</del><ins>*</ins> category() const;
-</pre>
-
-<p>
-<i>Returns:</i> <tt>cat_</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-
-<p>
-Change 19.5.3.1 [syserr.errcondition.overview] Class <tt>error_condition</tt> overview   as indicated:
-</p>
-
-<blockquote>
-<pre>
-class error_condition {
-public:
-  ...;
-  <ins>constexpr</ins> error_condition(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-  ...
-  void assign(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-  ...
-  const error_category<del>&amp;</del><ins>*</ins> category() const;
-  ...
-private:
-  int val_;                    // exposition only
-  const error_category<del>&amp;</del><ins>*</ins> cat_; // exposition only
-</pre>
-</blockquote>
-
-<p>
-Change 19.5.3.2 [syserr.errcondition.constructors] Class <tt>error_condition</tt> constructors as indicated:
-</p>
-
-<blockquote>
-<pre>
-<ins>constexpr</ins> error_condition(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-</pre>
-<p>
-<i>Effects:</i> Constructs an object of type <tt>error_condition</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-
-<p>
-Change 19.5.3.3 [syserr.errcondition.modifiers] Class <tt>error_condition</tt> modifiers as indicated:
-</p>
-
-<blockquote>
-<pre>
-void assign(int val, const error_category<del>&amp;</del><ins>*</ins> cat);
-</pre>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-
-<p>
-Change 19.5.3.4 [syserr.errcondition.observers] Class <tt>error_condition</tt> observers as indicated:
-</p>
-
-<blockquote>
-<pre>
-const error_category<del>&amp;</del><ins>*</ins> category() const;
-</pre>
-<p>
-<i>Returns:</i> <tt>cat_</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-
-<p>
-Throughout 19.5 [syserr] System error support, change "<tt>category().</tt>"  to "<tt>category()-&gt;</tt>".
-Appears approximately six times.
-</p>
-
-<p>
-<i>[Partially Editorial]</i> In 19.5.4 [syserr.compare] Comparison operators,
-paragraphs 2 and 4, change "<tt>category.equivalent(</tt>"  to
-"<tt>category()-&gt;equivalent(</tt>".
-</p>
-
-<p>
-Change 19.5.6.1 [syserr.syserr.overview] Class system_error overview as indicated:
-</p>
-
-<blockquote><pre>
-public:
-  system_error(error_code ec, const string&amp; what_arg);
-  system_error(error_code ec);
-  system_error(int ev, const error_category<del>&amp;</del><ins>*</ins> ecat,
-      const string&amp; what_arg);
-  system_error(int ev, const error_category<del>&amp;</del><ins>*</ins> ecat);
-</pre></blockquote>
-
-<p>
-Change 19.5.6.2 [syserr.syserr.members] Class system_error members as indicated:
-</p>
-
-<blockquote>
-<pre>
-system_error(int ev, const error_category<del>&amp;</del><ins>*</ins> ecat, const string&amp; what_arg);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of class <tt>system_error</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>code() == error_code(ev, ecat)</tt> and
-<tt>strcmp(runtime_error::what(), what_arg.c_str()) == 0</tt>.
-</p>
-</blockquote>
-
-<pre>
-system_error(int ev, const error_category<del>&amp;</del><ins>*</ins> ecat);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of class <tt>system_error</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>code() == error_code(ev, ecat)</tt> and
-<tt>strcmp(runtime_error::what(), "") == 0</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-NAD because Beman said so.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="833"></a>833. Freestanding implementations header list needs review for C++0x</h3>
-<p><b>Section:</b> 17.6.1.3 [compliance] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2008-05-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#compliance">issues</a> in [compliance].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Once the C++0x standard library is feature complete, the LWG needs to
-review 17.6.1.3 [compliance] Freestanding implementations header list to
-ensure it reflects LWG consensus.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-This is a placeholder defect to remind us to review the table once we've
-stopped adding headers to the library.
-</p>
-<p>
-Three new headers that need to be added to the list:
-</p>
-<blockquote><pre>
-&lt;initializer_list&gt; &lt;concept&gt; &lt;iterator_concepts&gt;
-</pre></blockquote>
-<p>
-<tt>&lt;iterator_concepts&gt;</tt>, in particular, has lots of stuff
-that isn't needed, so maybe the stuff that is needed should be broken
-out into a separate header.
-</p>
-<p>
-Robert: What about <tt>reference_closure</tt>? It's currently in
-<tt>&lt;functional&gt;</tt>.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<ol>
-<li>
-The comment regarding <tt>reference_closure</tt> seems moot since it was just
-recently decided to remove that.
-</li>
-<li>
-A reference to proposal
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2814.pdf">N2814</a>
-("Fixing freestanding") should be added. This
-paper e.g. proposes to add only <tt>&lt;initializer_list&gt;</tt> to the include list
-of freestanding.
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Addressed by paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2814.pdf">N2814</a>.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="837"></a>837. 
-   <code>basic_ios::copyfmt()</code> overly loosely specified
- </h3>
-<p><b>Section:</b> 27.5.5.3 [basic.ios.members] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-   <p>
-
-The <code>basic_ios::copyfmt()</code> member function is specified in 27.5.5.3 [basic.ios.members] to have the following effects:
-
-   </p>
-   <blockquote><p>
-
-<i>Effects</i>: If <code>(this == &amp;rhs)</code> does
-nothing. Otherwise assigns to the member objects of <code>*this</code>
-the corresponding member objects of <code>rhs</code>, except that
-</p>
-     <ul>
-       <li>
-
-<code>rdstate()</code> and <code>rdbuf()</code> are left unchanged;
-
-       </li>
-       <li>
-
-<code>exceptions()</code> is altered last by
-calling <code>exceptions(rhs.except)</code>
-
-       </li>
-       <li>
-
-the contents of arrays pointed at by <code>pword</code>
-and <code>iword</code> are copied not the pointers themselves
-
-       </li>
-     </ul>
-   </blockquote>
-   <p>
-
-Since the rest of the text doesn't specify what the member objects
-of <code>basic_ios</code> are this seems a little too loose.
-
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-
-I propose to tighten things up by adding a <i>Postcondition</i> clause
-to the function like so:
-
-   </p>
-   <blockquote><p>
-     <i>Postconditions:</i>
-   </p>
-     <table border="1">
-       <thead>
-         <tr>
-           <th colspan="2"><code>copyfmt()</code> postconditions</th>
-         </tr>
-         <tr>
-           <th>Element</th>
-           <th>Value</th>
-         </tr>
-       </thead>
-       <tbody>
-         <tr>
-           <td><code>rdbuf()</code></td>
-           <td><i>unchanged</i></td>
-         </tr>
-         <tr> 
-           <td><code>tie()</code></td>
-           <td><code>rhs.tie()</code></td>
-         </tr>
-         <tr> 
-           <td><code>rdstate()</code></td>
-           <td><i>unchanged</i></td>
-         </tr>
-         <tr> 
-           <td><code>exceptions()</code></td>
-           <td><code>rhs.exceptions()</code></td>
-         </tr>
-         <tr> 
-           <td><code>flags()</code></td>
-           <td><code>rhs.flags()</code></td>
-         </tr>
-         <tr> 
-           <td><code>width()</code></td>
-           <td><code>rhs.width()</code></td>
-         </tr>
-         <tr> 
-           <td><code>precision()</code></td>
-           <td><code>rhs.precision()</code></td>
-         </tr>
-         <tr> 
-           <td><code>fill()</code></td>
-           <td><code>rhs.fill()</code></td>
-         </tr>
-         <tr> 
-           <td><code>getloc()</code></td>
-           <td><code>rhs.getloc()</code></td>
-         </tr>
-       </tbody>
-     </table>
-   </blockquote>
-   <p>
-
-The format of the table follows Table 117 (as
-of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2588.pdf">N2588</a>): <code>basic_ios::init()</code>
-effects.
-
-   </p>
-   <p>
-
-The intent of the new table is not to impose any new requirements or
-change existing ones, just to be more explicit about what I believe is
-already there.
-
-   </p>
- 
-
-
-
-<hr>
-<h3><a name="840"></a>840. <tt>pair</tt> default template argument</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2008-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I have one issue with <tt>std::pair</tt>. Well, it might just be a very annoying
-historical accident, but why is there no default template argument for
-the second template argument? This is so annoying when the type in
-question is looong and hard to write (type deduction with <tt>auto</tt> won't
-help those cases where we use it as a return or argument type).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 20.2 [utility] to read:
-</p>
-
-<blockquote><pre>
-template &lt;class T1, class T2 <ins>= T1</ins>&gt; struct pair;
-</pre></blockquote>
-
-<p>
-Change 20.3 [pairs] to read:
-</p>
-
-<blockquote><pre>
-namespace std {
- template &lt;class T1, class T2 <ins>= T1</ins>&gt;
- struct pair {
-   typedef T1 first_type;
-   typedef T2 second_type;
-   ...
-</pre></blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-<tt>std::pair</tt> is a heterogeneous container.
-</p>
-
-
-
-
-<hr>
-<h3><a name="841"></a>841. cstdint.syn inconsistent with C99</h3>
-<p><b>Section:</b> 18.4.1 [cstdint.syn] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cstdint.syn">issues</a> in [cstdint.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-   <p>
-
-In specifying the names of macros and types defined in
-header <code>&lt;stdint.h&gt;</code>, C99 makes use of the
-symbol <code><i>N</i></code> to accommodate unusual platforms with
-word sizes that aren't powers of two. C99
-permits <code><i>N</i></code> to take on any positive integer value
-(including, for example, 24).
-
-   </p>
-   <p>
-
-In  cstdint.syn Header <code>&lt;cstdint&gt;</code>
-synopsis, C++ on the other hand, fixes the value
-of <code><i>N</i></code> to 8, 16, 32, and 64, and specifies only
-types with these exact widths. 
-
-   </p>
-   <p>
-
-In addition, paragraph 1 of the same section makes use of a rather
-informal shorthand notation to specify sets of macros. When
-interpreted strictly, the notation specifies macros such
-as <code>INT_8_MIN</code> that are not intended to be specified.
-
-   </p>
-   <p>
-
-Finally, the section is missing the usual table of symbols defined
-in that header, making it inconsistent with the rest of the
-specification.
-
-   </p>
- 
- <p><b>Proposed resolution:</b></p>
-   <p>
-
-I propose to use the same approach in the C++ spec as C99 uses, that
-is, to specify the header synopsis in terms of "exposition only" types
-that make use of the symbol <code><i>N</i></code> to denote one or
-more of a theoretically unbounded set of widths.
-
-   </p>
-   <p>
-
-Further, I propose to add a new table to section listing the symbols
-defined in the header using a more formal notation that avoids
-introducing inconsistencies.
-
-   </p>
-   <p>
-
-To this effect, in  cstdint.syn
-Header <code>&lt;cstdint&gt;</code> synopsis, replace both the
-synopsis and paragraph 1 with the following text:
-
-   </p>
-   <blockquote>
-     <p>
-     </p>
-       <ol>
-         <li>
-
-In the names defined in the <code>&lt;cstdint&gt;</code> header, the
-symbol <code><i>N</i></code> represents a positive decimal integer
-with no leading zeros (e.g., 8 or 24, but not 0, 04, or 048). With the
-exception of exact-width types, macros and types for values
-of <code><i>N</i></code> in the set of 8, 16, 32, and 64 are
-required. Exact-width types, and any macros and types for values
-of <code><i>N</i></code> other than 8, 16, 32, and 64 are
-optional. However, if an implementation provides integer types with
-widths of 8, 16, 32, or 64 bits, the corresponding exact-width types
-and macros are required.
-
-         </li>
-       </ol>
-     <pre>
-namespace std {
-
-   // required types
-
-   // Fastest minimum-width integer types
-   typedef <i>signed integer type</i>   int_fast8_t;
-   typedef <i>signed integer type</i>   int_fast16_t;
-   typedef <i>signed integer type</i>   int_fast32_t;
-   typedef <i>signed integer type</i>   int_fast64_t;
-
-   typedef <i>unsigned integer type</i> uint_fast8_t;
-   typedef <i>unsigned integer type</i> uint_fast16_t;
-   typedef <i>unsigned integer type</i> uint_fast32_t;
-   typedef <i>unsigned integer type</i> uint_fast64_t;
-
-   // Minimum-width integer types
-   typedef <i>signed integer type</i>   int_least8_t;
-   typedef <i>signed integer type</i>   int_least16_t;
-   typedef <i>signed integer type</i>   int_least32_t;
-   typedef <i>signed integer type</i>   int_least64_t;
-
-   typedef <i>unsigned integer type</i> uint_least8_t;
-   typedef <i>unsigned integer type</i> uint_least16_t;
-   typedef <i>unsigned integer type</i> uint_least32_t;
-   typedef <i>unsigned integer type</i> uint_least64_t;
-
-   // Greatest-width integer types
-   typedef <i>signed integer type</i>   intmax_t;
-   typedef <i>unsigned integer type</i> uintmax_t;
-
-   // optionally defined types
-
-   // Exact-width integer types
-   typedef <i>signed integer type</i>   int<i>N</i>_t;
-   typedef <i>unsigned integer type</i> uint<i>N</i>_t;
-
-   // Fastest minimum-width integer types for values
-   // of <i>N</i> other than 8, 16, 32, and 64
-   typedef <i>signed integer type</i>   uint_fast<i>N</i>_t;
-   typedef <i>unsigned integer type</i> uint_fast<i>N</i>_t;
-
-   // Minimum-width integer types for values
-   // of <i>N</i> other than 8, 16, 32, and 64
-   typedef <i>signed integer type</i>   uint_least<i>N</i>_t;
-   typedef <i>unsigned integer type</i> uint_least<i>N</i>_t;
-
-   // Integer types capable of holding object pointers
-   typedef <i>signed integer type</i>   intptr_t;
-   typedef <i>signed integer type</i>   intptr_t;
-
-}</pre>
-   </blockquote>
-   <p>
-
-[Note to editor: Remove all of the existing paragraph 1 from  cstdint.syn.]
-
-   </p>
-   <blockquote><p>
-     Table ??: Header <code>&lt;cstdint&gt;</code> synopsis
-	 </p>
-     <table border="1">
-       <thead>
-         <tr>
-           <th>Type</th>
-           <th colspan="3">Name(s)</th>
-         </tr>
-       </thead>
-       <tbody>
-         <tr>
-           <td rowspan="11"><b>Macros:</b></td>
-           <td><tt>INT<i>N</i>_MIN</tt></td>
-           <td><tt>INT<i>N</i>_MAX</tt></td>
-           <td><tt>UINT<i>N</i>_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>INT_FAST<i>N</i>_MIN</tt></td>
-           <td><tt>INT_FAST<i>N</i>_MAX</tt></td>
-           <td><tt>UINT_FAST<i>N</i>_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>INT_LEAST<i>N</i>_MIN</tt></td>
-           <td><tt>INT_LEAST<i>N</i>_MAX</tt></td>
-           <td><tt>UINT_LEAST<i>N</i>_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>INTPTR_MIN</tt></td>
-           <td><tt>INTPTR_MAX</tt></td>
-           <td><tt>UINTPTR_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>INTMAX_MIN</tt></td>
-           <td><tt>INTMAX_MAX</tt></td>
-           <td><tt>UINTMAX_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>PTRDIFF_MIN</tt></td>
-           <td><tt>PTRDIFF_MAX</tt></td>
-           <td><tt>PTRDIFF_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>SIG_ATOMIC_MIN</tt></td>
-           <td><tt>SIG_ATOMIC_MAX</tt></td>
-           <td><tt>SIZE_MAX</tt></td>
-         </tr>
-         <tr>
-           <td><tt>WCHAR_MIN</tt></td>
-           <td><tt>WCHAR_MAX</tt></td>
-         <td></td>
-         </tr>
-         <tr>
-           <td><tt>WINT_MIN</tt></td>
-           <td><tt>WINT_MAX</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td><tt>INT<i>N</i>_C()</tt></td>
-           <td><tt>UINT<i>N</i>_C()</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td><tt>INTMAX_C()</tt></td>
-           <td><tt>UINTMAX_C()</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td rowspan="5"><b>Types:</b></td>
-           <td><tt>int<i>N</i>_t</tt></td>
-           <td><tt>uint<i>N</i>_t</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td><tt>int_fast<i>N</i>_t</tt></td>
-           <td><tt>uint_fast<i>N</i>_t</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td><tt>int_least<i>N</i>_t</tt></td>
-           <td><tt>uint_least<i>N</i>_t</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td><tt>intptr_t</tt></td>
-           <td><tt>uintptr_t</tt></td>
-           <td></td>
-         </tr>
-         <tr>
-           <td><tt>intmax_t</tt></td>
-           <td><tt>uintmax_t</tt></td>
-           <td></td>
-         </tr>
-       </tbody>
-     </table>
-   </blockquote>
- 
-
-
-
-
-<hr>
-<h3><a name="849"></a>849. missing type traits to compute root class and derived class of types in a class hierachy</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2008-06-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The type traits library contains various traits to dealt with
-polymorphic types, e.g. <tt>std::has_virtual_destructor</tt>, <tt>std::is_polymorphic</tt>
-and <tt>std::is_base_of</tt>. However, there is no way to compute the unique
-public base class of a type  if such  one exists.  Such a trait could be
-very useful if one needs to instantiate a specialization made for the
-root class whenever a derived class is passed as parameter. For example,
-imagine that you wanted to specialize <tt>std::hash</tt> for a class
-hierarchy---instead of specializing each class, you could specialize the
-<tt>std::hash&lt;root_class&gt;</tt> and provide a partial specialization that worked
-for all derived classes.
-</p>
-
-<p>
-This ability---to specify operations in terms of their equivalent in the
-root class---can be done with e.g. normal functions, but there is,
-AFAIK, no way to do it for class templates. Being able to access
-compile-time information about the type-hierachy can be very powerful,
-and I therefore also suggest traits that computes the directly derived
-class whenever that is possible.
-</p>
-
-<p>
-If the computation can not be done, the traits should fall back on an
-identity transformation. I expect this gives the best overall usability.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following to the synopsis in 20.10.2 [meta.type.synop] under "other transformations":
-</p>
-
-<blockquote><pre>
-template&lt; class T &gt; struct direct_base_class;
-template&lt; class T &gt; struct direct_derived_class;
-template&lt; class T &gt; struct root_base_class;
-</pre></blockquote>
-
-<p>
-Add three new entries to table 51 (20.10.7.6 [meta.trans.other]) with the following content
-</p>
-
-<blockquote>
-<table border="1">
-<tr>
-<th>Template</th><th>Condition</th><th>Comments</th>
-</tr>
-<tr>
-<td><tt>template&lt; class T &gt; struct direct_base_class;</tt></td>
-<td><tt>T</tt> shall be a complete type.</td>
-<td>The member typedef <tt>type</tt> shall equal the accessible unambiguous direct base class of <tt>T</tt>.
-If no such type exists, the member typedef <tt>type</tt> shall equal <tt>T</tt>.</td>
-</tr>
-<tr>
-<td><tt>template&lt; class T &gt; struct direct_derived_class;</tt></td>
-<td><tt>T</tt> shall be a complete type.</td>
-<td>The member typedef <tt>type</tt> shall equal the unambiguous type which has <tt>T</tt>
-as an accessible unambiguous direct base class. If no such type exists, the member typedef
-<tt>type</tt> shall equal <tt>T</tt>.</td>
-</tr>
-<tr>
-<td><tt>template&lt; class T &gt; struct root_base_class;</tt></td>
-<td><tt>T</tt> shall be a complete type.</td>
-<td>The member typedef <tt>type</tt> shall equal the accessible unambiguous most indirect base class of
-<tt>T</tt>. If no such type exists, the member typedef type shall equal <tt>T</tt>.</td>
-</tr>
-</table>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-2008-9-16 San Francisco:  Issue pulled by author prior to being reviewed by the LWG.
-</p>
-
-
-
-
-<hr>
-<h3><a name="855"></a>855. capacity() and reserve() for deque?</h3>
-<p><b>Section:</b> 23.3.3.3 [deque.capacity] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Herv&eacute; Br&ouml;nnimann <b>Opened:</b> 2008-06-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.capacity">issues</a> in [deque.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The main point is that <tt>capacity</tt> can be viewed as a mechanism to  
-guarantee the validity of <tt>iterators</tt> when only <tt>push_back/pop_back</tt>
-operations are used.  For <tt>vector</tt>, this goes with reallocation.  For  
-<tt>deque</tt>, this is a bit more subtle:  <tt>capacity()</tt> of a <tt>deque</tt> may shrink,  
-whereas that of <tt>vector</tt> doesn't.   In a circular buffer impl. of the  
-map, as Howard did, there is very similar notion of capacity: as long  
-as <tt>size()</tt> is less than <tt>B * (</tt>total size of the map <tt>- 2)</tt>, it is  
-guaranteed that no <tt>iterator</tt> is invalidated after any number of  
-<tt>push_front/back</tt> and <tt>pop_front/back</tt> operations.  But this does not  
-hold for other implementations.
-</p>
-<p>
-Still, I believe, <tt>capacity()</tt> can be defined by <tt>size() +</tt>  how many  
-<tt>push_front/back</tt> minus <tt>pop_front/back</tt> that can be performed before  
-terators are invalidated.  In a classical impl., <tt>capacity() = size()
-+ </tt> the min distance to either "physical" end of the deque (i.e.,  
-counting the empty space in the last block plus all the blocks until  
-the end of the map of block pointers).  In Howard's circular buffer  
-impl., <tt>capacity() = B * (</tt>total size of the map <tt>- 2)</tt> still works with  
-this definition, even though the guarantee could be made stronger.
-</p>
-<p>
-A simple picture of a deque:
-</p>
-<blockquote><pre>
-A-----|----|-----|---F+|++++|++B--|-----|-----Z
-</pre></blockquote>
-<p>
-(A,Z mark the beginning/end, | the block boundaries, F=front, B=back,  
-and - are uninitialized, + are initialized)
-In that picture:  <tt>capacity = size() + min(dist(A,F),dist(B,Z)) = min 
-(dist(A,B),dist(F,Z))</tt>.
-</p>
-<p>
-<tt>Reserve(n)</tt> can grow the map of pointers and add possibly a number of  
-empty blocks to it, in order to guarantee that the next <tt>n-size()
-push_back/push_front</tt> operations will not invalidate iterators, and  
-also will not allocate (i.e. cannot throw).  The second guarantee is  
-not essential and can be left as a QoI.  I know well enough existing  
-implementations of <tt>deque</tt> (sgi/stl, roguewave, stlport, and  
-dinkumware) to know that either can be implemented with no change to  
-the existing class layout and code, and only a few modifications if  
-blocks are pre-allocated (instead of always allocating a new block,  
-check if the next entry in the map of block pointers is not zero).
-</p>
-<p>
-Due to the difference with <tt>vector</tt>, wording is crucial.  Here's a  
-proposed wording to make things concrete;  I tried to be reasonably  
-careful but please double-check me:
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Hans: should the Returns clause for capacity read "1 Returns: A lower
-bound..." rather than "1 Returns: An upper bound..."
-</p>
-<p>
-Howard: maybe what's needed is capacity_front and capacity_back. In
-fact, I think I implemented a deque that had these members as
-implementation details.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add new signatures to synopsis in 23.3.3 [deque]:
-</p>
-
-<blockquote><pre>
-size_type capacity() const;
-bool reserve(size_type n);
-</pre></blockquote>
-
-<p>
-Add new signatures to 23.3.3.3 [deque.capacity]:
-</p>
-
-<blockquote>
-<pre>
-size_type capacity() const;
-</pre>
-<blockquote>
-<p>
-1 <i>Returns:</i> An upper bound on <tt>n + max(n_f - m_f, n_b - m_b)</tt>  such  
-that, for any sequence of <tt>n_f push_front</tt>, <tt>m_f pop_front</tt>, <tt>n_b  
-push_back</tt>, and <tt>m_b pop_back</tt> operations, interleaved in any order,  
-starting with the current <tt>deque</tt> of size <tt>n</tt>, the <tt>deque</tt> does not  
-invalidate any of its iterators except to the erased elements.
-</p>
-<p>
-2 <i>Remarks:</i>  Unlike a <tt>vector</tt>'s capacity, the capacity of a <tt>deque</tt> can  
-decrease after a sequence of insertions at both ends, even if none of  
-the operations caused the <tt>deque</tt> to invalidate any of its iterators  
-except to the erased elements.
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-bool reserve(size_type n);
-</pre>
-<blockquote>
-<p>
-2 <i>Effects:</i> A directive that informs a <tt>deque</tt> of a planned sequence of  
-<tt>push_front</tt>, <tt>pop_front</tt>, <tt>push_back</tt>, and <tt>pop_back</tt> operations, so that it  
-can manage iterator invalidation accordingly. After <tt>reserve()</tt>,  
-<tt>capacity()</tt> is greater or equal to the argument of <tt>reserve</tt> if this  
-operation returns <tt>true</tt>; and equal to the previous value of <tt>capacity()</tt>
-otherwise.  If an exception is thrown, there are no effects.
-</p>
-<p>
-3 <i>Returns:</i> <tt>true</tt> if iterators are invalidated as a result of this  
-operation, and false otherwise.
-</p>
-<p>
-4 <i>Complexity:</i> It does not change the size of the sequence and takes  
-at most linear time in <tt>n</tt>.
-</p>
-<p>
-5 <i>Throws:</i> <tt>length_error</tt> if <tt>n &gt; max_size()</tt>.
-</p>
-<p>
-6 <i>Remarks:</i> It is guaranteed that no invalidation takes place during a  
-sequence of <tt>insert</tt> or <tt>erase</tt> operations at either end that happens  
-after a call to <tt>reserve()</tt> except to the erased elements, until the  
-time when an insertion would make <tt>max(n_f-m_f, n_b-m_b)</tt> larger than  
-<tt>capacity()</tt>, where <tt>n_f</tt> is the number of <tt>push_front</tt>, <tt>m_f</tt> of <tt>pop_front</tt>,  
-<tt>n_b</tt> of <tt>push_back</tt>, and <tt>m_b</tt> of <tt>pop_back</tt> operations since the call to  
-<tt>reserve()</tt>.
-</p>
-<p>
-7        An implementation is free to pre-allocate buffers so as to  
-offer the additional guarantee that no exception will be thrown  
-during such a sequence other than by the element constructors.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-And 23.3.3.4 [deque.modifiers] para 1, can be enhanced:
-</p>
-
-<blockquote><p>
-1 <i>Effects:</i> An insertion in the middle of the deque invalidates all the iterators and references to elements of the
-deque. An insertion at either end of the deque invalidates all the iterators to the deque,
-<ins>unless provisions have been made with reserve,</ins>
-but has no effect on the validity of references to elements of the deque.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Complication outweighs the benefit.</p>
-
-
-
-
-
-<hr>
-<h3><a name="862"></a>862. Impossible complexity for 'includes'</h3>
-<p><b>Section:</b> 25.4.5.1 [includes] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#includes">issues</a> in [includes].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 25.4.5.1 [includes] the complexity is "at most -1 comparisons" if passed
-two empty ranges.  I don't know how to perform a negative number of
-comparisions!
-</p>
-
-<p>
-This same issue also applies to:
-</p>
-
-<ul>
-<li><tt>set_union</tt></li>
-<li><tt>set_intersection</tt></li>
-<li><tt>set_difference</tt></li>
-<li><tt>set_symmetric_difference</tt></li>
-<li><tt>merge</tt></li>
-</ul>
-
-<p><i>[
-2009-03-30 Beman adds:
-]</i></p>
-
-
-<blockquote><p>
-Suggest NAD. The complexity of empty ranges is -1 in other places in the
-standard. See 25.4.4 [alg.merge] <tt>merge</tt> and
-<tt>inplace_merge</tt>, and <tt>forward_list</tt> merge, for example.
-The time and effort to find and fix all places in the standard where
-empty range[s] result in negative complexity isn't worth the very
-limited benefit.
-</p></blockquote>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I'm not happy with NAD if we can find a simple solution.
-</p>
-<p>
-How about adding a rider somewhere in clause 17 suggesting that complexities
-that specify a negative number of operations are treated as specifying zero
-operations?  That should generically solve the issue without looking for
-further cases.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Pete to provide "straightforward" wording.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Recommend NAD.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="863"></a>863. What is the state of a stream after close() succeeds</h3>
-<p><b>Section:</b> 27.9.1 [fstreams] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 2008-07-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fstreams">issues</a> in [fstreams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Suppose writing to an <tt>[o]fstream</tt> fails and you later close the <tt>stream</tt>.
-The <tt>overflow()</tt> function is called to flush the buffer (if it exists).
-Then the file is unconditionally closed, as if by calling <tt>flcose</tt>.
-</p>
-<p>
-If either <tt>overflow</tt> or <tt>fclose</tt> fails, <tt>close()</tt> reports failure, and clearly
-the <tt>stream</tt> should be in a failed or bad state.
-</p>
-<p>
-Suppose the buffer is empty or non-existent (so that <tt>overflow()</tt> does not
-fail), and <tt>fclose</tt> succeeds. The <tt>close()</tt> function reports success, but
-what is the state of the <tt>stream</tt>?
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Tom's impression is that the issue is about the <tt>failbit</tt>, etc.
-</p>
-<p>
-Bill responds that the stream is now closed,
-and any status bits remain unchanged.
-</p>
-<p>
-See the description of <tt>close()</tt> in 27.9.1.17 [fstream.members].
-</p>
-<p>
-We prefer not to add wording to say that nothing changes.
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="864"></a>864. Defect in atomic wording</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2008-07-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There's an error in 29.6 [atomics.types.operations]/p9:
-</p>
-
-<blockquote>
-<pre>
-C atomic_load(const volatile A * object);
-C atomic_load_explicit(const volatile A * object, memory_order);
-C A ::load(memory_order order = memory_order_seq_cst) const volatile;
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> The <tt>order</tt> argument shall not be <tt>memory_order_acquire</tt> nor
-<tt>memory_order_acq_rel</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-I believe that this should state
-</p>
-<blockquote><p>
-shall not be <tt>memory_order_release</tt>.
-</p></blockquote>
-
-<p>
-There's also an error in 29.6 [atomics.types.operations]/p17:
-</p>
-
-<blockquote><p>
-... When only one <tt>memory_order</tt> argument is supplied, the value of success
-is <tt>order</tt>, and
-the value of failure is <tt>order</tt> except that a value of
-<tt>memory_order_acq_rel</tt> shall be replaced by the value
-<tt>memory_order_require</tt> ...
-</p></blockquote>
-<p>
-I believe this should state
-</p>
-<blockquote><p>
-shall be replaced by the value <tt>memory_order_acquire</tt> ...
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 29.6 [atomics.types.operations]/p9:
-</p>
-
-<blockquote>
-<pre>
-C atomic_load(const volatile A * object);
-C atomic_load_explicit(const volatile A * object, memory_order);
-C A ::load(memory_order order = memory_order_seq_cst) const volatile;
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> The <tt>order</tt> argument shall not be <del><tt>memory_order_acquire</tt></del>
-<ins><tt>memory_order_release</tt></ins> nor <tt>memory_order_acq_rel</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 29.6 [atomics.types.operations]/p17:
-</p>
-
-<blockquote><p>
-... When only one <tt>memory_order</tt> argument is supplied, the value of success
-is <tt>order</tt>, and
-the value of failure is <tt>order</tt> except that a value of
-<tt>memory_order_acq_rel</tt> shall be replaced by the value
-<del><tt>memory_order_require</tt></del> <ins><tt>memory_order_acquire</tt></ins> ...
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Already fixed by the time the LWG processed it.</p>
-
-
-
-
-
-<hr>
-<h3><a name="867"></a>867. Valarray and value-initialization</h3>
-<p><b>Section:</b> 26.6.2.2 [valarray.cons] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cons">issues</a> in [valarray.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From 26.6.2.2 [valarray.cons], paragraph 2:
-</p>
-
-<blockquote><pre>
-explicit  valarray(size_t);
-</pre>
-<blockquote><p>
-The array created by this constructor has a length equal to the value of the argument. The elements
-of the array are constructed using the default constructor for the instantiating type <tt>T</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-The problem is that the most obvious <tt>T</tt>s for <tt>valarray</tt> are <tt>float</tt>
-and <tt>double</tt>, they don't have a default constructor. I guess the intent is to value-initialize
-the elements, so I suggest replacing:
-</p>
-
-<blockquote><p>
-The elements of the array are constructed using the default constructor for the instantiating type <tt>T</tt>.
-</p></blockquote>
-<p>
-with
-</p>
-<blockquote><p>
-The elements of the array are value-initialized.
-</p></blockquote>
-
-<p>
-There is another reference to the default constructor of <tt>T</tt> in the non-normative note in paragraph 9.
-That reference should also be replaced. (The normative wording in paragraph 8 refers to <tt>T()</tt>
-and so it doesn't need changes).
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.6.2.2 [valarray.cons], paragraph 2:
-</p>
-
-<blockquote>
-<pre>
-explicit  valarray(size_t);
-</pre>
-<blockquote><p>
-The array created by this constructor has a length equal to the value of the argument. The elements
-of the array are <del>constructed using the default constructor for the instantiating type <tt>T</tt></del>
-<ins>value-initialized (8.5 [dcl.init])</ins>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 26.6.2.8 [valarray.members], paragraph 9:
-</p>
-
-<blockquote><p>
-[<i>Example:</i> If the argument has the value -2, the first two elements of the result will be <del>constructed using the 
-default constructor</del>
-<ins>value-initialized (8.5 [dcl.init])</ins>;
-the third element of the result will be assigned the value of the first element of the argument; etc. <i>-- end example</i>]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="873"></a>873. signed integral type and unsigned integral type are not clearly defined</h3>
-<p><b>Section:</b> 3.9.1 [basic.fundamental] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Travis Vitek <b>Opened:</b> 2008-06-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-    <p>
-      Neither the term "signed integral type" nor the term "unsigned
-      integral type" is defined in the core language section of the
-      standard, therefore the library section should avoid its use.  The
-      terms <i>signed integer type</i> and <i>unsigned integer type</i> are
-      indeed defined (in 3.9.1 [basic.fundamental]), thus the usages should be
-      replaced accordingly.
-    </p>
-
-    <p>
-      Note that the key issue here is that "signed" + "integral type" !=
-      "signed integral type".
-      
-      The types <code>bool</code>, <code>char</code>, <code>char16_t</code>,
-      <code>char32_t</code> and <code>wchar_t</code> are all listed as
-      integral types, but are neither of <i>signed integer type</i> or
-      <i>unsigned integer type</i>. According to 3.9 [basic.types] p7, a synonym for
-      integral type is <i>integer type</i>.
-      
-      Given this, one may choose to assume that an <i>integral type</i> that
-      can represent values less than zero is a <i>signed integral type</i>.
-      Unfortunately this can cause ambiguities.
-      
-      As an example, if <code>T</code> is <code>unsigned char</code>, the
-      expression <code>make_signed&lt;T&gt;::type</code>, is supposed to
-      name a signed integral type. There are potentially two types that
-      satisfy this requirement, namely <code>signed char</code> and
-      <code>char</code> (assuming <code>CHAR_MIN &lt; 0</code>).
-    </p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Plum, Sebor to review.
-</p></blockquote>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution needs to be "conceptualized". Currently we have
-in  [concept.support] only concept <tt>IntegralType</tt>
-for all "integral types", thus indeed the current <tt>Container</tt>
-concept and Iterator concepts are sufficiently satisfied with "integral
-types". If the changes are applied, we might ask core for concept
-<tt>BilateralIntegerType</tt> and add proper restrictions to the library
-concepts.
-</p></blockquote>
-
-  
-
-  <p><b>Proposed resolution:</b></p>
-    <p>
-      I propose to use the terms "signed integer type" and "unsigned integer
-      type" in place of "signed integral type" and "unsigned integral type"
-      to eliminate such ambiguities.
-    </p>
-    
-    <p>
-      The proposed change makes it absolutely clear that the difference
-      between two pointers cannot be <tt>char</tt> or <tt>wchar_t</tt>,
-      but could be any of the signed integer types.
-      5.7 [expr.add] paragraph 6...
-    </p>
-    <blockquote>
-      <p>
-      </p>
-        <ol>
-          <li>
-            When two pointers to elements of the same array object are
-            subtracted, the result is the difference of the subscripts of
-            the two array elements. The type of the result is an
-            implementation-defined <del>signed integral
-            type</del><ins>signed integer type</ins>; this type shall be the
-            same type that is defined as <code>std::ptrdiff_t</code> in the
-            <code>&lt;cstdint&gt;</code> header (18.1)...
-          </li>
-        </ol>
-    </blockquote>
-
-    <p>
-      The proposed change makes it clear that <tt>X::size_type</tt> and
-      <tt>X::difference_type</tt> cannot be <tt>char</tt> or
-      <tt>wchar_t</tt>, but could be one of the signed or unsigned integer
-      types as appropriate.
-      17.6.3.5 [allocator.requirements] table 40...
-    </p>
-    <blockquote><p>
-      Table 40: Allocator requirements
-	  </p>
-      <table border="1">
-        <thead>
-          <tr>
-            <th>expression</th>
-            <th>return type</th>
-            <th>assertion/note/pre/post-condition</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td><tt>X::size_type</tt></td>
-            <td>
-              <del>unsigned integral type</del>
-              <ins>unsigned integer type</ins>
-            </td>
-            <td>a type that can represent the size of the largest object in
-            the allocation model.</td>
-          </tr>
-          <tr>
-            <td><tt>X::difference_type</tt></td>
-            <td>
-              <del>signed integral type</del>
-              <ins>signed integer type</ins>
-            </td>
-            <td>a type that can represent the difference between any two
-            pointers in the allocation model.</td>
-          </tr>
-        </tbody>
-      </table>
-    </blockquote>
-
-    <p>
-      The proposed change makes it clear that <tt>make_signed&lt;T&gt;::type</tt>
-      must be one of the signed integer types as defined in 3.9.1. Ditto for
-      <tt>make_unsigned&lt;T&gt;type</tt> and unsigned integer types.
-      20.10.7.3 [meta.trans.sign] table 48...
-    </p>
-    <blockquote><p>
-      Table 48: Sign modifications
-	  </p>
-      <table border="1">
-        <thead>
-          <tr>
-            <th>Template</th>
-            <th>Comments</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td>
-              <tt>template &lt;class T&gt; struct make_signed;</tt>
-            </td>
-            <td>
-              If <code>T</code> names a (possibly cv-qualified) <del>signed
-              integral type</del><ins>signed integer type</ins> (3.9.1) then
-              the member typedef <code>type</code> shall name the type
-              <code>T</code>; otherwise, if <code>T</code> names a (possibly
-              cv-qualified) <del>unsigned integral type</del><ins>unsigned
-              integer type</ins> then <code>type</code> shall name the
-              corresponding <del>signed integral type</del><ins>signed
-              integer type</ins>, with the same cv-qualifiers as
-              <code>T</code>; otherwise, <code>type</code> shall name the
-              <del>signed integral type</del><ins>signed integer type</ins>
-              with the smallest rank (4.13) for which <code>sizeof(T) ==
-              sizeof(type)</code>, with the same cv-qualifiers as
-              <code>T</code>.
-
-              <i>Requires:</i> <code>T</code> shall be a (possibly
-              cv-qualified) integral type or enumeration but not a
-              <code>bool</code> type.
-            </td>
-          </tr>
-          <tr>
-            <td>
-              <tt>template &lt;class T&gt; struct make_unsigned;</tt>
-            </td>
-            <td>
-              If <code>T</code> names a (possibly cv-qualified)
-              <del>unsigned integral type</del><ins>unsigned integer
-              type</ins> (3.9.1) then the member typedef <code>type</code>
-              shall name the type <code>T</code>; otherwise, if
-              <code>T</code> names a (possibly cv-qualified) <del>signed
-              integral type</del><ins>signed integer type</ins> then
-              <code>type</code> shall name the corresponding <del>unsigned
-              integral type</del><ins>unsigned integer type</ins>, with the
-              same cv-qualifiers as <code>T</code>; otherwise,
-              <code>type</code> shall name the <del>unsigned integral
-              type</del><ins>unsigned integer type</ins> with the smallest
-              rank (4.13) for which <code>sizeof(T) == sizeof(type)</code>,
-              with the same cv-qualifiers as <code>T</code>.
-
-              <i>Requires:</i> <code>T</code> shall be a (possibly
-              cv-qualified) integral type or enumeration but not a
-              <code>bool</code> type.
-            </td>
-          </tr>
-        </tbody>
-      </table>
-    </blockquote>
-
-
-    <p>
-      Note: I believe that the basefield values should probably be
-      prefixed with <tt>ios_base::</tt> as they are in 22.4.2.2.2 [facet.num.put.virtuals]
-
-      The listed virtuals are all overloaded on signed and unsigned integer
-      types, the new wording just maintains consistency.
-
-      22.4.2.1.2 [facet.num.get.virtuals] table 78...
-    </p>
-    <blockquote><p>
-      Table 78: Integer Conversions
-	  </p>
-      <table border="1">
-        <thead>
-          <tr>
-            <th>State</th>
-            <th><tt>stdio</tt> equivalent</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td><tt>basefield == oct</tt></td>
-            <td><tt>%o</tt></td>
-          </tr>
-          <tr>
-            <td><tt>basefield == hex</tt></td>
-            <td><tt>%X</tt></td>
-          </tr>
-          <tr>
-            <td><tt>basefield == 0</tt></td>
-            <td><tt>%i</tt></td>
-          </tr>
-          <tr>
-            <td><del>signed integral type</del><ins>signed integer
-            type</ins></td>
-            <td><tt>%d</tt></td>
-          </tr>
-          <tr>
-            <td><del>unsigned integral type</del><ins>unsigned integer
-            type</ins></td>
-            <td><tt>%u</tt></td>
-          </tr>
-        </tbody>
-      </table>
-    </blockquote>
-
-    
-    
-    <p>
-      Rationale is same as above.
-      22.4.2.2.2 [facet.num.put.virtuals] table 80...
-    </p>
-    <blockquote><p>
-      Table 80: Integer Conversions
-	  </p>
-      <table border="1">
-        <thead>
-          <tr>
-            <th>State</th>
-            <th><tt>stdio</tt> equivalent</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td><tt>basefield == ios_base::oct</tt></td>
-            <td><tt>%o</tt></td>
-          </tr>
-          <tr>
-            <td><tt>(basefield == ios_base::hex) &amp;&amp;
-            !uppercase</tt></td>
-            <td><tt>%x</tt></td>
-          </tr>
-          <tr>
-            <td><tt>(basefield == ios_base::hex)</tt></td>
-            <td><tt>%X</tt></td>
-          </tr>
-          <tr>
-            <td><tt>basefield == 0</tt></td>
-            <td><tt>%i</tt></td>
-          </tr>
-          <tr>
-            <td>for a <del>signed integral type</del><ins>signed integer
-            type</ins></td>
-            <td><tt>%d</tt></td>
-          </tr>
-          <tr>
-            <td>for a <del>unsigned integral type</del><ins>unsigned integer
-            type</ins></td>
-            <td><tt>%u</tt></td>
-          </tr>
-        </tbody>
-      </table>
-    </blockquote>
-
-    
-    <p>
-      23.2 [container.requirements] table 80...
-    </p>
-    <blockquote><p>
-      Table 89: Container requirements
-	  </p>
-      <table border="1">
-        <thead>
-          <tr>
-            <th>expression</th>
-            <th>return type</th>
-            <th>operational semantics</th>
-            <th>assertion/note/pre/post-condition</th>
-            <th>complexity</th>
-          </tr>
-        </thead>
-        <tbody>
-          <tr>
-            <td><tt>X::difference_type</tt></td>
-            <td><del>signed integral type</del><ins>signed integer type</ins></td>
-            <td>&nbsp;</td>
-            <td>is identical to the difference type of <tt>X::iterator</tt>
-            and <tt>X::const_iterator</tt></td>
-            <td>compile time</td>
-          </tr>
-          <tr>
-            <td><tt>X::size_type</tt></td>
-            <td><del>unsigned integral type</del><ins>unsigned integer type</ins></td>
-            <td>&nbsp;</td>
-            <td><tt>size_type</tt> can represent any non-negative value of
-            <tt>difference_type</tt></td>
-            <td>compile time</td>
-          </tr>
-        </tbody>
-      </table>
-    </blockquote>
-
-    <p>
-      X [iterator.concepts] paragraph 1...
-    </p>
-    <blockquote><p>
-      Iterators are a generalization of pointers that allow a C++ program to
-      work with different data structures (containers) in a uniform manner.
-      To be able to construct template algorithms that work correctly and
-      efficiently on different types of data structures, the library
-      formalizes not just the interfaces but also the semantics and
-      complexity assumptions of iterators. All input iterators
-      <code>i</code> support the expression <code>*i</code>, resulting in a
-      value of some class, enumeration, or built-in type <code>T</code>,
-      called the <i>value type</i> of the iterator. All output iterators
-      support the expression <code>*i = o</code> where <code>o</code> is a
-      value of some type that is in the set of types that are
-      <i>writable</i> to the particular iterator type of <code>i</code>. All
-      iterators <code>i</code> for which the expression <code>(*i).m</code>
-      is well-defined, support the expression <code>i->m</code> with the
-      same semantics as <code>(*i).m</code>. For every iterator type
-      <code>X</code> for which equality is defined, there is a corresponding
-      <del>signed integral type</del> <ins>signed integer type</ins> called
-      the <i>difference type</i> of the iterator.
-    </p></blockquote>
-    
-    <p>
-      I'm a little unsure of this change. Previously this paragraph would
-      allow instantiations of <tt>linear_congruential_engine</tt> on
-      <tt>char</tt>, <tt>wchar_t</tt>, <tt>bool</tt>, and other types. The
-      new wording prohibits this.
-      26.5.3.1 [rand.eng.lcong] paragraph 2...
-    </p>
-    <blockquote><p>
-      The template parameter <code>UIntType</code> shall denote an
-      <del>unsigned integral type</del><ins>unsigned integer type</ins>
-      large enough to store values as large as <code>m - 1</code>. If the
-      template parameter <code>m</code> is 0, the modulus <code>m</code>
-      used throughout this section 26.4.3.1 is
-      <code>numeric_limits&lt;result_type&gt;::max()</code> plus 1.  [Note:
-      The result need not be representable as a value of type
-      <code>result_type</code>. --end note] Otherwise, the following
-      relations shall hold: <code>a &lt; m</code> and <code>c &lt;
-      m</code>.
-    </p></blockquote>
-    
-    <p>
-      Same rationale as the previous change.
-      X [rand.adapt.xor] paragraph 6...
-    </p>
-    <blockquote><p>
-      Both <code>Engine1::result_type</code> and
-      <code>Engine2::result_type</code> shall denote (possibly different)
-      <del>unsigned integral types</del><ins>unsigned integer types</ins>.
-      The member <i>result_type</i> shall denote either the type
-      <i>Engine1::result_type</i> or the type <i>Engine2::result_type</i>,
-      whichever provides the most storage according to clause 3.9.1.
-    </p></blockquote>
-    
-    <p>
-      26.5.7.1 [rand.util.seedseq] paragraph 7...
-    </p>
-    <blockquote><p>
-      <i>Requires:</i><code>RandomAccessIterator</code> shall meet the
-      requirements of a random access iterator (24.1.5) such that
-      <code>iterator_traits&lt;RandomAccessIterator&gt;::value_type</code>
-      shall denote an <del>unsigned integral type</del><ins>unsigned integer
-      type</ins> capable of accomodating 32-bit quantities.  
-    </p></blockquote>
-
-    <p>
-      By making this change, integral types that happen to have a signed
-      representation, but are not signed integer types, would no longer be
-      required to use a two's complement representation. This may go against
-      the original intent, and should be reviewed.
-      29.6 [atomics.types.operations] paragraph 24...
-    </p>
-    <blockquote><p>
-      <i>Remark:</i> For <del>signed integral types</del><ins>signed integer
-      types</ins>, arithmetic is defined using two's complement
-      representation. There are no undefined results. For address types, the
-      result may be an undefined address, but the operations otherwise have
-      no undefined behavior.
-    </p></blockquote>
-    
-  
-
-
-
-
-<hr>
-<h3><a name="879"></a>879. Atomic load const qualification</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alexander Chemeris <b>Opened:</b> 2008-08-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>atomic_address</tt> type and <tt>atomic&lt;T*&gt;</tt> specialization provide atomic
-updates to pointers.  However, the current specification requires
-that the types pointer be to non-const objects.  This restriction
-is unnecessary and unintended.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Move to review.  Lawrence will first check with Peter whether the
-current examples are sufficient, or whether they need to be expanded to
-include all cases.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence will handle all issues relating to atomics in a single paper.
-</p>
-<p>
-LWG will defer discussion on atomics until that paper appears.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-08-17 Handled by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2925.html">N2925</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Editorial.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add const qualification to the pointer values of the <tt>atomic_address</tt>
-and <tt>atomic&lt;T*&gt;</tt> specializations.  E.g.
-</p>
-
-<blockquote><pre>
-typedef struct atomic_address {
-   void store(<ins>const</ins> void*, memory_order = memory_order_seq_cst) volatile;
-   void* exchange( <ins>const</ins> void*, memory_order = memory_order_seq_cst) volatile;
-   bool compare_exchange( <ins>const</ins> void*&amp;, <ins>const</ins> void*,
-                          memory_order, memory_order) volatile;
-   bool compare_exchange( <ins>const</ins> void*&amp;, <ins>const</ins> void*,
-                          memory_order = memory_order_seq_cst ) volatile;
-   void* operator=(<ins>const</ins> void*) volatile;
-} atomic_address;
-
-void atomic_store(volatile atomic_address*, <ins>const</ins> void*);
-void atomic_store_explicit(volatile atomic_address*, <ins>const</ins> void*,
-                          memory_order);
-void* atomic_exchange(volatile atomic_address*<ins>, const void*</ins>);
-void* atomic_exchange_explicit(volatile atomic_address*, <ins>const</ins> void*,
-                              memory_order);
-bool atomic_compare_exchange(volatile atomic_address*,
-                            <ins>const</ins> void**, <ins>const</ins> void*);
-bool atomic_compare_exchange_explicit(volatile atomic_address*,
-                                     <ins>const</ins> void**, <ins>const</ins> void*,
-                                     memory_order, memory_order);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="887"></a>887. issue with condition::wait_...</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Posix/C++ working group has identified an inconsistency between
-Posix and the C++ working draft in that Posix requires the clock to be
-identified at creation, whereas C++ permits identifying the clock at the
-call to wait.  The latter cannot be implemented with the former.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard recommends NAD with the following explanation:
-</p>
-
-<p>
-The intent of the current wording is for the <tt>condtion_variable::wait_until</tt>
-be able to handle user-defined clocks as well as clocks the system knows about.
-This can be done by providing overloads for the known clocks, and another
-overload for unknown clocks which synchs to a known clock before waiting.
-For example:
-</p>
-
-<blockquote><pre>
-template &lt;class Duration&gt;
-bool
-condition_variable::wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                               const chrono::time_point&lt;chrono::system_clock, Duration&gt;&amp; abs_time)
-{
-    using namespace chrono;
-    nanoseconds d = __round_up&lt;nanoseconds&gt;(abs_time.time_since_epoch());
-    __do_timed_wait(lock.mutex()-&gt;native_handle(), time_point&lt;system_clock, nanoseconds&gt;(d));
-    return system_clock::now() &lt; abs_time;
-}
-
-template &lt;class Clock, class Duration&gt;
-bool
-condition_variable::wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                               const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time)
-{
-    using namespace chrono;
-    system_clock::time_point    s_entry = system_clock::now();
-    typename Clock::time_point  c_entry = Clock::now();
-    nanoseconds dn = __round_up&lt;nanoseconds&gt;(abs_time.time_since_epoch() -
-                                              c_entry.time_since_epoch());
-    __do_timed_wait(lock.mutex()-&gt;native_handle(), s_entry + dn);
-    return Clock::now() &lt; abs_time;
-}
-</pre></blockquote>
-
-<p>
-In the above example, <tt>system_clock</tt> is the only clock which the underlying
-condition variable knows how to deal with.  One overload just passes that clock
-through.  The second overload (approximately) converts the unknown clock into
-a <tt>system_clock  time_point</tt> prior to passing it down to the native
-condition variable.
-</p>
-
-<p>
-On Posix systems vendors are free to add implementation defined constructors which
-take a clock.  That clock can be stored in the condition_variable, and converted
-to (or not as necessary) as shown above.
-</p>
-
-<p>
-If an implementation defined constructor takes a clock (for example), then part
-of the semantics for that implementation defined ctor might include that a
-<tt>wait_until</tt> using a clock other than the one constructed with results
-in an error (exceptional condition) instead of a conversion to the stored clock.
-Such a design is up to the vendor as once an implementation defined ctor is used,
-the vendor is free to specifiy the behavior of waits and/or notifies however
-he pleases (when the cv is constructed in an implementation defined manner).
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-"POSIX people will review the proposed NAD resolution at their upcoming NY
-meeting.
-</p>
-
-<p>
-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>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD.
-</p></blockquote>
-
-<p><i>[
-2009-07-18 Detlef reopens the issue:
-]</i></p>
-
-
-<blockquote>
-<p>
-On Friday afternoon in Frankfurt is was decided that 887 is NAD.
-This decision was mainly based on a sample implementation presented
-by Howard that implemented one clock on top of another.
-Unfortunately this implementation doesn't work for the probably most
-important case where a system has a monotonic clock and a real-time
-clock (or "wall time" clock):
-</p>
-<p>
-If the underlying "system_clock" is a monotonic clock, and
-the program waits on the real-time clock, and the real-time clock
-is set forward, the wait will unblock too late.
-</p>
-
-<p>
-If the underlying "system_clock" is a real-time clock, and the
-program waits on the monotonic clock, and the real-time clock
-is set back, the wait again will unblock too late.
-</p>
-
-<p>
-Sorry that I didn't remember this on Friday, but it was Friday
-afternoon after a busy week...
-</p>
-
-<p>
-So as the decision was made on a wrong asumption, I propose to re-open
-the issue.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-26 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Detlef correctly argues that <tt>condition_variable::wait_until</tt> could
-return "too late" in the context of clocks being adjusted during the wait.  I agree
-with his logic.  But I disagree that this makes this interface unimplementable
-on POSIX.
-</p>
-
-<p>
-The POSIX spec also does not guarantee that <tt>pthread_cond_timedwait</tt> does
-not return "too late" when clocks are readjusted during the wait.  Indeed, the
-POSIX specification lacks any requirements at all concerning how soon
-<tt>pthread_cond_timedwait</tt> returns after a time out.  This is evidently a
-QOI issue by the POSIX standard.  Here is a quote of the most relevant normative
-text concerning <tt>pthread_cond_timedwait</tt> found
-<a href="http://www.unix.org/single_unix_specification/">here</a>.
-</p>
-
-<blockquote><p>
-The <tt>pthread_cond_timedwait()</tt> function shall be equivalent to
-<tt>pthread_cond_wait()</tt>, except that an error is returned if the absolute
-time specified by <tt>abstime</tt> passes (that is, system time equals or exceeds
-<tt>abstime</tt>) before the condition <tt>cond</tt> is signaled or broadcasted, or if the
-absolute time specified by <tt>abstime</tt> has already been passed at the time
-of the call.
-</p></blockquote>
-
-<p>
-I.e. the POSIX specification speaks of the error code returned in case of a time
-out, but not on the timeliness of that return.
-</p>
-
-<p>
-Might this simply be an oversight, or minor defect in the POSIX specification?
-</p>
-
-<p>
-I do not believe so.  This same section goes on to say in <em>non-normative</em>
-text:
-</p>
-
-<blockquote><p>
-For cases when the system clock is advanced discontinuously by an
-operator, it is expected that implementations process any timed wait
-expiring at an intervening time as if that time had actually occurred.
-</p></blockquote>
-
-<p>
-Here is non-normative wording encouraging the implementation to ignore an advancing
-underlying clock and subsequently causing an early (spurious) return.  There is
-no wording at all which addresses Detlef's example of a "late return".  With
-<tt>pthread_cond_timedwait</tt> this would be caused by setting the system clock
-backwards.  It seems reasonable to assume, based on the wording that is already
-in the POSIX spec, that again, the discontinuously changed clock would be ignored
-by <tt>pthread_cond_timedwait</tt>. 
-</p>
-
-<p>
-A noteworthy difference between <tt>pthread_cond_timedwait</tt> and
-<tt>condition_variable::wait_until</tt> is that the POSIX spec appears to
-say that <tt>ETIMEDOUT</tt> should be returned if <tt>pthread_cond_timedwait</tt>
-returns because of timeout signal, whether or not the system clock was discontinuously
-advanced during the wait.  In contrast <tt>condition_variable::wait_until</tt>
-always returns:
-</p>
-
-<blockquote><pre>
-<tt>Clock::now() &lt; abs_time</tt>
-</pre></blockquote>
-
-<p>
-That is, the C++ spec requires that the clock be rechecked (detecting discontinuous
-adjustments during the wait) at the time of return.  <tt>condition_variable::wait_until</tt>
-may indeed return early or late.  But regardless it will return a value
-reflecting timeout status at the time of return (even if clocks have been adjusted).
-Of course the clock may be adjusted after the return value is computed but before the client has
-a chance to read the result of the return.  Thus there are no iron-clad guarantees
-here.
-</p>
-
-<p>
-<tt>condition_variable::wait_until</tt> (and <tt>pthread_cond_timedwait</tt>)
-is little more than a convenience function for making sure
-<tt>condition_variable::wait</tt> doesn't hang for an unreasonable amount of
-time (where the client gets to define "unreasonable").  I do not think it
-is in anyone's interest to try to make it into anything more than that.
-</p>
-
-<p>
-I maintain that this is a useful and flexible specification in the spirit of
-C++, and is implementable on POSIX.  The implementation technique described above
-is a reasonable approach.  There may also be higher quality approaches.  This
-specification, like the POSIX specification, gives a wide latitude for QOI.
-</p>
-
-<p>
-I continue to recommend NAD, but would not object to a clarifying note regarding
-the behavior of <tt>condition_variable::wait_until</tt>.  At the moment, I do
-not have good wording for such a note, but welcome suggestions.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-09-30: See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2969.html">N2969</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-The LWG is in favor of Detlef to supply revision which adopts Option 2 from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2969.html">N2969</a>
-but is modified by saying that <tt>system_clock</tt> must be available for <tt>wait_until</tt>.
-</p></blockquote>
-
-<p><i>[
-2010-02-11 Anthony provided wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-22 Anthony adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I am strongly against
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2999.html">N2999</a>.
-</p>
-
-<p>
-Firstly, I think that the most appropriate use of a timed wait on a condition
-variable is with a monotonic clock, so it ought to be guaranteed to be available
-on systems that support such a clock. Also, making the set of supported clocks
-implementation defined essentially kills portability around the use of
-user-defined clocks.
-</p>
-
-<p>
-I also think that <tt>wait_for</tt> is potentially useful, and trivially
-implementable given a working templated <tt>wait_until</tt> and a monotonic
-clock.
-</p>
-
-<p>
-I also disagree with many of Detlef's points in the rationale. In a system with
-hard latency limits there is likely to be a monotonic clock, otherwise you have
-no way of measuring against these latency limits since the <tt>system_clock</tt>
-may change arbitrarily. In such systems, you <em>want</em> to be able to use
-<tt>wait_for</tt>, or <tt>wait_until</tt> with a monotonic clock.
-</p>
-
-<p>
-I disagree that the <tt>wait_*</tt> functions cannot be implemented correctly on
-top of POSIX: I have done so. The only guarantee in the working draft is that
-when the function returns certain properties are true; there is no guarantee
-that the function will return <em>immediately</em> that the properties are true.
-My resolution to issue 887 makes this clear. How small the latency is is QoI.
-</p>
-
-<p>
-On systems without a monotonic clock, you cannot measure the problem since the
-system clock can change arbitrarily so any timing calculations you make may be
-wrong due to clock changes.
-</p>
-
-<p>
-On systems with a monotonic clock, you can choose to use it for your condition
-variables. If you are waiting against a <tt>system_clock::time_point</tt> then
-you can check the clock when waking, and either return as a timeout or spurious
-wake depending on whether <tt>system_clock::now()</tt> is before or after the
-specified <tt>time_point</tt>.
-</p>
-
-<p>
-Windows <em>does</em> provide condition variables from Vista onwards. I choose
-not to use them, but they are there. If people are concerned about
-implementation difficulty, the Boost implementation can be used for most
-purposes; the Boost license is pretty liberal in that regard.
-</p>
-
-<p>
-My preferred resolution to issue 887 is currently the PR in the issues list.
-</p>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-There is no consensus for moving the related paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2999.html">N2999</a>
-into the WP.
-</p>
-<p>
-There was support for moving this issue as proposed to Ready, but the support
-was insufficient to call a consensus.
-</p>
-<p>
-There was consensus for moving this issue to NAD as opposed to leaving it open.
-Rationale added.
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The standard as written is sufficiently implementable and self consistent.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new paragraph after 30.2.4 [thread.req.timing]p3:
-</p>
-
-<blockquote>
-<p>
-3 The resolution of timing provided by an implementation depends on both
-operating system and hardware. The finest resolution provided by an
-implementation is called the <i>native resolution</i>.
-</p>
-
-<p><ins>
-If a function in this clause takes a timeout argument, and the time point or
-elapsed time specified passes before the function returns, the latency between
-the timeout occurring and the function returning is unspecified [<i>Note:</i>
-Implementations should strive to keep such latency as small as possible, but
-portable code should not rely on any specific upper limits &mdash; <i>end
-note</i>]
-</ins></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="892"></a>892. Forward_list issues...</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Ed Smith-Rowland <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I was looking at the latest draft on <tt>forward_list</tt>.  Especially the splice methods.
-</p>
-<p>
-The first one splices a whole list after a given iterator in <tt>this</tt>.  The name is <tt>splice_after</tt>.
-I think in 23.3.4.6 [forwardlist.ops] paragraph 40
-change:
-</p>
-<blockquote><p>
-<i>Effect:</i> Insert the contents of <tt>x</tt> <del>before</del> <ins>after</ins> <tt>position</tt>, ...
-</p></blockquote>
-
-<p>
-A deeper issue involves the complexity.  <tt>forward_list</tt> has no <tt>size</tt> and we
-don't know when we've reached the end except to walk up to it.  To
-splice we would need to hook the end of the source list to the item
-after <tt>position</tt> in this list.  This would involve walking length of the
-source list until we got to the last dereference-able element in source.
-There's no way we could do this in O(1) unless we stored a bogus end in
-<tt>forward_list</tt>.
-</p>
-<p>
-OTOH, the last version of <tt>splice_after</tt> with iterator ranges we could do
-in O(1) because we know how to hook the end of the source range to ...
-</p>
-<p>
-Unless I'm misconceiving the whole thing.  Which is possible.  I'll look at it again.
-</p>
-<p>
-I'm pretty sure about the first part though.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue is more complicated than it looks.
-</p>
-<p>
-paragraph 47: replace each <tt>(first, last) with (first, last]</tt>
-</p>
-<p>
-add a statement after paragraph 48 that complexity is O(1)
-</p>
-<p>
-remove the complexity statement from the first overload of splice_after
-</p>
-<p>
-We may have the same problems with other modifiers, like erase_after.
-Should it require that all iterators in the range (position, last] be
-dereferenceable?
-</p>
-<p>
-We do, however, like the proposed changes and consider them Editorial.
-Move to NAD Editorial, Pending. Howard to open a new issue to handle the
-problems with the complexity requirements.
-</p>
-<p>
-Opened <a href="lwg-defects.html#897">897</a>.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.3.4.6 [forwardlist.ops] paragraph 40
-change:
-</p>
-<blockquote><p>
-<i>Effect:</i> Insert the contents of <tt>x</tt> <del>before</del> <ins>after</ins> <tt>position</tt>, ...
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="895"></a>895. "Requires:" on std::string::at et al</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> James Dennett <b>Opened:</b> 2008-09-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#625">625</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Per discussion, we need an issue open to cover looking at "Requires"
-clauses which are not constraints on user code, such as that on
-<tt>std::basic_string::at</tt>.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
- Alan to address in paper.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="901"></a>901. insert iterators can move from lvalues</h3>
-<p><b>Section:</b> 24.5.2.5 [insert.iterator] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 282</b></p>
-
-<p>
-The requires clause on the <tt>const T &amp;</tt> overloads in
-<tt>back_insert_iterator/front_insert_iterator/insert_iterator</tt> mean that the
-assignment operator will implicitly move from lvalues of a move-only type.
-</p>
-<p>
-Suggested resolutions are:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-Add another overload with a negative constraint on copy-constructible
-and flag it "= delete".
-</li>
-<li>
-Drop the copy-constructible overload entirely and rely on perfect
-forwarding to catch move issues one level deeper.
-</li>
-<li>
-This is a fundamental problem in move-syntax that relies on the
-presence of two overloads, and we need to look more deeply into this
-area as a whole - do not solve this issue in isolation.
-</li>
-</ol>
-
-<p><i>[
-Post Summit, Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Both comment and issue have been resolved by the adoption of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>
-(rvalue references safety fix) at the last meeting.
-</p>
-
-<p>
-Suggest resolve as NAD Editorial with a reference to the paper.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree that this has been resolved in the latest Working Draft.
-Move to NAD.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Recommend NAD, addressed by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="902"></a>902. Regular is the wrong concept to constrain numeric_limits</h3>
-<p><b>Section:</b> 18.3.2 [limits] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#limits">issues</a> in [limits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses FR 32 and DE 16</b></p>
-
-<p>
-<tt>numeric_limits</tt> has functions specifically designed to return NaNs, which
-break the model of <tt>Regular</tt> (via its axioms.)  While floating point types
-will be acceptible in many algorithms taking <tt>Regular</tt> values, it is not
-appopriate for this specific API and we need a less refined constraint.
-</p>
-
-<p>FR 32:</p>
-
-<blockquote><p>
-The definition of <tt>numeric_limits&lt;&gt;</tt> as requiring a regular
-type is both conceptually wrong and operationally illogical. As we
-pointed before, this mistake needs to be corrected. For example, the
-template can be left unconstrained. In fact this reflects a much more
-general problem with concept_maps/axioms and their interpretations. It
-appears that the current text heavily leans toward experimental academic
-type theory.
-</p></blockquote>
-
-<p>DE 16:</p>
-
-<blockquote><p>
-The class template <tt>numeric_limits</tt> should not specify the Regular concept
-requirement for its template parameter, because it contains functions
-returning NaN values for floating-point types; these values violate the
-semantics of EqualityComparable.
-</p></blockquote>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open.  Alisdair and Gaby will work on a solution, along with the new
-treatment of axioms in clause 14.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="903"></a>903. <tt>back_insert_iterator</tt> issue</h3>
-<p><b>Section:</b> 24.5.2.1 [back.insert.iterator] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2008-09-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I just noticed this; don't know how far the problem(?) extends or
-whether it's new or existing: <tt>back_insert_iterator</tt>'s <tt>operator*</tt> is not
-<tt>const</tt>, so you can't dereference a <tt>const</tt> one.
-</p>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-If done, this change should be applied for <tt>front_insert_iterator</tt>,
-<tt>insert_iterator</tt>, <tt>ostream_iterator</tt>, and <tt>ostreambuf_iterator</tt> as well.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair notes that these all are output iterators.
-Howard points out that <tt>++*i</tt>
-would no longer work if we made this change.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-25 Daniel adds:
-]</i></p>
-
-
-<ol>
-<li>
-If <a href="lwg-closed.html#1009">1009</a> is accepted, <tt>OutputIterator</tt> does no longer support post increment.
-</li>
-<li>
-To support backward compatibility a second overload of <tt>operator*</tt>
-can be added.
-Note that the <tt>HasDereference</tt> concept (and the <tt>HasDereference</tt> part of concept
-<tt>Iterator</tt>) was specifically refactored to cope with optional const
-qualification and
-to properly reflect the dual nature of built-in <tt>operator*</tt> as of
-13.5.8 [over.literal]/6.
-</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="905"></a>905. Mutex specification questions</h3>
-<p><b>Section:</b> 30.4.1.2.1 [thread.mutex.class] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2008-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.class">issues</a> in [thread.mutex.class].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#893">893</a></p>
-<p><b>Discussion:</b></p>
-<p>
-A few questions on the current WP,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>:
-</p>
-<p>
-30.4.1 [thread.mutex.requirements]/24 says an expression
-<tt>mut.unlock()</tt> "Throws: Nothing." I'm assuming that, per 17.6.4.11 [res.on.required], errors that violate the precondition "The
-calling thread shall own the mutex" opens the door for throwing an
-exception anyway, such as to report unbalanced unlock operations and
-unlocking from a thread that does not have ownership. Right?
-</p>
-<p>
-30.4.1.2.1 [thread.mutex.class]/3 (actually numbered paragraph "27"
-in the WP; this is just a typo I think) says
-</p>
-<blockquote>
-<p>
-The behavior of a program is undefined if:
-</p>
-<ul>
-<li>it destroys a <tt>mutex</tt> object owned by any thread,</li>
-<li>a thread that owns a <tt>mutex</tt> object calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object, or</li>
-<li>a thread terminates while owning a <tt>mutex</tt> object.</li>
-</ul>
-</blockquote>
-
-<p>
-As already discussed, I think the second bullet should be removed, and
-such a <tt>lock()</tt> or <tt>try_lock()</tt> should fail with an
-exception or returning <tt>false</tt>, respectively.
-</p>
-<p>
-A potential addition to the list would be
-</p>
-<ul>
-<li>a thread unlocks a <tt>mutex</tt> it does not have ownership of.</li>
-</ul>
-<p>
-but without that the status quo text endorses the technique of the
-program logically transferring ownership of a mutex to another thread
-with correctness enforced by programming discipline. Was that intended?
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Two resolutions: "not a defect" and "duplicate", as follows:
-</p>
-<ul>
-<li>
-30.4.1 [thread.mutex.requirements]/24: NAD. If the precondition
-fails the program has undefined behaviour and therefore an
-implementation may throw an exception already.
-</li>
-<li>
-30.4.1.2.1 [thread.mutex.class]/3 bullet 2: Already addressed by issue <a href="lwg-defects.html#893">893</a>.
-</li>
-<li>
-30.4.1.2.1 [thread.mutex.class]/3 proposed addition: NAD. This is
-already covered by the mutex requirements, which have ownership as a
-Precondition.
-</li>
-</ul>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="906"></a>906. <tt>ObjectType</tt> is the wrong concept to constrain <tt>initializer_list</tt></h3>
-<p><b>Section:</b> 18.9 [support.initlist] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.initlist">active issues</a> in [support.initlist].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.initlist">issues</a> in [support.initlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The currently proposed constraint on <tt>initializer_list</tt>'s element type
-<tt>E</tt> is that is has to meet <tt>ObjectType</tt>. This is an underspecification,
-because both core language and library part of <tt>initializer_list</tt>
-make clear, that it references an implicitly allocated array:
-</p>
-<p>
-8.5.4 [dcl.init.list]/4:
-</p>
-<blockquote><p>
-When an initializer list is implicitly converted to a
-<tt>std::initializer_list&lt;E&gt;</tt>, the object passed is constructed as if the
-implementation allocated an array of N elements of type <tt>E</tt>, where
-N is the number of elements in the initializer list.[..]
-</p></blockquote>
-
-<p>
-18.9 [support.initlist]/2.
-</p>
-
-<blockquote><p>
-An object of type <tt>initializer_list&lt;E&gt;</tt> provides access to an array of
-objects of type <tt>const E</tt>.[..]
-</p></blockquote>
-
-<p>
-Therefore, <tt>E</tt> needs to fulfill concept <tt>ValueType</tt> (thus excluding
-abstract class types). This stricter requirement should be added
-to prevent deep instantiation errors known from the bad old times,
-as shown in the following example:
-</p>
-
-<blockquote><pre>
-// Header A: (Should concept-check even in stand-alone modus)
-
-template &lt;DefaultConstructible T&gt;
-requires MoveConstructible&lt;T&gt;
-void generate_and_do_3(T a) {
-  std::initializer_list&lt;T&gt; list{T(), std::move(a), T()};
-  ...
-}
-
-void do_more();
-void do_more_or_less();
-
-template &lt;DefaultConstructible T&gt;
-requires MoveConstructible&lt;T&gt;
-void more_generate_3() {
-  do_more();
-  generate_and_do_3(T());
-}
-
-template &lt;DefaultConstructible T&gt;
-requires MoveConstructible&lt;T&gt;
-void something_and_generate_3() {
-  do_more_or_less();
-  more_generate_3();
-}
-
-// Test.cpp
-
-#include "A.h"
-
-class Abstract {
-public:
-  virtual ~Abstract();
-  virtual void foo() = 0; // abstract type
-  Abstract(Abstract&amp;&amp;){} // MoveConstructible
-  Abstract(){} // DefaultConstructible
-};
-
-int main() {
-  // The restricted template *accepts* the argument, but
-  // causes a deep instantiation error in the internal function
-  // generate_and_do_3:
-  something_and_generate_3&lt;Abstract&gt;();
-}
-</pre></blockquote>
-
-<p>
-The proposed stricter constraint does not minimize the aim to
-support more general containers for which <tt>ObjectType</tt> would be
-sufficient. If such an extended container (lets assume it's still a
-class template) provides a constructor that accepts an <tt>initializer_list</tt>
-only <em>this</em> constructor would need to be restricted on <tt>ValueType</tt>:
-</p>
-
-<blockquote><pre>
-template&lt;ObjectType T&gt;
-class ExtContainer {
-public:
-  requires ValueType&lt;T&gt;
-  ExtContainer(std::initializer_list&lt;T&gt;);
-  ...
-};
-</pre></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Need to look at again without concepts.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-In 18.9 [support.initlist]/p.1 replace in "header <tt>&lt;initializer_list&gt;</tt> synopsis"
-the constraint "<tt>ObjectType</tt>" in the template parameter list by the
-constraint "<tt>ValueType</tt>".
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="910"></a>910. Effects of MoveAssignable</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 150</b></p>
-
-<p>
-The description of the effect of <tt>operator=</tt> in the <tt>MoveAssignable</tt>
-concept, given in paragraph 7 is:
-</p>
-
-<blockquote><pre>
-result_type  T::operator=(T&amp;&amp;  rv);  // inherited from HasAssign&lt;T, T&amp;&amp;&gt;
-</pre>
-
-<blockquote><p>
-<i>Postconditions:</i> the constructed <tt>T</tt> object is equivalent to the value of
-<tt>rv</tt> before the assignment. [<i>Note:</i> there is no
-requirement on the value of <tt>rv</tt> after the assignment.  <i>--end note</i>]
-</p></blockquote>
-</blockquote>
-
-<p>
-The sentence contains a typo (what is the "constructed <tt>T</tt> object"?)
-probably due to a cut&amp;paste from <tt>MoveConstructible</tt>. Moreover, the
-discussion of LWG issue <a href="lwg-defects.html#675">675</a> shows that the postcondition is too generic
-and might not reflect the user expectations. An implementation of the
-move assignment that just calls <tt>swap()</tt> would always fulfill the
-postcondition as stated, but might have surprising side-effects in case
-the source rvalue refers to an object that is not going to be
-immediately destroyed. See LWG issue <a href="lwg-defects.html#900">900</a> for another example. Due to
-the sometimes intangible nature of the "user expectation", it seems
-difficult to have precise normative wording that could cover all cases
-without introducing unnecessary restrictions. However a non-normative
-clarification could be a very helpful warning sign that swapping is not
-always the correct thing to do.
-</p>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Issue 910 is exactly the reason BSI advanced the Editorial comment UK-150.
-</p>
-<p>
-The post-conditions after assignment are at a minimum that the object
-referenced by rv must be safely destructible, and the transaction should not
-leak resources.  Ideally it should be possible to simply assign rv a new
-valid state after the call without invoking undefined behaviour, but any
-other use of the referenced object would depend upon additional guarantees
-made by that type.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-09 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The intent of the rvalue reference work is that the moved from <tt>rv</tt> is
-a valid object.  Not one in a singular state.  If, for example, the moved from
-object is a <tt>vector</tt>, one should be able to do anything on that moved-from
-<tt>vector</tt> that you can do with any other <tt>vector</tt>.  However you would
-first have to query it to find out what its current state is.  E.g. it might have <tt>capacity</tt>,
-it might not.  It might have a non-zero <tt>size</tt>, it might not.  But regardless,
-you can <tt>push_back</tt> on to it if you want.
-</p>
-
-<p>
-That being said, most standard code is now conceptized.  That is, the concepts
-list the only operations that can be done with templated types - whether or not
-the values have been moved from.
-</p>
-
-<p>
-Here is user-written code which must be allowed to be legal:
-</p>
-<blockquote><pre>
-#include &lt;vector&gt;
-#include &lt;cstdio&gt;
-
-template &lt;class Allocator&gt;
-void
-inspect(std::vector&lt;double, Allocator&gt;&amp;&amp; v)
-{
-    std::vector&lt;double, Allocator&gt; result(move(v));
-    std::printf("moved from vector has %u size and %u capacity\n", v.size(), v.capacity());
-    std::printf("The contents of the vector are:\n");
-    typedef typename std::vector&lt;double, Allocator&gt;::iterator I;
-    for (I i = v.begin(), e = v.end(); i != e; ++i)
-        printf("%f\n", *i);
-}
-
-int main()
-{
-    std::vector&lt;double&gt; v1(100, 5.5);
-    inspect(move(v1));
-}
-</pre></blockquote>
-
-<p>
-The above program does not treat the moved-from <tt>vector</tt> as singular.  It
-only treats it as a <tt>vector</tt> with an unknown value.
-</p>
-<p>
-I believe the current proposed wording is consistent with my view on this.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree that the proposed resolution
-is an improvement over the current wording.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Need to look at again without concepts.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Walter will consult with Dave and Doug.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-We believe this is handled by the resolution to issue <a href="lwg-defects.html#1204">1204</a>,
-but there is to much going on in this area to be sure.  Defer for now.
-</p></blockquote>
-
-<p><i>[
-2010-01-23 Moved to Tentatively NAD Concepts after 5 positive votes on c++std-lib.
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The current <tt>MoveAssignable</tt> requirements say everything that can be said
-in general.  Each std-defined type has a more detailed specification of move
-assignment.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In  [concept.copymove], replace the postcondition in paragraph 7 with:
-</p>
-
-<blockquote><p>
-<i>Postconditions:</i> <tt>*this</tt> is equivalent to the value of <tt>rv</tt> before the
-assignment. [<i>Note:</i> there is no requirement on the value of <tt>rv</tt> after the
-assignment, but the
-effect should be unsurprising to the user even in case <tt>rv</tt> is not
-immediately destroyed. This may require that resources previously owned
-by <tt>*this</tt> are released instead of transferred to <tt>rv</tt>. <i>-- end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="912"></a>912. Array swap needs to be conceptualized</h3>
-<p><b>Section:</b> 25.3.3 [alg.swap] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.swap">issues</a> in [alg.swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With the adaption of <a href="lwg-defects.html#809">809</a>
-we have a new algorithm <tt>swap</tt> for C-arrays, which needs to be conceptualized.
-</p>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Recommend as NAD Editorial: The changes have already been applied to the WP
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to NAD; the changes have already been made.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace in 25.3.3 [alg.swap] before p. 3 until p. 4 by
-</p>
-
-<blockquote><pre>
-template &lt;<del>class</del> <ins>ValueType</ins> T, size_t N&gt;
-<ins>requires Swappable&lt;T&gt;</ins>
-void swap(T (&amp;a)[N], T (&amp;b)[N]);
-</pre>
-<blockquote>
-<p>
-<del><i>Requires:</i> <tt>T</tt> shall be <tt>Swappable</tt>.</del>
-</p>
-<p>
-<i>Effects:</i> <tt>swap_ranges(a, a + N, b);</tt>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="913"></a>913. Superfluous requirements for replace algorithms</h3>
-<p><b>Section:</b> 25.3.5 [alg.replace] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.replace">issues</a> in [alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-(A) 25.3.5 [alg.replace]/1:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> The expression <tt>*first = new_value</tt> shall be valid.
-</p></blockquote>
-
-<p>
-(B) 25.3.5 [alg.replace]/4:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> The results of the expressions <tt>*first</tt> and <tt>new_value</tt> shall
-be writable to the result output iterator.[..]
-</p></blockquote>
-
-<p>
-Since conceptualization, the quoted content of these clauses is covered
-by the existing requirements
-</p>
-
-<p>
-(A) <tt>OutputIterator&lt;Iter, const T&amp;&gt;</tt>
-</p>
-
-<p>
-and
-</p>
-
-<p>
-(B) <tt>OutputIterator&lt;OutIter, InIter::reference&gt; &amp;&amp; OutputIterator&lt;OutIter, const T&amp;&gt;</tt>
-</p>
-
-<p>
-resp, and thus should be removed.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-Remove 25.3.5 [alg.replace]/1.
-</p>
-<blockquote><pre>
-template&lt;ForwardIterator Iter, class T&gt; 
-  requires OutputIterator&lt;Iter, Iter::reference&gt; 
-        &amp;&amp; OutputIterator&lt;Iter, const T&amp;&gt; 
-        &amp;&amp; HasEqualTo&lt;Iter::value_type, T&gt; 
-  void replace(Iter first, Iter last, 
-               const T&amp; old_value, const T&amp; new_value); 
-
-template&lt;ForwardIterator Iter, Predicate&lt;auto, Iter::value_type&gt; Pred, class T&gt; 
-  requires OutputIterator&lt;Iter, Iter::reference&gt; 
-        &amp;&amp; OutputIterator&lt;Iter, const T&amp;&gt; 
-        &amp;&amp; CopyConstructible&lt;Pred&gt; 
-  void replace_if(Iter first, Iter last, 
-                  Pred pred, const T&amp; new_value);
-</pre>
-<blockquote><p>
-<del>1 <i>Requires:</i> The expression <tt>*first = new_value</tt> shall be valid.</del>
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-25.3.5 [alg.replace]/4: Remove the sentence "The results of the
-expressions <tt>*first</tt> and
-<tt>new_value</tt> shall be writable to the result output iterator.".
-</p>
-<blockquote><pre>
-template&lt;InputIterator InIter, typename OutIter, class T&gt; 
-  requires OutputIterator&lt;OutIter, InIter::reference&gt; 
-        &amp;&amp; OutputIterator&lt;OutIter, const T&amp;&gt; 
-        &amp;&amp; HasEqualTo&lt;InIter::value_type, T&gt; 
-  OutIter replace_copy(InIter first, InIter last, 
-                       OutIter result, 
-                       const T&amp; old_value, const T&amp; new_value);
-
-template&lt;InputIterator InIter, typename OutIter,
-         Predicate&lt;auto, InIter::value_type&gt; Pred, class T&gt; 
-  requires OutputIterator&lt;OutIter, InIter::reference&gt; 
-        &amp;&amp; OutputIterator&lt;OutIter, const T&amp;&gt; 
-        &amp;&amp; CopyConstructible&lt;Pred&gt; 
-  OutIter replace_copy_if(InIter first, InIter last, 
-                          OutIter result, 
-                          Pred pred, const T&amp; new_value);
-</pre>
-<blockquote><p>
-4 <i>Requires:</i> <del>The results of the expressions <tt>*first</tt> and
-<tt>new_value</tt> shall be writable to the <tt>result</tt> output
-iterator.</del> The ranges <tt>[first,last)</tt> and <tt>[result,result +
-(last - first))</tt> shall not overlap.
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="914"></a>914. Superfluous requirement for unique</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-25.3.9 [alg.unique]/2: "Requires: The comparison function shall be an
-equivalence relation."
-</p>
-
-<p>
-The essence of this is already covered by the given requirement
-</p>
-
-<blockquote><pre>
-EquivalenceRelation&lt;auto, Iter::value_type&gt; Pred
-</pre></blockquote>
-
-<p>
-and should thus be removed.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove 25.3.9 [alg.unique]/2
-</p>
-
-<blockquote><pre>
-template&lt;ForwardIterator Iter&gt;
-  requires OutputIterator&lt;Iter, Iter::reference&gt;
-        &amp;&amp; EqualityComparable&lt;Iter::value_type&gt;
-  Iter unique(Iter first, Iter last);
-
-template&lt;ForwardIterator Iter, EquivalenceRelation&lt;auto, Iter::value_type&gt; Pred&gt;
-  requires OutputIterator&lt;Iter, RvalueOf&lt;Iter::reference&gt;::type&gt;
-        &amp;&amp; CopyConstructible&lt;Pred&gt;
-  Iter unique(Iter first, Iter last,
-               Pred pred);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i> ...
-</p>
-<p>
-<del>2 <i>Requires:</i> The comparison function shall be an equivalence relation.</del>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="915"></a>915. <tt>minmax</tt> with <tt>initializer_list</tt> should return
-<tt>pair</tt> of <tt>T</tt>, not <tt>pair</tt> of <tt>const T&amp;</tt></h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It seems that the proposed changes for
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2772.pdf">N2772</a>
-were not clear enough in
-this point:
-</p>
-
-<blockquote><p>
-25.4.7 [alg.min.max], before p.23 + p.24 + before p. 27 + p. 28 say that the return
-type of the <tt>minmax</tt> overloads with an <tt>initializer_list</tt> is
-<tt>pair&lt;const T&amp;, const T&amp;&gt;</tt>,
-which is inconsistent with the decision for the other <tt>min/max</tt> overloads which take
-a <tt>initializer_list</tt> as argument and return a <tt>T</tt>, not a <tt>const T&amp;</tt>.
-Doing otherwise for <tt>minmax</tt> would easily lead to unexpected life-time
-problems by using <tt>minmax</tt> instead of <tt>min</tt> and <tt>max</tt> separately.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-08-18 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Recommend NAD since the proposed changes have already been performed
-as part of editorial work of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Can't find <tt>initializer_list</tt> form of <tt>minmax</tt> anymore, only variadic
-version. Seems like we had an editing clash with concepts. Leave Open,
-at least until editorial issues resolved. Bring this to Editor's attention.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Pete to reapply
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2772.pdf">N2772</a>.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p><p>
-Solved by reapplying
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2772.pdf">N2772</a>.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 25 [algorithms]/2, header <tt>&lt;algorithm&gt;</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;<del>class</del><ins>LessThanComparable</ins> T&gt;
-<ins>requires CopyConstructible&lt;T&gt;</ins>
-pair&lt;<del>const </del>T<del>&amp;</del>, <del>const </del>T<del>&amp;</del>&gt;
-minmax(initializer_list&lt;T&gt; t);
-
-template&lt;class T, <del>class</del><ins>StrictWeakOrder&lt;auto, T&gt;</ins> Compare&gt;
-<ins>requires CopyConstructible&lt;T&gt;</ins>
-pair&lt;<del>const </del>T<del>&amp;</del>, <del>const </del>T<del>&amp;</del>&gt;
-minmax(initializer_list&lt;T&gt; t, Compare comp);
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 25.4.7 [alg.min.max] change as indicated (Begin: Just before p.20):
-</p>
-<blockquote><pre>
-template&lt;<del>class</del><ins>LessThanComparable</ins> T&gt;
-  <ins>requires CopyConstructible&lt;T&gt;</ins>
-  pair&lt;<del>const </del>T<del>&amp;</del>, <del>const </del>T<del>&amp;</del>&gt;
-  minmax(initializer_list&lt;T&gt; t);
-</pre>
-<blockquote>
-<p>
-<del>-20- <i>Requires:</i> <tt>T</tt> is <tt>LessThanComparable</tt> and
-<tt>CopyConstructible</tt>.</del>
-</p>
-<p>
--21- <i>Returns:</i> <tt>pair&lt;<del>const </del>T<del>&amp;</del>, <del>const
-</del>T<del>&amp;</del>&gt;(x, y)</tt> where <tt>x</tt> is the
-smallest value and <tt>y</tt> the largest value in the <tt>initializer_list</tt>.
-</p>
-</blockquote>
-
-<p>[..]</p>
-<pre>
-template&lt;class T, <del>class</del><ins>StrictWeakOrder&lt;auto, T&gt;</ins> Compare&gt;
-  <ins>requires CopyConstructible&lt;T&gt;</ins>
-  pair&lt;<del>const </del>T<del>&amp;</del>, <del>const </del>T<del>&amp;</del>&gt;
-  minmax(initializer_list&lt;T&gt; t, Compare comp);
-</pre>
-
-<blockquote>
-<p>
-<del>-24- <i>Requires:</i> type <tt>T</tt> is <tt>LessThanComparable</tt> and <tt>CopyConstructible</tt>.</del>
-</p>
-<p>
--25- <i>Returns:</i> <tt>pair&lt;<del>const </del>T<del>&amp;</del>, <del>const
-</del>T<del>&amp;</del>&gt;(x, y)</tt> where <tt>x</tt> is the
-smallest value and <tt>y</tt> largest value in the <tt>initializer_list</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="916"></a>916. Redundant move-assignment operator of <tt>pair</tt> should be removed</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>see also <a href="lwg-closed.html#917">917</a>.</b></p>
-
-<p>
-The current WP provides the following assignment operators for <tt>pair</tt>
-in 20.3 [pairs]/1:
-</p>
-
-<ol>
-<li>
-<pre>
-template&lt;class U , class V&gt;
-requires HasAssign&lt;T1, const U&amp;&gt; &amp;&amp; HasAssign&lt;T2, const V&amp;&gt;
-pair&amp; operator=(const pair&lt;U , V&gt;&amp; p);
-</pre>
-</li>
-<li>
-<pre>
-requires MoveAssignable&lt;T1&gt; &amp;&amp; MoveAssignable&lt;T2&gt; pair&amp; operator=(pair&amp;&amp; p );
-</pre>
-</li>
-<li>
-<pre>
-template&lt;class U , class V&gt;
-requires HasAssign&lt;T1, RvalueOf&lt;U&gt;::type&gt; &amp;&amp; HasAssign&lt;T2, RvalueOf&lt;V&gt;::type&gt;
-pair&amp; operator=(pair&lt;U , V&gt;&amp;&amp; p);
-</pre>
-</li>
-</ol>
-
-<p>
-It seems that the functionality of (2) is completely covered by (3), therefore
-(2) should be removed.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Bill believes the extra assignment operators are necessary for resolving
-ambiguities, but that does not mean it needs to be part of the specification.
-</p>
-<p>
-Move to Open.
-We recommend this be looked at in the context of the ongoing work
-related to the pair templates.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Leave this open pending the removal of concepts from the WD.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD, see issue <a href="lwg-defects.html#801">801</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-In 20.3 [pairs] p. 1, class <tt>pair</tt> and just before p. 13 remove the declaration:
-</p>
-
-<blockquote><pre>
-requires MoveAssignable&lt;T1&gt; &amp;&amp; MoveAssignable&lt;T2&gt; pair&amp; operator=(pair&amp;&amp; p );
-</pre></blockquote>
-</li>
-
-<li>
-Remove p.13+p.14
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="917"></a>917. Redundant move-assignment operator of <tt>tuple</tt> should be removed</h3>
-<p><b>Section:</b> 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.cnstr">active issues</a> in [tuple.cnstr].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.cnstr">issues</a> in [tuple.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>see also <a href="lwg-closed.html#916">916</a>.</b></p>
-<p>
-N2770 (and thus now the WP) removed the
-non-template move-assignment operator from tuple's class definition,
-but the latter individual member description does still provide this
-operator. Is this (a) an oversight and can it (b) be solved as part of an
-editorial process?
-</p>
-
-<p><i>[
-Post Summit Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We believe that the proposed resolution's part 1 is editorial.
-</p>
-<p>
-Regarding part 2, we either remove the specification as proposed,
-or else add back the declaration to which the specification refers.
-Alisdair and Bill prefer the latter.
-It is not immediately obvious whether the function is intended to be present.
-</p>
-<p>
-We recommend that the Project Editor restore the missing declaration
-and that we keep part 2 of the issue alive.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Leave this open pending the removal of concepts from the WD.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD, see issue <a href="lwg-defects.html#801">801</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 20.4.2 [tuple.tuple], class <tt>tuple</tt> just before member <tt>swap</tt> please
-change as indicated:
-</p>
-<p><i>[
-This fixes an editorial loss between N2798 to N2800
-]</i></p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-requires HasAssign&lt;Types, const UTypes&amp;&gt;...
-<ins>tuple&amp; operator=(const pair&lt;UTypes...&gt;&amp;);</ins>
-
-template &lt;class... UTypes&gt;
-requires HasAssign&lt;Types, RvalueOf&lt;UTypes&gt;::type&gt;...
-<ins>tuple&amp; operator=(pair&lt;UTypes...&gt;&amp;&amp;);</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.4.2.1 [tuple.cnstr], starting just before p. 11 please remove
-as indicated:
-</p>
-
-<blockquote><pre>
-<del>requires MoveAssignable&lt;Types&gt;... tuple&amp; operator=(tuple&amp;&amp; u);</del>
-</pre>
-<blockquote>
-<p>
-<del>-11- <i>Effects:</i> Move-assigns each element of <tt>u</tt> to the corresponding
-element of <tt>*this</tt>.</del>
-</p>
-<p>
-<del>-12- <i>Returns:</i> <tt>*this</tt>.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="918"></a>918. Swap for tuple needs to be conceptualized</h3>
-<p><b>Section:</b> 20.4.2.3 [tuple.swap] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#522">522</a> was accepted after <tt>tuple</tt> had been conceptualized,
-therefore this step needs to be completed.
-</p>
-
-<p><i>[
-Post Summit Daniel adds
-]</i></p>
-
-
-<blockquote><p>
-This is now NAD Editorial (addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>)
-except for item 3 in the proposed wording.
-</p></blockquote>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-As of the recent WP
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>),
-this issue is now completely covered by editorial changes (including the third bullet), 
-therefore I unconditionally recommend NAD.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We observed that all the proposed changes have already been applied to the
-Working Draft, rendering this issue moot.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In both 20.4.1 [tuple.general]/2 and 20.4.2.9 [tuple.special] change
-</p>
-
-<blockquote><pre>
-template &lt;<del>class</del> <ins>Swappable</ins>... Types&gt;
-void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp; y);
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-In 20.4.2 [tuple.tuple], class <tt>tuple</tt> definition and in
-20.4.2.3 [tuple.swap], change
-</p>
-
-<blockquote><pre>
-<ins>requires Swappable&lt;Types&gt;...</ins>void swap(tuple&amp;);
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-In 20.4.2.3 [tuple.swap] remove the current requires-clause, which says:
-</p>
-
-<blockquote><p>
-<del><i>Requires:</i> Each type in <tt>Types</tt> shall be <tt>Swappable</tt></del>
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="919"></a>919. (forward_)list specialized remove algorithms are over constrained</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops], 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-10-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The signatures of <tt>forwardlist::remove</tt> and <tt>list::remove</tt>
-defined in 23.3.4.6 [forwardlist.ops] before 11 + 23.3.5.5 [list.ops] before 15:
-</p>
-
-<blockquote><pre>
-requires EqualityComparable&lt;T&gt; void remove(const T&amp; value);
-</pre></blockquote>
-
-<p>
-are asymmetric to their predicate variants (which only require
-<tt>Predicate</tt>, <em>not</em> <tt>EquivalenceRelation</tt>) and with the free algorithm
-remove (which only require <tt>HasEqualTo</tt>). Also, nothing in the
-pre-concept WP
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-implies that <tt>EqualityComparable</tt> should
-be the intended requirement.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution,
-but would like additional input from concepts experts.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-21 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Current rationale and wording for this issue is built around concepts. I
-suggest the issue reverts to Open status. I believe there is enough of
-an issue to review after concepts are removed from the WP to re-examine
-the issue in Santa Cruz, rather than resolve as NAD Concepts.
-</p></blockquote>
-
-<p><i>[
-2009-10-10 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Recommend NAD: The concept-free wording as of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>
-has no longer the
-over-specified requirement
-<tt>EqualityComparable</tt> for the remove function that uses <tt>==</tt>. In fact, now
-the same test conditions exists
-as for the free algorithm <tt>remove</tt> (25.3.8 [alg.remove]). The error was
-introduced in the process of conceptifying.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD, solved by the removal of concepts.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-Replace in 23.3.4.6 [forwardlist.ops] before 11 and in 23.3.5.5 [list.ops] before 15
-</p>
-
-<blockquote><pre>
-requires <del>EqualityComparable&lt;T&gt;</del> <ins>HasEqualTo&lt;T, T&gt;</ins> void remove(const T&amp; value);
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="926"></a>926. Sequentially consistent fences, relaxed operations and modification order</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2008-10-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 313</b></p>
-
-<p>
-There was an interesting issue raised over on comp.programming.threads
-today regarding the following example
-</p>
-
-<blockquote><pre>
-// Thread 1:
-x.store(1, memory_order_relaxed);           // SX
-atomic_thread_fence(memory_order_seq_cst);  // F1
-y.store(1, memory_order_relaxed);           // SY1
-atomic_thread_fence(memory_order_seq_cst);  // F2
-r1 = y.load(memory_order_relaxed);          // RY
-
-// Thread 2:
-y.store(0, memory_order_relaxed);          // SY2
-atomic_thread_fence(memory_order_seq_cst); // F3
-r2 = x.load(memory_order_relaxed);         // RX
-</pre></blockquote>
-
-<p>
-is the outcome <tt>r1 == 0</tt> and <tt>r2 == 0</tt> possible?
-</p>
-<p>
-I think the intent is that this is not possible, but I am not sure the
-wording guarantees that. Here is my analysis:
-</p>
-<p>
-Since all the fences are SC, there must be a total order between them.
-<tt>F1</tt> must be before <tt>F2</tt> in that order since they are in
-the same thread. Therefore <tt>F3</tt> is either before <tt>F1</tt>,
-between <tt>F1</tt> and <tt>F2</tt> or after <tt>F2</tt>.
-</p>
-<p>
-If <tt>F3</tt> is <em>after</em> <tt>F2</tt>, then we can apply 29.3 [atomics.order]p5 from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>:
-</p>
-
-<blockquote><p>
-For atomic operations <tt>A</tt> and <tt>B</tt> on an atomic object
-<tt>M</tt>, where <tt>A</tt> modifies <tt>M</tt> and <tt>B</tt> takes
-its value, if there are <tt>memory_order_seq_cst</tt> fences <tt>X</tt>
-and <tt>Y</tt> such that <tt>A</tt> is sequenced before <tt>X</tt>,
-<tt>Y</tt> is sequenced before <tt>B</tt>, and <tt>X</tt> precedes
-<tt>Y</tt> in <tt>S</tt>, then <tt>B</tt> observes either the effects of
-<tt>A</tt> or a later modification of <tt>M</tt> in its modification
-order.
-</p></blockquote>
-
-<p>
-In this case, <tt>A</tt> is <tt>SX</tt>, <tt>B</tt> is <tt>RX</tt>, the
-fence <tt>X</tt> is <tt>F2</tt> and the fence <tt>Y</tt> is <tt>F3</tt>,
-so <tt>RX</tt> must see 1.
-</p>
-<p>
-If <tt>F3</tt> is <em>before</em> <tt>F2</tt>, this doesn't apply, but
-<tt>F3</tt> can therefore be before or after <tt>F1</tt>.
-</p>
-<p>
-If <tt>F3</tt> is <em>after</em> <tt>F1</tt>, the same logic applies, but this
-time the fence <tt>X</tt> is <tt>F1</tt>. Therefore again, <tt>RX</tt>
-must see 1.
-</p>
-<p>
-Finally we have the case that <tt>F3</tt> is <em>before</em> <tt>F1</tt>
-in the SC ordering. There are now no guarantees about <tt>RX</tt>, and
-<tt>RX</tt> can see <tt>r2==0</tt>.
-</p>
-<p>
-We can apply 29.3 [atomics.order]p5 again. This time,
-<tt>A</tt> is <tt>SY2</tt>, <tt>B</tt> is <tt>RY</tt>, <tt>X</tt> is
-<tt>F3</tt> and <tt>Y</tt> is <tt>F1</tt>. Thus <tt>RY</tt> must observe
-the effects of <tt>SY2</tt> or a later modification of <tt>y</tt> in its
-modification order.
-</p>
-<p>
-Since <tt>SY1</tt> is sequenced before <tt>RY</tt>, <tt>RY</tt> must
-observe the effects of <tt>SY1</tt> or a later modification of
-<tt>y</tt> in its modification order.
-</p>
-<p>
-In order to ensure that <tt>RY</tt> sees <tt>(r1==1)</tt>, we must see
-that <tt>SY1</tt> is later in the modification order of <tt>y</tt> than
-<tt>SY2</tt>.
-</p>
-<p>
-We're now skating on thin ice. Conceptually, <tt>SY2</tt> happens-before
-<tt>F3</tt>, <tt>F3</tt> is SC-ordered before <tt>F1</tt>, <tt>F1</tt>
-happens-before <tt>SY1</tt>, so <tt>SY1</tt> is later in the
-modification order <tt>M</tt> of <tt>y</tt>, and <tt>RY</tt> must see
-the result of <tt>SY1</tt> (<tt>r1==1</tt>). However, I don't think the
-words are clear on that.
-</p>
-
-<p><i>[
-Post Summit Hans adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-In my (Hans') view, our definition of fences will always be weaker than
-what particular hardware will guarantee.  <tt>Memory_order_seq_cst</tt> fences
-inherently don't guarantee sequential consistency anyway, for good
-reasons (e.g. because they can't enforce a total order on stores).
- Hence I don't think the issue demonstrates a gross failure to achieve
-what we intended to achieve.  The example in question is a bit esoteric.
- Hence, in my view, living with the status quo certainly wouldn't be a
-disaster either.
-</p>
-<p>
-In any case, we should probably add text along the lines of the
-following between p5 and p6 in 29.3 [atomics.order]:
-</p>
-<blockquote><p>
-[Note: <tt>Memory_order_seq_cst</tt> only ensures sequential consistency for a
-data-race-free program that uses exclusively <tt>memory_order_seq_cst</tt>
-operations.  Any use of weaker ordering will invalidate this guarantee
-unless extreme care is used.  In particular, <tt>memory_order_seq_cst</tt> fences
-only ensure a total order for the fences themselves.  They cannot, in
-general, be used to restore sequential consistency for atomic operations
-with weaker ordering specifications.]
-</p></blockquote>
-
-<p>
-Also see thread beginning at c++std-lib-23271.
-</p>
-
-</blockquote>
-
-<p><i>[
-Herve's correction:
-]</i></p>
-
-<blockquote>
-<p>
-Minor point, and sorry for the knee jerk reaction: I admit to having
-no knowledge of Memory_order_seq_cst, but my former boss (John Lakos)
-has ingrained an automatic introspection on the use of "only".   I
-think you meant:
-</p>
-
-<blockquote><p>
-[Note: <tt>Memory_order_seq_cst</tt> ensures sequential consistency only
-for . . . .  In particular, <tt>memory_order_seq_cst</tt> fences ensure a
-total order only for . . .
-</p></blockquote>
-<p>
-Unless, of course, <tt>Memory_order_seq_cst</tt> really do nothing but ensure
-sequential consistency for a data-race-free program that uses
-exclusively <tt>memory_order_seq_cst</tt> operations.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Editorial.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.html">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new paragraph after 29.3 [atomics.order]p5 that says
-</p>
-
-<blockquote><p>
-For atomic operations <tt>A</tt> and <tt>B</tt> on an atomic object
-<tt>M</tt>, where <tt>A</tt> and <tt>B</tt> modify <tt>M</tt>, if there
-are <tt>memory_order_seq_cst</tt> fences <tt>X</tt> and <tt>Y</tt> such
-that <tt>A</tt> is sequenced before <tt>X</tt>, <tt>Y</tt> is sequenced
-before <tt>B</tt>, and <tt>X</tt> precedes <tt>Y</tt> in <tt>S</tt>,
-then <tt>B</tt> occurs later than <tt>A</tt> in the modifiction order of
-<tt>M</tt>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="927"></a>927. <tt>Dereferenceable</tt>  should be <tt>HasDereference</tt></h3>
-<p><b>Section:</b> X [allocator.concepts] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2008-10-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-X [allocator.concepts] contains a reference to a concept named
-<tt>Dereferenceable</tt>. No such concept exists.
-</p>
-
-<p><i>[
-Daniel adds 2009-02-14:
-]</i></p>
-
-
-<blockquote><p>
-The proposal given in the paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2829.pdf">N2829</a>
-would automatically resolve this issue.
-</p></blockquote>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-This particular set of changes has already been made.
-There are two related changes later on (and possibly also an earlier Example);
-these can be handled editorially.
-</p>
-<p>
-Move to NAD Editorial.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change all uses of the concept <tt>Dereferenceable</tt> to
-<tt>HasDereference</tt> in X [allocator.concepts].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="928"></a>928. Wrong concepts used for <tt>tuple</tt>'s comparison operators</h3>
-<p><b>Section:</b> 20.4.2.7 [tuple.rel] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2008-10-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.rel">active issues</a> in [tuple.rel].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.rel">issues</a> in [tuple.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the latest working draft for C++0x, <tt>tuple</tt>'s <tt>operator==</tt> and <tt>operator&lt;</tt>
-are declared as 
-</p>
-
-<blockquote><pre>
-template&lt;class... TTypes, class... UTypes&gt; 
-  requires EqualityComparable&lt;TTypes, UTypes&gt;... 
-  bool operator==(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre></blockquote>
-
-<p>
-and
-</p>
-
-<blockquote><pre>
-template&lt;class... TTypes, class... UTypes&gt; 
-  requires LessThanComparable&lt;TTypes, UTypes&gt;... 
-  bool operator&lt;(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre></blockquote>
-
-<p>
-But the concepts <tt>EqualityComparable</tt> and <tt>LessThanComparable</tt> only take one 
-parameter, not two.  Also, even if <tt>LessThanComparable</tt> could take two 
-parameters, the definition of <tt>tuple::operator&lt;()</tt> should also require 
-</p>
-
-<blockquote><pre>
-LessThanComparable&lt;UTypes, TTypes&gt;... // (note the order) 
-</pre></blockquote>
-
-<p>
-since the algorithm for <tt>tuple::operator&lt;</tt> is the following (pseudo-code)
-</p>
-
-<blockquote><pre>
-for (size_t N = 0; N &lt; sizeof...(TTypes); ++N) { 
-    if (get&lt;N&gt;(t) &lt; get&lt;N&gt;(u) return true; 
-    else if ((get&lt;N&gt;(u) &lt; get&lt;N&gt;(t)) return false; 
-} 
-
-return false; 
-</pre></blockquote>
-
-<p>
-Similar problems hold for <tt>tuples</tt>'s other comparison operators.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.4.1 [tuple.general] and 20.4.2.7 [tuple.rel] change:
-</p>
-
-<blockquote><pre>
-template&lt;class... TTypes, class... UTypes&gt;
-  requires <del>EqualityComparable</del><ins>HasEqualTo</ins>&lt;TTypes, UTypes&gt;...
-  bool operator==(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-
-template&lt;class... TTypes, class... UTypes&gt;
-  requires <del>LessThanComparable</del><ins>HasLess</ins>&lt;TTypes, UTypes&gt;... <ins>&amp;&amp; HasLess&lt;UTypes, TTypes&gt;...</ins>
-  bool operator&lt;(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-
-template&lt;class... TTypes, class... UTypes&gt;
-  requires <del>EqualityComparable</del><ins>HasEqualTo</ins>&lt;TTypes, UTypes&gt;...
-  bool operator!=(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-
-template&lt;class... TTypes, class... UTypes&gt;
-  requires <del>LessThanComparable</del><ins>HasLess</ins>&lt;<del>U</del><ins>T</ins>Types, <del>T</del><ins>U</ins>Types&gt;... <ins>&amp;&amp; HasLess&lt;UTypes, TTypes&gt;...</ins>
-  bool operator&gt;(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-
-template&lt;class... TTypes, class... UTypes&gt;
-  requires <del>LessThanComparable</del><ins>HasLess</ins>&lt;<del>U</del><ins>T</ins>Types, <del>T</del><ins>U</ins>Types&gt;... <ins>&amp;&amp; HasLess&lt;UTypes, TTypes&gt;...</ins>
-  bool operator&lt;=(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-
-template&lt;class... TTypes, class... UTypes&gt;
-  requires <del>LessThanComparable</del><ins>HasLess</ins>&lt;TTypes, UTypes&gt;... <ins>&amp;&amp; HasLess&lt;UTypes, TTypes&gt;...</ins>
-  bool operator&gt;=(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="930"></a>930. Access to std::array data as built-in array type</h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2008-11-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The Working Draft (N2798) allows access to the elements of
-<tt>std::array</tt> by its <tt>data()</tt> member function:
-</p>
-
-<blockquote>
-
-<h5>23.2.1.4 array::data [array.data]</h5>
-<pre>
- T *data();
- const T *data() const;
-</pre>
-<ol><li>
- Returns: elems.
-</li></ol>
-</blockquote>
-
-<p>
-Unfortunately, the result of <tt>std::array::data()</tt> cannot be bound
-to a reference to a built-in array of the type of <tt>array::elems</tt>.
-And <tt>std::array</tt> provides no other way to get a reference to
-<tt>array::elems</tt>. 
-This hampers the use of <tt>std::array</tt>, for example when trying to
-pass its data to a C style API function:
-</p>
-
-<pre>
- // Some C style API function. 
- void set_path( char (*)[MAX_PATH] );
-
- std::array&lt;char,MAX_PATH&gt; path;
- set_path( path.data() );  // error
- set_path( &amp;(path.data()) );  // error
-</pre>
-
- <p>
-Another example, trying to pass the array data to an instance of another
-C++ class:
-</p>
-
-<pre>
- // Represents a 3-D point in space.
- class three_d_point {
- public:
-   explicit three_d_point(const double (&amp;)[3]); 
- };
-
- const std::array&lt;double,3&gt; coordinates = { 0, 1, 2 };
- three_d_point point1( coordinates.data() );  // error.
- three_d_point point2( *(coordinates.data()) );  // error.
-</pre>
-
-<p>
-A user might be tempted to use <tt>std::array::elems</tt> instead, but
-doing so isn't recommended, because <tt>std::array::elems</tt> is "for
-exposition only".  Note that Boost.Array users might already use
-<tt>boost::array::elems</tt>, as its documentation doesn't explicitly
-state that <tt>boost::array::elems</tt> is for exposition only:
-http://www.boost.org/doc/libs/1_36_0/doc/html/boost/array.html
-</p>
-<p>
-I can think of three options to solve this issue:
-</p>
-<ol><li>
-Remove the words "exposition only" from the definition of
-<tt>std::array::elems</tt>, as well as the note saying that "elems is
-shown for exposition only."
-</li><li>
-Change the signature of <tt>std::array::data()</tt>, so that it would
-return a reference to the built-in array, instead of a pointer to its
-first element.
-</li><li>
-Add extra member functions, returning a reference to the built-in array.
-</li></ol>
-<p>
-Lawrence Crowl wrote me that it might be better to leave
-<tt>std::array::elems</tt> "for exposition only", to allow alternate
-representations to allocate the array data dynamically.  This might be
-of interest to the embedded community, having to deal with very limited
-stack sizes.
-</p>
-<p>
-The second option, changing the return type of
-<tt>std::array::data()</tt>, would break backward compatible to current
-Boost and TR1 implementations, as well as to the other contiguous
-container (<tt>vector</tt> and <tt>string</tt>) in a very subtle way.
-For example, the following call to <tt>std::swap</tt> currently swap two
-locally declared pointers <tt>(data1, data2)</tt>, for any container
-type <tt>T</tt> that has a <tt>data()</tt> member function. When
-<tt>std::array::data()</tt> is changed to return a reference, the
-<tt>std::swap</tt> call may swap the container elements instead.
-</p>
-
-<pre>
- template &lt;typename T&gt;
- void func(T&amp; container1, T&amp; container2)
- {
-   // Are data1 and data2 pointers or references?
-   auto data1 = container1.data();
-   auto data2 = container2.data();
-
-   // Will this swap two local pointers, or all container elements?
-   std::swap(data1, data2);
- }
-</pre>
-
-<p>
-The following concept is currently satisfied by all contiguous
-containers, but it no longer is for <tt>std::array</tt>, when
-<tt>array::data()</tt>
-is changed to return a reference (tested on ConceptGCC Alpha 7):
-</p>
-
-<pre>
- auto concept ContiguousContainerConcept&lt;typename T&gt;
- {
-   typename value_type = typename T::value_type;
-   const value_type * T::data() const;
- }
-</pre>
-
-<p>
-Still it's worth considering having <tt>std::array::data()</tt> return a
-reference, because it might be the most intuitive option, from a user's
-point of view.  Nicolai Josuttis (who wrote <tt>boost::array</tt>)
-mailed me that he very much prefers this option.
-</p>
-<p>
-Note that for this option, the definition of <tt>data()</tt> would also
-need to be revised for zero-sized arrays, as its return type cannot be a
-reference to a zero-sized built-in array.  Regarding zero-sized array,
-<tt>data()</tt> could throw an exception.  Or there could be a partial
-specialization of <tt>std::array</tt> where <tt>data()</tt> returns
-<tt>T*</tt> or gets removed.
-</p>
-<p>
-Personally I prefer the third option, adding a new member function to
-<tt>std::array</tt>, overloaded for const and non-const access,
-returning a reference to the built-in array, to avoid those compatible
-issues. I'd propose naming the function <tt>std::array::c_array()</tt>,
-which sounds intuitive to me. Note that <tt>boost::array</tt> already
-has a <tt>c_array()</tt> member, returning a pointer, but Nicolai told
-me that this one is only there for historical reasons. (Otherwise a name
-like <tt>std::array::native_array()</tt> or
-<tt>std::array::builtin_array()</tt> would also be fine with me.) 
-According to my proposed resolution, a zero-sized <tt>std::array</tt> does not need
-to have <tt>c_array()</tt>, while it is still required to have
-<tt>data()</tt> functions.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-
-<p>
-Alisdair: Don't like p4 suggesting implementation-defined behaviour.
-</p>
-<p>
-Walter: What about an explicit conversion operator, instead of adding
-the new member function?
-</p>
-<p>
-Alisdair: Noodling about:
-</p>
-<blockquote><pre>
-template&lt;size_t N, ValueType T&gt;
-struct array
-{
-  T elems[N];
-
-// fantasy code starts here
-
-// crazy decltype version for grins only
-//requires True&lt;(N&gt;0)&gt;
-//explict operator decltype(elems) &amp; () { return elems; }
-
-// conversion to lvalue ref
-requires True&lt;(N&gt;0)&gt;
-explict operator T(&amp;)[N] () &amp; { return elems; }
-
-// conversion to const lvalue ref
-requires True&lt;(N&gt;0)&gt;
-explict operator const T(&amp;)[N] () const &amp; { return elems; }
-
-// conversion to rvalue ref using ref qualifiers
-requires True&lt;(N&gt;0)&gt;
-explict operator T(&amp;&amp;)[N] () &amp;&amp; { return elems; }
-
-// fantasy code ends here
-
-explicit operator bool() { return true; }
-};
-</pre></blockquote>
-
-<p>
-This seems legal but odd. Jason Merrill says currently a CWG issue 613
-on the non-static data member that fixes the error that current G++
-gives for the non-explicit, non-conceptualized version of this. Verdict
-from human compiler: seems legal.
-</p>
-<p>
-Some grumbling about zero-sized arrays being allowed and supported.
-</p>
-<p>
-Walter: Would this address the issue? Are we inclined to go this route?
-</p>
-<p>
-Alan: What would usage look like?
-</p>
-<blockquote><pre>
-// 3-d point in space
-struct three_d_point
-{
-  explicit three_d_point(const double (&amp;)[3]);
-};
-
-void sink(double*);
-
-const std::array&lt;double, 3&gt; coordinates = { 0, 1, 2 };
-three_d_point point1( coordinates.data() ); //error
-three_d_point point2( *(coordinates.data()) ); // error
-three_d_point point3( coordinates ); // yay!
-
-sink(cooridinates); // error, no conversion
-</pre></blockquote>
-
-<p>
-Recommended Open with new wording. Take the required clause and add the
-explicit conversion operators, not have a <tt>typedef</tt>. At issue still is use
-<tt>decltype</tt> or use <tt>T[N]</tt>. In favour of using <tt>T[N]</tt>, even though use of
-<tt>decltype</tt> is specially clever.
-</p>
-
-</blockquote>
-
-<p><i>[
-Post Summit, further discussion in the thread starting with c++std-lib-23215.
-]</i></p>
-
-
-<p><i>[
-2009-07 post-Frankfurt (Saturday afternoon group):
-]</i></p>
-
-
-<blockquote>
-<p>
-The idea to resolve the issue by adding explicit conversion operators
-was abandoned, because it would be inconvenient to use, especially when
-passing the array to a template function, as mentioned by Daniel. So we
-reconsidered the original proposed resolution, which appeared
-acceptable, except for its proposed changes to 23.3.2.8 [array.zero], which
-allowed <tt>c_array_type</tt> and <tt>c_array()</tt> to be absent for a zero-sized array.
-Alisdair argued that such wording would disallow certain generic use
-cases. New wording for 23.3.2.8 [array.zero] was agreed upon (Howard: and
-is reflected in the proposed resolution).
-</p>
-<p>
-Move to Review
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-31 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I will be unhappy voting the proposed resolution for 930 past review
-until we have implementation experience with reference qualifiers. 
-Specifically, I want to understand the impact of the missing overload
-for <tt>const &amp;&amp;</tt> (if any.)
-</p>
-
-<p>
-If we think the issue is important enough it might be worthwhile
-stripping the ref qualifiers for easy progress next meeting, and opening
-yet another issue to put them back with experience.
-</p>
-
-<p>
-Recommend deferring any decision on splitting the issue until we get LWG
-feedback next meeting - I may be the lone dissenting voice if others are
-prepared to proceed without it.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD. There was not enough consensus that this was sufficiently
-useful. There are known other ways to do this, such as small inline
-conversion functions.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the template definition of array, 23.3.2 [array]/3:
-</p>
-
-<blockquote>
-<pre><ins>
-typedef T c_array_type[N];
-c_array_type &amp; c_array() &amp;;
-c_array_type &amp;&amp; c_array() &amp;&amp;;
-const c_array_type &amp; c_array() const &amp;;
-</ins>
-</pre>
-</blockquote>
-
-<p>
-Add the following subsection to 23.3.2 [array], after 23.3.2.5 [array.data]:
-</p>
-
-<blockquote>
-<h5><ins>23.2.1.5 array::c_array [array.c_array]</ins></h5>
-    <pre><ins>
-c_array_type &amp; c_array() &amp;;
-c_array_type &amp;&amp; c_array() &amp;&amp;;
-const c_array_type &amp; c_array() const &amp;;
-</ins></pre>
-<blockquote>
-<p>
-<ins><i>Returns:</i> <tt>elems</tt>.</ins>
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-<p>
-Change Zero sized arrays 23.3.2.8 [array.zero]:
-</p>
-
-<blockquote>
-
-<p>-2- ...</p>
-
-<p><ins>
-The type <tt>c_array_type</tt> is unspecified for a zero-sized array.
-</ins></p>
-
-<p>
--3- The effect of calling <ins><tt>c_array()</tt>,</ins> <tt>front()</tt><ins>,</ins> or
-<tt>back()</tt> for a zero-sized array is implementation defined.
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="937"></a>937. Atomics for standard typedef types</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Clark Nelson <b>Opened:</b> 2008-12-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 89</b></p>
-
-<blockquote>
-<p>
-The types in the table "Atomics for standard typedef types" should be
-typedefs, not classes. These semantics are necessary for compatibility
-with C.
-</p>
-
-<p>
-Change the classes to typedefs.
-</p>
-</blockquote>
-
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">N2427</a>
-specified different requirements for atomic analogs of fundamental
-integer types (such as <tt>atomic_int</tt>) and for atomic analogs of <tt>&lt;cstdint&gt;</tt>
-typedefs (such as <tt>atomic_size_t</tt>). Specifically, <tt>atomic_int</tt> et al. were
-specified to be distinct classes, whereas <tt>atomic_size_t</tt> et al. were
-specified to be typedefs. Unfortunately, in applying
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">N2427</a>
-to the WD, that distinction was erased, and the atomic analog of every <tt>&lt;cstdint&gt;</tt>
-typedef is required to be a distinct class.
-</p>
-
-<p>
-It shouldn't be required that the atomic analog of every <tt>&lt;cstdint&gt;</tt>
-typedef be a typedef for some fundamental integer type. After all,
-<tt>&lt;cstdint&gt;</tt> is supposed to provide standard names for extended integer
-types. So there was a problem in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">N2427</a>,
-which certainly could have been
-interpreted to require that. But the status quo in the WD is even worse,
-because it's unambiguously wrong.
-</p>
-
-<p>
-What is needed are words to require the existence of a bunch of type
-names, without specifying whether they are class names or typedef names.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Change status to NAD, editorial. See US 89 comment notes above.
-</p>
-<p>
-Direct the editor to turn the types into typedefs as proposed in the
-comment. Paper approved by committee used typedefs, this appears to have
-been introduced as an editorial change. Rationale: for compatibility
-with C.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="941"></a>941. Ref-qualifiers for assignment operators</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2008-12-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The assignment and equality operators <tt>=</tt> and <tt>==</tt> are easily confused, just
-because of their visual similarity, and in this case a simple typo can cause
-a serious bug. When the left side of an <tt>operator=</tt> is an rvalue, it's
-highly unlikely that the assignment was intended by the programmer:
-</p>
-<blockquote><pre>
-if ( func() = value )  // Typical typo: == intended!
-</pre></blockquote>
-<p>
-Built-in types don't support assignment to an rvalue, but unfortunately,
-a lot of types provided by the Standard Library do.
-</p>
-<p>
-Fortunately the language now offers a syntax to prevent a certain member
-function from having an rvalue as <tt>*this</tt>: by adding a ref-qualifier (<tt>&amp;</tt>)
-to the member function declaration.  Assignment operators are explicitly
-mentioned as a use case of ref-qualifiers, in "Extending Move Semantics
-To <tt>*this</tt> (Revision 1)",
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1821.htm">N1821</a> by Daveed
-Vandevoorde and Bronek Kozicki
-</p>
-<p>
-Hereby I would like to propose adding ref-qualifiers to all appropriate
-assignment operators in the library.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open.
-We recommend this be deferred until after the next Committee Draft.
-</p></blockquote>
-
-<p><i>[
-Frankfurt 2009-07:
-]</i></p>
-
-
-<blockquote>
-<p>
-The LWG declined to move forward with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2819.html">N2819</a>.
-</p>
-<p>
-Moved to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-A proposed resolution is provided by the paper on this subject,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2819.html">N2819</a>,
-<i>Ref-qualifiers for assignment operators of the Standard Library</i>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="942"></a>942. Atomics synopsis typo</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Holger Grund <b>Opened:</b> 2008-12-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#880">880</a></p>
-<p><b>Discussion:</b></p>
-
-
-
-<p>
-I'm looking at 29 [atomics] and can't really make sense of a couple of things.
-</p>
-<p>
-Firstly, there appears to be a typo in the <tt>&lt;cstdatomic&gt;</tt> synopsis:
-</p>
-
-<blockquote>
-<p>
-The <tt>atomic_exchange</tt> overload taking an <tt>atomic_address</tt>
-is missing the second parameter:
-</p>
-
-<blockquote><pre>
-void* atomic_exchange(volatile atomic_address*);
-</pre></blockquote>
-
-<p>
-should be
-</p>
-
-<blockquote><pre>
-void* atomic_exchange(volatile atomic_address*<ins>, void*</ins>);
-</pre></blockquote>
-
-<p>
-Note, that this is <em>not</em> covered by <a href="lwg-defects.html#880">880</a> "Missing atomic exchange parameter",
-which only talks about the <tt>atomic_bool</tt>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 29 [atomics]/2:
-</p>
-
-<blockquote><pre>
-void* atomic_exchange(volatile atomic_address*<ins>, void*</ins>);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="945"></a>945. <tt>system_clock::rep</tt> not specified</h3>
-<p><b>Section:</b> 20.12.7.1 [time.clock.system] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2008-12-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.system">issues</a> in [time.clock.system].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.12.7.1 [time.clock.system], the declaration of <tt>system_clock::rep</tt> says "see
-below", but there is nothing below that describes it.
-</p>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This note refers to:
-</p>
-
-<blockquote><p>
--2- <tt>system_clock::duration::min() &lt; system_clock::duration::zero()</tt> shall be <tt>true</tt>.
-</p></blockquote>
-
-<p>
-I.e. this is standardeze for "<tt>system_clock::rep</tt> is signed".
-Perhaps an editorial note along the lines of:
-</p>
-
-<blockquote><p>
--2- <tt>system_clock::duration::min() &lt; system_clock::duration::zero()</tt>
-shall be <tt>true</tt>. <ins>[<i>Note:</i> <tt>system_clock::rep</tt> shall be signed. <i>-- end note</i>].</ins>
-</p></blockquote>
-
-<p>
-?
-</p>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the direction of the proposed resolution.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a note to 20.12.7.1 [time.clock.system], p2:
-</p>
-<blockquote><p>
--2- <tt>system_clock::duration::min() &lt; system_clock::duration::zero()</tt>
-shall be <tt>true</tt>. <ins>[<i>Note:</i> <tt>system_clock::rep</tt> shall be signed. <i>-- end note</i>].</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="946"></a>946. <tt>duration_cast</tt> improperly specified</h3>
-<p><b>Section:</b> 20.12.5.7 [time.duration.cast] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2008-12-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.cast">issues</a> in [time.duration.cast].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.12.5.7 [time.duration.cast]/3:
-</p>
-<blockquote><p>
-.... All intermediate computations shall be
-carried out in the widest possible representation... .
-</p></blockquote>
-
-<p>
-So ignoring floating-point types for the moment, all this arithmetic has to be done
-using the implementation's largest integral type, even if both arguments
-use <tt>int</tt> for their representation. This seems excessive. And it's not at
-all clear what this means if we don't ignore floating-point types.
-</p>
-
-<p>
-This issue is related to <a href="lwg-closed.html#952">952</a>.
-</p>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The intent of this remark is that intermediate computations are carried out
-using:
-</p>
-
-<blockquote><pre>
-common_type&lt;typename ToDuration::rep, Rep, intmax_t&gt;::type
-</pre></blockquote>
-
-<p>
-The Remark was intended to be clarifying prose supporting the rather algorithmic description
-of the previous paragraph.  I'm open to suggestions.  Perhaps the entire paragraph
-3 (Remarks) would be better dropped?
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We view this as a specific case of issue <a href="lwg-closed.html#952">952</a>,
-and should be resolved when that issue is resolved.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="952"></a>952. Various threading bugs #2</h3>
-<p><b>Section:</b> 20.12.5.7 [time.duration.cast] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.cast">issues</a> in [time.duration.cast].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.12.5.7 [time.duration.cast] specifies an implementation and imposes
-requirements in text (and the implementation doesn't satisfy all of the
-text requirements). Pick one.
-</p>
-
-<p>
-This issue is related to <a href="lwg-closed.html#946">946</a>.
-</p>
-
-<p><i>[
-2009-05-10 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The <i>Remarks</i> paragraph is an English re-statement of the preceeding
-<i>Returns</i> clause.  It was meant to be clarifying and motivating, not
-confusing.  I'm not aware with how the <i>Remarks</i> contradicts the <i>Returns</i> clause
-but I'm ok with simply removing the <i>Remarks</i>.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete suggests that this could be resolved
-by rephrasing the Remarks to Notes.
-</p>
-<p>
-Move to NAD Editorial.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="955"></a>955. Various threading bugs #5</h3>
-<p><b>Section:</b> 20.12.3 [time.clock.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.12.3 [time.clock.req] requires that a clock type have a member
-typedef named <tt>time_point</tt> that names an instantiation of the
-template <tt>time_point</tt>, and a member named <tt>duration</tt> that
-names an instantiation of the template <tt>duration</tt>. This mixing of
-levels is confusing. The typedef names should be different from the
-template names.
-</p>
-
-<p><i>[
-Post Summit, Anthony provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-05-04 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The reason that the typedef names were given the same name as the class templates
-was so that clients would not have to stop and think about whether they were
-using the clock's native <tt>time_point</tt> / <tt>duration</tt> or the class
-template directly.  In this case, one person's confusion is another person's
-encapsulation.  The detail that sometimes one is referring to the clock's
-native types, and sometimes one is referring to an independent type is
-<em>purposefully</em> "hidden" because it is supposed to be an unimportant
-detail.  It can be confusing to have to remember when to type <tt>duration</tt>
-and when to type <tt>duration_type</tt>, and there is no need to require the
-client to remember something like that.
-</p>
-
-<p>
-For example, here is code that I once wrote in testing out the usability of
-this facility:
-</p>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-void do_until(const std::chrono::<b>time_point</b>&lt;Clock, Duration&gt;&amp; t)
-{
-    typename Clock::<b>time_point now</b> = Clock::now();
-    if (t &gt; now)
-    {
-        typedef typename std::common_type
-        &lt;
-            Duration,
-            typename std::chrono::system_clock::<b>duration</b>
-        &gt;::type CD;
-        typedef std::chrono::<b>duration</b>&lt;double, std::nano&gt; ID;
-
-        CD d = t - now;
-        ID us = duration_cast&lt;ID&gt;(d);
-        if (us &lt; d)
-            ++us;
-        ...
-    }
-}
-</pre></blockquote>
-
-<p>
-I see no rationale to require the client to append <tt>_type</tt> to <em>some</em>
-of those declarations.  It seems overly burdensome on the author of <tt>do_until</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-void do_until(const std::chrono::<b>time_point</b>&lt;Clock, Duration&gt;&amp; t)
-{
-    typename Clock::<b>time_point<span style="color:#C80000">_type</span></b> now = Clock::now();
-    if (t &gt; now)
-    {
-        typedef typename std::common_type
-        &lt;
-            Duration,
-            typename std::chrono::system_clock::<b>duration<span style="color:#C80000">_type</span></b>
-        &gt;::type CD;
-        typedef std::chrono::<b>duration</b>&lt;double, std::nano&gt; ID;
-
-        CD d = t - now;
-        ID us = duration_cast&lt;ID&gt;(d);
-        if (us &lt; d)
-            ++us;
-        ...
-    }
-}
-</pre></blockquote>
-
-<p>
-Additionally I'm fairly certain that this suggestion hasn't been implemented.
-If it had, it would have been discovered that it is incomplete.  <tt>time_point</tt>
-also has a nested type (purposefully) named <tt>duration</tt>.
-</p>
-<blockquote><p>
-That is, the current proposed wording would put the WP into an inconsistent state.
-</p></blockquote>
-<p>
-In contrast,
-the current WP has been implemented and I've received very favorable feedback
-from people using this interface in real-world code.
-</p>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Bill agrees that distinct names should be used for distinct kinds of entities.
-</p>
-<p>
-Walter would prefer not to suffix type names,
-especially for such well-understood terms as "duration".
-</p>
-<p>
-Howard reminds us that the proposed resolution is incomplete, per his comment
-in the issue.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-06-07 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Not meaning to be argumentative, but we have a decade of positive experience
-with the precedent of using the same name for the nested type as an external
-class representing an identical concept.
-</p>
-
-<blockquote><pre>
-template&lt;class Category, class T, class Distance = ptrdiff_t,
-         class Pointer = T*, class Reference = T&amp;&gt;
-struct <b>iterator</b>
-{
-    ...
-};
-
-template &lt;BidirectionalIterator Iter&gt;
-class <b>reverse_iterator</b>
-{
-    ...
-};
-
-template &lt;ValueType T, Allocator Alloc = allocator&lt;T&gt; &gt;
-    requires NothrowDestructible&lt;T&gt;
-class list
-{
-public:
-    typedef <i>implementation-defined</i>     <b>iterator</b>;
-    ...
-    typedef reverse_iterator&lt;iterator&gt; <b>reverse_iterator</b>;
-    ...
-};
-</pre></blockquote>
-
-<p>
-I am aware of <em>zero</em> complaints regarding the use of <tt>iterator</tt>
-and <tt>reverse_iterator</tt> as nested types of the containers despite these
-names also having related meaning at namespace std scope.
-</p>
-
-<p>
-Would we really be doing programmers a favor by renaming these nested types?
-</p>
-
-<blockquote><pre>
-template &lt;ValueType T, Allocator Alloc = allocator&lt;T&gt; &gt;
-    requires NothrowDestructible&lt;T&gt;
-class list
-{
-public:
-    typedef <i>implementation-defined</i>     <b>iterator_type</b>;
-    ...
-    typedef reverse_iterator&lt;iterator&gt; <b>reverse_iterator_type</b>;
-    ...
-};
-</pre></blockquote>
-
-<p>
-I submit that such design contributes to needless verbosity which ends up
-reducing readability.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD.  No concensus for changing the WP.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.12 [time]:
-</p>
-
-<blockquote><pre>
-...
-template &lt;class Clock, class Duration = typename Clock::duration<ins>_type</ins>&gt; class time_point;
-...
-</pre></blockquote>
-
-<p>
-Change 20.12.3 [time.clock.req]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 45 -- Clock requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-</tr>
-<tr>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-</tr>
-<tr>
-<td><tt>C1::duration<ins>_type</ins></tt></td>
-<td><tt>chrono::duration&lt;C1::rep, C1::period&gt;</tt></td>
-<td>The native <tt>duration</tt> type of the clock.</td>
-</tr>
-<tr>
-<td><tt>C1::time_point<ins>_type</ins></tt></td>
-<td><tt>chrono::time_point&lt;C1&gt;</tt> or <tt>chrono::time_point&lt;C2, C1::duration<ins>_type</ins>&lt;</tt></td>
-<td>The native <tt>time_point</tt> type of the clock.   Different clocks may  share a <tt>time_point<ins>_type</ins></tt>
-definition if it is valid to 
-compare their <tt>time_point<ins>_type</ins></tt>s by 
-comparing their respective 
-<tt>duration<ins>_type</ins></tt>s. <tt>C1</tt> and <tt>C2</tt> shall 
-refer to the same epoch.</td>
-</tr>
-<tr>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-</tr>
-<tr>
-<td><tt>C1::now()</tt></td>
-<td><tt>C1::time_point<ins>_type</ins></tt></td>
-<td>Returns a <tt>time_point<ins>_type</ins></tt> object 
-representing the current point 
-in time.
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Change 20.12.7.1 [time.clock.system]:
-</p>
-
-<blockquote>
-<p>
--1- Objects of class <tt>system_clock</tt> represent wall clock time from the system-wide realtime clock.
-</p>
-
-<blockquote><pre>
-class system_clock { 
-public: 
-  typedef <i>see below</i> rep; 
-  typedef ratio&lt;<i>unspecified</i>, <i>unspecified</i>&gt; period; 
-  typedef chrono::duration&lt;rep, period&gt; duration<ins>_type</ins>; 
-  typedef chrono::time_point&lt;system_clock&gt; time_point<ins>_type</ins>; 
-  static const bool is_monotonic = <i>unspecified</i> ; 
-
-  static time_point<ins>_type</ins> now(); 
-
-  // Map to C API 
-  static time_t to_time_t (const time_point<ins>_type</ins>&amp; t); 
-  static time_point<ins>_type</ins> from_time_t(time_t t); 
-};
-</pre></blockquote>
-
-<p>
--2- <tt>system_clock::duration<ins>_type</ins>::min() &lt; system_clock::duration<ins>_type</ins>::zero()</tt> shall be <tt>true</tt>.
-</p>
-
-<pre>
-time_t to_time_t(const time_point<ins>_type</ins>&amp; t);
-</pre>
-
-<blockquote><p>
--3- <i>Returns:</i> A <tt>time_t</tt> object that represents the same
-point in time as <tt>t</tt> when both values are truncated to the
-coarser of the precisions of <tt>time_t</tt> and <tt>time_point<ins>_type</ins></tt>.
-</p></blockquote>
-
-<pre>
-<tt>time_point<ins>_type</ins></tt> from_time_t(time_t t);
-</pre>
-
-<blockquote><p>
--4- <i>Returns:</i> A <tt>time_point<ins>_type</ins></tt> object that represents the same point
-in time as <tt>t</tt> when both values are truncated to the coarser of the
-precisions of <tt>time_t</tt> and <tt>time_point<ins>_type</ins></tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Change X [time.clock.monotonic]:
-</p>
-
-<blockquote><pre>
-class monotonic_clock { 
-public: 
-  typedef <i>unspecified</i>                                rep; 
-  typedef ratio&lt;<i>unspecified</i> , <i>unspecified</i>&gt;           period; 
-  typedef chrono::duration&lt;rep, period&gt;              duration<ins>_type</ins>; 
-  typedef chrono::time_point&lt;<i>unspecified</i> , duration<ins>_type</ins>&gt; time_point<ins>_type</ins>; 
-  static const bool is_monotonic =                   true; 
-
-  static time_point<ins>_type</ins> now();
-};
-</pre></blockquote>
-
-<p>
-Change 20.12.7.3 [time.clock.hires]:
-</p>
-
-<blockquote><pre>
-class high_resolution_clock { 
-public: 
-  typedef <i>unspecified</i>                                rep; 
-  typedef ratio&lt;<i>unspecified</i> , <i>unspecified</i>&gt;           period; 
-  typedef chrono::duration&lt;rep, period&gt;              duration<ins>_type</ins>; 
-  typedef chrono::time_point&lt;<i>unspecified</i> , duration<ins>_type</ins>&gt; time_point<ins>_type</ins>; 
-  static const bool is_monotonic =                   true; 
-
-  static time_point<ins>_type</ins> now();
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="959"></a>959. Various threading bugs #9</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.1 [thread.condition.condvar]: <tt>condition_variable::wait_for</tt>
-is required to compute the absolute time by adding the duration value to
-<tt>chrono::monotonic_clock::now()</tt>, but <tt>monotonic_clock</tt> is not required to
-exist.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. Associate with LWG <a href="lwg-defects.html#859">859</a> and any other monotonic-clock
-related issues.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I believe that <a href="lwg-defects.html#859">859</a> (currently Ready) addresses this issue, and
-that this issue should be marked NAD, solved by <a href="lwg-defects.html#859">859</a> (assuming
-it moves to WP).
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open, but expect to be fixed by N2969 revision that Detlef is writing.
-</p></blockquote>
-
-<p><i>[
-2009-11-18 Moved to Tentatively NAD after 5 positive votes on c++std-lib.
-Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-<tt>condition_variable::wait_for</tt> no longer refers to
-<tt>monotonic_clock</tt>, so this issue is moot.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="969"></a>969. What happened to Library Issue 475?</h3>
-<p><b>Section:</b> 25.2.4 [alg.foreach] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2009-01-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.foreach">issues</a> in [alg.foreach].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Library Issue <a href="lwg-defects.html#475">475</a> has CD1 status, but the non-normative note in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-was removed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>
-(25.2.4 [alg.foreach] in both drafts).
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Restore the non-normative note. It might need to be expressed in terms of concepts.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="971"></a>971. Spurious diagnostic conversion function</h3>
-<p><b>Section:</b> 19.5.2.5 [syserr.errcode.nonmembers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-01-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Anthony Williams raised the question in c++std-lib-22987 "why is there
-<tt>std::make_error_code(std::errc)</tt>? What purpose does this serve?"
-</p>
-<p>
-The function <tt>make_error_code(errc e)</tt> is not required, since
-<tt>make_error_condition(errc e)</tt> is the function that is needed for <tt>errc</tt>
-conversions. <tt>make_error_code(errc e)</tt> appears to be a holdover from my
-initial confusion over the distinction between POSIX and operating
-systems that conform to the POSIX spec.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Review.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The designer of the facility (Christopher Kohlhoff)
-strongly disagrees that there is an issue here,
-and especially disagrees with the proposed resolution.
-Bill would prefer to be conservative and not apply this proposed resolution.
-Move to Open, and recommend strong consideration for NAD status.
-</p></blockquote>
-
-<p><i>[
-2009-05-21 Beman adds:
-]</i></p>
-
-
-<blockquote><p>
-My mistake. Christopher and Bill are correct and the issue should be
-NAD. The function is needed by users.
-</p></blockquote>
-
-<p><i>[
-2009-07-21 Christopher Kohlhoff adds rationale for <tt>make_error_code</tt>:
-]</i></p>
-
-
-<blockquote>
-<p>
-Users (and indeed library implementers) may need to use the
-<tt>errc</tt> codes in portable code. For example:
-</p>
-
-<blockquote><pre>
-void do_foo(error_code&amp; ec)
-{
-#if defined(_WIN32)
-  // Windows implementation ...
-#elif defined(linux)
-  // Linux implementation ...
-#else
-  // do_foo not supported on this platform
-  ec = make_error_code(errc::not_supported);
-#endif
-}
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change System error support 19.5 [syserr], Header <tt>&lt;system_error&gt;</tt>
-synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-<del>error_code make_error_code(errc e);</del>
-error_condition make_error_condition(errc e);
-</pre></blockquote>
-
-<p>
-Delete from Class error_code non-member functions
-19.5.2.5 [syserr.errcode.nonmembers]:
-</p>
-
-<blockquote><pre>
-<del>error_code make_error_code(errc e);</del>
-</pre>
-<blockquote><p>
-<del><i>Returns:</i> <tt>error_code(static_cast&lt;int&gt;(e),
-generic_category)</tt>.</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="972"></a>972. The term "Assignable" undefined but still in use</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Previous versions of the Draft had a table, defining the Assignable 
-requirement.  For example 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2134.pdf">N2134</a>
-Table 79, "Assignable requirements". But I guess the term "Assignable" 
-is outdated by now, because the current Committee Draft provides 
-<tt>MoveAssignable</tt>, <tt>CopyAssignable</tt>, and <tt>TriviallyCopyAssignable</tt> concepts 
-instead. And as far as I can see, it no longer has a definition of 
-<tt>Assignable</tt>. (Please correct me if I'm wrong.) Still the word 
-"Assignable" is used in eight places in the Draft, 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>.
-</p>
-
-<p>
-Are all of those instances of "<tt>Assignable</tt>" to be replaced by "<tt>CopyAssignable</tt>"? 
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change Exception Propagation 18.8.5 [propagation]:
-</p>
-<blockquote><p>
-<tt>exception_ptr</tt> shall be <tt>DefaultConstructible</tt>, <tt>CopyConstructible</tt>,
-<tt><ins>Copy</ins>Assignable</tt> and <tt>EqualityComparable</tt>.
-</p></blockquote>
-
-<p>
-Change Class template reference_wrapper 20.9.4 [refwrap]:
-</p>
-<blockquote><p>
-<tt>reference_wrapper&lt;T&gt;</tt> is a <tt>CopyConstructible</tt> and <tt><ins>Copy</ins>Assignable</tt> 
-wrapper around a reference to an object of type <tt>T</tt>.
-</p></blockquote>
-<p>
-Change Placeholders 20.9.10.4 [func.bind.place]:
-</p>
-<blockquote><p>
-It is implementation defined whether placeholder types are <tt><ins>Copy</ins>Assignable</tt>. 
-<tt><ins>Copy</ins>Assignable</tt> placeholders' copy assignment operators shall not throw exceptions.
-</p></blockquote>
-<p>
-Change Class template shared_ptr 20.8.2.2 [util.smartptr.shared]:
-</p>
-<blockquote><p>
-Specializations of <tt>shared_ptr</tt> shall be <tt>CopyConstructible</tt>, <tt><ins>Copy</ins>Assignable</tt>, and <tt>LessThanComparable</tt>...
-</p></blockquote>
-<p>
-Change Class template weak_ptr 20.8.2.3 [util.smartptr.weak]:
-</p>
-<blockquote><p>
-Specializations of <tt>weak_ptr</tt> shall be <tt>CopyConstructible</tt>, <tt><ins>Copy</ins>Assignable</tt>, and <tt>LessThanComparable</tt>...
-</p></blockquote>
-<p>
-Change traits typedefs 21.2.2 [char.traits.typedefs] (note: including deletion of reference to 23.1!):
-</p>
-<blockquote><p>
-<i>Requires:</i> <tt>state_type</tt> shall meet the requirements of <tt><ins>Copy</ins>Assignable</tt><del> 
-(23.1)</del>, <tt>CopyConstructible</tt> (20.1.8), and <tt>DefaultConstructible</tt> types.
-</p></blockquote>
-<p>
-Change Class seed_seq 26.5.7.1 [rand.util.seedseq] (note again: including deletion of reference to 23.1!):
-</p>
-<blockquote><p>
-In addition to the requirements set forth below, instances of
-<tt>seed_seq</tt> shall meet the requirements of <tt>CopyConstructible</tt> (20.1.8) and of <tt><ins>Copy</ins>Assignable</tt><del> (23.1)</del>.
-</p></blockquote>
-
-<p>
-Note: The proposed resolution of this issue does not deal with the
-instance of the term "Assignable" in X [auto.ptr], as this is dealt
-with more specifically by LWG <a href="lwg-closed.html#973">973</a>, "<tt>auto_ptr</tt> characteristics", submitted
-by Maarten Hilferink.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="973"></a>973. auto_ptr characteristics</h3>
-<p><b>Section:</b> X [auto.ptr] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Maarten Hilferink <b>Opened:</b> 2009-01-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#auto.ptr">issues</a> in [auto.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think that the Note of X [auto.ptr], paragraph 3 needs a rewrite 
-since "Assignable" is no longer defined as a concept. 
-The relationship of <tt>auto_ptr</tt> with the new <tt>CopyAssignable</tt>, <tt>MoveAssignable</tt>,
- and <tt>MoveConstructible</tt> concepts should be clarified.
-Furthermore, since the use of <tt>auto_ptr</tt> is depreciated anyway,
- we can also omit a description of its intended use.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the intent of the proposed resolution.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change X [auto.ptr], paragraph 3:
-</p>
-
-<blockquote><p>
-The <tt>auto_ptr</tt> provides a semantics of strict ownership. An
-<tt>auto_ptr</tt> owns the ob ject it holds a pointer to. Copying an
-<tt>auto_ptr</tt> copies the pointer and transfers ownership to the
-destination. If more than one <tt>auto_ptr</tt> owns the same ob ject at
-the same time the behavior of the program is undefined. [<i>Note:</i>
-The uses of <tt>auto_ptr</tt> include providing temporary
-exception-safety for dynamically allocated memory, passing ownership of
-dynamically allocated memory to a function, and returning dynamically
-allocated memory from a function.
-<del><tt>auto_ptr</tt> does not meet the
-<tt>CopyConstructible</tt> and <tt>Assignable</tt> requirements for
-standard library container elements and thus instantiating a standard
-library container with an <tt>auto_ptr</tt> results in undefined
-behavior.</del>
-<p/>
-<ins>Instances of <tt>auto_ptr</tt> shall
-meet the <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>
-requirements, but do not meet the <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt> requirements.</ins>
--- <i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="977"></a>977. insert iterators inefficient for expensive to move types</h3>
-<p><b>Section:</b> 24.5.2 [insert.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#insert.iterators">issues</a> in [insert.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The new concepts for the insert iterators mandate an extra copy when
-inserting an lvalue:
-</p>
-
-<blockquote><pre>
-requires CopyConstructible&lt;Cont::value_type&gt;
-  back_insert_iterator&lt;Cont&gt;&amp; 
-  operator=(const Cont::value_type&amp; value);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <tt>push_back(*container, <b>Cont::value_type(</b>value<b>)</b>);</tt>
-</p></blockquote>
-</blockquote>
-
-<p>
-The reason is to convert <tt>value</tt> into an rvalue because the current
-<tt>BackInsertionContainer</tt> concept only handles <tt>push_back</tt>-ing
-rvalues:
-</p>
-
-<blockquote><pre>
-concept BackInsertionContainer&lt;typename C&gt; : Container&lt;C&gt; { 
-  void push_back(C&amp;, value_type&amp;&amp;); 
-}
-</pre></blockquote>
-
-<p>
-Without the conversion of <tt>value</tt> to an rvalue, the assignment operator
-fails to concept check.
-</p>
-
-<p>
-A solution is to modify the <tt>BackInsertionContainer</tt> concept so that
-the client can pass in the parameter type for <tt>push_back</tt> similar to
-what is already done for the <tt>OutputIterator</tt> concept:
-</p>
-
-<blockquote><pre>
-concept BackInsertionContainer&lt;typename C, typename Value = C::value_type&amp;&amp;&gt;
-  : Container&lt;C&gt; { 
-     void push_back(C&amp;, Value); 
-}
-</pre></blockquote>
-
-<p>
-This allows the assignment operator to be adjusted appropriately:
-</p>
-
-<blockquote><pre>
-requires BackInsertionContainer&lt;Cont, Cont::value_type const&amp;&gt; &amp;&amp;
-         CopyConstructible&lt;Cont::value_type&gt;
-  back_insert_iterator&lt;Cont&gt;&amp; 
-  operator=(const Cont::value_type&amp; value);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <tt>push_back(*container, value);</tt>
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-We may want to propagate this fix to other concepts such as <tt>StackLikeContainer</tt>.
-]</i></p>
-
-
-<p><i>[
-Solution and wording collaborated on by Doug and Howard.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard notes that "these operations behaved efficiently until concepts were added."
-</p>
-<p>
-Alisdair is uncertain that the proposed resolution is syntactically correct.
-</p>
-<p>
-Move to Open, and recommend the issue be deferred until after the next
-Committee Draft is issued.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD, solved by the removal of concepts.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change  [container.concepts.free]:
-</p>
-
-<blockquote>
-<pre>
-concept FrontInsertionContainer&lt;typename C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt;
-    : Container&lt;C&gt; { 
-  void push_front(C&amp;, <del>value_type&amp;&amp;</del> <ins>Value</ins>); 
-
-  axiom FrontInsertion(C c, <del>value_type</del> <ins>Value</ins> x) { 
-    x == (push_front(c, x), front(c)); 
-  } 
-}
-</pre>
-
-<p>...</p>
-
-<pre>
-concept BackInsertionContainer&lt;typename C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt;
-    : Container&lt;C&gt; { 
-  void push_back(C&amp;, <del>value_type&amp;&amp;</del> <ins>Value</ins>); 
-}
-</pre>
-
-<p>...</p>
-
-<pre>
-concept InsertionContainer&lt;typename C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt;
-    : Container&lt;C&gt; { 
-  iterator insert(C&amp;, const_iterator, <del>value_type&amp;&amp;</del> <ins>Value</ins>); 
-
-  axiom Insertion(C c, const_iterator position, <del>value_type</del> <ins>Value</ins> v) { 
-    v == *insert(c, position, v); 
-  } 
-}
-</pre>
-
-</blockquote>
-
-<p>
-Change  [container.concepts.member]:
-</p>
-
-<blockquote>
-<pre>
-auto concept MemberFrontInsertionContainer&lt;typename C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt;
-    : MemberContainer&lt;C&gt; { 
-  void C::push_front(<del>value_type&amp;&amp;</del> <ins>Value</ins>); 
-
-  axiom MemberFrontInsertion(C c, <del>value_type</del> <ins>Value</ins> x) { 
-    x == (c.push_front(x), c.front()); 
-  } 
-}
-</pre>
-
-<p>...</p>
-
-<pre>
-auto concept MemberBackInsertionContainer&lt;typename C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt;
-    : MemberContainer&lt;C&gt; { 
-  void C::push_back(<del>value_type&amp;&amp;</del> <ins>Value</ins>); 
-}
-</pre>
-
-<p>...</p>
-
-<pre>
-auto concept MemberInsertionContainer&lt;typename C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt;
-    : MemberContainer&lt;C&gt; { 
-  iterator C::insert(const_iterator, <del>value_type&amp;&amp;</del> <ins>Value</ins>); 
-
-  axiom MemberInsertion(C c, const_iterator position, <del>value_type</del> <ins>Value</ins> v) { 
-    v == *c.insert(position, v); 
-  } 
-}
-</pre>
-</blockquote>
-
-<p>
-Change  [container.concepts.maps]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;MemberFrontInsertionContainer C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt; 
-concept_map FrontInsertionContainer&lt;C<ins>, Value</ins>&gt; { 
-  typedef Container&lt;C&gt;::value_type value_type;
-
-  void push_front(C&amp; c, <del>value_type&amp;&amp;</del> <ins>Value</ins> v) { c.push_front(static_cast&lt;<del>value_type&amp;&amp;</del> <ins>Value</ins>&gt;(v)); } 
-}
-</pre>
-
-<p>...</p>
-
-<pre>
-template &lt;MemberBackInsertionContainer C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt; 
-concept_map BackInsertionContainer&lt;C<ins>, Value</ins>&gt; { 
-  typedef Container&lt;C&gt;::value_type value_type;
-
-  void push_back(C&amp; c, <del>value_type&amp;&amp;</del> <ins>Value</ins> v) { c.push_back(static_cast&lt;<del>value_type&amp;&amp;</del> <ins>Value</ins>&gt;(v)); } 
-}
-</pre>
-
-<p>...</p>
-
-<pre>
-template &lt;MemberInsertionContainer C<ins>, typename Value = C::value_type&amp;&amp;</ins>&gt; 
-concept_map InsertionContainer&lt;C<ins>, Value</ins>&gt; { 
-  typedef Container&lt;C&gt;::value_type value_type;
-  Container&lt;C&gt;::iterator insert(C&amp; c, Container&lt;C&gt;::const_iterator i, <del>value_type&amp;&amp;</del> <ins>Value</ins> v) 
-  { return c.insert(i, static_cast&lt;<del>value_type&amp;&amp;</del> <ins>Value</ins>&gt;(v)); } 
-}
-</pre>
-
-</blockquote>
-
-<p>
-Change 24.5.2.1 [back.insert.iterator]:
-</p>
-
-<blockquote><pre>
-template &lt;BackInsertionContainer Cont&gt; 
-class back_insert_iterator {
-  ...
-  requires <ins>BackInsertionContainer&lt;Cont, const Cont::value_type&amp;&gt;</ins>
-           <del>CopyConstructible&lt;Cont::value_type&gt;</del>
-    back_insert_iterator&lt;Cont&gt;&amp; 
-      operator=(const Cont::value_type&amp; value);
-  ...
-</pre></blockquote>
-
-<p>
-Change 24.5.2.2.2 [back.insert.iter.op=]:
-</p>
-
-<blockquote>
-<pre>
-requires <ins>BackInsertionContainer&lt;Cont, const Cont::value_type&amp;&gt;</ins>
-         <del>CopyConstructible&lt;Cont::value_type&gt;</del>
-  back_insert_iterator&lt;Cont&gt;&amp; 
-    operator=(const Cont::value_type&amp; value);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <tt>push_back(*container, <del>Cont::value_type(</del>value<del>)</del>);</tt>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 24.5.2.3 [front.insert.iterator]:
-</p>
-
-<blockquote><pre>
-template &lt;FrontInsertionContainer Cont&gt; 
-class front_insert_iterator {
-  ...
-  requires <ins>FrontInsertionContainer&lt;Cont, const Cont::value_type&amp;&gt;</ins>
-           <del>CopyConstructible&lt;Cont::value_type&gt;</del>
-    front_insert_iterator&lt;Cont&gt;&amp; 
-      operator=(const Cont::value_type&amp; value);
-  ...
-</pre></blockquote>
-
-<p>
-Change 24.5.2.4.2 [front.insert.iter.op=]:
-</p>
-
-<blockquote>
-<pre>
-requires <ins>FrontInsertionContainer&lt;Cont, const Cont::value_type&amp;&gt;</ins>
-         <del>CopyConstructible&lt;Cont::value_type&gt;</del>
-  front_insert_iterator&lt;Cont&gt;&amp; 
-    operator=(const Cont::value_type&amp; value);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <tt>push_front(*container, <del>Cont::value_type(</del>value<del>)</del>);</tt>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 24.5.2.5 [insert.iterator]:
-</p>
-
-<blockquote><pre>
-template &lt;InsertionContainer Cont&gt; 
-class insert_iterator {
-  ...
-  requires <ins>InsertionContainer&lt;Cont, const Cont::value_type&amp;&gt;</ins>
-           <del>CopyConstructible&lt;Cont::value_type&gt;</del>
-    insert_iterator&lt;Cont&gt;&amp; 
-      operator=(const Cont::value_type&amp; value);
-  ...
-</pre></blockquote>
-
-<p>
-Change 24.5.2.6.2 [insert.iter.op=]:
-</p>
-
-<blockquote>
-<pre>
-requires <ins>InsertionContainer&lt;Cont, const Cont::value_type&amp;&gt;</ins>
-         <del>CopyConstructible&lt;Cont::value_type&gt;</del>
-  insert_iterator&lt;Cont&gt;&amp; 
-    operator=(const Cont::value_type&amp; value);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects:</i>
-</p>
-<blockquote><pre>
-iter = insert(*container, iter, <del>Cont::value_type(</del>value<del>)</del>); 
-++iter;
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="979"></a>979. Bad example</h3>
-<p><b>Section:</b> 24.5.3 [move.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#move.iterators">issues</a> in [move.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-24.5.3 [move.iterators] has an incorrect example:
-</p>
-
-<blockquote>
-<p>
--2- [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-set&lt;string&gt; s; 
-// populate the set s 
-vector&lt;string&gt; v1(s.begin(), s.end());          // copies strings into v1 
-vector&lt;string&gt; v2(make_move_iterator(s.begin()), 
-                  make_move_iterator(s.end())); // moves strings into v2
-</pre></blockquote>
-
-<p>
-<i>-- end example</i>]
-</p>
-</blockquote>
-
-<p>
-One can not move from a <tt>set</tt> because the iterators return <tt>const</tt>
-references.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution. Move to NAD Editorial.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.5.3 [move.iterators]/2:
-</p>
-
-<blockquote>
-<p>
--2- [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-<del>set</del><ins>list</ins>&lt;string&gt; s; 
-// populate the <del>set</del><ins>list</ins> s 
-vector&lt;string&gt; v1(s.begin(), s.end());          // copies strings into v1 
-vector&lt;string&gt; v2(make_move_iterator(s.begin()), 
-                  make_move_iterator(s.end())); // moves strings into v2
-</pre></blockquote>
-
-<p>
-<i>-- end example</i>]
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="980"></a>980. <tt>mutex lock()</tt> missing error conditions</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Ion Gazta&ntilde;aga <b>Opened:</b> 2009-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-POSIX 2008 adds two return values for <tt>pthread_mutex_xxxlock()</tt>:
-<tt>EOWNERDEAD</tt> (<tt>owner_dead</tt>) and <tt>ENOTRECOVERABLE</tt>
-(<tt>state_not_recoverable</tt>). In the first case the mutex is locked,
-in the second case the mutex is not locked.
-</p>
-
-<p>
-Throwing an exception in the first case can be incompatible with the use
-of Locks, since the <tt>Lock::owns_lock()</tt> will be <tt>false</tt> when the lock is
-being destroyed.
-</p>
-
-<p>
-Consider:
-</p>
-
-<blockquote><pre>
-//Suppose mutex.lock() throws "owner_dead"
-unique_lock ul(&amp;mutex);
-//mutex left locked if "owner_dead" is thrown
-</pre></blockquote>
-
-<p>
-Throwing an exception with <tt>owner_dead</tt> might be also undesirable if
-robust-mutex support is added to C++ and the user has the equivalent of
-<tt>pthread_mutex_consistent()</tt> to notify the user has fixed the corrupted
-data and the mutex state should be marked consistent.
-</p>
-
-<ol>
-<li>
-For <tt>state_not_recoverable</tt> add it to the list of Error conditions:
-</li>
-<li>
-For <tt>owner_dead</tt>, no proposed resolution.
-</li>
-</ol>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Not a defect. Handling these error conditions is an implementation
-detail and must be handled below the C++ interface.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add to 30.4.1 [thread.mutex.requirements], p12:
-</p>
-
-<blockquote>
-<p>
--12- <i>Error conditions:</i>
-</p>
-
-<ul>
-<li>
-<tt>operation_not_permitted</tt> -- if the thread does not have the necessary permission to change 
-the state of the mutex.
-</li>
-<li>
-<tt>resource_deadlock_would_occur</tt> -- if the current thread already owns the mutex and is able 
-to detect it.
-</li>
-<li>
-<tt>device_or_resource_busy</tt> --  if the mutex is already locked and blocking is not possible.
-</li>
-<li>
-<ins><tt>state_not_recoverable</tt> -- if the state protected by the mutex is not recoverable.</ins>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="988"></a>988. <tt>Reflexivity</tt> meaningless?</h3>
-<p><b>Section:</b> X [concept.comparison] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-02-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#concept.comparison">issues</a> in [concept.comparison].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-X [concept.comparison] p2:
-</p>
-<p>
-Due to the subtle meaning of <tt>==</tt> inside axioms, the <tt>Reflexivity</tt> axiom does
-not do anything as written. It merely states that a value is substitutable
-with itself, rather than asserting a property of the <tt>==</tt> operator.
-</p>
-
-<p><b>
-Original proposed resolution:
-</b></p>
-
-<p>
-Change the definition of <tt>Reflexivity</tt> in X [concept.comparison]:
-</p>
-
-<blockquote><pre>
-axiom Reflexivity(T a) { <ins>(</ins>a == a<ins>) == true</ins>; }
-</pre></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Alisdair: I was wrong.
-</p>
-<p>
-Recommend NAD.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-NAD.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="989"></a>989. late_check and library</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-02-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The example in 6.9p2 shows how late_check blocks inhibit concept_map lookup
-inside a constrained context, and so inhibit concept map adaption by users
-to meet template requirements.
-</p>
-<p>
-Do we need some text in clause 17 prohibitting use of late_check in library
-template definitions unless otherwise documented?
-</p>
-
-<p><i>[
-Doug adds:
-]</i></p>
-
-
-<blockquote><p>
-We need something like this, but it should be a more general statement
-about implementations respecting the concept maps provided by the
-user. Use of late_check is one way in which implementations can
-subvert the concept maps provided by the user, but there are other
-ways as well ("pattern-based" overloading, tricks with "auto" concept
-maps and defaulted associated type arguments).
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-
-<blockquote><p>
-Move to Open, pending proposed wording from Alisdair and/or Doug for further review.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="992"></a>992. Allow implementations to implement C library in the global namespace</h3>
-<p><b>Section:</b> 17.6.1.1 [contents] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2009-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#contents">issues</a> in [contents].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK-169 [CD1]</b></p>
-<p>
-This phrasing contradicts later freedom to implement the C standard
-library portions in the global namespace as well as std. (17.6.2.3p4)
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The proposed wording seems to go too far.
-Move back to Open.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard to add NB reference to the description of this issue.
-</p>
-<p>
-Move to NAD. This comment is informative and not normative by the use of
-the word "are" instead of the word "shall."
-</p>
-<p>
-A note linking to Annex D would help clarify the intention, here.
-</p>
-<p>
-Robert to Open a separate issue proposing that the standard C headers be
-undeprecated, for the purpose of clarifying the standard.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-22 Bill modified the proposed wording with a clarifying footnote.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a footnote to 17.6.1.1 [contents], p2:
-</p>
-
-<blockquote>
-<p>
--2- All library entities except macros, <tt>operator new</tt> and <tt>operator
-delete</tt> are defined within the namespace <tt>std</tt> or namespaces
-nested within namespace <tt>std</tt><ins><sup>*</sup></ins>.
-</p>
-
-<p><ins>
-<sup>*</sup>The C standard library headers D.5 [depr.c.headers] also define
-names within the global namespace, while the C++ headers for
-C library facilities 17.6.1.2 [headers] may also define names within
-the global namespace.
-</ins></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="995"></a>995. Operational Semantics Unclear</h3>
-<p><b>Section:</b> 17.5.1.3 [structure.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As a practical matter there's disagreement on the meaning of <i>operational
-semantics</i>.  If the text in 17.5.1.3 [structure.requirements]p4 isn't
-clear, it should be clarified.  However, it's not clear whether the
-disagreement is merely due to people not being aware of the text.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Agree with the recommended NAD resolution.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Recommend NAD.  The text in 17.5.1.3 [structure.requirements] is
-perfectly clear.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="996"></a>996. Move operation not well specified</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are lots of places in the standard where we talk about "the move
-constructor" but where we mean "the move operation," i.e.  <tt>T( move( x ) )</tt>.
-</p>
-<p>
-We also don't account for whether that operation modifies <tt>x</tt> or not, and
-we need to.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, pending proposed wording from Dave for further
-review.
-</p></blockquote>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD.  We define what we expect from a moved-from object in Table 34 [movesconstructible].
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1000"></a>1000. adjacent_find is over-constrained</h3>
-<p><b>Section:</b> 25.2.8 [alg.adjacent.find] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2009-03-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.adjacent.find">issues</a> in [alg.adjacent.find].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<b>Addresses UK 296</b>
-</p>
-
-<p>
-<tt>adjacent_find</tt> in C++03 allows an arbitrary predicate, but in C++0x
-<tt>EqualityComparable/EquivalenceRelation</tt> is required. This forbids a
-number of use cases, including:
-</p>
-<blockquote>
-<table>
-<tr>
-<td valign="top">
-<tt>adjacent_find(begin,&nbsp;end,&nbsp;less&lt;double&gt;)</tt>
-</td>
-<td>
-Find the first
-place where a range is not ordered in decreasing order - in use to check
-for sorted ranges.
-</td>
-</tr>
-<tr>
-<td valign="top">
-<tt>adjacent_find(begin,&nbsp;end,&nbsp;DistanceBiggerThan(6)&nbsp;)&nbsp;)</tt>
-</td>
-<td>
-Find the first
-place in a range where values differ by more than a given value - in use
-to check an algorithm which produces points in space does not generate
-points too far apart.
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-A number of books use predicate which are not equivalence relations in
-examples, including "Thinking in C++" and "C++ Primer".
-</p>
-
-<p>
-Adding the requirement that the predicate is an <tt>EquivalenceRelation</tt>
-does not appear to open up any possibility for a more optimised algorithm.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the definition of adjacent_find in the synopsis of 25 [algorithms]
-and 25.2.8 [alg.adjacent.find] to:
-</p>
-
-<blockquote><pre>
-template&lt;ForwardIterator Iter&gt; 
-  requires <del>EqualityComparable</del><ins>HasEqualTo</ins>&lt;Iter::value_type<ins>, Iter::value_type</ins>&gt;
-  Iter adjacent_find(Iter first, Iter last);
-
-template&lt;ForwardIterator Iter, <del>EquivalenceRelation</del><ins>Predicate</ins>&lt;auto, Iter::value_type<ins>, Iter::value_type</ins>&gt; Pred&gt; 
-  requires CopyConstructible&lt;Pred&gt; 
-  Iter adjacent_find(Iter first, Iter last, Pred pred);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1001"></a>1001. Pointers, concepts and headers</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 78</b></p>
-
-<p>
-Related to <a href="lwg-closed.html#1063">1063</a>.
-</p>
-
-<p>
-This is effectively an extension of LWG issue <a href="lwg-defects.html#343">343</a>.
-</p>
-<p>
-We know there is an increasing trend (encouraged by conformance testers and
-some users) that each library header should supply no more than required to
-satisfy the synopsis in the standard.  This is typically achieved by
-breaking larger headers into smaller subsets, and judicious use of forward
-declarations.
-</p>
-<p>
-If we apply this policy to C++0x (per
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>)
-it will be very surprising for
-people using library algorithms over ranges defined by pointers that they
-must <tt>#include &lt;iterator_concepts&gt;</tt> for their code to compile again.  That is
-because pointers do not satisfy any of the iterator concepts without the
-<tt>concept_map</tt> supplied in this header.
-</p>
-<p>
-Therefore, I suggest we should require all library headers that make use of
-iterator concepts are specifically required to <tt>#include &lt;iterator_concepts&gt;</tt>.
-</p>
-<p>
-At a minimum, the list of headers would be: (assuming all are constrained by
-concepts)
-</p>
-<blockquote><pre>
-algorithm
-array
-deque
-forward_list
-initializer_list
-iterator
-locale
-list
-map
-memory          // if <a href="lwg-closed.html#1029">1029</a> is adopted
-memory_concepts
-numeric
-random
-regex
-set
-string
-tuple
-unordered_map
-unordered_set
-utility
-vector
-</pre></blockquote>
-
-<p><i>[
-Ganesh adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The same problems exists for <tt>&lt;memory_concepts&gt;</tt> and
-<tt>&lt;container_concepts&gt;</tt>.
-</p>
-<p>
-In order to compile <tt>&lt;vector&gt;</tt> you just need the
-definitions of the concepts in <tt>&lt;memory_concepts&gt;</tt>, the
-concept maps defined there are not necessary. Yet, from the user point
-of view, if the concept map template for <tt>AllocatableElement</tt> are
-not in scope, <tt>&lt;vector&gt;</tt> is pretty useless. Same for
-<tt>&lt;tuple&gt;</tt> and <tt>ConstructibleWithAllocator</tt>.
-</p>
-<p>
-Similarly, <tt>&lt;queue&gt;</tt> is not very useful if the concept map
-template for <tt>QueueLikeContainer</tt> is not in scope, although the
-definition of concept alone is theoretically sufficient.
-</p>
-<p>
-There's a pattern here: if a concept has concept maps "attached", they
-should never be separated.
-</p>
-</blockquote>
-
-<p><i>[
-Beman provided the proposed resolution for the May 2009 mailing. He 
-comments:
-]</i></p>
-
-
-<blockquote>
-
-<p>Initially I tried to specify exactly what header should include what other 
-headers. This was verbose, error prone, hard to maintain, and appeared to add 
-little value compared to just stating the general rule.</p>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete believes the proposed wording overconstrains implementers.
-Instead of specifying the mechanism,
-he prefers a solution that spells out what needs to be declared,
-rather than how those declarations are to be provided,
-e.g.,
-</p>
-<blockquote><p>
-A C++ header shall provide the names
-that are required to be defined in that header.
-</p></blockquote>
-<p>
-Bill suggests approaching the wording from a programmer's perspective.
-We may want to consider promising that certain widely-used headers
-(e.g., the concept headers) are included when needed by other headers.
-He feels, however, there is nothing broken now,
-although we may want to consider "something nicer."
-</p>
-<p>
-Move to Open status.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-06-16 Beman updated the proposed resolution:
-]</i></p>
-
-
-<blockquote>
-  <ul>
-    <li>The mechanism is no longer specified, as requested in Batavia.</li>
-    <li>The footnote has been removed since it specified mechanism and also did 
-    not reflect existing practice.</li>
-    <li>A sentence was added that makes it clear that the existing practice is 
-    permitted.</li>
-  </ul>
-</blockquote>
-
-<p><i>[
-2009-07-15 Beman updated the proposed resolution:
-]</i></p>
-
-
-<p><i>[
-2009-07-17 Beman updated the proposed resolution based on feedback from the LWG in Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<ul>
-<li>Strike two pieces of text considered unnecessary.</li>
-<li>Change &quot;definitions&quot; to &quot;declarations and definitions&quot; in two places.</li>
-<li>Wording tightened slightly.</li>
-</ul>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Revised Proposed Resolution:
-</p>
-<p>
-A C++ header may include other C++ headers. A C++ header shall provide
-the declarations and definitions that appear in its synopsis (3.2
-[basic.def.odr]). A C++ header shown in its synopsis as including other
-C++ headers shall provide the declarations and definitions that appear
-in the synopses of those other headers.
-</p>
-<p>
-Alisdair: Does this address the BSI comment?
-<p/>
-Beman: There were several overlapping comments. I tried to handle them
-all with one resolution.
-<p/>
-Alisdair: I'd prefer to see this closed as NAD and have this resolution
-be the subject of some other, new issue.
-<p/>
-Move to NAD Concepts. Howard to open a new issue (<a href="lwg-defects.html#1178">1178</a>) in Ready state with the
-Proposed Resolution above. Beman will write up a discussion for the new
-issue.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>Change 17.6.5.2 [res.on.headers], Headers, paragraph 1, as indicated:</i></p>
-
-<blockquote>
-
-<p>
-A C++ header may include other C++
-headers.<del><sup>[footnote]</sup></del> <ins>A C++ header shall provide
-the declarations and definitions that appear in its synopsis
-(3.2 [basic.def.odr]). A C++ header shown in its synopsis as including 
-other C++ headers shall provide the same declarations and definitions as
-if those other headers were included.</ins>
-</p>
-
-  <p><del><sup>[footnote]</sup> C++ headers must include a C++ header that contains 
-  any needed definition (3.2).</del></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1002"></a>1002. Provide bulk include headers</h3>
-<p><b>Section:</b> 17.6.1.2 [headers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#headers">issues</a> in [headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK-170 [CD1]</b></p>
-
-<p>
-One of goals of C++0x is to make language easier to teach and for
-'incidental' programmers. The fine-grained headers of the C++ library
-are valuable in large scale systems for managing dependencies and
-optimising build times, but overcomplicated for simple development and
-tutorials. Add additional headers to support the whole library through a
-single include statement.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We do not all agree that this is an issue,
-but we agree that if it needs solving this is the right way to do it.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07-06 Beman notes:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue
-adds a header <tt>&lt;std&gt;</tt>.
-</p>
-<p>
-There is a paper to be looked at,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2905.pdf">N2905</a>
-Aggregation headers, that adds
-a header <tt>&lt;std-all&gt;</tt> that is the same thing except it excludes
-deprecated headers.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2905.pdf">N2905</a>
-also proposes a second aggregation header.
-</p>
-<p>
-Seems like this issue should be held in abeyance until the LWG has had
-a chance to look at <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2905.pdf">N2905</a>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-06 Howard:  I've pulled this issue back to Review.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-No consensus for change.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert a new paragraph in 17.6.1.2 [headers] between p4 and p5
-</p>
-<blockquote><p>
-An additional header <tt>&lt;std&gt;</tt> shall have the effect of
-supplying the entire standard library.  [<i>Note:</i> for example, it
-might be implemented as a file with an <tt>#include</tt> statement for each of the
-headers listed in tables 13 and 14. <i>-- end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1003"></a>1003. Require more useful headers for freestanding implementations</h3>
-<p><b>Section:</b> 17.6.1.3 [compliance] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#compliance">issues</a> in [compliance].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 23 [CD1]</b></p>
-
-<p>
-There is a freestanding implementation including
-<tt>&lt;type_traits&gt;</tt>, <tt>&lt;array&gt;</tt>,
-<tt>&lt;ratio&gt;</tt>, lately added to Table 13, C++ library headers.
-Programmers think them useful and hope that these headers are also added
-to Table 15, C++ headers for freestanding implementations, that shows
-the set of headers which a freestanding implementation shall include at
-least.
-</p>
-
-<p><b>Original proposed resolution</b></p>
-
-<p>
-Add <tt>&lt;type_traits&gt;</tt>, <tt>&lt;array&gt;</tt>,
-<tt>&lt;ratio&gt;</tt> to Table 15.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
- The <tt>&lt;array&gt;</tt> header has far too many dependencies to require for a
-free-standing implementation.
-</p>
-<p>
-The <tt>&lt;ratio&gt;</tt> header would be useful, has no dependencies, but is not
-strictly necessary.
-</p>
-<p>
-The <tt>&lt;type_traits&gt;</tt> header is fundamentally a core language facility with a
-library interface, so should be supported.
-</p>
-
-<p>
-(it is anticipated the resolution will come via an update to paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2814.pdf">N2814</a>)
-(see also LWG <a href="lwg-closed.html#833">833</a>)
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Leave in Review status pending a paper on freestanding implementations
-by Martin Tasker.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Move this to NAD.
-</p>
-<p>
-We considered all of the listed headers, and found a compelling case
-only for the inclusion of <tt>&lt;type_traits&gt;</tt> in the list of headers required
-of a freestanding implementation.
-</p>
-<p>
-See Martin Tasker's paper 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2932.pdf">Fixing Freestanding</a>
-which provides the wording to include <tt>&lt;type_traits&gt;</tt> into freestanding
-implementations.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add <tt>&lt;type_traits&gt;</tt> to Table 15.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1005"></a>1005. <tt>numeric_limits</tt> partial specializations not concept enabled</h3>
-<p><b>Section:</b> 18.3.2.3 [numeric.limits] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 26</b></p>
-
-<p>
-<tt>numeric_limits</tt> [partial specializations] does not use concept.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Alisdair will provide a solution as part of treatment of axioms and LWG <a href="lwg-closed.html#902">902</a>.
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Alisdair recommends NAD as the partial specializations are already
-constrained by requirements on the primary template.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The Working Draft does not in general repeat a primary template's constraints
-in any specializations.
-Move to NAD.
-</p></blockquote>
-
-<p><i>[
-2009-05-25 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-A c++std-lib thread starting at c++std-lib-23880 has cast doubt that NAD is the
-correct resolution of this issue.  Indeed the discussion also casts doubt that
-the current proposed wording is the correct resolution as well.  Personally I'm
-inclined to reset the status to Open.  However I'm reverting the status to 
-that which it had prior to the Batavia recommendation.  I'm setting back to Review.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.3.2.3 [numeric.limits]:
-</p>
-
-<blockquote><pre>
-template&lt;<del>class</del> <ins>Regular</ins> T&gt; class numeric_limits&lt;const T&gt;;
-template&lt;<del>class</del> <ins>Regular</ins> T&gt; class numeric_limits&lt;volatile T&gt;;
-template&lt;<del>class</del> <ins>Regular</ins> T&gt; class numeric_limits&lt;const volatile T&gt;;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1007"></a>1007. <tt>throw_with_nested</tt> not concept enabled</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 29</b></p>
-
-<p>
-<tt>throw_with_nested</tt> does not use concept.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
- 
-<blockquote><p>
-Agreed.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Alisdair initially proposed wording in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2619.pdf">N2619</a>.
-</p>
-<p>
-We are awaiting an updated paper based on feedback from the San Francisco
-review.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1008"></a>1008. <tt>nested_exception</tt> wording unclear</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 31</b></p>
-
-<p>
-It is difficult to understand in which case <tt>nested_exception</tt> is applied.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
- 
-<blockquote><p>
-Alisdair will add an example in an update to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2619.pdf">N2619</a>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-It doesn't appear that N2619 really addresses this. Alisdair to propose wording.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Mark issue 1008 as NAD, the type is adequately described.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-nested_exception is intended to be inherited from by exception classes
-that are to be thrown during the handling of another exception, i.e.
-when translating from one exception type to another. nested_exception
-allows the originally thrown exception to be easily retained in that
-scenario.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1009"></a>1009. <tt>InputIterator</tt> post-increment dangerous</h3>
-<p><b>Section:</b> 24.2.2 [iterator.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.iterators">issues</a> in [iterator.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 251</b></p>
-
-<p>
-The post-increment operator is dangerous for a general InputIterator.
-The multi-pass guarantees that make it meaningful are defined as part of
-the ForwardIterator refinement. Any change will affect only constrained
-templates that have not yet been written, so should not break existing
-user iterators which remain free to add these operations. This change
-will also affect the generalised OutputIterator, although there is no
-percieved need for the post-increment operator in this case either.
-</p>
-
-<p><i>[
-2009-07-28 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-We still think the issue is relevant, but needs totally rewording in
-non-concept language.  We would like to see the issue retained as Open,
-rather than deferred as NAD Concepts.  Review status is no longer
-appropriate.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD.  Without concepts we do not feel that input iterator post increment
-is broken.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.2.2 [iterator.iterators]:
-</p>
-
-<blockquote><pre>
-concept Iterator&lt;typename X&gt; : Semiregular&lt;X&gt; { 
-  MoveConstructible reference = typename X::reference; 
-  <del>MoveConstructible postincrement_result;</del>
-
-  <del>requires HasDereference&lt;postincrement_result&gt;;</del>
-
-  reference operator*(X&amp;&amp;); 
-  X&amp; operator++(X&amp;); 
-  <del>postincrement_result operator++(X&amp;, int);</del>
-}
-</pre>
-
-<p>...</p>
-<pre>
-<del>postincrement_result operator++(X&amp; r, int);</del>
-</pre>
-
-<blockquote><p>
-<del>-3- <i>Effects:</i> equivalent to <tt>{ X tmp = r; ++r; return tmp; }</tt>.</del>
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Change 24.2.3 [input.iterators]:
-</p>
-
-<blockquote>
-<pre>
-concept InputIterator&lt;typename X&gt; : Iterator&lt;X&gt;, EqualityComparable&lt;X&gt; { 
-  ObjectType value_type = typename X::value_type; 
-  MoveConstructible pointer = typename X::pointer; 
-
-  SignedIntegralLike difference_type = typename X::difference_type; 
-
-  requires IntegralType&lt;difference_type&gt; 
-        &amp;&amp; Convertible&lt;reference, const value_type &amp;&gt;; 
-        &amp;&amp; Convertible&lt;pointer, const value_type*&gt;; 
-
-  <del>requires Convertible&lt;HasDereference&lt;postincrement_result&gt;::result_type, const value_type&amp;&gt;;</del>
-
-  pointer operator-&gt;(const X&amp;); 
-}
-</pre>
-</blockquote>
-
-<p>
-Change 24.2.4 [output.iterators]:
-</p>
-
-<blockquote>
-<pre>
-auto concept OutputIterator&lt;typename X, typename Value&gt; { 
-  requires Iterator&lt;X&gt;; 
-
-  typename reference = Iterator&lt;X&gt;::reference; 
-  <del>typename postincrement_result = Iterator&lt;X&gt;::postincrement_result;</del>
-  requires SameType&lt;reference, Iterator&lt;X&gt;::reference&gt; 
-        <del>&amp;&amp; SameType&lt;postincrement_result, Iterator&lt;X&gt;::postincrement_result&gt;</del>
-        <del>&amp;&amp; Convertible&lt;postincrement_result, const X&amp;&gt;</del>
-        &amp;&amp; HasAssign&lt;reference, Value&gt; 
-        <del>&amp;&amp; HasAssign&lt;HasDereference&lt;postincrement_result&gt;::result_type, Value&gt;</del>;
-}
-</pre>
-</blockquote>
-
-<p>
-Change 24.2.5 [forward.iterators]:
-</p>
-
-<p><i>[
-See <a href="lwg-closed.html#1084">1084</a> which is attempting to change this same area in a compatible
-way.
-]</i></p>
-
-
-<blockquote>
-<pre>
-concept ForwardIterator&lt;typename X&gt; : InputIterator&lt;X&gt;, Regular&lt;X&gt; { 
-  <del>requires Convertible&lt;postincrement_result, const X&amp;&gt;;</del>
-
-  <ins>MoveConstructible postincrement_result;</ins>
-  <ins>requires HasDereference&lt;postincrement_result&gt;
-        &amp;&amp; Convertible&lt;HasDereference&lt;postincrement_result&gt;::result_type, const value_type&amp;&gt;;</ins>
-
-  <ins>postincrement_result operator++(X&amp;, int);</ins>
-
-  axiom MultiPass(X a, X b) { 
-    if (a == b) *a == *b; 
-    if (a == b) ++a == ++b; 
-  } 
-}
-</pre>
-
-<blockquote>
-<p>-4- ...</p>
-</blockquote>
-
-<pre>
-<ins>postincrement_result operator++(X&amp; r, int);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins>-5- <i>Effects:</i> equivalent to <tt>{ X tmp = r; ++r; return tmp; }</tt>.</ins>
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1010"></a>1010. <tt>operator-=</tt> should use default in concept</h3>
-<p><b>Section:</b> 24.2.7 [random.access.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#random.access.iterators">issues</a> in [random.access.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 263</b></p>
-
-<p>
-This requirement on <tt>operator-=</tt> would be better expressed as a default
-implementation in the concept, with a matching axiom.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The proposed resolution should also remove
-paragraph 5 and the declaration that precedes it.
-Further, we should provide an axiom
-that captures the desired semantics.
-This may be a broader policy to be applied.
-Move to Open.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.2.7 [random.access.iterators]:
-</p>
-
-<blockquote><pre>
-concept RandomAccessIterator&lt;typename X&gt; : BidirectionalIterator&lt;X&gt;, LessThanComparable&lt;X&gt; {
-  ...
-  X&amp; operator-=(X&amp; <ins>x</ins>, difference_type <ins>n</ins>)<ins> { return x += -n</ins>;<ins> }</ins>
-  ...
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1013"></a>1013. Remove <tt>IsSameType</tt> hold-over constraints</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 305</b></p>
-
-<p>
-The negative requirement on <tt>IsSameType</tt> is a hold-over from an earlier
-draught with a variadic template form of <tt>min/max</tt> algorith. It is no
-longer necessary.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-We believe this is NAD, but this needs to be reviewed against the
-post-remove-concepts draft.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25 [algorithms]:
-</p>
-
-<blockquote><pre>
-template&lt;class T, StrictWeakOrder&lt;auto, T&gt; Compare&gt;
-  <del>requires !SameType&lt;T, Compare&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;</del>
-  const T&amp; min(const T&amp; a, const T&amp; b, Compare comp);
-...
-template&lt;class T, StrictWeakOrder&lt;auto, T&gt; Compare&gt;
-  <del>requires !SameType&lt;T, Compare&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;</del>
-  const T&amp; max(const T&amp; a, const T&amp; b, Compare comp);
-...
-template&lt;class T, StrictWeakOrder&lt;auto, T&gt; Compare&gt;
-  <del>requires !SameType&lt;T, Compare&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;</del>
-  pair&lt;const T&amp;, const T&amp;&gt; minmax(const T&amp; a, const T&amp; b, Compare comp);
-</pre></blockquote>
-
-<p>
-Change 25.4.7 [alg.min.max], p1, p9 and p17:
-</p>
-
-<blockquote><pre>
-template&lt;class T, StrictWeakOrder&lt;auto, T&gt; Compare&gt;
-  <del>requires !SameType&lt;T, Compare&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;</del>
-  const T&amp; min(const T&amp; a, const T&amp; b, Compare comp);
-...
-template&lt;class T, StrictWeakOrder&lt;auto, T&gt; Compare&gt;
-  <del>requires !SameType&lt;T, Compare&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;</del>
-  const T&amp; max(const T&amp; a, const T&amp; b, Compare comp);
-...
-template&lt;class T, StrictWeakOrder&lt;auto, T&gt; Compare&gt;
-  <del>requires !SameType&lt;T, Compare&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;</del>
-  pair&lt;const T&amp;, const T&amp;&gt; minmax(const T&amp; a, const T&amp; b, Compare comp);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1015"></a>1015. C++ programs - but not users - need to provide support <tt>concept_map</tt>s</h3>
-<p><b>Section:</b> X [concept.transform] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#concept.transform">issues</a> in [concept.transform].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 199</b></p>
-
-<p>
-The requirement that programs do not supply <tt>concept_maps</tt> should
-probably be users do not supply their own <tt>concept_map</tt>
-specializations. The program will almost certainly supply
-<tt>concept_maps</tt> - the standard itself supplies a specialization
-for <tt>RvalueOf</tt> references. Note that the term <i>program</i> is
-defined in 3.5 [basic.link]p1 and makes no account of the
-standard library being treated differently to user written code.
-</p>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The same problem is present in the words added for the
-<tt>LvalueReference/RvalueReference</tt> concepts last meeting.
-</p>
-<p>
-With three subsections requiring the same constraint, I'm wondering if there
-is a better way to organise this section.
-Possible 20.2.1 -&gt; 20.2.3 belong in the fundamental concepts clause in
- [concept.support]?  While they can be implemented purely as a
-library feature without additional compiler support, they are pretty
-fundamental and we want the same restriction on user-concept maps as is
-mandated there.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the issue,
-but believe the wording needs further improvement.
-We want to investigate current definitions for nomenclature such as
-"user" and "program."
-Move to Open pending the recommended investigation.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change X [concept.transform] p2:
-</p>
-
-<blockquote><p>
--2- A <del>program</del> <ins>user</ins> shall not provide concept maps for
-any concept in 20.1.1.
-</p></blockquote>
-
-<p>
-Change  [concept.true] p2:
-</p>
-
-<blockquote><p>
--2- <i>Requires:</i> a <del>program</del> <ins>user</ins> shall not
-provide a concept map for the <tt>True</tt> concept.
-</p></blockquote>
-
-<p>
-Change  [concept.classify] p2:
-</p>
-
-<blockquote><p>
--2- <i>Requires:</i> a <del>program</del><ins>user</ins> shall not provide concept
-maps for any concept in this section.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1016"></a>1016. Provide <tt>LessThanComparable</tt> and <tt>EqualityComparable</tt> for <tt>FloatingPointType</tt></h3>
-<p><b>Section:</b> X [concept.comparison] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#concept.comparison">issues</a> in [concept.comparison].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 33</b></p>
-
-<p>
-<tt>LessThanComparable</tt> and <tt>EqualityComparable</tt> don't correspond to NaN. 
-</p>
-
-<p><b>Original proposed resolution:</b></p>
-
-<p>
-Apply <tt>concept_map</tt> to these concepts at <tt>FloatingPointType</tt>.
-</p>
-
-<p><i>[
-Post Summit, Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I don't understand the proposed resolution - there is no such thing as a
-'negative' concept_map, and these concepts are auto concepts that match
-float/double etc. Also not clear how we are supposed to match values to
-concepts.
-</p>
-<p>
-Recommend NAD and treat as a subset of issue <a href="lwg-closed.html#902">902</a>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Recommend NAD.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1017"></a>1017. Floating-point types should not satisfy <tt>Regular</tt></h3>
-<p><b>Section:</b> X [concept.regular] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 66</b></p>
-
-<p>
-Application of the <tt>Regular</tt> concept to floating-point types appears to be
-controversial (see long discussion on std-lib reflector). 
-</p>
-
-<p><b>Original proposed resolution:</b></p>
-
-<p>
-State that the <tt>Regular</tt> concept does not apply to floating-point types. 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Recommend that we handle the same as JP 33 / <a href="lwg-closed.html#1016">1016</a>.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit, Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Recommend Open, and review after resolution of <a href="lwg-closed.html#902">902</a> and revised axiom
-feature.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1018"></a>1018. Trait specifications should be expressed in terms of concepts</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 70 [CD1]</b></p>
-
-<p>
-Specifications now expressed via narrative text are more accurately and
-clearly expressed via executable code.
-</p>
-<p>
-Wherever concepts are available that directly match this section's type
-traits, express the traits in terms of the concepts instead of via
-narrative text. Where the type traits do not quite match the
-corresponding concepts, bring the two into alignment so as to avoid two
-nearly-identical notions.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-We think that this is a good idea, but it requires a lot of work. If someone
-submits a paper proposing specific changes, we would be happy to review it
-at the next meeting.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1020"></a>1020. Restore <tt>aligned_union</tt></h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 204 [CD1]</b></p>
-
-<p>
-It is not possible to create a variant union based on a parameter pack
-expansion, e.g. to implement a classic discriminated union template. 
-</p>
-
-<p><b>Original proposed resolutuion:</b></p>
-
-<p>
-Restore <tt>aligned_union</tt> template that was removed by LWG issue <a href="lwg-defects.html#856">856</a>. 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree. The need for <tt>aligned_union</tt> is compelling enough to reinstate.
-</p></blockquote>
-
-<p><i>[
-Post Summit, Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2843.html">N2843</a>
-proposes an extension to the <tt>[[align]]</tt> attribute
-that further diminishes the need for this template.  Recommend NAD.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark NAD as suggested.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1022"></a>1022. Pointer-safety API has nothing to do with smart pointers</h3>
-<p><b>Section:</b> 20.7.4 [util.dynamic.safety] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.dynamic.safety">issues</a> in [util.dynamic.safety].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 212 [CD1]</b></p>
-
-<p>
-The pointer-safety API is nothing to do with smart pointers, so does not
-belong in 20.8.2 [util.smartptr]. In fact it is a set of language
-support features are really belongs in clause 18 [language.support], 
-with the contents declared in a header that deals with language-support 
-of memory management.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree in principle, but not with the proposed resolution. We believe it
-belongs either a subsection of either 20 [utilities] or 
-20.7 [memory] as part of the general reorganization of 
-20 [utilities]. The declaration should stay in <tt>&lt;memory&gt;</tt>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1023"></a>1023. Unclear inheritance relation for <tt>std::function</tt></h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses DE 22 [CD1]</b></p>
-
-<p>Related to issue <a href="lwg-defects.html#1114">1114</a>.</p>
-
-<p>
-The conditions for deriving from <tt>std::unary_function</tt> and
-<tt>std::binary_function</tt> are unclear: The condition would also be satisfied if
-<tt>ArgTypes</tt> were <tt>std::vector&lt;T1&gt;</tt>, because it (arguably)
-"contains" <tt>T1</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree. <tt>std::reference_wrapper</tt> has the same structure, and we
-suggest that <tt>std::function</tt> be presented in the same way as
-<tt>std::reference_wrapper</tt>.
-</p></blockquote>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Phrasing should be "publicly and unambiguously derived from" and probably back in 
-<tt>reference_wrapper</tt> too.  Updated wording supplied.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed wording.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-(no changes to <tt>&lt;functional&gt;</tt> synopsis required)
-</p>
-
-<p>
-Change synopsis in Class template function 20.9.12.2 [func.wrap.func]:
-</p>
-
-<blockquote><pre>
-template&lt;Returnable R, CopyConstructible... ArgTypes&gt; 
-class function&lt;R(ArgTypes...)&gt; 
-  : public unary_function&lt;T1, R&gt;      // <del><i>iff</i> sizeof...(ArgTypes) == 1 <i>and</i></del> <ins><i>see below</i></ins>
-                                      <del>// ArgTypes <i>contains</i> T1</del>
-  : public binary_function&lt;T1, T2, R&gt; // <del><i>iff</i> sizeof...(ArgTypes) == 2 <i>and</i></del> <ins><i>see below</i></ins>
-                                      <del>// ArgTypes <i>contains</i> T1 <i>and</i> T2</del>
-{
-   ...
-</pre></blockquote>
-
-<p>
-Add new p1/p2 before 20.9.12.2.1 [func.wrap.func.con]:
-</p>
-
-<blockquote>
-<p><ins>
-The template instantiation <tt>function&lt;R(T1)&gt;</tt> shall be publicly and
-unambiguously derived from 
-<tt>std::unary_function&lt;T1,R&gt;</tt> if and only if the template type parameter
-is a function type taking one argument of type <tt>T1</tt> and returning <tt>R</tt>.
-</ins></p>
-
-<p><ins>
-The template instantiation <tt>function&lt;R(T1,T2)&gt;</tt> shall be publicly and
-unambiguously derived from 
-<tt>std::binary_function&lt;T1,T2,R&gt;</tt> if and only if the template type
-parameter is a function type taking two arguments of type <tt>T1</tt> and <tt>T2</tt> and
-returning <tt>R</tt>.
-</ins></p>
-
-<pre>
-explicit function();
-</pre>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1024"></a>1024. <tt>std::function</tt> constructors overly generous</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 39 [CD1]</b></p>
-
-<p>
-There are no requires corresponding to <tt>F</tt> of <tt>std::function</tt>.
-</p>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-<a href="lwg-defects.html#1070">1070</a> removes the second constructor.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-If issue <a href="lwg-defects.html#1070">1070</a> is accepted,
-the changes to the second constructor
-in this issue are moot.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Constructors have no definition.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Correct as follows in 20.9.12.2 [func.wrap.func] (class definition)
-</p>
-
-<blockquote><pre>
- template&lt;class F, Allocator Alloc&gt;
-   <ins>requires ConstructibleWithAllocator&lt;F, Alloc&gt;
-     &amp;&amp; call=Callable&lt;F, ArgTypes...&gt;
-     &amp;&amp; Convertible&lt;call::result_type, R&gt;</ins>
-   function(allocator_arg_t, const Alloc&amp;, F);
- template&lt;class F, Allocator Alloc&gt;
-   <ins>requires ConstructibleWithAllocator&lt;F,Alloc&gt;
-     &amp;&amp; call=Callable&lt;F, ArgTypes...&gt;
-     &amp;&amp; Convertible&lt;call::result_type, R&gt;</ins>
-   function(allocator_arg_t, const Alloc&amp;, F&amp;&amp;);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1026"></a>1026. Smart pointers need to be concept-constrained templates</h3>
-<p><b>Section:</b> 20.7 [memory] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#memory">issues</a> in [memory].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 209 [CD1]</b></p>
-
-<p>
-Smart pointers cannot be used in constrained templates.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-We look forward to a paper on this topic. We recommend no action until a
-paper is available. We understand that a paper is forthcoming.
-</p></blockquote>
-
-<p><i>[
-Peter Dimov adds:
-]</i></p>
-
-
-<blockquote><p>
-<tt>shared_ptr&lt;T&gt;</tt> and <tt>weak_ptr&lt;T&gt;</tt> support all
-types <tt>T</tt> for which <tt>T*</tt> is valid. In other words, a
-possible (partial) resolution is to change class <tt>T</tt> to
-<tt>PointeeType T</tt> for <tt>shared_ptr</tt>, <tt>weak_ptr</tt> and
-possibly <tt>enable_shared_from_this</tt>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1027"></a>1027. <tt>std::allocator</tt> needs to be a concept-constrained template</h3>
-<p><b>Section:</b> 20.7.9 [default.allocator] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#default.allocator">issues</a> in [default.allocator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 213 [CD1]</b></p>
-
-<p>
-<tt>std::allocator</tt> should be constrained to simplify its use on constrained
-contexts. This library component models allocation from free store via the
-new operator so choose constraints to 
-match. The Allocator concept allows for a wider variety of allocators that
-users may choose to supply if their allocation model does not require
-operator new, without impacting the 
-requirements of this template. 
-</p>
-
-<p>
-Suggested direction:
-</p>
-<p>
-The primary allocator template should be constrained to require
-<tt>ObjectType&lt;T&gt;</tt> and <tt>FreeStoreAllocatable&lt;T&gt;</tt>.
-Further operations to be constrained as required.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree as stated. A future paper will address additional related issues.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1028"></a>1028. <tt>raw_storage_iterator</tt> needs to be a concept-constrained template</h3>
-<p><b>Section:</b> 20.7.10 [storage.iterator] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#storage.iterator">issues</a> in [storage.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 214 [CD1]</b></p>
-
-<p>
-<tt>raw_storage_iterator</tt> needs constraining as an iterator adaptor to be safely
-used in constrained templates 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-We look forward to a paper on this topic. We recommend no action until a
-paper is available.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair provided wording and rationale.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-20.7 [memory] p2
-</p>
-<p>
-Update the synopsis for <tt>&lt;memory&gt;</tt>
-</p>
-<blockquote><pre>
-// 20.7.8, raw storage iterator:
-template &lt;<del>class</del> <ins>ForwardIterator</ins> Out<del>put</del>Iter<del>ator</del>, <del>class</del> <ins>ObjectType</ins> T&gt; 
-  <ins>requires OutputIterator&lt; OutIter, T &gt;</ins>
-    class raw_storage_iterator;
-
-<ins>template &lt;ForwardIterator OutIter, ObjectType T&gt; 
-  requires OutputIterator&lt; OutIter, T &gt;
-  concept_map Iterator&lt;raw_storage_iterator&lt; OutIter, T &gt; &gt; { }</ins>
-</pre></blockquote>
-
-
-<p>
-20.7.10 [storage.iterator] p1
-</p>
-<p>
-Replace class template definition with:
-</p>
-<blockquote><pre>
-namespace std { 
-  template &lt;<del>class</del> <ins>ForwardIterator</ins> Out<del>put</del>Iter<del>ator</del>, <del>class</del> <ins>ObjectType</ins> T&gt; 
-    <ins>requires OutputIterator&lt; OutIter, T &gt;</ins>
-  class raw_storage_iterator 
-    : public iterator&lt;output_iterator_tag,void,void,void,void&gt; { 
-  public: 
-    explicit raw_storage_iterator(Out<del>put</del>Iter<del>ator</del> x); 
-
-    raw_storage_iterator<del>&lt;OutputIterator,T&gt;</del>&amp; operator*(); 
-    raw_storage_iterator<del>&lt;OutputIterator,T&gt;</del>&amp; operator=(const T&amp; element); 
-    raw_storage_iterator<del>&lt;OutputIterator,T&gt;</del>&amp; operator++(); 
-    raw_storage_iterator<del>&lt;OutputIterator,T&gt;</del> operator++(int); 
-  }; 
-
-  <ins>template &lt;ForwardIterator OutIter, ObjectType T&gt; 
-    requires OutputIterator&lt; OutIter, T &gt;
-    concept_map Iterator&lt;raw_storage_iterator&lt; OutIter, T &gt; &gt; { }</ins>
-}
-</pre></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-<tt>raw_storage_iterator</tt> has to adapt a <tt>ForwardIterator</tt>,
-rather than just an <tt>InputIterator</tt> for two reasons:
-</p>
-
-<ol style="list-style-type:lower-roman">
-<li>
-The initial iterator passed by value is expected to remain valid,
-pointing to the initialized region of memory.
-</li>
-<li>
-to avoid breaking the declaration of post-increment operator which would
-require some kind of proxy formulation to support generalised InputIterators.
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1029"></a>1029. Specialized algorithms for memory management need to be concept-constrained templates</h3>
-<p><b>Section:</b> 20.7.12 [specialized.algorithms] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#specialized.algorithms">issues</a> in [specialized.algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 210 [CD1]</b></p>
-
-<p>Related to <a href="lwg-closed.html#582">582</a></p>
-
-<p>
-Specialized algorithms for memory management need requirements to be
-easily usable in constrained templates.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-We look forward to a paper on this topic. We recommend no action until a
-paper is available.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair provided wording.
-]</i></p>
-
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Daniel adds:
-</p>
-
-<blockquote>
-<ol>
-<li>
-I suggest <tt>Size</tt> should require <tt>IntegralLike</tt> and not <tt>UnsignedIntegralLike</tt>,
-because otherwise simple int-literals could not be provided as arguments
-and it would conflict with other algorithms that only require <tt>IntegralLike</tt>.
-</li>
-<li>
-<p>
-The current for-loop-test relies on evaluation in boolean context which is
-not provided by <tt>ArithmeticLike</tt> and it's refinements. I propose to change the
-corresponding for-loop-headers to:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-for <tt>uninitialized_copy_n</tt>: <tt>for ( ; n &gt; Size(0); ++result, ++first, --n) {</tt>
-</li>
-<li>
-for <tt>uninitialized_fill_n</tt>: <tt>for (; n &gt; Size(0); ++first, --n) {</tt>
-</li>
-</ol>
-</li>
-</ol>
-</blockquote>
-
-<p>
-Alisdair adds:
-</p>
-<blockquote><p>
-For the record I agree with Daniel's suggestion.
-</p></blockquote>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-20.7 [memory] p2
-</p>
-<p>
-Update the synopsis for <tt>&lt;memory&gt;</tt>
-</p>
-<blockquote><pre>
-template &lt;<del>class</del> InputIterator <ins>InIter</ins>,
-         <del>class ForwardIterator</del> <ins>OutputIterator&lt;auto, InIter::reference&gt; OutIter</ins>&gt; 
-   <ins>requires ForwardIterator&lt;OutIter&gt;</ins>
-   <del>ForwardIterator</del> <ins>OutIter</ins>
-   uninitialized_copy(<del>InputIterator</del> <ins>InIter</ins> first, <del>InputIterator</del> <ins>InIter</ins> last, 
-                      <del>ForwardIterator</del> <ins>OutIter</ins> result);
-
-template &lt;<del>class</del> InputIterator <ins>InIter</ins>,
-          <del>class</del> <ins>IntegralLike</ins> Size,
-          <del>class ForwardIterator</del> <ins>OutputIterator&lt;auto, InIter::reference&gt; OutIter</ins>&gt; 
-  <ins>requires ForwardIterator&lt;OutIter&gt;</ins>
-  <del>ForwardIterator</del> <ins>OutIter</ins>
-  uninitialized_copy_n(<del>InputIterator</del> <ins>InIter</ins> first, Size n, 
-                       <del>ForwardIterator</del> <ins>OutIter</ins> result);
-
-template &lt;<del>class</del> ForwardIterator <ins>Iter</ins>, <del>class</del> <ins>ObjectType</ins> T&gt;
-  <ins>requires Constructible&lt; Iter::value_type, const T&amp; &gt;</ins>
-  void uninitialized_fill(<del>ForwardIterator</del> <ins>Iter</ins> first, <del>ForwardIterator</del> <ins>Iter</ins> last, 
-                          const T&amp; x);
-
-template &lt;<del>class</del> ForwardIterator <ins>Iter</ins>, <del>class</del> <ins>IntegralLike</ins> Size, <del>class</del> <ins>ObjectType</ins> T&gt; 
-  <ins>requires Constructible&lt; Iter::value_type, const T&amp; &gt;</ins>
-  void
-  uninitialized_fill_n(<del>ForwardIterator</del> <ins>Iter</ins> first, Size n, const T&amp; x);
-</pre></blockquote>
-
-<p>
-Update as follows:
-</p>
-
-<p>
-uninitialized_copy 20.7.12.2 [uninitialized.copy]
-</p>
-
-<blockquote><pre>
-template &lt;<del>class</del> InputIterator <ins>InIter</ins>,
-         <del>class ForwardIterator</del> <ins>OutputIterator&lt;auto, InIter::reference&gt; OutIter</ins>&gt; 
-   <ins>requires ForwardIterator&lt;OutIter&gt;</ins>
-   <del>ForwardIterator</del> <ins>OutIter</ins>
-   uninitialized_copy(<del>InputIterator</del> <ins>InIter</ins> first, <del>InputIterator</del> <ins>InIter</ins> last, 
-                      <del>ForwardIterator</del> <ins>OutIter</ins> result);
-</pre>
-
-<blockquote>
-<p>
--1- <i>Effects:</i>
-</p>
-<blockquote><pre>
-for (; first != last; ++result, ++first)  {
-   new (static_cast&lt;void*&gt;(&amp;*result))
-       <del>typename iterator_traits&lt;ForwardIterator&gt;</del> <ins>OutIter</ins>::value_type(*first);
-}
-</pre></blockquote>
-
-<p>
--2- <i>Returns:</i> <tt>result</tt>
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;<del>class</del> InputIterator <ins>InIter</ins>,
-          <del>class</del> <ins>IntegralLike</ins> Size,
-          <del>class ForwardIterator</del> <ins>OutputIterator&lt;auto, InIter::reference&gt; OutIter</ins>&gt; 
-  <ins>requires ForwardIterator&lt;OutIter&gt;</ins>
-  <del>ForwardIterator</del> <ins>OutIter</ins>
-  uninitialized_copy_n(<del>InputIterator</del> <ins>InIter</ins> first, Size n, 
-                       <del>ForwardIterator</del> <ins>OutIter</ins> result);
-</pre>
-
-<blockquote>
-<p>
--3- Effects:
-</p>
-<blockquote><pre>
-for ( ; n &gt; <ins>Size(</ins>0<ins>)</ins>; ++result, ++first, --n) {
-   new (static_cast&lt;void*&gt;(&amp;*result))
-       <del>typename iterator_traits&lt;ForwardIterator&gt;</del> <ins>OutIter</ins>::value_type(*first);
-}
-</pre></blockquote>
-<p>
--4- <i>Returns:</i> result
-</p>
-</blockquote>
-
-</blockquote>
-
-
-<p>
-uninitialized_fill 20.7.12.3 [uninitialized.fill]
-</p>
-
-<blockquote><pre>
-template &lt;<del>class</del> ForwardIterator <ins>Iter</ins>, <del>class</del> <ins>ObjectType</ins> T&gt;
-  <ins>requires Constructible&lt; Iter::value_type, const T&amp; &gt;</ins>
-  void uninitialized_fill(<del>ForwardIterator</del> <ins>Iter</ins> first, <del>ForwardIterator</del> <ins>Iter</ins> last, 
-                          const T&amp; x);
-</pre>
-
-<blockquote>
-<p>
--1- <i>Effects:</i>
-</p>
-<blockquote><pre>
-for (; first != last; ++first) {
-   new ( static_cast&lt;void*&gt;( &amp;*first) ) 
-       <del>typename iterator_traits&lt;ForwardIterator&gt;</del> <ins>Iter</ins>::value_type(x);
-}
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-
-<p>
-uninitialized_fill_n 20.7.12.4 [uninitialized.fill.n]
-</p>
-
-<blockquote><pre>
-template &lt;<del>class</del> ForwardIterator <ins>Iter</ins>, <del>class</del> <ins>IntegralLike</ins> Size, <del>class</del> <ins>ObjectType</ins> T&gt; 
-  <ins>requires Constructible&lt; Iter::value_type, const T&amp; &gt;</ins>
-  void
-  uninitialized_fill_n(<del>ForwardIterator</del> <ins>Iter</ins> first, Size n, const T&amp; x);
-</pre>
-
-<blockquote>
-<p>
--1- <i>Effects:</i>
-</p>
-<blockquote><pre>
-for (; n<del>--</del> <ins>&gt; Size(0)</ins>; ++first<ins>, --n</ins>) {
-   new ( static_cast&lt;void*&gt;( &amp;*first) ) 
-       <del>typename iterator_traits&lt;ForwardIterator&gt;</del> <ins>Iter</ins>::value_type(x);
-}
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1032"></a>1032. Tome utility templates need to be concept-constrained</h3>
-<p><b>Section:</b> 20.12 [time] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time">issues</a> in [time].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 45 [CD1]</b></p>
-
-<p>
-<tt>Rep</tt>, <tt>Period</tt>, <tt>Clock</tt> and <tt>Duration</tt>
-don't correspond to concept.
-</p>
-<blockquote><pre>
-template &lt;class Rep, class Period = ratio&lt;1&gt;&gt; class duration; 
-template &lt;class Clock, class Duration = typename Clock::duration&gt; class time_point; 
-</pre></blockquote>
-<p>
-Make concept for <tt>Rep</tt>, <tt>Period</tt>, <tt>Clock</tt> and <tt>Duration</tt>.
-Fix 20.12 [time] and <tt>wait_until</tt>
-and <tt>wait_for</tt>'s template parameter at 30 [thread]. 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-We agree that this section needs concepts. We look forward to a paper on
-this topic. We recommend no action until a paper is available.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1035"></a>1035. <tt>&lt;array&gt;::swap</tt> can invalidate references, pointers, and iterators</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 226 [CD1]</b></p>
-
-<p>
-<tt>&lt;array&gt;</tt> must be added to this list. In particular it
-doesn't satisfy: - no <tt>swap()</tt> function invalidates any
-references, pointers, or iterators referring to the elements of the
-containers being swapped. and probably doesn't satisfy: - no
-<tt>swap()</tt> function throws an exception.
-</p>
-<p>
-If <tt>&lt;array&gt;</tt> remains a container, this will have to also
-reference <tt>array</tt>, which will then have to say which of these
-points it satisfies.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree. The proposed resolution is incomplete. Further work required.
-</p></blockquote>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Issue <a href="lwg-closed.html#1099">1099</a> also suggests adding move constructor to this.
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Howard is to draft a note that explains what happens to references.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD.  No consensus for change.
-</p></blockquote>
-
-
-
-<p><i>[
-2009-08-01 Howard provided wording.
-]</i></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a paragraph to 23.3.2.3 [array.special]:
-</p>
-
-<blockquote><pre>
-template &lt;Swappable T, size_t N&gt; void swap(array&lt;T,N&gt;&amp; x, array&lt;T,N&gt;&amp; y);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i>
-</p>
-<blockquote><pre>
-swap_ranges(x.begin(), x.end(), y.begin());
-</pre></blockquote>
-
-<p><ins>
-[<i>Note:</i>
-Outstanding iterators, references and pointers may be invalidated.
-&mdash; <i>end note</i>]
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1036"></a>1036. Remove iterator specification that is redundant due to concept constraints</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 231 [CD1]</b></p>
-
-<p>
-p9-p11 are redundant now that Concepts define what it means to be an
-Iterator and guide overload resolution accordingly. 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree with issue and change to 23.2.3 [sequence.reqmts]. The
-changes required to 21 [strings] will be part of the general
-concept support for that clause.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike 23.2.3 [sequence.reqmts]p9-11. Make sure <tt>std::basic_string</tt>
-has constraints similar to
-<tt>std::vector</tt> to meet this old guarantee. 
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1042"></a>1042. Provide <tt>ContiguousStorage</tt> concept and apply it to corresponding containers</h3>
-<p><b>Section:</b> 23.3 [sequences] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequences">issues</a> in [sequences].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 244 [CD1]</b></p>
-
-<p>
-The validity of the expression <tt>&amp;a[n] == &amp;a[0] + n</tt> is contingent on
-<tt>operator&amp;</tt> doing the "right thing" (as captured by the <tt>CopyConstructible</tt>
-requirements in table 30 in C++2003). However this constraint has been
-lost in the Concepts of C++0x. This applies to <tt>vector</tt> and <tt>array</tt> (it
-actually applies to <tt>string</tt> also, but that's a different chapter, so I'll
-file a separate comment there and cross-reference).
-</p>
-
-<p>
-Suggested solution:
-</p>
-
-<p>
-Define a <tt>ContiguousStorage</tt> and apply it to
-<tt>vector</tt>, <tt>array</tt> and <tt>string</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree with the issue but not the details of the proposed solution. Walter to
-provide wording for the new concept.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Another LWG subgroup wondered if this concept should extend to <tt>complex&lt;T&gt;</tt>, 
-and so not be built on the container concept at all?
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open, pending a post-Concepts Working Draft.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark issue 1042 as NAD, in rationale state that this was solved by removal of concepts.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to <tt>&lt;container_concepts&gt;</tt> synopsis in  [container.concepts]
-</p>
-
-<blockquote><pre>
-<ins>concept&lt; typename C &gt; ContiguousStorageContainer <i>see below</i>;</ins>
-</pre></blockquote>
-
-<p>
-Add a new section to the end of  [container.concepts]
-</p>
-
-<blockquote>
-<p>
-23.1.6.x ContiguousStorageContainer concept [container.concepts.contiguous]
-</p>
-
-<pre>
-concept ContiguousStorageContainer&lt; typename C &gt;
-  : Container&lt;C&gt;
-{
-  value_type* data(C&amp;);
-
-  axiom Contiguity(C&amp; c, size_type i) {
-    if( i &lt; size(c) ) {
-         addressof( * (data(c) + i) )
-      == addressof( * advance(data(c), i) );
-    }
-  }
-}
-</pre>
-
-<p>
-The <tt>ContiguousStorageContainer</tt> concept describes a container whose elements
-are allocated in a single region of memory, and are stored sequentially
-without intervening padding other than to meet alignment requirements.
-For example, the elements may be stored in a
-single array of suitable length.
-</p>
-
-<pre>
-value_type * data( C&amp; );
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> a pointer to the first element in the region of storage.
-Result is unspecified for an empty container.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Change 23.3.2 [array] p1:
-</p>
-
-<blockquote><p>
--1- The header <tt>&lt;array&gt;</tt> defines a class template for
-storing fixed-size sequences of objects. An <tt>array</tt> supports
-random access iterators. An instance of <tt>array&lt;T, N&gt;</tt>
-stores <tt>N</tt> elements of type <tt>T</tt>, so that <tt>size() ==
-N</tt> is an invariant. The elements of an <tt>array</tt> are stored
-contiguously, meaning that <del>if <tt>a</tt> is</del> an
-<tt>array&lt;T, N&gt;</tt> <del>then it obeys the identity <tt>&amp;a[n]
-== &amp;a[0] + n</tt> for all <tt>0 &lt;= n &lt; N</tt></del>
-<ins>satisfies the concept <tt>ContiguousStorageContainer&lt; array&lt;T,
-N&gt;&gt;</tt></ins>.
-</p></blockquote>
-
-<p>
-Add to the synopsis in 23.3.2 [array]:
-</p>
-
-<blockquote><pre>
-    ...
-    T * data(); 
-    const T * data() const; 
-  };
-
-  <ins>template&lt; typename T, size_t N &gt;</ins>
-    <ins>concept_map ContiguousStorageContainer&lt; array&lt;T, N&gt;&gt; {};</ins>
-} 
-</pre></blockquote>
-
-<p>
-Change 23.3.6 [vector] p1:
-</p>
-
-<blockquote><p>
-A <tt>vector</tt> is a sequence container that supports random access
-iterators. In addition, it supports (amortized) constant time insert and
-erase operations at the end; insert and erase in the middle take linear
-time. Storage management is handled automatically, though hints can be
-given to improve efficiency. The elements of a vector are stored
-contiguously, meaning that <del>if <tt>v</tt> is</del> a
-<tt>vector&lt;T, Alloc&gt;</tt> <ins>(</ins>where <tt>T</tt> is some
-type other than <tt>bool</tt><ins>)</ins><del>, then it obeys the
-identity <tt>&amp;v[n] == &amp;v[0] + n</tt> for all <tt>0 &lt;= n &lt;
-v.size()</tt></del> <ins>satisfies the concept <tt>ContiguousStorageContainer&lt;
-vector&lt; T, Alloc&gt;&gt;</tt></ins>.
-</p></blockquote>
-
-<p>
-Add at the end of the synopsis in 23.3.6 [vector] p2:
-</p>
-
-<blockquote><pre>
-<ins>template&lt; typename T, typename A &gt;
-  requires !SameType&lt; T, bool &gt;
-  concept_map ContiguousStorageContainer&lt; vector&lt;T, A&gt;&gt; {};</ins>
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Solved by removal of concepts.</p>
-
-
-
-
-
-<hr>
-<h3><a name="1051"></a>1051. Specify subscript operation return types of <tt>reverse_iterator</tt> and <tt>move_iterator</tt></h3>
-<p><b>Section:</b> 24.5.1.3.12 [reverse.iter.opindex], 24.5.3.3.12 [move.iter.op.index] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iter.opindex">issues</a> in [reverse.iter.opindex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 279 [CD1]</b></p>
-
-<p>
-The reason the return type became unspecified is LWG issue <a href="lwg-defects.html#386">386</a>. This
-reasoning no longer applies as there are at least two ways to get the right
-return type with the new language facilities added since the previous
-standard. 
-</p>
-
-<p>
-Proposal: Specify the return type using either decltype or the Iter concept_map.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Under discussion. This is a general question about all iterator
-adapters.
-</p>
-</blockquote>
-
-<p><i>[
-Howard adds post Summit:
-]</i></p>
-
-
-<blockquote><p>
-I am requesting test cases to demonstrate a position.
-</p></blockquote>
-
-<p><i>[
-2009-07-24 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I recommend NAD. Without concepts we can no longer
-restrict this member in a trivial way. Using <tt>decltype</tt> the
-declaration would be along the lines of
-</p>
-<blockquote><pre>
-static const Iter&amp; __base(); // not defined
-auto operator[](difference_type n) const -&gt; decltype(__base()[-n-1]);
-</pre></blockquote>
-
-<p>
-but once <tt>reverse_iterator</tt> is instantiated for some given type
-<tt>Iter</tt> which cannot form a well-formed expression <tt>__base()[-n-1]</tt>
-this would cause an ill-formed function declaration, diagnostic
-required, and no silent SFINAE elimination.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.
-</p></blockquote>
-
-<p><i>[
-2009-10-22 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-IMO, my original comment regarding ill-formedness of the described
-construction is still correct, but I must add that I should weaken my
-assertion "Without concepts we can no longer restrict this member in
-a trivial way".
-</p>
-
-<p>
-In fact with the existence of default template arguments for function
-templates it is not too hard to implement this like as follows, which
-shows that we can indeed simulate to some sense constrained
-member functions in C++0x.
-</p>
-
-<p>
-My example does not really proof that the specification is easy, but
-it should be possible. I assume that the implementation would not
-be ABI compatible, though.
-</p>
-
-<p>
-It is now your own decision how to proceed ;-)
-</p>
-
-<blockquote><pre>
-#include &lt;type_traits&gt;
-#include &lt;cstddef&gt;
-
-template&lt;class T&gt;
-typename std::add_rvalue_reference&lt;T&gt;::type declval();
-
-template&lt;class It&gt;
-struct reverse_iterator {
-    It base;
-    
-    typedef std::ptrdiff_t difference_type;
-    
-    template&lt;class U = It, class Res =
-     decltype(declval&lt;const U&amp;&gt;()[declval&lt;difference_type&gt;()])
-    &gt;
-    Res operator[](difference_type n) const  {
-        return base[-n-1];
-    }    
-};
-
-struct MyIter {
-};
-
-int main() {
-    reverse_iterator&lt;int*&gt; ri;
-    ri[0] = 2;
-    reverse_iterator&lt;MyIter&gt; ri2;
-}
-</pre></blockquote>
-
-<p>
-The above declaration could be simplified, but the ideal solution
-</p>
-
-<blockquote><pre>
-template&lt;class U = It&gt;
-  decltype(declval&lt;const U&amp;&gt;()[declval&lt;difference_type&gt;()])
-     operator[](difference_type n) const;
-</pre></blockquote>
-
-<p>
-does not work yet on gcc 4.4.1.
-</p>
-
-</blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1056"></a>1056. Must all Engines and Distributions be Streamable?</h3>
-<p><b>Section:</b> 26.5 [rand] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Both the concepts <tt>RandomNumberEngine</tt> and <tt>RandomNumberDistribution</tt> have
-requirements to be <tt>InputStreamable</tt> and <tt>OutputStreamable</tt>.
-</p>
-<p>
-I have no problems leaving the WP in an inconsistent state on the best-faith
-assumption these concepts will be provided later, however disagree with the
-proposers that these constraints are not separable, orthogonal to the basic
-concepts of generating random number distributions.
-</p>
-<p>
-These constraints should be dropped, and applied to specific algorithms as
-needed.
-</p>
-<p>
-If a more refined concept (certainly deemed useful by the proposers) is
-proposed there is no objection, but the basic concept should not require
-persistence via streaming.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open.
-</p></blockquote>
-
-<p><i>[
-2009-05-31 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Working on constraining the stream iterators, I have a few more observations
-to make on the concepts proposed while constraining the random number
-facility.
-</p>
-<p>
-While I still believe the concerns are orthogonal, I don't believe the
-existing constraints go far enough either!  The goal we want to achieve is
-not that a <tt>RandomNumberEngine</tt> / <tt>RandomNumberDistribution</tt> supports the stream
-operators, but that it is <tt>Serializable</tt>.  I.e. there is a relationship
-between the insert and extract operations that guarantees to restore the
-state of the original object.  This implies a coupling of the concepts
-together in a broader concept (<tt>Serializable</tt>) with at least one axiom to
-assert the semantics.
-</p>
-<p>
-One problem is that <tt>istream</tt> and <tt>ostream</tt> may be fundamentally different
-types, although we can hook a relation if we are prepared to drop down to
-the <tt>char</tt> type and <tt>char_traits</tt> template parameters.  Doing so ties us to a
-form of serialization that demands implementation via the std iostreams
-framework, which seems overly prescriptive.  I believe the goal is generally
-to support serialization without regard to how it is expressed - although
-this is getting even more inventive in terms of concepts we do not have
-today.
-</p>
-</blockquote>
-
-<p><i>[
-2009-11-03 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I can't find the record in the wiki minutes, but it was agreed at both
-Frankfurt and Santa Cruz that this issue is NAD.
-</p>
-<p>
-The agreement in SC was that I would provide you with the rationale (see
-below) to include when moving to NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-11-03 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The issue suggests a more refined concept should be used if we want to
-require streaming, to separate concerns from the basic
-<tt>RandomNumberEngine</tt> behaviour.  In Frankfurt it was observed
-that <tt>RandomNumberEngine</tt> <em>is</em> that more refined concept,
-and the basic concept used in the framework is
-<tt>UniformRandomNumberGenerator</tt>, which it refines.
-</p>
-
-<p>
-We concur, and expect this to have no repurcussions re-writing this
-clause now concepts are removed.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1057"></a>1057. <tt>RandomNumberEngineAdaptor</tt></h3>
-<p><b>Section:</b> 26.5 [rand] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The <tt>RandomNumberEngineAdaptor</tt> concept breaks precedent in the
-way the library has been specified by grouping requirements into a
-concept that is never actually used in the library.
-</p>
-<p>
-This is undoubtedly a very helpful device for documentation, but we are not
-comfortable with the precedent - especially as we have rejected national
-body comments on the same grounds.
-</p>
-<p>
-Suggest either removing the concept, or providing an algorithm/type that
-requires this concept in their definition (such as a factory function to
-create new engines).
-</p>
-<p>
-The preference is to create a single new algorithm and retain the value of
-the existing documentation.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Walter points out that it is unlikely that any algorithm would ever
-require this concept, but that the concept nonetheless is useful as
-documentation, and (via concept maps) as a means of checking specific adapters.
-</p>
-<p>
-Alisdair disagrees as to the concept's value as documentation.
-</p>
-<p>
-Marc points out that the <tt>RandomNumberDistribution</tt>
-is also a concept not used elsewhere in the Standard.
-</p>
-<p>
-Pete agrees that a policy of not inventing concepts
-that aren't used in the Standard is a good starting point,
-but should not be used as a criterion for rejecting a concept.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1058"></a>1058. New container issue</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Sequence containers 23.2.3 [sequence.reqmts]:
-</p>
-
-<p>
-The return value of new calls added to table 83 are not specified.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to NAD Editorial.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add after p6 23.2.3 [sequence.reqmts]:
-</p>
-
-<blockquote>
-<p>
--6- ...
-</p>
-<p><ins>
-The iterator returned from <tt>a.insert(p,rv)</tt> points to the copy of <tt>rv</tt>
-inserted into <tt>a</tt>.
-</ins></p>
-<p><ins>
-The iterator returned from <tt>a.emplace(p, args)</tt> points to the new
-element constructed from <tt>args</tt> inserted into <tt>a</tt>.
-</ins></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1059"></a>1059. Usage of no longer existing FunctionType concept</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Due to a deliberate core language decision, the earlier called
-"foundation" concept <tt>std::FunctionType</tt> had been removed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2773.pdf">N2773</a>
-shortly
-before the first "conceptualized" version of the WP
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>)
-had been
-prepared. This caused a break of the library, which already used this
-concept in the adapted definition of <tt>std::function</tt>
-(20.9 [function.objects]/2, header <tt>&lt;functional&gt;</tt> synopsis and
-20.9.12.2 [func.wrap.func]).
-</p>
-<p>
-A simple fix would be to either (a) make <tt>std::function</tt>'s primary template
-unconstrained or to (b) add constraints based on existing (support) concepts.
-A more advanced fix would (c) introduce a new library concept.
-</p>
-<p>
-The big disadvantage of (a) is, that users can define templates which
-cause compiler errors during instantiation time because of under-constrainedness
-and would thus violate the basic advantage of constrained
-code.
-</p>
-<p>
-For (b), the ideal constraints for <tt>std::function</tt>'s template parameter would
-be one which excludes everything else but the single provided partial
-specialization that matches every "free function" type (i.e. any function
-type w/o cv-qualifier-seq and w/o ref-qualifier).
-Expressing such a type as as single requirement would be written as
-</p>
-<blockquote><pre>
-template&lt;typename T&gt;
-requires ReferentType&lt;T&gt; // Eliminate cv void and function types with cv-qual-seq
-                         //   or ref-qual (depending on core issue #749)
-      &amp;&amp; PointeeType&lt;T&gt;  // Eliminate reference types
-      &amp;&amp; !ObjectType&lt;T&gt;  // Eliminate object types
-</pre></blockquote>
-<p>
-Just for completeness approach (c), which would make sense, if the
-library has more reasons to constrain for free function types:
-</p>
-<blockquote><pre>
-auto concept FreeFunctionType&lt;typename T&gt;
-  : ReferentType&lt;T&gt;, PointeeType&lt;T&gt;, MemberPointeeType&lt;T&gt;
-{
-  requires !ObjectType&lt;T&gt;;
-}
-</pre></blockquote>
-<p>
-I mention that approach because I expect that free function types belong
-to the most natural type categories for every days coders. Potential
-candidates in the library are <tt>addressof</tt> and class template <tt>packaged_task</tt>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair would prefer to have a core-supported <tt>FunctionType</tt> concept
-in order that any future changes be automatically correct
-without need for a library solution to catch up;
-he points to type traits as a precedent.
-Further, he believes that a published concept can't in the future
-be changed.
-</p>
-<p>
-Bill feels this category of entity would change sufficiently slowly
-that he would be willing to take the risk.
-</p>
-<p>
-Of the discussed solutions, we tend toward option (c).
-We like the idea of having a complete taxonomy of native types,
-and perhaps erred in trimming the set.
-</p>
-<p>
-We would like to have this issue reviewed by Core and would like
-their feedback.  Move to Open.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change in 20.9 [function.objects]/2, Header <tt>&lt;functional&gt;</tt> synopsis:
-</p>
-<blockquote><pre>
-// 20.6.16 polymorphic function wrappers:
-class bad_function_call;
-template&lt;<del>FunctionType</del><ins>ReferentType F</ins>&gt;
-<ins>requires PointeeType&lt;F&gt; &amp;&amp; !ObjectType&lt;F&gt;</ins>
-class function; // undefined
-</pre></blockquote>
-</li>
-<li>
-<p>
-Change in 20.9.12.2 [func.wrap.func]:
-</p>
-<blockquote><pre>
-namespace std {
-template&lt;<del>FunctionType</del><ins>ReferentType F</ins>&gt;
-<ins>requires PointeeType&lt;F&gt; &amp;&amp; !ObjectType&lt;F&gt;</ins>
-class function; // undefined
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1060"></a>1060. Embedded nulls in NTBS</h3>
-<p><b>Section:</b> 17.5.2.1.4.1 [byte.strings] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Definition of null-terminated sequences allow for embedded nulls. This is
-surprising, and probably not supportable with the intended use cases.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the issue, but believe this can be handled editorially.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1061"></a>1061. Bad indexing for tuple access to pair (Editorial?)</h3>
-<p><b>Section:</b> 20.3.4 [pair.astuple] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The definition of <tt>get</tt> implies that <tt>get</tt> must return the second element if
-given a negative integer.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to NAD Editorial.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-20.3.4 [pair.astuple] p5:
-</p>
-
-<blockquote><pre>
-template&lt;<del>int</del> <ins>size_t</ins> I, class T1, class T2&gt; 
-  requires True&lt;(I &lt; 2)&gt; 
-  const P&amp; get(const pair&lt;T1, T2&gt;&amp;);
-</pre>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1062"></a>1062. Missing insert_iterator for stacks/queues</h3>
-<p><b>Section:</b> 24.5.2 [insert.iterators] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#insert.iterators">issues</a> in [insert.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-It is odd that we have an iterator to insert into a <tt>vector</tt>, but not an
-iterator to insert into a <tt>vector</tt> that is adapted as a <tt>stack</tt>. The standard
-container adapters all have a common interface to <tt>push</tt> and <tt>pop</tt> so it should
-be simple to create an iterator adapter to complete the library support.
-</p>
-
-<p>
-We should provide an <tt>AdaptedContainer</tt> concept supporting <tt>push</tt> and <tt>pop</tt>
-operations. Create a new insert iterator and factory function that inserts
-values into the container by calling <tt>push</tt>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Walter recommends NAD Future.
-</p>
-<p>
-Move to Open, and recommend deferring the issue until after the next
-Committee Draft is issued.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-29 Howard moves to Tentatively NAD Future.
-]</i></p>
-
-
-<blockquote><p>
-A poll on the LWG reflector voted unanimously to move this issue to Tentatively NAD Future.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.  The intent of these adapters are to restrict the interfaces.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1063"></a>1063. 03 iterator compatibilty</h3>
-<p><b>Section:</b> X [iterator.backward] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Which header must a user <tt>#include</tt> to obtain the library-supplied
-<tt>concept_maps</tt> declared in this paragraph?
-</p>
-
-<p>
-This is important information, as existing user code will break if this
-header is not included, and we should make a point of mandating this header
-is <tt>#include</tt>-d by library headers likely to make use of it, notably
-<tt>&lt;algorithm&gt;</tt>.  See issue <a href="lwg-closed.html#1001">1001</a> for more details.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the direction of the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-We believe this is NAD Concepts, but this needs to be reviewed against the
-post-remove-concepts draft.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>Change  [depr.lib.iterator.primitives], Iterator primitives, as
-indicated:</i></p>
-
-<blockquote>
-  <p>To simplify the use of iterators and provide backward compatibility with
-  previous C++ Standard Libraries,
-  the library provides several classes and functions. <ins>Unless otherwise
-  specified, these classes and functions shall be defined in header <tt>&lt;iterator&gt;</tt>.</ins></p>
-</blockquote>
-<p><i>Change X [iterator.backward], Iterator backward compatibility, as
-indicated:</i></p>
-<blockquote>
-  <p>The library provides concept maps that allow iterators specified with
-  <tt>iterator_traits</tt> to interoperate with
-  algorithms that require iterator concepts. <ins>These concept maps shall be
-  defined in the same header that defines the iterator.</ins> [<i>Example:</i></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1064"></a>1064. Term "object state" should not refer to classes</h3>
-<p><b>Section:</b> 17.3 [defns.obj.state] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 152 [CD1]</b></p>
-
-<p>
-Object state is using a definition of object (instance of a class) from
-outside the standard, rather than the 'region of storage' definiton in
-1.8 [intro.object]p1
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-We think we're removing this; See X [func.referenceclosure.cons].
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD.  This will not affect user or implementer code
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1067"></a>1067. simplified wording for inner_product</h3>
-<p><b>Section:</b> 26.7 [numeric.ops] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.ops">issues</a> in [numeric.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-One of the motivating examples for introducing requirements-aliases was to
-simplify the wording of the <tt>inner_product</tt> requirements.  As the paper
-adopting the feature and constrained wording for the library went through in
-the same meeting, it was not possible to make the change at the time.  The
-simpler form should be adopted now though.  Similarly, most the other
-numerical algorithms can benefit from a minor cleanup.
-</p>
-<p>
-Note that in each case, the second more generalised form of the algorithm
-does not benefit, as there are already named constraints supplied by the
-template type parameters.
-</p>
-
-<p><i>[
-2009-05-02 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-one part of the suggested resolution suggests the removal of the
-<tt>MoveConstructible&lt;T&gt;</tt> requirement from
-<tt>inner_product</tt>. According to 26.7.3 [inner.product]
-</p>
-
-<blockquote><p>
-Computes its result by initializing the accumulator <tt>acc</tt> with the
-initial value <tt>init</tt>
-</p></blockquote>
-
-<p>
-this step requires at least <tt>MoveConstructible</tt>.
-</p>
-
-<p>
-Therefore I strongly suggest to take this removal back (Note also
-that the corresponding overload with a functor argument still has
-the same <tt>MoveConstructible&lt;T&gt;</tt> requirement).
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution as amended by Daniel's suggestion
-to restore <tt>MoveConstructible</tt>,
-reflected in the updated proposed resolution below.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change in 26.7 [numeric.ops] and 26.7.2 [accumulate]:
-</p>
-
-<blockquote><pre>
-template &lt;InputIterator Iter, MoveConstructible T&gt;
- requires <ins>add =</ins> HasPlus&lt;T, Iter::reference&gt;
-       &amp;&amp; HasAssign&lt;T, <del>HasPlus&lt;T, Iter::reference&gt;</del> <ins>add</ins>::result_type&gt;
- T accumulate(Iter first, Iter last, T init);
-</pre></blockquote>
-
-<p>
-Change in 26.7 [numeric.ops] and 26.7.3 [inner.product]:
-</p>
-
-<blockquote><pre>
-template &lt;InputIterator Iter1, InputIterator Iter2, MoveConstructible T&gt;
-  requires <ins>mult =</ins> HasMultiply&lt;Iter1::reference, Iter2::reference&gt;
-        &amp;&amp; <ins>add =</ins> HasPlus&lt;T, <del>HasMultiply&lt;Iter1::reference, Iter2::reference&gt;</del> <ins>mult</ins>::result_type&gt;
-        &amp;&amp; HasAssign&lt; 
-             T,
-             <del>HasPlus&lt;T,
-                     HasMultiply&lt;Iter1::reference, Iter2::reference&gt;::result_type&gt;</del> <ins>add</ins>::result_type&gt;
-  T inner_product(Iter1 first1, Iter1 last1, Iter2 first2, T init);
-</pre></blockquote>
-
-<p>
-Change in 26.7 [numeric.ops] and 26.7.4 [partial.sum]:
-</p>
-
-<blockquote><pre>
-template &lt;InputIterator InIter, OutputIterator&lt;auto, const InIter::value_type&amp;&gt; OutIter&gt;
-  requires <ins>add =</ins> HasPlus&lt;InIter::value_type, InIter::reference&gt;
-        &amp;&amp; HasAssign&lt;InIter::value_type,
-                     <del>HasPlus&lt;InIter::value_type, InIter::reference&gt;</del> <ins>add</ins>::result_type&gt;
-        &amp;&amp; Constructible&lt;InIter::value_type, InIter::reference&gt;
-  OutIter partial_sum(InIter first, InIter last, OutIter result);
-</pre></blockquote>
-
-<p>
-Change in 26.7 [numeric.ops] and 26.7.5 [adjacent.difference]:
-</p>
-
-<blockquote><pre>
-template &lt;InputIterator InIter, OutputIterator&lt;auto, const InIter::value_type&amp;&gt; OutIter&gt;
-  requires <ins>sub =</ins> HasMinus&lt;InIter::value_type, InIter::value_type&gt;
-        &amp;&amp; Constructible&lt;InIter::value_type, InIter::reference&gt;
-        &amp;&amp; OutputIterator&lt;OutIter, <del>HasMinus&lt;InIter::value_type, InIter::value_type&gt;</del> <ins>sub</ins>::result_type&gt;
-        &amp;&amp; MoveAssignable&lt;InIter::value_type&gt;
-  OutIter adjacent_difference(InIter first, InIter last, OutIter result);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1068"></a>1068. class <tt>random_device</tt> should be movable</h3>
-<p><b>Section:</b> 26.5.6 [rand.device] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.device">issues</a> in [rand.device].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-class <tt>random_device</tt> should be movable.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, and recommend this issue be deferred until after the next
-Committee Draft is issued.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open. Walter to provide drafting as part of his planned paper.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-WP is correct as written.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1069"></a>1069. class <tt>seed_seq</tt> should support efficient move operations</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-class <tt>seed_seq</tt> should support efficient move operations.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, and recommend this issue be deferred until after the next
-Committee Draft is issued.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open. Walter to provide drafting as part of his planned paper.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-<tt>seed_seq</tt> is explicitly not copyable, so, much like LWG issue
-<a href="lwg-closed.html#1068">1068</a>, LWG issue 1069 could be marked NAD to be consistent
-with this.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1072"></a>1072. Is <tt>std::hash</tt> a constrained template or not?</h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Is <tt>std::hash</tt> a constrained template or not?
-</p>
-<p>
-According to class template <tt>hash</tt> 20.9.13 [unord.hash], the definition is:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-struct hash : public std::unary_function&lt;T, std::size_t&gt; {
-  std::size_t operator()(T val) const;
-};
-</pre></blockquote>
-
-<p>
-And so unconstrained.
-</p>
-<p>
-According to the <tt>&lt;functional&gt;</tt> synopsis in p2 Function objects
-20.9 [function.objects] the template is declared as:
-</p>
-
-<blockquote><pre>
-template &lt;ReferentType T&gt; struct hash;
-</pre></blockquote>
-
-<p>
-which would make hash a constrained template.
-</p>
-
-<p><i>[
-2009-03-22 Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair is not certain that Daniel's proposed resolution is sufficient,
-and recommends we leave the hash template unconstrained for now.
-</p>
-<p>
-Recommend that the Project Editor make the constrained declaration consistent
-with the definition in order to make the Working Paper internally consistent,
-and that the issue then be revisited.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-[To the editor: This resolution is merge-compatible to the
-resolution of <a href="lwg-closed.html#1078">1078</a>]
-</p>
-
-<ol>
-<li>
-<p>
-In 20.9 [function.objects]/2, header <tt>&lt;functional&gt;</tt> synopsis, change as indicated:
-</p>
-
-<blockquote><pre>
-// 20.6.17, hash function base template:
-template &lt;ReferentType T&gt; struct hash; <ins>// undefined</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.9.13 [unord.hash]/1 change as indicated:
-</p>
-<blockquote><pre>
-namespace std {
- <del>template &lt;class T&gt;
- struct hash : public std::unary_function&lt;T, std::size_t&gt; {
- std::size_t operator()(T val) const;
- };</del>
- <ins>template &lt;ReferentType T&gt; struct hash; // undefined</ins>
-}
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.9.13 [unord.hash]/2 change as indicated:
-</p>
-
-<blockquote><p>
--2-  <ins>For all library-provided specializations, the template
-instantiation <tt>hash&lt;T&gt;</tt>
-  shall provide a public <tt>operator()</tt> with return type <tt>std::size_t</tt> to
-satisfy the concept
-  requirement <tt>Callable&lt;const hash&lt;T&gt;, const T&amp;&gt;</tt>. If <tt>T</tt> is an object
-type or reference to
-  object, <tt>hash&lt;T&gt;</tt> shall be publicly derived from
-<tt>std::unary_function&lt;T, std::size_t&gt;</tt>.
-  </ins> The return value of <tt>operator()</tt> is unspecified, except that
-equal arguments
-  shall yield the same result. <tt>operator()</tt> shall not throw exceptions.
-</p></blockquote>
-</li>
-<li>
-<p>
-In 18.7 [support.rtti]/1, header <tt>&lt;typeinfo&gt;</tt> synopsis change as indicated:
-</p>
-<blockquote><pre>
-namespace std {
-  class type_info;
-  class type_index;
-  template &lt;<del>class</del><ins>ReferentType</ins> T&gt; struct hash;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1074"></a>1074. concept map broken by N2840</h3>
-<p><b>Section:</b> X [allocator.element.concepts] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-p7 Allocator-related element concepts X [allocator.element.concepts]
-</p>
-
-<p>
-The changes to the <tt>AllocatableElement</tt> concept mean this <tt>concept_map</tt>
-specialization no longer matches the original concept:
-</p>
-
-<blockquote><pre>
-template &lt;Allocator Alloc, class T, class ... Args&gt;
-  requires HasConstructor&lt;T, Args...&gt;
-    concept_map AllocatableElement&lt;Alloc, T, Args&amp;&amp;...&gt; {
-      void construct_element(Alloc&amp; a, T* t, Args&amp;&amp;... args) {
-        Alloc::rebind&lt;T&gt;(a).construct(t, forward(args)...);
-      }
-    }
-</pre></blockquote>
-
-<p><i>[
-2009-03-23 Pablo adds:
-]</i></p>
-
-
-<blockquote><p>
-Actually, this is incorrect,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2840.pdf">N2840</a>
-says. "In section 
-X [allocator.element.concepts] paragraph 8, modify the definition of the
-<tt>AllocatableElement</tt> concept and eliminate the related concept map:" but
-then neglects to include the red-lined text of the concept map that was
-to be eliminated. Pete also missed this, but I caught it he asked me to
-review his edits.  Pete's updated WP removes the concept map entirely,
-which was the original intent.  The issue is, therefore, moot.  Note, as
-per my presentation of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2840.pdf">N2840</a>
-in summit, <tt>construct()</tt> no longer has a
-default implementation.  This regrettable fact was deemed (by David
-Abrahams, Doug, and myself) to be preferable to the complexity of
-providing a default implementation that would not under-constrain a more
-restrictive allocator (like the scoped allocators).
-</p></blockquote>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-<blockquote>
-<p>
-it seems to me that #1074 should be resolved as a NAD, because the
-current WP has already removed the previous AllocatableElement concept map.
-It introduced auto concept AllocatableElement instead, but as of
-X [allocator.element.concepts]/7 this guy contains now
-</p>
-<blockquote><pre>
-requires FreeStoreAllocatable&lt;T&gt;;
-void Alloc::construct(T*, Args&amp;&amp;...);
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-The affected code is no longer part of the Working Draft.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change X [allocator.element.concepts]:
-</p>
-
-<blockquote><pre>
-template &lt;Allocator Alloc, class T, class ... Args&gt;
-  requires HasConstructor&lt;T, Args...&gt;
-    concept_map AllocatableElement&lt;Alloc, T, Args&amp;&amp;...&gt; {
-      void construct_element(<del>Alloc&amp; a,</del> T* t, Args&amp;&amp;... args) {
-        Alloc::rebind&lt;T&gt;(a).construct(t, forward(args)...);
-      }
-    }
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1076"></a>1076. unary/binary_negate need constraining and move support</h3>
-<p><b>Section:</b> 20.9.9 [negators] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class templates <tt>unary/binary_negate</tt> need constraining and move support.
-</p>
-<p>
-Ideally these classes would be deprecated, allowing <tt>unary/binary_function</tt> to
-also be deprecated.  However, until a generic negate adaptor is introduced
-that can negate any <tt>Callable</tt> type, they must be supported so should be
-constrained.  Likewise, they should be movable, and support adopting a
-move-only predicate type.
-</p>
-<p>
-In order to preserve ABI compatibility, new rvalue overloads are supplied in
-preference to changing the existing pass-by-const-ref to pass-by-value.
-</p>
-<p>
-Do not consider the issue of forwarding mutable lvalues at this point,
-although remain open to another issue on the topic.
-</p>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-<blockquote>
-<p>
-IMO the currently proposed resolution needs some updates
-because it is ill-formed at several places:
-</p>
-
-<ol>
-<li>
-<p>
-In concept AdaptableUnaryFunction change
-</p>
-<blockquote><pre>
-typename X::result_type;
-typename X::argument_type;
-</pre></blockquote>
-<p>
-to
-</p>
-<blockquote><pre>
-Returnable result_type = typename X::result_type;
-typename argument_type = typename X::argument_type;
-</pre></blockquote>
-<p>
-[The replacement "Returnable result_type" instead of "typename
-result_type" is non-editorial, but maybe you prefer that as well]
-</p>
-</li>
-<li>
-<p>
-In concept AdaptableBinaryFunction change
-</p>
-<blockquote><pre>
-typename X::result_type;
-typename X::first_argument_type;
-typename X::second_argument_type;
-</pre></blockquote>
-<p>
-to
-</p>
-<blockquote><pre>
-Returnable result_type = typename X::result_type;
-typename first_argument_type = typename X::first_argument_type;
-typename second_argument_type = typename X::second_argument_type;
-</pre></blockquote>
-<p>
-[The replacement "Returnable result_type" instead of "typename
-result_type" is non-editorial, but maybe you prefer that as well.]
-</p>
-</li>
-
-<li>
-<p>
-In class unary/binary_function
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-I suggest to change "ReturnType" to "Returnable" in both cases.
-</li>
-<li>
-I think you want to replace the remaining occurrences of "Predicate" by "P"
-(in both classes in copy/move from a predicate)
-</li>
-</ol>
-</li>
-<li>
-<p>
-I think you need to change the proposed signatures of not1 and not2, because
-they would still remain unconstrained: To make them constrained at least a
-single requirement needs to be added to enable requirement implication. This
-could be done via a dummy ("requires True&lt;true&gt;") or just explicit as follows:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-<blockquote><pre>
-template &lt;AdaptableUnaryFunction P&gt;
-requires Predicate&lt; P, P::argument_type&gt;
-unary_negate&lt;P&gt; not1(const P&amp;&amp; pred);
-template &lt;AdaptableUnaryFunction P&gt;
-requires Predicate&lt; P, P::argument_type &gt;
-unary_negate&lt;P&gt; not1(P&amp;&amp; pred);
-</pre>
-<blockquote><p>
--3- Returns: unary_negate&lt;P&gt;(pred).
-</p></blockquote>
-</blockquote>
-<p>
-[Don't we want a move call for the second overload as in
-</p>
-<blockquote><pre>
-unary_negate&lt;P&gt;(std::move(pred))
-</pre></blockquote>
-<p>
-in the Returns clause ?]
-</p>
-</li>
-<li>
-<pre>
-template &lt;AdaptableBinaryFunction P&gt;
-requires Predicate&lt; P, P::first_argument_type, P::second_argument_type &gt;
-binary_negate&lt;P&gt; not2(const P&amp; pred);
-template &lt;AdaptableBinaryFunction P&gt;
-requires Predicate&lt; P, P::first_argument_type, P::second_argument_type &gt;
-binary_negate&lt;P&gt; not2(P&amp;&amp; pred);
-</pre>
-<p>
--5- Returns: binary_negate&lt;P&gt;(pred).
-</p>
-<p>
-[Don't we want a move call for the second overload as in
-</p>
-<blockquote><pre>
-binary_negate&lt;P&gt;(std::move(pred))
-</pre></blockquote>
-<p>
-in the Returns clause ?]
-</p>
-</li>
-</ol>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-There is concern that complicating the solution
-to preserve the ABI seems unnecessary,
-since we're not in general preserving the ABI.
-</p>
-<p>
-We would prefer a separate paper consolidating all Clause 20
-issues that are for the purpose of providing constrained versions
-of the existing facilities.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open pending the potential move constructor paper. Note that
-we consider the "constraining" part NAD Concepts.
-</p></blockquote>
-
-<p><i>[
-2010-01-31 Alisdair removes the current proposed wording from the proposed
-wording section because it is based on concepts.  That wording is proposed here:
-]</i></p>
-
-
-<blockquote class="note">
-<p>
-Add new concepts where appropriate::
-</p>
-
-<blockquote><pre>
-auto concept AdaptableUnaryFunction&lt; typename X &gt; {
-  typename X::result_type;
-  typename X::argument_type;
-}
-
-auto concept AdaptableBinaryFunction&lt; typename X &gt; {
-  typename X::result_type;
-  typename X::first_argument_type;
-  typename X::second_argument_type;
-}
-</pre></blockquote>
-
-<p>
-Revise as follows:
-</p>
-
-<p>
-Base  [base] (Only change is constrained Result)
-</p>
-
-<blockquote>
-<p>
--1-  The following classes are provided to simplify the typedefs of the
-argument and result types:
-</p>
-<pre>
-namespace std {
-  template &lt;class Arg, <del>class</del> <ins>ReturnType</ins> Result&gt;
-  struct unary_function {
-     typedef Arg    argument_type;
-     typedef Result result_type;
-  };
-
-  template &lt;class Arg1, class Arg2, <del>class</del> <ins>ReturnType</ins> Result&gt;
-  struct binary_function {
-     typedef Arg1   first_argument_type;
-     typedef Arg2   second_argument_type;
-     typedef Result result_type;
-  };
-}
-</pre></blockquote>
-
-<p>
-Negators 20.9.9 [negators]:
-</p>
-
-<blockquote>
-<p>
--1- Negators <tt>not1</tt> and <tt>not2</tt> take a unary and a binary predicate,
-respectively, and return their complements (5.3.1).
-</p>
-
-<pre>
-template &lt;<del>class</del> <ins>AdaptableUnaryFunction</ins> P<del>redicate</del>&gt;
-  <ins>requires Predicate&lt; P, P::argument_type &gt;</ins>
-  class unary_negate
-    : public unary_function&lt;<del>typename</del> P<del>redicate</del>::argument_type,bool&gt; {
-  public:
-    <ins>unary_negate(const unary_negate &amp; ) = default;</ins>
-    <ins>unary_negate(unary_negate &amp;&amp; );</ins>
-
-    <ins>requires CopyConstructible&lt; P &gt;</ins>
-       explicit unary_negate(const Predicate&amp; pred); 
-    <ins>requires MoveConstructible&lt; P &gt;
-       explicit unary_negate(Predicate &amp;&amp; pred);</ins>
-
-    bool operator()(const <del>typename</del> P<del>redicate</del>::argument_type&amp; x) const;
-  };
-</pre>
-<blockquote><p>
--2 <tt>operator()</tt> returns <tt>!pred(x)</tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class Predicate&gt;
-  unary_negate&lt;Predicate&gt; not1(const Predicate&amp;amp; pred);
-<ins>template &lt;class Predicate&gt;
-  unary_negate&lt;Predicate&gt; not1(Predicate&amp;&amp; pred);</ins>
-</pre>
-<blockquote><p>
--3-  <i>Returns:</i> <tt>unary_negate&lt;Predicate&gt;(pred)</tt>.
-</p></blockquote>
-
-<pre>
-template &lt;<del>class</del> <ins>AdaptableBinaryFunction</ins> P<del>redicate</del> &gt;
-  <ins>requires Predicate&lt; P, P::first_argument_type, P::second_argument_type &gt;</ins>
-  class binary_negate
-    : public binary_function&lt;<del>typename</del> P<del>redicate</del>::first_argument_type,
-                              <del>typename</del> P<del>redicate</del>::second_argument_type, bool&gt; {
-  public:
-    <ins>biary_negate(const binary_negate &amp; ) = default;</ins>
-    <ins>binary_negate(binary_negate &amp;&amp; );</ins>
-
-    <ins>requires CopyConstructible&lt; P &gt;</ins>
-       explicit binary_negate(const Predicate&amp; pred);
-    <ins>requires MoveConstructible&lt; P &gt;
-       explicit binary_negate(const Predicate&amp; pred);</ins>
-
-    bool operator()(const <del>typename</del> P<del>redicate</del>::first_argument_type&amp; x,
-                    const <del>typename</del> P<del>redicate</del>::second_argument_type&amp; y) const;
-  };
-</pre>
-<blockquote><p>
--4- <tt>operator()</tt> returns <tt>!pred(x,y)</tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class Predicate&gt;
-  binary_negate&lt;Predicate&gt; not2(const Predicate&amp; pred);
-<ins>template &lt;class Predicate&gt;
-  binary_negate&lt;Predicate&gt; not2(Predicate&amp;&amp; pred);</ins>
-</pre>
-
-<blockquote><p>
--5- <i>Returns:</i> <tt>binary_negate&lt;Predicate&gt;(pred)</tt>.
-</p></blockquote>
-</blockquote>
-
-</blockquote>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD Concepts.  The move-semantic part has been addressed by a core language change, 
-which implicitly generates appropriate move constructors and move-assignment operators.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1077"></a>1077. Nonesense <tt>tuple</tt> declarations</h3>
-<p><b>Section:</b> 20.4.2 [tuple.tuple] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.tuple">issues</a> in [tuple.tuple].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class template tuple 20.4.2 [tuple.tuple]:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-  requires Constructible&lt;Types, const UTypes&amp;&gt;...
-template &lt;class... UTypes&gt;
-  requires Constructible&lt;Types, RvalueOf&lt;UTypes&gt;::type&gt;...
-</pre></blockquote>
-
-<p>
-Somebody needs to look at this and say what it should be.
-</p>
-
-<p><i>[
-2009-03-21 Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The resolution looks correct; move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.4.2 [tuple.tuple], class <tt>tuple</tt>, change as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-  requires Constructible&lt;Types, const UTypes&amp;&gt;...
-  <ins>tuple(const pair&lt;UTypes...&gt;&amp;);</ins>
-template &lt;class... UTypes&gt;
-  requires Constructible&lt;Types, RvalueOf&lt;UTypes&gt;::type&gt;...
-  <ins>tuple(pair&lt;UTypes...&gt;&amp;&amp;);</ins>
-</pre></blockquote>
-
-<p>
-[NB.: The corresponding prototypes do already exist in 20.4.2.1 [tuple.cnstr]/7+8]
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1078"></a>1078. DE-17: Remove class type_index</h3>
-<p><b>Section:</b> 20.14 [type.index] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#type.index">issues</a> in [type.index].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses DE 17</b></p>
-
-<p>
-DE-17: 
-</p>
-<p>
-The class <tt>type_index</tt> should be removed; it provides no additional
-functionality beyond providing appropriate concept maps.
-</p>
-
-<p><i>[
-2009-03-31 Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-It is not true, in principle, that <tt>std::type_index</tt> provides no  utility
-compared to bare <tt>std::type_info*</tt>.
-</p>
-<p>
-<tt>std::type_index</tt> can avoid the lifetime issues with <tt>type_info</tt> when  the
-DLL that has produced the <tt>type_info</tt> object is unloaded. A raw
-<tt>type_info*</tt> does not, and cannot, provide any protection in this  case.
-A <tt>type_index</tt> can (if the implementor so chooses) because it  can wrap a
-smart (counted or even cloning) pointer to the <tt>type_info</tt>  data that is
-needed for <tt>name()</tt> and <tt>before()</tt> to work.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Modify the header &lt;typeinfo&gt; synopsis in 
-  18.7 [support.rtti]p1 as follows:</p>
-
-<blockquote><pre>
-namespace std { 
-  class type_info; 
-  <del>class type_index;</del>
-  template &lt;class T&gt; struct hash;
-  template&lt;&gt; struct hash&lt;<del>type_index</del><ins>const type_info *</ins>&gt; : public std::unary_function&lt;<del>type_index</del><ins>const type_info *</ins>, size_t&gt; {
-    size_t operator()(<del>type_index</del><ins>const type_info *</ins> <del>index</del><ins>t</ins>) const;
-  }<ins>;</ins>
-  <ins>concept_map LessThanComparable&lt;const type_info *&gt; <i>see below</i></ins>
-  class bad_cast; 
-  class bad_typeid;
-}
-</pre></blockquote>
-
-<p>Add the following new subsection</p>
-<blockquote>
-<p>
-<ins>18.7.1.1 Template specialization <code>hash&lt;const type_info *&gt;</code>
-[type.info.hash]</ins></p>
-
-<pre>
-<ins>size_t operator()(const type_info *x) const;</ins>
-</pre>
-<ol>
-<li><ins><i>Returns</i>: <code>x-&gt;hash_code()</code></ins></li>
-</ol>
-</blockquote>
-
- <p>Add the following new subsection</p>
- <blockquote>
-<p><ins>18.7.1.2 <code>type_info</code> concept map [type.info.concepts]</ins></p>
-
-
-<pre>
-<ins>concept_map LessThanComparable&lt;const type_info *&gt; {</ins>
-  <ins>bool operator&lt;(const type_info *x, const type_info *y) { return x-&gt;before(*y); }</ins>
-  <ins>bool operator&lt;=(const type_info *x, const type_info *y) { return !y-&gt;before(*x); }</ins>
-  <ins>bool operator&gt;(const type_info *x, const type_info *y) { return y-&gt;before(*x); }</ins>
-  <ins>bool operator&gt;=(const type_info *x, const type_info *y) { return !x-&gt;before(*y); }</ins>
-<ins>}</ins>
-</pre>
-<ol>
-  <li><ins><i>Note</i>: provides a well-defined ordering among
-  <code>type_info const</code> pointers, which makes such pointers
-  usable in associative containers (23.4).</ins></li>
-</ol>
-</blockquote>
-
-<p>Remove section 20.14 [type.index]</p>
-
-
-
-
-
-<hr>
-<h3><a name="1080"></a>1080. Concept ArithmeticLike should provide explicit boolean  conversion</h3>
-<p><b>Section:</b> X [concept.arithmetic] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Astonishingly, the current concept ArithmeticLike as specified in
-X [concept.arithmetic] does not provide explicit conversion
-to <tt>bool</tt> although this is a common property of arithmetic types
-(4.12 [conv.bool]). Recent proposals that introduced such types
-(integers of arbitrary precision,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2143.pdf">n2143</a>,
-decimals
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2732.pdf">n2732</a>
-indirectly
-via conversion to <tt>long long</tt>) also took care of such a feature.
-</p>
-<p>
-Adding such an explicit conversion associated function would also
-partly solve a currently invalid effects clause in library, which bases
-on this property, 24.2.7 [random.access.iterators]/2:
-</p>
-<blockquote><pre>
-{ difference_type m = n;
- if (m &gt;= 0) while (m--) ++r;
- else while (m++) --r;
- return r; }
-</pre></blockquote>
-
-<p>
-Both while-loops take advantage of a contextual conversion to <tt>bool</tt>
-(Another problem is that the &gt;= comparison uses the no
-longer supported existing implicit conversion from <tt>int</tt> to <tt>IntegralLike</tt>).
-</p>
-
-<p><b>Original proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In X [concept.arithmetic], add to the list of less refined
-concepts one further concept:
-</p>
-
-<blockquote><pre>
-concept ArithmeticLike&lt;typename T&gt;
-  : Regular&lt;T&gt;, LessThanComparable&lt;T&gt;, HasUnaryPlus&lt;T&gt;, HasNegate&lt;T&gt;,
-    HasPlus&lt;T, T&gt;, HasMinus&lt;T, T&gt;, HasMultiply&lt;T, T&gt;, HasDivide&lt;T, T&gt;,
-    HasPreincrement&lt;T&gt;, HasPostincrement&lt;T&gt;, HasPredecrement&lt;T&gt;,
-    HasPostdecrement&lt;T&gt;,
-    HasPlusAssign&lt;T, const T&amp;&gt;, HasMinusAssign&lt;T, const T&amp;&gt;,
-    HasMultiplyAssign&lt;T, const T&amp;&gt;,
-    HasDivideAssign&lt;T, const T&amp;&gt;<ins>, ExplicitlyConvertible&lt;T, bool&gt;</ins> {
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 24.2.7 [random.access.iterators]/2 change the current effects clause
-as indicated [The proposed insertion fixes the problem that the previous
-implicit construction from integrals has been changed to an explicit
-constructor]:
-</p>
-<blockquote><pre>
-{ difference_type m = n;
- if (m &gt;= <ins>difference_type(</ins>0<ins>)</ins>) while (m--) ++r;
- else while (m++) --r;
- return r; }
-</pre></blockquote>
-</li>
-</ol>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree that arithmetic types ought be convertible to <tt>bool</tt>,
-and we therefore agree with the proposed resolution's paragraph 1.
-</p>
-<p>
-We do not agree that the cited effects clause is invalid,
-as it expresses intent rather than specific code.
-</p>
-<p>
-Move to Review, pending input from concepts experts.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In X [concept.arithmetic], add to the list of less refined
-concepts one further concept:
-</p>
-
-<blockquote><pre>
-concept ArithmeticLike&lt;typename T&gt;
-  : Regular&lt;T&gt;, LessThanComparable&lt;T&gt;, HasUnaryPlus&lt;T&gt;, HasNegate&lt;T&gt;,
-    HasPlus&lt;T, T&gt;, HasMinus&lt;T, T&gt;, HasMultiply&lt;T, T&gt;, HasDivide&lt;T, T&gt;,
-    HasPreincrement&lt;T&gt;, HasPostincrement&lt;T&gt;, HasPredecrement&lt;T&gt;,
-    HasPostdecrement&lt;T&gt;,
-    HasPlusAssign&lt;T, const T&amp;&gt;, HasMinusAssign&lt;T, const T&amp;&gt;,
-    HasMultiplyAssign&lt;T, const T&amp;&gt;,
-    HasDivideAssign&lt;T, const T&amp;&gt;<ins>, ExplicitlyConvertible&lt;T, bool&gt;</ins> {
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1081"></a>1081. <tt>basic_string</tt> needs to be a concept-constrained template</h3>
-<p><b>Section:</b> 21 [strings] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#strings">issues</a> in [strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 216, JP 46, JP 48 [CD1]</b></p>
-
-<p>
-All the containers use concepts for their iterator usage, exect for
-<tt>basic_string</tt>. This needs fixing.
-</p>
-
-<p>
-Use concepts for iterator template parameters throughout the chapter.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-NB comments to be handled by Dave Abrahams and Howard Hinnant with
-advice from PJP: UK216 (which duplicates) JP46, JP48. JP46 supplies
-extensive proposed wording; start there.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1082"></a>1082. <tt>codecvt</tt> needs to be a concept-constrained template</h3>
-<p><b>Section:</b> 22 [localization] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#localization">issues</a> in [localization].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 49 [CD1]</b></p>
-
-<p>
-<tt>codecvt</tt> does not use concept. For example, create <tt>CodeConvert</tt>
-concept and change as follows.
-</p>
-
-<blockquote><pre>
-template&lt;CodeConvert Codecvt, class Elem = wchar_t&gt;
-  class wstring_convert {
-</pre></blockquote>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-To be handled by Howard Hinnant, Dave Abrahams, Martin Sebor, PJ Plauger.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1083"></a>1083. <tt>InputIterator</tt> and <tt>OutputIterator</tt> template parameters need to be concept constraints</h3>
-<p><b>Section:</b> 22 [localization] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#localization">issues</a> in [localization].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 52, JP 53 [CD1]</b></p>
-
-<p>
-<tt>InputIterator</tt> does not use concept.
-</p>
-
-<p>
-<tt>OutputIterator</tt> does not use concept.
-</p>
-
-<p>
-Comments include proposed wording.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-To be handled by Howard Hinnant, Dave Abrahams, Martin Sebor, PJ Plauger.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1084"></a>1084. Concept <tt>ForwardIterator</tt> should provide default implementation for post-increment</h3>
-<p><b>Section:</b> 24.2.5 [forward.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward.iterators">issues</a> in [forward.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 250 [CD1]</b></p>
-
-<p>
-A default implementation should be supplied for the post-increment
-operator to simplify implementation of iterators by users.
-</p>
-
-<p>
-Copy the Effects clause into the concept description as the default
-implementation. Assumes a default value for <tt>postincrement_result</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Howard will open an issue.
-</p></blockquote>
-
-<p><i>[
-2009-06-07 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This issue cannot currently be resolved as suggested, because
-that would render auto-detection of the return type
-<tt>postincrement_result</tt> invalid, see  [concept.map.assoc]/4+5. The
-best fix would be to add a default type to that associated type, but
-unfortunately any default type will prevent auto-deduction of types of
-associated functions as quoted above. A corresponding core issue
-is in preparation.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-This wording assumes the acceptance of UK 251 / <a href="lwg-closed.html#1009">1009</a>.  Both
-wordings change the same paragraphs.
-]</i></p>
-
-
-<p>
-Change 24.2.5 [forward.iterators]:
-</p>
-
-<blockquote>
-<pre>
-concept ForwardIterator&lt;typename X&gt; : InputIterator&lt;X&gt;, Regular&lt;X&gt; { 
-
-  MoveConstructible postincrement_result;
-  requires HasDereference&lt;postincrement_result&gt;
-        &amp;&amp; Convertible&lt;HasDereference&lt;postincrement_result&gt;::result_type, const value_type&amp;&gt;;
-
-  postincrement_result operator++(X&amp; r, int)<del>;</del> <ins>{
-     X tmp = r;
-     ++r;
-     return tmp;
-  }</ins>
-
-  axiom MultiPass(X a, X b) { 
-    if (a == b) *a == *b; 
-    if (a == b) ++a == ++b; 
-  } 
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1085"></a>1085. <tt>BidirectionalIterator</tt> concept should provide default implementation for post-decrement</h3>
-<p><b>Section:</b> 24.2.6 [bidirectional.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bidirectional.iterators">issues</a> in [bidirectional.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 258 [CD1]</b></p>
-
-<p>
-A default implementation should be supplied for the post-decrement
-operator to simplify implementation of iterators by users.
-</p>
-
-<p>
-Copy the Effects clause into the concept description as the default
-implementation. Assumes a default value for <tt>postincrement_result</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Howard will open an issue.
-</p></blockquote>
-
-<p><i>[
-2009-06-07 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This issue cannot currently be resolved as suggested, because
-that would render auto-detection of the return type
-<tt>postdecrement_result</tt> invalid, see <a href="lwg-closed.html#1084">1084</a>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 24.2.6 [bidirectional.iterators]:
-</p>
-
-<blockquote>
-<pre>
-concept BidirectionalIterator&lt;typename X&gt; : ForwardIterator&lt;X&gt; { 
-  MoveConstructible postdecrement_result; 
-  requires HasDereference&lt;postdecrement_result&gt; 
-        &amp;&amp; Convertible&lt;HasDereference&lt;postdecrement_result&gt;::result_type, const value_type&amp;&gt; 
-        &amp;&amp; Convertible&lt;postdecrement_result, const X&amp;&gt;; 
-  X&amp; operator--(X&amp;); 
-  postdecrement_result operator--(X&amp; <ins>r</ins>, int)<del>;</del> <ins>{
-     X tmp = r;
-     --r;
-     return tmp;
-  }</ins>
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1086"></a>1086. Stream iterators need to be concept-constrained templates</h3>
-<p><b>Section:</b> 24.6 [stream.iterators] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 284 [CD1]</b></p>
-
-<p>
-The stream iterators need constraining with concepts/requrires clauses.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-We agree. To be handled by Howard, Martin and PJ.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1087"></a>1087. Incorrect <tt>OutputIterator</tt> concept requirements for <tt>replace</tt> algorithms</h3>
-<p><b>Section:</b> 25.3.5 [alg.replace] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.replace">issues</a> in [alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 301 [CD1]</b></p>
-
-<p>
-<tt>replace</tt> and <tt>replace_if</tt> have the requirement: <tt>OutputIterator&lt;Iter,
-Iter::reference&gt;</tt> Which implies they need to copy some values in the
-range the algorithm is iterating over. This is not however the case, the
-only thing that happens is <tt>const T&amp;</tt>s might be copied over existing
-elements (hence the <tt>OutputIterator&lt;Iter, const T&amp;&gt;</tt>.
-</p>
-
-<p>
-Remove <tt>OutputIterator&lt;Iter, Iter::reference&gt;</tt> from <tt>replace</tt>
-and <tt>replace_if</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-We agree. To be handled by Howard.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change in  [algorithms.syn] and 25.3.5 [alg.replace]:
-</p>
-
-<blockquote><pre>
-template&lt;ForwardIterator Iter, class T&gt; 
-  requires <del>OutputIterator&lt;Iter, Iter::reference&gt; 
-        &amp;&amp;</del> OutputIterator&lt;Iter, const T&amp;&gt; 
-        &amp;&amp; HasEqualTo&lt;Iter::value_type, T&gt; 
-  void replace(Iter first, Iter last, 
-               const T&amp; old_value, const T&amp; new_value); 
-
-template&lt;ForwardIterator Iter, Predicate&lt;auto, Iter::value_type&gt; Pred, class T&gt; 
-  requires <del>OutputIterator&lt;Iter, Iter::reference&gt; 
-        &amp;&amp;</del> OutputIterator&lt;Iter, const T&amp;&gt; 
-        &amp;&amp; CopyConstructible&lt;Pred&gt; 
-  void replace_if(Iter first, Iter last,
-                  Pred pred, const T&amp; new_value);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1091"></a>1091. Multimap description confusing</h3>
-<p><b>Section:</b> 23.4.5.3 [multimap.modifiers] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 246</b></p>
-<p>
-The content of this sub-clause is purely trying to describe in words the
-effect of the requires clauses on these operations, now that we have
-Concepts. As such, the description is more confusing than the signature
-itself. The semantic for these functions is adequately covered in the
-requirements tables in 23.2.4 [associative.reqmts].
-</p>
-
-<p><i>[
-Beman adds:
-]</i></p>
-
-
-<blockquote><p>
-Pete is clearly right that
-this one is technical rather than editorial.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD, solved by removing concepts.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike 23.4.5.3 [multimap.modifiers] entirely
-(but do NOT strike these signatures from the class template definition!).
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1092"></a>1092. Class template <tt>integral_constant</tt> should be a  constrained template</h3>
-<p><b>Section:</b> 20.10.3 [meta.help] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.help">issues</a> in [meta.help].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A first step to change the type traits predicates to constrained templates is to
-constrain their common base template <tt>integral_constant</tt>. This can be done,
-without enforcing depending classes to be constrained as well, but not
-vice versa
-without brute force <tt>late_check</tt> usages. The following proposed resolution depends
-on the resolution of LWG issue <a href="lwg-defects.html#1019">1019</a>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, pending a paper that looks at constraints
-for the entirety of the type traits
-and their relationship to the foundation concepts.
-We recommend this be deferred
-until after the next Committee Draft is issued.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 20.10.2 [meta.type.synop], Header <tt>&lt;type_traits&gt;</tt>
-synopsis change as indicated:
-</p>
-<blockquote><pre>
-namespace std {
-// 20.5.3, helper class:
-template &lt;<del>class</del><ins>IntegralConstantExpressionType</ins> T, T v&gt; struct integral_constant;
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.10.3 [meta.help] change as indicated:
-</p>
-<blockquote><pre>
-template &lt;<del>class</del><ins>IntegralConstantExpressionType</ins> T, T v&gt;
-struct integral_constant {
-  static constexpr T value = v;
-  typedef T value_type;
-  typedef integral_constant&lt;T,v&gt; type;
-  constexpr operator value_type() { return value; }
-};
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1096"></a>1096. unconstrained rvalue ref parameters</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-TODO: Look at all cases of unconstrained rvalue ref parameters and check
-that concept req'ts work when <tt>T</tt> deduced as reference.
-</p>
-
-<p>
- We found some instances where that was not done correctly and we figure
-   the possibility of deducing <tt>T</tt> to be an lvalue reference was probably
-   overlooked elsewhere.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, pending proposed wording from Dave for further review.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1099"></a>1099. Various issues</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Notes
-</p>
-<blockquote>
-<p>
-[2009-03-21 Sat] p. 535 at the top we need MoveConstructible V1,
-MoveConstructible V2 (where V1,V2 are defined on 539).  Also make_tuple
-on 550
-</p>
-
-<blockquote>
-<p>
-CD-1 reads:
-</p>
-
-<blockquote><pre>
-template &lt;MoveConstructible T1, MoveConstructible T2&gt; 
-pair&lt;V1, V2&gt; make_pair(T1&amp;&amp;, T2&amp;&amp;); 
-</pre></blockquote>
-
-<p>
-Actually I'm guessing we need something like <tt>MoveConstructible&lt;V1,T1&gt;</tt>,
-i.e. "<tt>V1</tt> can be constructed from an rvalue of type <tt>T1</tt>."
-</p>
-
-<p>
-Ditto for <tt>make_tuple</tt>
-</p>
-</blockquote>
-
-<p>
-[2009-03-21 Sat] p1183 thread ctor, and in general, we need a way to
-talk about "copiable from generalized rvalue ref argument" for cases
-where we're going to forward and copy.  
-</p>
-<blockquote>
-<p>
-   This issue may well be quite large.  Language in para 4 about "if
-   an lvalue" is wrong because types aren't expressions.
-</p>
-
-<blockquote>
-<p>
-Maybe we should define the term "move" so we can just say in the
-effects, "<tt>f</tt> is moved into the newly-created thread" or something, and
-agree (and ideally document) that saying "<tt>f</tt> is moved" implies 
-</p>
-
-<blockquote><pre>
-F x(move(f))
-</pre></blockquote>
-
-<p>
-is required to work.  That would cover both ctors at once.
-</p>
-</blockquote>
-
-<p>
-   p1199, call_once has all the same issues.
-</p>
-</blockquote>
-<p>
-[2009-03-21 Sat] p869 InputIterator pointer type should not be required
-to be convertible to const value_type*, rather it needs to have a
-operator-> of its own that can be used for the value type.
-</p>
-
-<blockquote><p>
-This one is serious and unrelated to the move issue.
-</p></blockquote>
-
-<p>
-[2009-03-21 Sat] p818 stack has the same problem with default ctor.
-</p>
-<p>
-[2009-03-21 Sat] p816 priority_queue has the same sorts of problems as queue, only more so
-</p>
-<blockquote><pre>
-   requires MoveConstructible&lt;Cont&gt; 
-     explicit priority_queue(const Compare&amp; x = Compare(), Cont&amp;&amp; = Cont()); 
-</pre>
-<p>
-   Don't require MoveConstructible when default constructing Cont.
-   Also missing semantics for move ctor.
-</p>
-</blockquote>
-<p>
- [2009-03-21 Sat] Why are Allocators required to be CopyConstructible as
- opposed to MoveConstructible?
-</p>
-<p>
- [2009-03-21 Sat] p813 queue needs a separate default ctor (Cont needn't
- be MoveConstructible).  No documented semantics for move c'tor.  Or
- *any* of its 7 ctors!
-</p>
-<p>
- [2009-03-21 Sat] std::array should have constructors for C++0x,
- consequently must consider move construction.
-</p>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This could be done as part of <a href="lwg-closed.html#1035">1035</a>, which already handles
-deviation of <tt>std::array</tt> from container tables.
-</p></blockquote>
-
-<p>
- [2009-03-21 Sat] p622 all messed up.
-</p>
-<blockquote>
-<p>
-   para 8 "implementation-defined" is the wrong term; should be "see
-   below" or something.  
-<p/>
-   para 12 "will be selected" doesn't make any sense because we're not
-   talking about actual arg types.
-<p/>
-   paras 9-13 need to be totally rewritten for concepts.
-</p>
-</blockquote>
-
-<p>
- [2009-03-21 Sat] Null pointer comparisons (p587) have all become
- unconstrained.  Need to fix that
-<p/>
- [2009-03-21 Sat] mem_fun_t etc. definition doesn't match declaration.
-  We think CopyConstructible is the right reqt.
-<p/>
- make_pair needs Constructible&lt;V1, T1&amp;&amp;&gt; requirements!
-<p/>
- make_tuple needs something similar
-<p/>
- tuple bug in synopsis:
-</p>
-<blockquote><pre>
-   template &lt;class... UTypes&gt;
-   requires Constructible&lt;Types, const UTypes&amp;&gt;...
-   template &lt;class... UTypes&gt;
-   requires Constructible&lt;Types, RvalueOf&lt;UTypes&gt;::type&gt;...
-</pre>
-<p>
-   Note: removal of MoveConstructible requirements in std::function makes
-   these routines unconstrained!
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-02 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This part of the issue is already covered by <a href="lwg-closed.html#1077">1077</a>.
-</p></blockquote>
-
-<p>
- these unique_ptr constructors are broken [ I think this is covered in "p622 all messed up" ]
-</p>
-<blockquote><pre>
- unique_ptr(pointer p, implementation-defined d);
- unique_ptr(pointer p, implementation-defined d);
-</pre></blockquote>
-<p>
- multimap range constructor should not have MoveConstructible&lt;value_type&gt; requirement.
-</p>
-<blockquote><p>
-   same with <tt>insert(..., P&amp;&amp;);</tt> <tt>multiset</tt> has the same issue, as do
-   <tt>unordered_multiset</tt> and <tt>unordered_multimap</tt>. Review these!
-</p></blockquote>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, pending proposed wording from Dave for further review.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Tentatively NAD.  We are not sure what has been addressed and what hasn't.
-Recommend closing unless someone sorts this out into something more readable.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The issue(s) at hand not adequately communicated.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1101"></a>1101. <tt>unique</tt> requirements</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From Message c++std-core-14160 Howard wrote:
-</p>
-
-<blockquote><p>
-It was the intent of the rvalue reference proposal for unique to only require MoveAssignable:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1860.html#25.2.9%20-%20Unique">N1860</a>.
-</p></blockquote>
-
-<p>
-And Pete replied:
-</p>
-
-<blockquote><p>
-That was overridden by the subsequent changes made for concepts in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2573.pdf">N2573</a>,
-which reimposed the C++03 requirements.
-</p></blockquote>
-
-<p>
-My impression is that this overwrite was a simple (unintentional) mistake.
-Wording below to correct it.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard notes this issue resolves a discrepancy between the synopsis
-and the description.
-</p>
-<p>
-Move to NAD Editorial.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25.3.9 [alg.unique]:
-</p>
-
-<blockquote><pre>
-template&lt;ForwardIterator Iter&gt; 
-  requires OutputIterator&lt;Iter, <ins>RvalueOf&lt;</ins>Iter::reference<ins>&gt;::type</ins>&gt; 
-        &amp;&amp; EqualityComparable&lt;Iter::value_type&gt; 
-  Iter unique(Iter first, Iter last); 
-
-template&lt;ForwardIterator Iter, EquivalenceRelation&lt;auto, Iter::value_type&gt; Pred&gt; 
-  requires OutputIterator&lt;Iter, RvalueOf&lt;Iter::reference&gt;::type&gt; 
-        &amp;&amp; CopyConstructible&lt;Pred&gt; 
-  Iter unique(Iter first, Iter last, Pred pred);
-</pre></blockquote>
-
-<p>
-Note that the synopsis in  [algorithms.syn] is already correct.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1102"></a>1102. <tt>std::vector</tt>'s reallocation policy still unclear</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-04-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I have the impression that even the wording of current draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>
-does insufficiently express the intent of <tt>vector</tt>'s
-reallocation strategy. This has produced not too old library
-implementations which release memory in the <tt>clear()</tt> function
-and even modern articles about C++ programming cultivate
-the belief that <tt>clear</tt> is allowed to do exactly this. A typical
-example is something like this:
-</p>
-
-<blockquote><pre>
-const int buf_size = ...;
-std::vector&lt;T&gt; buf(buf_size);
-for (int i = 0; i &lt; some_condition; ++i) {
-  buf.resize(buf_size);
-  write_or_read_data(buf.data());
-  buf.clear(); // Ensure that the next round get's 'zeroed' elements
-}
-</pre></blockquote>
-<p>
-where still the myth is ubiquitous that <tt>buf</tt> might be
-allowed to reallocate it's memory *inside* the <tt>for</tt> loop.
-</p>
-<p>
-IMO the problem is due to the fact, that
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-the actual memory-reallocation stability of <tt>std::vector</tt>
-is explained in 23.3.6.3 [vector.capacity]/3 and /6 which
-are describing just the effects of the <tt>reserve</tt>
-function, but in many examples (like above) there
-is no explicit call to <tt>reserve</tt> involved. Further-more
-23.3.6.3 [vector.capacity]/6 does only mention <em>insertions</em>
-and never mentions the consequences of erasing
-elements.
-</li>
-<li>
-<p>
-the effects clause of <tt>std::vector</tt>'s <tt>erase</tt> overloads in
-23.3.6.5 [vector.modifiers]/4 is silent about capacity changes. This
-easily causes a misunderstanding, because the counter
-parting insert functions described in 23.3.6.5 [vector.modifiers]/2
-explicitly say, that
-</p>
-<blockquote><p>
-Causes reallocation if the new size is greater than the
-old capacity. If no reallocation happens, all the iterators
-and references before the insertion point remain valid.
-</p></blockquote>
-<p>
-It requires a complex argumentation chain about four
-different places in the standard to provide the - possibly
-weak - proof that calling <tt>clear()</tt> also does <em>never</em> change
-the capacity of the <tt>std::vector</tt> container. Since <tt>std::vector</tt>
-is the de-facto replacement of C99's dynamic arrays this
-type is near to a built-in type and it's specification should
-be clear enough that usual programmers can trust their
-own reading.
-</p>
-</li>
-</ol>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Bill believes paragraph 1 of the proposed resolution is unnecessary
-because it is already implied (even if tortuously) by the current wording.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD. Rationale: there is no consensus to clarify the standard,
-general consensus that the standard is correct as written.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-This is a minimum version. I also
-suggest that the wording explaining the allocation strategy
-of <tt>std::vector</tt> in 23.3.6.3 [vector.capacity]/3 and /6 is moved into
-a separate sub paragraph of 23.3.6.3 [vector.capacity] <em>before</em>
-any of the prototype's are discussed, but I cannot provide
-reasonable wording changes now
-]</i></p>
-
-
-<ol>
-<li>
-<p>
-Change 23.3.6.3 [vector.capacity]/6 as follows:
-</p>
-<blockquote><p>
-It is guaranteed that no reallocation takes place during
-insertions <ins>or erasures</ins> that happen after a call
-to <tt>reserve()</tt> until the time when an insertion would make
-the size of the vector greater than the value of <tt>capacity()</tt>.
-</p></blockquote>
-</li>
-<li>
-<p>
-Change 23.3.6.5 [vector.modifiers]/4 as follows:
-</p>
-<blockquote><p>
-<i>Effects:</i> <ins>The capacity shall remain unchanged and no reallocation shall
-happen.</ins>
-Invalidates iterators and references at or after the point
-of the erase.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1105"></a>1105. Shouldn't <tt>Range</tt> be an <tt>auto concept</tt></h3>
-<p><b>Section:</b> X [iterator.concepts.range] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><i>[
-2009-04-26 Herb adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Here's a common example: We have many ISV customers who have built lots of
-in-house STL-like containers. Imagine that, for the past ten years, the user
-has been happily using his <tt>XYZCorpContainer&lt;T&gt;</tt> that has <tt>begin()</tt> and <tt>end()</tt>
-and an iterator typedef, and indeed satisfies nearly all of <tt>Container</tt>,
-though maybe not quite all just like <tt>valarray</tt>. The user upgrades to a
-range-enabled version of a library, and now <tt>lib_algo( xyz.begin(), xyz.end());</tt>
-no longer works -- compiler error.
-</p>
-<p>
-Even though <tt>XYZCorpContainer</tt> matches the pre-conceptized version of the
-algorithm, and has been working for years, it appears the user has to write
-at least this:
-</p>
-<blockquote><pre>
-template&lt;class T&gt; concept_map Range&lt;XYZCorpContainer&lt;T&gt;&gt; {};
-
-template&lt;class T&gt; concept_map Range&lt;const XYZCorpContainer&lt;T&gt;&gt; {};
-</pre></blockquote>
-<p>
-Is that correct?
-</p>
-<p>
-But he may actually have to write this as we do for initializer list:
-</p>
-<blockquote><pre>
-template&lt;class T&gt;
-concept_map Range&lt;XYZCorpContainer&lt;T&gt;&gt; {
-   typedef T* iterator;
-   iterator begin(XYZCorpContainer&lt;T&gt; c) { return c.begin(); }
-   iterator end(XYZCorpContainer&lt;T&gt; c) { return c.end(); }
-};
-
-template&lt;class T&gt;
-concept_map Range&lt;const XYZCorpContainer&lt;T&gt;&gt; {
-   typedef T* iterator;
-   iterator begin(XYZCorpContainer&lt;T&gt; c) { return c.begin(); }
-   iterator end(XYZCorpContainer&lt;T&gt; c) { return c.end(); }
-};
-</pre></blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-04-28 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I recommend NAD, although remain concerned about header organisation.
-</p>
-<p>
-A user container will satisfy the <tt>MemberContainer</tt> concept, which IS auto.
-There is a concept_map for all <tt>MemberContainers</tt> to <tt>Container</tt>, and then a
-further concept_map for all <tt>Container</tt> to <tt>Range</tt>, so the stated problem is not
-actually true.  User defined containers will automatically match the <tt>Range</tt>
-concept without explicitly declaring a concept_map.
-</p>
-<p>
-The problem is that they should now provide an additional two headers,
-<tt>&lt;iterator_concepts&gt;</tt> and <tt>&lt;container_concepts&gt;</tt>.
- The only difference from
-making <tt>Range</tt> an auto concept would be this reduces to a single header,
-<tt>&lt;iterator_concepts&gt;</tt>.
-</p>
-<p>
-I am strongly in favour of any resolution that tackles the issue of
-explicitly requiring concept headers to make these concept maps available.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We observe there is a recent paper by Bjarne that overlaps this issue.
-</p>
-<p>
-Alisdair continues to recommend NAD.
-</p>
-<p>
-Move to Open, and recommend the issue be deferred until after the next
-Committee Draft is issued.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1107"></a>1107. constructor <tt>shared_future(unique_future)</tt> by value?</h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Thomas J. Gritzan <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the <tt>shared_future</tt> class definition in 30.6.7 [futures.shared_future]
-the move constructor 
-that constructs a <tt>shared_future</tt> from an <tt>unique_future</tt> receives the 
-parameter by value. In paragraph 3, the same constructor receives it as 
-const value. 
-</p>
-
-<p>
-I think that is a mistake and the constructor should take a r-value 
-reference: 
-</p>
-
-<blockquote><pre>
-shared_future(unique_future&lt;R&gt;&amp;&amp; rhs);
-</pre></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-<p/>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-05 Daniel notes:
-]</i></p>
-
-
-<blockquote><p>
-The proposed change has already been incorported into the current working draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 30.6.7 [futures.shared_future]:
-</p>
-
-<blockquote><pre>
-shared_future(unique_future&lt;R&gt;<ins>&amp;&amp;</ins> rhs);
-</pre></blockquote>
-
-<p>
-Change the definition of the constructor in 30.6.7 [futures.shared_future]:
-</p>
-
-<blockquote><pre>
-shared_future(<del>const</del> unique_future&lt;R&gt;<ins>&amp;&amp;</ins> rhs);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1109"></a>1109. <tt>std::includes</tt> should require <tt>CopyConstructible</tt> predicate</h3>
-<p><b>Section:</b> 25.4.5.1 [includes] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-04-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#includes">issues</a> in [includes].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-All the set operation algorithms require a <tt>CopyConstructible</tt> predicate, with
-the exception of <tt>std::includes</tt>.  This looks like a typo as much as anything,
-given the general library requirement that predicates are copy
-constructible, and wording style of other set-like operations.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to NAD Editorial.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change  [algorithms.syn] and 25.4.5.1 [includes]:
-</p>
-
-<blockquote><pre>
-template&lt;InputIterator Iter1, InputIterator Iter2,
-         <del>typename</del> <ins>CopyConstructible</ins> Compare&gt;
-  requires Predicate&lt;Compare, Iter1::value_type, Iter2::value_type&gt;
-        &amp;&amp; Predicate&lt;Compare, Iter2::value_type, Iter1::value_type&gt;
-  bool includes(Iter1 first1, Iter1 last1,
-                Iter2 first2, Iter2 last2,
-                Compare comp);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1111"></a>1111. associative containers underconstrained</h3>
-<p><b>Section:</b> 23.4 [associative] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-04-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative">active issues</a> in [associative].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative">issues</a> in [associative].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to table 87 (n2857) the expression <tt>X::key_equal</tt> for an unordered
-container shall return a value of type <tt>Pred</tt>, where <tt>Pred</tt> is an equivalence
-relation.
-</p>
-
-<p>
-However, all 4 containers constrain <tt>Pred</tt> to be merely a <tt>Predicate</tt>,
-and not <tt>EquivalenceRelation</tt>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-For ordered containers, replace 
-</p>
-<blockquote><pre>
-Predicate&lt;auto, Key, Key&gt; Compare = less&lt;Key&gt;
-</pre></blockquote>
-<p>
-with 
-</p>
-<blockquote><pre>
-StrictWeakOrder&lt;auto, Key, Key&gt; Compare = less&lt;Key&gt;
-</pre></blockquote>
-
-<p>
-For unordered containers, replace 
-</p>
-<blockquote><pre>
-Predicate&lt;auto, Key, Key&gt; Compare = less&lt;Key&gt;
-</pre></blockquote>
-<p>
-with 
-</p>
-<blockquote><pre>
-EquivalenceRelation&lt;auto, Key, Key&gt; Compare = less&lt;Key&gt;
-</pre></blockquote>
-<p>
-As in the following declarations:
-</p>
-
-<blockquote>
-<p>
-Associative containers 23.4 [associative]
-</p>
-<p>
- 1 Headers <tt>&lt;map&gt;</tt> and <tt>&lt;set&gt;</tt>:
-</p>
-<p>
-   Header <tt>&lt;map&gt;</tt> synopsis
-</p>
-<blockquote><pre>
-   namespace std {
-     template &lt;ValueType Key, ValueType T,
-               <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-               Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-       requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-             &amp;&amp; CopyConstructible&lt;Compare&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-     class map;
-
-     ...
-
-     template &lt;ValueType Key, ValueType T,
-               <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-               Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-       requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-             &amp;&amp; CopyConstructible&lt;Compare&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-     class multimap;
-
-     ...
-
-   }
-</pre></blockquote>
-
-<p>
-   Header &lt;set&gt; synopsis
-</p>
-<blockquote><pre>
-   namespace std {
-     template &lt;ValueType Key, <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-               Allocator Alloc = allocator&lt;Key&gt; &gt;
-       requires NothrowDestructible&lt;Key&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-     class set;
-
-     ...
-
-     template &lt;ValueType Key, <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-               Allocator Alloc = allocator&lt;Key&gt; &gt;
-       requires NothrowDestructible&lt;Key&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-             &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-     class multiset;
-
-     ...
-
-   }
-</pre></blockquote>
-
-<p>
- 23.4.1p2 Class template map [map]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Key, ValueType T,
-             <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-           &amp;&amp; CopyConstructible&lt;Compare&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-   class map {
-     ...
-   };
- }
-</pre></blockquote>
-
-
-<p>
- 23.4.2p2 Class template multimap [multimap]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Key, ValueType T,
-             <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-           &amp;&amp; CopyConstructible&lt;Compare&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-   class multimap {
-     ...
-   };
- }
-</pre></blockquote>
-
-
-<p>
- 23.4.3p2 Class template set [set]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Key, <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;Key&gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-   class set {
-     ...
-   };
- }
-</pre></blockquote>
-
-
-<p>
- 23.4.4p2 Class template multiset [multiset]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Key, <del>Predicate</del><ins>StrictWeakOrder</ins>&lt;auto, Key<del>, Key</del>&gt; Compare = less&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;Key&gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; CopyConstructible&lt;Compare&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, const Compare&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Compare, Compare&amp;&amp;&gt;
-   class multiset {
-     ...
-   };
- }
-</pre></blockquote>
-
-<p>
- 23.5 Unordered associative containers [unord]
-</p>
-<p>
- 1 Headers &lt;unordered_map&gt; and &lt;unordered_set&gt;:
-</p>
-<p>
- Header &lt;unordered_map&gt; synopsis
-</p>
-<blockquote><pre>
- namespace std {
-   // 23.5.1, class template unordered_map:
-   template &lt;ValueType Key,
-             ValueType T,
-             Callable&lt;auto, const Key&amp;&gt; Hash = hash&lt;Key&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Key<del>, Key</del>&gt; Pred = equal_to&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-     class unordered_map;
-
-   // 23.5.2, class template unordered_multimap:
-   template &lt;ValueType Key,
-             ValueType T,
-             Callable&lt;auto, const Key&amp;&gt; Hash = hash&lt;Key&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Key<del>, Key</del>&gt; Pred = equal_to&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-     class unordered_multimap;
-
-   ...
- }
-</pre></blockquote>
-
-<p>
- Header &lt;unordered_set&gt; synopsis
-</p>
-<blockquote><pre>
- namespace std {
-   // 23.5.3, class template unordered_set:
-   template &lt;ValueType Value,
-             Callable&lt;auto, const Value&amp;&gt; Hash = hash&lt;Value&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Value<del>, Value</del>&gt; class Pred = equal_to&lt;Value&gt;,
-             Allocator Alloc = allocator&lt;Value&gt; &gt;
-     requires NothrowDestructible&lt;Value&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-     class unordered_set;
-
-   // 23.5.4, class template unordered_multiset:
-   template &lt;ValueType Value,
-             Callable&lt;auto, const Value&amp;&gt; Hash = hash&lt;Value&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Value<del>, Value</del>&gt; class Pred = equal_to&lt;Value&gt;,
-             Allocator Alloc = allocator&lt;Value&gt; &gt;
-     requires NothrowDestructible&lt;Value&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-     class unordered_multiset;
-
-   ...
- }
-</pre></blockquote>
-
-<p>
- 23.5.1p3 Class template unordered_map [unord.map]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Key,
-             ValueType T,
-             Callable&lt;auto, const Key&amp;&gt; Hash = hash&lt;Key&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Key<del>, Key</del>&gt; Pred = equal_to&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-   class unordered_map
-   {
-     ...
-   };
- }
-</pre></blockquote>
-
-<p>
- 23.5.2p3 Class template unordered_multimap [unord.multimap]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Key,
-             ValueType T,
-             Callable&lt;auto, const Key&amp;&gt; Hash = hash&lt;Key&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Key<del>, Key</del>&gt; Pred = equal_to&lt;Key&gt;,
-             Allocator Alloc = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-     requires NothrowDestructible&lt;Key&gt; &amp;&amp; NothrowDestructible&lt;T&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-   class unordered_multimap
-   {
-     ...
-   };
- }
-</pre></blockquote>
-
-<p>
- 23.5.3p3 Class template unordered_set [unord.set]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Value,
-             Callable&lt;auto, const Value&amp;&gt; Hash = hash&lt;Value&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Value<del>, Value</del>&gt; class Pred = equal_to&lt;Value&gt;,
-             Allocator Alloc = allocator&lt;Value&gt; &gt;
-     requires NothrowDestructible&lt;Value&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-   class unordered_set
-   {
-     ...
-   };
- }
-</pre></blockquote>
-<p>
- 23.5.4p3 Class template unordered_multiset [unord.multiset]
-</p>
-<blockquote><pre>
- namespace std {
-   template &lt;ValueType Value,
-             Callable&lt;auto, const Value&amp;&gt; Hash = hash&lt;Value&gt;,
-             <del>Predicate</del><ins>EquivalenceRelation</ins>&lt;auto, Value<del>, Value</del>&gt; class Pred = equal_to&lt;Value&gt;,
-             Allocator Alloc = allocator&lt;Value&gt; &gt;
-     requires NothrowDestructible&lt;Value&gt;
-           &amp;&amp; SameType&lt;Hash::result_type, size_t&gt;
-           &amp;&amp; CopyConstructible&lt;Hash&gt; &amp;&amp; CopyConstructible&lt;Pred&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, const Pred&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Pred, Pred&amp;&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, const Hash&amp;&gt;
-           &amp;&amp; AllocatableElement&lt;Alloc, Hash, Hash&amp;&amp;&gt;
-   class unordered_multiset
-   {
-     ...
-   };
- }
-</pre></blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1115"></a>1115. <tt>va_copy</tt> missing from Standard macros table</h3>
-<p><b>Section:</b> C.5 [diff.library] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Miles Zhao <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#diff.library">issues</a> in [diff.library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In "Table 122 &mdash; Standard macros" of C.5 [diff.library], which lists the 56 macros
-inherited from C library, <tt>va_copy</tt> seems to be missing. But in
-"Table 21 &mdash; Header <tt>&lt;cstdarg&gt;</tt> synopsis" (18.10 [support.runtime]), there is.
-</p>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as Tentatively NAD Editorial, if Pete disagrees, Howard
-will move to Tentatively Ready
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add <tt>va_copy</tt> to Table 122 -- Standard macros in C.5 [diff.library].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1119"></a>1119. tuple query APIs do not support references</h3>
-<p><b>Section:</b> 20.4.2.5 [tuple.helper] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.helper">issues</a> in [tuple.helper].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>tuple</tt> query APIs <tt>tuple_size</tt> and
-<tt>tuple_element</tt> do not support references-to-tuples.  This can be
-annoying when a template deduced a parameter type to be a reference,
-which must be explicitly stripped with <tt>remove_reference</tt> before calling
-these APIs.
-</p>
-<p>
-I am not proposing a resolution at this point, as there is a
-combinatorial explosion with lvalue/rvalue references and
-cv-qualification (see previous issue) that suggests some higher
-refactoring is in order.  This might be something to kick back over to
-Core/Evolution.
-</p>
-<p>
-Note that we have the same problem in numeric_limits.
-</p>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open. Alisdair to provide wording.
-</p></blockquote>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD.  This is an extension after the FCD, without a clear motivation.  
-May consider as NAD Future if motivating examples come forward.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1124"></a>1124.  Invalid definition of concept RvalueOf</h3>
-<p><b>Section:</b> X [concept.transform] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#concept.transform">issues</a> in [concept.transform].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A recent news group
-<a href="http://groups.google.de/group/comp.std.c++/browse_frm/thread/8eb92768a19fb46f">article</a>
-points to several defects in the
-specification of reference-related concepts.
-</p>
-<p>
-One problem of the concept <tt>RvalueOf</tt> as currently defined in
-X [concept.transform]:
-</p>
-
-<blockquote><pre>
-concept RvalueOf&lt;typename T&gt; {
- typename type = T&amp;&amp;;
- requires ExplicitlyConvertible&lt;T&amp;,type&gt; &amp;&amp; Convertible&lt;T&amp;&amp;,type&gt;;
-}
-
-template&lt;typename T&gt; concept_map RvalueOf&lt;T&amp;&gt; {
- typedef T&amp;&amp; type;
-}
-</pre></blockquote>
-
-<p>
-is that if <tt>T</tt> is an lvalue-reference, the requirement
-<tt>Convertible&lt;T&amp;&amp;,type&gt;</tt> isn't satisfied for
-lvalue-references, because after reference-collapsing in the concept
-definition we have <tt>Convertible&lt;T&amp;,type&gt;</tt> in this case,
-which isn't satisfied in the concept map template and also is not the
-right constraint either. I think that the reporter is right that
-<tt>SameType</tt> requirements should do the job and that we also should
-use the new <tt>RvalueReference</tt> concept to specify a best matching
-type requirement.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In X [concept.transform] before p. 4 change as indicated:
-</p>
-
-<blockquote><pre>
-auto concept RvalueOf&lt;typename T&gt; {
-  <del>typename</del><ins>RvalueReference</ins> type = T&amp;&amp;;
-  requires <del>ExplicitlyConvertible&lt;T&amp;, type&gt; &amp;&amp; Convertible&lt;T&amp;&amp;, type&gt;</del><ins>SameType&lt;T&amp;, type&amp;&gt;</ins>;
-}
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1125"></a>1125. ostream_iterator does not work with movable types</h3>
-<p><b>Section:</b> 24.6.2.2 [ostream.iterator.ops] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>ostream_iterator</tt> has not been updated to support moveable types, in a
-similar manner to the insert iterators.
-Note that this is not a problem for <tt>ostreambuf_iterator</tt>, as the types it is
-restricted to dealing with do not support extra-efficient moving.
-</p>
-
-<p><i>[
-2009-11-10 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD after 5 positive votes on c++std-lib.  Rationale
-added below.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add second <tt>operator=</tt> overload to class <tt>template ostream_iterator</tt>
-in 24.6.2 [ostream.iterator], para 2:
-</p>
-
-<blockquote><pre>
-ostream_iterator&lt;T,charT,traits&gt;&amp; operator=(const T&amp; value);
-<ins>ostream_iterator&lt;T,charT,traits&gt;&amp; operator=(T&amp;&amp; value);</ins>
-</pre></blockquote>
-
-<p>
-Add a new paragraph: in 24.6.2.2 [ostream.iterator.ops]:
-</p>
-
-<blockquote>
-<pre>
-ostream_iterator&amp; operator=(T&amp;&amp; value);
-</pre>
-<blockquote>
-<p>
--2- <i>Effects:</i>
-</p>
-<blockquote><pre>
-*out_stream &lt;&lt; std::move(value);
-if(delim != 0)
-  *out_stream &lt;&lt; delim;
-return (*this);
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Several objections to move forward with this issue were voiced in the thread
-starting with c++std-lib-25438.  Among them is that we know of no motivating
-use case to make streaming rvalues behave differently than streaming const
-lvalues.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1127"></a>1127. rvalue references and iterator traits</h3>
-<p><b>Section:</b> 24.4.1 [iterator.traits] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.traits">issues</a> in [iterator.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The deprecated support for <tt>iterator_traits</tt> and legacy (unconstrained)
-iterators features the (exposition only) concept:
-</p>
-
-<blockquote><pre>
-concept IsReference&lt;typename T&gt; { } // exposition only
-template&lt;typename T&gt; concept_map IsReference&lt;T&amp;&gt; { }
-</pre></blockquote>
-<p>
-Now this looks exactly like the <tt>LvalueReference</tt> concept recently added to
-clause 20, so I wonder if we should use that instead?
-Then I consider the lack of rvalue-reference support, which means that
-<tt>move_iterator</tt> would always flag as merely supporting the <tt>input_iterator_tag</tt>
-category.  This suggests we retain the exposition concept, but add a second
-concept_map to support rvalue references.
-</p>
-<p>
-I would suggest adding the extra concept_map is the right way forward, but
-still wonder if the two exposition-only concepts in this clause might be
-worth promoting to clause 20.  That question might better be answered with a
-fuller investigation of type_trait/concept unification though.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In Iterator traits 24.4.1 [iterator.traits] para 4 add:
-</p>
-
-<blockquote><pre>
-concept IsReference&lt;typename T&gt; { } // exposition only
-template&lt;typename T&gt; concept_map IsReference&lt;T&amp;&gt; { }
-<ins>template&lt;typename T&gt; concept_map IsReference&lt;T&amp;&amp;&gt; { }</ins>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1128"></a>1128. Missing definition of <tt>iterator_traits&lt;T*&gt;</tt></h3>
-<p><b>Section:</b> X [iterator.syn] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>&lt;iterator&gt;</tt> header synopsis declares a partial specialization of
-<tt>iterator_traits</tt> to support pointers, X [iterator.syn].  The implication
-is that specialization will be described in D10, yet it did not follow the
-rest of the deprecated material into this clause.
-</p>
-<p>
-However, this is not as bad as it first seems!
-There are partial specializations of <tt>iterator_traits</tt> for types that satisfy
-the various Iterator concepts, and there are concept_maps for pointers to
-explicitly support the <tt>RandomAccessIterator</tt> concept, so the required
-template will be present - just not in the manner advertised.
-</p>
-<p>
-I can see two obvious solutions:
-</p>
-
-<ol style="list-style-type:lower-roman">
-<li>
-Restore the <tt>iterator_traits&lt;T*&gt;</tt> partial specialization in D.10
-</li>
-<li>
-Remove the declaration of <tt>iterator_traits&lt;T*&gt;</tt> from 24.3 synopsis
-</li>
-</ol>
-<p>
-I recommend option (ii) in the wording below
-</p>
-<p>
-Option (ii) could be extended to strike all the declarations of deprecated
-material from the synopsis, as it is effectively duplicating D.10 anyway.
-This is the approach taken for deprecated library components in the 98/03
-standards.  This is probably a matter best left to the Editor though.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In X [iterator.syn] strike:
-</p>
-
-<blockquote><pre>
-<del>template&lt;class T&gt; struct iterator_traits&lt;T*&gt;;</del>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1132"></a>1132. JP-30: nested exceptions</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Seiji Hayashida <b>Opened:</b> 2009-06-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 30</b></p>
-
-<p>
-C++0x <tt>nested_exception</tt> cannot handle a structured exception well. The
-following codes show two types of tree structured exception handling.
-</p>
-<p>
-The first one is based on <tt>nested_exception</tt> in C++0x,
-while the second one is based on my library <tt>trickerr.h</tt> (in Japanese).
-<a href="http://tricklib.com/cxx/dagger/trickerr.h">http://tricklib.com/cxx/dagger/trickerr.h</a>
-</p>
-<p>
-Assume that Function <tt>A()</tt> calls two sub functions <tt>A_a()</tt> and <tt>A_b()</tt>, both might
-throw tree structured exceptions, and <tt>A_b()</tt> must be called even if <tt>A_a()</tt>
-throws an exception.
-</p>
-<p>
-List A (code of tree structured exception handling based on nested_exception
-in C++0x)
-</p>
-
-<blockquote><pre>
-void A()
-{
-    try
-    {
-        std::vector&lt;exception_ptr&gt; exception_list;
-        try
-        {
-            // A_a() does a similar processing as A().
-            A_a();
-        }
-        catch(...)
-        {
-            exception_list.push_back(current_exception());
-        }
-
-        // ***The processing A() has to do even when A_a() fails. ***
-        try
-        {
-            // A_b() does a similar processing as A().
-            A_b();
-        }
-        catch(...)
-        {
-            exception_list.push_back(current_exception());
-        }
-        if (!exception_list.empty())
-        {
-            throw exception_list;
-        }
-    }
-    catch(...)
-    {
-        throw_with_nested(A_exception("someone error"));
-    }
-}
-void print_tree_exception(exception_ptr e, const std::string &amp; indent ="")
-{
-    const char * indent_unit = " ";
-    const char * mark = "- ";
-    try
-    {
-        rethow_exception(e);
-    }
-    catch(const std::vector&lt;exception_ptr&gt; e)
-    {
-        for(std::vector&lt;exception_ptr&gt;::const_iterator i = e.begin(); i!=e.end(); ++i)
-        {
-            print_tree_exception(i, indent);
-        }
-    }
-    catch(const std::nested_exception  e)
-    {
-        print_tree_exception(evil_i(e), indent +indent_unit);
-    }
-    catch(const std::exception e)
-    {
-        std::cout &lt;&lt; indent &lt;&lt; mark &lt;&lt; e.what() &lt;&lt; std::endl;
-    }
-    catch(...)
-    {
-        std::cout &lt;&lt; indent &lt;&lt; mark &lt;&lt; "unknown exception" &lt;&lt; std::endl;
-    }
-}
-int main(int, char * [])
-{
-    try
-    {
-        A();
-    }
-    catch()
-    {
-        print_tree_exception(current_exception());
-    }
-    return EXIT_SUCCESS;
-}
-</pre></blockquote>
-
-<p>
-List B ( code of tree structured exception handling based on <tt>trickerr.h</tt>. )
-"trickerr.h" (in Japanese), refer to:
-<a href="http://tricklib.com/cxx/dagger/trickerr.h">http://tricklib.com/cxx/dagger/trickerr.h</a>.
-</p>
-
-<blockquote><pre>
-void A()
-{
-    tricklib::error_listener_type error_listener;
-    // A_a() is like A(). A_a() can throw tree structured exception.
-    A_a();
-
-    // *** It must do process so that A_a() throws exception in A(). ***
-    // A_b() is like A(). A_b() can throw tree structured exception.
-    A_b();
-
-    if (error_listener.has_error()) // You can write this "if block" in destructor
-                                    //  of class derived from error_listener_type.
-    {
-        throw_error(new A_error("someone error",error_listener.listener_off().extract_pending_error()));
-    }
-}
-void print_tree_error(const tricklib::error_type &amp;a_error, const std::string &amp; indent = "")
-{
-    const char * indent_unit = " ";
-    const char * mark = "- ";
-
-    tricklib::error_type error = a_error;
-    while(error)
-    {
-        std::cout &lt;&lt; indent &lt;&lt; mark &lt;&lt; error-&gt;message &lt;&lt; std::endl;
-        if (error-&gt;children)
-        {
-            print_tree_error(error-&gt;children, indent +indent_unit);
-        }
-        error = error-&gt;next;
-    }
-}
-int main(int, char * [])
-{
-    tricklib::error_thread_power error_thread_power_on; // This object is necessary per thread.
-
-    try
-    {
-        A();
-    }
-    catch(error_type error)
-    {
-        print_tree_error(error);
-    }
-    catch(...)
-    {
-        std::cout &lt;&lt; "- unknown exception" &lt;&lt; std::endl;
-    }
-    return EXIT_SUCCESS;
-}
-</pre></blockquote>
-
-<p>
-Prospect
-</p>
-<p>
-We will focus on the method A() since the other methods, also main(), occur
-only once respectively.
-</p>
-
-<ul>
-<li>
- In the List A above (of the nested exception handling), it is hard to
- find out an active reason to use the nested exception handling at this
- scene. Rather, we can take a simpler description by throwing the entire
- exception_list directly to the top level.
-</li>
-<li>
- The code in the same example gives us a kind of redundant impression,
- which might have come from the fact that the try-throw-catch framework does
- not assume a tree structured exception handling.
-</li>
-</ul>
-
-<p>
-According to the above observation, we cannot help concluding that it is not
-so easy to use the nested_exception handling as a tree structured exception
-handling mechanism in a practical sense.
-</p>
-<p>
-This text is based on the web page below (in Japanese).
-<a href="http://d.hatena.ne.jp/wraith13/20081231/1230715424">http://d.hatena.ne.jp/wraith13/20081231/1230715424</a>
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD. The committee agrees that <tt>nested_exception</tt> is not a good
-match for this usage model. The committee did not see a way of improving
-this within the timeframe allowed.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1139"></a>1139. Thread support library not concept enabled</h3>
-<p><b>Section:</b> 30 [thread] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread">issues</a> in [thread].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 93, JP 79, UK 333, JP 81</b></p>
-
-<p>
-The thread chapter is not concept enabled.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1140"></a>1140. Numerics library not concept enabled</h3>
-<p><b>Section:</b> 26 [numerics] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numerics">issues</a> in [numerics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 84</b></p>
-
-<p>
-The numerics chapter is not concept enabled.
-</p>
-
-<p>
-The portion of this comment dealing with random numbers was resolved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a>,
-which was accepted in Summit.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1141"></a>1141. Input/Output library not concept enabled</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 85, JP 67, JP 68, JP 69, JP 72, UK 308</b></p>
-
-<p>
-The input/output chapter is not concept enabled.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1142"></a>1142. Regular expressions library not concept enabled</h3>
-<p><b>Section:</b> 28 [re] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re">active issues</a> in [re].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re">issues</a> in [re].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 86, UK 309, UK 310</b></p>
-
-<p>
-The regular expressions chapter is not concept enabled.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1148"></a>1148. Wrong argument type of I/O stream manipulators <tt>setprecision()</tt>
-and <tt>setw()</tt></h3>
-<p><b>Section:</b> 27.7 [iostream.format] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Marc Steinbach <b>Opened:</b> 2009-06-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.format">issues</a> in [iostream.format].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The header <tt>&lt;iomanip&gt;</tt> synopsis in 27.7 [iostream.format] specifies
-</p>
-<blockquote><pre>
-T5 setprecision(int n);
-T6 setw(int n);
-</pre></blockquote>
-
-<p>
-The argument types should be streamsize, as in class <tt>ios_base</tt>
-(see 27.5.3 [ios.base]):
-</p>
-<blockquote><pre>
-streamsize precision() const;
-streamsize precision(streamsize prec);
-streamsize width() const;
-streamsize width(streamsize wide);
-</pre></blockquote>
-
-<p>
-(Editorial: 'wide' should probably be renamed as 'width', or maybe just 'w'.)
-</p>
-
-<p><i>[
-2009-07-29 Daniel clarified wording.
-]</i></p>
-
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-No concensus for this change.  There was some interest in doing the opposite
-fix:  Change the <tt>streamsize</tt> in <tt>&lt;ios&gt;</tt> to <tt>int</tt>.
-But ultimately there was no concensus for that change either.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 27.7 [iostream.format], header <tt>&lt;iomanip&gt;</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-T5 setprecision(<del>int</del><ins>streamsize</ins> n);
-T6 setw(<del>int</del><ins>streamsize</ins> n);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 27.7.4 [std.manip], just before p. 6 change as indicated:
-</p>
-
-<blockquote><pre>
-unspecified setprecision(<del>int</del><ins>streamsize</ins> n);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 27.7.4 [std.manip], just before p. 7 change as indicated:
-</p>
-
-<blockquote><pre>
-unspecified setw(<del>int</del><ins>streamsize</ins> n);
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1149"></a>1149. Reformulating NonemptyRange axiom</h3>
-<p><b>Section:</b> X [rand.concept.urng] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2009-06-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In X [rand.concept.urng], we have the following:
-</p>
-<blockquote><pre>
-concept UniformRandomNumberGenerator&lt;typename G&gt; : Callable&lt;G&gt; {
-  ...
-  axiom NonemptyRange(G&amp; g) {
-    G::min() &lt; G::max();
-  }
-  ...
-}
-</pre></blockquote>
-
-<p>
-Since the parameter <tt>G</tt> is in scope throughout the concept, there is no
-need for the axiom to be further parameterized, and so the axiom can be
-slightly simplified as:
-</p>
-
-<blockquote><pre>
-axiom NonemptyRange()  {
-  G::min() &lt; G::max();
-}
-</pre></blockquote>
-
-<p>
-We can further reformulate so as to avoid any axiom machinery as:
-</p>
-
-<blockquote><pre>
-requires True&lt; G::min() &lt; G::max() &gt;;
-</pre></blockquote>
-
-<p>
-This is not only a simpler statement of the same requirement, but also
-forces the requirement to be checked.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In X [rand.concept.urng], replace the <tt>NonemptyRange</tt> axiom by:
-</p>
-
-<blockquote><pre>
-<del>axiom NonemptyRange(G&amp; g) { 
-   G::min() &lt; G::max(); 
-}</del>
-<ins>requires True&lt; G::min() &lt; G::max() &gt;;</ins>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1153"></a>1153. Standard library needs review for constructors to be
-explicit to avoid treatment as initializer-list constructor</h3>
-<p><b>Section:</b> 17 [library], 30 [thread], D [depr] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses DE 2</b></p>
-
-<p><b>Description</b></p>
-        <p>Marking a constructor with <tt>explicit</tt> has semantics
-        even for a constructor with zero or several parameters:
-        Such a constructor cannot be used with list-initialization
-        in a copy-initialization context, see 13.3.1.7 [over.match.list]. The
-        standard library apparently has not been reviewed for
-        marking non-single-parameter constructors as <tt>explicit</tt>.</p>
-<p><b>Suggestion</b></p>
-        <p>Consider marking zero-parameter and multi-parameter
-        constructors <tt>explicit</tt> in classes that have at least one
-        constructor marked <tt>explicit</tt> and that do not have an
-        initializer-list constructor.</p>
-
-<p><b>Notes</b></p>
-        <p>Robert Klarer to address this one.</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to "Open". Robert Klarer has promised to provide wording.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-We are unaware of any cases where initializer lists cause problem in this
-context, but if problems arise in the future the issue can be reopened.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1155"></a>1155. Reference should be to C99</h3>
-<p><b>Section:</b> C.5 [diff.library] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#diff.library">issues</a> in [diff.library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses FR 38</b></p>
-
-<p><b>Description</b></p>
-        <p>What is ISO/IEC 1990:9899/DAM
-        1? My guess is that's a typo for ISO/IEC
-        9899/Amd.1:1995 which I'd
-        have expected to be referenced here (the tables
-        make reference to things
-        which were introduced by Amd.1).</p>
-<p><b>Suggestion</b></p>
-        <p>One need probably a reference
-        to the document which introduce <tt>char16_t</tt> and
-        <tt>char32_t</tt> in C (ISO/IEC TR 19769:2004?).</p>
-<p><b>Notes</b></p>
-<p>Create issue. Document in question should be C99, not C90+amendment1. The 
-    rest of the section requires careful review for completeness. Example &lt;cstdint&gt; 
-    18.4.1 [cstdint.syn]. Assign to C liasons.</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-NAD Editorial. Already fixed.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1156"></a>1156. Constraints on bitmask and enumeration types to be tightened</h3>
-<p><b>Section:</b> 17.5.2.1.2 [enumerated.types], 17.5.2.1.3 [bitmask.types] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 165</b></p>
-
-<p><b>Description</b></p>
-        <p>Constraints on
-        bitmask and enumeration types were supposed to be tightened
-        up as part of the motivation for the <tt>constexpr</tt> feature -
-        see paper
-        <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a>
-        for details</p>
-<p><b>Suggestion</b></p>
-        <p>Adopt wording in line with the motivation
-        described in
-        <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2235.pdf">N2235</a></p>
-<p><b>Notes</b></p>
-        <p>Robert Klarer to review</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open. Ping Robert Klarer to provide wording, using N2235 as guidance.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD.  Rationale added.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-UK NB did not sufficiently describe how to resolve their comment, and
-therefore we cannot make a change for the FCD. If a resolution were
-provided in the future, we would be happy to apply it.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1164"></a>1164. <tt>promise::swap</tt> should pass by rvalue reference</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 341</b></p>
-
-<p><b>Description</b></p>
-<p><tt>promise::swap</tt> accepts its parameter by lvalue reference. This is
-inconsistent with other types that provide a swap member function,
-where those swap functions accept an rvalue reference</p>
-
-<p><b>Suggestion</b></p>
-<p>Change <tt>promise::swap</tt> to take an rvalue reference.</p>
-
-<p><b>Notes</b></p>
-<p>Create an issue. Detlef will look into it. Probably ready as it.</p>  
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-NAD, by virtue of the changed rvalue rules and swap signatures from Summit.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1167"></a>1167. <tt>pair&lt;T,U&gt;</tt> doesn't model <tt>LessThanComparable</tt> in unconstrained code even if
-      <tt>T</tt> and <tt>U</tt> do.</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2009-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>LessThanComparable</tt> requires (and provides default
-             implementations for) &lt;=,&gt;, and &gt;=.  However, the defaults
-             don't take effect in unconstrained code.
-</p>
-<p>
-Still, it's a problem to have types acting one way in
-constrained code and another in unconstrained code, except in cases of
-syntax adaptation.  It's also inconsistent with the containers, which
-supply all those operators.
-</p>
-<p>
-Totally Unbiased
-Suggested Resolution:
-</p>
-<p>
-accept the exported concept maps proposal and
-                    change the way this stuff is handled to use an
-                    explicit exported concept map rather than nested
-                    function templates
-</p>
-<p>
-e.g., remove from the body of <tt>std::list</tt>
-</p>
-<blockquote><pre>
-template &lt;LessThanComparable T, class Allocator&gt; 
-bool operator&lt; (const list&lt;T,Allocator&gt;&amp; x, const list&lt;T,Allocator&gt;&amp; y); 
-template &lt;LessThanComparable T, class Allocator&gt; 
-bool operator&gt; (const list&lt;T,Allocator&gt;&amp; x, const list&lt;T,Allocator&gt;&amp; y); 
-template &lt;LessThanComparable T, class Allocator&gt; 
-bool operator&gt;=(const list&lt;T,Allocator&gt;&amp; x, const list&lt;T,Allocator&gt;&amp; y); 
-template &lt;LessThanComparable T, class Allocator&gt; 
-bool operator&lt;=(const list&lt;T,Allocator&gt;&amp; x, const list&lt;T,Allocator&gt;&amp; y); 
-</pre></blockquote>
-<p>
-and add this concept_map afterwards:
-</p>
-<blockquote><pre>
-template &lt;LessThanComparable T, class Allocator&gt; 
-export concept_map LessThanComparable&lt;list&lt;T,Allocator&gt; &gt;
-{
-    bool operator&lt;(const list&lt;T,Allocator&gt;&amp; x, const list&lt;T,Allocator&gt;&amp; y);
-}
-</pre></blockquote>
-<p>
-do similarly for <tt>std::pair</tt>.  While you're at it, do the same for
-<tt>operator==</tt> and <tt>!=</tt> everywhere, and seek out other such opportunities.
-</p>
-<p>
-Alternative Resolution: keep the ugly, complex specification and add the
-                       missing operators to <tt>std::pair</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1168"></a>1168. Odd wording for bitset equality operators</h3>
-<p><b>Section:</b> 20.6.2 [bitset.members] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.members">issues</a> in [bitset.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following wording seems a little unusual to me:
-</p>
-<p>
-p42/43 20.6.2 [bitset.members]
-</p>
-
-<blockquote>
-<pre>
-bool operator==(const bitset&lt;N&gt;&amp; rhs) const;
-</pre>
-<blockquote><p>
--42- <i>Returns:</i> A nonzero value if the value of each bit in
-<tt>*this</tt> equals the value of the corresponding bit in
-<tt>rhs</tt>.
-</p></blockquote>
-<pre>
-bool operator!=(const bitset&lt;N&gt;&amp; rhs) const;
-</pre>
-<blockquote><p>
--43- <i>Returns:</i> A nonzero value if <tt>!(*this == rhs)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-"A nonzero value" may be well defined as equivalent to the literal '<tt>true</tt>'
-for Booleans, but the wording is clumsy.  I suggest replacing "A nonzero value"
-with the literal '<tt>true</tt>' (in appropriate font) in each case.
-</p>
-
-<p><i>[
-2009-07-24 Alisdair recommends NAD Editorial.
-]</i></p>
-
-
-<p><i>[
-2009-07-27 Pete adds:
-]</i></p>
-
-
-<blockquote><p>
-It's obviously editorial. There's no need for further discussion.
-</p></blockquote>
-
-<p><i>[
-2009-07-27 Howard sets to NAD Editorial.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.6.2 [bitset.members] p42-43:
-</p>
-
-<blockquote>
-<pre>
-bool operator==(const bitset&lt;N&gt;&amp; rhs) const;
-</pre>
-<blockquote><p>
--42- <i>Returns:</i> <del>A nonzero value</del> <ins><tt>true</tt></ins> if the value of each bit in
-<tt>*this</tt> equals the value of the corresponding bit in
-<tt>rhs</tt>.
-</p></blockquote>
-<pre>
-bool operator!=(const bitset&lt;N&gt;&amp; rhs) const;
-</pre>
-<blockquote><p>
--43- <i>Returns:</i> <del>A nonzero value</del> <ins><tt>true</tt></ins> if <tt>!(*this == rhs)</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1176"></a>1176. Make <tt>thread</tt> constructor non-variadic</h3>
-<p><b>Section:</b> 30.3.1.2 [thread.thread.constr] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-07-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The variadic <tt>thread</tt> constructor is causing controversy, e.g.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2901.pdf">N2901</a>.
-This issue has been created as a placeholder for this course of action.
-</p>
-
-<blockquote><pre>
-template &lt;class F<del>, class ...Args</del>&gt; thread(F&amp;&amp; f<del>, Args&amp;&amp;... args</del>);
-</pre></blockquote>
-
-<p>
-See <a href="lwg-defects.html#929">929</a> for wording which specifies an rvalue-ref signature but
-with "decay behavior", but using variadics.
-</p>
-
-<p><i>[
-2009-11-17 Moved to Tentatively NAD after 5 positive votes on c++std-lib. 
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The (tentative) concensus of the LWG is to keep the variadic thread constructor.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1179"></a>1179. Probably editorial in [structure.specifications]</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2009-07-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-While reviewing <a href="lwg-closed.html#971">971</a> I noted that 17.5.1.4 [structure.specifications]/7 says:
-</p>
-
-<blockquote><p>
--7- Error conditions specify conditions where a function may fail. The
-conditions are listed, together with a suitable explanation, as the <tt>enum
-class errc</tt> constants (19.5) that could be used as an argument to
-function <tt>make_error_condition</tt> (19.5.3.6).
-</p></blockquote>
-
-<p>
-This paragraph should mention <tt>make_error_code</tt> or the text "that
-could be used as an argument to function <tt>make_error_condition</tt>
-(19.5.3.6)" should be deleted.  I believe this is editorial.
-</p>
-
-<p><i>[
-2009-07-21 Chris adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I'm not convinced there's a problem there, because as far as the "Error
-conditions" clauses are concerned, make_error_condition() is used by a
-user to test for the condition, whereas make_error_code is not. For
-example:
-</p>
-
-<blockquote><pre>
-void foobar(error_code&amp; ec = throws());
-</pre></blockquote>
-
-<p>
- Error conditions:
-</p>
-<blockquote><p>
-permission_denied - Insufficient privilege to perform operation.
-</p></blockquote>
-
-<p>
-When a user writes:
-</p>
-
-<blockquote><pre>
-error_code ec;
-foobar(ec);
-if (ec == errc::permission_denied)
-   ...
-</pre></blockquote>
-
-<p>
-the implicit conversion <tt>errc-&gt;error_condition</tt> makes the if-test
-equivalent to:
-</p>
-
-<blockquote><pre>
-if (ec == make_error_condition(errc::permission_denied))
-</pre></blockquote>
-
-<p>
-On the other hand, if the user had written:
-</p>
-
-<blockquote><pre>
-if (ec == make_error_code(errc::permission_denied))
-</pre></blockquote>
-
-<p>
-the test is now checking for a specific error code. The test may
-evaluate to <tt>false</tt> even though <tt>foobar()</tt> failed due to the documented
-error condition "Insufficient privilege".
-</p>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-NAD Editorial.
-</p>
-<p>
-What the WP says right now is literally true: these codes can be used as
-an argument to <tt>make_error_condition</tt>. (It is also true that they can be
-used as an argument to <tt>make_error_code</tt>, which the WP doesn't say.) Maybe
-it would be clearer to just delete "that could be used as an argument to
-function <tt>make_error_condition</tt>", since that fact is already implied by
-other things that we say. We believe that this is editorial.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1186"></a>1186. Forward list could model a stack</h3>
-<p><b>Section:</b> 23.6.5 [stack] <b>Status:</b> <a href="lwg-active.html#NAD Concepts">NAD Concepts</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Concepts">NAD Concepts</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The library template <tt>forward_list</tt> could easily model the idea of a
-<tt>stack</tt>, where the operations work on the front of the list rather than
-the back.  However, the standard library <tt>stack</tt> adaptor cannot support
-this.
-</p>
-
-<p>
-It would be relatively easy to write a partial specialization for <tt>stack</tt>
-to support <tt>forward_list</tt>, but that opens the question of which header to
-place it in.  A much better solution would be to add a <tt>concept_map</tt> for
-the <tt>StackLikeContainer</tt> concept to the <tt>&lt;forward_list&gt;</tt> header and then
-everything just works, including a user's own further uses in a
-stack-like context.
-</p>
-
-<p>
-Therefore while I am submitting the issue now so that it is on record, I
-<em>strongly recommend</em> we resolve as "NAD Concepts" as any non-concepts
-based solution will be inferior to the final goal, and the feature is
-not so compelling it must be supported ahead of the concepts-based
-library.
-</p>
-
-<p><i>[
-2009-11-02 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD Concepts after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Any non-concepts based solution will be inferior to the final goal, and the
-feature is not so compelling it must be supported ahead of the concepts-based
-library.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1190"></a>1190. Setting the maximum load factor should return the previous value</h3>
-<p><b>Section:</b> 23.2.5 [unord.req], 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-08-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The unordered associative container requirements table specifies that
-<tt>a.set_max_load_factor(z)</tt> has return type <tt>void</tt>. However, there is a
-useful piece of information to return: the previous value. Users who
-don't need it can always ignore it.
-</p>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-The benefit seems minor, while breaking with the getter/setter idiom these overloads support.
-
-Move to Tentatively NAD.
-</p></blockquote>
-
-<p><i>[
-Moved to NAD at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In the unordered associative container requirements table, change:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>a.max_load_factor(z)</tt></td>
-<td><tt><del>void</del> <ins>float</ins></tt></td>
-<td>Pre: <tt>z</tt> shall be positive. Changes the container's maximum
-<del>load</del> load factor, using <tt>z</tt> as a hint.
-<ins>Returns: the previous value of
-<tt>a.max_load_factor()</tt>.</ins>
-</td>
-<td>
-constant
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Change the return type of <tt>set_max_load_factor</tt>
-in the class synopses in 23.5.4 [unord.map], 23.5.5 [unord.multimap],  23.5.6 [unord.set],
-and 23.5.7 [unord.multiset].
-</p>
-
-<p>
-If issue <a href="lwg-active.html#1188">1188</a> is also accepted, make the same changes for
-<tt>min_load_factor</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1200"></a>1200. "surprising" <tt>char_traits&lt;T&gt;::int_type</tt> requirements</h3>
-<p><b>Section:</b> 21.2.2 [char.traits.typedefs] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2009-09-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits.typedefs">issues</a> in [char.traits.typedefs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The footnote for <tt>int_type</tt> in 21.2.2 [char.traits.typedefs] says that
-</p>
-
-<blockquote><p>
-If <tt>eof()</tt> can be held in <tt>char_type</tt> then some iostreams implementations 
-may give surprising results.
-</p></blockquote>
-
-<p>
-This implies that <tt>int_type</tt> should be a superset of
-<tt>char_type</tt>. However, the requirements for <tt>char16_t</tt> and <tt>char32_t</tt> define
-<tt>int_type</tt> to be equal to <tt>int_least16_t</tt> and <tt>int_least32_t</tt> respectively.
-<tt>int_least16_t</tt> is likely to be the same size as <tt>char_16_t</tt>, which may lead
-to surprising behavior, even if <tt>eof()</tt> is not a valid UTF-16 code unit.
-The standard should not prescribe surprising behavior, especially
-without saying what it is (it's apparently not undefined, just
-surprising). The same applies for 32-bit types.
-</p>
-
-<p>
-I personally recommend that behavior be undefined if <tt>eof()</tt> is a member
-of <tt>char_type</tt>, and another type be chosen for <tt>int_type</tt> (my personal
-favorite has always been a <tt>struct {bool eof; char_type c;}</tt>).
-Alternatively, the exact results of such a situation should be defined,
-at least so far that I/O could be conducted on these types as long as
-the code units remain valid. Note that the argument that no one streams
-<tt>char16_t</tt> or <tt>char32_t</tt> is not really valid as it would be perfectly
-reasonable to use a <tt>basic_stringstream</tt> in conjunction with UTF character
-types.
-</p>
-
-<p><i>[
-2009-10-28 Ganesh provides two possible resolutions and expresses a preference
-for the second:
-]</i></p>
-
-
-<blockquote>
-<ol>
-<li>
-<p>
-Replace 21.2.3.2 [char.traits.specializations.char16_t] para 3 with:
-</p>
-
-<blockquote><p>
-The member <tt>eof()</tt> shall return <del>an implementation-defined
-constant that cannot appear as a valid UTF-16 code unit</del>
-<ins><tt>UINT_LEAST16_MAX</tt> [<i>Note:</i> this value is guaranteed to
-be a permanently reserved UCS-2 code position if <tt>UINT_LEAST16_MAX ==
-0xFFFF</tt> and it's not a UCS-2 code position otherwise &mdash; <i>end
-note</i>]</ins>.
-</p></blockquote>
-
-<p>
-Replace 21.2.3.3 [char.traits.specializations.char32_t] para 3 with:
-</p>
-
-<blockquote><p>
-The member <tt>eof()</tt> shall return <del>an implementation-defined constant that
-cannot appear as a Unicode code point</del>
-<ins>
-<tt>UINT_LEAST32_MAX</tt> [<i>Note:</i> this value is guaranteed to be a
-permanently reserved UCS-4 code position if <tt>UINT_LEAST32_MAX ==
-0xFFFFFFFF</tt> and it's not a UCS-4 code position otherwise &mdash; <i>end
-note</i>]</ins>.
-</p></blockquote>
-</li>
-<li>
-<p>
-In 21.2.3.2 [char.traits.specializations.char16_t], in the
-definition of <tt>char_traits&lt;char16_t&gt;</tt> replace the definition of nested
-typedef <tt>int_type</tt> with:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;&gt; struct char_traits&lt;char16_t&gt; {
-    typedef char16_t         char_type;
-    typedef <del>uint_least16_t</del> <ins>uint_fast16_t</ins> int_type;
-     ...
-</pre></blockquote>
-
-<p>
-Replace 21.2.3.2 [char.traits.specializations.char16_t] para 3 with:
-</p>
-
-<blockquote><p>
-The member <tt>eof()</tt> shall return <del>an implementation-defined
-constant that cannot appear as a valid UTF-16 code unit</del>
-<ins><tt>UINT_FAST16_MAX</tt> [<i>Note:</i> this value is guaranteed to
-be a permanently reserved UCS-2 code position if <tt>UINT_FAST16_MAX ==
-0xFFFF</tt> and it's not a UCS-2 code position otherwise &mdash; <i>end
-note</i>]</ins>.
-</p></blockquote>
-
-<p>
-In 21.2.3.3 [char.traits.specializations.char32_t], in the
-definition of <tt>char_traits&lt;char32_t&gt;</tt> replace the definition of nested
-typedef <tt>int_type</tt> with:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;&gt; struct char_traits&lt;char32_t&gt; {
-    typedef char32_t         char_type;
-    typedef <del>uint_least32_t</del> <ins>uint_fast32_t</ins> int_type;
-     ...
-</pre></blockquote>
-
-<p>
-Replace 21.2.3.3 [char.traits.specializations.char32_t] para 3 with:
-</p>
-
-<blockquote><p>
-The member <tt>eof()</tt> shall return <del>an implementation-defined constant that
-cannot appear as a Unicode code point</del>
-<ins>
-<tt>UINT_FAST32_MAX</tt> [<i>Note:</i> this value is guaranteed to be a
-permanently reserved UCS-4 code position if <tt>UINT_FAST32_MAX ==
-0xFFFFFFFF</tt> and it's not a UCS-4 code position otherwise &mdash; <i>end
-note</i>]</ins>.
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-This seems an overspecification, and it is not clear what problem is being solved - 
-these values can be used portably by using the named functions; there is no need 
-for the value itself to be portable.
-
-Move to Tentatively NAD.
-</p></blockquote>
-
-<p><i>[
-Moved to NAD at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1202"></a>1202. <tt>integral_constant</tt> needs a spring clean</h3>
-<p><b>Section:</b> 20.10.3 [meta.help] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.help">issues</a> in [meta.help].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification of <tt>integral_constant</tt> has been inherited
-essentially unchanged from TR1:
-</p>
-
-<blockquote><pre>
-template &lt;class T, T v&gt;
-struct integral_constant {
-  static const T value = v;
-  typedef T value_type;
-  typedef integral_constant&lt;T,v&gt; type;
-};
-</pre></blockquote>
-
-<p>
-In light of 0x language changes there are several things we might
-consider changing, notably the form of specification for value.
-</p>
-
-<p>
-The current form requires a static data member have storage allocated
-for it, where we could now implement without this using the new enum
-syntax:
-</p>
-
-<blockquote><pre>
-template &lt;class T, T v&gt;
-struct integral_constant {
-  <b>enum : T { value = v };</b>
-  typedef T value_type;
-  typedef integral_constant type;
-};
-</pre></blockquote>
-
-<p>
-The effective difference between these two implementation is:
-</p>
-
-<ol style="list-style-type:lower-roman">
-<li>
-No requirement to allocate storage for data member (which we hope but do
-not guarantee compilers strip today)
-</li>
-
-<li>
-You can no longer take the address of the constant as
-<tt>&amp;integral_constant&lt;T,v&gt;::value;</tt>
-</li>
-</ol>
-
-<p>
-Also note the editorial change to drop the explicit qualification of
-<tt>integral_constant</tt> in the <tt>typedef type</tt>.  This makes it quite clear we
-mean the current instantiation, and cannot be mistaken for a recursive
-metaprogram.
-</p>
-
-<p>
-Even if we don't mandate this implementation, it would be nice to give
-vendors freedom under QoI to choose their preferred representation.
-</p>
-
-<p>
-The other side of this issue is if we choose to retain the static
-constant form.  In that case we should go further and insist on
-<tt>constexpr</tt>, much like we did throughout <tt>numeric_limits</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class T, T v&gt;
-struct integral_constant {
-  static <b>constexpr</b> T value = v;
-  typedef T value_type;
-  typedef integral_constant type;
-};
-</pre></blockquote>
-
-<p>
-[Footnote] It turns out <tt>constexpr</tt> is part of the Tentatively Ready
-resolution for <a href="lwg-defects.html#1019">1019</a>.  I don't want to interfere with that issue, but
-would like a new issue to consider if the fixed-base enum implementation
-should be allowed.
-</p>
-
-<p><i>[
-2009-09-05 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think that the suggested resolution is incomplete and
-may have some possible unwanted side-effects. To understand
-why, note that <tt>integral_constant</tt> is <em>completely</em> specified
-by code in 20.10.3 [meta.help]. While this is usually considered
-as a good thing, let me give a possible user-defined
-specialization that would break given the suggested changes:
-</p>
-
-<blockquote><pre>
-enum NodeColor { Red, Black };
-
-std::integral_constant&lt;NodeColor, Red&gt; red;
-</pre></blockquote>
-
-<p>
-The reason why that breaks is due to the fact that
-current core language rules does only allow integral
-types as enum-bases, see 7.2 [dcl.enum]/2.
-</p>
-
-<p>
-So, I think that we cannot leave the implementation the
-freedom to decide which way they would like to provide
-the implementation, because that is easily user-visible
-(I don't speak of addresses, but of instantiation errors),
-therefore if applied, this should be either specified or
-wording must be added that gives a note about this
-freedom of implementation.
-</p>
-
-<p>
-Another possible disadvantage seems to me that user-expectations
-are easy to disappoint if they see a failure
-of the test
-</p>
-
-<blockquote><pre>
-assert(typeid(std::integral_constant&lt;int, 0&gt;::value) == typeid(int));
-</pre></blockquote>
-
-<p>
-or of
-</p>
-
-<blockquote><pre>
-static_assert(std::is_same&lt;decltype(std::integral_constant&lt;int, 0&gt;::value), const int&gt;::value, "Bad library");
-</pre></blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-01-14 Moved to Tentatively NAD after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-We think that the suggested resolution is incomplete and may have some possible
-unwanted side-effects.  (see Daniel's 2009-09-05 comment for details).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1219"></a>1219. unique_lock::lock and resource_deadlock_would_occur</h3>
-<p><b>Section:</b> 30.4.2.2.2 [thread.lock.unique.locking] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.lock.unique.locking">issues</a> in [thread.lock.unique.locking].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1159">1159</a></p>
-<p><b>Discussion:</b></p>
-
-
-
-<p>
-<tt>unique_lock::lock</tt> and friends raise
-"<tt>resource_deadlock_would_occur</tt> -- if the current thread already
-owns the mutex (i.e., on entry, <tt>owns</tt> is <tt>true</tt>)."  1)
-The current thread owning a mutex is not the same as any particular
-<tt>unique_lock::owns</tt> being <tt>true</tt>. 2) There's no need to
-raise this exception for a <tt>recursive_mutex</tt> if <tt>owns</tt> is
-<tt>false</tt>. 3) If <tt>owns</tt> is true, we need to raise some
-exception or the unique_lock will lose track of whether to unlock itself
-on destruction, but "deadlock" isn't it. For (3), s/bool owns/int
-ownership_level/ would fix it.
-</p>
-
-<p><i>[
-2009-11-11 Alisdair notes that this issue is very closely related to <a href="lwg-defects.html#1159">1159</a>,
-if not a dup.
-]</i></p>
-
-
-<p><i>[
-2009-11-14 Moved to Tentatively Dup after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1223"></a>1223. condition_variable_any lock matching?</h3>
-<p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For <tt>condition_variable_any</tt>, must all lock arguments to concurrent wait calls
-"match" in some way, similar to the requirement in
-30.5.1 [thread.condition.condvar] that <tt>lock.mutex()</tt> returns the same
-value for each of the lock arguments supplied by all concurrently
-waiting threads (via <tt>wait</tt> or <tt>timed_wait</tt>)?
-</p>
-
-<p><i>[
-2010-02-12 Moved to Tentatively NAD after 5 positive votes on c++std-lib. 
-Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The rationale is that it doesn't matter, and you can't check: the lock types may
-be different, or the same and user-defined, so the implementation must provide
-internal synchronization anyway.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1224"></a>1224. condition_variable_any support for recursive mutexes?</h3>
-<p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For <tt>condition_variable_any</tt>, are recursive mutexes allowed? (I think "no")
-</p>
-
-<p><i>[
-2009-11-17 Moved to Tentatively NAD after 5 positive votes on c++std-lib. 
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-<tt>condition_variable_any::wait</tt> accepts any type of mutex. It calls
-<tt>unlock</tt> precisely once on entry and <tt>lock</tt> precisely once on
-exit. It is up to the user to ensure that this provides the required
-synchronization. Use of a recursive mutex is safe if either its lock count is 1,
-so after the single unlock it can be acquired by another thread, or another
-mechanism is used to synchronize the data.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1228"></a>1228. User-specialized nothrow type traits</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to p1 20.10.2 [meta.type.synop]:
-</p>
-
-<blockquote><p>
-The behavior of a program that adds specializations for any of the class
-templates defined in this subclause is undefined unless otherwise
-specified.
-</p></blockquote>
-
-<p>
-I believe we should 'otherwise specify' for the nothrow traits, are
-these are exactly the use cases where the end user actually has more
-information than the compiler.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Open.  Definitely need to give the users the ability to ensure
-that the traits give the right answers. Unsure we want to give them the
-ability to say this in more than one way. Believes the noexcept proposal
-already gives this.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-We believe the solution offered by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html">N3050</a>
-is superior.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following comment:
-</p>
-
-<blockquote><p>
-user specialization permitted to derive from <tt>std::true_type</tt> when the
-operation is known not to throw.
-</p></blockquote>
-
-<p>
-to the following traits in 20.10.4.3 [meta.unary.prop] Table 43 Type
-property predicates.
-</p>
-
-<p><i>[
-This may require a new Comments column
-]</i></p>
-
-
-<blockquote><pre>
-has_nothrow_default_constructor
-has_nothrow_copy_constructor
-has_nothrow_assign
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1230"></a>1230. <tt>mem_fn</tt> and variadic templates</h3>
-<p><b>Section:</b> 20.9.11 [func.memfn] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.memfn">issues</a> in [func.memfn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#920">920</a></p>
-<p><b>Discussion:</b></p>
-
-
-
-<p>
-Since we have removed the entry in B [implimits] for the
-library-specific limit for number of arguments passed to
-<tt>function</tt>/<tt>tuple</tt>/etc. I believe we need to update the
-spec for <tt>mem_fn</tt> to reflect this.
-</p>
-
-<p>
-The "<i>Remarks:</i> Implementations may implement <tt>mem_fn</tt> as a set of
-overloaded function templates." no longer holds, as we cannot create an
-arbitrary number of such overloads.  I believe we should strike the
-remark and add a second signature:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class T, typename ... ArgTypes&gt;
-  unspecified mem_fn(R (T::*pm)(ArgTypes...));
-</pre></blockquote>
-
-<p>
-I believe we need two signatures as pointer-to-data-member and
-pointer-to-member-function-taking-no-args appear to use subtly different
-syntax.
-</p>
-
-<p><i>[
-<a href="lwg-defects.html#920">920</a> as a similar proposed resolution.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.9 [function.objects] and 20.9.11 [func.memfn]:
-</p>
-<blockquote><pre>
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::* pm)
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...));</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile);</ins>
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...)&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile&amp;);</ins>
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...)&amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const&amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile&amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile&amp;&amp;);</ins>
-</pre></blockquote>
-
-<p>
-Strike 20.9.11 [func.memfn], p5:
-</p>
-
-<blockquote><p>
-<del><i>Remarks:</i> Implementations may implement <tt>mem_fn</tt> as a set
-of overloaded function templates.</del>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1232"></a>1232. Still <tt>swap</tt>'s with rvalue-references</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current library contains still rvalue reference-swaps that seem to be
-overlooked in the process of switching back to lvalue-ref swaps.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Editor accepts as NAD Editorial.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 20.3 [pairs]/1 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T1, class T2&gt;
-struct pair {
-  ...
-  void swap(pair&amp;<del>&amp;</del> p);
-};
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.3 [pairs] before p. 17 as indicated:
-</p>
-
-<blockquote><pre>
-void swap(pair&amp;<del>&amp;</del> p);
-</pre></blockquote>
-
-</li>
-
-<li>
-
-<p>
-Change 20.3 [pairs] before p. 21 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class T1, class T2&gt; void swap(pair&lt;T1, T2&gt;&amp; x, pair&lt;T1, T2&gt;&amp; y);
-<del>template&lt;class T1, class T2&gt; void swap(pair&lt;T1, T2&gt;&amp;&amp; x, pair&lt;T1, T2&gt;&amp; y);</del>
-<del>template&lt;class T1, class T2&gt; void swap(pair&lt;T1, T2&gt;&amp; x, pair&lt;T1, T2&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.4.1 [tuple.general]/2, header <tt>&lt;tuple&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-// 20.5.2.9, specialized algorithms:
-template &lt;class... Types&gt;
-void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp; y);
-<del>template &lt;class... Types&gt;
-void swap(tuple&lt;Types...&gt;&amp;&amp; x, tuple&lt;Types...&gt;&amp; y);
-template &lt;class... Types&gt;
-void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.4.2 [tuple.tuple] as indicated:
-</p>
-
-<blockquote><pre>
-// 20.5.2.3, tuple swap
-void swap(tuple&amp;<del>&amp;</del>)
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.4.2.3 [tuple.swap] before 1 as indicated:
-</p>
-
-<blockquote><pre>
-void swap(tuple&amp;<del>&amp;</del> rhs);
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.9 [function.objects]/2, header <tt>&lt;functional&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-<del>template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&amp;&amp;);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.9.12.2 [func.wrap.func], as indicated:
-</p>
-
-<blockquote><pre>
-// 20.7.15.2.2, function modifiers:
-void swap(function&amp;<del>&amp;</del>);
-template&lt;class F, class A&gt; void assign(F, const A&amp;);
-
-[..]
-
-// 20.7.15.2.7, specialized algorithms:
-template &lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-<del>template &lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-template &lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;&amp;);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.9.12.2.7 [func.wrap.func.alg] before 1 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp; f1, function&lt;R(ArgTypes...)&gt;&amp; f2);
-<del>template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp;&amp; f1, function&lt;R(ArgTypes...)&gt;&amp; f2);
-template&lt;class R, class... ArgTypes&gt;
-void swap(function&lt;R(ArgTypes...)&gt;&amp; f1, function&lt;R(ArgTypes...)&gt;&amp;&amp; f2);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.2.2 [util.smartptr.shared]/1 as indicated:
-</p>
-
-<blockquote><pre>
-// 20.8.12.2.4, modifiers:
-void swap(shared_ptr&amp;<del>&amp;</del> r);
-
-[..]
-
-// 20.8.12.2.9, shared_ptr specialized algorithms:
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp; b);
-<del>template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp;&amp; a, shared_ptr&lt;T&gt;&amp; b);
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp;&amp; b);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 21.3 [string.classes]/1, header <tt>&lt;string&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-// 21.4.8.8: swap
-template&lt;class charT, class traits, class Allocator&gt;
-void swap(basic_string&lt;charT,traits,Allocator&gt;&amp; lhs, basic_string&lt;charT,traits,Allocator&gt;&amp; rhs);
-<del>template&lt;class charT, class traits, class Allocator&gt;
-void swap(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs, basic_string&lt;charT,traits,Allocator&gt;&amp; rhs);
-template&lt;class charT, class traits, class Allocator&gt;
-void swap(basic_string&lt;charT,traits,Allocator&gt;&amp; lhs, basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3 [sequences]/1, header <tt>&lt;deque&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp; x, deque&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp;&amp; x, deque&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp; x, deque&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3 [sequences]/1, header <tt>&lt;list&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp; x, list&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp;&amp; x, list&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp; x, list&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3 [sequences]/1, header <tt>&lt;queue&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(queue&lt;T, Container&gt;&amp; x, queue&lt;T, Container&gt;&amp; y);
-<del>template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp;&amp; x, queue&lt;T, Container&gt;&amp; y);
-template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp; x, queue&lt;T, Container&gt;&amp;&amp; y);</del>
-
-template &lt;class T, class Container = vector&lt;T&gt;, class Compare = less&lt;typename Container::value_type&gt; &gt;
-class priority_queue;
-template &lt;class T, class Container, class Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp; y);
-<del>template &lt;class T, class Container, class Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp; y);
-template &lt;class T, class Container, class Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3 [sequences]/1, header <tt>&lt;stack&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container&gt;
-void swap(stack&lt;T, Container&gt;&amp; x, stack&lt;T, Container&gt;&amp; y);
-<del>template &lt;class T, class Container&gt;
-void swap(stack&lt;T, Container&gt;&amp;&amp; x, stack&lt;T, Container&gt;&amp; y);
-template &lt;class T, class Container&gt;
-void swap(stack&lt;T, Container&gt;&amp; x, stack&lt;T, Container&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3 [sequences]/1, header <tt>&lt;vector&gt;</tt> synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp; x, vector&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp;&amp; x, vector&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp; x, vector&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.3 [deque]/2 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase(const_iterator position);
-iterator erase(const_iterator first, const_iterator last);
-void swap(deque&lt;T,Allocator&gt;&amp;<del>&amp;</del>);
-void clear();
-
-[..]
-
-// specialized algorithms:
-template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp; x, deque&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp;&amp; x, deque&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp; x, deque&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.3.5 [deque.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp; x, deque&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp;&amp; x, deque&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(deque&lt;T,Allocator&gt;&amp; x, deque&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.4 [forwardlist]/2 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase_after(const_iterator position);
-iterator erase_after(const_iterator position, iterator last);
-void swap(forward_list&lt;T,Allocator&gt;&amp;<del>&amp;</del>);
-
-[..]
-
-// 23.3.3.6 specialized algorithms:
-template &lt;class T, class Allocator&gt;
-void swap(forward_list&lt;T,Allocator&gt;&amp; x, forward_list&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(forward_list&lt;T,Allocator&gt;&amp;&amp; x, forward_list&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(forward_list&lt;T,Allocator&gt;&amp; x, forward_list&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.4.7 [forwardlist.spec] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(forward_list&lt;T,Allocator&gt;&amp; x, forward_list&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(forward_list&lt;T,Allocator&gt;&amp;&amp; x, forward_list&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(forward_list&lt;T,Allocator&gt;&amp; x, forward_list&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.5 [list]/2 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase(const_iterator position);
-iterator erase(const_iterator position, const_iterator last);
-void swap(list&lt;T,Allocator&gt;&amp;<del>&amp;</del>);
-void clear();
-
-[..]
-
-// specialized algorithms:
-template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp; x, list&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp;&amp; x, list&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp; x, list&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.5.6 [list.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp; x, list&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp;&amp; x, list&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(list&lt;T,Allocator&gt;&amp; x, list&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.6.3.1 [queue.defn] as indicated:
-</p>
-
-<blockquote><pre>
-void swap(queue&amp;<del>&amp;</del> q) { c.swap(q.c); }
-
-[..]
-
-template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp; x, queue&lt;T, Container&gt;&amp; y);
-<del>template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp;&amp; x, queue&lt;T, Container&gt;&amp; y);
-template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp; x, queue&lt;T, Container&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.6.3.5 [queue.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp; x, queue&lt;T, Container&gt;&amp; y);
-<del>template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp;&amp; x, queue&lt;T, Container&gt;&amp; y);
-template &lt;class T, class Container&gt;
-void swap(queue&lt;T, Container&gt;&amp; x, queue&lt;T, Container&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.6.4 [priority.queue]/1 as indicated:
-</p>
-
-<blockquote><pre>
-void swap(priority_queue&amp;<del>&amp;</del>);
-
-// no equality is provided
-template &lt;class T, class Container, class Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp; y);
-<del>template &lt;class T, class Container, class Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp; y);
-template &lt;class T, class Container, class Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.6.4.4 [priqueue.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container, Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp; y);
-<del>template &lt;class T, class Container, Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp; y);
-template &lt;class T, class Container, Compare&gt;
-void swap(priority_queue&lt;T, Container, Compare&gt;&amp; x, priority_queue&lt;T, Container, Compare&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.6.5.2 [stack.defn] as indicated:
-</p>
-
-<blockquote><pre>
-void swap(stack&amp;<del>&amp;</del> s) { c.swap(s.c); }
-
-[..]
-
-template &lt;class T, class Allocator&gt;
-void swap(stack&lt;T,Allocator&gt;&amp; x, stack&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(stack&lt;T,Allocator&gt;&amp;&amp; x, stack&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(stack&lt;T,Allocator&gt;&amp; x, stack&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-
-</li>
-
-<li>
-<p>
-Change 23.6.5.6 [stack.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container&gt;
-void swap(stack&lt;T, Container&gt;&amp; x, stack&lt;T, Container&gt;&amp; y);
-<del>template &lt;class T, class Container&gt;
-void swap(stack&lt;T, Container&gt;&amp;&amp; x, stack&lt;T, Container&gt;&amp; y);
-template &lt;class T, class Container&gt;
-void swap(stack&lt;T, Container&gt;&amp; x, stack&lt;T, Container&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.6 [vector]/2 as indicated:
-</p>
-
-<blockquote><pre>
-void swap(vector&lt;T,Allocator&gt;&amp;<del>&amp;</del>);
-void clear();
-
-[..]
-
-// specialized algorithms:
-template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp; x, vector&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp;&amp; x, vector&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp; x, vector&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.6.3 [vector.capacity] before p. 8 as indicated:
-</p>
-
-<blockquote><pre>
-void swap(vector&lt;T,Allocator&gt;&amp;<del>&amp;</del> x);
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.6.6 [vector.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp; x, vector&lt;T,Allocator&gt;&amp; y);
-<del>template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp;&amp; x, vector&lt;T,Allocator&gt;&amp; y);
-template &lt;class T, class Allocator&gt;
-void swap(vector&lt;T,Allocator&gt;&amp; x, vector&lt;T,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.3.7 [vector.bool]/1 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase(const_iterator first, const_iterator last);
-void swap(vector&lt;bool,Allocator&gt;&amp;<del>&amp;</del>);
-static void swap(reference x, reference y);
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4 [associative]/1, header <tt>&lt;map&gt;</tt> synopsis as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&gt;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&amp;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-
-[..]
-
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&gt;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&amp;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4 [associative]/1, header <tt>&lt;set&gt;</tt> synopsis as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(set&lt;Key,Compare,Allocator&gt;&amp; x, set&lt;Key,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(set&lt;Key,T,Compare,Allocator&amp;&amp; x, set&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(set&lt;Key,T,Compare,Allocator&amp; x, set&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-
-[..]
-
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&gt;&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,T,Compare,Allocator&amp;&amp; x, multiset&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,T,Compare,Allocator&amp; x, multiset&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.4 [map]/2 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase(const_iterator first, const_iterator last);
-void swap(map&lt;Key,T,Compare,Allocator&gt;&amp;<del>&amp;</del>);
-void clear();
-
-[..]
-
-// specialized algorithms:
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&gt;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&amp;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.4.5 [map.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&gt;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&gt;&amp;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(map&lt;Key,T,Compare,Allocator&gt;&amp; x, map&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.5 [multimap]/2 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase(const_iterator first, const_iterator last);
-void swap(multimap&lt;Key,T,Compare,Allocator&gt;&amp;<del>&amp;</del>);
-void clear();
-
-[..]
-
-// specialized algorithms:
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&gt;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&amp;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.5.4 [multimap.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&gt;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&gt;&amp;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class T, class Compare, class Allocator&gt;
-void swap(multimap&lt;Key,T,Compare,Allocator&gt;&amp; x, multimap&lt;Key,T,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.6 [set]/2 and 23.4.6.3 [set.special] as indicated: (twice!)
-</p>
-
-<blockquote><pre>
-// specialized algorithms:
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(set&lt;Key,Compare,Allocator&gt;&amp; x, set&lt;Key,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class Compare, class Allocator&gt;
-void swap(set&lt;Key,Compare,Allocator&amp;&amp; x, set&lt;Key,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(set&lt;Key,Compare,Allocator&amp; x, set&lt;Key,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.7 [multiset]/2 as indicated:
-</p>
-
-<blockquote><pre>
-iterator erase(const_iterator first, const_iterator last);
-void swap(multiset&lt;Key,Compare,Allocator&gt;&amp;<del>&amp;</del>);
-void clear();
-
-[..]
-
-// specialized algorithms:
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&gt;&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&amp;&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 23.4.7.3 [multiset.special] as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&gt;&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp; y);
-<del>template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&gt;&amp;&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp; y);
-template &lt;class Key, class Compare, class Allocator&gt;
-void swap(multiset&lt;Key,Compare,Allocator&gt;&amp; x, multiset&lt;Key,Compare,Allocator&gt;&amp;&amp; y);</del>
-</pre></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1233"></a>1233. Missing <tt>unique_ptr</tt> signatures in synopsis</h3>
-<p><b>Section:</b> 20.7 [memory] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#memory">issues</a> in [memory].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Related to <a href="lwg-defects.html#296">296</a>.  Some <tt>unique_ptr</tt> signatures are missing
-from the synopsis in 20.7 [memory].
-</p>
-
-<p><i>[
-2009-11-04 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD Editorial.  The editor has adopted the fix.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add in 20.7 [memory], Header <tt>&lt;memory&gt;</tt> synopsis
-missing declarations as shown below:
-</p>
-
-<blockquote><pre>
-// 20.8.11 Class unique_ptr:
-template &lt;class X&gt; class default_delete;
-<ins>template&lt;class T&gt; struct default_delete&lt;T[]&gt;;</ins>
-template &lt;class X, class D = default_delete&lt;T&gt;&gt; class unique_ptr;
-<ins>template&lt;class T, class D&gt; class unique_ptr&lt;T[], D&gt;;</ins>
-
-<ins>template&lt;class T, class D&gt; void swap(unique_ptr&lt;T, D&gt;&amp; x, unique_ptr&lt;T, D&gt;&amp; y);</ins>
-
-<ins>template&lt;class T1, class D1, class T2, class D2&gt;
-bool operator==(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);</ins>
-<ins>template&lt;class T1, class D1, class T2, class D2&gt;
-bool operator!=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);</ins>
-<ins>template&lt;class T1, class D1, class T2, class D2&gt;
-bool operator&lt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);</ins>
-<ins>template&lt;class T1, class D1, class T2, class D2&gt;
-bool operator&lt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);</ins>
-<ins>template&lt;class T1, class D1, class T2, class D2&gt;
-bool operator&gt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);</ins>
-<ins>template&lt;class T1, class D1, class T2, class D2&gt;
-bool operator&gt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);</ins>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1236"></a>1236. reserved identifiers in programs not using the library</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2009-10-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I wasn't sure whether to consider this a library or a language issue,
-because the issue is I think it's incorrectly categorized as being part
-of the library, so I thought I'd send a message to both of you and let
-you sort it out.
-</p>
-
-<p>
-Most reserved identifiers are treated as unilaterally available to the
-implementation, such as to implement language extensions, or provide
-macros documenting its functionality. However, the requirements for
-reserved identifers are in 17.6.4.3 [reserved.names], which are a
-subsection of 17.6.4 [constraints]. 17.6.4.1 [constraints.overview] appears only to apply to "C++ programs
-that use the facilities of the C++ standard library", meaning that, in
-theory, all implementations are erroneous in having any non-standard
-identifiers predefined for programs that do not, at some point, include
-a standard library header.
-</p>
-
-<p>
-Furthermore, it's unclear whether the use of certain identifiers is UB
-or results in an ill-formed program. In particular, 17.6.4.3.1 [macro.names] uses a "shall not", where  [global.names] says that names are "reserved to the
-implementation". 17.6.4.3 [reserved.names] seems only to cover the
-instance of a name being described as "reserved", so are implementations
-required to diagnose a program that performs, as an example, "<tt>#undef
-get</tt>"?
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to NAD. There may in theory be multiple interpretations possible,
-but there's no evidence that this causes any genuine problems or
-uncertainty about what implementations are allowed to do. We do not
-believe this rises to the level of a defect.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1239"></a>1239. Defect report</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-10-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 43 defines a number of traits that yield true for arrays of class
-types with the trait's property, but not arrays of other types with that
-property.  For example, <tt>has_trivial_default_constructor</tt>:
-</p>
-
-<blockquote><p>
-<tt>T</tt> is a trivial type (3.9) or a class type with a trivial default
-constructor (12.1) or an array of such a class type.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-An array of a trivial type is a trivial type.
-</p>
-<p>
-Mark as Tentatively NAD Editorial. The wording is OK as is,
-since an array of a trivial type is a trivial type, but the wording as
-proposed might be clearer.
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The wording is OK as is, since an array of a trivial type is a trivial type.
-Project editor may wish to accept the suggested wording as editorial.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change all the traits in question following this pattern:
-</p>
-
-<blockquote><p>
-<tt>T</tt> is a trivial type (3.9) or a class type with a trivial default
- constructor (12.1)<ins>,</ins> or an array of such a <del>class</del> type.
-</p></blockquote>
-
-<p>
-i.e., add a comma and delete a "class."
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1243"></a>1243. Missing <tt>operator+= (initializer_list&lt;T&gt;)</tt> for <tt>valarray</tt></h3>
-<p><b>Section:</b> 26.6.2.7 [valarray.cassign] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cassign">issues</a> in [valarray.cassign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 64</b></p>
-
-<p>
-During the additions of <tt>initializer_list</tt> overloads
-<tt>basic_string</tt> added:
-</p>
-
-<blockquote><pre>
-basic_string&amp; operator+=(initializer_list&lt;charT&gt;);
-</pre></blockquote>
-
-<p>
-but
-</p>
-
-<blockquote><pre>
-valarray&lt;T&gt;&amp; operator+= (initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-<p>
-was not defined.
-</p>
-
-<p><i>[
-Daniel adds on opening:
-]</i></p>
-
-
-<blockquote><p>
-Recommend NAD. The <tt>operator+=</tt> overload of <tt>basic_string</tt>
-behaves as-if calling <tt>append</tt>, which is completely different in
-meaning as the existing <tt>operator+=</tt> overloads in
-<tt>valarray</tt> which just sum the value or values to the existing
-elements. The suggestion to add a corresponding append function to
-<tt>valarray</tt> was not considered as appropriate and the request was
-withdrawn (c++std-lib-24968).
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as NAD.  Request has been withdrawn by NB.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 26.6.2.7 [valarray.cassign]:
-</p>
-
-<blockquote><pre>
-valarray&lt;T&gt;&amp; operator+= (initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1246"></a>1246. <tt>vector::resize()</tt> missing efficiency guarantee</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2009-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If <tt>v</tt> is a <tt>vector</tt>, I think repeated calls to
-<tt>v.resize( v.size() + 1 )</tt> should be amortized O(1), but it's not
-clear that's true from the text of the standard:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz);
-</pre>
-<blockquote><p>
-<i>Effects:</i> If <tt>sz &lt; size()</tt>, equivalent to <tt>erase(begin() + sz, end());</tt>. If
-<tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> default constructed elements to the
-sequence.
-</p></blockquote>
-</blockquote>
-
-<p>
-Seems to me if we used <tt>push_back</tt> instead of appends, we might be giving
-the guarantee I'd like.  Thoughts?
-</p>
-
-<p><i>[
-2009-11-10 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD after 5 positive votes on c++std-lib.  Rationale added
-below.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.3.6.3 [vector.capacity]/10, change
-</p>
-
-<blockquote><pre>
-void resize(size_type sz);
-</pre>
-<blockquote><p>
-<i>Effects:</i> If <tt>sz &lt; size()</tt>, equivalent to <tt>erase(begin() + sz, end());</tt>. If
-<tt>size() &lt; sz</tt>, <del>appends <tt>sz - size()</tt> default constructed elements to the
-sequence</del>
-<ins>equivalent to <tt>sz - size()</tt> consecutive evaluations of <tt>push_back(T())</tt></ins>.
-</p></blockquote>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The description in terms of <tt>push_back</tt> led some to believe that
-one could expect the exact same growth pattern from both <tt>resize</tt> and
-<tt>push_back</tt> (e.g.) which could lead to sub-optimal implementations.
-Additionally, 23.3.6 [vector], p1 includes a statement that this container
-"supports (amortized) constant time insert and erase operations at the end;",
-therefore addressing the concern of this issue.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1251"></a>1251. move constructing <tt>basic_stringbuf</tt></h3>
-<p><b>Section:</b> 27.8.2.1 [stringbuf.cons] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2009-10-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.cons">issues</a> in [stringbuf.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I just came across issue <a href="lwg-defects.html#1204">1204</a> -- Global permission to move, which
-seems to address the concern raised by the example in c++std-lib-25030.
-</p>
-<p>
-IIUC, the example violates the permission to assume that arguments
-bound to rvalue references are unnamed temporaries granted to
-implementations by the resolution of issue <a href="lwg-defects.html#1204">1204</a> - Global permission
-to move.
-</p>
-
-<p>
-I.e., the <tt>ostringstream(ostringstream &amp;&amp;rhs)</tt> ctor can leave the <tt>rhs</tt>
-pointers pointing to the newly constructed object's buffer just as
-long as the dtor doesn't change or invalidate the buffer. The caller
-may not make any assumptions about rhs after the move beyond it being
-safe to destroy or reassign.
-</p>
-
-<p>
-So unless I misunderstood something, I still think the <tt>basic_stringbuf</tt>
-move ctor is overspecified. Specifically, I think the third sentence
-in the Effects clause and the last 6 bullets in the Postconditions
-clause can, and IMO should, be stricken.
-</p>
-
-<p><i>[
-2010-01-31 Moved to Tentatively NAD after 5 positive votes on c++std-lib.
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The sense of 1251 appears to be that the <tt>basic_stringbuf</tt> move
-constructor offers more guarantees than the minimum.  This is true, and quite
-correct.  The additional words guarantee that the internal buffer has genuinely
-transferred from one object to another, and further operations on the original
-will not affect the buffer of the newly created object.  This is a very
-important guarantee, much as we see that a moved-from <tt>unique_ptr</tt> is
-guaranteed to be empty.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike from 27.8.2.1 [stringbuf.cons]:
-</p>
-
-<blockquote><pre>
-basic_stringbuf(basic_stringbuf&amp;&amp; rhs);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Move constructs from the rvalue <tt>rhs</tt>. It is
-implementation-defined whether the sequence pointers in <tt>*this</tt>
-(<tt>eback()</tt>, <tt>gptr()</tt>, <tt>egptr()</tt>, <tt>pbase()</tt>,
-<tt>pptr()</tt>, <tt>epptr()</tt>) obtain the values which <tt>rhs</tt>
-had. <del>Whether they do or not, <tt>*this</tt> and <tt>rhs</tt> reference
-separate buffers (if any at all) after the construction.</del> The openmode,
-locale and any other state of <tt>rhs</tt> is also copied.
-</p>
-
-<p>
-<i>Postconditions:</i> Let <tt>rhs_p</tt> refer to the state of
-<tt>rhs</tt> just prior to this construction and let <tt>rhs_a</tt>
-referto the state of <tt>rhs</tt> just after this construction.
-</p>
-<ul>
-<li>
-<tt>str() == rhs_p.str()</tt>
-</li>
-<li>
-<tt>gptr() - eback() == rhs_p.gptr() - rhs_p.eback()</tt>
-</li>
-<li>
-<tt>egptr() - eback() == rhs_p.egptr() - rhs_p.eback()</tt>
-</li>
-<li>
-<tt>pptr() - pbase() == rhs_p.pptr() - rhs_p.pbase()</tt>
-</li>
-<li>
-<tt>epptr() - pbase() == rhs_p.epptr() - rhs_p.pbase()</tt>
-</li>
-<li><del>
-if <tt>(eback()) eback() != rhs_a.eback()</tt>
-</del></li>
-<li><del>
-if <tt>(gptr()) gptr() != rhs_a.gptr()</tt>
-</del></li>
-<li><del>
-if <tt>(egptr()) egptr() != rhs_a.egptr()</tt>
-</del></li>
-<li><del>
-if <tt>(pbase()) pbase() != rhs_a.pbase()</tt>
-</del></li>
-<li><del>
-if <tt>(pptr()) pptr() != rhs_a.pptr()</tt>
-</del></li>
-<li><del>
-if <tt>(epptr()) epptr() != rhs_a.epptr()</tt>
-</del></li>
-</ul>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1259"></a>1259. Should initializer-list constructors move elements?</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2009-11-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to 23.2.3 [sequence.reqmts], <tt>X(il)</tt> is
-equivalent to <tt>X(il.begin(), il.end())</tt>. Should it instead be
-equivalent to <tt>X(move_iterator(il.begin()),
-move_iterator(il.end()))</tt> so that needless copies are not made? This
-doesn't seem ideal either - it may make more sense to provide two
-overloads for the constructor, one for move and one for copy.
-</p>
-
-<p><i>[
-2009-11-10 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I've moved this issue to Tentatively NAD after 5 positive votes on c++std-lib,
-and added a rationale below.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-There is no consensus at this time within EWG or CWG to make the
-required language changes.  Therefore this is not something that the LWG
-can even consider.  Should such language changes be made for a future
-standard, no doubt there would need to be an accompanying library impact
-survey.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1263"></a>1263. missing <tt>swap</tt> overloads for <tt>regex</tt></h3>
-<p><b>Section:</b> 28.4 [re.syn] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-11-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.syn">issues</a> in [re.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses: UK 314</b></p>
-
-<p>
-In Message c++std-lib-25529, Alisdair writes:
-</p>
-
-<blockquote>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3009.html#UK314">UK comment 314</a>
-requests rvalue swap overloads in a couple of places they
-were missed.
-</p>
-
-<p>
-We have in general reverted to the single swap signature taking lvalue
-references, which could be seen as the alternative solution to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3009.html#UK314">UK 314</a>,
-bringing consistency to the standard &lt;g&gt;
-</p>
-
-<p>
-Either way, I no longer expect to see any work to resolve this comment -
-the work is complete and it should be either marked Rejected, or
-Accepted with Modifications (namely, removing all other rvalue swaps!)
-</p>
-</blockquote>
-
-<p><i>[
-Moved to Tentatively NAD after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-We have in general reverted to the single swap signature taking
-lvalue references, which could be seen as the alternative solution to
-UK 314, bringing consistency to the standard.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1265"></a>1265. <tt>longjmp</tt> and destructors</h3>
-<p><b>Section:</b> 18.10 [support.runtime] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2009-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.runtime">active issues</a> in [support.runtime].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.runtime">issues</a> in [support.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-18.10 [support.runtime]/4 says that <tt>longjmp</tt> is undefined if
-unwinding by the mechanism used by catch and throw would invoke any nontrivial
-destructors. However, the text as written is rather vague, in particular when
-dealing with <tt>catch(...)</tt>:
-</p>
-
-<blockquote><pre>
-void foo() {
-  jump_buf buf;
-  non_trivial_dtor n1; // 1
-  if (!setjmp(buf)) {
-    non_trivial_dtor n2; // 2
-    try {
-      longjmp(buf, 1);
-    } catch (...) {
-    }
-  }
-}
-</pre></blockquote>
-
-<p>
-My interpretation of the meaning of 18.10 [support.runtime]/4 is that
-declaration 2, but not 1, would cause the <tt>longjmp</tt> to be undefined
-behavior. However,  it's not entirely clear from the text. Arguably, replacing
-the <tt>setjmp</tt> and <tt>longjmp</tt> with <tt>catch</tt> would still cause
-the destructor for <tt>n1</tt> to be called after the unwinding, which would
-lead to undefined behavior. This is clearly not an intended consequence of the
-wording. However, it is probably still UB, as <tt>n1</tt> now has
-"indeterminate" value, and running its destructor on <tt>foo</tt>'s exit will
-cause Bad Things.
-</p>
-
-<p>
-Declarations 2 has a more interesting issue. The <tt>catch(...)</tt> muddles up
-the definition that uses <tt>throw</tt> and <tt>catch</tt> - if
-<tt>longjmp()</tt> were indeed a <tt>throw</tt>, control would never return to
-the <tt>setjmp</tt>. As such, <tt>n2</tt>'s destructor wouldn't be called
-(except by the argument for <tt>n1</tt>, which is that the destructor would be
-called later as the frame was left in the normal control flow).
-</p>
-
-<p>
-I suggest that paragraph 4 of 18.10 [support.runtime] should be replaced
-with the following, or something that reads better but has the same effect:
-</p>
-
-<blockquote><p>
-The function signature <tt>longjmp(jmp_buf jbuf, int val)</tt> has more
-restricted behavior in this International Standard. A call to <tt>longjmp</tt>
-has undefined behavior if any non-trivial destructors would be called were the
-<tt>longjmp</tt> call replaced with a throw-expression whose nearest matching
-handler were a (possibly imaginary) function-try-block on the function
-containing the corresponding <tt>setjmp</tt> call.
-</p></blockquote>
-
-<p><i>[
-2009-11-17 Moved to Tentatively NAD after 5 positive votes on c++std-lib. 
-Rationale added below.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.10 [support.runtime]/4:
-</p>
-
-<blockquote><p>
-The function signature <tt>longjmp(jmp_buf jbuf, int val)</tt> has more
-restricted behavior in this International Standard. <del>A
-<tt>setjmp</tt>/<tt>longjmp</tt> call pair has undefined behavior if replacing
-the <tt>setjmp</tt> and <tt>longjmp</tt> by <tt>catch</tt> and <tt>throw</tt>
-would invoke any non-trivial destructors for any automatic objects.</del>
-<ins>A call to <tt>longjmp</tt> has undefined behavior if any non-trivial
-destructors would be called were the <tt>longjmp</tt> call replaced with a
-throw-expression whose nearest matching handler were a (possibly imaginary)
-function-try-block on the function containing the corresponding <tt>setjmp</tt>
-call.</ins>
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-In the given example, it is clear that it is only <tt>n2</tt> and not
-<tt>n1</tt> that is destroyed by the <tt>longjmp</tt>.
-</p>
-<p>
-At this late stage in the standards process, we are focusing on issues that
-impact users or implementers.  Trying to rewrite complex wording just for the
-sake of improved clarity is likely to do more harm than good.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1296"></a>1296. <tt>map</tt> and <tt>multimap value_compare</tt> overspecified</h3>
-<p><b>Section:</b> 23.4.4 [map] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-12-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map">issues</a> in [map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The container class templates <tt>map</tt> and <tt>multimap</tt> both contain a
-nested type called <tt>value_compare</tt>, that is used to compare the
-<tt>value_type pair</tt> elements, an adaptor of the user-supplied comparison
-function-like object.
-</p>
-
-<p>
-I believe these types are over-specified, as we require a distinct type for each
-template, even though the allocator plays no part in the comparator, and
-<tt>map</tt> and <tt>multimap value_compare</tt> classes could easily be shared.
- The benefits are similar to the SCARY iterator proposal (although on a much
-smaller scale!) but unlike SCARY, this is not a QoI issue today but actively
-prohibited.
-</p>
-
-<p>
-If the <tt>value_compare</tt> classes were marked 'exposition only', a vendor
-would be free to experiment with implementations that do not produce so many
-template instantiations with negligible impact on conforming programs.  (There
-is a minor risk that programs could no longer portably overload functions taking
-<tt>value_compare</tt> types.  This scenario is extremely unlikely outside
-conformance suites.)
-</p>
-
-<p>
-(Note that there are no similar problems for unordered maps, nor any of the set
-variants)
-</p>
-
-<p><i>[
-2010-01-31 Moved to Tentatively NAD after 5 positive votes on c++std-lib.
-Rationale added below.
-]</i></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The <tt>value_compare</tt> specification is an unfortunate bit from the past
-that we have to live with.  Fortunately vendors can work around the problems
-mentioned in this issue.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-p2 23.4.4 [map]:
-Above the declaration of class <tt>value_compare</tt> in the map synopsis, add:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class T, class Compare = less&lt;Key&gt;,
-          class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-class map {
-public:
-  // types:
-  ...
-  <ins>// exposition only.</ins>
-  class value_compare
-    : public binary_function&lt;value_type,value_type,bool&gt; {
-    ...
-</pre></blockquote>
-
-
-
-<p>
-p2 23.4.5 [multimap]:
-Above the declaration of class <tt>value_compare</tt> in the map synopsis, add:
-</p>
-
-<blockquote><pre>
-template &lt;class Key, class T, class Compare = less&lt;Key&gt;,
-          class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-class multimap {
-public:
-  // types:
-  ...
-  <ins>// exposition only.</ins>
-  class value_compare
-    : public binary_function&lt;value_type,value_type,bool&gt; {
-    ...
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1301"></a>1301. <tt>clear()</tt> and assignment</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2010-01-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I propose that <tt>clear()</tt> be defined to be equivalent to
-<tt>erase(begin(),end())</tt> except not using copy or move of elements.
-</p>
-
-<blockquote>
-<p>
-To: C++ libraries mailing list<br/>
-Message c++std-lib-26465
-</p>
-
-<p>
-and specifiying as post: <tt>size()==0</tt> might also not be appropriate
-because forward-Lists provide no <tt>size()</tt>, this it should be:
-post: <tt>empty()==true</tt>
-</p>
-
-<p>
-Bjarne Stroustrup schrieb/wrote:
-</p>
-
-<blockquote>
-<p>
-To: C++ libraries mailing list<br/>
-Message c++std-lib-26458
-</p>
-
-<p>
-in table 94 we define <tt>clear()</tt> as:
-</p>
-
-<blockquote><pre>
-a.clear() void erase(begin(), end())
-post: size() == 0
-</pre></blockquote>
-
-<p>
-Now <tt>erase</tt> requires assignment (<tt>MoveAssignable</tt>) which makes
-sense if we have to move an element, but why should that be required from
-<tt>clear()</tt> where all elements are destroyed?
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-01-23 Alisdiar provides wording.
-]</i></p>
-
-
-<p><i>[
-2010-01-30 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-01-30 Daniel opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-First, I read the newly proposed spec for <tt>clear()</tt> that it does in
-general <em>not</em> invalidate a previous past-the-end iterator value, but
-<tt>deque</tt> says in 23.3.3.4 [deque.modifiers] for the semantics of
-<tt>erase</tt> that erasures at the end will invalidate the past-the-end
-iterator. With removal of a direct binding between <tt>clear()</tt> and
-<tt>erase()</tt> there seem to be some fixes necessary. One way to fix that
-would be to mention in Table 94 that this "may also invalidate the past-the-end
-iterator" and then to mention for all specific containers where this does not
-happen, the exception, [1] e.g. in <tt>std::vector</tt>. <tt>std::vector</tt>
-has no own specification of <tt>clear()</tt> and one aspect of the closed issue
-<a href="lwg-closed.html#1102">1102</a> was to realize just that (indirectly via <tt>erase</tt>). IMO
-we should now add an extra specification for <tt>clear()</tt>. Btw.:
-<tt>std::vector::erase</tt> reads to me that it would invalidate previous
-past-the-end values (and that seems correct in general).
-</p>
-<p>
-Before I will provide explicit wording, I would like to
-discuss these points.
-</p>
-
-<p>
-[1] <tt>std::list</tt> does fortunately specify that clear does not invalidate
-the past-the-end iterator.
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-08 Moved to Tentatively NAD Editorial after 5 positive votes on c++std-lib.
-Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved as proposed by LWG <a href="lwg-defects.html#704">704</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 23.2.1 [container.requirements.general]/10:
-</p>
-
-<blockquote>
-<p>
-Unless otherwise specified (see 23.2.4.1, 23.2.5.1, 23.3.2.3, and 23.3.6.4) all
-container types defined in this Clause meet the following additional
-requirements:
-</p>
-
-<ul>
-<li>
-..
-</li>
-
-<li>
-no <tt>erase()</tt>, <ins><tt>clear()</tt>,</ins> <tt>pop_back()</tt> or
-<tt>pop_front()</tt> function throws an exception.
-</li>
-
-<li>
-...
-</li>
-</ul>
-
-</blockquote>
-
-<p>
-Replace the following words from Table 94 &mdash; Sequence container
-requirements (in addition to container) in 23.2.3 [sequence.reqmts]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 94 &mdash; Sequence container requirements (in addition to
-container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-</tr>
-
-<tr>
-<td><tt>a.clear()</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>erase(begin(), end())</tt></del><br/>
-<ins>Destroys all elements in the container a. Invalidates all references,
-pointers, and iterators referring to the elements of <tt>a</tt> and may
-invalidate the past-the-end iterator.</ins><br/>
-post: <tt><del>size() == 0</del> <ins>a.empty() == true</ins></tt>.  </td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Add a new paragraph after 23.3.4.5 [forwardlist.modifiers]/23:
-</p>
-
-<blockquote><pre>
-void clear();
-</pre>
-
-<blockquote>
-<p>
-23 <i>Effects:</i> Erases all elements in the range <tt>[begin(),end())</tt>.
-</p>
-<p><ins>
-<i>Remarks:</i> Does not invalidate past-the-end iterators.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1302"></a>1302. different <tt>emplace</tt> semantics for sequence and associated containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2010-01-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to the new naming scheme introduced with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2680.pdf">N2680</a>
-</p>
-
-<blockquote><pre>
-vector&lt;T&gt; v;
-v.emplace(v.begin(),x,y,z)
-</pre></blockquote>
-
-<p>
-now has a different semantics than
-</p>
-
-<blockquote><pre>
-set&lt;T&gt; s;
-s.emplace(s.begin(),x,y,z);
-</pre></blockquote>
-
-<p>
-While the version for <tt>vector</tt>s takes the first argument as position and
-the remaining for construction, the version for <tt>set</tt>s takes all
-arguments for construction.
-</p>
-
-<p>
-IMO, this is a serious design mistake for a couple of reasons:
-</p>
-
-<ul>
-<li>
-<p>
-First, in principle, all STL member functions should have the same behavior with
-the same member function to avoid confusion and allow to write proper generic
-code.
-</p>
-<p>
-In fact, when I write the following simple function template:
-</p>
-<blockquote><pre>
-template &lt;typename T&gt;
-void doEmplace (T&amp; cont)
-{
-   cont.emplace(cont.begin(),"nico","josuttis",42);
-}
-</pre></blockquote>
-<p>
-the semantics depends on the type of the container.
-</p>
-</li>
-<li>
-<p>
-In addition, I also guess using the name <tt>emplace_hint()</tt> instead of
-<tt>emplace()</tt> for associative containers is a design mistake. According to
-my knowledge, it was a design goal of the original STL to provide ONE
-<tt>insert</tt> function, which works for ALL containers. This was
-<tt>insert(pos,val)</tt>.
-</p>
-<p>
-The trick to declare <tt>pos</tt> as a hint, allowed that we could implement a
-generic <tt>insert</tt> for all containers. Now, with the new <tt>emplace</tt>
-naming scheme, this trick is gone for the new kind of insertion.
-</p>
-</li>
-</ul>
-
-<p>
-I consider this to be a serious design penalty because once this
-is specified we can't fix that without breaking backward compatibility.
-</p>
-
-<p>
-However, we have two choices for a fix:
-</p>
-
-<ul>
-<li>
-rename <tt>emplace_hint(pos,val)</tt> for associative containers back to
-<tt>emplace(pos,val)</tt>. However to avoid the overloading problems, we also
-have to rename the existing <tt>emplace(val)</tt> functions to something else (I
-don't have a good name here at hand).
-</li>
-<li>
-Keep <tt>emplace(val)</tt> for associative containers as it is, but rename
-<tt>emplace(pos,val)</tt> for sequence containers and
-<tt>emplace_hint(pos,val)</tt> to something like <tt>emplace_at(pos,val)</tt>,
-declaring that <tt>pos</tt> is a hint for associative containers.
-</li>
-</ul>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-There was no consensus to make this change.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p> In 23.2.5 [unord.req], change: </p>
-<blockquote> 
-  <table border="1">
-    <caption>Table 96 &mdash; Associative container requirements (in addition to 
-    container)</caption>
-    <tr> 
-      <th>expression</th>
-      <th>Return type</th>
-      <th>Assertion/note pre-/post-condition</th>
-      <th>Post-condition</th>
-    </tr>
-    <tr> 
-      <td colspan="4">...</td>
-    </tr>
-    <tr> 
-      <td><tt>a_uniq.emplace<ins>_value</ins>(args)</tt></td>
-      <td><tt>pair&lt;iterator, bool&gt;</tt></td>
-      <td>inserts a T object t constructed with std::forward&lt;Args&gt;(args)...<br/>
-        if and only if there is no element in the container with key equivalent 
-        to the key of t.<br/>
-        The bool component of the returned pair is true if and only if the insertion 
-        takes place, and the iterator component of the pair points to the element 
-        with key equivalent to the key of t.</td>
-      <td>logarithmic</td>
-    </tr>
-    <tr> 
-      <td><tt>a_eq.emplace<ins>_value</ins>(args)</tt></td>
-      <td><tt>iterator</tt></td>
-      <td>inserts a T object t constructed with std::forward&lt;Args&gt;(args)... 
-        and returns the iterator pointing to the newly inserted element.</td>
-      <td>logarithmic</td>
-    </tr>
-    <tr> 
-      <td><tt>a.emplace<del>_hint</del>(p,args)</tt></td>
-      <td><tt>iterator</tt></td>
-      <td>equivalent to
-      <tt>a.emplace<ins>_value</ins>(std::forward&lt;Args&gt;(args)...)</tt>.
-      Return value is an iterator pointing to the element with the key
-      equivalent to the newly inserted element. The const_iterator p is a hint
-      pointing to where the search should start. Implementations are permitted
-      to ignore the hint.</td> <td>logarithmic in general, but amortized
-      constant if the element is inserted right after p</td>
-    </tr>
-    <tr> 
-      <td colspan="4">... </td>
-    </tr>
-  </table>
-  
-</blockquote>
-<p> In 23.2.5 [unord.req], change: </p>
-<blockquote>
-  <table border="1">
-    <caption>Table 98 &mdash; Unordered associative container requirements (in 
-    addition to container)</caption>
-    <tr> 
-      <th>expression</th>
-      <th>Return type</th>
-      <th>Assertion/note pre-/post-condition</th>
-      <th>Post-condition</th>
-    </tr>
-    <tr> 
-      <td colspan="4">...</td>
-    </tr>
-    <tr> 
-      <td><tt>a_uniq.emplace<ins>_value</ins>(args)</tt></td>
-      <td><tt>pair&lt;iterator, bool&gt;</tt></td>
-      <td>inserts a <tt>T</tt> object <tt>t</tt> constructed with <tt>std::forward&lt;Args&gt;(args)...</tt> if 
-        and only if there is no element in the container with key equivalent to 
-        the key of <tt>t</tt>. The bool component of the returned pair is true if and only 
-        if the insertion takes place, and the iterator component of the pair points 
-        to the element with key equivalent to the key of t.</td>
-      <td>Average case O(1), worst case O(a_uniq.size()).</td>
-    </tr>
-    <tr> 
-      <td><tt>a_eq.emplace<ins>_value</ins>(args)</tt></td>
-      <td><tt>iterator</tt></td>
-      <td>inserts a T object t constructed with std::forward&lt;Args&gt;(args)... 
-        and returns the iterator pointing to the newly inserted element.</td>
-      <td>Average case O(1), worst case O(a_eq.size()).</td>
-    </tr>
-    <tr> 
-      <td><tt>a.emplace<del>_hint</del>(p,args)</tt></td>
-      <td><tt>iterator</tt></td>
-      <td>equivalent to
-      <tt>a.emplace<ins>_value</ins>(std::forward&lt;Args&gt;(args)...)</tt>.
-      Return value is an iterator pointing to the element with the key
-      equivalent to the newly inserted element. The const_iterator p is a hint
-      pointing to where the search should start. Implementations are permitted
-      to ignore the hint.</td> <td>Average case O(1), worst case
-      O(a.size()).</td>
-    </tr>
-    <tr> 
-      <td colspan="4">... </td>
-    </tr>
-  </table>
-</blockquote>
-
-<p>
-In 23.4.4 [map], 23.4.6 [set], 23.5.4 [unord.map], 23.5.6 [unord.set], change:
-</p>
-<blockquote> 
-  <p><i>// modifiers:</i><br/>
-    <tt>template &lt;class... Args&gt; pair&lt;iterator, bool&gt; emplace<ins>_value</ins>(Args&amp;&amp;... 
-    args);<br/>
-    template &lt;class... Args&gt; iterator emplace<del>_hint</del>(const_iterator 
-    position, Args&amp;&amp;... args);</tt></p>
-</blockquote>
-
-<p>
-In 23.4.5 [multimap], 23.4.7 [multiset], 23.5.5 [unord.multimap], 23.5.7 [unord.multiset], change:
-</p>
-<blockquote> 
-  <p><i>// modifiers:<br/></i><tt>template &lt;class... Args&gt; iterator emplace<ins>_value</ins>(Args&amp;&amp;... 
-    args);<br/>
-    template &lt;class... Args&gt; iterator emplace<del>_hint</del>(const_iterator position, 
-    Args&amp;&amp;... args);<br/>
-    </tt> </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1308"></a>1308. Concerns about <tt>initializer_list</tt> overloads of <tt>min</tt>,
-<tt>max</tt>, and <tt>minmax</tt></h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2010-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In San Francisco, June 2008, 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2722.pdf">N2722</a>
-was adopted, replacing the variadic templates <tt>min</tt>, <tt>max</tt>, and
-<tt>minmax</tt> by overloads that have an <tt>initializer_list&lt;T&gt;</tt>
-parameter. The paper showed benchmark results wherein <tt>initializer_list</tt>
-versions of <tt>min</tt> appeared to outperform the corresponding variadic
-template. Unfortunately, in October 2009 a very serious error was detected in
-the benchmark. (<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=25210">c++std-lib-25210</a>).
-In fact, an <tt>initializer_list&lt;T&gt;</tt> version of <tt>min</tt> often
-appears to perform <i>worse</i> than the corresponding variadic template,
-especially when <tt>T</tt> has an expensive copy constructor 
-(<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=25253">c++std-lib-25253</a>,
-<a href="http://www.xs4all.nl/~nd/dekkerware/issues/n2772_fix">http://www.xs4all.nl/~nd/dekkerware/issues/n2772_fix</a>).
-</p>
-<p>
-IMO, the biggest problem of the <tt>initializer_list</tt> overloads is that they
-pass and return <tt>T</tt> objects <i>by value</i>. Which has the following
-consequences:
-</p>
-
-<ol>
-<li>
-They require that <tt>T</tt> is <tt>CopyConstructible</tt>. IMO that is too much of a
-constraint for a generic, general purpose function like
-<tt>std::min&lt;T&gt;</tt>.
-</li>
-<li>
-They potentially throw an exception, even if <tt>T</tt>'s less-than-operator
-throws nothing. (And of course, less-than typically throws nothing.)
-</li>
-<li>
-They are inconsistent with C++03 <tt>std::min</tt> and <tt>std::max</tt>.
-Consider the subtle difference between <tt>const T&amp; c1 = min(a,b);</tt> and
-<tt>const T&amp; c2 = min({a,b});</tt> 
-(<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=25265">c++std-lib-25265</a>)
-</li>
-<li>
-They do not conveniently support use cases that need to have a reference to the
-minimum or maximum object <i>itself</i>, rather than just a copy.
-</li>
-<li>
-They potentially perform badly: possibly <i>O(n)</i>, when the arguments
-themselves have a size of <i>n</i>.
-</li>
-</ol>
-
-<p>
-In the future, this problem might be solvable by using an
-<tt>initializer_list</tt> of <i>const references</i>, instead:
-</p>
-<blockquote><pre>
-const T&amp; min(initializer_list&lt;const T&amp;&gt;);
-const T&amp; max(initializer_list&lt;const T&amp;&gt;);
-pair&lt;const T&amp;, const T&amp;&gt; minmax(initializer_list&lt;const T&amp;&gt;);
-</pre></blockquote>
-
-<p>
-It is unlikely that C++0x will support <tt>initializer_list&lt;const T&amp;&gt;</tt>, 
-but technically it seems possible to add such a language
-feature after C++0x 
-(<a href="http://accu.org/cgi-bin/wg21/message?wg=core&amp;msg=15428">c++std-core-15428</a>).
-</p>
-<p>
-Variadic templates of <tt>min</tt>, <tt>max</tt>, and <tt>minmax</tt>, as
-proposed by 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2551.pdf">N2551</a>
-(Sylvain Pion), do have some other advantages over <tt>initializer_list</tt>
-overloads:
-</p>
-<ol>
-<li>
-It is likely that those variadic templates can be declared <tt>constexpr</tt>,
-now that 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3006.html#991">
-CWG issue #991</a> is in drafting status.
-</li>
-<li>
-They provide complete compile-time protection against accidentally passing zero
-arguments.
-</li>
-</ol>
-
-<p>
-Unfortunately, the variadic templates of <tt>min</tt>, <tt>max</tt>, and
-<tt>minmax</tt> may still need further improvement, before having them in the
-Standard Library. Especially the optional <tt>Compare</tt> parameter appears to
-be a concern. So for this moment I recommend to keep both versions out of C++0x,
-and postpone further discussion until after C++0x.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Discussed and the LWG still prefers the initializer list
-solution of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2772.pdf">N2772</a>.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p><p>
-We prefer the solution of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2772.pdf">N2772</a>
-which will be reapplied.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove both variadic templates and <tt>initializer_list</tt> overloads of
-<tt>min</tt>, <tt>max</tt>, and <tt>minmax</tt> from the synopsis in
-25.1 [algorithms.general] and from 25.4.7 [alg.min.max].
-</p>
-
-<blockquote>
-<p><i>[
-Note: This proposed resolution will resolve LWG <a href="lwg-closed.html#915">915</a> as NAD.
-]</i></p>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1313"></a>1313. Seed sequence's param function not useful for pure output iterator</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Seed sequence requirements (26.5.1.2 [rand.req.seedseq]) require the
-existence of a member function
-</p>
-
-<blockquote><pre>
-template&lt;typename OutputIterator&gt;
-void param(OutputIterator ob);
-</pre></blockquote>
-
-<p>
-The fact that this function returns <tt>void</tt> instead of the value of
-<tt>ob</tt> after accepting the sequence data leads to the same problem as in
-issue <a href="lwg-defects.html#865">865</a> - In case of pure output iterators there is no way to
-serialize further data into that data sink.
-</p>
-
-<p><i>[
-2010-02-07 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-At the time this issue was opened, the suggested changes are with respect to an
-anticipated draft which does not yet exist.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-No technical counterarguments, but it is simply too late in the process
-to make this change at this point.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In Table 109 &mdash; Seed sequence requirements, expression "<tt>r.param(ob)</tt>"
-change the<br/>
-Return type entry:
-</p>
-
-<blockquote><pre>
-<del>void</del><ins>OutputIterator</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 26.5.7.1 [rand.util.seedseq], class seed_seq synopsis change
-</p>
-
-<blockquote><pre>
-template&lt;class OutputIterator&gt;
-<del>void</del><ins>OutputIterator</ins> param(OutputIterator dest) const;
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1314"></a>1314. <tt>NULL</tt> and <tt>nullptr</tt></h3>
-<p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2010-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.types">issues</a> in [support.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Currently, the 18.2 [support.types]/3 allows <tt>NULL</tt> to be any
-null pointer constant. The footnote marks that 0 or 0L might be appropriate.
-However, this definition also allows the implementation to define <tt>NULL</tt>
-to be <tt>nullptr</tt>. This may lead to overload and conversion issues more
-serious than with the C++98 version:
-</p>
-
-<blockquote><pre>
-void f(void*);
-void f(int);
-
-void g()
-{
- // calls f(int) if NULL is integral
- // calls f(void*) if NULL is nullptr
- f(NULL);
-}
-</pre></blockquote>
-
-<p>
-Possible resolutions:
-</p>
-<ul>
-<li>
-Forbid <tt>NULL</tt> from being <tt>nullptr</tt>
-</li>
-<li>
-Require <tt>NULL</tt> to be <tt>nullptr</tt>
-</li>
-<li>
-Leave it as is
-</li>
-</ul>
-
-<p>
-Making <tt>NULL</tt> <tt>nullptr</tt> would improve code correctness, and
-breaking backwards compatibility shouldn't be a huge concern as <tt>NULL</tt>
-shouldn't be used except as a null pointer constant anyways.
-</p>
-
-<p><i>[
-2010-02-10  Chris provided wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The LWG discussed the proposed resolution and several other options.  There was
-no concensus to make this or any other changes.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-18.2 [support.types]
-</p>
-
-<blockquote>
-<p>
-3 The macro <tt>NULL</tt> <ins>is defined to be <tt>nullptr</tt>.</ins> <del>is
-an implementation-defined C++ null pointer constant in this International
-Standard (4.10).<sup>196</sup></del>
-</p>
-
-<p><del>
-196) Possible definitions include <tt>0</tt> and <tt>0L</tt>, but not
-<tt>(void*)0</tt>.
-</del></p>
-</blockquote>
-
-<p>
-20.7.13 [c.malloc]
-</p>
-
-<blockquote><p>
-7 The contents are the same as the Standard C library header
-<tt>&lt;string.h&gt;</tt>, with the change to <tt>memchr()</tt> specified in
-21.6 <ins>and the macro <tt>NULL</tt> defined to be <tt>nullptr</tt></ins>.
-</p></blockquote>
-
-
-<p>
-20.12.8 [date.time]
-</p>
-
-<blockquote><p>
-2 The contents are the same as the Standard C library header
-<tt>&lt;time.h&gt;</tt><del>.</del><sup>232</sup> <ins>except the macro
-<tt>NULL</tt>, which is defined to be <tt>nullptr</tt>.</ins> The functions
-<tt>asctime</tt>, <tt>ctime</tt>, <tt>gmtime</tt>, and <tt>localtime</tt> are
-not required to avoid data races (17.6.4.8).
-</p></blockquote>
-
-
-<p>
-22.6 [c.locales]
-</p>
-
-<blockquote><p>
-2 The contents are the same as the Standard C library header
-<tt>&lt;locale.h&gt;</tt> <ins>except the macro <tt>NULL</tt>, which is defined
-to be <tt>nullptr</tt></ins>.
-</p></blockquote>
-
-<p>
-C.5.2.4 [diff.null]
-</p>
-
-<blockquote><p>
-1 The macro <tt>NULL</tt>, defined in any of <tt>&lt;clocale&gt;</tt>,
-<tt>&lt;cstddef&gt;</tt>, <tt>&lt;cstdio&gt;</tt>, <tt>&lt;cstdlib&gt;</tt>,
-<tt>&lt;cstring&gt;</tt>, <tt>&lt;ctime&gt;</tt>, or <tt>&lt;cwchar&gt;</tt>, is
-<ins>nullptr</ins> <del>an implementation-defined C++ null pointer constant in
-this International Standard (18.2).</del>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1315"></a>1315. return type of <tt>async</tt></h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Both overloads of <tt>async</tt> return <tt>future&lt;typename
-F::result_type&gt;</tt> which requires that <tt>F</tt> has a nested type. This
-prevents <tt>async</tt> being used with function pointers and makes the example
-in 30.6.8 [futures.async] invalid. I believe this is unintentional.
-</p>
-
-<p>
-The proposed resolution also addresses editorial issues with the
-<tt>launch_policy</tt> function parameter.
-</p>
-
-<p>
-For the first overload it is not sufficient to return <tt>future&lt;typename
-result_of&lt;F(ArgTypes...)&gt;::type&gt;</tt>.  Calling <tt>async(launch::xxx,
-foo, bar)</tt> performs argument deduction on both <tt>async</tt> overloads,
-which for the first overload attempts to instantiate <tt>result_of&lt;launch(F,
-ArgTypes...)&gt;</tt>, which is invalid. SFINAE must be used to prevent that.
-</p>
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-12 Daniel opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-[..] if <tt>decay&lt;F&gt;::type</tt> is of type <tt>std::launch</tt>.
-</p>
-<p>
-or
-</p>
-<p>
-[..] if <tt>remove_cv&lt;remove_reference&lt;F&gt;::type&gt;::type</tt> is of
-type <tt>std::launch</tt>.
-</p>
-
-<p>
-The latter is the more specific form, but the former is equivalent to
-the latter for all cases that can occur here. I suggest to use the
-former for simplicity, but expect that implementations can effectively
-use the latter.
-
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Editorial.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by N3058.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 30.6.1 [futures.overview] paragraph 1:
-</p>
-
-<blockquote><pre>
-template &lt;class F, class... Args&gt;
-  <del>future&lt;typename F::result_type&gt;</del>
-  <ins>future&lt;typename result_of&lt;F(Args...)&gt;::type&gt;</ins>
-  async(F&amp;&amp; f, Args&amp;&amp;... args);
-template &lt;class F, class... Args&gt;
-  <del>future&lt;typename F::result_type&gt;</del>
-  <ins>future&lt;typename result_of&lt;F(Args...)&gt;::type&gt;</ins>
-  async(launch policy, F&amp;&amp; f, Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-In 30.6.8 [futures.async] before paragraph 1
-</p>
-
-<blockquote><pre>
-template &lt;class F, class... Args&gt;
-  <del>future&lt;typename F::result_type&gt;</del>
-  <ins>future&lt;typename result_of&lt;F(Args...)&gt;::type&gt;</ins>
-  async(F&amp;&amp; f, Args&amp;&amp;... args);
-template &lt;class F, class... Args&gt;
-  <del>future&lt;typename F::result_type&gt;</del>
-  <ins>future&lt;typename result_of&lt;F(Args...)&gt;::type&gt;</ins>
-  async(launch policy, F&amp;&amp; f, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>...</p>
-<p><ins>
-<i>Remarks:</i> The first signature shall not participate in overload resolution
-if <tt>decay&lt;F&gt;::type</tt> is <tt>std::launch</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1318"></a>1318. N2982 removes previous allocator capabilities</h3>
-<p><b>Section:</b> 20.7.8.1 [allocator.traits.types] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2010-02-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1375">1375</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-87</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>
-says that containers should have a nested typedef that defines their
-<tt>reference_type</tt> as <tt>value_type&amp;</tt>; the previous
-standard deferred to the allocator to define its
-<tt>reference_type</tt>, and containers simply passed the allocator's
-typedef on. This change is a mistake. Allocators should define both a
-<tt>pointer</tt> type and a <tt>reference</tt> type. That's essential
-for their original purpose, which was to make different memory models
-transparent. If an allocator defines a <tt>pointer</tt> type that isn't
-compatible with a normal pointer it also has to define a corresponding
-<tt>reference</tt> type. For example (and please forgive a Windows-ism),
-if an allocator's pointer is <tt>T __far*</tt>, then it's
-<tt>reference</tt> has to be <tt>T __far&amp;</tt>. Otherwise everything
-crashes (under the hood, references are pointers and have to have the
-same memory access mechanics). Extensions such as this for more general
-memory models were explicitly encouraged by C++03, and the allocator's
-<tt>pointer</tt> and <tt>reference</tt> typedefs were the hooks for such
-extensions. Removing the allocator's <tt>reference</tt> and
-<tt>const_reference</tt> typedefs makes those extensions unimplementable
-and breaks existing implementations that rely on those hooks.
-</p>
-
-<p><i>[
-2010-02-25 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>vector&lt;bool&gt;::reference</tt> is a nested class, and not a typedef.  It
-should be removed from the list of containers when this change is made.
-</p>
-
-<p>
-In general, I am uncomfortable placing this reference requirement on each
-container, as I would prefer to require:
-</p>
-
-<blockquote><pre>
-is_same&lt;Container::reference, Container::iterator::reference&gt;
-</pre></blockquote>
-
-<p>
-This distinction is important, if we intend to support proxy iterators.  The
-iterator paper in the pre-Pittsburgh mailing
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3046.html">N3046</a>)
-does <em>not</em> make this proposal, but organises clause 24 in such a way this
-will be much easier to specify.
-</p>
-
-<p>
-The changes to clause 20 remain important for all the reasons Pete highlights.
-</p>
-</blockquote>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-
-<p>
-Removed <tt>vector</tt> from list of templates that should be adjusted as of meeting outcome.
-</p>
-
-<p><i>[
-2010 post-Batavia
-]</i></p>
-
-
-<p>
-Replaced <tt>vector&lt;bool&gt;</tt> reference by <tt>vector</tt> reference because of misinterpreting meeting typo.
-Additional corrected numbering in P/R to N3225 wording.
-</p>
-
-<p><i>[
-2010-12-06 Daniel reopens
-]</i></p>
-
-
-<p>
-Unfortunately, the current P/R is defective for several reasons:
-</p>
-<ol>
-<li> Table 43 &mdash; Descriptive variable definitions still contains three
-references to <tt>T&amp;</tt>, namely in:
-<blockquote>
-<table border="1">
-<tr>
-<td>
-<tt>t</tt>
-</td>
-<td>a value of type <tt>const T&amp;</tt></td>
-</tr>
-<tr>
-<td>
-<tt>r</tt>
-</td>
-<td>a value of type <tt>T&amp;</tt> obtained by the expression <tt>*p</tt></td>
-</tr>
-<tr>
-<td>
-<tt>s</tt>
-</td>
-<td>a value of type <tt>const T&amp;</tt> obtained by the expression <tt>*q</tt>
-or by conversion from a value <tt>r</tt></td>
-</tr>
-</table>
-</blockquote>
-Especially the second and third items are misses in the 1318 P/R,
-e.g. in N2723 or in C++03 these were referring
-to <tt>X::reference</tt> and <tt>X::const_reference</tt>, resp.
-None of them is referenced anywhere in the allocator requirements
-table: <tt>r</tt> and <tt>s</tt> where historically needed to
-define the expressions <tt>a.address(r)</tt> and <tt>a.address(s)</tt> which are gone now,
-and <tt>t</tt> was needed to define the expression <tt>a.construct(p, t)</tt> which has been
-replaced by <tt>a.construct(p,args)</tt>.
-<p/>
-The easiest fix seems to be to remove all three rows from Table 43.
-</li>
-<li>
-Further-on, the current P/R suggests to replace the the current
-definitions of the adaptor classes
-<blockquote><pre>
-stack
-priority_queue
-queue
-</pre></blockquote>
-similar to the other container types, i.e. to define <tt>reference</tt> and
-<tt>const_reference</tt> now as
-<blockquote><pre>
-typedef typename allocator_traits&lt;Allocator&gt;::reference reference;
-typedef typename allocator_traits&lt;Allocator&gt;::const_reference const_reference;
-</pre></blockquote>
-This would not only be an ill-formed definition (because there is no name
-<tt>Allocator</tt> in scope), but it would also introduce a breakage compared to C++03,
-where these definitions where already referring to the definition of the wrapped 
-containers. So, the adaptor class templates should be removed from the current list.
-</li>
-<li>
-Then the current P/R wording leads to one further unexpected and unwanted change due to 
-the general formular used: <tt>match_result::reference</tt> is currently defined as
-<blockquote><pre>
-typedef const_reference reference;
-</pre></blockquote>
-because it is an <em>immutable</em> container (And we had this definition
-already in N2723). The application of the rule would change this silently.
-</li>
-<li>
-Finally the suggested wording for the <tt>unordered_</tt> containers is incomplete.
-The reason is a current inconsistency between these containers and the rest: While
-normally the definition of the pointer types is
-<blockquote><pre>
-typedef typename allocator_traits&lt;Allocator&gt;::pointer pointer;
-typedef typename allocator_traits&lt;Allocator&gt;::const_pointer const_pointer;
-</pre></blockquote>
-for the unordered containers they are
-<blockquote><pre>
-typedef typename allocator_type::pointer pointer;
-typedef typename allocator_type::const_pointer const_pointer;
-</pre></blockquote>
-These definitions are <em>not</em> equivalent, because allocators are no longer
-required to define typedefs <tt>pointer</tt> and <tt>const_pointer</tt>, the
-<tt>allocator_traits</tt> were invented as a further indirection to cope
-with that. I.e. for the unordered containers we need to bring both the definition
-of references <em>and</em> pointers in sync.
-</li>
-</ol>
-
-<p><i>[
-2011-02-23 Daniel updates the proposed wording with support from Pablo
-]</i></p>
-
-
-<p>The update attempts to fix the backward-compatibility problem that we have
-introduced by ignoring the C++03 member function overloads <tt>address</tt>
-of allocator types in C++0x completely. The resolution attempts to fix that
-by adding these functions as optional members of allocators that are considered
-first before falling back to <tt>pointer_traits::pointer_to</tt>. This still
-allows us to remove the unused symbol <tt>t</tt> from the table, but we adapt
-the symbols <tt>r</tt> and <tt>s</tt> to purely refer to the typenames
-<tt>reference</tt> and <tt>const_reference</tt>.</p>
-
-<p><i>[2011-03-06 Daniel adapts numbering to N3242]</i></p>
-
-
-<p><i>[2011-03-11 Daniel removes <tt>noexcept</tt> specifiers from <tt>address</tt> functions]</i></p>
-
-
-<p><i>[2011-03-12 Further wording improvements by Daniel and Pablo]</i></p>
-
-
-<p><i>[2011-03-22 Madrid]</i></p>
-
-
-<p>Closed as NAD, no consensus to make a change</p>
-
-
-
-<p><b>Rationale:</b></p><p>No consensus to make a change</p>
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1330"></a>1330. Move container requirements into requirements tables</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2010-03-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Abstract:
-</p>
-<p>
-In general, it seems that in a couple of places container behavior is
-not described in requirement tables although it is a general behavior.
-</p>
-
-<p>
-History:
-</p>
-
-<p>
-Issue <a href="lwg-defects.html#676">676</a> added move semantics to unordered containers.
-For the added insert functions the Editor requested to put their
-semantic description into a requirements table rather than describing
-them for each container individually. The text however was taken from
-the associative containers, where we also have the semantics for each
-container described. Also, <a href="lwg-defects.html#1034">1034</a> is to some extend
-requesting a clarification of the requirement tables and it turned out
-that in other places we have the same problem (e.g. we have no general
-requirement for type pointer and const_pointer although each container
-has them with issue <a href="lwg-defects.html#1306">1306</a>).
-</p>
-
-<p>
-From my personal list of functions in requirement tables
-and containers, the following types/functions are missing in
-requirement tables:
-</p>
-
-<ul>
-<li>
-<tt>pointer</tt>, <tt>const_pointer</tt> in Table 91 (container requirements)
-</li>
-<li>
-<p>
-all copy constructors, copy constructors with allocator,
- assignment operators, and insert operators
- with move semantics for associative and unordered containers
-</p>
-<blockquote><pre>
-ContType c1(c2&amp;&amp;)
-ContType c1(c2&amp;&amp;,alloc)
-c1 = c2&amp;&amp;
-c.insert(val&amp;&amp;)
-c.insert(pos,val&amp;&amp;)
-</pre></blockquote>
-</li>
-</ul>
-
-<p>
-As a special case, we lack the following requirements for all sequence
-containers BUT array (so special wording or a new container category is
-required):
-</p>
-
-<ul>
-<li>
-<p>
-constructor with only a size argument
-</p>
-<blockquote><pre>
-ContType c(num)
-</pre></blockquote>
-</li>
-<li>
-<p>
-copy constructor with allocator and move semantics
-</p>
-<blockquote><pre>
-ContType c1(c2&amp;&amp;,alloc)
-</pre></blockquote>
-</li>
-<li>
-<p>
-all constructors that insert multiple elements with additional allocator
-</p>
-<blockquote><pre>
-ContType c(num, val,alloc)
-ContType c(beg, end,alloc)
-ContType c(initlist,alloc)
-</pre></blockquote>
-</li>
-<li>
-<p>
-all resize functiuons:
-</p>
-<blockquote><pre>
-c.resize(num)
-c.resize(num,val)
-</pre></blockquote>
-</li>
-</ul>
-
-<p>
-Note that we also might have to add additional requirements on other
-places for sequence containers because having an allocator requires
-additional statements for the treatment of the allocators. E.g. swap for
-containers with allocators is not specified in any requirement table.
-</p>
-
-<p>
-And finally, if we have the requirements in the requirements tables, we
-can remove the corresponding descriptions for the individual container.
-However, note that sequence container requirements have NO complexity
-column, so that we still need container specific descriptions for the
-functions listed there.
-</p>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-While there is consensus that further cleaning up the container requirement
-tables would be a good thing, there is no feeling that this <em>must</em>
-be done in time for 0x.  The issue remains open, but Deferred.
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Closes as NAD. There are a number of deficiencies in the way the container
-requirements tables are presented, and the LWG welcomes further papers that
-will help clear up this presentation.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1331"></a>1331. incorporate move special member functions into library</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2010-03-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Review the library portion of the spec and incorporate the newly added
-core feature Move Special Member Functions (N3044).
-</p>
-
-<p><b>Rationale:</b></p><p>
-2010 Batavia: This has now been done to a large extent.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1348"></a>1348. Exception safety of unspecified types</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-64</b></p>
-<p>
-There are a number of unspecified types used throughout
-the library, such as the container iterators. Many of these
-unspecified types have restrictions or expectations on
-their behaviour in terms of exceptions. Are they permitted
-or required to use exception specifications, more
-specifically the new <tt>noexcept</tt> specification? For example,
-if <tt>vector&lt;T>::iterator</tt> is implemented as a native pointer,
-all its operations will have an (effective) <tt>noexcept</tt>
-specification. If the implementation uses a class type to
-implement this iterator, is it permitted or required to
-support that same guarantee?
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Clearly state the requirements for exception
-specifications on all unspecified library types. For
-example, all container iterator operations should
-be conditionally <tt>noexcept</tt>, with the condition
-matching the same operation applied to the
-allocator's <tt>pointer_type</tt>, a certain subset of which
-are already required not to throw.
-</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Discussion:</p>
-<p>Alisdair: Probably an NAD Future at least but could be NAD.
-<p/>
-Daniel K: Approach is not consistent with what we've decided with <tt>noexcept</tt>.
-<p/>
-Alisdair: Any objection to marking 1348 as NAD?
-<p/>
-No objections. 
-</p>
-
-
-
-<p><b>Rationale:</b></p><p>Standard is correct as written</p>
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1350"></a>1350. Implicit contructors accidentally made some library types move-only</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1421">1421</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-15</b></p>
-<p>
-Due to the new rules about implicit copy and move
-constructors some library facilities are now move-only.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Make them copyable again.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1351"></a>1351. Replace dynamic exception specifications with <tt>noexcept</tt></h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1344">1344</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses CH-16</b></p>
-<p>
-Dynamic exception specifications are deprecated.
-Deprecated features shouldn't be used in the Standard.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Replace dynamic exception specifications with <tt>noexcept</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1352"></a>1352. Apply <tt>noexcept</tt> where library specification says "Throws: Nothing"</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1346">1346</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses CH-17</b></p>
-<p>
-The introduction of <tt>noexcept</tt> makes "Throws: Nothing" clauses looking strange.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Consider replacing "Throws: Nothing." clause by
-the respective noexcept specification.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1358"></a>1358. Add <tt>&lt;chrono&gt;</tt> and <tt>&lt;ratio&gt;</tt> to
-freestanding implementations</h3>
-<p><b>Section:</b> 17.6.1.3 [compliance] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#compliance">issues</a> in [compliance].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-55</b></p>
-<p>
-The <tt>&lt;thread&gt;</tt> header uses <tt>duration</tt> types, found in the
-<tt>&lt;chrono&gt;</tt> header, and which rely on the <tt>ratio</tt> types
-declared in the <tt>&lt;ratio></tt> header.
-</p>
-
-<p><i>[
-Extracts from lengthy Rapperswil discussion:
-]</i></p>
-
-<p>
-There is a concern that this issue is a misunderstanding of the actual
-requirements of a free-standing implementation to support the <tt>&lt;thread></tt>
-header.  In general, a free-standanding implementation will provide an <em>empty</em>
-header, specifically so that a user can test for the absence of the 
-<tt>_ _ STDCPP_THREADS _ _</tt> macro.  This idiom as used as there is no portable 
-way to test for the lack of a header.
-</p>
-<p>
-At this point, it was suggested the NB comment is trying to solve the wrong problem, 
-and that <tt>_ _ STDCPP_THREADS _ _</tt> should be a pre-defined macro in clause 16 
-that can be tested before including <tt>&lt;thread&gt;</tt>.  That would remove the 
-need to add additional headers to the free-standanding requirements.
-</p>
-<p>
-It is worth noting that Japan requested <tt>&lt;ratio&gt;</tt> as a free-standing header 
-in their CD1 comments.  No-one seemed keen to require clocks of a free-standing 
-implementation though.
-</p>
-
-<p>Detlef volunteers to look at a way to redraft 17.6.1.3 p3.</p> 
-
-<p><i>[
-Original resolution proposed by NB comment:
-]</i></p>
-
-
-<blockquote>
-<p>
-Add the <tt>&lt;chrono&gt;</tt> and <tt>&lt;ratio&gt;</tt> headers to the
-freestanding requirements.
-</p>
-<p>
-It might be necessary to address scaled-down
-expectations of clock support in a freestanding
-environment, much like <tt>&lt;thread&gt;</tt>.
-</p>
-</blockquote>
-
-<p><i>[2011-02-25: Alberto drafts wording]</i></p>
-
-
-<p><i>[2011-03-06: Daniel observes:]</i></p>
-
-
-<p>Accepting the proposal <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3256.html">n3256</a> 
-would solve this issue.</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Freestanding no longer requires <tt>&lt;thread&gt;</tt> header</p>
-
-
-<p><b>Rationale:</b></p><p>We are not adding new headers to freestanding at this point.</p>
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Add a new entry in Table 14 &mdash; C++ library headers:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 14 &mdash; C++ library headers</caption>
-<tr>
-<td style="text-align:center;">&hellip;</td>
-</tr>
-<tr>
-<td><tt>&lt;iterator&gt;</tt></td>
-</tr>
-<tr>
-<td><ins><tt>&lt;library_support&gt;</tt></ins></td>
-</tr>
-<tr>
-<td><tt>&lt;limits&gt;</tt></td>
-</tr>
-<tr>
-<td style="text-align:center;">&hellip;</td>
-</tr>
-</table>
-</blockquote>  
-</li>
-
-<li><p>Remove the last row 30.3 [thread.threads] <tt>&lt;threads&gt;</tt>
-from Table 16 &mdash; C++ headers for freestanding implementations and insert
-a new one instead (To the editor: For the actual target Clause please see the comment
-in bullet 5 of this proposed resolution):</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 16 &mdash; C++ headers for freestanding implementations</caption>
-
-<tr>
-<th>Subclause</th>
-<th>Header(s)</th>
-</tr>
-
-<tr>
-<td colspan="2" style="text-align:center;">&hellip;</td>
-</tr>
-
-<tr>
-<td><del>30.3 [thread.threads] Threads</del></td>
-<td><del><tt>&lt;thread&gt;</tt></del></td>
-</tr>
-
-<tr>
-<td><ins>?? Library support</ins></td>
-<td><ins><tt>&lt;library_support&gt;</tt></ins></td>
-</tr>
-
-</table>
-
-</blockquote>
- </li>
- 
- <li><p>Modify paragraph 17.6.1.3 [compliance] p. 3:</p>
- <blockquote><p>
- 3 The supplied version of the header <tt>&lt;cstdlib&gt;</tt> shall declare at least the functions 
- <tt>abort</tt>, <tt>atexit</tt>, <tt>at_quick_exit</tt>, <tt>exit</tt>, and <tt>quick_exit</tt> 
- (18.5). <del>The supplied version of the header <tt>&lt;thread&gt;</tt> shall meet the
-same requirements as for a hosted implementation or including it shall have no effect</del>. The 
-other headers listed in this table shall meet the same requirements as for a hosted 
-implementation. <ins>A program can detect the presence of standard headers not listed in Table
-16 using the facilities provided by the <tt>&lt;library_support&gt;</tt> header.</ins>
-</p></blockquote>
-</li>
- 
-<li><p>Remove the following line from the header <tt>&lt;thread&gt;</tt> synopsis in 
-30.3 [thread.threads] p. 1:</p>
-<blockquote><pre>
-namespace std {
-  <del>#define __STDCPP_THREADS__ __cplusplus</del>
-
-  class thread;
-  [...]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Add a new section in Clause 18 or 20 (or any other suitable place at
-the editor's discretion):</p>
-
-<blockquote>
-<p><ins>?? Library support [library.support]</ins></p>
-<blockquote><p>
-<ins>The header <tt>&lt;library_support&gt;</tt> defines an implementation-defined set 
-of macros to allow a program detect the presence of standard headers in freestanding
-implementations. [<i>Note</i>: Hosted implementations shall provide all
-standard headers, thus shall provide all macros. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-<blockquote><p>
-<ins>For each standard header listed in Tables 14 (C++ library headers) and 15 (C++ headers for C library facilities)
-that is provided by the implementation, <tt>&lt;library_support&gt;</tt> shall define a macro with name 
-<code>_ _HAS_<i>XXX</i>_HEADER_ _</code> where <code><i>XXX</i></code> is replaced by the uppercase version of the 
-name of the header. Each such macro shall expand to the value <code>_ _cplusplus</code>.
-[<i>Example</i>:</ins></p>
-<blockquote><pre>
-<ins>#include &lt;library_support&gt;
-
-#ifdef _ _HAS_THREADS_HEADER_ _
-  #include &lt;threads&gt;
-  // code that exploit the presence of threads
-#else
-  // fallback code that doesn't rely on threads
-#endif</ins>
-</pre></blockquote>
-<p><ins>&mdash; <i>end example</i>]</ins></p>
-</blockquote>
-<blockquote><p>
-<ins>No other standard header shall define macros with a name beginning with <code>_ _HAS_</code>
-and ending with <code>_HEADER_ _</code>.</ins>
-</p></blockquote>
-
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1359"></a>1359. Add <tt>&lt;tuple&gt;</tt> and <tt>&lt;utility&gt;</tt> to freestanding implementations</h3>
-<p><b>Section:</b> 17.6.1.3 [compliance] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#compliance">issues</a> in [compliance].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-56</b></p>
-<p>
-The <tt>&lt;utility&gt;</tt> header provides support for several
-important C++ idioms with <tt>move</tt>, <tt>forward</tt> and <tt>swap</tt>.
-Likewise, <tt>declval</tt> will be frequently used like a type trait.
-In order to complete cycles introduced by <tt>std::pair</tt>, the
-<tt>&lt;tuple&gt;</tt> header should also be made available. This is a
-similarly primitive set of functionality, with no dependency
-of a hosted environment, but does go beyond the minimal
-set of functionality otherwise suggested by the
-freestanding libraries.
-</p>
-<p>
-Alternatively, split the <tt>move</tt>/<tt>forward</tt>/<tt>swap</tt>/<tt>declval</tt>
-functions out of <tt>&lt;utility&gt;</tt> and into a new primitive header,
-requiring only that of freestanding implementation.
-</p>
-
-<p><i>[
-Summary of Rapperswil discusions
-]</i></p>
-
-<p>
-The preference of the meeting was to extract the rvalue-reference related utilities 
-and swap into a freestanding header, but there was no clear preference for a name.  
-Howard suggested simply dropping them into <tt>&lt;type_traits&gt;</tt> as both 
-these utilities and type traits are used pretty much everywhere in the library 
-implementation, it is the most convenient place to keep them (from an implementer's 
-perspective).
-</p>
-
-<p>
-Poll: Two-way: New header for forward, move, swap, move_with_noexcept and declval vs. 
-calling out forward, move, swap, move_with_noexcept and declval as freestanding explicitly?
-
-SF new header: 4 WF new header: 3 WF call out as freestanding: 1 SF call out as freestanding: 2
-
-Alisdair: Willing to write up both solutions, give us some time to think on it.
-
-Action: Need an issue and proposed wording for GB 56 - Alisdair to draft both options as in the last poll. 
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<blockquote>
-<p>
-Add <tt>&lt;utility&gt;</tt> and <tt>&lt;tuple&gt;</tt> to table 15, headers
-required for a free-standing implementation.
-</p>
-</blockquote>
-
-<p><i>[
-2010-Batavia:
-]</i></p>
-
-<p>
-Closed as NAD, reversing the decision at Rapperswil.
-</p>
-<p>
-The consensus was that
-any freestanding implementation is going to feel compelled to offer the important
-features of <tt>&lt;utility></tt> even if we do not make them a freestanding
-requirement; breaking out additional small headers may have additional costs at
-compile time, and while the critical <tt>move</tt>-related functions could migrate
-to <tt>&lt;type_traits></tt>, the header name is far from appealing; adding the
-whole of <tt>&lt;utility></tt> starts to drag in dependencies on <tt>&lt;tuple></tt>
-and <tt>&lt;memory></tt>, so we prefer to place the burden of slicing or supporting
-this whole header on free-standing vendors.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p><p>No consensus for a change at this time.</p>
-
-
-
-
-<hr>
-<h3><a name="1361"></a>1361. Does use of <tt>std::size_t</tt> in a header imply that typedef name is available to users?</h3>
-<p><b>Section:</b> 17.6.2 [using] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-58</b></p>
-<p>
-It is not clear whether a library header specified in terms
-of a typedef name makes that same typedef name
-available for use, or if it simply requires that the specified
-type is an alias of the same type, and so the typedef name
-cannot be used without including the specific header that
-defines it. For example, is the following code required to
-be accepted:
-</p>
-<blockquote><pre>
-#include &lt;vector&gt;
-std::size_t x = 0;
-</pre></blockquote>
-<p>
-Most often, this question concerns the typedefs defined in
-header <tt>&lt;cstddef&gt;</tt>
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Add a paragraph under 17.6.2 [using] clarifying whether
-or not headers specified in terms of <tt>std::size_t</tt> can
-be used to access the typedef <tt>size_t</tt>, or whether
-the header <tt>&lt;cstddef&gt;</tt> must be included to reliably
-use this name.
-</p>
-<p><i>[Batavia: NAD - see rationale below]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><b>Rationale:</b></p><p>The standard is correct as written.</p>
-
-
-
-
-<hr>
-<h3><a name="1369"></a>1369. <tt>rethrow_exception</tt> may introduce data races</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-74</b></p>
-<p>
-One idea for the <tt>exception_ptr</tt> type was that a reference-counted
-implementation could simply 'reactivate' the same
-exception object in the context of a call to
-<tt>rethrow_exception</tt>. Such an implementation would allow
-the same exception object to be active in multiple threads
-(such as when multiple threads join on a <tt>shared_future</tt>)
-and introduce potential data races in any exception
-handler that catches exceptions by reference - notably
-existing library code written before this capability was
-added. <tt>rethrow_exception</tt> should <em>always</em> make a copy
-of the target exception object.
-</p>
-
-<p><i>[Resolution suggested by NB comment]</i></p>
-
-
-<p>
-Add the following to 18.8.5, [propogation]
-</p>
-<blockquote><p><ins>
-<i>Throws</i>: a copy of the exception object to which <tt>p</tt> refers.
-</ins></p></blockquote>
-
-<p><i>[2011-03-15: Anthony drafts wording]</i></p>
-
-
-<p><i>[2011-03-23 Madrid meeting]</i></p>
-
-
-<p>No consensus for a change</p>
-
-
-
-<p><b>Rationale:</b></p><p>It would break too many existing implementations</p>
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Alter 15.1 [except.throw] p. 5 as follows:</p>
-
-<blockquote><p>
-5 When the thrown object is a class object, the copy/move constructor and the destructor shall be accessible,
-even if the copy/move operation is elided (12.8 [class.copy]). <ins>The copy constructor shall be
-accessible, and is odr-used (3.2 [basic.def.odr]), even if the copy operation is elided, 
-or a move constructor used to construct the exception object.</ins>
-</p></blockquote>
-</li>
-
-<li><p>Alter 18.8.5 [propagation] p. 7 as follows:</p>
-
-<blockquote><pre>
-exception_ptr current_exception() noexcept;
-</pre><blockquote>
-<p>
-7 <i>Returns</i>: An <tt>exception_ptr</tt> object that refers to <del>the currently handled exception 
-(15.3 [except.handle]) or</del> a copy of the currently handled exception, or a null <tt>exception_ptr</tt> 
-object if no exception is being handled. The referenced object shall remain valid at least as long as there 
-is an <tt>exception_ptr</tt> object that refers to it. If the function needs to allocate memory and the 
-attempt fails, it returns an <tt>exception_ptr</tt> object that refers to an instance of <tt>bad_alloc</tt>. 
-It is unspecified whether the return values of two successive calls to <tt>current_exception</tt> refer to 
-the same exception object. [ <i>Note</i>: That is, it is unspecified whether <tt>current_exception</tt> 
-creates a new copy each time it is called. &mdash; <i>end note</i> ] If the attempt to copy the current 
-exception object throws an exception,<ins> or is otherwise not possible,</ins> the function returns an 
-<tt>exception_ptr</tt> object that refers to the thrown exception <ins>if any</ins> or, <del>if this is not possible,</del> 
-to an instance of <tt>bad_exception</tt>. [ <i>Note</i>: The copy constructor of the thrown exception 
-may also fail, so the implementation is allowed to substitute a <tt>bad_exception</tt> object to avoid 
-infinite recursion. &mdash; <i>end note</i> ]
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Alter 18.8.5 [propagation] p. 9 and add a new paragraph after p. 9 as follows:</p>
-
-<blockquote><pre>
-[[noreturn]] void rethrow_exception(exception_ptr p);
-</pre><blockquote>
-<p>
-8 <i>Requires</i>: <tt>p</tt> shall not be a null pointer.
-<p/>
-9 <i>Throws</i>: <ins>a copy of</ins> the exception object to which <tt>p</tt> refers<ins>, or any exception 
-thrown by the attempt to copy the exception object to which <tt>p</tt> refers</ins>.
-<p/>
-<ins>? <i>Synchronization</i>: Calls to <tt>rethrow_exception</tt> on <tt>exception_ptr</tt> objects
-that refer to the same exception object shall appear to occur in a single total order. The completion 
-of each call shall synchronize with (1.10 [intro.multithread]) the next call in that total order.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1371"></a>1371. Standard exceptions require stronger no-throw guarantees</h3>
-<p><b>Section:</b> 19 [diagnostics] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-75</b></p>
-<p>
-None of the exception types defined in clause 19 are
-allowed to throw an exception on copy or move
-operations, but there is no clear specification that the
-operations have an exception specification to prove it.
-Note that the implicitly declared constructors, taking the
-exception specification from their base class (ultimately
-<tt>std::exception</tt>) will implicitly generate a <tt>noexcept</tt>
-exception specification if all of their data members
-similarly declare <tt>noexcept</tt> operations. As the
-representation is unspecified, we cannot assume nonthrowing
-operations unless we explicitly state this as a
-constraint on the implementation.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Add a global guarantee that all exception types
-defined in clause 19 that rely on implicitly declared
-operations have a non-throwing exception
-specification on those operations.
-</p>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-<p>
-This is addressed by the current words in 18.8.1 [exception], p2
-</p>
-<blockquote><p>
-Each standard library class <tt>T</tt> that derives from class <tt>exception</tt> 
-shall have a publicly accessible copy constructor and a publicly accessible copy
-assignment operator that do not exit with an exception.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1373"></a>1373. Customizable traits should have their own headers</h3>
-<p><b>Section:</b> 20.2 [utility] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#utility">active issues</a> in [utility].</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility">issues</a> in [utility].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-79</b></p>
-<p>
-The library provides several traits mechanisms intended a
-customization points for users. Typically, they are
-declared in headers that are growing quite large. This is
-not a problem for standard library vendors, who can
-manage their internal file structure to avoid large
-dependencies, but can be a problem for end users who
-have no option but to include these large headers.
-</p>
-
-<p><i>[
-2010 Rapperswil
-]</i></p>
-
-<p>
-There was no enthusiasm for touching <tt>char_traits</tt> or <tt>regex_traits</tt>.
-Consensus to move <tt>iterator_traits</tt>, <tt>allocator_traits</tt>
-and <tt>pointer_traits</tt> to their own respective headers once wording supplied.
-</p>
-
-<p><i>[
-2010 Rapperswil
-]</i></p>
-
-<p>
-After some discussion, consensus is that moving these features into separate
-headers does not buy much in practice, as the larger headers will inevitably
-be included anyway.  Resolve as NAD.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment
-]</i></p>
-
-<p>
-Move the following traits classes into their own
-headers, and require the existing header to
-<tt>#include</tt> the traits header to support backwards
-compatibility:
-</p>
-<blockquote><pre>
-iterator_traits (plus the iterator tag-types)
-allocator_traits
-pointer_traits
-char_traits
-regex_traits
-</pre></blockquote>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-<p>
-Closed as NAD with the rationale below.
-</p>
-
-
-
-<p><b>Rationale:</b></p><p>
-This suggest is not a defect, as the likely benefit is small, if any,
-compared to the cost of not just implementating the feature, but also
-explaining/teaching it.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1374"></a>1374. Clarify moved-from objects are &quot;toxic&quot;</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-85</b></p>
-<p>
-20.2.1 Table 34 "MoveConstructible requirements" says
-"Note: rv remains a valid object. Its state is unspecified".
-Some components give stronger guarantees. For
-example, moved-from <tt>shared_ptr</tt>s are guaranteed <tt>empty</tt>
-(20.9.11.2.1/25).
-In general, what the standard really should say (preferably
-as a global blanket statement) is that moved-from objects
-can be destroyed and can be the destination of an
-assignment. Anything else is radioactive. For example,
-containers can be "emptier than empty". This needs to be
-explicit and required generally.
-</p>
-<p>
-Note: The last time that one of us mentioned "emptier
-than empty" (i.e. containers missing sentinel nodes, etc.)
-the objection was that containers can store sentinel nodes
-inside themselves in order to avoid dynamically allocating
-them. This is unacceptable because
-</p>
-<p>
-(a) it forces existing implementations (i.e. Dinkumware's, Microsoft's,
-IBM's,  etc.) to change for no good reason (i.e. permitting more
-operations on moved-from objects), and 
-</p>
-<p>
-(b) it invalidates end-iterators when swapping containers. (The Working
-Paper currently permits end-iterator invalidation, which we
-consider to be wrong, but that's a separate argument. In
-any event, <em>mandating</em> end-iterator invalidation is very
-different from permitting it.)
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment
-]</i></p>
-
-<p>
-State as a general requirement that moved-from
-objects can be destroyed and can be the
-destination of an assignment. Any other use is
-undefined behavior.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3241.html">N3241</a></p>
-
-
-
-
-
-<hr>
-<h3><a name="1375"></a>1375. <tt>reference_type</tt> should not have been removed from the
-allocator requirements</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1318">1318</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US-87</b></p>
-<p>
-<tt>reference_type</tt> should not have been removed from the
-allocator requirements. Even if it is always the same as
-<tt>value_type&amp;</tt>, it is an important customization point for
-extensions and future features.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In [allocator.requirements] Table 42 - Allocotor Requirements, 
-Add a row (after <tt>value_type</tt>) with columns:
-</p>
-<blockquote><p>
-Expression: <ins><tt>X::reference_type</tt></ins><BR/>
-Return type: <ins><tt>T&amp;</tt></ins><BR/>
-Assertion/note...: (empty)<BR/>
-Default: <ins><tt>T&amp;</tt></ins><BR/>
-</p></blockquote>
-<p>
-[allocator.traits]:
-</p> 
-<blockquote><pre>
-namespace std {
-  template &lt;class Alloc&gt; struct allocator_traits {
-    typedef Alloc allocator_type;
-    
-    typedef typename Alloc::value_type value_type;
-
-    typedef <i>see below</i>   pointer;
-    typedef <i>see below</i>   const_pointer;
-    typedef <i>see below</i>   void_pointer;
-    typedef <i>see below</i>   const_void_pointer;
-    <ins>typedef value_type&amp; reference_type;</ins>
-</pre></blockquote>
-<p>
-Add <tt>reference_type</tt> to
-allocator_traits template, defaulted to
-value_type&amp;.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1376"></a>1376. Allocator interface is not backward compatible</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-88</b></p>
-<p>
-Allocator interface is not backward compatible.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-See Appendix 1 - Additional Details
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3165.pdf">n3165</a> provides an alternative resolution.
-</p></blockquote>
-
-<p><i>[
-2910 Batavia:
-]</i></p>
-
-<p>
-Closed as NAD - withdrawn by the submitter.
-</p>
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3165.pdf">n3165</a>
-</p>
-
-<p><b>Rationale:</b></p><p>Withdrawn by the submitter.</p>
-
-
-
-
-<hr>
-<h3><a name="1395"></a>1395. Inconsistent reference links should be unified</h3>
-<p><b>Section:</b> 20.10.6 [meta.rel] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.rel">issues</a> in [meta.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-32</b></p>
-<p>
-Representations of reference link are not unified.
-Most reference links to clause (table) number, say X, are
-in the form "Clause X" ("Table X") capitalized, and
-subsection Y.Y.Y is referenced with its number only in the
-form "Y.Y.Y". Whether they are parenthesized or not
-depends on the context.
-However there are some notations "(Z)" consisting of only
-a number Z in parentheses to confer Clause or Table
-number Z.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change "(10)" to "(Clause 10)".
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1398"></a>1398. Users should be able to specialize functors without depending on whole <tt>&lt;functional&gt;</tt> header</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-96</b></p>
-<p>
-The function templates <tt>hash</tt>, <tt>less</tt> and <tt>equal_to</tt>
-are important customization points for user-defined types to
-be supported by several standard containers. These are
-accessed through the <tt>&lt;functional&gt;</tt> header which has
-grown significantly larger in C++0x, exposing many more
-facilities than a user is likely to need through there own
-header, simply to declare the necessary specialization.
-There should be a smaller header available for users to
-make the necessary customization.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Provide a tiny forwarding header for important
-functor types in the <tt>&lt;functional&gt;</tt> header that a
-user may want to specialize. This should contain
-the template declaration for <tt>equal_to</tt>, <tt>hash</tt> and
-<tt>less</tt>.
-</p>
-
-<p><i>[
-Rapperswill summary
-]</i></p>
-
-<p>Alisdair: Would recommend NAD unless someone takes the issue. </p>
-
-<p>Daniel: Volunteers to write a paper for this. </p>
-
-<p><i>[
-2010-11-07 Daniel provides a paper available on the Batavia document list
-]</i></p>
-
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-<p>
-Closed as NAD - the consensus was that forwarding headers such as
-<tt>&lt;iosfwd&gt;</tt> do not bring the expected benefits, and are
-not widely used (to the surprise of some active users in the room!).
-Without real experience reporting a benefit, there is no further interest
-in pursuing this issue as an extension - hence NAD rather than NAD Future.
-</p>
-
-
-
-<p><b>Rationale:</b></p><p>No consensus to make a change</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See paper &quot;Forwarding <tt>&lt;functional&gt;</tt> functor templates&quot;
-on the Batavia LWG document list
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1411"></a>1411. Add a compile-time flag to detect <tt>monotonic_clock</tt></h3>
-<p><b>Section:</b> X [time.clock.monotonic] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.monotonic">issues</a> in [time.clock.monotonic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1410">1410</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses DE-20</b></p>
-<p>
-The library component <tt>monotonic_clock</tt> is conditionally
-supported, but no compile-time flag exists that allows
-user-code to query its existence. Further-on there exist no
-portable means to simulate such a query. (To do so, user
-code would be required to add types to namespace
-<tt>std::chrono</tt>.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Provide a compile-time flag (preferably a macro)
-that can be used to query the existence of
-<tt>monotonic_clock</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1413"></a>1413. Specify whether <tt>high_resolution_clock</tt> is a distinct type or a typedef</h3>
-<p><b>Section:</b> 20.12.7.3 [time.clock.hires] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-112</b></p>
-<p>
-What it means for <tt>high_resolution_clock</tt> to be a synonym
-is undefined. If it may or may not be a typedef, then
-certain classes of programs become unportable.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment
-]</i></p>
-
-<p>
-Require that it be a distinct class type.
-</p>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-This is not a defect.  Threre are a number of places in the standard where
-we allow implentations to choose their preferred technique, the most obvious
-example being the <tt>iterator</tt>/<tt>const_iterator</tt> types of <tt>set</tt>.
-</p>
-<p>
-Typically, this means it is not portable to declare function overloads that differ
-only in their use of these types.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1415"></a>1415. Iterator stability bans the short-string optimization</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Requirements on iterators swapping allegiance would
-disallow the small-string optimization.
-</p>
-<p><i>[
-Resolved in Rapperswil by paper N3108.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add an exclusion for <tt>basic_string</tt> to the sentence
-beginning &#8220;Every iterator referring to an
-element...&#8221;. Add a sentence to 21.4.6.8/2 saying
-that iterators and references to string elements
-remain valid, but it is not specified whether they
-refer to the same string or the other string.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1419"></a>1419. <tt>forward_list::erase_after</tt> should return an iterator</h3>
-<p><b>Section:</b> 23.3.4 [forwardlist] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist">issues</a> in [forwardlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-117</b></p>
-<p>
-<tt>forward_list::erase_after</tt> should return an iterator.
-</p>
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See Appendix 1 - Additional Details
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1433"></a>1433. <tt>random_shuffle</tt> and <tt>shuffle</tt> should have consistent signatures</h3>
-<p><b>Section:</b> 25.3.12 [alg.random.shuffle] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.random.shuffle">issues</a> in [alg.random.shuffle].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1432">1432</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-119</b></p>
-<p>
-The functions <tt>random_shuffle</tt> and <tt>shuffle</tt> both take
-arguments providing a source of randomness, but one
-take its argument by rvalue reference, and the other
-requires an lvalue reference. The technical merits of which
-form of argument passing should be settled for this
-specific case, and a single preferred form used
-consistently.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-[DEPENDS ON WHETHER RVALUE OR
-LVALUE REFERENCE IS THE PREFERRED
-FORM]
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1434"></a>1434. For <tt>min/max</tt> functions replace variadic arguments by <tt>initializer_list</tt> argument</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-122</b></p>
-<p>
-It was the LWG's intent in Pittsburgh that N2772 be applied to the WP.
-</p>
-<p><i>[
-Resolved in Rapperswil by paper N3106.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Apply N2772 to the WP.</p>
-
-
-
-
-
-<hr>
-<h3><a name="1442"></a>1442. "happens-before" should be "synchronizes-with"</h3>
-<p><b>Section:</b> 30 [thread] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Canada <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread">issues</a> in [thread].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1443">1443</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CA-9, GB-122</b></p>
-
-<p><i>[CA-9:]</i></p>
-
-<p>
-Imposed happens-before edges should be in
-synchronizes-with<br/>
-Each use of the words "happens-before" should be
-replaced with the words "synchronizes-with" in the
-following sentences:<br/>
-27.2.3p2<br/>
-30.3.1.2p6<br/>
-30.3.1.5p7<br/>
-30.6.4p7<br/>
-30.6.9p5<br/>
-30.6.10.1p23<br/>
-Rationale: Happens-before is defined in 1.10p11 in a way
-that (deliberately) does not make it explicitly transitively
-closed. Adding edges to happens-before directly, as in
-27.2.3p2 etc., does not provide transitivity with
-sequenced-before or any other existing happens-before
-edge. This lack of transitivity seems to be unintentional.
-</p>
-
-<p><i>[GB-122]</i></p>
-
-
-<p>At various points in the standard new edges are added to
-happens-before, for example 27.2.3:2 adds happens-before edges between
-writes and reads from a stream:</p>
-
-<p>If one thread makes a library call a that writes a value to a
-stream and, as a result, another thread reads this value from the
-stream through a library call b such that this does not result in a
-data race, then a happens before b.</p>
-
-<p>Happens-before is defined in 1.10:11 in a deliberate way that makes it
-not explicitly transitively closed. Adding edges to happens-before
-directly, as in 27.2.3:2, does not provide transitivity with
-sequenced-before or any other existing happens-before edge. This lack
-of transitivity seems to be unintentional. In order to achieve
-transitivity we suggest each edge be added to
-inter-thread-happens-before as a synchronises-with edge (as per
-conversation with Hans Boehm). In the standard, each use of the words
-"happens-before" should be replaced with the words "synchronizes-with"
-in the following sentences:</p>
-
-<p>27.2.3:2,
-30.3.1.2:6,
-30.3.1.5:7,
-30.6.4:7,
-30.6.9:5,
-30.6.10.1:23</p>
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[Beman provided specific wording for the proposed resolution.]</i></p>
-
-
-<p>Change 27.2.3 Thread Safety [iostreams.threadsafety] paragraph 2:</p>
-
-<p>If one thread makes a library call <tt>a</tt> that writes a value to a stream 
-and, as a result, another thread reads this value from the stream through a library 
-call <tt>b</tt> such that this does not result in a data race, then <tt>a</tt> 
-<del>happens before</del> <ins>synchronizes with</ins> <tt>b</tt>.</p>
-
-<p>Change 30.3.1.2 thread constructors [thread.thread.constr] paragraph 6:</p>
-
-<p><i>Synchronization:</i> The invocation of the constructor <del>happens 
-before</del> <ins>synchronizes with</ins> the invocation of the copy of <tt>f</tt>.</p>
-
-<p>Change 30.3.1.5 thread members [thread.thread.member] paragraph 7:</p>
-
-<p><i>Synchronization:</i> The completion of the thread represented by <tt>*this</tt> 
-<del>happens before</del> <ins>synchronizes with</ins> (1.10) <tt>join()</tt> 
-<del>returns</del> <ins>returning</ins>. [ Note: Operations on <tt>*this</tt> 
-are not synchronized. --end note ]</p>
-
-<p>Change 30.6.4 Associated asynchronous state [futures.state] paragraph 7:</p>
-
-<p>Calls to functions that successfully set the stored result of an associated 
-asynchronous state synchronize with (1.10) calls to functions successfully detecting 
-the ready state resulting from that setting. The storage of the result (whether normal 
-or exceptional) into the associated asynchronous state <del>happens before</del> 
-<ins>synchronizes with</ins> (1.10) that state <del>is</del> <ins>being</ins> set to ready.</p>
-
-<p>Change 30.6.9 Function template async [futures.async] paragraph 5:</p>
-
-<p><i>Synchronization:</i> the invocation of <tt>async</tt> <del>happens before</del> 
-<ins>synchronizes with</ins> (1.10) the invocation of <tt>f</tt>. [ <i>Note</i>: this
-statement applies even when the corresponding future object is moved to another thread. &mdash; <i>end
-note</i> ] If the invocation is not deferred, a call to a waiting function on an asynchronous return object
-that shares the associated asynchronous state created by this async call shall block until the associated
-thread has completed. If the invocation is not deferred, the <tt>join()</tt> on the created thread 
-<del>happens before</del> <ins>synchronizes with</ins> (1.10) the first function that successfully 
-detects the ready status of the associated asynchronous state returns or before the function that 
-gives up the last reference to the associated asynchronous state returns, whichever happens first. 
-If the invocation is deferred, the completion of the invocation of the deferred function <del>happens 
-before</del> <ins>synchronizes with</ins> the calls to the waiting functions return.</p>
-
-<p>Change 30.6.10.1 packaged_task member functions [futures.task.members] paragraph 23:</p>
-
-<p><i>Synchronization:</i> a successful call to <tt>operator()</tt> synchronizes with (1.10) a call 
-to any member function of a <tt>future</tt>, <tt>shared_future</tt>, or <tt>atomic_future</tt> object 
-that shares the associated asynchronous state of <tt>*this</tt>. The completion of the invocation 
-of the stored task and the storage of the result (whether normal or exceptional) into the associated 
-asynchronous state <del>happens before</del> <ins>synchronizes with</ins> (1.10) the state <del>is</del> 
-<ins>being</ins> set to ready. [ Note: <tt>operator()</tt> synchronizes and serializes with other 
-functions through the associated asynchronous state. —end note ]</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1443"></a>1443. Imposed happens-before edges are not made transitive</h3>
-<p><b>Section:</b> 30 [thread] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread">issues</a> in [thread].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1442">1442</a></p>
-<p><b>Discussion:</b></p>
-
-
-<p><b>Addresses GB-122</b></p>
-
-<p>At various points in the standard new edges are added to
-happens-before, for example 27.2.3:2 adds happens-before edges between
-writes and reads from a stream:</p>
-
-<p>If one thread makes a library call a that writes a value to a
-stream and, as a result, another thread reads this value from the
-stream through a library call b such that this does not result in a
-data race, then a happens before b.</p>
-
-<p>Happens-before is defined in 1.10:11 in a deliberate way that makes it
-not explicitly transitively closed. Adding edges to happens-before
-directly, as in 27.2.3:2, does not provide transitivity with
-sequenced-before or any other existing happens-before edge. This lack
-of transitivity seems to be unintentional. In order to achieve
-transitivity we suggest each edge be added to
-inter-thread-happens-before as a synchronises-with edge (as per
-conversation with Hans Boehm). In the standard, each use of the words
-"happens-before" should be replaced with the words "synchronizes-with"
-in the following sentences:</p>
-
-<p>27.2.3:2,
-30.3.1.2:6,
-30.3.1.5:7,
-30.6.4:7,
-30.6.9:5,
-30.6.10.1:23</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Request the concurrency working group to
-determine if changes are needed
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1444"></a>1444. <tt>OFF_T</tt> is not defined</h3>
-<p><b>Section:</b> 27.5.4.2 [fpos.operations] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fpos.operations">issues</a> in [fpos.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1414">1414</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses GB-123</b></p>
-<p>
-Several rows in table 124 specify a Return type of
-'OFF_T', which does not appear to be a type defined in
-this standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Resolve outstanding references to the removed type 'OFF_T'.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1446"></a>1446. Move and swap for I/O streams</h3>
-<p><b>Section:</b> 27.7 [iostream.format] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.format">issues</a> in [iostream.format].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-138</b></p>
-
-<p>
-For istreams and ostreams, the move-constructor does
-not move-construct, the move-assignment operator does
-not move-assign, and the swap function does not swap
-because these operations do not manage the <tt>rdbuf()</tt>
-pointer. Useful applications of these operations are
-prevented both by their incorrect semantics and because
-they are protected.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-In short: reverse the resolution of issue 900, then
-change the semantics to move and swap the
-<tt>rdbuf()</tt> pointer. Add a new protected constructor
-that takes an rvalue reference to a stream and a
-pointer to a streambuf, a new protected <tt>assign()</tt>
-operator that takes the same arguments, and a
-new protected <tt>partial_swap()</tt> function that doesn't
-swap <tt>rdbuf()</tt>.
-See Appendix 1 - Additional Details
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3179.pdf">n3179</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia
-]</i></p>
-
-<p>
-Closed as NAD.
-</p>
-<blockquote><p>
-The Library Working Group reviewed <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3179.pdf">n3179</a> and 
-concluded that this change alone was not sufficient, as it would require changes to some of the derived stream types in the library.  
-The preference is to not make such a broad fix, and retain the current semantics. This is closed as NAD rather than NAD future as it 
-will be difficult to rename the new functions introduced in the C++0x revision of the standard at a later date.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1451"></a>1451. <tt>regex</tt> should support allocators</h3>
-<p><b>Section:</b> 28.8 [re.regex] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex">issues</a> in [re.regex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-active.html#1396">1396</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US-141</b></p>
-
-<p>
-<tt>std::basic_regex</tt> should have an allocator for all the
-reasons that a <tt>std::string</tt> does. For example, I can use
-<tt>boost::interprocess</tt> to put a <tt>string</tt> or <tt>vector</tt> 
-in shared memory, but not a regex.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add allocators to regexes; see paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3171.pdf">N3171</a>
-in the pre-Batavia mailing.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1452"></a>1452. "target sequence" is not defined</h3>
-<p><b>Section:</b> 28.10.4 [re.results.acc] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results.acc">issues</a> in [re.results.acc].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-125</b></p>
-
-<p>The term "target sequence" is not defined (28.10.4 [re.results.acc] p. 2).</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Replace "target sequence" with "string being searched/matched"
-</p>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-<p>
-The proposed resolution looks incomplete to me, there are more normative
-usages of the term <em>target sequence</em> in clause 28, e.g.
-28.12.2 [re.tokiter] p. 7.
-</p>
-
-<p><i>[2011-03-22 Madrid meeting: Moved to NAD]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p><p>Standard is correct as written</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Wording changes are against N3126. They are intended not to conflict with the wording changes
-suggested by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3158.html">n3158</a>.
-</p>
-<p>
-Change 28.10.4 [re.results.acc] p. 2 as indicated:
-</p>
-<blockquote><pre>
-difference_type position(size_type sub = 0) const;
-</pre><blockquote><p>
-2 <em>Returns</em>: The distance from the start of the <del>target sequence</del><ins>string being matched</ins> to <tt>(*this)[sub].first</tt>.
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1454"></a>1454. Ensure C compatibility for atomics</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1455">1455</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses GB-128</b></p>
-<p>
-WG14 has made some late changes to their specification
-of atomics, and care should be taken to ensure that we
-retain a common subset of language/library syntax to
-declare headers that are portable to both languages.
-Ideally, such headers would not require users to define
-their own macros, especially not macros that map to
-keywords (which remains undefined behaviour)
-</p>
-
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Depends on result of the review of WG14 work,
-which is expected to be out to ballot during the
-time wg21 is resolving its own ballot comments.
-Liaison may also want to file comments in WG14
-to ensure compatibity from both sides.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1456"></a>1456. Missing fixed-size <tt>atomic_</tt> typedefs</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-129</b></p>
-<p>
-Table 143 lists the typedefs for various atomic types
-corresponding to the various standard integer typedefs,
-such as <tt>atomic_int_least8_t</tt> for <tt>int_least8_t</tt>, and
-<tt>atomic_uint_fast64_t</tt> for <tt>uint_fast64_t</tt>. However, there are
-no atomic typedefs corresponding to the fixed-size
-standard typedefs <tt>int8_t</tt>, <tt>int16_t</tt>, and so forth.
-</p>
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[
-2011-02-15 Anthony corrects numbering/naming for N3225, Howard suggests improvement for the position
-of '(optional)', Daniel reorders rows in harmony to remaining entries and suggests specific optionality
-comments:
-]</i></p>
-
-
-<p><i>[2011-02-16 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p>
-
-<p><i>[2011-03-16: Hans reopenes and comments]</i></p>
-
-
-<p>WG14 briefly discussed LWG 1456. It turns out that they had previously made a conscious decision not to make a 
-similar change. If C++ would deviate, this would introduce a C divergence.
-<p/>
-We should reopen the issue and, in my opinion, probably resolve it as NAD instead.  This is in a part of the standard 
-that is there mostly for C compatibility, so introducing divergence here seems to make no sense.
-</p>
-
-<p><i>[2011-03-24 Madrid]</i></p>
-
-<p><b>Rationale:</b></p><p>
-WG14 does not require these typedefs, and we see no reason to be gratuitously different.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following entries to table 143:
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 146 &mdash; <tt>atomic</tt> <tt>&lt;inttypes.h&gt;</tt> typedefs</caption>
-<tr>
-<th>Atomic typedef</th>
-<th><tt>&lt;inttypes.h&gt;</tt> type</th>
-</tr>
-<tr>
-<td><tt>...</tt></td>
-<td><tt>...</tt></td>
-</tr>
-<tr>
-<td><tt>atomic_intmax_t</tt></td>
-<td><tt>intmax_t</tt></td>
-</tr>
-<tr>
-<td><tt>atomic_uintmax_t</tt></td>
-<td><tt>uintmax_t</tt></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_int8_t&nbsp;</tt>// <em>iff <tt>int8_t</tt> is provided</em></ins></td>
-<td><ins><tt>int8_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_uint8_t&nbsp;</tt>// <em>iff <tt>uint8_t</tt> is provided</em></ins></td>
-<td><ins><tt>uint8_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_int16_t&nbsp;</tt>// <em>iff <tt>int16_t</tt> is provided</em></ins></td>
-<td><ins><tt>int16_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_uint16_t&nbsp;</tt>// <em>iff <tt>uint16_t</tt> is provided</em></ins></td>
-<td><ins><tt>uint16_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_int32_t&nbsp;</tt>// <em>iff <tt>int32_t</tt> is provided</em></ins></td>
-<td><ins><tt>int32_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_uint32_t&nbsp;</tt>// <em>iff <tt>uint32_t</tt> is provided</em></ins></td>
-<td><ins><tt>uint32_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_int64_t&nbsp;</tt>// <em>iff <tt>int64_t</tt> is provided</em></ins></td>
-<td><ins><tt>int64_t</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>atomic_uint64_t&nbsp;</tt>// <em>iff <tt>uint64_t</tt> is provided</em></ins></td>
-<td><ins><tt>uint64_t</tt></ins></td>
-</tr>
-</table>
-</blockquote> 
-
-
-
-
-
-<hr>
-<h3><a name="1458"></a>1458. Overlapping evaluations are allowed</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-active.html#1459">1459</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses GB-131</b></p>
-
-<p>
-29.4 [atomics.lockfree] p.8 states:
-</p>
-<blockquote><p>
-An atomic store shall only store a value that has been computed
-from constants and program input values by a finite sequence of
-program evaluations, such that each evaluation observes the values
-of variables as computed by the last prior assignment in the
-sequence.
-</p></blockquote>
-<p>
-... but 1.9 [intro.execution] p.13 states:
-</p>
-<blockquote><p>
-If A is not sequenced before B and B is not sequenced before A,
-then A and B are unsequenced. [ <em>Note</em>: The execution of unsequenced
-evaluations can overlap. &mdash; <em>end note</em> ]
-</p></blockquote>
-<p>
-Overlapping executions can make it impossible to construct the sequence
-described in 29.4 [atomics.lockfree] p.8. We are not sure of the intention here and do not
-offer a suggestion for change, but note that 29.4 [atomics.lockfree] p.8 is the condition
-that prevents out-of-thin-air reads.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Request the concurrency working group to
-determine if changes are needed. Consider
-changing the use of "sequence" in 29.4 [atomics.lockfree]
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1461"></a>1461. Rename all <tt>ATOMIC_*</tt> macros as <tt>STD_ATOMIC_*</tt></h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Canada <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CA-1</b></p>
-<p>
-All <tt>ATOMIC_</tt>... macros should be prefixed with <tt>STD_</tt> as
-in <tt>STD_ATOMIC_</tt>... to indicate they are <tt>STD</tt> macros as
-other standard macros. The rationale that they all seem too long seems weak.
-</p>
-
-<p><i>[2011-03-06: Daniel adapts suggested wording to N3242 and comments]</i></p>
-
-
-<p>I suggest to declare this issue as NAD. Reason for this suggestion is, that
-C1x is currently going to suggest exactly the same macros as additions to
-header <tt>&lt;stdatomic.h&gt;</tt>, therefore C++0x should not define a
-whole new set. I'm making this suggestion with the understanding that
-C1x is intending to keep in sync in this regard. For example, the most
-<a href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf">recent 
-draft of C1x</a> does contain the macro <tt>ATOMIC_ADDRESS_LOCK_FREE</tt>
-which has recently been removed from the C++ working draft.</p>
-
-<p><i>[2011-03-24]</i></p>
-
-<p><b>Rationale:</b></p><p>
-C is not going to change the name of these macros, and it is
-important they have the same name for compatibility
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Change sub-clause 29.2 [atomics.syn] as indicated:</p>
-<blockquote><pre>
-[..]
-// <em>[atomics.lockfree], lock-free property</em>
-#define <ins>STD_</ins>ATOMIC_CHAR_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_CHAR16_T_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_CHAR32_T_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_WCHAR_T_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_SHORT_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_INT_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_LONG_LOCK_FREE <em>unspecified</em>
-#define <ins>STD_</ins>ATOMIC_LLONG_LOCK_FREE <em>unspecified</em>
-
-// <em>[atomics.types.operations.req], operations on atomic types</em>
-#define <ins>STD_</ins>ATOMIC_VAR_INIT(value) <em>see below</em>
-[..]
-</pre></blockquote>
-</li>
-<li>
-<p>Change 29.4 [atomics.lockfree] p. 1 as indicated:</p>
-<blockquote><pre>
-#define <ins>STD_</ins>ATOMIC_CHAR_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_CHAR16_T_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_CHAR32_T_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_WCHAR_T_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_SHORT_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_INT_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_LONG_LOCK_FREE <em>implementation-defined</em>
-#define <ins>STD_</ins>ATOMIC_LLONG_LOCK_FREE <em>implementation-defined</em>
-</pre><blockquote>
-<p>
-1 The <tt><ins>STD_</ins>ATOMIC_..._LOCK_FREE</tt> macros indicate the lock-free property of the corresponding atomic types, [..]
-</p></blockquote></blockquote>
-</li>
-<li>
-<p>Change 29.6.5 [atomics.types.operations.req] p. 6 as indicated:</p>
-<blockquote><pre>
-#define <ins>STD_</ins>ATOMIC_VAR_INIT(value) <em>see below</em>
-</pre><blockquote><p>
-5 <em>Remarks</em>: The macro expands to a token sequence suitable for constant initialization 
-an atomic variable of static storage duration of a type that is initialization-compatible
-with <i>value</i>. [ <i>Note</i>: This operation may need to initialize locks. &mdash; <i>end note</i> ] 
-Concurrent access to the variable being initialized, even via an atomic operation, constitutes 
-a data race. [ <em>Example:</em>
-</p><blockquote><pre>
-atomic&lt;int&gt; v = <ins>STD_</ins>ATOMIC_VAR_INIT(5);
-</pre></blockquote>
-<p>&mdash; <em>end example</em> ]</p>
-</blockquote></blockquote>
-</li>
-<li>
-<p>Change 29.7 [atomics.flag] p. 1+4 as indicated:</p>
-<blockquote><pre>
-namespace std {
-  [..]
-  #define <ins>STD_</ins>ATOMIC_FLAG_INIT <em>see below</em>
-}
-</pre><blockquote><p>
-[..]
-4 The macro <tt><ins>STD_</ins>ATOMIC_FLAG_INIT</tt> shall be defined in such a way that it can be used to initialize an object of
-type <tt>atomic_flag</tt> to the clear state. For a static-duration object, that initialization shall be static. It is
-unspecified whether an unitialized <tt>atomic_flag</tt> object has an initial state of set or clear. [ <em>Example:</em>
-</p><blockquote><pre>
-atomic_flag guard = <ins>STD_</ins>ATOMIC_FLAG_INIT;
-</pre></blockquote>
-<p>&mdash; <em>end example</em> ]</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1463"></a>1463. Inconsistent value assignment for <tt>atomic_bool</tt></h3>
-<p><b>Section:</b> X [atomics.types.integral] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.integral">issues</a> in [atomics.types.integral].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1462">1462</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US-157</b></p>
-
-<p>
-<tt>atomic_bool</tt> has a <tt>volatile</tt> assignment operator but not a
-non-<tt>volatile</tt> operator. The other integral types have both.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a non-volatile assignment operator to <tt>atomic_bool</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1470"></a>1470. &quot;Same-ness&quot; curiosities</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1474">1474</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-165</b></p>
-
-<p>
-According to 29.6 [atomics.types.operations] p. 23:
-</p>
-<blockquote><p>
-&#8220;is the same that same as that of&#8221; is not grammatical (and is not clear)
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1471"></a>1471. Default constructor of atomics needs specification</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-168</b></p>
-
-<p>
-29.6 [atomics.types.operations] around p. 4: The definition of the default constructor needs exposition.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert a new general prototype description following the current 29.6 [atomics.types.operations] p. 3 as indicated:
-</p>
-<blockquote><p>
-3 [<em>Note</em>: Many operations are volatile-qualified. The “volatile as device register” semantics have not changed
-in the standard. This qualification means that volatility is preserved when applying these operations to
-volatile objects. It does not mean that operations on non-volatile objects become volatile. Thus, volatile
-qualified operations on non-volatile objects may be merged under some conditions. -- <em>end note</em>]
-</p></blockquote>
-<blockquote><pre>
-<ins>A::A() = default;</ins>
-</pre><blockquote><p>
-<ins>? <em>Effects</em>: Leaves the atomic object in an uninitialized state.
-[<em>Note</em>: These semantics ensure compatiblity with <tt>C</tt>. -- <em>end note</em>]</ins>
-</p></blockquote></blockquote>
-<blockquote><pre>
-constexpr A::A(C desired);
-[..]
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1472"></a>1472. Incorrect semantics of <tt>atomic_init</tt></h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-171</b></p>
-
-<p>
-As of 29.6 [atomics.types.operations] p. 7:
-<p/>
-The <tt>atomic_init</tt> definition "Non-atomically assigns the
-value" is not quite correct, as the <tt>atomic_init</tt> purpose is
-initialization.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change  29.6 [atomics.types.operations] p. 7 as indicated:
-</p>
-<blockquote><pre>
-void atomic_init(volatile A *object, C desired);
-void atomic_init(A *object, C desired);
-</pre><blockquote><p>
-7 <em>Effects</em>: <del>Non-atomically assigns the value desired to <tt>*object</tt></del><ins>Initializes <tt>*object</tt> with value
-<tt>desired</tt></ins>. Concurrent access from another thread, even via an atomic operation, constitutes a data race.
-<ins>[<em>Note</em>: This function should only be applied to objects that have been default constructed. These semantics ensure
-compatibility with <tt>C</tt>. &mdash; <em>end note</em>]</ins>
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1473"></a>1473. Incomplete memory order specifications</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-172</b></p>
-
-<p>
-As of 29.6 [atomics.types.operations] p. 9, 13, 17, 20:
-<p/>
-The order specifications are incomplete because the non-<tt>_explicit</tt>
-functions do not have such parameters.
-<p/>
-Add a new sentence: "If the program does not specify an order, it shall be
-<tt>memory_order_seq_cst</tt>." Or perhaps: "The non-_explicit
-non-member functions shall affect memory as though they were _explicit with
-<tt>memory_order_seq_cst</tt>."
-</p>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-The Concurrency subgroup reviewed this, and deemed it NAD according to
-29.6 [atomics.types.operations] paragraph 2, bullet 4. 
-</p>
-
-<p><b>Rationale:</b></p><p>The working paper is correct as written.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 29.6 [atomics.types.operations] p. 9 as indicated:
-<blockquote><pre>
-void atomic_store(volatile A* object, C desired);
-void atomic_store(A* object, C desired);
-void atomic_store_explicit(volatile A *object, C desired, memory_order order);
-void atomic_store_explicit(A* object, C desired, memory_order order);
-void A::store(C desired, memory_order order = memory_order_seq_cst) volatile;
-void A::store(C desired, memory_order order = memory_order_seq_cst);
-</pre><blockquote><p>
-8 <em>Requires</em>: The order argument shall not be <tt>memory_order_consume</tt>, <tt>memory_order_acquire</tt>, nor
-<tt>memory_order_acq_rel</tt>.
-<p/>
-9 <em>Effects</em>: Atomically replaces the value pointed to by <tt>object</tt> or by this with the value of <tt>desired</tt>.
-Memory is affected according to the value of <tt>order</tt>. <ins>If the program does not specify an order, it shall be
-<tt>memory_order_seq_cst</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-<li>Change 29.6 [atomics.types.operations] p. 13 as indicated:
-<blockquote><pre>
-C atomic_load(const volatile A* object);
-C atomic_load(const A* object);
-C atomic_load_explicit(const volatile A* object, memory_order);
-C atomic_load_explicit(const A* object, memory_order);
-C A::load(memory_order order = memory_order_seq_cst) const volatile;
-C A::load(memory_order order = memory_order_seq_cst) const;
-</pre><blockquote><p>
-12 <em>Requires</em>: The order argument shall not be <tt>memory_order_release</tt> nor <tt>memory_order_acq_rel</tt>.
-<p/>
-13 <em>Effects</em>: Memory is affected according to the value of <tt>order</tt>. <ins>If the program does not specify an order, it shall be
-<tt>memory_order_seq_cst</tt>.</ins>
-<p/>
-14 <em>Returns</em>: Atomically returns the value pointed to by <tt>object</tt> or by <tt>this</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-<li>Change 29.6 [atomics.types.operations] p. 17 as indicated:
-<blockquote><pre>
-C atomic_exchange(volatile A* object, C desired);
-C atomic_exchange(A* object, C desired);
-C atomic_exchange_explicit(volatile A* object, C desired, memory_order);
-C atomic_exchange_explicit(A* object, C desired, memory_order);
-C A::exchange(C desired, memory_order order = memory_order_seq_cst) volatile;
-C A::exchange(C desired, memory_order order = memory_order_seq_cst);
-</pre><blockquote><p>
-17 <em>Effects</em>: Atomically replaces the value pointed to by <tt>object</tt> or by <tt>this</tt> with <tt>desired</tt>. Memory
-is affected according to the value of <tt>order</tt>. These operations are atomic read-modify-write operations
-(1.10). <ins>If the program does not specify an order, it shall be <tt>memory_order_seq_cst</tt>.</ins>
-<p/>
-18 <em>Returns</em>: Atomically returns the value pointed to by <tt>object</tt> or by <tt>this</tt> immediately before the effects.
-</p>
-</blockquote></blockquote>
-</li>
-<li>Change 29.6 [atomics.types.operations] p. 20 as indicated:
-<blockquote><pre>
-bool atomic_compare_exchange_weak(volatile A* object, C * expected, C desired);
-bool atomic_compare_exchange_weak(A* object, C * expected, C desired);
-bool atomic_compare_exchange_strong(volatile A* object, C * expected, C desired);
-bool atomic_compare_exchange_strong(A* object, C * expected, C desired);
-bool atomic_compare_exchange_weak_explicit(volatile A* object, C * expected, C desired,
-  memory_order success, memory_order failure);
-bool atomic_compare_exchange_weak_explicit(A* object, C * expected, C desired,
-  memory_order success, memory_order failure);
-bool atomic_compare_exchange_strong_explicit(volatile A* object, C * expected, C desired,
-  memory_order success, memory_order failure);
-bool atomic_compare_exchange_strong_explicit(A* object, C * expected, C desired,
-  memory_order success, memory_order failure);
-bool A::compare_exchange_weak(C &amp; expected, C desired,
-  memory_order success, memory_order failure) volatile;
-bool A::compare_exchange_weak(C &amp; expected, C desired,
-  memory_order success, memory_order failure);
-bool A::compare_exchange_strong(C &amp; expected, C desired,
-  memory_order success, memory_order failure) volatile;
-bool A::compare_exchange_strong(C &amp; expected, C desired,
-  memory_order success, memory_order failure);
-bool A::compare_exchange_weak(C &amp; expected, C desired,
-  memory_order order = memory_order_seq_cst) volatile;
-bool A::compare_exchange_weak(C &amp; expected, C desired,
-  memory_order order = memory_order_seq_cst);
-bool A::compare_exchange_strong(C &amp; expected, C desired,
-  memory_order order = memory_order_seq_cst) volatile;
-bool A::compare_exchange_strong(C &amp; expected, C desired,
-  memory_order order = memory_order_seq_cst);
-</pre><blockquote><p>
-19 <em>Requires</em>: The <tt>failure</tt> argument shall not be <tt>memory_order_release</tt> nor <tt>memory_order_acq_rel</tt>.
-The <tt>failure</tt> argument shall be no stronger than the success argument.
-<p/>
-20 <em>Effects</em>: Atomically, compares the contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt> for equality
-with that in <tt>expected</tt>, and if true, replaces the contents of the memory pointed to by <tt>object</tt> or by
-<tt>this</tt> with that in <tt>desired</tt>, and if false, updates the contents of the memory in expected with the
-contents of the memory pointed to by <tt>object</tt> or by <tt>this</tt>. Further, if the comparison is true, memory
-is affected according to the value of <tt>success</tt>, and if the comparison is false, memory is affected
-according to the value of <tt>failure</tt>. When only one <tt>memory_order</tt> argument is supplied, the value of
-<tt>success</tt> is <tt>order</tt>, and the value of <tt>failure</tt> is <tt>order</tt> except that a value of 
-<tt>memory_order_acq_rel</tt> shall be replaced by the value <tt>memory_order_acquire</tt> and a value of 
-<tt>memory_order_release</tt> shall be replaced by the value <tt>memory_order_relaxed</tt>. <ins>If 
-the program does not specify an order, it shall be <tt>memory_order_seq_cst</tt>.</ins> If the operation returns <tt>true</tt>, 
-these operations are atomic read-modify-write operations (1.10). Otherwise, these operations are atomic load operations.
-<p/>
-[..]
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1475"></a>1475. weak compare-and-exchange confusion II</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1474">1474</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-23</b></p>
-
-<p>
-29.6 [atomics.types.operations] p. 23: The first sentence has non-English syntax.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment:
-]</i></p>
-
-
-<p>
-Change to "The weak compare-and-exchange
-operations may fail spuriously, that is, return false
-while leaving the contents of memory pointed to
-by expected unchanged."
-</p>
-
-<p><i>[
-Daniel translates NB comment in a proposed resolution
-]</i></p>
-
-
-<p>Change 29.6 [atomics.types.operations] p. 23 as indicated:</p>
-
-<blockquote><p>
-23 <em>Remark</em>: <del>The weak compare-and-exchange operations may fail spuriously, that is, return false while
-leaving the contents of memory pointed to by <tt>expected</tt> before the operation is the same that same
-as that of the <tt>object</tt> and the same as that of <tt>expected</tt> after the operation</del><ins>The weak 
-compare-and-exchange operations may fail spuriously, that is, return false while leaving the contents of memory 
-pointed to by <tt>expected</tt> unchanged.</ins>. [ <em>Note</em>: This spurious failure enables implementation of 
-compare-and-exchange on a broader class of machines, e.g., loadlocked store-conditional machines. A consequence of 
-spurious failure is that nearly all uses of weak compare-and-exchange will be in a loop.
-<p/>
-When a compare-and-exchange is in a loop, the weak version will yield better performance on some
-platforms. When a weak compare-and-exchange would require a loop and a strong one would not, the
-strong one is preferable. &mdash; <em>end note</em> ]
-</p></blockquote>
-
-<p><i>[
-See <a href="lwg-defects.html#1474">1474</a> for the proposed resolution
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1476"></a>1476. Meaningless specification of spurious failure</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1474">1474</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US-177</b></p>
-
-<p>
-The first sentence of this paragraph doesn't make sense.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment
-]</i></p>
-
-<p>
-Figure out what it's supposed to say, and say it.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1477"></a>1477. weak compare-and-exchange confusion III</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Dup">Dup</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Dup">Dup</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-defects.html#1474">1474</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-135</b></p>
-
-<p>
-The first sentence of 29.6 [atomics.types.operations] p.23 was changed by n2992 but
-now makes no sense: "that is, return <tt>false</tt> while leaving
-the contents of memory pointed to by <tt>expected</tt> before the
-operation is the same that same as that of the <tt>object</tt> and
-the same as that of <tt>expected</tt> after the operation."
-There's a minor editorial difference between n2992 ("is
-that same as that" vs "is the same that same as that") but
-neither version makes sense.
-Also, the remark talks about "<tt>object</tt>" which should
-probably be "<tt>object</tt> or <tt>this</tt>" to cover the member functions
-which have no object parameter.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment:
-]</i></p>
-
-<p>
-Fix the Remark to say whatever was intended.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1483"></a>1483. <tt>__STDCPP_THREADS spelling</tt></h3>
-<p><b>Section:</b> 30.3 [thread.threads] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-23</b></p>
-
-<p>
-Predefined macros usually start and end with two
-underscores, see 16.8 and FDIS 29124 = WG21 N3060
-clause 7. <tt>__STDCPP_THREADS</tt> should blend in.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the macro name to <tt>__STDCPP_THREADS__</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1485"></a>1485. Unclear <tt>thread::id</tt> specification</h3>
-<p><b>Section:</b> 30.3.1.1 [thread.thread.id] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.id">issues</a> in [thread.thread.id].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-184</b></p>
-<p>
-It is unclear when a <tt>thread::id</tt> ceases to be meaningful.
-The sentence "The library may reuse the value of a
-<tt>thread::id</tt> of a terminated thread that can no longer be
-joined." implies that some terminated threads can be
-joined. It says nothing about detached threads.
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Require a unique <tt>thread::id</tt> for every thread that is
-(1) detached and not terminated or (2) has an associated <tt>std::thread</tt> 
-object.
-</p></blockquote>
-
-<p><i>[
-2010-11-22 Howard Hinnant observes
-]</i></p>
-
-
-<p>
-A thread can either be running or terminated. Additionally a thread can be joined, detached, or neither.  
-These combine into the five possible states shown in this table:
-</p>
-
-<table border="1">
-<tr>
-<th></th><th>Running</th><th>Terminated</th>
-</tr>
-<tr>
-<th>Neither joined nor detached</th><td>shall not reuse id</td><td>shall not reuse id</td>
-</tr>
-<tr>
-<th>detached</th><td>shall not reuse id</td><td>may reuse id</td>
-</tr>
-<tr>
-<th>joined</th><td>impossible state</td><td>may reuse id</td>
-</tr>
-</table>
-<p>
-Only if a thread is neither joined nor detached can it be joined. Or said differently, if a 
-thread has already been joined or detached, then it can not be joined. The sentence:
-</p>
-<blockquote><p>
-The library may reuse the value of a <tt>thread::id</tt> of a terminated thread that can no longer be joined.
-</p></blockquote>
-<p>
-precisely defines the two states shown in the above table where a thread::id may be reused.
-</p>
-<p>
-The following program illustrates all of the possibilities:
-</p>
-<blockquote><pre>
-#include &lt;mutex>
-#include &lt;thread>
-#include &lt;iostream>
-#include &lt;chrono>
-
-std::mutex mut;
-
-void f()
-{
-   std::lock_guard&lt;std::mutex&gt; _(mut);
-   std::cout &lt;&lt; "f id = " &lt;&lt; std::this_thread::get_id() &lt;&lt; " terminating\n";
-}
-
-void g()
-{
-   std::lock_guard&lt;std::mutex&gt; _(mut);
-   std::cout &lt;&lt; "g id = " &lt;&lt; std::this_thread::get_id() &lt;&lt; " terminating\n";
-}
-
-int main()
-{
-   std::cout &lt;&lt; "main id = " &lt;&lt; std::this_thread::get_id() &lt;&lt; "\n";
-   std::thread t1(f);
-   std::thread(g).detach();
-   std::this_thread::sleep_for(std::chrono::seconds(1));
-   std::cout &lt;&lt; "g's thread::id can be reused here because g has terminated and is detached.\n";
-   std::cout &lt;&lt; "f's thread::id can't be reused here because f has terminated but is still joinable.\n";
-   std::cout &lt;&lt; "f id = " &lt;&lt; t1.get_id() &lt;&lt; "\n";
-   t1.join();
-   std::cout &lt;&lt; "f's thread::id can be reused here because f has terminated and is joined.\n";
-   std::cout &lt;&lt; "f id = " &lt;&lt; t1.get_id() &lt;&lt; "\n";
-}
-
-main id = 0x7fff71197ca0
-f id = 0x100381000 terminating
-g id = 0x100581000 terminating
-g's thread::id can be reused here because g has terminated and is detached.
-f's thread::id can't be reused here because f has terminated but is still joinable.
-f id = 0x100381000
-f's thread::id can be reused here because f has terminated and is joined.
-f id = 0x0
-</pre></blockquote>
-
-<p><i>[2011-02-11 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively NAD after 5 votes.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1486"></a>1486. Value of <tt>this_thread::get_id()</tt> underspecified for detached thread</h3>
-<p><b>Section:</b> 30.3.2 [thread.thread.this] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.this">issues</a> in [thread.thread.this].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-24</b></p>
-<p>
-What would be the value <tt>this_thread::get_id()</tt> when called from a detached thread?
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Add some text to clarify that <tt>get_id()</tt> still returns the same value even after detaching.
-</p>
-
-<p><i>[
-2010-11-22 Howard Hinnant observes
-]</i></p>
-
-
-<p>
-30.3.2 [thread.thread.this]/1 contains the following sentence describing <tt>this_thread::get_id()</tt>:
-</p>
-
-<blockquote><p>
-... No other thread of execution shall have this id and this thread of execution shall always have this id.
-</p></blockquote>
-
-<p>I don't object to adding "even if detached" to this sentence, but it seems unnecessary to me. "Always" means always.</p>
-
-<p><i>[2011-02-11 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively NAD after 5 votes.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1489"></a>1489. <tt>unlock</tt> functions and unlock mutex requirements are inconsistent</h3>
-<p><b>Section:</b> 30.4 [thread.mutex] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex">issues</a> in [thread.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-26</b></p>
-
-<p>
-Specifications of <tt>unlock</tt> member functions and <tt>unlock</tt>
-mutex requirements are inconsistent wrt to exceptions and
-pre- and postconditions.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-<tt>unlock</tt> should specifiy the precondition that the
-current thread "owns the lock", this will make calls
-without holding the locks "undefined behavior".
-<tt>unlock</tt> in  [mutex.requirements] should either be
-<tt>noexcept(true)</tt> or be allowed to throw
-<tt>system_error</tt> like <tt>unique_lock::unlock</tt>, or the latter
-should be <tt>nothrow(true)</tt> and have the precondition
-<tt>owns == true</tt>.
-Furthermore <tt>unique_lock</tt>'s postcondition is wrong
-in the case of a recursive mutex where <tt>owns</tt>
-might stay true, when it is not the last <tt>unlock</tt>
-needed to be called.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1495"></a>1495. Condition variable <tt>wait_for</tt> return value insufficient</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-191</b></p>
-
-<p>
-The condition variable <tt>wait_for</tt> returning <tt>cv_status</tt> is insufficient.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Return a duration of timeout remaining instead.
-See Appendix 1 of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3141.pdf">n3141</a> - Additional Details, p. 211
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1496"></a>1496. <tt>condition_variable</tt> not implementable</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-28</b></p>
-
-<p>
-Requiring <tt>wait_until</tt> makes it impossible to implement
-<tt>condition_variable</tt> correctly using respective objects
-provided by the operating system (i.e. implementing the
-native_handle() function) on many platforms (e.g. POSIX,
-Windows, MacOS X) or using the same object as for the
-condition variable proposed for C.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Remove the <tt>wait_until</tt> functions or make them at least conditionally supported.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1500"></a>1500. Consider removal of <tt>native_handle()</tt></h3>
-<p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-32</b></p>
-
-<p>
-Given that the lock type can be something the underlying
-doesn't know 'native_handle()' is probably
-unimplementable on essentially all platforms.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Consider the removal of 'native_handle()'.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1503"></a>1503. "associated asynchronous state" must go</h3>
-<p><b>Section:</b> 30.6.4 [futures.state] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.state">issues</a> in [futures.state].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-35</b></p>
-<p>
-The term "associated asynchronous state" is long, ugly and misleading terminology. When 
-introduced we agreed upon that we should come up with a better name. Here it is: 
-"liaison state". Since the state is hidden and provides synchronization of a 
-<tt>future</tt> with its corresponding <tt>promise</tt>, we believe "liaison state" is 
-a much better and shorter name (liaison ~ (typically hidden) relationship)
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Change all occurrences of "associated
-asynchronous state" to "liaison state".
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>The project editor may supply a more appopriate term, or use "liaison state",
-at his own discretion.</p>
-
-
-
-
-
-<hr>
-<h3><a name="1506"></a>1506. <tt>set_exception</tt> with a null pointer</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-198</b></p>
-<p>
-<tt>promise::set_exception</tt> can be called with a null pointer,
-but none of the descriptions of the <tt>get()</tt> functions for the
-three types of futures say what happens for this case.
-</p>
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following sentence to the end of
-30.6.5/22: The behavior of a program that calls
-<tt>set_exception</tt> with a null pointer is undefined.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1509"></a>1509. No restriction on calling <tt>future::get</tt> more than once</h3>
-<p><b>Section:</b> X [futures.atomic_future] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.atomic_future">issues</a> in [futures.atomic_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-202</b></p>
-<p>
-The note in this paragraph says "unlike <tt>future</tt>, calling <tt>get</tt>
-more than once on the same <tt>atomic_future</tt> object is well
-defined and produces the result again." There is nothing
-in <tt>future</tt> that says anything negative about calling <tt>get</tt>
-more than once.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Remove this note, or add words to the
-requirements for future that reflect what this note
-says.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1510"></a>1510. Should be undefined behaviour to call <tt>atomic_future</tt> operations unless <tt>valid()</tt></h3>
-<p><b>Section:</b> X [futures.atomic_future] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.atomic_future">issues</a> in [futures.atomic_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-203</b></p>
-<p>
-Both <tt>future</tt> and <tt>shared_future</tt> specify that calling most
-member functions on an object for which <tt>valid() == false</tt>
-produces undefined behavior. There is no such statement
-for <tt>atomic_future</tt>.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Add a new paragraph after X [futures.atomic_future]/2 with the same words as
-30.6.7 [futures.shared_future]/3.
-</p>
-
-<p><i>[
-2010-11-02 Daniel translates proposed changes into specific deltas and comments:
-]</i></p>
-
-
-<blockquote><p>
-While applying the wording, I notice that 30.6.7 [futures.shared_future]/3 does
-speak of the move-assignment operator, and <em>not</em> of the copy-assignment operator.
-<tt>atomic_future</tt> obviously needs this to be true for the copy-assignment operator,
-but I strongly assume that <tt>shared_future</tt> needs to mention both special member
-assignment operators in this paragraph. To keep this consistent, the following P/R also
-provides wording to fix the corresponding location for <tt>shared_future</tt>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 30.6.7 [futures.shared_future]/3 as indicated:
-<blockquote><p>
-3 The effect of calling any member function other than the destructor<ins>, the 
-copy-assignment operator</ins>, the move-assignment operator, or <tt>valid()</tt> 
-on a <tt>shared_future</tt> object for which <tt>valid() == false</tt> is undefined.
-</p></blockquote>
-</li>
-<li>Following X [futures.atomic_future]/2, add a new paragraph:
-<blockquote><p>
-<ins>? The effect of calling any member function other than the destructor, the copy-assignment operator, or <tt>valid()</tt>
-on a <tt>atomic_future</tt> object for which <tt>valid() == false</tt> is undefined.</ins>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1511"></a>1511. Synchronize the move-constructor for <tt>atomic_future</tt></h3>
-<p><b>Section:</b> X [futures.atomic_future] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.atomic_future">issues</a> in [futures.atomic_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-204</b></p>
-<p>
-According to the definition of <tt>atomic_future</tt>, all members
-of <tt>atomic_future</tt> are synchronizing except constructors.
-However, it would probably be appropriate for a move
-constructor to be synchronizing on the source object. If
-not, the postconditions on paragraphs 7-8, might not be
-satisfied. This may be applicable if a collection of futures
-are being doled out to a set of threads that process their
-value.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Make the move constructor for atomic future lock
-the source
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1512"></a>1512. Conflict in specification: block or join?</h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-205</b></p>
-<p>
-30.6.8 [futures.async] p. 3: The third sentence says 
-"If the invocation is not deferred, a call to a waiting function 
-on an asynchronous return object that shares the associated asynchronous state
-created by this <tt>async</tt> call shall block until the associated
-thread has completed." The next sentence says "If the
-invocation is not deferred, the <tt>join()</tt> on the created
-thread..." Blocking until a thread completes is not
-necessarily a join.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Decide whether the requirement is to block until
-finished or to call join, and rewrite to match.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2006"></a>2006. <tt>emplace</tt> broken for associative containers</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2010-10-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current definition of <tt>emplace(args)</tt> for associative containers as
-described in Table 99 is:
-</p>
-<blockquote>
-<p>
-<i>Requires</i>: <tt>T</tt> shall be constructible from <tt>args</tt>.
-<p/>
-<i>Effects</i>: Inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> if and only if there is no element
-in the container with key equivalent to the key of <tt>t</tt>.  The <tt>bool</tt>
-component of the returned <tt>pair</tt> is <tt>true</tt> if and only if the
-insertion takes place, and the iterator component of the <tt>pair</tt>
-points to the element with key equivalent to the key of <tt>t</tt>.
-</p>
-</blockquote>
-<p>
-There is similar language in Table 100 for unordered associative containers.
-<p/>
-The first issue is editorial: <tt>T</tt> should be <tt>value_type</tt> throughout
-both tables.
-<p/>
-The major issue is that, if the container is <tt>map</tt>, <tt>multimap</tt>,
-<tt>unordered_map</tt>, or <tt>unordered_multimap</tt>, then the only way to
-construct an object of <tt>value_type</tt> is to supply exactly two arguments
-for <tt>Key</tt> and <tt>Value</tt>, a <tt>pair&lt;Key,Value&gt;</tt>, or a
-<tt>piecewise_construct_t</tt> followed by two <tt>tuple</tt>s.  The original
-<tt>emplace()</tt> proposal would have allowed you to specify a <tt>Key</tt>
-value followed by any number of constructor arguments for <tt>Value</tt>.
-When we removed the variadic constructor to <tt>pair</tt>, this ability went
-away.  I don't think that was deliberate.
-<p/>
-Fixing this is non-trivial, I think. I think that <tt>emplace()</tt> for <tt>map</tt>
-and <tt>multimap</tt> need several overloads: one for each overloaded constructor in
-<tt>pair&lt;Key,Value&gt;</tt>, and one for the <tt>emplace(Key, valueargs...)</tt> case.
-And it probably needs some SFINAE meta-programming to ensure that the last case
-doesn't override any of the other ones.  Alternatively, one could say that
-there are exactly two cases: <tt>emplace(args)</tt> where <tt>pair&lt;Key,Value&gt;</tt>
-is constructible from <tt>args</tt>, and <tt>emplace(args)</tt> where <tt>Key</tt> is
-constructible form the first <tt>arg</tt> and <tt>Value</tt> is constructible from the
-rest.
-<p/>
-Alternatively, the status quo is to use <tt>piecewise_construct_t</tt> if you want to
-construct an object.
-</p>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-
-<p>
-N3178 was looked at in session and moved to NAD.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2026"></a>2026. <tt>hash</tt> should be <tt>std</tt> qualified for unordered container</h3>
-<p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Tom Plum pointed out to me that there's an apparent inconsistency in the <tt>std::</tt> qualification of template names in the unordered containers:
-</p>
-
-<blockquote><pre>
- template &lt;class Key,
-           class T,
-           class Hash = hash&lt;Key&gt;,
-           class Pred = std::equal_to&lt;Key&gt;,
-           class Alloc = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt;
-   class unordered_map;
-</pre></blockquote>
-
-<p>
-Is there a reason that hash is not qualified with <tt>std::</tt>? TR1 also
-does not use <tt>std::</tt> here.
-</p>
-
-<p><i>[
-2011-02-07 Chris Jefferson adds:
-]</i></p>
-
-<p>
-I assumed (I might be wrong) it is because <tt>hash</tt> is designed to be a
-customisation point, like <tt>swap</tt>.
-</p>
-
-<p><i>[
-2011-02-07 Howard Hinnant adds:
-]</i></p>
-
-<p>I think this is incorrect.  We mean <tt>std::hash</tt>, though clients
-are free to specialize <tt>std::hash</tt> on user-defined types.  With the
-possible exception of <tt>begin</tt>/<tt>end</tt> (which I'm not sure if
-we've settled that), <tt>swap</tt> is the only intended customization point (look up a function by ADL) in the <tt>std::</tt> lib.
-</p>
-
-<p><i>[
-2011-02-24 Chris Jefferson adds:
-]</i></p>
-
-<p>I recommend NAD, due to 17.6.1.1 [contents] p3:</p>
-<blockquote><p>
-Whenever a name <tt>x</tt> defined in the standard library is mentioned, the name <tt>x</tt> is assumed to be fully qualified
-as <tt>::std::x</tt>, unless explicitly described otherwise. For example, if the Effects section for library function <tt>F</tt>
-is described as calling library function <tt>G</tt>, the function <tt>::std::G</tt> is meant.
-</p></blockquote>
-
-<p><i>[2011-02-25 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively NAD after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2036"></a>2036. <tt>istream &gt;&gt; char</tt> and <tt>eofbit</tt></h3>
-<p><b>Section:</b> 27.7.2.1 [istream] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream">issues</a> in [istream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The question is:  When a single character is extracted from an <tt>istream</tt> using <tt>operator&gt;&gt;</tt>, 
-does <tt>eofbit</tt> get set if this is the last character extracted from the stream?  The current standard is at 
-best ambiguous on the subject. 27.7.2.1 [istream]/p3 describes all extraction operations with:</p>
-
-<blockquote><p>
-3 If <tt>rdbuf()-&gt;sbumpc()</tt> or <tt>rdbuf()-&gt;sgetc()</tt> returns <tt>traits::eof()</tt>, then the input 
-function, except as explicitly noted otherwise, completes its actions and does <tt>setstate(eofbit)</tt>, which may 
-throw <tt>ios_base::failure</tt> (27.5.5.4 [iostate.flags]), before returning.
-</p></blockquote>
-
-<p>And 27.7.2.2.3 [istream::extractors]/p12 in describing <tt>operator&gt;&gt;(basic_istream&lt;charT,traits&gt;&amp; in, charT&amp; c);</tt> 
-offers no further clarification:
-</p>
-
-<blockquote><p>
-12 <i>Effects</i>: Behaves like a formatted input member (as described in [istream.formatted.reqmts]) of <tt>in</tt>. 
-After a <tt>sentry</tt> object is constructed a character is extracted from <tt>in</tt>, if one is available, and 
-stored in <tt>c</tt>. Otherwise, the function calls <tt>in.setstate(failbit)</tt>.
-</p></blockquote>
-
-<p>I coded it one way in libc++, and g++ coded it another way.  Chris Jefferson noted that some boost code was 
-sensitive to the difference and fails for libc++.  Therefore I believe that it is very important that we specify 
-this extraction operator in enough detail that both vendors and clients know what behavior is required and expected.
-</p>
-
-<p>Here is a brief code example demonstrating the issue:</p>
-
-<blockquote><pre>
-#include &lt;sstream&gt;
-#include &lt;cassert&gt;
-
-int main()
-{
-  std::istringstream ss("1");
-  char t;
-  ss &gt;&gt; t;
-  assert(!ss.eof());
-};
-</pre></blockquote>
-
-<p>For every type capable of reading this istringstream but <tt>char</tt>, <tt>ss.eof()</tt> will be true after the 
-extraction (<tt>bool</tt>, <tt>int</tt>, <tt>double</tt>, etc.).  So for consistency's sake we might want to have 
-<tt>char</tt> behave the same way as other built-in types.</p>
-
-<p>However Jean-Marc Bourguet offers this counter example code using an interactive stream.  He argues that 
-setting <tt>eof</tt> inhibits reading the next line:</p>
-
-<blockquote><pre>
-#include &lt;iostream&gt;
-
-int main()
-{
- char c;
- std::cin &gt;&gt; std::noskipws;
- std::cout &lt;&lt; "First line: ";
- while (std::cin &gt;&gt; c) {
-    if (c == '\n') {
-       std::cout &lt;&lt; "Next line: ";
-    }
- }
-}
-</pre></blockquote>
-
-<p>As these two code examples demonstrate, whether or not <tt>eofbit</tt> gets set is an observable difference and it 
-is impacting real-world code.  I feel it is critical that we clearly and unambiguously choose one behavior or the other.  
-I am proposing wording for both behaviors and ask the LWG to choose one (and only one!).</p>
-
-<p>Wording for setting <tt>eof</tt> bit:</p>
-
-<p>Modify 27.7.2.2.3 [istream::extractors]/p12 as follows:</p>
-
-<blockquote><p>
-12 <i>Effects</i>: Behaves like a formatted input member (as described in [istream.formatted.reqmts]) of <tt>in</tt>. 
-After a <tt>sentry</tt> object is constructed a character is extracted from <tt>in</tt>, if one is available, and 
-stored in <tt>c</tt>. <del>Otherwise, the function calls <tt>in.setstate(failbit)</tt>.</del>  <ins>If a character is 
-extracted and it is the last character in the pending sequence, the function calls <tt>in.setstate(eofbit)</tt>.  
-If a character is not extracted the function calls <tt>in.setstate(failbit | eofbit)</tt>.</ins>
-</p></blockquote>
-
-<p>Wording for not setting <tt>eof</tt> bit:</p>
-
-<blockquote><p>
-12 <i>Effects</i>: Behaves like a formatted input member (as described in [istream.formatted.reqmts]) of <tt>in</tt>. 
-After a <tt>sentry</tt> object is constructed a character is extracted from <tt>in</tt><del>, if one is available, 
-and stored in <tt>c</tt>. Otherwise, the function calls <tt>in.setstate(failbit)</tt>.</del> <ins>with 
-<tt>in.rdbuf()-&gt;sbumpc()</tt>.  If <tt>traits::eof()</tt> is returned, the function calls 
-<tt>in.setstate(failbit | eofbit)</tt>.  Otherwise the return value is converted to type <tt>charT</tt> and stored
-in <tt>c</tt>.</ins>
-</p></blockquote>
-
-<p><i>[2011-02-27: Jean-Marc Bourguet comments]</i></p>
-
-
-<p>Just for completeness: it [the counter example] doesn't inhibit to read the next line, it inhibits the prompt 
-to be put at the appropriate time.</p>
-
-<p>More information to take into account when deciding:</p>
-
-<ul>
-<li><p>if I'm reading correctly the section to get boolean values when <tt>boolalpha</tt> is set, there we mandate 
-that <tt>eof</tt> isn't set if trying to read past the end of the pending sequence wasn't needed to determine the result.
-</p></li>
-
-<li><p>
-see also the behaviour of <tt>getline</tt> (which isn't a formatted input function but won't set <tt>eof</tt> 
-if it occurs just after the delimiter)
-</p></li>
-
-<li><p>
-if I'm reading the C standard correctly <tt>scanf("%c")</tt> wouldn't set <tt>feof</tt> either in that situation.
-</p></li>
-</ul>
-
-<p><i>[2011-02-28: Martin Sebor comments]</i></p>
-
-
-<p>[Responds to bullet 1 of Jean-Marc's list]</p>
-
-<p>
-Yes, this matches the stdcxx test suite for <tt>num_get</tt> and <tt>time_get</tt>
-but not <tt>money_get</tt> when the currency symbol is last. I don't see
-where in the locale.money.get.virtuals section we specify whether
-<tt>eofbit</tt> is or isn't set and when.
-<p/>
-IMO, if we try to fix the <tt>char</tt> extractor to be consistent we
-should also fix all the others extractors and manipulators that
-aren't consistent (including <tt>std::get_money</tt> and <tt>std::get_time</tt>).
-</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Dietmar convinced Howard, that the standard does already say the right words</p>
-
-
-
-<p><b>Rationale:</b></p><p>Reading the last character does not set eofbit and the standard says so already</p>
-
-<p><b>Proposed resolution:</b></p>
-<p></p>
-
-
-
-
-
-<hr>
-<h3><a name="2043"></a>2043. <tt>std{in,out,err}</tt> should be usable as field names</h3>
-<p><b>Section:</b> 27.9.2 [c.files] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2011-03-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.files">issues</a> in [c.files].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-People often define structs and classes with fields named <tt>stdin</tt>,
-<tt>stdout</tt>, or <tt>stderr</tt>. According to 27.9.2 [c.files], 
-though, these are macros.
-<p/>
-glibc defines them to themselves, allowing their non-portable use as
-field names, while the Mac OS X libc defines them to either <tt>__stdoutp</tt>
-or <tt>(&amp;__sF[1])</tt>, etc depending on <tt>__DARWIN_UNIX03</tt>. It's possible to
-allow their use while, as far as I can see, only requiring minor
-changes to various libc's, so C++1x should allow it.
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Closed as NAD.  This is an extension request that has been an issue for over 20 years.
-Supporting the extension would place a burden on the underlying C library that we may
-not be in a position to influence.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>In 27.9.2 [c.files] add "stderr", "stdin", and "stdout" to a new Values section in Table
-134 &mdash; Header <tt>&lt;cstdio&gt;</tt> synopsis:</p>
-
-<blockquote>
-<table border="1">
-<caption>134 &mdash; Header <tt>&lt;cstdio&gt;</tt> synopsis</caption>
-
-<tr>
-<th colspan="6" style="text-align:center;">Type Name(s)</th>
-</tr>
-
-<tr>
-<th colspan="6" style="text-align:left;">Macros:</th>
-</tr>
-
-<tr>
-<td><tt>BUFSIZ</tt></td>
-<td><tt>FOPEN_MAX</tt></td>
-<td><tt>SEEK_CUR</tt></td>
-<td><tt>TMP_MAX</tt></td>
-<td><tt>_IONBF</tt></td>
-<td><tt>stdout</tt></td>
-</tr>
-
-<tr>
-<td><tt>EOF</tt></td>
-<td><tt>L_tmpnam</tt></td>
-<td><tt>SEEK_END</tt></td>
-<td><tt>_IOFBF</tt></td>
-<td><tt>stderr</tt></td>
-<td>&nbsp;</td>
-</tr>
-
-<tr>
-<td><tt>FILENAME_MAX</tt></td>
-<td><tt>NULL &lt;cstdio&gt;</tt></td>
-<td><tt>SEEK_SET</tt></td>
-<td><tt>_IOLBF</tt></td>
-<td><tt>stdin</tt></td>
-<td>&nbsp;</td>
-</tr>
-
-<tr>
-<th style="text-align:left;">Types:</th>
-<td><tt>FILE</tt></td>
-<td><tt>fpos_t</tt></td>
-<td><tt>size_t &lt;cstdio&gt;</tt></td>
-<td>&nbsp;</td>
-<td>&nbsp;</td>
-</tr>
-
-<tr>
-<th colspan="6" style="text-align:left;">Functions:</th>
-</tr>
-
-<tr>
-<td colspan="6" style="text-align:center;">&hellip;</td>
-</tr>
-
-<tr>
-<th colspan="6" style="text-align:left;"><ins>Values:</ins></th>
-</tr>
-
-<tr>
-<td><ins><tt>stderr</tt></ins></td>
-<td><ins><tt>stdin</tt></ins></td>
-<td><ins><tt>stdout</tt></ins></td>
-<td>&nbsp;</td>
-<td>&nbsp;</td>
-<td>&nbsp;</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>Add a new paragraph after paragraph 2 as indicated:</p>
-
-<blockquote><p>
-2 Calls to the function <tt>tmpnam</tt> with an argument of <tt>NULL</tt> may 
-introduce a data race (17.6.5.9) with other calls to <tt>tmpnam</tt> with an 
-argument of <tt>NULL</tt>.<br/>
-See also: ISO C 7.9, Amendment 1 4.6.2.
-<p/>
-<ins>? The macros <tt>stderr</tt>, <tt>stdin</tt>, and <tt>stdout</tt> shall 
-expand to <tt>stderr</tt>, <tt>stdin</tt>, and <tt>stdout</tt>, respectively. 
-[<i>Note:</i> This allows uses of <tt>#ifdef</tt> to detect their presence, 
-while allowing code in other scopes to use them as identifiers. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-</li>
-
-<li><p>In C.5 [diff.library] add "stderr", "stdin", and "stdout" to 
-Table 150 &mdash; Standard values:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 150 &mdash; Standard values</caption>
-
-<tr>
-<td><tt>CHAR_BIT</tt></td>
-<td><tt>FLT_DIG</tt></td>
-<td><tt>INT_MIN</tt></td>
-<td><tt>MB_LEN_MAX</tt></td>
-</tr>
-
-<tr>
-<td colspan="4" style="text-align:center;">&hellip;</td>
-</tr>
-
-<tr>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td><tt>SHRT_MIN</tt></td>
-</tr>
-
-<tr>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td><ins><tt>stderr</tt></ins></td>
-</tr>
-
-<tr>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td><ins><tt>stdin</tt></ins></td>
-</tr>
-
-<tr>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td><ins><tt>stdout</tt></ins></td>
-</tr>
-
-<tr>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td>&hellip;</td>
-<td><tt>UCHAR_MAX</tt></td>
-</tr>
-
-<tr>
-<td colspan="4" style="text-align:center;">&hellip;</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2046"></a>2046. <tt>shared_future(future&lt;R&gt;&amp;&amp;)</tt> should be allowed to throw</h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Peter Sommerlad <b>Opened:</b> 2011-04-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Requiring the constructor <tt>shared_future(future&lt;R&gt;&amp;&amp; rhs)</tt> not to throw 
-is a pessimisation of the case where a future is returned from a call to 
-<tt>async(function,launch::deferred)</tt> and possible other cases.
-<p/>
-Such a future not dealing with multiple threads only needs to keep (a copy of) the function 
-to be called it later. However, creating a <tt>shared_future</tt> from that future will require more 
-infrastructure, like space for the value of type <tt>R</tt>, an <tt>exception_ptr</tt>, and a synchronized 
-reference counter for the <tt>shared_future</tt>'s instances.
-<p/>
-Enforcing the constructor <tt>shared_future(future&lt;R&gt;&amp;&amp; rhs)</tt> not to throw, 
-implies that any implementation of <tt>future</tt> will need to pre-allocate space for <tt>shared_future</tt>'s 
-infrastructure, that also requires an operating system resource for synchronization, regardless 
-if is ever needed.
-<p/>
-All this came up when discussing D&#47;N3267 and Concurrency Working Group decided that the constructor 
-<tt>shared_future(future&lt;R&gt;&amp;&amp; rhs)</tt> should be allowed to throw. 
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Closed as NAD.  Rationale to follow by email...
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Apply the proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3269.htm">n3269</a></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2060"></a>2060. <tt>unique_ptr&lt;T[]&gt;(nullptr_t)</tt> missing <tt>noexcept</tt></h3>
-<p><b>Section:</b> 20.8.1.3 [unique.ptr.runtime] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Howard Hinnant, Paolo Carlini <b>Opened:</b> 2011-05-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.runtime">issues</a> in [unique.ptr.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopsis in 20.8.1.2 [unique.ptr.single] specifies:
-</p><blockquote><pre>
-constexpr unique_ptr(nullptr_t) noexcept
-</pre></blockquote><p>
-which looks correct to me.  However the corresponding constructor in 20.8.1.3 [unique.ptr.runtime] is missing <tt>noexcept</tt>:
-</p><blockquote><pre>
-constexpr unique_ptr(nullptr_t) : unique_ptr() { }
-</pre></blockquote>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Closed as NAD Editorial.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Modify the synopsis in 20.8.1.3 [unique.ptr.runtime]:</p>
-<blockquote><pre>
-namespace std {
-  template &lt;class T, class D&gt; class unique_ptr&lt;T[], D&gt; {
-  public:
-    typedef see below pointer;
-    typedef T element_type;
-    typedef D deleter_type;
-
-    // 20.7.1.3.1, constructors
-    constexpr unique_ptr() noexcept;
-    [&hellip;]
-    constexpr unique_ptr(nullptr_t) <ins>noexcept</ins> : unique_ptr() { }
-	
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2068"></a>2068. <tt>std::pair</tt> not C++03-compatible with defaulted copy c'tor</h3>
-<p><b>Section:</b> 20.3.2 [pairs.pair] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-06-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs.pair">issues</a> in [pairs.pair].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification of the copy semantics of the C++03 version of <tt>std::pair</tt>
-is defined by the class synopsis in [lib.pairs]:
-</p>
-<blockquote><pre>
-template &lt;class T1, class T2&gt;
-struct pair {
-  typedef T1 first_type;
-  typedef T2 second_type;
-
-  T1 first;
-  T2 second;
-  pair();
-  pair(const T1&amp; x, const T2&amp; y);
-  template&lt;class U, class V&gt; pair(const pair&lt;U, V&gt; &amp;p);
-};
-</pre></blockquote>
-<p>
-The effect of this specification is, that the copy constructor is compiler-declared
-with the proper form depending on the contained member types. In particular, the
-instantiation of <tt>pair</tt> is well-formed with an element type that has a
-copy constructor with non-const first parameter type like specialzations of <tt>auto_ptr</tt>
-or any user-defined type like the following one:
-</p>
-<blockquote><pre>
-struct A {
-  A(A&amp;){}
-};
-</pre></blockquote>
-<p>
-In contrast to container types which require <tt>CopyConstructible</tt> value types, the C++03 <tt>pair</tt> 
-does support these, albeit unusual, element types.
-<p/>
-The FDIS version of the <tt>std::pair</tt> specification does specify the same semantics by 
-defaulting the copy and move constructor in 20.3.2 [pairs.pair]:
-</p>
-<blockquote><pre>
-template &lt;class T1, class T2&gt;
-struct pair {
-  typedef T1 first_type;
-  typedef T2 second_type;
-
-  T1 first;
-  T2 second;
-  <span style="color:#C80000">pair(const pair&amp;) = default;</span>
-  <span style="color:#C80000">pair(pair&amp;&amp;) = default;</span>
-  pair();
-  [&hellip;]
-};
-</pre></blockquote>
-<p>
-But according to the current core rules this makes the instantiation of e.g. <tt>std::pair&lt;A, int&gt;</tt>
-ill-formed, because of the <tt>const</tt> mismatch of the compiler-declared form of the copy constructor
-with that of the defaulted declaration.
-<p/>
-Unfortunately there seems to be no simple library solution for this problem. If the defaulted declarations
-were removed, both copy c'tor and move c'tor would be <b>deleted</b>, because there exist user-declared
-copy assignment and move assignment operators in the FDIS. But these operations need to be user-defined 
-to realize the wanted semantics of these operations for element types that are reference types. If core
-rules would not be changed to fix that, I see the following options:
-</p>
-<ol>
-<li>Intentionally decide to break the support for element types with non-const copy c'tors in <tt>pair</tt>.</li>
-<li>User-declare both copy and move ctor to at least support the instantiation of the <tt>pair</tt> specializations, 
-but this would still not allow to copy them by the copy constructor.</li>
-<li>User-declare both the const and non-const copy ctors, the move ctor, and additionally the non-const copy assignment
-operator to support the instantiation of the <tt>pair</tt> specializations and of these members. This would 
-support all element types as it did in C++03, but all copy&#47;move members would be non-trivial.</li>
-<li>Intentionally decide to give up support for element types that are references for <tt>pair</tt>, but
-still keep the allocator support with the effect of removing all declarations of the special
-copy&#47;move members. User code that needs to use <tt>tuple</tt> instead. But this would be a rather
-drastic step requiring further corrections of the draft, e.g. a change of the signature of the algorithm
-<tt>minmax</tt> (not the overload with the <tt>initializer_list</tt>) with a different return type.</li>
-</ol>
-<p>
-This problem does <b>not</b> extend as backward-compatibility problem to <tt>tuple</tt>, because the TR1 
-specification did explicitly declare copy constructor and copy assignment operator via the &quot;normal&quot; 
-form:
-</p>
-<blockquote><pre>
-tuple(const tuple&amp;);
-tuple&amp; operator=(const tuple&amp;);
-</pre></blockquote>
-<p>
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Closed as NAD.
-</p>
-
-<p>
-This is an unfortunate change of behavior between C++03 and C++11, but is consistent with <tt>tuple</tt>.  There is no desire to go to lengths supporting types like <tt>auto_ptr</tt> now that rvalue references are in the language.
-</p>
-
-<p>
-There may be an issue for Core/EWG to look at, so that some simple <tt>=default</tt> syntax could be used that would do the right thing.  If such a facility became availabile, LWG might revisit this issue.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2073"></a>2073. Library exceptions that take string arguments</h3>
-<p><b>Section:</b> 19.2 [std.exceptions], 19.5.6 [syserr.syserr], 27.5.3.1.1 [ios::failure] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Eelis van der Weegen <b>Opened:</b> 2011-08-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#std.exceptions">issues</a> in [std.exceptions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This is an extension issue for LWG to add constructor overloads that take a 
-<tt>string</tt> by an rvalue reference in order to move the string into the 
-exception.
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to NAD.
-</p>
-<p>
-This was discussed during C++11 standardization, and deemed (at the time) to be a conforming
-extension that vendors are free to add, but there seemed no need to call it out in the standard.
-Since then it has been noted that the rvalue-reference overloads do not give you the move-semantic
-guarantee the proposer is thought to be looking for, as in order to meet the requirements that
-copy constructors do not throw (for standard exceptions) the exceptions that store strings must
-actually store a reference-counted immutable string, rather than an <tt>std::string</tt> internally.
-Therefore, an rvalue-reference overload is going to have to allocate memory in exactly the same
-way as copying from a <tt>const string&amp;</tt> argument.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2079"></a>2079. Required <tt>pow()</tt> overloads</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 2011-08-29 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-LWG issue <a href="lwg-defects.html#550">550</a> removed the functions:
-</p>
-<blockquote><pre>
-float       pow(float, int);
-double      pow(double, int);
-long double pow(long double, int);
-</pre></blockquote>
-<p>
-from header <tt>&lt;cmath&gt;</tt>. This change does not seem to be mentioned in Annex C, C.2.14.
-<p/>
-Howard:
-</p>
-<blockquote><p>
-N3290 26.8 [c.math]&#47;p11 says:
-</p><blockquote>
-<p>
-Moreover, there shall be additional overloads sufficient to ensure:
-</p>
-<ol>
-<li>If any argument corresponding to a <tt>double</tt> parameter has type <tt>long double</tt>, 
-then all arguments corresponding to <tt>double</tt> parameters are effectively cast to 
-<tt>long double</tt>.
-</li>
-<li>Otherwise, if any argument corresponding to a <tt>double</tt> parameter has type <tt>double</tt> 
-or an integer type, then all arguments corresponding to <tt>double</tt> parameters are effectively 
-cast to <tt>double</tt>.
-</li>
-<li>Otherwise, all arguments corresponding to <tt>double</tt> parameters are effectively cast to 
-<tt>float</tt>.
-</li>
-</ol>
-</blockquote>
-<p>
-From C99 7.12.7.4 we have:
-</p>
-<blockquote><pre>
-double pow(double, double);
-</pre></blockquote>
-<p>
-26.8 [c.math]&#47;p11&#47;b2 says that if the client calls <tt>pow(2.0f, 2)</tt>, then the 
-<tt>int</tt> for second argument causes the following effective call to be made:
-</p>
-<blockquote><pre>
-pow(static_cast&lt;double&gt;(2.0f), static_cast&lt;double&gt;(2)) -&gt; double
-</pre></blockquote>
-<p>
-The first sentence of p11 implies that this is done by supplying the following additional overload:
-</p>
-<blockquote><pre>
-double pow(float, int);
-</pre></blockquote>
-<p>
-If the client calls <tt>pow(2.0, 2)</tt>, then the same reasoning (b2 again) implies the following 
-additional overload:
-</p>
-<blockquote><pre>
-double pow(double, int);
-</pre></blockquote>
-<p>
-If the client calls <tt>pow(2.0l, 2)</tt>, then b1 implies the following additional overload:
-</p>
-<blockquote><pre>
-long double pow(long double, int);
-</pre></blockquote>
-<p>
-In all, p11 implies hundreds (perhaps thousands?) of extra overloads.  All but one of which is a superset 
-of the overloads required by C++98&#47;03 (that one being <tt>pow(float, int)</tt> which had its return 
-type changed from <tt>float</tt> to <tt>double</tt>).
-<p/>
-In practice, at least some vendors implement p11 by using templated overloads as opposed to ordinary overloads.
-</p></blockquote>
-
-<p>
-Steve Clamage:
-</p>
-<blockquote><p>
-Thanks. I didn't see that those extra overloads were actually implied by p11, despite the first sentence. 
-Without examples, the point is a bit subtle (at least for me).
-</p></blockquote>
-
-<p><i>[2015-05-05 Lenexa: Move to NAD]</i></p>
-
-<p>Billy: I believe this is NAD.</p>
-<p>STL: Oh, Steve himself agrees.</p>
-<p>Wakely: The issue marked as NAD will be sufficient.</p>
-<p>STL: Yes, we should get rid of this.</p>
-<p>Billy: I don't see any minutes from Issaquah.</p>
-<p>Marshall: Since Steve agrees, does anyone object to marking as NAD?</p>
-<p>Nope.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2082"></a>2082. Misleading complexity requirements in <tt>&lt;algorithm&gt;</tt></h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2011-09-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The <tt>partition_point()</tt> algorithm is specified with:
-</p>
-<blockquote><p>
-<i>Complexity</i>: <i>O(log(last - first))</i> applications of <tt>pred</tt>.
-</p></blockquote>
-<p>
-While this is correct, it gives the impression that this is a logarithmic algorithm.
-But unless random access iterators are used it is not logarithmic because for advancing 
-the iterator we have last-first steps, which means that the complexity becomes linear here.
-<p/>
-Shouldn't we clarify the complexity here to something like:
-</p>
-<blockquote><p>
-<i>Complexity</i>: logarithmic for random-access iterators and linear otherwise
-            (in any case <i>O(log(last - first)</i>) applications of <tt>pred</tt>).
-</p></blockquote>
-<p>
-Or should we even require <i>O(log(last - first)</i> for random-access iterators only because 
-for other iterators just iterating over all elements, while calling <tt>pred</tt> for each element, 
-might often be faster.
-</p>
-
-<p>
-Daniel Kr&uuml;gler:
-</p>
-<blockquote><p>
-I agree that especially this description is a bit misleading. I'm not
-convinced that this is a real defect, because the whole bunch of
-templates within <tt>&lt;algorithm&gt;</tt> document the complexity solely of
-<em>applications*</em> of predicates, assignment, or swaps, but never the
-complexity of traversal operations (e.g. increment or iterator
-equality tests). This means, the standard is consistent for this
-function template, even though it could say a bit more.
-<p/>
-I would like to see a wording improvement, but I would rather think that
-the complexity of the predicate should be mentioned first (as in other
-algorithms) and that a non-normative note could be added for
-specifically this algorithm to point out that this does not imply
-a logarithmic traversal complexity. The note could give more details,
-by explicity pointing out the linear traversal complexity for
-non-random-Access iterators.
-</p></blockquote>
-<p>
-Howard Hinnant:
-</p>
-<blockquote><p>
-If we are going to make such improvements, they should be made across the 
-board in <tt>&lt;algorithm&gt;</tt>, not to just <tt>partition_point</tt>.  
-For example all 4 algorithms in 25.4.3 [alg.binary.search] have the 
-same issue, and have since C++98.
-<p/>
-<tt>stable_partition</tt> and <tt>inplace_merge</tt> should be inspected as well.
-<p/>
-Perhaps a new paragraph in 25.1 [algorithms.general], similar to 
-p12 would be a better place to address this issue.
-</p></blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to NAD.
-</p>
-<p>
-There was some concern that the issue, if it were to be addressed, is much larger than
-the couple of algorithms called out here, and applies across the whole library.  There
-is no interest in looking at this or similar issues without a paper addressing the whole
-library.  In fairness to anyone considering writing such a paper, it should be noted
-that there was not much interest in such a paper in the group, although no strong opposition
-either.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2084"></a>2084. <tt>basic_string</tt> use of <tt>charT*</tt></h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-09-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-For C++11 we gave all of the containers, including basic_string new generalized pointer types:
-</p>
-
-<blockquote><pre>
-typedef typename allocator_traits&lt;Allocator&gt;::pointer       pointer:
-typedef typename allocator_traits&lt;Allocator&gt;::const_pointer const_pointer;
-</pre></blockquote>
-
-<p>
-However, the constructors, assignment, and member functions still traffic exclusively in terms 
-of <tt>const charT*</tt>, for example:
-</p>
-
-<blockquote><pre>
-basic_string(const charT* s, const Allocator&amp; a = Allocator());
-</pre></blockquote>
-
-<p>
-Was this an oversight? Did we mean instead:
-</p>
-
-<blockquote><pre>
-basic_string(const_pointer s, const Allocator&amp; a = Allocator());
-</pre></blockquote>
-
-<p><b>Rationale:</b></p><p>
-It's intentional. <tt>char_traits</tt> assumes that all elements of
-a string can be accessed indirect on plain pointers. So <tt>basic_string</tt> 
-doesn't support allocators with fancy pointers or references. And we meant 
-to do that.
-<p/>
-Let's take the constructor example you called out:
-</p>
-
-<blockquote><pre>
-basic_string(const charT* s, const Allocator&amp; a = Allocator());
-</pre></blockquote>
-
-<p>
-This constructor allows us to create a <tt>basic_string</tt> object from a string literal.  
-If we were to change the pointer type, that would no longer be possible.
-<p/>
-There is no issue here, as the implementation of the constructor must make a 
-copy of the string pointed-to by the pointer 's' rather than adopt ownership of 
-that buffer. It is that internal copy that must make use of the <tt>allocator::pointer</tt> type.
-<p/>
-Now what about the return value of '<tt>c_str()</tt>', should that return an <tt>allocator::pointer</tt>?
-<p/>
-Again, the answer (I believe) is 'no' because this is the function that allows us 
-to pass the string's contents to a legacy&#47;OS 'C' API. It is deliberately returning 
-a raw pointer for a reason.
-<p/>
-There was an issue where <tt>vector::data</tt> was changed to return an <tt>allocator::pointer</tt>
-to the internal buffer, and this was changed back exactly because this was intended 
-to support passing to external APIs.
-<p/>
-Do we have a use-case where the pointer type of internal data structures of our 
-containers (notably <tt>basic_string</tt> and <tt>vector</tt>) need to be exposed through a public API?  
-All my current use-cases for <tt>allocator::pointer</tt> are specific to the implementation 
-of containers themselves.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2090"></a>2090. Minor Overconstraint in Mutex Types</h3>
-<p><b>Section:</b> 30.4.1.2 [thread.mutex.requirements.mutex] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements.mutex">issues</a> in [thread.mutex.requirements.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.4.1.2 [thread.mutex.requirements.mutex]&#47;6, fourth bullet requires the 
-return type of <tt>m.lock()</tt> to be <tt>void</tt>. 
-<p/>
-This is over-constrained. The true requirement is that the standard library 
-ignores any value that the function returns. Yes, allowing non-void return 
-types means that users can't store a pointer to this member function. No, 
-that's not the least bit important.
-<p/>
-[See also the discussion following c++std-lib-31318]
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-This does not specify a concept; it specifies requirements on the concrete mutex types. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2107"></a>2107. Some iterator category should guarantee the lifetime of references</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2011-11-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Many iterators guarantee that references and pointers returned from
-their methods will outlive the iterator itself. Other useful iterators
-can't guarantee this, leading to the rule in 24.2 [iterator.requirements] 
-p9 that "Destruction of an iterator may invalidate pointers and references 
-previously obtained from that iterator."
-<p/>
-Some algorithms can take advantage of long-lived references by
-returning them, while they can adapt to short-lived references by
-returning by value instead. However, there doesn't seem to be a way in
-the standard to distinguish between these two types of iterators.
-<p/>
-The <tt>ForwardIterator</tt> requirements come close by saying "If <tt>a</tt> and <tt>b</tt> are
-both dereferenceable, then <tt>a == b</tt> if and only if <tt>*a</tt> and <tt>*b</tt> are bound
-to the same object." (24.2.5 [forward.iterators] p6) However, there are some
-subtle ways to satisfy this rule and still return a short-lived reference, meaning 
-algorithms can't be guaranteed that <tt>forward_iterator_tag</tt> will imply 
-long-lived references.
-<p/>
-On the other hand, defect <a href="lwg-defects.html#198">198</a>, which added the invalidation wording
-to iterator.requirements.general, refers to iterators with short-lived references 
-being used as arguments to reverse_iterator, which requires <tt>BidirectionalIterator</tt>s. 
-If <tt>ForwardIterator</tt> required long-lived references, this would be impossible.
-<p/>
-Either <tt>ForwardIterator</tt> should be clarified to require long-lived
-references, or a new category should be added that does.
-<p/>
-See also the discussion around c++std-lib-31477.
-<p/>
-Daniel: Related to this issue is that when applying <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>
-we unintentionally lost some forward iterator requirements from C++03, where we 
-had the post-conditions <tt>a == X(a)</tt> of <tt>X(a)</tt>, and <tt>u == a</tt> 
-of any copy operation from <tt>a</tt> to <tt>u</tt>. This wording must be restored as well.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to NAD.
-</p>
-<p>
-This issue affects only Input Iterators, as all other categories are required to return
-a native reference, and are not (currently) allowed to return proxies.  The issue with
-Input Iterators is known, and has been present since the original standard.  Any change
-in this regard would be an extension requiring a more substantial paper than treatment
-as a simple issue.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2113"></a>2113. Do library implementers have the freedom to add <tt>final</tt> to non-polymorphic components?</h3>
-<p><b>Section:</b> 17.6.5 [conforming] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-11-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#conforming">issues</a> in [conforming].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Related to LWG <a href="lwg-defects.html#2112">2112</a> the question has been raised whether a library implementation <em>may</em> declare
-non-polymorphic library components, such as class template <tt>std::vector</tt> or <tt>std::basic_string</tt>,
-as <tt>final</tt> class types.
-<p/>
-This issue is <em>not</em> suggesting to enforce that libraries are required to do that, it is asking
-whether libraries should have the freedom to do so.
-<p/>
-The existing wording in 17.6.5.11 [derivation] does not give a clear permission to do so. In my opinion
-this position should be clarified in either direction.
-<p/>
-Giving implementations this freedom would have both advantages and disadvantages. Several opponents where
-worried about breakage of code of existing user implementations. On the other hand such types where not
-designed to be used as base classes. Allowing implementations to mark these components as <tt>final</tt>
-could allow them to provide compile-modes that are intentionally restrictive to the advantage of user code
-that want to be alterted about that. Any implementation that would be concerned about user complaints would 
-not take advantage of this feature anyway.
-<p/>
-If agreement exists that such implementation freedom would be useful, wording like
-</p>
-<blockquote><p>
-An implementation may declare additional non-virtual member function signatures within a class as <tt>final</tt>.
-</p></blockquote>
-<p>
-or
-</p>
-<blockquote><p>
-An implementation may declare additional class without virtual member function signatures as <tt>final</tt>.
-</p></blockquote>
-<p>
-should be added to 17.6.5 [conforming] with corresponding exceptions of these rules (e.g. <tt>iterator</tt>,
-<tt>unary_function</tt>, or <tt>pair</tt>).
-<p/>
-If such freedom should not exist, it seems better to clarify this as well, e.g. by adding around 17.6.5.11 [derivation]:
-</p>
-<blockquote><p>
-An implementation shall not declare any class or any member function signature as <tt>final</tt>.
-</p></blockquote>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to NAD.
-</p>
-<p>
-Unless the library uses the keyword <tt>final</tt> in a specification, the user clearly has
-freedom to derive from such a class, and so equally clearly, the library vendor does not have
-freedom to add a <tt>final</tt> overrider or class attribute.  Howard observed there may be
-some wiggle-room with 'unspecified types' such as those returned from <tt>bind</tt> expressions,
-or iterators, but we did not see a need to further clarify the issue.  Note that, for example,
-a <tt>vector::iterator</tt> may be implemented as a raw pointer, so users cannot generally
-assume the ability to derive from unspecified library types.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2124"></a>2124. Seed sequence over-specified</h3>
-<p><b>Section:</b> 26.5.1.2 [rand.req.seedseq] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2012-01-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.seedseq">issues</a> in [rand.req.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The seed sequence requirements described in 26.5.1.2 [rand.req.seedseq] appear to be over-specified. 
-All seed sequence types are required to have a <tt>result_type</tt> nested type, a specific set of 
-constructors, function members <tt>size()</tt> and <tt>param()</tt>, which are never used by the library. 
-In fact, the only library components that actively use seed sequences are the random engines and all the 
-engines need is the <tt>generate()</tt> member function. In particular, library components never attempts 
-to construct seed sequence objects. These extraneous requirements are clearly written to describe the 
-library provided type <tt>seed_seq</tt> type; while it's good that seed_seq has all those constructors and 
-members, it's not a compelling reason to require a user-provided seed sequence type to implement all of 
-them.
-<p/>
-Suppose I want to write my own seed sequence class, this should do fine (and actually works as expected with libc++):
-</p>
-<blockquote><pre>
-class my_seed_seq
-{
-  /* internals */
-public:
-  my_seed_seq(/* my own parameters */);
-
-  template &lt;class It&gt;
-  void generate(It first, It last);
-};
-
-my_seed_seq s(/* params */);
-std::default_random_engine e(s);
-</pre></blockquote>
-<p>
-The only reason to have these extra members would be to provide some support for generic serializability&#47;persistence 
-of seed sequence objects. I believe that would be out of the scope of the random library, so I doubt we will ever need 
-those requirements in the future.
-<p/>
-I therefore propose to remove all requirements from 26.5.1.2 [rand.req.seedseq] except for the presence of the 
-<tt>generate()</tt> function.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Tenatively NAD.  (Tentative as issue was not in pre-meeting mailing)
-</p>
-<p>
-The 'overspecification', as such, was a deliberate intent to provide guarantees consumers of the whole
-random number framework may rely upon, especially in generic code.  While the standard engines may be
-built without relying on these guarantees, this specification is part of a commitment to a broader
-framework, and Walter indicated future proposals in preparation for parallel generation of random
-numbers that may depend more inimately on these existing requirements.
-</p>
-<p>
-Alisdair noted that the <tt>result_type</tt> typedef was a call-back to how we used to specify
-adaptable functors before TR1 <tt>result_of</tt> and the addition of <tt>std::bind</tt> and is
-probably not something we should be actively promoting in future libraries.  However, it is too
-late to remove this requirement from seed sequences unless we are doing further surgery, as
-recommended by this issue.
-</p>
-<p>
-Walter notes that the <tt>result_type</tt> protocol has not been formally deprecated by the
-standard.  Alisdair replies that was the intent of deprecating the <tt>bind_1st</tt>/
-<tt>unary_function</tt> set of templates in C++11, although we did not say anything about
-<tt>result_type</tt> in general.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li>
-<p>Edit 26.5.1.2 [rand.req.seedseq] p2 as indicated:</p>
-
-<blockquote><p>
-A class <tt>S</tt> satisfies the requirements of a seed sequence if the expressions shown in Table 115 are valid and
-have the indicated semantics, and if <tt>S</tt> also satisfies all other requirements of this section 26.5.1.2 [rand.req.seedseq]. 
-In that Table and throughout this section:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-<del><tt>T</tt> is the type named by <tt>S</tt>'s associated <tt>result_type</tt>;</del>
-</li>
-<li>
-<tt>q</tt> is a value of <tt>S</tt><del> and <tt>r</tt> is a possibly const value of <tt>S</tt></del>; <ins>and</ins>
-</li>
-<li>
-<del><tt>ib</tt> and <tt>ie</tt> are input iterators with an unsigned integer <tt>value_type</tt> of at least 32 bits;</del>
-</li>
-<li><tt>rb</tt> and <tt>re</tt> are mutable random access iterators with an unsigned integer <tt>value_type</tt> of at least 32 bits;</li>
-<li>
-<del><tt>ob</tt> is an output iterator; and</del>
-</li>
-<li>
-<del><tt>il</tt> is a value of <tt>initializer_list&lt;T&gt;</tt>.</del>
-</li>
-</ol>
-</blockquote>
-</li>
-
-<li>
-<p>Ditto, in Table 115, remove all rows except the one describing <tt>q.generate(rb, re)</tt>:</p>
-
-<table border="1">
-<caption>Table 115 &mdash; Seed sequence requirements</caption>
-<tr align="center">
-<th>Expression</th>
-<th>Return type</th>
-<th>Pre&#47;Post-condition</th>
-<th>Complexity</th>
-</tr> 
-
-<tr>
-<td>
-<del><tt>S::result_type</tt></del>
-</td>
-<td>
-<del><tt>T</tt></del>
-</td>
-<td>
-<del><tt>T</tt> is an unsigned integer<br/>
-type (3.9.1 [basic.fundamental]) of at least 32 bits.</del>
-</td>
-<td>
-<del>compile-time</del>
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>S()</tt></del>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<del>Creates a seed sequence with<br/>
-the same initial state as all<br/>
-other default-constructed seed<br/>
-sequences of type <tt>S</tt>.</del>
-</td>
-<td>
-<del>constant</del>
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>S(ib,ie)</tt></del>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<del>Creates a seed sequence having<br/>
-internal state that depends on<br/>
-some or all of the bits of the<br/>
-supplied sequence <tt>[ib, ie)</tt>.</del>
-</td>
-<td>
-<del><tt>&#x1d4aa;(ie - ib)</tt></del>
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>S(il)</tt></del>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<del>Same as <tt>S(il.begin(),<br/>
-il.end())</tt>.</del>
-</td>
-<td>
-<del>same as<br/>
-<tt>S(il.begin(),<br/>
-il.end())</tt></del>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>q.generate(rb,re)</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-Does nothing if <tt>rb == re</tt>.<br/>
-Otherwise, fills the supplied<br/>
-sequence <tt>[rb, re)</tt> with 32-bit<br/>
-quantities that depend on the<br/>
-sequence supplied to the<br/>
-constructor and possibly also<br/>
-depend on the history of<br/>
-<tt>generate</tt>'s previous<br/>
-invocations.
-</td>
-<td>
-<tt>&#x1d4aa;(re - rb)</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>r.size()</tt></del>
-</td>
-<td>
-<del><tt>size_t</tt></del>
-</td>
-<td>
-<del>The number of 32-bit units that<br/>
-would be copied by a call to<br/>
-<tt>r.param</tt>.</del>
-</td>
-<td>
-<del>constant</del>
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>r.param(ob)</tt></del>
-</td>
-<td>
-<del><tt>void</tt></del>
-</td>
-<td>
-<del>Copies to the given destination
-a sequence of 32-bit units that<br/>
-can be provided to the<br/>
-constructor of a second object<br/>
-of type <tt>S</tt>, and that would<br/>
-reproduce in that second object<br/>
-a state indistinguishable from<br/>
-the state of the first object.</del>
-</td>
-<td>
-<del><tt>&#x1d4aa;(r.size())</tt></del>
-</td>
-</tr>
-
-</table>
- </li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2125"></a>2125. <tt>TimedMutex</tt> specification problem</h3>
-<p><b>Section:</b> 30.4.1.3 [thread.timedmutex.requirements], 30.4.1.3.1 [thread.timedmutex.class] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">Pending NAD Editorial</a>
- <b>Submitter:</b> Vicente J. Botet Escriba <b>Opened:</b> 2012-01-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.timedmutex.requirements">issues</a> in [thread.timedmutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Pending NAD Editorial">Pending NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.4.1.3.1 [thread.timedmutex.class] says:
-</p>
-<blockquote><p>
-The class <tt>timed_mutex</tt> shall satisfy all of the <tt>TimedMutex</tt> requirements (30.4.1.3 [thread.timedmutex.requirements]). 
-It shall be a standardlayout class (Clause 9 [class]).
-</p></blockquote>
-<p>
-Problem here is that 30.4.1.3 [thread.timedmutex.requirements] does not define a requirement set named &quot;<tt>TimedMutex</tt>&quot;,
-it only refers to &quot;<i>timed mutex types</i>&quot;
-</p>
-
-<p><i>[See also issue <a href="lwg-closed.html#2126">2126</a>]</i></p>
-
-
-<p><i>[2012, Portland: move to Tentatively NAD Editorial]</i></p>
-
-<p>
-We have timed mutex type, but it is labeled timed mutex requirements
-</p>
-<p>
-We can make a suggestion, but will send to the editor as it seems purely editorial.
-There is a typo, and we don't have the timed mutex but 30.4.1.3 [thread.timedmutex.requirements] already
-says timed mutex type, and we need to reuse that term down in the class to fulfil the mutex requirement.
-</p>
-<p><i>[To Editor:]</i></p>
-
-<p>
-Replace this one with timed mutex type.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2126"></a>2126. Several specification problems in regard to mutex requirements</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements], 30.4.1.2.1 [thread.mutex.class], 30.4.1.2 [thread.mutex.requirements.mutex], 30.4.1.2.2 [thread.mutex.recursive], 30.4.1.3 [thread.timedmutex.requirements], 30.4.1.3.1 [thread.timedmutex.class], 30.4.1.3.2 [thread.timedmutex.recursive] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">Pending NAD Editorial</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-01-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Pending NAD Editorial">Pending NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
- 30.4.1.2.1 [thread.mutex.class]&#47;3 says that the class mutex "shall satisfy all the <tt>Mutex</tt> requirements (30.4.1 [thread.mutex.requirements])". 
- 30.4.1.2.1 [thread.mutex.class] is part of 30.4.1 [thread.mutex.requirements], so at the very least, this 
- requirement is recursive. But worse, there is nothing that says what "the <tt>Mutex</tt> requirements" refers to. For example, 
- the "<tt>Lockable</tt> requirements" section starts with "A type <tt>L</tt> meets the <tt>Lockable</tt> requirements if &hellip;". There is no such 
- statement for "the <tt>Mutex</tt> requirements".
-<p/>
-Organizationally, paragraphs 1-26 in 30.4.1.2 [thread.mutex.requirements.mutex] should probably be in a subclause with a name. 
-(This is actually an ISO requirement, to avoid exactly this kind of ambiguous referencing) Then the first sentence of 
-30.4.1.2.1 [thread.mutex.class]&#47;3 can become a note: "The class mutex meets the requirements of (whatever)", since that 
-subclause already says that the mutex types "shall meet the requirements set out in this section."
-<p/>
-And similarly for 30.4.1.2.2 [thread.mutex.recursive]&#47;2 (<tt>recursive_mutex</tt>).
-<p/>
-30.4.1.3 [thread.timedmutex.requirements], Timed mutex types, also needs the same rearrangement: its introductory 
-requirements should be moved into a subclause, and the first sentences of 30.4.1.3.1 [thread.timedmutex.class]&#47;2 
-and 30.4.1.3.2 [thread.timedmutex.recursive]&#47;2 should be turned into notes that refer to this new subclause and 
-to the new subclause in 30.4.1.2 [thread.mutex.requirements.mutex].
-</p>
-
-<p><i>[See also issue <a href="lwg-closed.html#2125">2125</a>]</i></p>
-
-
-<p><i>[2012, Portland: move to Tentatively NAD Editorial]</i></p>
-
-<p>
-Seems no real ambiguity. May need some reorg of text rather then changing the wording.
-</p>
-<p>
-Is there much that needs to be changed? But Pete's suggestion of putting requirement in separate sub section is good.
-Should be the direction to editor.
-</p>
-<p>
-Suggest this is an editorial change. Happy with Pete's comments.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2131"></a>2131. Member function getline taking a string as parameter</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Lo&iuml;c Joly <b>Opened:</b> 2012-03-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think the following code should be legal:
-</p>
-<blockquote><pre>
-void f(std::istream&amp; is)
-{
-  std::string s;
-  is.getline(s); // Would be equivalent to std::getline(is, s)
-}
-</pre></blockquote>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Unanimous that this is a new feature request and not a issue. 
-<p/>
-Resolution: Tentatively NAD 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change the class template <tt>basic_istream</tt> synopsis, 27.7.2.1 [istream], as indicated</p>
-<blockquote><pre>
-namespace std {
-  template &lt;class charT, class traits = char_traits&lt;charT&gt; &gt;
-  class basic_istream : virtual public basic_ios&lt;charT,traits&gt; {
-  public:
-    [&hellip;]
-    <i>// 27.7.2.3 Unformatted input:</i>
-    [&hellip;]
-    basic_istream&lt;charT,traits&gt;&amp; getline(char_type* s, streamsize n);
-    basic_istream&lt;charT,traits&gt;&amp; getline(char_type* s, streamsize n,
-      char_type delim);
-    <ins>template&lt;class Allocator&gt;
-    basic_istream&lt;charT,traits&gt;&amp; getline(basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-    template&lt;class Allocator&gt;
-    basic_istream&lt;charT,traits&gt;&amp; getline(basic_string&lt;charT,traits,Allocator&gt;&amp; str,
-      char_type delim);</ins>
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Insert the following two new prototype descriptions after 27.7.2.3 [istream.unformatted] paragraph 24:</p>
-
-<blockquote>
-<pre>
-basic_istream&lt;charT,traits&gt;&amp; getline(char_type* s, streamsize n);
-</pre>
-<blockquote><p>
--24- <i>Returns</i>: <tt>getline(s,n,widen('\n'))</tt>
-</p>
-</blockquote>
-
-<pre>
-<ins>template&lt;class Allocator&gt;
-basic_istream&lt;charT,traits&gt;&amp; getline(basic_string&lt;charT,traits,Allocator&gt;&amp; str);</ins>
-</pre>
-<blockquote><p>
-<ins>-??- <i>Returns</i>: <tt>std::getline(*this, str)</tt></ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template&lt;class Allocator&gt;
-basic_istream&lt;charT,traits&gt;&amp; getline(basic_string&lt;charT,traits,Allocator&gt;&amp; str, char_type delim);</ins>
-</pre>
-<blockquote><p>
-<ins>-??- <i>Returns</i>: <tt>std::getline(*this, str, delim)</tt></ins>
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2134"></a>2134. Redundant Mutex requirement?</h3>
-<p><b>Section:</b> 30.4.1.2 [thread.mutex.requirements.mutex] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">Pending NAD Editorial</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-03-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements.mutex">issues</a> in [thread.mutex.requirements.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Pending NAD Editorial">Pending NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.4.1.2 [thread.mutex.requirements.mutex]&#47;11 says that prior unlock operations <em>synchronize with</em> <tt>m.lock()</tt>.
-<p/>
-30.4.1.2 [thread.mutex.requirements.mutex]&#47;19 says that if <tt>m.try_lock()</tt> succeeds, prior unlock operations 
-<em>synchronize with</em> the operation. 
-<p/>
-30.4.1.2 [thread.mutex.requirements.mutex]&#47;25 says that <tt>m.unlock()</tt> <em>synchronizes with</em> subsequent 
-successful lock operations. 
-<p/>
-Does the third requirement add anything to the first two? If not, it should probably be a non-normative note.
-</p>
-
-<p><i>[2012, Portland: move to Tentatively NAD Editorial]</i></p>
-
-<p>
-Agree that third note should be non-normative and adds nothing.
-</p>
-<p>
-Seems An Editorial change, but does changing a normative to non-normative wording makes it a non-editorial change?
-</p>
-<p>
-Ask the editor. If not editorial, then we will agree on the fix as removal of the third point,
-then we will put it in ready state for Bristol.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2167"></a>2167. Copy assignment requirements of Containers</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Dean Michael Berris <b>Opened:</b> 2012-07-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Table 96 defines the general requirement for copy assignment (row 23, page 704) as:
-</p>
-
-<table border="1">
-<caption>Table 96 &mdash; Container requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr> 
-
-<tr>
-<td>
-<tt>r = a</tt>
-</td>
-<td>
-<tt>X&amp;</tt>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-post: <tt>r == a.</tt>
-</td>
-<td>
-linear
-</td>
-</tr>
-
-</table>
-
-<p>
-However there is no requirement that <tt>T</tt> is <tt>CopyInsertable</tt> into <tt>X</tt>.
-</p>
-
-<p><i>[2012, Portland: Move to Tentatively NAD]</i></p>
-
-<p>
-Howard notes that this may be a difficult requirement for <tt>std::array</tt>
-</p>
-
-<p>
-We already have this requirement for allocator aware containers, and
-<tt>std::array</tt> already adds the appropriate extra requirement.
-</p>
-
-<p>
-We say the necessary things in the necessary places, but the container requirements
-continue to cause confusion in where we sometimes say things.  Consensus is that
-this issue remains NAD though.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change Table 96 &mdash; "Container requirements" in 23.2.1 [container.requirements.general]:</p>
-
-<table border="1">
-<caption>Table 96 &mdash; Container requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr> 
-
-<tr>
-<td>
-<tt>r = a</tt>
-</td>
-<td>
-<tt>X&amp;</tt>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-<ins><i>Requires</i>: <tt>T</tt> is <tt>CopyInsertable</tt> into <tt>X</tt>.</ins><br/>
-post: <tt>r == a.</tt>
-</td>
-<td>
-linear
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="2171"></a>2171. "swappable" undefined for swapping lvalue and rvalue</h3>
-<p><b>Section:</b> 17.6.3.2 [swappable.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Robert Shearer <b>Opened:</b> 2012-07-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#swappable.requirements">issues</a> in [swappable.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Paragraph 17.6.3.2 [swappable.requirements] p4 states:
-</p>
-<blockquote><p>
-An rvalue or lvalue <tt>t</tt> is <em>swappable</em> if and only if <tt>t</tt> is swappable with any rvalue or lvalue, 
-respectively, of type <tt>T</tt>.
-</p></blockquote>
-<p>
-This paragraph seems to establish two disjoint definitions of "swappable" &mdash; one for lvalues and one 
-for rvalues &mdash; with neither definition including the case of swapping an rvalue with an lvalue.
-<p/>
-Resolution proposal:
-<p/>
-Delete the word "respectively".
-</p>
-
-<p><i>[
-2012-10 Portland: Close as NAD
-]</i></p>
-
-
-<p>
-The current wording does intentionally specify two families of 'swappable' behaviors, for lvalues
-and for rvalues, and not for mixed behavior.  The need to support rvalues is for types like
-<tt>vector&lt;bool>::reference</tt>.  Likewise, library types like <tt>string</tt> provide a
-<tt>swap</tt> for values, but not a mixed-mode <tt>swap</tt> between lvalues and rvalues, which
-were deliberately removed from C++11 after initally being part of the standard.
-</p>
-
-<p>
-Accepting this resolution would break the library specification, as no current library type would
-meet the new requirements.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<p>Change 17.6.3.2 [swappable.requirements] p4 as indicated:</p>
-
-<blockquote><p>
-An rvalue or lvalue <tt>t</tt> is <em>swappable</em> if and only if <tt>t</tt> is swappable with any rvalue or 
-lvalue <del>, respectively,</del> of type <tt>T</tt>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2204"></a>2204. <tt>reverse_iterator</tt> should not require a second copy of the base iterator</h3>
-<p><b>Section:</b> 24.5.1.3.4 [reverse.iter.op.star] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> David Abrahams <b>Opened:</b> 2012-10-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This note in 24.5.1.3.4 [reverse.iter.op.star]/2:
-</p>
-<blockquote>
- [ <i>Note</i>: This operation must use an auxiliary member variable rather than a
- temporary variable to avoid returning a reference that persists beyond the
- lifetime of its associated iterator. (See 24.2.) &mdash;<i>end note</i> ]
-</blockquote>
-<p>
-is incorrect because such iterator implementations are ruled out by
-24.2.5 [forward.iterators]/6, where it says:
-</p>
-<blockquote>
- If <tt>a</tt> and <tt>b</tt> are both dereferenceable, then <tt>a == b</tt> if and only if <tt>*a</tt> and
- <tt>*b</tt> are bound to the same object.
-</blockquote>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Alisdair: sugested to strike the "exposition only" member.
-<p/>
-Daniel: we must check that it wouldn't conflict with a previous solution to another issue.
-<p/>
-Dietmar: This is an issue but the proposing word is not correct. When we have proxies inside the sequence.
-<p/>
-Solution: NAD thanks to a contrieved example by Dietmar. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike the note, 24.5.1.3.4 [reverse.iter.op.star]/2:
-</p>
-
-<blockquote>
- <del>[ <i>Note</i>: This operation must use an auxiliary member variable rather than a
- temporary variable to avoid returning a reference that persists beyond the
- lifetime of its associated iterator. (See 24.2.) &mdash;<i>end note</i> ]</del>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2251"></a>2251. C++ library should define <tt>ssize_t</tt></h3>
-<p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2013-04-19 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.types">issues</a> in [support.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The C++ standard library defines <tt>size_t</tt>, a typedef for an implementation defined unsigned integer type 
-that can represent the sizes of objects. The POSIX standard augments this with <tt>ssize_t</tt>, a typedef for a 
-signed integer type that corresponds to <tt>size_t</tt>.
-<p/>
-The <tt>ssize_t</tt> typedef is useful &mdash; useful enough that the C++ standard even refers to it. (In a 
-non-normative footnote in 27.5.2 [stream.types].)  Also, lots of OS vendors add it to their headers anyway, 
-even though it isn't part of the C or C++ standards, because those vendors are trying to define headers that 
-conform to multiple standards at once. We should make users' and implementers' lives easier by adding 
-<tt>ssize_t</tt> to 18.2 [support.types].
-</p>
-
-<p><i>[2013-09-29, Suggested wording from Jayson Oldfather]</i></p>
-
-<p> 
-I decided to use the phrase to describe <tt>ssize_t</tt> below because of the text describing it in the 
-<a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html#tag_13_67">POSIX</a> standard. 
-In it, it describes <tt>ssize_t</tt> with the value range of <tt>[-1,{SSIZE_MAX}]</tt>.
-<tt>SSIZE_MAX</tt> is specified in the <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html#tag_13_24">POSIX</a> 
-standard as a minimum value of <tt>_POSIX_SSIZE_MAX</tt>. This macro is referenced in the wording below.
-</p>
-
-<p><i>[Lenexa 2015-05-05: NAD - no consensus for a change]</i></p>
-
-<p>Billy : ssize_t that was promised to be signed, was based on rsize_t from safe secure C</p>
-<p>NM : ssize_t s ptrdif_t</p>
-<p>Z : ptrdiff_t is full range, ssize_t has only -1 as negative value</p>
-<p>Billy : motivations for ptrdiff_T, ssize_t and rsize_T all fuzzy. - Reads rsize max -</p>
-<p>NM : ptrdiff_T not big enough to rep difference of pointers anymore</p>
-<p>STL : description incorporates posixisms</p>
-<p>Billy : Don't need it</p>
-<p>NM : rather remove it from footnote</p>
-<p>Z : Name has precise meaning</p>
-<p>STL : everyone understands ptrdiff_t is signed counterpart to size_t</p>
-<p>Billy : Not in all implementations anymore</p>
-<p>DK : footnote says something different from ...</p>
-<p>Z/NM : off_t historically tainted</p>
-<p>STL : we have a type trait to make signed version of size_t. we should just use that</p>
-<p>MC : NAD; is feature request</p>
-<p>TP : It's not cstdsef</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Ammend 18.2 [support.types], Table 30 as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 30 &mdash; Header <tt>&lt;cstddef&gt;</tt> synopsis</caption>
-<tr>
-<th>Type</th>
-<th>Name(s)</th>
-</tr>
-
-<tr>
-<td>
-<b>Macros:</b>
-</td>
-<td>
-<tt>NULL offset_t</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<b>Types:</b>
-</td>
-<td>
-<tt>ptrdiff_t <ins>ssize_t</ins> size_t max_align_t nullptr_t</tt>
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>Add the following paragraph to describe <tt>ssize_t</tt></p>
-<blockquote><p><ins>
--?- The type <tt>ssize_t</tt> is an implementation-defined signed integer type that shall contain the minimum range 
-<tt>[-1, {SSIZE_MAX}]</tt> where <tt>SSIZE_MAX</tt> is specified at a minimum of <tt>_POSIX_SSIZE_MAX</tt>.</ins>
-</p></blockquote>
-<p>Ammend p7 as follows:</p>
-<blockquote><p>
--7- [<i>Note:</i> It is recommended that implementations choose types for <tt>ptrdiff_t<ins>, ssize_t,</ins></tt> and <tt>size_t</tt> whose integer conversion ranks &hellip;</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2270"></a>2270. Inconsistent <tt>to_string</tt> overloads</h3>
-<p><b>Section:</b> 21.5 [string.conversions] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Raf Schietekat <b>Opened:</b> 2013-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.conversions">issues</a> in [string.conversions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For internal consistency, <tt>to_string()</tt> should either list all relevant types (including <tt>bool</tt>, <tt>char</tt>, etc.), 
-or only those that are the destination types of integral or floating-point promotion (<tt>float</tt> not being among them).
-<p/>
-A defensible reason for having (or rather keeping) the <tt>float</tt> overloads anyway could be to exactly mirror the adjacent 
-sets of <tt>stoX()</tt> function overloads (even without round-trip fidelity for floating-point numbers).
-<p/>
-Unfortunately, that reveals a bigger issue than redundant overloads: the glaring and indefensible omission of an overloaded 
-function <tt>stoui()</tt>. Adding that is not as trivial as removing redundant overloads, of course, because it requires 
-everybody to take action. Still, it is the preferable remedy for the present situation.
-<p/>
-As far as I can tell from easily accessible information, C++ has already created the precedent with <tt>stoi()</tt>, which 
-is not the equivalent of a pair of functions <tt>strtoi()</tt>/<tt>wcstoi()</tt> in C, but it would be if such functions 
-existed. The function <tt>atoi()</tt> may look similar, but it does not qualify because it is as different from a 
-hypothetical <tt>strtoi()</tt> as <tt>atol()</tt> currently is from <tt>strtol()</tt>, with the latter two both Standard C. 
-It is only logical to act on this one-sided precedent by completing the set. Whether or not Standard C leads the way 
-(or follows suit) is immaterial, but an invitation could be extended.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-These overloads were very carefully and experimentally determined to be the minimal set, when all (known) promotion and
-conversion scenarios were considered.  Removing superfluous-looking overloads is likely to result in ambiguities.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Modify 21.3 [string.classes], header <tt>&lt;string&gt;</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-#include &lt;initializer_list&gt;
-
-namespace std {
-  [&hellip;]
-  string to_string(int val);
-  string to_string(unsigned val);
-  string to_string(long val);
-  string to_string(unsigned long val);
-  string to_string(long long val);
-  string to_string(unsigned long long val);
-  <del>string to_string(float val);</del>
-  string to_string(double val);
-  string to_string(long double val);
-  [&hellip;]
-
-  [&hellip;]
-  wstring to_wstring(int val);
-  wstring to_wstring(unsigned val);
-  wstring to_wstring(long val);
-  wstring to_wstring(unsigned long val);
-  wstring to_wstring(long long val);
-  wstring to_wstring(unsigned long long val);
-  <del>wstring to_wstring(float val);</del>
-  wstring to_wstring(double val);
-  wstring to_wstring(long double val);
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify 21.5 [string.conversions] p7+14 as indicated:</p>
-
-<blockquote>
-<pre>
-string to_string(int val);
-string to_string(unsigned val);
-string to_string(long val);
-string to_string(unsigned long val);
-string to_string(long long val);
-string to_string(unsigned long long val);
-<del>string to_string(float val);</del>
-string to_string(double val);
-string to_string(long double val);
-</pre>
-<blockquote>
-<p>
--7- <i>Returns:</i> Each function returns a <tt>string</tt> object holding the character representation of the value of
-its argument that would be generated by calling <tt>sprintf(buf, fmt, val)</tt> with a format specifier of
-<tt>"%d"</tt>, <tt>"%u"</tt>, <tt>"%ld"</tt>, <tt>"%lu"</tt>, <tt>"%lld"</tt>, <tt>"%llu"</tt>, <del><tt>"%f"</tt>,</del> 
-<tt>"%f"</tt>, or <tt>"%Lf"</tt>, respectively, where <tt>buf</tt> designates an internal character buffer of sufficient size.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-wstring to_wstring(int val);
-wstring to_wstring(unsigned val);
-wstring to_wstring(long val);
-wstring to_wstring(unsigned long val);
-wstring to_wstring(long long val);
-wstring to_wstring(unsigned long long val);
-<del>wstring to_wstring(float val);</del>
-wstring to_wstring(double val);
-wstring to_wstring(long double val);
-</pre>
-<blockquote>
-<p>
--14- <i>Returns:</i> Each function returns a <tt>wstring</tt> object holding the character representation of the value of
-its argument that would be generated by calling <tt>swprintf(buf, buffsz, fmt, val)</tt> with a format specifier of
-<tt>L"%d"</tt>, <tt>L"%u"</tt>, <tt>L"%ld"</tt>, <tt>L"%lu"</tt>, <tt>L"%lld"</tt>, <tt>L"%llu"</tt>, <del><tt>L"%f"</tt>,</del> 
-<tt>L"%f"</tt>, or <tt>L"%Lf"</tt>, respectively, where <tt>buf</tt> designates an internal character buffer of sufficient 
-size <tt>buffsz</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2279"></a>2279. Carefully state effects of <tt>list::splice</tt> function</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops], 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Arseny Klimovsky <b>Opened:</b> 2013-08-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think that the effects of <tt>list::splice</tt> function should be stated more carefully.
-<p/>
-Function transferring a single element is described now in the following way (23.3.5.5 [list.ops] p7):
-</p>
-
-<blockquote>
-<pre>
-void splice(const_iterator position, list&amp; x, const_iterator i);
-void splice(const_iterator position, list&amp;&amp; x, const_iterator i);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Inserts an element pointed to by <tt>i</tt> from list <tt>x</tt> before position and removes the element from
-<tt>x</tt>. The result is unchanged if <tt>position == i</tt> or <tt>position == ++i</tt>. Pointers and references to <tt>*i</tt>
-continue to refer to this same element but as a member of <tt>*this</tt>. Iterators to <tt>*i</tt> (including <tt>i</tt> itself)
-continue to refer to the same element, but now behave as iterators into <tt>*this</tt>, not into <tt>x</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-But it is incorrect to talk about <tt>operator==</tt> for iterators that are not from the same container (after acceptance of 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>, 24.2.5 [forward.iterators] p2). 
-So, the text operates with an undefined behaviour.
-</p>
-
-<p>
-One is formally allowed to have list implementation where two iterators from different lists return true to <tt>operator==</tt>.
-For example, this can only happen to non-dereferenceable iterators, and <tt>position</tt> and <tt>++i</tt> can be 
-non-dereferenceable. So, literally according to the standard, it is not allowed in this implementation to transfer 
-such elements with <tt>splice</tt> function.
-</p>
-
-<p><i>[2013-09 Chicago (late night issues)]</i></p>
-
-<p>
-Moved to NAD.
-</p>
-<p>
-The condition under which the <tt>list</tt> is unchanged is not program code, so there is no undefined behavior to protect against.
-Rather, the precondition that the evaluation can be performed is implicit if determining when the condition applies.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Modify 23.3.4.6 [forwardlist.ops] p6 as indicated:</p>
-
-<blockquote>
-<pre>
-void splice_after(const_iterator position, forward_list&amp; x, const_iterator i);
-void splice_after(const_iterator position, forward_list&amp;&amp; x, const_iterator i);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--6- <i>Effects:</i> Inserts the element following <tt>i</tt> into <tt>*this</tt>, following <tt>position</tt>, 
-and removes it from <tt>x</tt>. The result is unchanged if <ins><tt>&amp;x == this</tt> and the following 
-condition is satisfied:</ins> <tt>position == i</tt> or <tt>position == ++i</tt>. Pointers and references to 
-<tt>*++i</tt> continue to refer to the same element but as a member of <tt>*this</tt>. Iterators to <tt>*++i</tt> 
-continue to refer to the same element, but now behave as iterators into <tt>*this</tt>, not into <tt>x</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Modify 23.3.5.5 [list.ops] p7 as indicated:</p>
-
-<blockquote>
-<pre>
-void splice(const_iterator position, list&amp; x, const_iterator i);
-void splice(const_iterator position, list&amp;&amp; x, const_iterator i);
-</pre>
-<blockquote>
-<p>
--7- <i>Effects:</i> Inserts an element pointed to by <tt>i</tt> from list <tt>x</tt> before position and removes 
-the element from <tt>x</tt>. The result is unchanged if <ins><tt>&amp;x == this</tt> and the following 
-condition is satisfied:</ins> <tt>position == i</tt> or <tt>position == ++i</tt>. Pointers and references to 
-<tt>*i</tt> continue to refer to this same element but as a member of <tt>*this</tt>. Iterators to <tt>*i</tt> 
-(including <tt>i</tt> itself) continue to refer to the same element, but now behave as iterators into <tt>*this</tt>, 
-not into <tt>x</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2281"></a>2281. C99 cross-reference typo in [using.linkage]</h3>
-<p><b>Section:</b> 17.6.2.3 [using.linkage] <b>Status:</b> <a href="lwg-active.html#NAD Editorial">NAD Editorial</a>
- <b>Submitter:</b> Chris Sharpe <b>Opened:</b> 2013-08-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#using.linkage">issues</a> in [using.linkage].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD Editorial">NAD Editorial</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is a footnote at section 17.6.2.3 [using.linkage]/2 that reads:
-</p>
-<blockquote><p>
-"The only reliable way to declare an object or function signature from the Standard C library is by including 
-the header that declares it, notwithstanding the latitude granted in 7.1.7 of the C Standard."
-</p></blockquote>
-<p>
-There is no section 7.1.7 in the C99 Standard (or C11 final draft). I think the relevant section is:
-</p>
-<blockquote><p>
-"Provided that a library function can be declared without reference to any type defined in a header, it is also 
-permissible to declare the function and use it without including its associated header."
-</p></blockquote>
-<p>
-at 7.1.4/2 from C99.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Moved to NAD Editorial.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit footnote 182, 17.6.2.3 [using.linkage] as indicated:</p>
-
-<blockquote>
-<p>
-The only reliable way to declare an object or function signature from the Standard C library is by including the header
-that declares it, notwithstanding the latitude granted in <del>7.1.7</del><ins>7.1.4</ins> of the C Standard.
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2297"></a>2297. [CD] Missing type requirements for <tt>std::exchange</tt></h3>
-<p><b>Section:</b> 20.2.3 [utility.exchange] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2013-09-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.exchange">issues</a> in [utility.exchange].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB 5</b></p>
-
-<p>
-The wording describes example code including the call of a move constructor, but there is no requirement 
-stated that <tt>T</tt> be move constructible. 
-<p/>
-We would like to add a new Para 1 before existing paragraph:
-</p>
-<blockquote><p>
-<i>Requires:</i> Type <tt>T</tt> shall be <tt>MoveConstructible</tt> (Table 20) and <tt>MoveAssignable</tt> (Table 22).
-</p></blockquote>
-
-<p>
-However the <tt>MoveAssignable</tt> concept currently does not cover cases where the source and destination types may differ.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-The requirements are implicit according to 17.5.1.4 [structure.specifications]p4.  There is no desire to redundantly
-repeat a set of requirements.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2302"></a>2302. Passing null pointer to placement new</h3>
-<p><b>Section:</b> 18.6.1.3 [new.delete.placement] <b>Status:</b> <a href="lwg-active.html#NAD">Pending NAD</a>
- <b>Submitter:</b> Marc Glisse <b>Opened:</b> 2013-09-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.placement">issues</a> in [new.delete.placement].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Pending NAD">Pending NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Based on <a href="http://stackoverflow.com/questions/17571103/passing-null-pointer-to-placement-new">this discussion</a> 
-and as discussed in <a href="http://accu.org/cgi-bin/wg21/message?wg=core&amp;msg=23998">c++std-core-23998</a> and
-<a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=34442">c++std-lib-34442</a>, calling placement new currently forces the 
-compiler to check if the pointer is null before initializing the object (a non-negligible cost). It seems many people were not 
-aware of this and they consider it a user error to pass a null pointer to it.
-<p/>
-Proposed resolution: for <tt>operator new</tt> and <tt>operator new[]</tt>, add:
-</p>
-<blockquote><p>
-<i>Requires:</i> <tt>ptr</tt> shall not be a null pointer.
-</p></blockquote>
-
-<p><i>[2014-02-15 post-Issaquah session : move to Tentatively NAD]</i></p>
-
-<p>
-AJM to supply the rationale...
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 18.6.1.3 [new.delete.placement] as indicated:</p>
-
-<blockquote>
-<pre>
-void* operator new(std::size_t size, void* ptr) noexcept;
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires:</i> <tt>ptr</tt> shall not be a null pointer.</ins>
-<p/>
--2- <i>Returns:</i> <tt>ptr</tt>.
-<p/>
--3- <i>Remarks:</i> Intentionally performs no other action.
-<p/>
--4- [<i>Example:</i> This can be useful for constructing an object at a known address:
-</p><blockquote><pre>
-void* place = operator new(sizeof(Something));
-Something* p = new (place) Something();
-</pre></blockquote>
-<p>
-&mdash; <i>end example</i>]
-</p>
-</blockquote>
-</blockquote>
-<blockquote>
-<pre>
-void* operator new[](std::size_t size, void* ptr) noexcept;
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires:</i> <tt>ptr</tt> shall not be a null pointer.</ins>
-<p/>
--5- <i>Returns:</i> <tt>ptr</tt>.
-<p/>
--6- <i>Remarks:</i> Intentionally performs no other action.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2305"></a>2305. [fund.ts] <tt>optional</tt> forwarding construction/assignment</h3>
-<p><b>Section:</b> X [optional.object.ctor] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Cassio Neri <b>Opened:</b> 2013-09-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-Consider:
-</p>
-<blockquote><pre>
-struct foo {
-  foo(std::initializer_list&lt;int&gt;&amp;);        // 1
-  foo(const std::initializer_list&lt;int&gt;&amp;);  // 2
-  foo(std::initializer_list&lt;int&gt;&amp;&amp;);       // 3
-  foo(const std::initializer_list&lt;int&gt;&amp;&amp;); // 4
-};
-
-std::initializer_list&lt;int&gt; il{0, 1, 2};
-
-foo foo_0{1, 2, 3};                                 // calls 3
-foo foo_1{il};                                      // calls 1
-foo foo_2((const std::initializer_list&lt;int&gt;&amp;) il);  // calls 2
-foo foo_3{(std::initializer_list&lt;int&gt;&amp;&amp;) il};       // calls 3
-foo foo_4((const std::initializer_list&lt;int&gt;&amp;&amp;) il); // calls 4
-</pre></blockquote>
-<p>
-Although the constructors of <tt>foo</tt> are unusual (<tt>initializer_list</tt>s are <i>normally</i> passed by
-value) users of <tt>optional</tt> could naturally expect perfect forwarding of <tt>initializer_list</tt>s. However,
-all lines below end up calling 1.
-</p>
-<blockquote><pre>
-optional&lt;foo&gt; opt0{in_place, {1, 2, 3}};
-optional&lt;foo&gt; opt1{in_place, il};                    
-optional&lt;foo&gt; opt3{in_place, (const std::initializer_list&lt;int&gt;&amp;) il};
-optional&lt;foo&gt; opt2{in_place, (std::initializer_list&lt;int&gt;&amp;&amp;) il};
-optional&lt;foo&gt; opt4{in_place, (const std::initializer_list&lt;int&gt;&amp;&amp;) il};
-
-opt0.emplace({1, 2, 3});
-opt0.emplace(il);
-opt0.emplace((const std::initializer_list&lt;int&gt;&amp;) il);
-opt0.emplace((std::initializer_list&lt;int&gt;&amp;&amp;) il);
-opt0.emplace((const std::initializer_list&lt;int&gt;&amp;&amp;) il);
-</pre></blockquote>
-<p>
-The constructor
-</p>
-<blockquote><pre>
-template &lt;class... Args&gt; constexpr explicit optional(in_place_t, Args&amp;&amp;... args);
-</pre></blockquote>
-<p>
-can handle all constructor calls above, except the one taking <tt>{1, 2, 3}</tt>. Hence, a simple
-<ins>modification</ins> of
-</p>
-<blockquote><pre>
-template &lt;class U, class... Args&gt;
-constexpr explicit optional(in_place_t, initializer_list&lt;U&gt;<ins>&amp;&amp;</ins> il, Args&amp;&amp;... args);
-</pre></blockquote>
-<p>
-allows perfect forwarding of <tt>std::initializer_list&lt;U&gt;</tt>s to be complete.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswil]</i></p>
-
-<p>
-This issue has been reopened as fundamentals-ts.
-</p>
-
-<p><i>[2014-06-17, Rapperswil]</i></p>
-
-<p>
-Move to NAD
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change X [optional.object.ctor] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class U, class... Args&gt; 
-constexpr explicit optional(in_place_t, initializer_list&lt;U&gt;<ins>&amp;&amp;</ins> il, Args&amp;&amp;... args);
-</pre><blockquote>
-<p>
--27- <i>Requires</i>: <tt>is_constructible&lt;T, initializer_list&lt;U&gt;&amp;<ins>&amp;</ins>, Args&amp;&amp;...>::value</tt> is <tt>true.</tt>
-<p/>
--28- <i>Effects</i>: Initializes the contained value as if constructing an object of type <tt>T</tt> with the arguments
-<tt><del>il</del><ins>std::move(il)</ins></tt>, <tt>std::forward&lt;Args&gt;(args)...</tt>.
-<p/>
-[&hellip;]
-<p/>
-<del>-31- <i>Remarks</i>: The function shall not participate in overload resolution unless
-<tt>is_constructible&lt;T, initializer_list&lt;U&gt;&amp;, Args&amp;&amp;...&gt;::value</tt> is <tt>true</tt>.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-<li><p>Change X [optional.object.assign] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class U, class... Args&gt;
-void optional&lt;T&gt;::emplace(initializer_list&lt;U&gt;<ins>&amp;&amp;</ins> il, Args&amp;&amp;... args);
-</pre><blockquote>
-<p>
--27- <i>Requires</i>: <tt>is_constructible&lt;T, initializer_list&lt;U&gt;&amp;<ins>&amp;</ins>, Args&amp;&amp;...>::value</tt> is <tt>true.</tt>
-<p/>
--28- <i>Effects</i>: Calls <tt>*this = nullopt</tt>. Then initializes the contained value as if constructing an object of
-type <tt>T</tt> with the arguments <tt><del>il</del><ins>std::move(il)</ins></tt>, <tt>std::forward&lt;Args&gt;(args)...</tt>.
-<p/>
-[&hellip;]
-<p/>
-<del>-32- <i>Remarks</i>: This function shall not participate in overload resolution unless
-<tt>is_constructible&lt;T, initializer_list&lt;U&gt;&amp;, Args&amp;&amp;...>::value</tt> is <tt>true.</tt></del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2311"></a>2311. Allocator requirements should be further minimized</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-C++11's minimized allocator requirements are great, but they're still requiring more things from users than absolutely necessary.
-</p>
-<ul>
-<li><p>
-They require <tt>X::value_type</tt>, but that can be deduced from <tt>SomeAllocator&lt;T, Args&gt;</tt>.
-</p></li>
-<li><p>
-They require <tt>a1 == a2</tt>, but that could default to <tt>true</tt> as most allocators are stateless.
-</p></li>
-<li><p>
-They require <tt>a1 != a2</tt>, but if we start requiring STL implementations to go through <tt>allocator_traits</tt> 
-to provide an <tt>op==</tt> default, we won't need to require <tt>op!=</tt> from users at all. (<tt>std::allocator</tt>, 
-of course, would continue to provide <tt>op!=</tt>. Note that this is analogous to <tt>reference</tt>/<tt>const_reference</tt> &mdash; 
-<tt>std::allocator</tt> still provides them, but we don't require them from users, and in fact we don't require them to be 
-consistent or meaningful if present.)
-</p></li>
-<li><p>
-They require <tt>a == b</tt> and <tt>a != b</tt>. This requirement was not present in C++98/03, it is not necessary 
-(<tt>a == b</tt> is always required to be equivalent to rebind-then-compare), and STL implementations don't even need 
-to compare allocators of different types directly.
-</p></li>
-</ul>
-
-<p><i>[2014-02-14 Issaquah: Close as NAD]</i></p>
-
-<p>
-Different vendors rely on each of the different elements suggested to be removed.
-</p>
-<p>
-While <tt>value_type</tt> my be deduced as suggested, far too much wording relies on it being available,
-and the standard churn is likely to be much harder than presented here.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change in 17.6.3.5 [allocator.requirements], Table 28 &mdash; "Allocator requirements" as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Default</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X::value_type</tt>
-</td>
-<td>
-Identical to <tt>T</tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<ins>See Note B, below.</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a1 == a2</tt>
-</td>
-<td>
-<tt>bool</tt>
-</td>
-<td>
-returns <tt>true</tt> only if storage<br/>
-allocated from each can be<br/>
-deallocated via the other.<br/>
-<tt>operator==</tt> shall be reflexive,<br/>
-symmetric, and transitive, and<br/>
-shall not exit via an exception.<br/>
-</td>
-<td>
-<ins><tt>true</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>a1 != a2</tt></del>
-</td>
-<td>
-<del><tt>bool</tt></del>
-</td>
-<td>
-<del>same as <tt>!(a1 == a2)</tt></del>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>a == b</tt></del>
-</td>
-<td>
-<del><tt>bool</tt></del>
-</td>
-<td>
-<del>same as <tt>a ==<br/>
-Y::rebind&lt;T&gt;::other(b)</tt></del>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td>
-<del><tt>a != b</tt></del>
-</td>
-<td>
-<del><tt>bool</tt></del>
-</td>
-<td>
-<del>same as <tt>!(a == b)</tt></del>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X a(b);</tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-Shall not exit via an exception.<br/>
-post: <tt>Y(a) == b</tt>, <tt>a == X(b)</tt>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X a(move(b));</tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-Shall not exit via an exception.<br/>
-post: <tt>a</tt> equals the prior value of <tt>X(b)</tt>.
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li><p>After 17.6.3.5 [allocator.requirements] p3, add a new paragraph:</p>
-
-<blockquote>
-<p>
-<ins>Note B: If <tt>Allocator</tt> is a class template instantiation of the form <tt>SomeAllocator&lt;T, Args&gt;</tt>, 
-where <tt>Args</tt> is zero or more type arguments, and <tt>Allocator</tt> does not supply a nested type named <tt>value_type</tt>, 
-the standard <tt>allocator_traits</tt> template uses <tt>T</tt> in place of <tt>Allocator::value_type</tt> by default. 
-For allocator types that are not template instantiations of the above form, no default is provided.</ins>
-</p>
-</blockquote>
-</li>
-
-<li><p>In the example provided in 17.6.3.5 [allocator.requirements]/5, delete as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class Tp&gt;
-struct SimpleAllocator {
-  <del>typedef Tp value_type;</del>
-  SimpleAllocator(ctor args);
-  template &lt;class T&gt; SimpleAllocator(const SimpleAllocator&lt;T&gt;&amp; other);
-  Tp *allocate(std::size_t n);
-  void deallocate(Tp *p, std::size_t n);
-};
-
-<del>template &lt;class T, class U&gt;
-bool operator==(const SimpleAllocator&lt;T&gt;&amp;, const SimpleAllocator&lt;U&gt;&amp;);
-template &lt;class T, class U&gt;
-bool operator!=(const SimpleAllocator&lt;T&gt;&amp;, const SimpleAllocator&lt;U&gt;&amp;);</del>
-</pre>
-</blockquote>
-
-</li>
-
-<li><p>Edit 20.7.8 [allocator.traits]p1, class template <tt>allocator_traits</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Alloc&gt; struct allocator_traits {
-    typedef Alloc allocator_type;
-
-    typedef <del>typename Alloc::value_type</del><ins><i>see below</i></ins> value_type;
-
-    [&hellip;]
-
-    static Alloc select_on_container_copy_construction(const Alloc&amp; rhs);
-
-    <ins>static bool equal(const Alloc&amp; a1, const Alloc&amp; a2) noexcept;</ins>
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>At the beginning of 20.7.8.1 [allocator.traits.types], add a new paragraph:</p>
-
-<blockquote><pre>
-<ins>typedef <i>see below</i> value_type;</ins>
-</pre><blockquote>
-<p>
-<ins><i>Type:</i> <tt>Alloc::value_type</tt> if such a type exists; otherwise, <tt>T</tt> if <tt>Alloc</tt> is a class template 
-instantiation of the form <tt>Alloc&lt;T, Args&gt;</tt>, where <tt>Args</tt> is zero or more type arguments; otherwise, the program 
-is ill-formed.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>At the end of 20.7.8.2 [allocator.traits.members], add a new paragraph:</p>
-
-<blockquote><pre>
-<ins>static bool equal(const Alloc&amp; a1, const Alloc&amp; a2) noexcept;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Returns:</i> <tt>a1 == a2</tt> if that expression is well-formed; otherwise, <tt>true</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2327"></a>2327. Non-power-of-two URNGs should be forbidden</h3>
-<p><b>Section:</b> 26.5.1.3 [rand.req.urng] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.urng">issues</a> in [rand.req.urng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-26.5.1.3 [rand.req.urng] allows URNGs with non-power-of-two (NPOT) ranges, like <tt>[0, 1729]</tt>. This is unnecessarily permissive 
-(I cannot imagine a realistic source of randomness that would generate such a range) and has real costs for implementers, as 
-<tt>uniform_int_distribution</tt> must be prepared to accept such URNGs. The most efficient way to accumulate randomness is to 
-concatenate random bits, so NPOT randomness is not just useless, it is actively harmful (to avoid bias, if a URNG generates a 
-random number outside of a power-of-two range, the number must be discarded).
-<p/>
-Forbidding NPOT URNGs wouldn't affect users, and would simplify Standard Library implementations. It would be nice to require 
-<tt>min()</tt> to be <tt>0</tt>, but this is not necessary; it is simple for implementations to say <tt>g() - G::min()</tt> and 
-this will optimize away if <tt>min()</tt> is <tt>0</tt>. (It is vaguely plausible for a URNG to have a nonzero minimum; I can 
-imagine something that simply masks off low-order bits without shifting the rest downwards.) What is important is for the entire 
-range to have a power-of-two width; <tt>[1729, 1984]</tt> is acceptable as its size is 256.
-</p>
-
-<p><i>[2013-10-12: Howard presents a counterexample]</i></p>
-
-
-<p>
-Consider:
-</p>
-<blockquote><pre>
-#include &lt;random&gt;
-#include &lt;string&gt;
-#include &lt;iostream&gt;
-
-template &lt;class Int&gt;
-bool is_power_2m1(Int i)
-{
-  return (i &amp; (i + 1)) == 0;
-}
-
-template &lt;class URNG&gt;
-void test(const std::string&amp; urng)
-{
-  using namespace std;
-  typename URNG::result_type rng = URNG::max() - URNG::min();
-  if (!is_power_2m1(rng))
-  {
-    cout &lt;&lt; hex;
-    cout &lt;&lt; urng &lt;&lt; " : min = " &lt;&lt; URNG::min() &lt;&lt; ", max = " &lt;&lt; URNG::max()
-         &lt;&lt; ", max-min = " &lt;&lt; rng &lt;&lt; '\n';
-  }
-};
-
-int main()
-{
-    using namespace std;
-    test&lt;minstd_rand0&gt;("minstd_rand0");
-    test&lt;minstd_rand&gt;("minstd_rand");
-    test&lt;mt19937&gt;("mt19937");
-    test&lt;mt19937_64&gt;("mt19937_64");
-    test&lt;ranlux24_base&gt;("ranlux24_base");
-    test&lt;ranlux48_base&gt;("ranlux48_base");
-    test&lt;ranlux24&gt;("ranlux24");
-    test&lt;ranlux48&gt;("ranlux48");
-    test&lt;knuth_b&gt;("knuth_b");
-}
-</pre></blockquote>
-
-<p>
-Which for me outputs:
-</p>
-
-<blockquote><pre>
-minstd_rand0 : min = 1, max = 7ffffffe, max-min = 7ffffffd
-minstd_rand : min = 1, max = 7ffffffe, max-min = 7ffffffd
-knuth_b : min = 1, max = 7ffffffe, max-min = 7ffffffd
-</pre></blockquote>
-
-<p>
-We do not want to outlaw these three URNG's, and the proposed wording would do that.
-</p>
-
-<p><i>[Issaquah 2014-02-10: Moved to NAD]</i></p>
-
-<p>
-STL withdraws the issue, non-power-of-2 URNGs are used in the field, it is too late to consider removing them.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Add a new paragraph at the end of 26.5.1.3 [rand.req.urng] as indicated:</p>
-
-<blockquote>
-<p>
--3- The following relation shall hold: <tt>G::min() &lt; G::max()</tt>.
-<p/>
-<ins>-?- <tt>G::max() - G::min()</tt> shall be 2<sup><tt>n</tt></sup> - 1 for some <tt>n &gt; 0</tt>.</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2345"></a>2345. <tt>integer_sequence</tt> should have a self-typedef <tt>::type</tt></h3>
-<p><b>Section:</b> 20.5.2 [intseq.intseq] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-11-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.10.3 [meta.help] says that <tt>integral_constant&lt;T, v&gt;</tt> provides <tt>::value_type</tt> (for <tt>T</tt>) 
-and <tt>::type</tt> (for itself).
-<p/>
-20.5.2 [intseq.intseq] says that <tt>integer_sequence&lt;T, I...&gt;</tt> provides <tt>::value_type</tt> (for <tt>T</tt>), 
-but nothing for itself.
-<p/>
-Self-typedefs can be useful when users create chains of derived classes, then want to get the Standard base type.  
-This is especially relevant to <tt>integer_sequence</tt>, as variadic templates encourage recursive inheritance.
-</p>
-
-<p><i>[2014-02-13 Issaquah: Close as NAD]</i></p>
-
-<p>
-AJM: My own implementation used a different alias for types representing parameter packs, and specifically
-did <em>not</em> define <tt>type</tt>.  I tried it both ways, and found bugs more quickly when <tt>type</tt> was
-not defined.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Edit 20.5.2 [intseq.intseq] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class T, T... I&gt;
-  struct integer_sequence {
-    typedef T value_type;
-    <ins>typedef integer_sequence&lt;T, I...&gt; type;</ins>
-    static constexpr size_t size() noexcept { return sizeof...(I); }
-  };
-}
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2347"></a>2347. <tt>reverse_iterator::operator[]</tt> calls const version of <tt>current[]</tt></h3>
-<p><b>Section:</b> 24.5.1.3.12 [reverse.iter.opindex] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Timo Bingmann <b>Opened:</b> 2013-11-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iter.opindex">issues</a> in [reverse.iter.opindex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Currently <tt>reverse_iterator::operator[]()</tt> returns "<tt>current[-n-1]</tt>" and has
-an "<em>unspecified</em>" return type.
-<p/>
-When <tt>Iterator</tt> is a mutable random access iterator, the expression
-"<tt>current[-n-1]</tt>" calls "<tt>Iterator::operator[] const</tt>", which returns a
-const reference. This const reference cannot be converted back to a
-mutable reference.
-<p/>
-This issue is related to the "<em>unspecified</em>" return value of
-<tt>reverse_iterator::operator[]</tt>, see defect <a href="lwg-defects.html#386">386</a>.
-<p/>
-The -1 is due to "current" pointing one item beyond the
-<tt>reverse_iterator</tt>'s real current value.
-<p/>
-The current libstdc++ implementation reads "<tt>*(current + n)</tt>" for
-<tt>reverse_iterator::operator[]</tt>.
-<p/>
-This copied <tt>current</tt>, advances (backwards) via <tt>operator+</tt> and
-dereferences. It bypasses the issues due to <tt>reverse_iterator::operator[]</tt>
-being const by copying the iterator.
-</p>
-
-<p><i>[2014-02-13 Issaquah : close as NAD]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Edit 24.5.1.1 [reverse.iterator], class template <tt>reverse_iterator</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Iterator&gt;
-  class reverse_iterator : public
-  iterator&lt;typename iterator_traits&lt;Iterator&gt;::iterator_category,
-    typename iterator_traits&lt;Iterator&gt;::value_type,
-    typename iterator_traits&lt;Iterator&gt;::difference_type,
-    typename iterator_traits&lt;Iterator&gt;::pointer,
-    typename iterator_traits&lt;Iterator&gt;::reference> {
-  public:
-    [&hellip;]
-    <del><em>unspecified</em></del><ins>reference</ins> operator[](difference_type n) const;
-    [&hellip;]
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Edit 24.5.1.3.12 [reverse.iter.opindex] as indicated:</p>
-
-<blockquote><pre>
-<del><em>unspecified</em></del><ins>reference</ins> operator[](
-  typename reverse_iterator&lt;Iterator&gt;::difference_type n) const;
-</pre><blockquote>
-<p>
--1- <i>Returns:</i> <tt><del>current[-n-1]</del><ins>*(current + n)</ins></tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2351"></a>2351. Does <tt>.seed()</tt> completely reset state of engine?</h3>
-<p><b>Section:</b> 26.5.3 [rand.eng] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2013-12-02 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng">issues</a> in [rand.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With regard to Random number engine class templates 26.5.3 [rand.eng],
-the Standard can be read in two different ways: when the member function
-</p>
-<blockquote><pre>
-.seed(result_type s = default_seed)
-</pre></blockquote>
-<p>
-is invoked, is all associated state (such as carry) reset to the same
-state that would have been created by the constructor
-</p>
-<blockquote><pre>
-explicit <em>engine-type</em>(result_type s = default_seed)
-</pre></blockquote>
-<p>
-or is the exact state unspecified?
-<p/>
-Implementations differ.
-</p>
-
-<p><i>[2014-02-13, Issaquah]</i></p>
-
-<p>
-Walter Brown says that Table 117 makes this very clear, and that the answer is "Yes"
-<p/>
-Suggested resolution: NAD
-</p>
-
-<p><i>[2015-05-05 Lenexa: Move to NAD]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Suggested resolution: NAD
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2355"></a>2355. <tt>"s"</tt> UDL suffix should be reserved for a compile-time string library type</h3>
-<p><b>Section:</b> 21.7 [basic.string.literals] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Michael Price <b>Opened:</b> 2014-01-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current draft uses the <tt>"s"</tt> UDL suffix as a UDL for <tt>basic_string&lt;charT&gt;</tt> (21.7 [basic.string.literals]). 
-In light of EWG active issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3682.html#66">66</a> (concerning N3599), 
-the <tt>"s"</tt> suffix (when applied to character string literals) should be reserved for a compile-time string library type.
-</p>
-
-<p><i>[Issaquah 2014-10-12: Move to NAD]</i></p>
-
-
-<p>We discussed leaving the <tt>s</tt> UDL suffix for <tt>string_view</tt> in Portland, and voted strongly in favor of using it for <tt>std::string</tt>.
-<tt>string</tt> is also an extremely widely used type, and the difference is observable in type deduction cases.
-In addition, a compile-time string is likely to cost significant compile time, which we don't want to make the default with <tt>s</tt>.</p>
-<table>
-  <caption>Mark 2355 as NAD?</caption>
-  <tr><td>SF</td><td>F</td><td>N</td><td>A</td><td>SA</td></tr>
-  <tr><td>8</td> <td>4</td><td>0</td><td>2</td><td>0</td></tr>
-</table>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2373"></a>2373. Make new entities and names in namespace <tt>std</tt> conforming extensions</h3>
-<p><b>Section:</b> 17.6.5 [conforming] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Chandler Carruth <b>Opened:</b> 2014-03-22 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#conforming">issues</a> in [conforming].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Technically, right now, it is not a conforming extension to add a new function to namespace <tt>std</tt>. Doing so could cause 
-unqualified lookup on the name of that function in the presence of a using directive to find a different function. This seems 
-an unreasonable restriction on library vendors providing conforming extensions, as such a using directive seems inherently risky 
-in unqualified name lookup.
-</p>
-<p>
-17.6.5.5 [member.functions] implies that adding overloads to a method <em>is</em> a conforming extension, and within some 
-limits the same is true for global functions due to 17.6.5.4 [global.functions].
-<p/>
-It would likely be useful to specify that other new entities are valid conforming extensions, or preclude them where they pose 
-serious compatibility problems.
-</p>
-
-<p><i>[Lenexa 2015-05-06: Move to NAD]</i></p>
-
-<p>JY: It's a design question, move to LEWG?</p>
-<p>AM: NAD: extensions led to us being unable to use the names hash_map, leading to unordered_map etc. Will result in collisions between members.</p>
-<p>MC: Agrees, implementations that extend std:: must use __ugly_names for this reason.</p>
-<p>JY: I would not oppose NAD.</p>
-<p>Move to NAD, consensus.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2382"></a>2382. Unclear order of container update versus object destruction on removing an object</h3>
-<p><b>Section:</b> 17.6.5.8 [reentrancy] <b>Status:</b> <a href="lwg-active.html#NAD">Pending NAD</a>
- <b>Submitter:</b> Peter Kasting <b>Opened:</b> 2014-05-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reentrancy">issues</a> in [reentrancy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Pending NAD">Pending NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard does not seem to discuss reentrant access to a container during removal of an element, 
-leaving it unclear whether a removed object is destroyed before or after it is removed from the container.  
-For example, the behavior of the following code seems to be unspecified:
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;map&gt;
-#include &lt;memory&gt;
-
-struct T;
-typedef std::map&lt;int, std::shared_ptr&lt;T&gt;&gt; TMap;
-
-struct T {
-  T(TMap* t_map, int index) : t_map(t_map), index(index) {}
-  ~T() {
-    std::cout &lt;&lt; "Object " &lt;&lt; index &lt;&lt; " is ";
-    if (t_map->count(index))
-      std::cout &lt;&lt; "destroyed before being removed from the map" &lt;&lt; std::endl;
-    else
-      std::cout &lt;&lt; "removed from the map before being destroyed" &lt;&lt; std::endl;
-  }
-
-  static void AddToMap(TMap* map, int index) {
-    (*map)[index] = std::make_shared&lt;T&gt;(map, index);
-  }
-
-  TMap* t_map;
-  int index;
-};
-
-int main()
-{
-  TMap t_map;
-  T::AddToMap(&amp;t_map, 0);
-  T::AddToMap(&amp;t_map, 1);
-  t_map.erase(1);
-  t_map.erase(0);
-}
-</pre></blockquote>
-<p>
-The output of this program in Visual Studio 2013 is:
-</p>
-<blockquote><pre>
-Object 1 is removed from the map before being destroyed
-Object 0 is destroyed before being removed from the map
-</pre></blockquote>
-<p>
-The core issue here is whether an object removed from a container should be destroyed before or after 
-it is removed from the container. The current standard seems to be silent on this issue. 
-The above output demonstrates that the behavior is actually inconsistent. (It's difficult to fully 
-describe Visual Studio's behavior; for example, changing <tt>main()</tt> in the above example to the following:)
-</p>
-<blockquote><pre>
-int main()
-{
-  TMap t_map;
-  T::AddToMap(&amp;t_map, 0);
-  T::AddToMap(&amp;t_map, 1);
-  T::AddToMap(&amp;t_map, 2);
-  T::AddToMap(&amp;t_map, 3);
-  t_map.erase(3);
-  t_map.clear();
-}
-</pre></blockquote>
-<p>
-(...gives this output:)
-</p>
-<blockquote><pre>
-Object 3 is removed from the map before being destroyed
-Object 2 is destroyed before being removed from the map
-Object 1 is destroyed before being removed from the map
-Object 0 is removed from the map before being destroyed
-</pre></blockquote>
-<p>
-In my opinion, the standard should explicitly describe when objects are destroyed as part of removal from a container. 
-To me, it makes the most sense to say that objects should be removed from the container before they are destroyed.
-</p>
-<p><i>[2014-05-07, Jeffrey Yasskin comments]</i></p>
-
-<p>
-I think there are two main points here beyond this writeup:
-</p>
-<ol>
-<li><p>We can't make recursive use of a standard library container valid
-in all cases.</p></li>
-<li><p>If recursion through especially <tt>erase()</tt> is undefined behavior,
-that's pretty scary for existing large applications with code in
-destructors. Of course, "scary" doesn't mean we have to define the
-behavior.</p></li>
-</ol>
-<p>
-I'll add a third: The language in 17.6.5.8 [reentrancy] nearly makes this
-undefined behavior already. I think any fix is probably going to live
-there, and extend the current "implementation-defined" on recursive
-reentrancy for individual functions to recursive reentrancy on class
-instances. I'm not sure exactly how to word that.
-</p>
-
-<p><i>[2014-06 Rapperswil]</i></p>
-
-<p>
-STL: We need more wording about how container methods can be reentrency.
-<p/>
-Jeffrey: The title for this issue is confusing, what we really want is "reentrancy for objects".
-<p/>
-Alisdair: Should we then close 2382 as NAD with a link to the new issue? 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2386"></a>2386. <tt>function::operator=</tt> handles allocators incorrectly</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2014-05-23 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <i>Effects</i> clauses for the assignment operator for class template <tt>function</tt> are
-written as code that constructs a temporary <tt>function</tt> and then swaps it with <tt>*this</tt>.
-The intention appears to be that assignment should have the strong exception 
-guarantee, i.e., <tt>*this</tt> is not modified if an exception is thrown. However, the current 
-description is incorrect when <tt>*this</tt> was constructed using an allocator.
-<p/>
-Part of the problem is the under-specification of <tt>swap</tt>, which does not state the 
-allocator requirements or allocator postconditions. If <tt>swap</tt> behaves like the rest of the 
-standard library, swapping function objects constructed with different allocators 
-would be undefined behavior. Alternatively <tt>swap</tt> could exchange the allocators, 
-though I would argue against this specification.
-<p/>
-For either specification of <tt>swap</tt>, the current <i>Effects</i> clauses for <tt>operator=</tt> are
-incorrect. If <tt>swap</tt> does not exchange the allocators, then <tt>operator=</tt> would have 
-undefined behavior, which is clearly not desired. If <tt>swap</tt> does exchange the allocators, 
-then <tt>operator=</tt> would always leave the left-hand side (lhs) of the assignment with a 
-default allocator. The latter would be surprising behavior, as the allocator instance is 
-normally unchanged for the lifetime of an object (for good reason), and is certainly not 
-reset to default arbitrarily.
-<p/>
-The desired behavior is that assignment would leave the allocator of the lhs
-unchanged. The way to achieve this behavior is to construct the temporary <tt>function</tt> 
-using the original allocator. Unfortunately, we cannot describe the desired behavior in 
-pure code, because there is no way to name the type-erased value of the allocator. 
-(N3916 would improve this situation for the Library Fundamentals TS, but even with 
-those changes, there is no way to recover the original type of the allocator.) The PR 
-below, therefore, uses pseudo-code, inventing a fictitious <tt><i>ALLOCATOR_OF</i>(f)</tt> 
-expression that evaluates to the actual allocator type, even if that allocator was type 
-erased. I have implemented this PR successfully.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.9.12.2.1 [func.wrap.func.con] as indicated:</p>
-
-<blockquote>
-<p>
-<ins>In the following descriptions, <tt><i>ALLOCATOR_OF</i>(f)</tt> is a copy of the allocator specified in the 
-construction of <tt>function</tt> <tt>f</tt>, or <tt>allocator&lt;char&gt;()</tt> if no allocator was specified.</ins>
-</p>
-<pre>
-function&amp; operator=(const function&amp; f);
-</pre>
-<blockquote>
-<p>
--12- <i>Effects</i>: <tt>function(<ins>allocator_arg, <i>ALLOCATOR_OF</i>(*this),</ins> f).swap(*this);</tt>
-<p/>
--13- <i>Returns</i>: <tt>*this</tt>
-</p>
-</blockquote>
-<pre>
-function&amp; operator=(function&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
--14- <i>Effects</i>: <del>Replaces the target of <tt>*this</tt> with the target of <tt>f</tt>.</del><ins><tt>function(allocator_arg,
-<i>ALLOCATOR_OF</i>(*this), std::move(f)).swap(*this);</tt></ins>
-<p/>
--15- <i>Returns</i>: <tt>*this</tt>
-</p>
-</blockquote>
-<pre>
-function&amp; operator=(nullptr_t);
-</pre>
-<blockquote>
-<p>
--16- <i>Effects</i>: If <tt>*this != nullptr</tt>, destroys the target of <tt>this</tt>.
-<p/>
--17- <i>Postconditions</i>: <tt>!(*this)</tt>. <ins>The allocator is unchanged.</ins>
-<p/>
--18- <i>Returns</i>: <tt>*this</tt>
-<p/>
-<ins>-?- <i>Throws</i>: Nothing.</ins>
-</p>
-</blockquote>
-<pre>
-template&lt;class F&gt; function&amp; operator=(F&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
--19- <i>Effects</i>: <tt>function(<ins>allocator_arg, <i>ALLOCATOR_OF</i>(*this),</ins> std::forward&lt;F&gt;(f)).swap(*this);</tt>
-<p/>
--20- <i>Returns</i>: <tt>*this</tt>
-<p/>
--21- <i>Remarks</i>: This assignment operator shall not participate in overload resolution unless 
-<tt>declval&lt;typename decay&lt;F&gt;::type&amp;&gt;()</tt> is <tt>Callable</tt> (20.9.11.2) for argument types 
-<tt>ArgTypes...</tt> and return type <tt>R</tt>.
-</p>
-</blockquote>
-<pre>
-template&lt;class F&gt; function&amp; operator=(reference_wrapper&lt;F&gt; f);
-</pre>
-<blockquote>
-<p>
--22- <i>Effects</i>: <tt>function(<ins>allocator_arg, <i>ALLOCATOR_OF</i>(*this),</ins> f).swap(*this);</tt>
-<p/>
--23- <i>Returns</i>: <tt>*this</tt>
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-
-</ol>
-
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: think this is NAD, don't think this is implementable or even should be.<br/>
-STL: think this issue should be dealt with the same as 2370, don't think this should be done ever.<br/>
-STL: NAD because there is nothing broken here.<br/>
-STL: already fixed <tt>operator= noexcept</tt> so <i>Throws</i> nothing is not needed<br/>
-STL: nothing to salvage here<br/>
-MC: consensus for NAD 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-There was consensus by the committee that the issue does not constitute as defect.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2388"></a>2388. Handling self-assignment in the proposed library function <tt>std::exchange</tt></h3>
-<p><b>Section:</b> 20.2.3 [utility.exchange] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Nick Calus <b>Opened:</b> 2014-05-09 <b>Last modified:</b> 2015-05-06</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.exchange">issues</a> in [utility.exchange].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3668.html">N3668</a>, the addition of a template function 
-<tt>std::exchange</tt> had been proposed. In the rationale provided by the paper, we find the following:
-</p>
-<blockquote>
-<p>
-I chose the name for symmetry with <tt>atomic_exchange</tt>, since they behave the same except for this function not being atomic.
-</p>
-</blockquote>
-<p>
-and:
-</p>
-<blockquote>
-<p>
-Atomic objects provide an <tt>atomic_exchange</tt> function ([atomics.types.operations.req]p18) that <em>assigns a new value to the object 
-and returns the old value</em>. This operation is also useful on non-atomic objects, and this paper proposes adding it to the library.
-<p/>
-But the specified semantics of <tt>std::exchange</tt> is defined as follows:
-</p>
-</blockquote>
-<blockquote><pre>
-template &lt;class T, class U=T&gt; T exchange(T&amp; obj, U&amp;&amp; new_val);
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: Equivalent to:
-</p>
-<blockquote><pre>
-T old_val = std::move(obj);
-obj = std::forward&lt;U&gt;(new_val);
-return old_val;
-</pre>
-</blockquote>
-</blockquote>
-</blockquote>
-<p>
-When looking at the post-condition of the <tt>std::exchange</tt> function, one would expect the return value to be the old value 
-of <tt>obj</tt> and also that <tt>obj</tt> now contains the value of <tt>new_value</tt>.
-This post-condition is violated when <tt>obj</tt> is a reference to the same object as <tt>new_value</tt> and type <tt>T</tt> 
-has move semantics.
-<p/>
-Given it's specification, it is clear that <tt>std::exchange</tt> is meant to be used with types that have move semantics.
-Therefore, the post-condition is violated for self-assignments.
-<p/>
-Suppose the following situation:
-<p/>
-You have a vector of objects. The objects implement move semantics and are emptied when moved from.
-You provide a function that allows you to replace an object at a specific index by a new object (provided by reference as 
-an argument to your function). When replacing an object, your function calls a member-function <tt>do_something_fancy</tt> 
-on the old object.
-</p>
-<blockquote><pre>
-void your_function(int i, X&amp; new_val) {
-  std::exchange(vec[i], new_val).do_something_fancy();
-}
-</pre></blockquote>
-<p>
-Your function gets called with a given index and the corresponding element of said vector. (by coincidence or by purpose, it 
-doesn't really matter)
-</p>
-<blockquote><pre>
-your_function(5, vec[5]);
-</pre></blockquote>
-<p>
-This will cause the object at <tt>vec[5]</tt> to be in an empty state.
-If this object would not implement move semantics, assignment performance is potentially worse, but at least it 
-is not in an empty (to my business logic, invalid) state.
-<p/>
-So to me, the current reference implementation of <tt>std::exchange</tt> does not have the behavior it is expected to have.
-</p>
-
-<p><i>[2014-12-18 Telecon]</i></p>
-
-<p>
-MC: does this resolution solve the problem?
-<p/>
-JW: and is the cost of the extra construction and move acceptable?
-<p/>
-AM: not all moves are cheap
-<p/>
-VV: seems like a design change
-<p/>
-JW: maybe this should be rolled into my unwritten paper on self-swap, so we deal with them consistently
-<p/>
-VV: we should update the issue saying something like that and maybe NAD Future
-<p/>
-MC: instead, add Requires clause saying the arguments are not the same.
-<p/>
-JW: interesting, that can even be checked in a debug mode assertion
-<p/>
-MC: ACTION: send alternative P/R that we can consider
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.2.3 [utility.exchange] as indicated:</p>
-<blockquote><pre>
-template &lt;class T, class U=T&gt; T exchange(T&amp; obj, U&amp;&amp; new_val);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects</i>: Equivalent to:
-</p>
-<blockquote><pre>
-<ins>T tmp = std::forward&lt;U&gt;(new_val);</ins>
-T old_val = std::move(obj);
-obj = <del>std::forward&lt;U&gt;(new_val)</del><ins>std::move(tmp)</ins>;
-return old_val;
-</pre>
-</blockquote>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p>
-<strong>Previous resolution from Marshall [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.2.3 [utility.exchange] as indicated:</p>
-<blockquote><pre>
-template &lt;class T, class U=T&gt; T exchange(T&amp; obj, U&amp;&amp; new_val);
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>obj</tt> and <tt>new_val</tt> shall not refer to the same object.</ins>
-<p/>
--1- <i>Effects</i>: Equivalent to:
-</p>
-<blockquote><pre>
-T old_val = std::move(obj);
-obj = std::forward&lt;U&gt;(new_val);
-return old_val;
-</pre>
-</blockquote>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2015-03-30, Marshall provides alternative wording]</i></p>
-
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-MC: self <tt>exchange</tt> does not work<br/>
-MC: PR is just to add requires<br/>
-STL: what if the new thing is a subobject, isn't that just as bad, any aliasing<br/>
-STL: don't know that we need to do anything here if we aren't changing the implementation<br/>
-NM: should remove the requires<br/>
-MC: so NAD<br/>
-STL: could add note<br/>
-NM: remove requires<br/>
-DK: requires isn't already there<br/>
-RL: no note?<br/>
-STL: no note, NAD, burden for next person that asks about aliasing<br/>
-DK: what do we do for <tt>swap</tt>?<br/>
-STL: self <tt>swap</tt> has always been noop, <tt>exchange</tt> could do something bad because it clears out<br/>
-MC: alright, NAD it is<br/>
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-The current specification is clear about the implications described by the issue example and is as intended.
-
-
-
-
-
-<hr>
-<h3><a name="2405"></a>2405. <tt>rotate()</tt>'s return value is incorrect when <tt>middle == first</tt></h3>
-<p><b>Section:</b> 25.3.11 [alg.rotate] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.rotate">issues</a> in [alg.rotate].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When LWG <a href="lwg-defects.html#488">488</a> was resolved, the intention was to return "where the subrange <tt>[first, middle)</tt> starts after 
-the rotate is performed". However, this wasn't achieved in one case.
-<p/>
-When <tt>middle == last</tt>, <tt>rotate()</tt> does nothing and returns <tt>first</tt>. This is good.
-<p/>
-When <tt>middle == first</tt>, <tt>rotate()</tt> does nothing and returns <tt>last</tt>. This is bad. In addition to being 
-inconsistent with the other do-nothing case, it prevents <tt>rotate()</tt> from providing the useful guarantee that LWG 
-<a href="lwg-defects.html#488">488</a> wanted: when <tt>[first, last)</tt> is non-empty, <tt>rotate()</tt>'s return value should always be 
-dereferenceable to get the originally-first element.
-<p/>
-Howard Hinnant:
-<p/>
-As the author of LWG <a href="lwg-defects.html#488">488</a> I can assure everyone that the edge cases the proposed resolution specifies were 
-not specified by accident. <tt>rotate(i, i, j)</tt> should return <tt>j</tt> and <tt>rotate(i, j, j)</tt> should return <tt>i</tt>.  
-Doing otherwise will break working code. These return values were motivated by the uses of <tt>rotate</tt> in the implementation 
-of algorithms such as <tt>stable_partition</tt> and <tt>inplace_merge</tt>. The results of these edge cases were not chosen lightly.
-<p/>
-Also a good read:
-<p/>
-<a href="http://www.cs.rpi.edu/~musser/gsd/notes-on-programming-2006-10-13.pdf">notes-on-programming-2006-10-13</a>
-<p/>
-Summary: NAD.
-</p>
-
-<p><i>[2014-06-16 Rapperswill]</i></p>
-
-<p>
-Closed as NAD.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 25.3.11 [alg.rotate] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- <i>Returns</i>: <ins>If <tt>middle == first</tt>, returns <tt>first</tt>. Otherwise, returns</ins> <tt>first + (last - middle)</tt>.
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2429"></a>2429. <tt>std::basic_ostringstream</tt> is missing an allocator-extended constructor</h3>
-<p><b>Section:</b> 27.8.4 [ostringstream] <b>Status:</b> <a href="lwg-active.html#NAD">NAD</a>
- <b>Submitter:</b> Markus Kemp <b>Opened:</b> 2014-09-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostringstream">issues</a> in [ostringstream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#NAD">NAD</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I initially brought this issue up on <a href="http://stackoverflow.com/questions/23955828/how-to-use-basic-ostringstream-with-stateful-custom-allocator-c11">Stack Overflow</a>, 
-where I was then told to make a topic about this problem on <a href="https://groups.google.com/a/isocpp.org/d/msg/std-discussion/kAQFOWz47m0/cOXSHa5Iwg4J">std-discussion</a>, 
-where I was then in turn asked to report the issue.
-<p/>
-The problem: The <tt>std::basic_ostringstream</tt> class template can be instantiated with an allocator type, but none of the 
-constructors provided accept an allocator argument, which means it's impossible to use <tt>std::basic_ostringstream</tt> with 
-stateful allocators. The C++ Standard Library Defect Report List seems to already mention a similar issue (<a href="lwg-defects.html#2210">2210</a>).
-</p>
-
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>Closed as NAD</p>
-<p>
-This is not a rejection of the suggestion, but an observation that simply adding an allocator-aware
-constructor is only part of the problem.  <tt>stringstream</tt> returns the <tt>string</tt> assembled
-in its buffer by value, as the result of a call to <tt>str</tt>, and typically this will not use the
-same allocator as would be supplied at construction.
-</p>
-<p>
-The appropriate way to make progress on this issue, if motivated, is to submit a paper to LEWG
-addressing the larger design concerns in addition to 'just' adding an (optional) allocator to
-the constructors.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-</body>
-</html>
diff --git a/libstdc++-v3/doc/html/ext/lwg-defects.html b/libstdc++-v3/doc/html/ext/lwg-defects.html
deleted file mode 100644
index 1e78c35249ed750898f40c3b8b13ff31b3b3dd4e..0000000000000000000000000000000000000000
--- a/libstdc++-v3/doc/html/ext/lwg-defects.html
+++ /dev/null
@@ -1,129794 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
-    "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-<title>C++ Standard Library Defect Report List</title>
-<style type="text/css">
-  p {text-align:justify}
-  li {text-align:justify}
-  blockquote.note
-  {
-    background-color:#E0E0E0;
-    padding-left: 15px;
-    padding-right: 15px;
-    padding-top: 1px;
-    padding-bottom: 1px;
-  }
-  ins {background-color:#A0FFA0}
-  del {background-color:#FFA0A0}
-</style>
-</head>
-<body>
-<table>
-<tr>
-  <td align="left">Doc. no.</td>
-  <td align="left">N4485</td>
-</tr>
-<tr>
-  <td align="left">Date:</td>
-  <td align="left">2015-05-23</td>
-</tr>
-<tr>
-  <td align="left">Project:</td>
-  <td align="left">Programming Language C++</td>
-</tr>
-<tr>
-  <td align="left">Reply to:</td>
-  <td align="left">Marshall Clow &lt;<a href="mailto:lwgchair@gmail.com">lwgchair@gmail.com</a>&gt;</td>
-</tr>
-</table>
-<h1>C++ Standard Library Defect Report List (Revision R93)</h1>
-<p><p>Revised 2015-05-23 at 15:05:40 UTC</p>
-</p>
-  <p>Reference ISO/IEC IS 14882:2014(E)</p>
-  <p>Also see:</p>
-    <ul>
-      <li><a href="lwg-toc.html">Table of Contents</a> for all library issues.</li>
-      <li><a href="lwg-index.html">Index by Section</a> for all library issues.</li>
-      <li><a href="lwg-status.html">Index by Status</a> for all library issues.</li>
-      <li><a href="lwg-active.html">Library Active Issues List</a></li>
-      <li><a href="lwg-closed.html">Library Closed Issues List</a></li>
-    </ul>
-  <p>This document contains only library issues which have been closed
-  by the Library Working Group (LWG) after being found to be defects
-  in the standard.  That is, issues which have a status of <a href="lwg-active.html#DR">DR</a>,
-  <a href="lwg-active.html#TC1">TC1</a>, <a href="lwg-active.html#C++11">C++11</a>, 
-  <a href="lwg-active.html#C++14">C++14</a>, or <a href="lwg-active.html#Resolved">Resolved</a>. See
-  the <a href="lwg-closed.html">Library Closed Issues List</a> for issues closed as non-defects.  See
-  the <a href="lwg-active.html">Library Active Issues List</a> for active issues and more information.
-  The introductory material in that document also applies to this document.</p>
-
-<h2>Revision History</h2>
-<ul>
-<li>R93: 2014-05-22 2015 post-Lenexa mailing<ul>
-<li><b>Summary:</b><ul>
-<li>256 open issues, down by 36.</li>
-<li>1770 closed issues, up by 48.</li>
-<li>2026 issues total, up by 12.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 2 Ready issues: <a href="lwg-active.html#2492">2492</a>, <a href="lwg-active.html#2494">2494</a>.</li>
-<li>Added the following 10 New issues: <a href="lwg-active.html#2493">2493</a>, <a href="lwg-active.html#2495">2495</a>, <a href="lwg-active.html#2496">2496</a>, <a href="lwg-active.html#2497">2497</a>, <a href="lwg-active.html#2498">2498</a>, <a href="lwg-active.html#2499">2499</a>, <a href="lwg-active.html#2500">2500</a>, <a href="lwg-active.html#2501">2501</a>, <a href="lwg-active.html#2502">2502</a>, <a href="lwg-active.html#2503">2503</a>.</li>
-<li>Changed the following 2 issues to Ready (from Review): <a href="lwg-active.html#2111">2111</a>, <a href="lwg-active.html#2380">2380</a>.</li>
-<li>Changed the following 20 issues to Ready (from New): <a href="lwg-active.html#2244">2244</a>, <a href="lwg-active.html#2250">2250</a>, <a href="lwg-active.html#2259">2259</a>, <a href="lwg-active.html#2336">2336</a>, <a href="lwg-active.html#2353">2353</a>, <a href="lwg-active.html#2367">2367</a>, <a href="lwg-active.html#2384">2384</a>, <a href="lwg-active.html#2385">2385</a>, <a href="lwg-active.html#2435">2435</a>, <a href="lwg-active.html#2462">2462</a>, <a href="lwg-active.html#2466">2466</a>, <a href="lwg-active.html#2473">2473</a>, <a href="lwg-active.html#2476">2476</a>, <a href="lwg-active.html#2477">2477</a>, <a href="lwg-active.html#2483">2483</a>, <a href="lwg-active.html#2484">2484</a>, <a href="lwg-active.html#2485">2485</a>, <a href="lwg-active.html#2486">2486</a>, <a href="lwg-active.html#2487">2487</a>, <a href="lwg-active.html#2489">2489</a>.</li>
-<li>Changed the following 12 issues to Ready (from Open): <a href="lwg-active.html#1169">1169</a>, <a href="lwg-active.html#2072">2072</a>, <a href="lwg-active.html#2101">2101</a>, <a href="lwg-active.html#2119">2119</a>, <a href="lwg-active.html#2127">2127</a>, <a href="lwg-active.html#2133">2133</a>, <a href="lwg-active.html#2156">2156</a>, <a href="lwg-active.html#2181">2181</a>, <a href="lwg-active.html#2218">2218</a>, <a href="lwg-active.html#2219">2219</a>, <a href="lwg-active.html#2447">2447</a>, <a href="lwg-active.html#2469">2469</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Open): <a href="lwg-active.html#2224">2224</a>.</li>
-<li>Changed the following issue to Review (from New): <a href="lwg-active.html#2296">2296</a>.</li>
-<li>Changed the following issue to Review (from Open): <a href="lwg-active.html#2328">2328</a>.</li>
-<li>Changed the following 11 issues to Open (from New): <a href="lwg-active.html#2262">2262</a>, <a href="lwg-active.html#2289">2289</a>, <a href="lwg-active.html#2338">2338</a>, <a href="lwg-active.html#2348">2348</a>, <a href="lwg-active.html#2349">2349</a>, <a href="lwg-active.html#2370">2370</a>, <a href="lwg-active.html#2398">2398</a>, <a href="lwg-active.html#2402">2402</a>, <a href="lwg-active.html#2422">2422</a>, <a href="lwg-active.html#2450">2450</a>, <a href="lwg-active.html#2456">2456</a>.</li>
-<li>Changed the following 8 issues to Open (from SG1): <a href="lwg-active.html#2245">2245</a>, <a href="lwg-active.html#2265">2265</a>, <a href="lwg-active.html#2276">2276</a>, <a href="lwg-active.html#2309">2309</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-active.html#2441">2441</a>.</li>
-<li>Changed the following issue to LEWG (from New): <a href="lwg-active.html#2372">2372</a>.</li>
-<li>Changed the following issue to EWG (from New): <a href="lwg-active.html#2432">2432</a>.</li>
-<li>Changed the following issue to Deferred (from Open): <a href="lwg-active.html#2202">2202</a>.</li>
-<li>Changed the following 14 issues to WP (from Ready): <a href="lwg-defects.html#2160">2160</a>, <a href="lwg-defects.html#2168">2168</a>, <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>.</li>
-<li>Changed the following 18 issues to WP (from Tentatively Ready): <a href="lwg-defects.html#2059">2059</a>, <a href="lwg-defects.html#2076">2076</a>, <a href="lwg-defects.html#2239">2239</a>, <a href="lwg-defects.html#2369">2369</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-defects.html#2410">2410</a>, <a href="lwg-defects.html#2415">2415</a>, <a href="lwg-defects.html#2418">2418</a>, <a href="lwg-defects.html#2437">2437</a>, <a href="lwg-defects.html#2448">2448</a>, <a href="lwg-defects.html#2454">2454</a>, <a href="lwg-defects.html#2455">2455</a>, <a href="lwg-defects.html#2458">2458</a>, <a href="lwg-defects.html#2459">2459</a>, <a href="lwg-defects.html#2463">2463</a>, <a href="lwg-defects.html#2467">2467</a>, <a href="lwg-defects.html#2470">2470</a>, <a href="lwg-defects.html#2482">2482</a>.</li>
-<li>Changed the following 3 issues to WP (from New): <a href="lwg-defects.html#2420">2420</a>, <a href="lwg-defects.html#2464">2464</a>, <a href="lwg-defects.html#2488">2488</a>.</li>
-<li>Changed the following issue to WP (from Open): <a href="lwg-defects.html#2063">2063</a>.</li>
-<li>Changed the following 2 issues to WP (from SG1): <a href="lwg-defects.html#2407">2407</a>, <a href="lwg-defects.html#2442">2442</a>.</li>
-<li>Changed the following issue to Resolved (from Review): <a href="lwg-defects.html#2228">2228</a>.</li>
-<li>Changed the following 3 issues to Resolved (from Open): <a href="lwg-defects.html#1526">1526</a>, <a href="lwg-defects.html#2274">2274</a>, <a href="lwg-defects.html#2397">2397</a>.</li>
-<li>Changed the following 5 issues to NAD (from New): <a href="lwg-closed.html#2079">2079</a>, <a href="lwg-closed.html#2251">2251</a>, <a href="lwg-closed.html#2351">2351</a>, <a href="lwg-closed.html#2373">2373</a>, <a href="lwg-closed.html#2386">2386</a>.</li>
-<li>Changed the following issue to NAD (from Open): <a href="lwg-closed.html#2388">2388</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R92: 
-2015-04-09 pre-Lenexa mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>292 open issues, up by 33.</li>
-<li>1722 closed issues, up by 0.</li>
-<li>2014 issues total, up by 33.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 5 Tentatively Ready issues: <a href="lwg-active.html#2459">2459</a>, <a href="lwg-active.html#2463">2463</a>, <a href="lwg-active.html#2467">2467</a>, <a href="lwg-active.html#2470">2470</a>, <a href="lwg-active.html#2482">2482</a>.</li>
-<li>Added the following 27 New issues: <a href="lwg-active.html#2460">2460</a>, <a href="lwg-active.html#2461">2461</a>, <a href="lwg-active.html#2462">2462</a>, <a href="lwg-active.html#2464">2464</a>, <a href="lwg-active.html#2465">2465</a>, <a href="lwg-active.html#2466">2466</a>, <a href="lwg-active.html#2468">2468</a>, <a href="lwg-active.html#2471">2471</a>, <a href="lwg-active.html#2472">2472</a>, <a href="lwg-active.html#2473">2473</a>, <a href="lwg-active.html#2474">2474</a>, <a href="lwg-active.html#2475">2475</a>, <a href="lwg-active.html#2476">2476</a>, <a href="lwg-active.html#2477">2477</a>, <a href="lwg-active.html#2478">2478</a>, <a href="lwg-active.html#2479">2479</a>, <a href="lwg-active.html#2480">2480</a>, <a href="lwg-active.html#2481">2481</a>, <a href="lwg-active.html#2483">2483</a>, <a href="lwg-active.html#2484">2484</a>, <a href="lwg-active.html#2485">2485</a>, <a href="lwg-active.html#2486">2486</a>, <a href="lwg-active.html#2487">2487</a>, <a href="lwg-active.html#2488">2488</a>, <a href="lwg-active.html#2489">2489</a>, <a href="lwg-active.html#2490">2490</a>, <a href="lwg-active.html#2491">2491</a>.</li>
-<li>Added the following Open issue: <a href="lwg-active.html#2469">2469</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Review): <a href="lwg-active.html#2378">2378</a>.</li>
-<li>Changed the following 11 issues to Tentatively Ready (from New): <a href="lwg-active.html#2076">2076</a>, <a href="lwg-active.html#2239">2239</a>, <a href="lwg-active.html#2369">2369</a>, <a href="lwg-active.html#2410">2410</a>, <a href="lwg-active.html#2415">2415</a>, <a href="lwg-active.html#2418">2418</a>, <a href="lwg-active.html#2437">2437</a>, <a href="lwg-active.html#2448">2448</a>, <a href="lwg-active.html#2454">2454</a>, <a href="lwg-active.html#2455">2455</a>, <a href="lwg-active.html#2458">2458</a>.</li>
-<li>Changed the following issue to Tentatively Ready (from Open): <a href="lwg-active.html#2059">2059</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from New): <a href="lwg-active.html#2337">2337</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from Open): <a href="lwg-active.html#760">760</a>.</li>
-<li>Changed the following 5 issues to Open (from New): <a href="lwg-active.html#2312">2312</a>, <a href="lwg-active.html#2388">2388</a>, <a href="lwg-active.html#2393">2393</a>, <a href="lwg-active.html#2444">2444</a>, <a href="lwg-active.html#2447">2447</a>.</li>
-<li>Changed the following 4 issues to LEWG (from New): <a href="lwg-active.html#2391">2391</a>, <a href="lwg-active.html#2417">2417</a>, <a href="lwg-active.html#2436">2436</a>, <a href="lwg-active.html#2451">2451</a>.</li>
-<li>Changed the following issue to EWG (from Open): <a href="lwg-active.html#2089">2089</a>.</li>
-<li>Changed the following issue to Core (from New): <a href="lwg-active.html#2452">2452</a>.</li>
-<li>Changed the following 13 issues to SG1 (from New): <a href="lwg-active.html#2236">2236</a>, <a href="lwg-active.html#2245">2245</a>, <a href="lwg-active.html#2265">2265</a>, <a href="lwg-active.html#2276">2276</a>, <a href="lwg-active.html#2309">2309</a>, <a href="lwg-active.html#2334">2334</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2407">2407</a>, <a href="lwg-active.html#2412">2412</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-active.html#2442">2442</a>, <a href="lwg-active.html#2445">2445</a>.</li>
-<li>Changed the following issue to SG1 (from Open): <a href="lwg-active.html#2441">2441</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R91: 
-2014-11-23 post-Urbana mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>259 open issues, up by 32.</li>
-<li>1722 closed issues, down by 20.</li>
-<li>1981 issues total, up by 12.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 12 New issues: <a href="lwg-active.html#2447">2447</a>, <a href="lwg-defects.html#2448">2448</a>, <a href="lwg-active.html#2449">2449</a>, <a href="lwg-active.html#2450">2450</a>, <a href="lwg-active.html#2451">2451</a>, <a href="lwg-active.html#2452">2452</a>, <a href="lwg-active.html#2453">2453</a>, <a href="lwg-defects.html#2454">2454</a>, <a href="lwg-defects.html#2455">2455</a>, <a href="lwg-active.html#2456">2456</a>, <a href="lwg-active.html#2457">2457</a>, <a href="lwg-defects.html#2458">2458</a>.</li>
-<li>Changed the following 2 issues to Ready (from Review): <a href="lwg-defects.html#2160">2160</a>, <a href="lwg-defects.html#2364">2364</a>.</li>
-<li>Changed the following 11 issues to Ready (from New): <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>.</li>
-<li>Changed the following issue to Ready (from Open): <a href="lwg-defects.html#2168">2168</a>.</li>
-<li>Changed the following issue to Review (from New): <a href="lwg-active.html#2424">2424</a>.</li>
-<li>Changed the following 5 issues to Open (from New): <a href="lwg-active.html#2307">2307</a>, <a href="lwg-active.html#2310">2310</a>, <a href="lwg-active.html#2383">2383</a>, <a href="lwg-active.html#2414">2414</a>, <a href="lwg-active.html#2441">2441</a>.</li>
-<li>Changed the following 2 issues to Open (from NAD Future): <a href="lwg-active.html#760">760</a>, <a href="lwg-active.html#1173">1173</a>.</li>
-<li>Changed the following 4 issues to LEWG (from New): <a href="lwg-active.html#2419">2419</a>, <a href="lwg-active.html#2430">2430</a>, <a href="lwg-active.html#2443">2443</a>, <a href="lwg-active.html#2446">2446</a>.</li>
-<li>Changed the following 48 issues to LEWG (from NAD Future): <a href="lwg-active.html#255">255</a>, <a href="lwg-active.html#423">423</a>, <a href="lwg-active.html#484">484</a>, <a href="lwg-active.html#523">523</a>, <a href="lwg-active.html#532">532</a>, <a href="lwg-active.html#708">708</a>, <a href="lwg-active.html#839">839</a>, <a href="lwg-active.html#851">851</a>, <a href="lwg-active.html#877">877</a>, <a href="lwg-active.html#933">933</a>, <a href="lwg-active.html#935">935</a>, <a href="lwg-active.html#936">936</a>, <a href="lwg-active.html#961">961</a>, <a href="lwg-active.html#1025">1025</a>, <a href="lwg-active.html#1031">1031</a>, <a href="lwg-active.html#1041">1041</a>, <a href="lwg-active.html#1052">1052</a>, <a href="lwg-active.html#1053">1053</a>, <a href="lwg-active.html#1112">1112</a>, <a href="lwg-active.html#1120">1120</a>, <a href="lwg-active.html#1121">1121</a>, <a href="lwg-active.html#1150">1150</a>, <a href="lwg-active.html#1154">1154</a>, <a href="lwg-active.html#1184">1184</a>, <a href="lwg-active.html#1188">1188</a>, <a href="lwg-active.html#1201">1201</a>, <a href="lwg-active.html#1203">1203</a>, <a href="lwg-active.html#1217">1217</a>, <a href="lwg-active.html#1235">1235</a>, <a href="lwg-active.html#1238">1238</a>, <a href="lwg-active.html#1242">1242</a>, <a href="lwg-active.html#1282">1282</a>, <a href="lwg-active.html#1289">1289</a>, <a href="lwg-active.html#1317">1317</a>, <a href="lwg-active.html#1320">1320</a>, <a href="lwg-active.html#1396">1396</a>, <a href="lwg-active.html#1406">1406</a>, <a href="lwg-active.html#1422">1422</a>, <a href="lwg-active.html#1459">1459</a>, <a href="lwg-active.html#1484">1484</a>, <a href="lwg-active.html#1488">1488</a>, <a href="lwg-active.html#1493">1493</a>, <a href="lwg-active.html#1499">1499</a>, <a href="lwg-active.html#1521">1521</a>, <a href="lwg-active.html#2040">2040</a>, <a href="lwg-active.html#2055">2055</a>, <a href="lwg-active.html#2226">2226</a>, <a href="lwg-active.html#2232">2232</a>.</li>
-<li>Changed the following 2 issues to Pending NAD (from Tentatively NAD): <a href="lwg-closed.html#2302">2302</a>, <a href="lwg-closed.html#2382">2382</a>.</li>
-<li>Changed the following 11 issues to WP (from Ready): <a href="lwg-defects.html#2016">2016</a>, <a href="lwg-defects.html#2170">2170</a>, <a href="lwg-defects.html#2340">2340</a>, <a href="lwg-defects.html#2354">2354</a>, <a href="lwg-defects.html#2377">2377</a>, <a href="lwg-defects.html#2396">2396</a>, <a href="lwg-defects.html#2399">2399</a>, <a href="lwg-defects.html#2400">2400</a>, <a href="lwg-defects.html#2401">2401</a>, <a href="lwg-defects.html#2404">2404</a>, <a href="lwg-defects.html#2408">2408</a>.</li>
-<li>Changed the following 12 issues to WP (from Tentatively Ready): <a href="lwg-defects.html#2106">2106</a>, <a href="lwg-defects.html#2129">2129</a>, <a href="lwg-defects.html#2212">2212</a>, <a href="lwg-defects.html#2217">2217</a>, <a href="lwg-defects.html#2230">2230</a>, <a href="lwg-defects.html#2233">2233</a>, <a href="lwg-defects.html#2266">2266</a>, <a href="lwg-defects.html#2325">2325</a>, <a href="lwg-defects.html#2361">2361</a>, <a href="lwg-defects.html#2365">2365</a>, <a href="lwg-defects.html#2376">2376</a>, <a href="lwg-defects.html#2387">2387</a>.</li>
-<li>Changed the following issue to Resolved (from Ready): <a href="lwg-defects.html#2319">2319</a>.</li>
-<li>Changed the following issue to Resolved (from Review): <a href="lwg-defects.html#2118">2118</a>.</li>
-<li>Changed the following issue to Resolved (from New): <a href="lwg-defects.html#2416">2416</a>.</li>
-<li>Changed the following issue to Resolved (from Open): <a href="lwg-defects.html#2108">2108</a>.</li>
-<li>Changed the following issue to NAD (from New): <a href="lwg-closed.html#2429">2429</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R90: 
-2014-10-13 pre-Urbana mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>227 open issues, up by 31.</li>
-<li>1742 closed issues, up by 0.</li>
-<li>1969 issues total, up by 31.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 31 New issues: <a href="lwg-defects.html#2416">2416</a>, <a href="lwg-active.html#2417">2417</a>, <a href="lwg-defects.html#2418">2418</a>, <a href="lwg-active.html#2419">2419</a>, <a href="lwg-defects.html#2420">2420</a>, <a href="lwg-active.html#2421">2421</a>, <a href="lwg-active.html#2422">2422</a>, <a href="lwg-active.html#2423">2423</a>, <a href="lwg-active.html#2424">2424</a>, <a href="lwg-defects.html#2425">2425</a>, <a href="lwg-active.html#2426">2426</a>, <a href="lwg-defects.html#2427">2427</a>, <a href="lwg-defects.html#2428">2428</a>, <a href="lwg-closed.html#2429">2429</a>, <a href="lwg-active.html#2430">2430</a>, <a href="lwg-active.html#2431">2431</a>, <a href="lwg-active.html#2432">2432</a>, <a href="lwg-defects.html#2433">2433</a>, <a href="lwg-defects.html#2434">2434</a>, <a href="lwg-active.html#2435">2435</a>, <a href="lwg-active.html#2436">2436</a>, <a href="lwg-defects.html#2437">2437</a>, <a href="lwg-defects.html#2438">2438</a>, <a href="lwg-defects.html#2439">2439</a>, <a href="lwg-defects.html#2440">2440</a>, <a href="lwg-active.html#2441">2441</a>, <a href="lwg-defects.html#2442">2442</a>, <a href="lwg-active.html#2443">2443</a>, <a href="lwg-active.html#2444">2444</a>, <a href="lwg-active.html#2445">2445</a>, <a href="lwg-active.html#2446">2446</a>.</li>
-<li>No issues changed.</li>
-</ul></li>
-</ul>
-</li>
-<li>R89: 
-2014-07-08 post-Rapperswil mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>196 open issues, up by 14.</li>
-<li>1742 closed issues, up by 12.</li>
-<li>1938 issues total, up by 26.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 6 Ready issues: <a href="lwg-defects.html#2396">2396</a>, <a href="lwg-defects.html#2399">2399</a>, <a href="lwg-defects.html#2400">2400</a>, <a href="lwg-defects.html#2401">2401</a>, <a href="lwg-defects.html#2404">2404</a>, <a href="lwg-defects.html#2408">2408</a>.</li>
-<li>Added the following 15 New issues: <a href="lwg-active.html#2391">2391</a>, <a href="lwg-active.html#2392">2392</a>, <a href="lwg-active.html#2393">2393</a>, <a href="lwg-active.html#2394">2394</a>, <a href="lwg-active.html#2398">2398</a>, <a href="lwg-active.html#2402">2402</a>, <a href="lwg-defects.html#2403">2403</a>, <a href="lwg-defects.html#2406">2406</a>, <a href="lwg-defects.html#2407">2407</a>, <a href="lwg-defects.html#2410">2410</a>, <a href="lwg-defects.html#2411">2411</a>, <a href="lwg-active.html#2412">2412</a>, <a href="lwg-active.html#2413">2413</a>, <a href="lwg-active.html#2414">2414</a>, <a href="lwg-defects.html#2415">2415</a>.</li>
-<li>Added the following Open issue: <a href="lwg-defects.html#2397">2397</a>.</li>
-<li>Added the following 3 WP issues: <a href="lwg-defects.html#2390">2390</a>, <a href="lwg-defects.html#2395">2395</a>, <a href="lwg-defects.html#2409">2409</a>.</li>
-<li>Added the following NAD issue: <a href="lwg-closed.html#2405">2405</a>.</li>
-<li>Changed the following issue to Ready (from New): <a href="lwg-defects.html#2377">2377</a>.</li>
-<li>Changed the following 2 issues to Ready (from Deferred): <a href="lwg-active.html#2253">2253</a>, <a href="lwg-active.html#2255">2255</a>.</li>
-<li>Changed the following 2 issues to Tentatively Ready (from New): <a href="lwg-defects.html#2325">2325</a>, <a href="lwg-defects.html#2387">2387</a>.</li>
-<li>Changed the following issue to Tentatively NAD (from New): <a href="lwg-closed.html#2382">2382</a>.</li>
-<li>Changed the following 3 issues to Review (from New): <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-active.html#2380">2380</a>.</li>
-<li>Changed the following 2 issues to Review (from Open): <a href="lwg-defects.html#2118">2118</a>, <a href="lwg-defects.html#2160">2160</a>.</li>
-<li>Changed the following 3 issues to Open (from New): <a href="lwg-defects.html#2168">2168</a>, <a href="lwg-active.html#2238">2238</a>, <a href="lwg-active.html#2273">2273</a>.</li>
-<li>Changed the following 3 issues to Open (from Deferred): <a href="lwg-active.html#2254">2254</a>, <a href="lwg-active.html#2264">2264</a>, <a href="lwg-active.html#2277">2277</a>.</li>
-<li>Changed the following 3 issues to WP (from New): <a href="lwg-defects.html#2371">2371</a>, <a href="lwg-defects.html#2374">2374</a>, <a href="lwg-defects.html#2389">2389</a>.</li>
-<li>Changed the following 4 issues to Resolved (from Deferred): <a href="lwg-defects.html#2282">2282</a>, <a href="lwg-defects.html#2283">2283</a>, <a href="lwg-defects.html#2287">2287</a>, <a href="lwg-defects.html#2333">2333</a>.</li>
-<li>Changed the following issue to NAD (from Deferred): <a href="lwg-closed.html#2305">2305</a>.</li>
-</ul></li>
-</ul>
-</li>
-<li>R88: 
-2014-05-24 pre-Rapperswil mailing
-<ul>
-<li><b>Summary:</b><ul>
-<li>182 open issues, up by 29.</li>
-<li>1730 closed issues, up by 0.</li>
-<li>1912 issues total, up by 29.</li>
-</ul></li>
-<li><b>Details:</b><ul>
-<li>Added the following 3 Tentatively Ready issues: <a href="lwg-defects.html#2361">2361</a>, <a href="lwg-defects.html#2365">2365</a>, <a href="lwg-defects.html#2376">2376</a>.</li>
-<li>Added the following 26 New issues: <a href="lwg-active.html#2362">2362</a>, <a href="lwg-active.html#2363">2363</a>, <a href="lwg-defects.html#2364">2364</a>, <a href="lwg-active.html#2366">2366</a>, <a href="lwg-active.html#2367">2367</a>, <a href="lwg-active.html#2368">2368</a>, <a href="lwg-defects.html#2369">2369</a>, <a href="lwg-active.html#2370">2370</a>, <a href="lwg-defects.html#2371">2371</a>, <a href="lwg-active.html#2372">2372</a>, <a href="lwg-closed.html#2373">2373</a>, <a href="lwg-defects.html#2374">2374</a>, <a href="lwg-active.html#2375">2375</a>, <a href="lwg-defects.html#2377">2377</a>, <a href="lwg-defects.html#2378">2378</a>, <a href="lwg-active.html#2379">2379</a>, <a href="lwg-active.html#2380">2380</a>, <a href="lwg-active.html#2381">2381</a>, <a href="lwg-closed.html#2382">2382</a>, <a href="lwg-active.html#2383">2383</a>, <a href="lwg-active.html#2384">2384</a>, <a href="lwg-active.html#2385">2385</a>, <a href="lwg-closed.html#2386">2386</a>, <a href="lwg-defects.html#2387">2387</a>, <a href="lwg-closed.html#2388">2388</a>, <a href="lwg-defects.html#2389">2389</a>.</li>
-<li>Changed the following 5 issues to Tentatively Ready (from Open): <a href="lwg-defects.html#2106">2106</a>, <a href="lwg-defects.html#2129">2129</a>, <a href="lwg-defects.html#2212">2212</a>, <a href="lwg-defects.html#2230">2230</a>, <a href="lwg-defects.html#2233">2233</a>.</li>
-</ul></li>
-</ul>
-</li>
-</ul>
-
-<h2>Defect Reports</h2>
-<hr>
-<h3><a name="1"></a>1. C library linkage editing oversight</h3>
-<p><b>Section:</b> 17.6.2.3 [using.linkage] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 1997-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#using.linkage">issues</a> in [using.linkage].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The change specified in the proposed resolution below did not make
-it into the Standard. This change was accepted in principle at the
-London meeting, and the exact wording below was accepted at the
-Morristown meeting.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 17.6.2.3 [using.linkage] paragraph 2
-from:</p>
-
-<blockquote>
-  <p>It is unspecified whether a name from the Standard C library
-  declared with external linkage has either extern &quot;C&quot; or
-  extern &quot;C++&quot; linkage.</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-  <p>Whether a name from the Standard C library declared with external
-  linkage has extern &quot;C&quot; or extern &quot;C++&quot; linkage
-  is implementation defined. It is recommended that an implementation
-  use extern &quot;C++&quot; linkage for this purpose.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="3"></a>3. Atexit registration during atexit() call is not described</h3>
-<p><b>Section:</b> 18.5 [support.start.term] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1997-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.start.term">issues</a> in [support.start.term].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>We appear not to have covered all the possibilities of
- exit processing with respect to
-atexit registration. <br/>
-<br/>
-Example 1: (C and C++)</p>
-
-<pre>    #include &lt;stdlib.h&gt;
-    void f1() { }
-    void f2() { atexit(f1); }
-    
-    int main()
-    {
-        atexit(f2); // the only use of f2
-        return 0; // for C compatibility
-    }</pre>
-
-<p>At program exit, f2 gets called due to its registration in
-main. Running f2 causes f1 to be newly registered during the exit
-processing. Is this a valid program? If so, what are its
-semantics?</p>
-
-<p>
-Interestingly, neither the C standard, nor the C++ draft standard nor
-the forthcoming C9X Committee Draft says directly whether you can
-register a function with atexit during exit processing.</p>
-
-<p>
-All 3 standards say that functions are run in reverse order of their
-registration. Since f1 is registered last, it ought to be run first,
-but by the time it is registered, it is too late to be first.</p>
-
-<p>If the program is valid, the standards are self-contradictory about
-its semantics.</p>
-
-<p>Example 2: (C++ only)</p>
-
-<pre>    
-    void F() { static T t; } // type T has a destructor
-
-    int main()
-    {
-        atexit(F); // the only use of F
-    }
-</pre>
-
-<p>Function F registered with atexit has a local static variable t,
-and F is called for the first time during exit processing. A local
-static object is initialized the first time control flow passes
-through its definition, and all static objects are destroyed during
-exit processing. Is the code valid? If so, what are its semantics?</p>
-
-<p>
-Section 18.3 &quot;Start and termination&quot; says that if a function
-F is registered with atexit before a static object t is initialized, F
-will not be called until after t's destructor completes.</p>
-
-<p>
-In example 2, function F is registered with atexit before its local
-static object O could possibly be initialized. On that basis, it must
-not be called by exit processing until after O's destructor
-completes. But the destructor cannot be run until after F is called,
-since otherwise the object could not be constructed in the first
-place.</p>
-
-<p>If the program is valid, the standard is self-contradictory about
-its semantics.</p>
-
-<p>I plan to submit Example 1 as a public comment on the C9X CD, with
-a recommendation that the results be undefined. (Alternative: make it
-unspecified. I don't think it is worthwhile to specify the case where
-f1 itself registers additional functions, each of which registers
-still more functions.)</p>
-
-<p>I think we should resolve the situation in the whatever way the C
-committee decides. </p>
-
-<p>For Example 2, I recommend we declare the results undefined.</p>
-
-<p><i>[See reflector message lib-6500 for further discussion.]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change section 18.3/8 from:</p>
-<blockquote><p>
-  First, objects with static storage duration are destroyed and
-  functions registered by calling atexit are called. Objects with
-  static storage duration are destroyed in the reverse order of the
-  completion of their constructor.  (Automatic objects are not
-  destroyed as a result of calling exit().) Functions registered with
-  atexit are called in the reverse order of their registration.  A
-  function registered with atexit before an object obj1 of static
-  storage duration is initialized will not be called until obj1's
-  destruction has completed. A function registered with atexit after
-  an object obj2 of static storage duration is initialized will be
-  called before obj2's destruction starts.
-</p></blockquote>
-<p>to:</p>
-<blockquote><p>
-  First, objects with static storage duration are destroyed and
-  functions registered by calling atexit are called. Non-local objects
-  with static storage duration are destroyed in the reverse order of
-  the completion of their constructor. (Automatic objects are not
-  destroyed as a result of calling exit().) Functions registered with
-  atexit are called in the reverse order of their registration, except
-  that a function is called after any previously registered functions
-  that had already been called at the time it was registered. A
-  function registered with atexit before a non-local object obj1 of
-  static storage duration is initialized will not be called until
-  obj1's destruction has completed. A function registered with atexit
-  after a non-local object obj2 of static storage duration is
-  initialized will be called before obj2's destruction starts. A local
-  static object obj3 is destroyed at the same time it would be if a
-  function calling the obj3 destructor were registered with atexit at
-  the completion of the obj3 constructor.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>See 99-0039/N1215, October 22, 1999, by Stephen D. Clamage for the analysis
-supporting to the proposed resolution.</p>
-
-
-
-
-
-<hr>
-<h3><a name="5"></a>5. String::compare specification questionable</h3>
-<p><b>Section:</b> 21.4.6.8 [string::swap] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Jack Reeves <b>Opened:</b> 1997-12-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::swap">issues</a> in [string::swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#87">87</a></p>
-<p><b>Discussion:</b></p>
-<p>At the very end of the basic_string class definition is the signature: int
-compare(size_type pos1, size_type n1, const charT* s, size_type n2 = npos) const; In the
-following text this is defined as: returns
-basic_string&lt;charT,traits,Allocator&gt;(*this,pos1,n1).compare(
-basic_string&lt;charT,traits,Allocator&gt;(s,n2); </p>
-
-<p>Since the constructor basic_string(const charT* s, size_type n, const Allocator&amp; a
-= Allocator()) clearly requires that s != NULL and n &lt; npos and further states that it
-throws length_error if n == npos, it appears the compare() signature above should always
-throw length error if invoked like so: str.compare(1, str.size()-1, s); where 's' is some
-null terminated character array. </p>
-
-<p>This appears to be a typo since the obvious intent is to allow either the call above or
-something like: str.compare(1, str.size()-1, s, strlen(s)-1); </p>
-
-<p>This would imply that what was really intended was two signatures int compare(size_type
-pos1, size_type n1, const charT* s) const int compare(size_type pos1, size_type n1, const
-charT* s, size_type n2) const; each defined in terms of the corresponding constructor. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the compare signature in 21.4 [basic.string]
-(at the very end of the basic_string synopsis) which reads:</p>
-
-<blockquote>
-  <p><tt>int compare(size_type pos1, size_type n1,<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const charT* s,
-  size_type n2 = npos) const;</tt></p>
-</blockquote>
-
-<p>with:</p>
-
-<blockquote>
-  <p><tt>int compare(size_type pos1, size_type n1,<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const charT* s) const;<br/>
-  int compare(size_type pos1, size_type n1,<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const charT* s,
-  size_type n2) const;</tt></p>
-</blockquote>
-
-<p>Replace the portion of 21.4.6.8 [string::swap]
-paragraphs 5 and 6 which read:</p>
-
-<blockquote>
-  <p><tt>int compare(size_type pos, size_type n1,<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; charT * s, size_type n2
-  = npos) const;<br/>
-  </tt>Returns:<tt><br/>
-  basic_string&lt;charT,traits,Allocator&gt;(*this, pos, n1).compare(<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-  basic_string&lt;charT,traits,Allocator&gt;( s, n2))</tt></p>
-</blockquote>
-
-<p>with:</p>
-
-<blockquote>
-  <p><tt>int compare(size_type pos, size_type n1,<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const charT * s) const;<br/>
-  </tt>Returns:<tt><br/>
-  basic_string&lt;charT,traits,Allocator&gt;(*this, pos, n1).compare(<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-  basic_string&lt;charT,traits,Allocator&gt;( s ))<br/>
-  <br/>
-  int compare(size_type pos, size_type n1,<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const charT * s,
-  size_type n2) const;<br/>
-  </tt>Returns:<tt><br/>
-  basic_string&lt;charT,traits,Allocator&gt;(*this, pos, n1).compare(<br/>
-  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-  basic_string&lt;charT,traits,Allocator&gt;( s, n2))</tt></p>
-</blockquote>
-
-<p>Editors please note that in addition to splitting the signature, the third argument
-becomes const, matching the existing synopsis.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>While the LWG dislikes adding signatures, this is a clear defect in
-the Standard which must be fixed.&nbsp; The same problem was also
-identified in issues 7 (item 5) and 87.</p>
-
-
-
-
-
-<hr>
-<h3><a name="7"></a>7. String clause minor problems</h3>
-<p><b>Section:</b> 21 [strings] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1997-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#strings">issues</a> in [strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>(1) In 21.4.6.4 [string::insert], the description of template
-&lt;class InputIterator&gt; insert(iterator, InputIterator,
-InputIterator) makes no sense. It refers to a member function that
-doesn't exist. It also talks about the return value of a void
-function. </p>
-
-<p>(2) Several versions of basic_string::replace don't appear in the
-class synopsis. </p>
-
-<p>(3) basic_string::push_back appears in the synopsis, but is never
-described elsewhere.  In the synopsis its argument is const charT,
-which doesn't makes much sense; it should probably be charT, or
-possible const charT&amp;. </p>
-
-<p>(4) basic_string::pop_back is missing. </p>
-
-<p>(5) int compare(size_type pos, size_type n1, charT* s, size_type n2
-= npos) make no sense. First, it's const charT* in the synopsis and
-charT* in the description. Second, given what it says in RETURNS,
-leaving out the final argument will always result in an exception
-getting thrown. This is paragraphs 5 and 6 of 
-21.4.6.8 [string::swap]</p>
-
-<p>(6) In table 37, in section 21.2.1 [char.traits.require],
-there's a note for X::move(s, p, n). It says &quot;Copies correctly
-even where p is in [s, s+n)&quot;. This is correct as far as it goes,
-but it doesn't go far enough; it should also guarantee that the copy
-is correct even where s in in [p, p+n). These are two orthogonal
-guarantees, and neither one follows from the other. Both guarantees
-are necessary if X::move is supposed to have the same sort of
-semantics as memmove (which was clearly the intent), and both
-guarantees are necessary if X::move is actually supposed to be
-useful. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>ITEM 1: In 21.3.5.4 [lib.string::insert], change paragraph 16 to <br/>
-<br/>
-&nbsp;&nbsp;&nbsp; EFFECTS: Equivalent to insert(p - begin(), basic_string(first, last)).<br/>
-<br/>
-ITEM 2:&nbsp; Not a defect; the Standard is clear.. There are ten versions of replace() in
-the synopsis, and ten versions in 21.3.5.6 [lib.string::replace].<br/>
-<br/>
-ITEM 3: Change the declaration of push_back in the string synopsis (21.3,
-[lib.basic.string]) from:</p>
-
-<p>&nbsp;&nbsp;&nbsp;&nbsp; void push_back(const charT)<br/>
-<br/>
-to<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; void push_back(charT)<br/>
-<br/>
-Add the following text immediately after 21.3.5.2 [lib.string::append], paragraph 10.<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; void basic_string::push_back(charT c);<br/>
-&nbsp;&nbsp;&nbsp; EFFECTS: Equivalent to append(static_cast&lt;size_type&gt;(1), c);<br/>
-<br/>
-ITEM 4: Not a defect. The omission appears to have been deliberate.<br/>
-<br/>
-ITEM 5: Duplicate; see issue 5 (and 87).<br/>
-<br/>
-ITEM 6: In table 37, Replace:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; &quot;Copies correctly even where p is in [s, s+n).&quot;<br/>
-<br/>
-with:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; &quot;Copies correctly even where the ranges [p, p+n) and [s,
-s+n) overlap.&quot;</p>
-
-
-
-
-
-<hr>
-<h3><a name="8"></a>8. Locale::global lacks guarantee</h3>
-<p><b>Section:</b> 22.3.1.5 [locale.statics] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1997-12-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>It appears there's an important guarantee missing from clause
-22. We're told that invoking locale::global(L) sets the C locale if L
-has a name. However, we're not told whether or not invoking
-setlocale(s) sets the global C++ locale. </p>
-
-<p>The intent, I think, is that it should not, but I can't find any
-such words anywhere. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a sentence at the end of 22.3.1.5 [locale.statics],
-paragraph 2:&nbsp; </p>
-
-<blockquote>
-  <p>No library function other than <tt>locale::global()</tt> shall affect 
-  the value returned by <tt>locale()</tt>. </p>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="9"></a>9. Operator new(0) calls should not yield the same pointer</h3>
-<p><b>Section:</b> 18.6.1 [new.delete] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1998-01-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete">issues</a> in [new.delete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Scott Meyers, in a comp.std.c++ posting: I just noticed that
-section 3.7.3.1 of CD2 seems to allow for the possibility that all
-calls to operator new(0) yield the same pointer, an implementation
-technique specifically prohibited by ARM 5.3.3.Was this prohibition
-really lifted? Does the FDIS agree with CD2 in the regard? [Issues
-list maintainer's note: the IS is the same.]</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the last paragraph of 3.7.3 from:</p>
-<blockquote>
-  <p>Any allocation and/or deallocation functions defined in a C++ program shall
-  conform to the semantics specified in 3.7.3.1 and 3.7.3.2.</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>Any allocation and/or deallocation functions defined in a C++ program,
-  including the default versions in the library, shall conform to the semantics
-  specified in 3.7.3.1 and 3.7.3.2.</p>
-</blockquote>
-<p>Change 3.7.3.1/2, next-to-last sentence, from :</p>
-<blockquote>
-  <p>If the size of the space requested is zero, the value returned shall not be
-  a null pointer value (4.10).</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>Even if the size of the space requested is zero, the request can fail. If
-  the request succeeds, the value returned shall be a non-null pointer value
-  (4.10) p0 different from any previously returned value p1, unless that value
-  p1 was since passed to an operator delete.</p>
-</blockquote>
-<p>5.3.4/7 currently reads:</p>
-<blockquote>
-  <p>When the value of the expression in a direct-new-declarator is zero, the
-  allocation function is called to allocate an array with no elements. The
-  pointer returned by the new-expression is non-null. [Note: If the library
-  allocation function is called, the pointer returned is distinct from the
-  pointer to any other object.]</p>
-</blockquote>
-<p>Retain the first sentence, and delete the remainder.</p>
-<p>18.5.1 currently has no text. Add the following:</p>
-<blockquote>
-  <p>Except where otherwise specified, the provisions of 3.7.3 apply to the
-  library versions of operator new and operator delete.</p>
-</blockquote>
-<p>To 18.5.1.3, add the following text:</p>
-<blockquote>
-  <p>The provisions of 3.7.3 do not apply to these reserved placement forms of
-  operator new and operator delete.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>See 99-0040/N1216, October 22, 1999, by Stephen D. Clamage for the analysis
-supporting to the proposed resolution.</p>
-
-
-
-
-
-<hr>
-<h3><a name="11"></a>11. Bitset minor problems</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-01-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>(1) bitset&lt;&gt;::operator[] is mentioned in the class synopsis (23.3.5), but it is
-not documented in 23.3.5.2. </p>
-
-<p>(2) The class synopsis only gives a single signature for bitset&lt;&gt;::operator[],
-reference operator[](size_t pos). This doesn't make much sense. It ought to be overloaded
-on const. reference operator[](size_t pos); bool operator[](size_t pos) const. </p>
-
-<p>(3) Bitset's stream input function (23.3.5.3) ought to skip all whitespace before
-trying to extract 0s and 1s. The standard doesn't explicitly say that, though. This should
-go in the Effects clause.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>ITEMS 1 AND 2:<br/>
-<br/>
-In the bitset synopsis (20.6 [template.bitset]), 
-replace the member function <br/>
-<br/>
-<tt>&nbsp;&nbsp;&nbsp; reference operator[](size_t pos);<br/>
-</tt><br/>
-with the two member functions<br/>
-<br/>
-<tt>&nbsp;&nbsp;&nbsp; bool operator[](size_t pos) const; <br/>
-&nbsp;&nbsp;&nbsp; reference operator[](size_t pos); <br/>
-</tt><br/>
-Add the following text at the end of 20.6.2 [bitset.members], 
-immediately after paragraph 45:</p>
-
-<blockquote>
-  <p><tt>bool operator[](size_t pos) const;</tt><br/>
-  Requires: pos is valid<br/>
-  Throws: nothing<br/>
-  Returns: <tt>test(pos)</tt><br/>
-  <br/>
-  <tt>bitset&lt;N&gt;::reference operator[](size_t pos);</tt> <br/>
-  Requires: pos is valid<br/>
-  Throws: nothing<br/>
-  Returns: An object of type <tt>bitset&lt;N&gt;::reference</tt> such that <tt>(*this)[pos]
-  == this-&gt;test(pos)</tt>, and such that <tt>(*this)[pos] = val</tt> is equivalent to <tt>this-&gt;set(pos,
-  val);</tt></p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes Item 3 is not a defect. &quot;Formatted
-input&quot; implies the desired semantics. See 27.7.2.2 [istream.formatted].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="13"></a>13. Eos refuses to die</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> William M. Miller <b>Opened:</b> 1998-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 27.6.1.2.3, there is a reference to &quot;eos&quot;, which is
-the only one in the whole draft (at least using Acrobat search), so
-it's undefined. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.2.2.3 [istream::extractors], replace &quot;eos&quot; with
-&quot;charT()&quot;</p>
-
-
-
-
-
-<hr>
-<h3><a name="14"></a>14. Locale::combine should be const</h3>
-<p><b>Section:</b> 22.3.1.3 [locale.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.members">issues</a> in [locale.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>locale::combine is the only member function of locale (other than constructors and
-destructor) that is not const. There is no reason for it not to be const, and good reasons
-why it should have been const. Furthermore, leaving it non-const conflicts with 22.1.1
-paragraph 6: &quot;An instance of a locale is immutable.&quot; </p>
-
-<p>History: this member function originally was a constructor. it happened that the
-interface it specified had no corresponding language syntax, so it was changed to a member
-function. As constructors are never const, there was no &quot;const&quot; in the interface
-which was transformed into member &quot;combine&quot;. It should have been added at that
-time, but the omission was not noticed. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.1 [locale] and also in 22.3.1.3 [locale.members], add 
-&quot;const&quot; to the declaration of member combine: </p>
-<blockquote>
-  <pre>template &lt;class Facet&gt; locale combine(const locale&amp; other) const; </pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="15"></a>15. Locale::name requirement inconsistent</h3>
-<p><b>Section:</b> 22.3.1.3 [locale.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.members">issues</a> in [locale.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>locale::name() is described as returning a string that can be passed to a locale
-constructor, but there is no matching constructor. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.1.3 [locale.members], paragraph 5, replace
-&quot;<tt>locale(name())</tt>&quot; with
-&quot;<tt>locale(name().c_str())</tt>&quot;.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="16"></a>16. Bad ctype_byname&lt;char&gt; decl</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The new virtual members ctype_byname&lt;char&gt;::do_widen and do_narrow did not get
-edited in properly. Instead, the member do_widen appears four times, with wrong argument
-lists. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>The correct declarations for the overloaded members
-<tt>do_narrow</tt> and <tt>do_widen</tt> should be copied 
-from 22.4.1.3 [facet.ctype.special].</p>
-
-
-
-
-
-<hr>
-<h3><a name="17"></a>17. Bad bool parsing</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>This section describes the process of parsing a text boolean value from the input
-stream. It does not say it recognizes either of the sequences &quot;true&quot; or
-&quot;false&quot; and returns the corresponding bool value; instead, it says it recognizes
-only one of those sequences, and chooses which according to the received value of a
-reference argument intended for returning the result, and reports an error if the other
-sequence is found. (!) Furthermore, it claims to get the names from the ctype&lt;&gt;
-facet rather than the numpunct&lt;&gt; facet, and it examines the &quot;boolalpha&quot;
-flag wrongly; it doesn't define the value &quot;loc&quot;; and finally, it computes
-wrongly whether to use numeric or &quot;alpha&quot; parsing.<br/>
-<br/>
-I believe the correct algorithm is &quot;as if&quot;: </p>
-
-<pre>  // in, err, val, and str are arguments.
-  err = 0;
-  const numpunct&lt;charT&gt;&amp; np = use_facet&lt;numpunct&lt;charT&gt; &gt;(str.getloc());
-  const string_type t = np.truename(), f = np.falsename();
-  bool tm = true, fm = true;
-  size_t pos = 0;
-  while (tm &amp;&amp; pos &lt; t.size() || fm &amp;&amp; pos &lt; f.size()) {
-    if (in == end) { err = str.eofbit; }
-    bool matched = false;
-    if (tm &amp;&amp; pos &lt; t.size()) {
-      if (!err &amp;&amp; t[pos] == *in) matched = true;
-      else tm = false;
-    }
-    if (fm &amp;&amp; pos &lt; f.size()) {
-      if (!err &amp;&amp; f[pos] == *in) matched = true;
-      else fm = false;
-    }
-    if (matched) { ++in; ++pos; }
-    if (pos &gt; t.size()) tm = false;
-    if (pos &gt; f.size()) fm = false;
-  }
-  if (tm == fm || pos == 0) { err |= str.failbit; }
-  else                      { val = tm; }
-  return in;</pre>
-
-<p>Notice this works reasonably when the candidate strings are both empty, or equal, or
-when one is a substring of the other. The proposed text below captures the logic of the
-code above.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.2.1.2 [facet.num.get.virtuals], in the first line of paragraph 14,
-change &quot;&amp;&amp;&quot; to &quot;&amp;&quot;.</p>
-
-<p>Then, replace paragraphs 15 and 16 as follows:</p>
-
-<blockquote>
-
-  <p>Otherwise target sequences are determined &quot;as if&quot; by
-  calling the members <tt>falsename()</tt> and
-  <tt>truename()</tt> of the facet obtained by
-  <tt>use_facet&lt;numpunct&lt;charT&gt;&nbsp;&gt;(str.getloc())</tt>.  
-  Successive characters in the range <tt>[in,end)</tt> (see
-  [lib.sequence.reqmts]) are obtained and matched against
-  corresponding positions in the target sequences only as necessary to
-  identify a unique match. The input iterator <tt>in</tt> is
-  compared to <tt>end</tt> only when necessary to obtain a
-  character. If and only if a target sequence is uniquely matched,
-  <tt>val</tt> is set to the corresponding value.</p>
-
-</blockquote>
-
-<blockquote>
-  <p>The <tt>in</tt> iterator is always left pointing one position beyond the last character
-  successfully matched. If <tt>val</tt> is set, then err is set to <tt>str.goodbit</tt>; or to
-  <tt>str.eofbit</tt> if, when seeking another character to match, it is found that
-  <tt>(in==end)</tt>. If <tt>val</tt> is not set, then <i>err</i> is set to <tt>str.failbit</tt>; or to
-  <tt>(str.failbit|str.eofbit)</tt>if
-  the reason for the failure was that <tt>(in==end)</tt>. [Example: for targets
-  <tt>true</tt>:&quot;a&quot; and <tt>false</tt>:&quot;abb&quot;, the input sequence &quot;a&quot; yields
-  <tt>val==true</tt> and <tt>err==str.eofbit</tt>; the input sequence &quot;abc&quot; yields
-  <tt>err=str.failbit</tt>, with <tt>in</tt> ending at the 'c' element. For targets
-  <tt>true</tt>:&quot;1&quot;
-  and <tt>false</tt>:&quot;0&quot;, the input sequence &quot;1&quot; yields <tt>val==true</tt>
-  and <tt>err=str.goodbit</tt>. For empty targets (&quot;&quot;), any input sequence yields
-  <tt>err==str.failbit</tt>. --end example]</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="18"></a>18. Get(...bool&amp;) omitted</h3>
-<p><b>Section:</b> 22.4.2.1.1 [facet.num.get.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.members">issues</a> in [facet.num.get.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In the list of num_get&lt;&gt; non-virtual members on page 22-23, the member
-that parses bool values was omitted from the list of definitions of non-virtual
-members, though it is listed in the class definition and the corresponding
-virtual is listed everywhere appropriate. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add at the beginning of 22.4.2.1.1 [facet.num.get.members]
-another get member for bool&amp;, copied from the entry in 
-22.4.2.1 [locale.num.get].</p>
-
-
-
-
-
-<hr>
-<h3><a name="19"></a>19. &quot;Noconv&quot; definition too vague</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#10">10</a></p>
-<p><b>Discussion:</b></p>
-<p>
-In the definitions of codecvt&lt;&gt;::do_out and do_in, they are
-specified to return noconv if &quot;no conversion is
-needed&quot;. This definition is too vague, and does not say
-normatively what is done with the buffers.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the entry for noconv in the table under paragraph 4 in section 
-22.4.1.4.2 [locale.codecvt.virtuals] to read:
-</p>
-<blockquote>
-  <p><tt>noconv</tt>: <tt>internT</tt> and <tt>externT</tt> are the same type,
-  and input sequence is identical to converted sequence.</p>
-</blockquote>
-<p>Change the Note in paragraph 2 to normative text as follows:</p>
-<blockquote>
-  <p>If returns <tt>noconv</tt>, <tt>internT</tt> and <tt>externT</tt> are the
-  same type and the converted sequence is identical to the input sequence <tt>[from,from_next)</tt>.
-  <tt>to_next</tt> is set equal to <tt>to</tt>, the value of <tt>state</tt> is
-  unchanged, and there are no changes to the values in <tt>[to, to_limit)</tt>.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="20"></a>20. Thousands_sep returns wrong type</h3>
-<p><b>Section:</b> 22.4.3.1.2 [facet.numpunct.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The synopsis for numpunct&lt;&gt;::do_thousands_sep, and the
-definition of numpunct&lt;&gt;::thousands_sep which calls it, specify
-that it returns a value of type char_type. Here it is erroneously
-described as returning a &quot;string_type&quot;. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.3.1.2 [facet.numpunct.virtuals], above paragraph 2, change 
-&quot;string_type&quot; to &quot;char_type&quot;. </p>
-
-
-
-
-
-<hr>
-<h3><a name="21"></a>21. Codecvt_byname&lt;&gt; instantiations</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In the second table in the section, captioned &quot;Required
-instantiations&quot;, the instantiations for codecvt_byname&lt;&gt;
-have been omitted. These are necessary to allow users to construct a
-locale by name from facets. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add in 22.3.1.1.1 [locale.category] to the table captioned
-&quot;Required instantiations&quot;, in the category &quot;ctype&quot;
-the lines </p>
-
-<blockquote>
-  <pre>codecvt_byname&lt;char,char,mbstate_t&gt;,
-codecvt_byname&lt;wchar_t,char,mbstate_t&gt; </pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="22"></a>22. Member open vs. flags</h3>
-<p><b>Section:</b> 27.9.1.9 [ifstream.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ifstream.members">issues</a> in [ifstream.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The description of basic_istream&lt;&gt;::open leaves unanswered questions about how it
-responds to or changes flags in the error status for the stream. A strict reading
-indicates that it ignores the bits and does not change them, which confuses users who do
-not expect eofbit and failbit to remain set after a successful open. There are three
-reasonable resolutions: 1) status quo 2) fail if fail(), ignore eofbit 3) clear failbit
-and eofbit on call to open(). </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.9.1.9 [ifstream.members] paragraph 3, <i>and</i> in 27.9.1.13 [ofstream.members] paragraph 3, under open() effects, add a footnote:
-</p>
-
-<blockquote>
-  <p>A successful open does not change the error state.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>This may seem surprising to some users, but it's just an instance
-of a general rule: error flags are never cleared by the
-implementation. The only way error flags are are ever cleared is if
-the user explicitly clears them by hand.</p>
-
-<p>The LWG believed that preserving this general rule was
-important enough so that an exception shouldn't be made just for this
-one case.  The resolution of this issue clarifies what the LWG
-believes to have been the original intent.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="23"></a>23. Num_get overflow result</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The current description of numeric input does not account for the
-possibility of overflow. This is an implicit result of changing the
-description to rely on the definition of scanf() (which fails to
-report overflow), and conflicts with the documented behavior of
-traditional and current implementations. </p>
-
-<p>Users expect, when reading a character sequence that results in a
-value unrepresentable in the specified type, to have an error
-reported. The standard as written does not permit this. </p>
-
-<p><b>Further comments from Dietmar:</b></p>
-
-<p>
-I don't feel comfortable with the proposed resolution to issue 23: It
-kind of simplifies the issue to much. Here is what is going on:
-</p>
-
-<p>
-Currently, the behavior of numeric overflow is rather counter intuitive
-and hard to trace, so I will describe it briefly:
-</p>
-
-<ul>
-  <li>
-    According to 22.4.2.1.2 [facet.num.get.virtuals]
-    paragraph 11 <tt>failbit</tt> is set if <tt>scanf()</tt> would
-    return an input error; otherwise a value is converted to the rules
-    of <tt>scanf</tt>.
-  </li>
-  <li> 
-    <tt>scanf()</tt> is defined in terms of <tt>fscanf()</tt>. 
-  </li>
-  <li>
-    <tt>fscanf()</tt> returns an input failure if during conversion no
-    character matching the conversion specification could be extracted
-    before reaching EOF. This is the only reason for <tt>fscanf()</tt>
-    to fail due to an input error and clearly does not apply to the case
-    of overflow.
-  </li>
-  <li>
-    Thus, the conversion is performed according to the rules of
-    <tt>fscanf()</tt> which basically says that <tt>strtod</tt>,
-    <tt>strtol()</tt>, etc. are to be used for the conversion.
-  </li>
-  <li>
-    The <tt>strtod()</tt>, <tt>strtol()</tt>, etc. functions consume as
-    many matching characters as there are and on overflow continue to
-    consume matching characters but also return a value identical to
-    the maximum (or minimum for signed types if there was a leading minus)
-    value of the corresponding type and set <tt>errno</tt> to <tt>ERANGE</tt>.
-  </li>
-  <li>
-    Thus, according to the current wording in the standard, overflows
-    can be detected! All what is to be done is to check <tt>errno</tt>
-    after reading an element and, of course, clearing <tt>errno</tt>
-    before trying a conversion. With the current wording, it can be
-    detected whether the overflow was due to a positive or negative
-    number for signed types.
-  </li>
-</ul>
-
-<p><b>Further discussion from Redmond:</b></p>
-
-<p>The basic problem is that we've defined our behavior,
-including our error-reporting behavior, in terms of C90.  However,
-C90's method of reporting overflow in scanf is not technically an
-"input error".  The <tt>strto_*</tt> functions are more precise.</p>
-
-<p>There was general consensus that <tt>failbit</tt> should be set
-upon overflow.  We considered three options based on this:</p>
-<ol>
-<li>Set failbit upon conversion error (including overflow), and 
-    don't store any value.</li>
-<li>Set failbit upon conversion error, and also set <tt>errno</tt> to 
-    indicated the precise nature of the error.</li>
-<li>Set failbit upon conversion error.  If the error was due to
-    overflow, store +-numeric_limits&lt;T&gt;::max() as an
-    overflow indication.</li>
-</ol>
-
-<p>Straw poll: (1) 5; (2) 0; (3) 8.</p>
-
-
-<p>Discussed at Lillehammer.  General outline of what we want the
-  solution to look like: we want to say that overflow is an error, and
-  provide a way to distinguish overflow from other kinds of errors.
-  Choose candidate field the same way scanf does, but don't describe
-  the rest of the process in terms of format.  If a finite input field
-  is too large (positive or negative) to be represented as a finite
-  value, then set failbit and assign the nearest representable value.
-  Bill will provide wording.</p>
-
-<p>
-Discussed at Toronto:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2327.pdf">N2327</a>
-is in alignment with the direction we wanted to go with in Lillehammer.  Bill
-to work on.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals], end of p3:
-</p>
-
-<blockquote>
-<p>
-<b>Stage 3:</b> <del>The result of stage 2 processing can be one of</del>
-<ins>The sequence of <tt>char</tt>s accumulated in stage 2 (the field) is
-converted to a numeric value by the rules of one of the functions declared
-in the header <tt>&lt;cstdlib&gt;</tt>:</ins>
-</p>
-<ul>
-<li>
-<del>A sequence of <tt>char</tt>s has been accumulated in stage 2 that is
-converted (according to the rules of <tt>scanf</tt>) to a value of the
-type of <i>val</i>. This value is stored in <i>val</i> and <tt>ios_base::goodbit</tt> is
-stored in <i>err</i>.</del>
-<ins>For a signed integer value, the function <tt>strtoll</tt>.</ins>
-</li>
-<li>
-<del>The sequence of <tt>char</tt>s accumulated in stage 2 would have caused
-<tt>scanf</tt> to report an input failure. <tt>ios_base::failbit</tt> is
-assigned to <i>err</i>.</del>
-<ins>For an unsigned integer value, the function <tt>strtoull</tt>.</ins>
-</li>
-<li>
-<ins>For a floating-point value, the function <tt>strtold</tt>.</ins>
-</li>
-</ul>
-<p>
-<ins>The numeric value to be stored can be one of:</ins>
-</p>
-<ul>
-<li><ins>zero, if the conversion function fails to convert the entire field.
-<tt>ios_base::failbit</tt> is assigned to err.</ins></li>
-<li><ins>the most positive representable value, if the field represents a value
-too large positive to be represented in <i>val</i>. <tt>ios_base::failbit</tt> is assigned
-to <i>err</i>.</ins></li>
-<li><ins>the most negative representable value (zero for unsigned integer), if
-the field represents a value too large negative to be represented in <i>val</i>.
-<tt>ios_base::failbit</tt> is assigned to <i>err</i>.</ins></li>
-<li><ins>the converted value, otherwise.</ins></li>
-</ul>
-
-<p><ins>
-The resultant numeric value is stored in <i>val</i>.
-</ins></p>
-</blockquote>
-
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals], p6-p7:
-</p>
-
-<blockquote>
-<pre>
-iter_type do_get(iter_type <i>in</i>, iter_type <i>end</i>, ios_base&amp; <i>str</i>, 
-                 ios_base::iostate&amp; <i>err</i>, bool&amp; <i>val</i>) const;
-</pre>
-<blockquote>
-<p>
--6- <i>Effects:</i> If
-<tt>(<i>str</i>.flags()&amp;ios_base::boolalpha)==0</tt> then input
-proceeds as it would for a <tt>long</tt> except that if a value is being
-stored into <i>val</i>, the value is determined according to the
-following: If the value to be stored is 0 then <tt>false</tt> is stored.
-If the value is 1 then <tt>true</tt> is stored. Otherwise
-<del><tt><i>err</i>|=ios_base::failbit</tt> is performed and no value</del> <ins><tt>true</tt></ins> is
-stored<del>.</del> <ins>and <tt>ios_base::failbit</tt> is assigned to <i>err</i>.</ins>
-</p>
-<p>
--7- Otherwise target sequences are determined "as if" by calling the
-members <tt>falsename()</tt> and <tt>truename()</tt> of the facet
-obtained by <tt>use_facet&lt;numpunct&lt;charT&gt;
-&gt;(<i>str</i>.getloc())</tt>. Successive characters in the range
-<tt>[<i>in</i>,<i>end</i>)</tt> (see 23.1.1) are obtained and matched
-against corresponding positions in the target sequences only as
-necessary to identify a unique match. The input iterator <i>in</i> is
-compared to <i>end</i> only when necessary to obtain a character. If <del>and
-only if</del> a target sequence is uniquely matched, <i>val</i> is set to the
-corresponding value. <ins>Otherwise <tt>false</tt> is stored and <tt>ios_base::failbit</tt>
-is assigned to <i>err</i>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="24"></a>24. &quot;do_convert&quot; doesn't exist</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#72">72</a></p>
-<p><b>Discussion:</b></p>
-<p>The description of codecvt&lt;&gt;::do_out and do_in mentions a
-symbol &quot;do_convert&quot; which is not defined in the
-standard. This is a leftover from an edit, and should be &quot;do_in
-and do_out&quot;. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.1.4 [locale.codecvt], paragraph 3, change
-&quot;do_convert&quot; to &quot;do_in or do_out&quot;. Also, in 22.4.1.4.2 [locale.codecvt.virtuals], change &quot;do_convert()&quot; to &quot;do_in
-or do_out&quot;. </p>
-
-
-
-
-
-<hr>
-<h3><a name="25"></a>25. String operator&lt;&lt; uses width() value wrong</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#67">67</a></p>
-<p><b>Discussion:</b></p>
-<p>In the description of operator&lt;&lt; applied to strings, the standard says that uses
-the smaller of os.width() and str.size(), to pad &quot;as described in stage 3&quot;
-elsewhere; but this is inconsistent, as this allows no possibility of space for padding. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 21.4.8.9 [string.io]  paragraph 4 from:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; &quot;... where <tt>n</tt> is the smaller of <tt>os.width()</tt> and <tt>str.size()</tt>;
-...&quot;<br/>
-<br/>
-to: <br/>
-<br/>
-&nbsp;&nbsp;&nbsp; &quot;... where <tt>n</tt> is the larger of <tt>os.width()</tt> and <tt>str.size()</tt>;
-...&quot;</p>
-
-
-
-
-
-<hr>
-<h3><a name="26"></a>26. Bad sentry example</h3>
-<p><b>Section:</b> 27.7.2.1.3 [istream::sentry] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::sentry">issues</a> in [istream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In paragraph 6, the code in the example: </p>
-
-<pre>  template &lt;class charT, class traits = char_traits&lt;charT&gt; &gt;
-  basic_istream&lt;charT,traits&gt;::sentry(
-           basic_istream&lt;charT,traits&gt;&amp; is, bool noskipws = false) {
-      ...
-      int_type c;
-      typedef ctype&lt;charT&gt; ctype_type;
-      const ctype_type&amp; ctype = use_facet&lt;ctype_type&gt;(is.getloc());
-      while ((c = is.rdbuf()-&gt;snextc()) != traits::eof()) {
-        if (ctype.is(ctype.space,c)==0) {
-          is.rdbuf()-&gt;sputbackc (c);
-          break;
-        }
-      }
-      ...
-   }</pre>
-
-<p>fails to demonstrate correct use of the facilities described. In
-particular, it fails to use traits operators, and specifies incorrect
-semantics. (E.g. it specifies skipping over the first character in the
-sequence without examining it.) </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove the example above from 27.7.2.1.3 [istream::sentry]
-paragraph 6.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The originally proposed replacement code for the example was not
-correct. The LWG tried in Kona and again in Tokyo to correct it
-without success. In Tokyo, an implementor reported that actual working
-code ran over one page in length and was quite complicated. The LWG
-decided that it would be counter-productive to include such a lengthy
-example, which might well still contain errors.</p>
-
-
-
-
-
-<hr>
-<h3><a name="27"></a>27. String::erase(range) yields wrong iterator</h3>
-<p><b>Section:</b> 21.4.6.5 [string::erase] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::erase">issues</a> in [string::erase].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The string::erase(iterator first, iterator last) is specified to return an element one
-place beyond the next element after the last one erased. E.g. for the string
-&quot;abcde&quot;, erasing the range ['b'..'d') would yield an iterator for element 'e',
-while 'd' has not been erased. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 21.4.6.5 [string::erase], paragraph 10, change: </p>
-
-<blockquote>
-  <p>Returns: an iterator which points to the element immediately following _last_ prior to
-  the element being erased. </p>
-</blockquote>
-
-<p>to read </p>
-
-<blockquote>
-  <p>Returns: an iterator which points to the element pointed to by _last_ prior to the
-  other elements being erased. </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="28"></a>28. Ctype&lt;char&gt;is ambiguous</h3>
-<p><b>Section:</b> 22.4.1.3.2 [facet.ctype.char.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.ctype.char.members">issues</a> in [facet.ctype.char.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#236">236</a></p>
-<p><b>Discussion:</b></p>
-<p>The description of the vector form of ctype&lt;char&gt;::is can be interpreted to mean
-something very different from what was intended. Paragraph 4 says </p>
-
-<blockquote>
-  <p>Effects: The second form, for all *p in the range [low, high), assigns vec[p-low] to
-  table()[(unsigned char)*p]. </p>
-</blockquote>
-
-<p>This is intended to copy the value indexed from table()[] into the place identified in
-vec[]. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 22.4.1.3.2 [facet.ctype.char.members], paragraph 4, to read </p>
-
-<blockquote>
-  <p>Effects: The second form, for all *p in the range [low, high), assigns into vec[p-low]
-  the value table()[(unsigned char)*p]. </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="29"></a>29. Ios_base::init doesn't exist</h3>
-<p><b>Section:</b> 27.4.2 [narrow.stream.objects] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#narrow.stream.objects">issues</a> in [narrow.stream.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Sections 27.4.2 [narrow.stream.objects] and 27.4.3 [wide.stream.objects] mention
-a function ios_base::init, which is not defined. Probably they mean
-basic_ios&lt;&gt;::init, defined in 27.5.5.2 [basic.ios.cons],
-paragraph 3. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>[R12: modified to include paragraph 5.]</p>
-
-<p>In 27.4.2 [narrow.stream.objects] paragraph 2 and 5, change </p>
-
-<blockquote>
-  <p>ios_base::init </p>
-</blockquote>
-
-<p>to </p>
-
-<blockquote>
-  <p>basic_ios&lt;char&gt;::init </p>
-</blockquote>
-
-<p>Also, make a similar change in 27.4.3 [wide.stream.objects] except it
-should read </p>
-
-<blockquote>
-  <p>basic_ios&lt;wchar_t&gt;::init </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="30"></a>30. Wrong header for LC_*</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 2 implies that the C macros LC_CTYPE etc. are defined in &lt;cctype&gt;,
-where they are in fact defined elsewhere to appear in &lt;clocale&gt;. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.1.1.1 [locale.category], paragraph 2, change
-&quot;&lt;cctype&gt;&quot; to read &quot;&lt;clocale&gt;&quot;. </p>
-
-
-
-
-
-<hr>
-<h3><a name="31"></a>31. Immutable locale values</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#378">378</a></p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 6, says &quot;An instance of <tt>locale</tt> is
-<i>immutable</i>; once a facet reference is obtained from it,
-...&quot;. This has caused some confusion, because locale variables
-are manifestly assignable. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.1 [locale] replace paragraph 6</p>
-
-<blockquote>
-  <p>An instance of <tt>locale</tt> is immutable; once a facet
-  reference is obtained from it, that reference remains usable as long
-  as the locale value itself exists.</p>
-</blockquote>
-
-<p>with</p>
-
-<blockquote>
-  <p>Once a facet reference is obtained from a locale object by
-  calling use_facet&lt;&gt;, that reference remains usable, and the
-  results from member functions of it may be cached and re-used, as
-  long as some locale object refers to that facet.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="32"></a>32. Pbackfail description inconsistent</h3>
-<p><b>Section:</b> 27.6.3.4.4 [streambuf.virt.pback] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The description of the required state before calling virtual member
-basic_streambuf&lt;&gt;::pbackfail requirements is inconsistent with the conditions
-described in 27.5.2.2.4 [lib.streambuf.pub.pback] where member sputbackc calls it.
-Specifically, the latter says it calls pbackfail if: </p>
-
-<p>&nbsp;&nbsp;&nbsp; traits::eq(c,gptr()[-1]) is false </p>
-
-<p>where pbackfail claims to require: </p>
-
-<p>&nbsp;&nbsp;&nbsp; traits::eq(*gptr(),traits::to_char_type(c)) returns false </p>
-
-<p>It appears that the pbackfail description is wrong. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.6.3.4.4 [streambuf.virt.pback], paragraph 1, change:</p>
-
-<blockquote>
-  <p>&quot;<tt>traits::eq(*gptr(),traits::to_char_type( c))</tt>&quot;</p>
-</blockquote>
-
-<p>to </p>
-
-<blockquote>
-  <p>&quot;<tt>traits::eq(traits::to_char_type(c),gptr()[-1])</tt>&quot;
-  </p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Note deliberate reordering of arguments for clarity in addition to the correction of
-the argument value.</p>
-
-
-
-
-
-<hr>
-<h3><a name="33"></a>33. Codecvt&lt;&gt; mentions from_type</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#43">43</a></p>
-<p><b>Discussion:</b></p>
-<p>In the table defining the results from do_out and do_in, the specification for the
-result <i>error</i> says </p>
-
-<blockquote>
-  <p>encountered a from_type character it could not convert </p>
-</blockquote>
-
-<p>but from_type is not defined. This clearly is intended to be an externT for do_in, or
-an internT for do_out. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.1.4.2 [locale.codecvt.virtuals] paragraph 4, replace the definition
-in the table for the case of _error_ with </p>
-
-<blockquote>
-  <p>encountered a character in <tt>[from,from_end)</tt> that it could not convert. </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="34"></a>34. True/falsename() not in ctype&lt;&gt;</h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In paragraph 19, Effects:, members truename() and falsename are used from facet
-ctype&lt;charT&gt;, but it has no such members. Note that this is also a problem in
-22.2.2.1.2, addressed in (4). </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.2.2.2 [facet.num.put.virtuals], paragraph 19, in the Effects:
-clause for member put(...., bool), replace the initialization of the
-string_type value s as follows: </p>
-
-<blockquote>
-  <pre>const numpunct&amp; np = use_facet&lt;numpunct&lt;charT&gt; &gt;(loc);
-string_type s = val ? np.truename() : np.falsename(); </pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="35"></a>35. No manipulator unitbuf in synopsis</h3>
-<p><b>Section:</b> 27.5 [iostreams.base] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostreams.base">issues</a> in [iostreams.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 27.5.6.1 [fmtflags.manip], we have a definition for a manipulator
-named &quot;unitbuf&quot;. Unlike other manipulators, it's not listed
-in synopsis. Similarly for &quot;nounitbuf&quot;. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to the synopsis for &lt;ios&gt; in 27.5 [iostreams.base], after
-the entry for &quot;nouppercase&quot;, the prototypes: </p>
-
-<blockquote>
-  <pre>ios_base&amp; unitbuf(ios_base&amp; str);
-ios_base&amp; nounitbuf(ios_base&amp; str); </pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="36"></a>36. Iword &amp; pword storage lifetime omitted</h3>
-<p><b>Section:</b> 27.5.3.5 [ios.base.storage] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base.storage">issues</a> in [ios.base.storage].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In the definitions for ios_base::iword and pword, the lifetime of the storage is
-specified badly, so that an implementation which only keeps the last value stored appears
-to conform. In particular, it says: </p>
-
-<p>The reference returned may become invalid after another call to the object's iword
-member with a different index ... </p>
-
-<p>This is not idle speculation; at least one implementation was done this way. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add in 27.5.3.5 [ios.base.storage], in both paragraph 2 and also in
-paragraph 4, replace the sentence: </p>
-
-<blockquote>
-  <p>The reference returned may become invalid after another call to the object's iword
-  [pword] member with a different index, after a call to its copyfmt member, or when the
-  object is destroyed. </p>
-</blockquote>
-
-<p>with: </p>
-
-<blockquote>
-  <p>The reference returned is invalid after any other operations on the object. However,
-  the value of the storage referred to is retained, so that until the next call to copyfmt,
-  calling iword [pword] with the same index yields another reference to the same value. </p>
-</blockquote>
-
-<p>substituting &quot;iword&quot; or &quot;pword&quot; as appropriate. </p>
-
-
-
-
-
-<hr>
-<h3><a name="37"></a>37. Leftover &quot;global&quot; reference</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In the overview of locale semantics, paragraph 4, is the sentence </p>
-
-<blockquote>
-  <p>If Facet is not present in a locale (or, failing that, in the global locale), it throws
-  the standard exception bad_cast. </p>
-</blockquote>
-
-<p>This is not supported by the definition of use_facet&lt;&gt;, and represents semantics
-from an old draft. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.1 [locale], paragraph 4, delete the parenthesized
-expression </p>
-
-<blockquote>
-  <p>(or, failing that, in the global locale) </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="38"></a>38. Facet definition incomplete</h3>
-<p><b>Section:</b> 22.3.2 [locale.global.templates] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>It has been noticed by Esa Pulkkinen that the definition of
-&quot;facet&quot; is incomplete. In particular, a class derived from
-another facet, but which does not define a member <i>id</i>, cannot
-safely serve as the argument <i>F</i> to use_facet&lt;F&gt;(loc),
-because there is no guarantee that a reference to the facet instance
-stored in <i>loc</i> is safely convertible to <i>F</i>. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In the definition of std::use_facet&lt;&gt;(), replace the text in paragraph 1 which
-reads: </p>
-
-<blockquote>
-  <p>Get a reference to a facet of a locale. </p>
-</blockquote>
-
-<p>with: </p>
-
-<blockquote>
-  <p>Requires: <tt>Facet</tt> is a facet class whose definition
-  contains the public static member <tt>id</tt> as defined in 22.3.1.1.2 [locale.facet]. </p>
-</blockquote>
-
-<p><i>[
-Kona: strike as overspecification the text &quot;(not inherits)&quot;
-from the original resolution, which read &quot;... whose definition
-contains (not inherits) the public static member
-<tt>id</tt>...&quot;
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="39"></a>39. istreambuf_iterator&lt;&gt;::operator++(int) definition garbled</h3>
-<p><b>Section:</b> 24.6.3.4 [istreambuf.iterator::op++] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Following the definition of istreambuf_iterator&lt;&gt;::operator++(int) in paragraph
-3, the standard contains three lines of garbage text left over from a previous edit. </p>
-
-<blockquote>
-  <pre>istreambuf_iterator&lt;charT,traits&gt; tmp = *this;
-sbuf_-&gt;sbumpc();
-return(tmp); </pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 24.6.3.4 [istreambuf.iterator::op++], delete the three lines of code at the
-end of paragraph 3. </p>
-
-
-
-
-
-<hr>
-<h3><a name="40"></a>40. Meaningless normative paragraph in examples</h3>
-<p><b>Section:</b> 22.4.8 [facets.examples] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facets.examples">issues</a> in [facets.examples].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 3 of the locale examples is a description of part of an
-implementation technique that has lost its referent, and doesn't mean
-anything. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Delete 22.4.8 [facets.examples] paragraph 3 which begins &quot;This
-initialization/identification system depends...&quot;, or (at the
-editor's option) replace it with a place-holder to keep the paragraph
-numbering the same. </p>
-
-
-
-
-
-<hr>
-<h3><a name="41"></a>41. Ios_base needs clear(), exceptions()</h3>
-<p><b>Section:</b> 27.5.3 [ios.base] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base">issues</a> in [ios.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#157">157</a></p>
-<p><b>Discussion:</b></p>
-<p>The description of ios_base::iword() and pword() in 27.5.3.4 [ios.members.static], say that if they fail, they &quot;set badbit,
-which may throw an exception&quot;. However, ios_base offers no
-interface to set or to test badbit; those interfaces are defined in
-basic_ios&lt;&gt;. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the description in 27.5.3.5 [ios.base.storage] in
-paragraph 2, and also in paragraph 4, as follows. Replace</p>
-
-<blockquote>
-  <p>If the function fails it sets badbit, which may throw an exception.</p>
-</blockquote>
-
-<p>with</p>
-
-<blockquote>
-  <p>If the function fails, and <tt>*this</tt> is a base sub-object of
-  a <tt>basic_ios&lt;&gt;</tt> object or sub-object, the effect is
-  equivalent to calling <tt>basic_ios&lt;&gt;::setstate(badbit)</tt>
-  on the derived object (which may throw <tt>failure</tt>).</p>
-</blockquote>
-
-<p><i>[Kona: LWG reviewed wording; setstate(failbit) changed to
-setstate(badbit).]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="42"></a>42. String ctors specify wrong default allocator</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The basic_string&lt;&gt; copy constructor: </p>
-
-<pre>basic_string(const basic_string&amp; str, size_type pos = 0,
-             size_type n = npos, const Allocator&amp; a = Allocator()); </pre>
-
-<p>specifies an Allocator argument default value that is
-counter-intuitive. The natural choice for a the allocator to copy from
-is str.get_allocator(). Though this cannot be expressed in
-default-argument notation, overloading suffices. </p>
-
-<p>Alternatively, the other containers in Clause 23 (deque, list,
-vector) do not have this form of constructor, so it is inconsistent,
-and an evident source of confusion, for basic_string&lt;&gt; to have
-it, so it might better be removed. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p> In 21.4 [basic.string], replace the declaration of the copy
-constructor as follows: </p>
-
-<blockquote>
-  <pre>basic_string(const basic_string&amp; str);
-basic_string(const basic_string&amp; str, size_type pos, size_type n = npos,
-             const Allocator&amp; a = Allocator());</pre>
-</blockquote>
-
-<p>In 21.4.1 [string.require], replace the copy constructor declaration
-as above. Add to paragraph 5, Effects:</p>
-
-<blockquote>
-  <p>In the first form, the Allocator value used is copied from
-  <tt>str.get_allocator()</tt>.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes the constructor is actually broken, rather than
-just an unfortunate design choice.</p>
-
-<p>The LWG considered two other possible resolutions:</p>
-
-<p>A. In 21.4 [basic.string], replace the declaration of the copy
-constructor as follows:</p>
-
-<blockquote>
-  <pre>basic_string(const basic_string&amp; str, size_type pos = 0,
-             size_type n = npos);
-basic_string(const basic_string&amp; str, size_type pos,
-             size_type n, const Allocator&amp; a); </pre>
-</blockquote>
-
-<p>In 21.4.1 [string.require], replace the copy constructor declaration
-as above. Add to paragraph 5, Effects: </p>
-
-<blockquote>
-  <p>When no <tt>Allocator</tt> argument is provided, the string is constructed using the
-  value <tt>str.get_allocator()</tt>. </p>
-</blockquote>
-
-<p>B. In 21.4 [basic.string], and also in 21.4.1 [string.require], replace
-the declaration of the copy constructor as follows: </p>
-
-<blockquote>
-  <pre>basic_string(const basic_string&amp; str, size_type pos = 0,
-             size_type n = npos); </pre>
-</blockquote>
-
-<p>The proposed resolution reflects the original intent of the LWG. It
-was also noted by Pete Becker that this fix &quot;will cause
-a small amount of existing code to now work correctly.&quot;</p>
-
-<p><i>[
-Kona: issue editing snafu fixed - the proposed resolution now correctly
-reflects the LWG consensus.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="44"></a>44. Iostreams use operator== on int_type values</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Many of the specifications for iostreams specify that character
-values or their int_type equivalents are compared using operators ==
-or !=, though in other places traits::eq() or traits::eq_int_type is
-specified to be used throughout. This is an inconsistency; we should
-change uses of == and != to use the traits members instead. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[Pre-Kona: Dietmar supplied wording]</i></p>
-
-
-<p>List of changes to clause 27:</p>
-<ol>
-<li>
-   In lib.basic.ios.members paragraph 13 (postcondition clause for
-   'fill(cT)') change
-
-<blockquote><pre>
-     fillch == fill()
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(fillch, fill())
-</pre></blockquote>
-
-
-</li>
-<li>
-   In lib.istream.unformatted paragraph 7 (effects clause for
-   'get(cT,streamsize,cT)'), third bullet, change
-
-<blockquote><pre>
-     c == delim for the next available input character c
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(c, delim) for the next available input character c
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.istream.unformatted paragraph 12 (effects clause for
-   'get(basic_streambuf&lt;cT,Tr>&amp;,cT)'), third bullet, change
-
-<blockquote><pre>
-     c == delim for the next available input character c
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(c, delim) for the next available input character c
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.istream.unformatted paragraph 17 (effects clause for
-   'getline(cT,streamsize,cT)'), second bullet, change
-
-<blockquote><pre>
-     c == delim for the next available input character c
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(c, delim) for the next available input character c
-  </pre></blockquote>
-
-</li>
-<li>
-   In lib.istream.unformatted paragraph 24 (effects clause for
-   'ignore(int,int_type)'), second bullet, change
-
-<blockquote><pre>
-     c == delim for the next available input character c
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq_int_type(c, delim) for the next available input
-     character c
-</pre></blockquote>
-  
-</li>
-<li>
-   In lib.istream.unformatted paragraph 25 (notes clause for
-   'ignore(int,int_type)'), second bullet, change
-
-<blockquote><pre>
-     The last condition will never occur if delim == traits::eof()
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     The last condition will never occur if
-     traits::eq_int_type(delim, traits::eof()).
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.istream.sentry paragraph 6 (example implementation for the
-   sentry constructor) change
-
-<blockquote><pre>
-     while ((c = is.rdbuf()->snextc()) != traits::eof()) {
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     while (!traits::eq_int_type(c = is.rdbuf()->snextc(), traits::eof())) {
-</pre></blockquote>
-
-</li>
-</ol>
-
-<p>List of changes to Chapter 21:</p>
-
-<ol>
-<li>
-   In lib.string::find paragraph 1 (effects clause for find()),
-   second bullet, change
-
-<blockquote><pre>
-     at(xpos+I) == str.at(I) for all elements ...
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(at(xpos+I), str.at(I)) for all elements ...
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.string::rfind paragraph 1 (effects clause for rfind()),
-   second bullet, change
-
-<blockquote><pre>
-     at(xpos+I) == str.at(I) for all elements ...
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(at(xpos+I), str.at(I)) for all elements ...
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.string::find.first.of paragraph 1 (effects clause for
-   find_first_of()), second bullet, change
-
-<blockquote><pre>
-     at(xpos+I) == str.at(I) for all elements ...
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(at(xpos+I), str.at(I)) for all elements ...
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.string::find.last.of paragraph 1 (effects clause for
-   find_last_of()), second bullet, change
-
-<blockquote><pre>
-     at(xpos+I) == str.at(I) for all elements ...
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(at(xpos+I), str.at(I)) for all elements ...
-</pre></blockquote>
-
-</li>
-<li>
-   In lib.string::find.first.not.of paragraph 1 (effects clause for
-   find_first_not_of()), second bullet, change
-
-<blockquote><pre>
-     at(xpos+I) == str.at(I) for all elements ...
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(at(xpos+I), str.at(I)) for all elements ...
-</pre></blockquote>
-</li>
-
-<li>
-   In lib.string::find.last.not.of paragraph 1 (effects clause for
-   find_last_not_of()), second bullet, change
-
-<blockquote><pre>
-     at(xpos+I) == str.at(I) for all elements ...
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(at(xpos+I), str.at(I)) for all elements ...
-</pre></blockquote>
-</li>
-
-<li>
-   In lib.string.ios paragraph 5 (effects clause for getline()),
-   second bullet, change
-
-<blockquote><pre>
-     c == delim for the next available input character c 
-</pre></blockquote>
-
-   to
-
-<blockquote><pre>
-     traits::eq(c, delim) for the next available input character c 
-</pre></blockquote>
-</li>
-
-</ol>
-
-<p>Notes:</p>
-<ul>
-<li>
-  Fixing this issue highlights another sloppyness in
-  lib.istream.unformatted paragraph 24: this clause mentions a "character"
-  which is then compared to an 'int_type' (see item 5. in the list
-  below). It is not clear whether this requires explicit words and
-  if so what these words are supposed to be. A similar issue exists,
-  BTW, for operator*() of istreambuf_iterator which returns the result
-  of sgetc() as a character type (see lib.istreambuf.iterator::op*
-  paragraph 1), and for operator++() of istreambuf_iterator which
-  passes the result of sbumpc() to a constructor taking a char_type
-  (see lib.istreambuf.iterator::operator++ paragraph 3). Similarily, the
-  assignment operator ostreambuf_iterator passes a char_type to a function
-  taking an int_type (see lib.ostreambuf.iter.ops paragraph 1).
-</li>
-<li>
-  It is inconsistent to use comparisons using the traits functions in
-  Chapter 27 while not using them in Chapter 21, especially as some
-  of the inconsistent uses actually involve streams (eg. getline() on
-  streams). To avoid leaving this issue open still longer due to this
-  inconsistency (it is open since 1998), a list of changes to Chapter
-  21 is below.
-</li>
-<li>
-  In Chapter 24 there are several places with statements like "the end
-  of stream is reached (streambuf_type::sgetc() returns traits::eof())"
-  (lib.istreambuf.iterator paragraph 1, lib.ostreambuf.iter.ops
-  paragraph 5). It is unclear whether these should be clarified to use
-  traits::eq_int_type() for detecting traits::eof().
-</li>
-</ul>
-
-
-
-
-
-
-<hr>
-<h3><a name="46"></a>46. Minor Annex D errors</h3>
-<p><b>Section:</b> D.7 [depr.str.strstreams] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Brendan Kehoe <b>Opened:</b> 1998-06-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p><p>See lib-6522 and edit-814.</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>Change D.7.1 [depr.strstreambuf] (since streambuf is a typedef of
-basic_streambuf&lt;char&gt;) from:</p>
-
-<pre>         virtual streambuf&lt;char&gt;* setbuf(char* s, streamsize n);</pre>
-
-<p>to:</p>
-
-<pre>         virtual streambuf* setbuf(char* s, streamsize n);</pre>
-
-<p>In D.7.4 [depr.strstream] insert the semicolon now missing after
-int_type:</p>
-
-<pre>     namespace std {
-       class strstream
-         : public basic_iostream&lt;char&gt; {
-       public:
-         // Types
-         typedef char                                char_type;
-         typedef typename char_traits&lt;char&gt;::int_type int_type
-         typedef typename char_traits&lt;char&gt;::pos_type pos_type;</pre>
-
-
-
-
-
-<hr>
-<h3><a name="47"></a>47. Imbue() and getloc() Returns clauses swapped</h3>
-<p><b>Section:</b> 27.5.3.3 [ios.base.locales] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base.locales">issues</a> in [ios.base.locales].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 27.4.2.3 specifies how imbue() and getloc() work. That
-section has two RETURNS clauses, and they make no sense as
-stated. They make perfect sense, though, if you swap them. Am I
-correct in thinking that paragraphs 2 and 4 just got mixed up by
-accident?</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.5.3.3 [ios.base.locales] swap paragraphs 2 and 4.</p>
-
-
-
-
-
-<hr>
-<h3><a name="48"></a>48. Use of non-existent exception constructor</h3>
-<p><b>Section:</b> 27.5.3.1.1 [ios::failure] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios::failure">issues</a> in [ios::failure].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.4.2.1.1, paragraph 2, says that class failure initializes the
-base class, exception, with exception(msg). Class exception (see
-18.6.1) has no such constructor.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace 27.5.3.1.1 [ios::failure], paragraph 2, with</p>
-
-<blockquote>
-  <p>EFFECTS: Constructs an object of class <tt>failure</tt>.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="49"></a>49. Underspecification of ios_base::sync_with_stdio</h3>
-<p><b>Section:</b> 27.5.3.4 [ios.members.static] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Two problems</p>
-
-<p>(1) 27.4.2.4 doesn't say what ios_base::sync_with_stdio(f)
-returns. Does it return f, or does it return the previous
-synchronization state? My guess is the latter, but the standard
-doesn't say so.</p>
-
-<p>(2) 27.4.2.4 doesn't say what it means for streams to be
-synchronized with stdio.  Again, of course, I can make some
-guesses. (And I'm unhappy about the performance implications of those
-guesses, but that's another matter.)</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the following sentence in 27.5.3.4 [ios.members.static]
-returns clause from:</p>
-
-<blockquote>
-  <p><tt>true</tt> if the standard iostream objects (27.3) are
-  synchronized and otherwise returns <tt>false</tt>.</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-  <p><tt>true</tt> if the previous state of the standard iostream
-  objects (27.3) was synchronized and otherwise returns
-  <tt>false</tt>.</p>
-</blockquote>
-
-<p>Add the following immediately after 27.5.3.4 [ios.members.static],
-paragraph 2:</p>
-
-<blockquote>
-<p>When a standard iostream object str is <i>synchronized</i> with a
-standard stdio stream f, the effect of inserting a character c by</p>
-<pre>
-  fputc(f, c);
-</pre>
-
-<p>is the same as the effect of</p>
-<pre>
-  str.rdbuf()-&gt;sputc(c);
-</pre>
-
-<p>for any sequence of characters; the effect of extracting a
-character c by</p>
-<pre>
-  c = fgetc(f);
-</pre>
-
-<p>is the same as the effect of:</p>
-<pre>
-  c = str.rdbuf()-&gt;sbumpc(c);
-</pre>
-
-<p>for any sequences of characters; and the effect of pushing
-back a character c by</p>
-<pre>
-  ungetc(c, f);
-</pre>
-
-<p>is the same as the effect of</p>
-<pre>
-  str.rdbuf()-&gt;sputbackc(c);
-</pre>
-
-<p>for any sequence of characters.  [<i>Footnote</i>: This implies
-that operations on a standard iostream object can be mixed arbitrarily
-with operations on the corresponding stdio stream.  In practical
-terms, synchronization usually means that a standard iostream object
-and a standard stdio object share a buffer. <i>--End Footnote</i>]</p>
-</blockquote>
-
-<p><i>[pre-Copenhagen: PJP and Matt contributed the definition
-of "synchronization"]</i></p>
-
-
-<p><i>[post-Copenhagen: proposed resolution was revised slightly:
-text was added in the non-normative footnote to say that operations
-on the two streams can be mixed arbitrarily.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="50"></a>50. Copy constructor and assignment operator of ios_base</h3>
-<p><b>Section:</b> 27.5.3 [ios.base] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base">issues</a> in [ios.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>As written, ios_base has a copy constructor and an assignment
-operator. (Nothing in the standard says it doesn't have one, and all
-classes have copy constructors and assignment operators unless you
-take specific steps to avoid them.) However, nothing in 27.4.2 says
-what the copy constructor and assignment operator do. </p>
-
-<p>My guess is that this was an oversight, that ios_base is, like
-basic_ios, not supposed to have a copy constructor or an assignment
-operator.</p>
-
-<p>
-Jerry Schwarz comments: Yes, its an oversight, but in the opposite
-sense to what you're suggesting. At one point there was a definite
-intention that you could copy ios_base. It's an easy way to save the
-entire state of a stream for future use. As you note, to carry out
-that intention would have required a explicit description of the
-semantics (e.g. what happens to the iarray and parray stuff).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.5.3 [ios.base], class ios_base, specify the copy
-constructor and operator= members as being private.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes the difficulty of specifying correct semantics
-outweighs any benefit of allowing ios_base objects to be copyable.</p>
-
-
-
-
-
-<hr>
-<h3><a name="51"></a>51. Requirement to not invalidate iterators missing</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> David Vandevoorde <b>Opened:</b> 1998-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The std::sort algorithm can in general only sort a given sequence
-by moving around values. The list&lt;&gt;::sort() member on the other
-hand could move around values or just update internal pointers. Either
-method can leave iterators into the list&lt;&gt; dereferencable, but
-they would point to different things. </p>
-
-<p>Does the FDIS mandate anywhere which method should be used for
-list&lt;&gt;::sort()?</p>
-
-<p>Matt Austern comments:</p>
-
-<p>I think you've found an omission in the standard. </p>
-
-<p>The library working group discussed this point, and there was
-supposed to be a general requirement saying that list, set, map,
-multiset, and multimap may not invalidate iterators, or change the
-values that iterators point to, except when an operation does it
-explicitly. So, for example, insert() doesn't invalidate any iterators
-and erase() and remove() only invalidate iterators pointing to the
-elements that are being erased. </p>
-
-<p>I looked for that general requirement in the FDIS, and, while I
-found a limited form of it for the sorted associative containers, I
-didn't find it for list. It looks like it just got omitted. </p>
-
-<p>The intention, though, is that list&lt;&gt;::sort does not
-invalidate any iterators and does not change the values that any
-iterator points to. There would be no reason to have the member
-function otherwise.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a new paragraph at the end of 23.1:</p>
-
-<blockquote>
-  <p>Unless otherwise specified (either explicitly or by defining a function in terms of
-  other functions), invoking a container member function or passing a container as an
-  argument to a library function shall not invalidate iterators to, or change the values of,
-  objects within that container. </p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>This was US issue CD2-23-011; it was accepted in London but the
-change was not made due to an editing oversight. The wording in the
-proposed resolution below is somewhat updated from CD2-23-011,
-particularly the addition of the phrase &quot;or change the values
-of&quot;</p>
-
-
-
-
-
-<hr>
-<h3><a name="52"></a>52. Small I/O problems</h3>
-<p><b>Section:</b> 27.5.4.2 [fpos.operations] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fpos.operations">issues</a> in [fpos.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>First, 27.5.5.2 [basic.ios.cons], table 89. This is pretty obvious:
-it should be titled &quot;basic_ios&lt;&gt;() effects&quot;, not
-&quot;ios_base() effects&quot;. </p>
-
-<p>[The second item is a duplicate; see issue <a href="lwg-closed.html#6">6</a> for
-resolution.]</p>
-
-<p>Second, 27.5.4.2 [fpos.operations] table 88 . There are a couple
-different things wrong with it, some of which I've already discussed
-with Jerry, but the most obvious mechanical sort of error is that it
-uses expressions like P(i) and p(i), without ever defining what sort
-of thing &quot;i&quot; is.
-</p>
-
-<p>(The other problem is that it requires support for streampos
-arithmetic. This is impossible on some systems, i.e. ones where file
-position is a complicated structure rather than just a number. Jerry
-tells me that the intention was to require syntactic support for
-streampos arithmetic, but that it wasn't actually supposed to do
-anything meaningful except on platforms, like Unix, where genuine
-arithmetic is possible.) </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.5.5.2 [basic.ios.cons] table 89 title from
-&quot;ios_base() effects&quot; to &quot;basic_ios&lt;&gt;()
-effects&quot;. </p>
-
-
-
-
-
-<hr>
-<h3><a name="53"></a>53. Basic_ios destructor unspecified</h3>
-<p><b>Section:</b> 27.5.5.2 [basic.ios.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.cons">issues</a> in [basic.ios.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>There's nothing in 27.4.4 saying what basic_ios's destructor does.
-The important question is whether basic_ios::~basic_ios() destroys
-rdbuf().</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add after 27.5.5.2 [basic.ios.cons] paragraph 2:</p>
-
-<blockquote>
-  <p><tt>virtual ~basic_ios();</tt></p>
-  <p><b>Notes</b>: The destructor does not destroy <tt>rdbuf()</tt>.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p> 
-<p>The LWG reviewed the additional question of whether or not
-<tt>rdbuf(0)</tt> may set <tt>badbit</tt>.  The answer is
-clearly yes; it may be set via <tt>clear()</tt>.  See 27.5.5.3 [basic.ios.members], paragraph 6.  This issue was reviewed at length
-by the LWG, which removed from the original proposed resolution a
-footnote which incorrectly said &quot;<tt>rdbuf(0)</tt> does not set
-<tt>badbit</tt>&quot;.</p>
-
-
-
-
-
-<hr>
-<h3><a name="54"></a>54. Basic_streambuf's destructor</h3>
-<p><b>Section:</b> 27.6.3.1 [streambuf.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf.cons">issues</a> in [streambuf.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The class synopsis for basic_streambuf shows a (virtual)
-destructor, but the standard doesn't say what that destructor does. My
-assumption is that it does nothing, but the standard should say so
-explicitly. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add after 27.6.3.1 [streambuf.cons] paragraph 2:</p>
-
-<blockquote>
-  <p><tt>virtual&nbsp; ~basic_streambuf();</tt></p>
-  <p><b>Effects</b>: None.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="55"></a>55. Invalid stream position is undefined</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Several member functions in clause 27 are defined in certain
-circumstances to return an &quot;invalid stream position&quot;, a term
-that is defined nowhere in the standard. Two places (27.5.2.4.2,
-paragraph 4, and 27.8.1.4, paragraph 15) contain a cross-reference to
-a definition in _lib.iostreams.definitions_, a nonexistent
-section. </p>
-
-<p>I suspect that the invalid stream position is just supposed to be
-pos_type(-1).  Probably best to say explicitly in (for example)
-27.5.2.4.2 that the return value is pos_type(-1), rather than to use
-the term &quot;invalid stream position&quot;, define that term
-somewhere, and then put in a cross-reference. </p>
-
-<p>The phrase &quot;invalid stream position&quot; appears ten times in
-the C++ Standard.  In seven places it refers to a return value, and it
-should be changed. In three places it refers to an argument, and it
-should not be changed. Here are the three places where &quot;invalid
-stream position&quot; should not be changed:</p>
-
-<blockquote>
-  <p>27.8.2.4 [stringbuf.virtuals], paragraph 14<br/>
-  27.9.1.5 [filebuf.virtuals], paragraph 14<br/>
-  D.7.1.3 [depr.strstreambuf.virtuals], paragraph 17
-  </p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.6.3.4.2 [streambuf.virt.buffer], paragraph 4, change &quot;Returns an
-object of class pos_type that stores an invalid stream position
-(_lib.iostreams.definitions_)&quot; to &quot;Returns
-<tt>pos_type(off_type(-1))</tt>&quot;.
-</p>
-
-<p>In 27.6.3.4.2 [streambuf.virt.buffer], paragraph 6, change &quot;Returns
-an object of class pos_type that stores an invalid stream
-position&quot; to &quot;Returns <tt>pos_type(off_type(-1))</tt>&quot;.</p>
-
-<p>In 27.8.2.4 [stringbuf.virtuals], paragraph 13, change &quot;the object
-stores an invalid stream position&quot; to &quot;the return value is
-<tt>pos_type(off_type(-1))</tt>&quot;. </p>
-
-<p>In 27.9.1.5 [filebuf.virtuals], paragraph 13, change &quot;returns an
-invalid stream position (27.4.3)&quot; to &quot;returns
-<tt>pos_type(off_type(-1))</tt>&quot; </p>
-
-<p>In 27.9.1.5 [filebuf.virtuals], paragraph 15, change &quot;Otherwise
-returns an invalid stream position (_lib.iostreams.definitions_)&quot;
-to &quot;Otherwise returns <tt>pos_type(off_type(-1))</tt>&quot;
-</p>
-
-<p>In D.7.1.3 [depr.strstreambuf.virtuals], paragraph 15, change &quot;the object
-stores an invalid stream position&quot; to &quot;the return value is
-<tt>pos_type(off_type(-1))</tt>&quot; </p>
-
-<p>In D.7.1.3 [depr.strstreambuf.virtuals], paragraph 18, change &quot;the object
-stores an invalid stream position&quot; to &quot;the return value is
-<tt>pos_type(off_type(-1))</tt>&quot;</p>
-
-
-
-
-
-<hr>
-<h3><a name="56"></a>56. Showmanyc's return type</h3>
-<p><b>Section:</b> 27.6.3 [streambuf] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-06-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf">issues</a> in [streambuf].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The class summary for basic_streambuf&lt;&gt;, in 27.5.2, says that
-showmanyc has return type int. However, 27.5.2.4.3 says that its
-return type is streamsize. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change <tt>showmanyc</tt>'s return type in the
-27.6.3 [streambuf] class summary to <tt>streamsize</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="57"></a>57. Mistake in char_traits</h3>
-<p><b>Section:</b> 21.2.3.4 [char.traits.specializations.wchar.t] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>21.1.3.2, paragraph 3, says &quot;The types streampos and
-wstreampos may be different if the implementation supports no shift
-encoding in narrow-oriented iostreams but supports one or more shift
-encodings in wide-oriented streams&quot;. </p>
-
-<p>That's wrong: the two are the same type. The &lt;iosfwd&gt; summary
-in 27.2 says that streampos and wstreampos are, respectively, synonyms
-for fpos&lt;char_traits&lt;char&gt;::state_type&gt; and
-fpos&lt;char_traits&lt;wchar_t&gt;::state_type&gt;, and, flipping back
-to clause 21, we see in 21.1.3.1 and 21.1.3.2 that
-char_traits&lt;char&gt;::state_type and
-char_traits&lt;wchar_t&gt;::state_type must both be mbstate_t. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove the sentence in 21.2.3.4 [char.traits.specializations.wchar.t] paragraph 3 which
-begins &quot;The types streampos and wstreampos may be
-different...&quot; . </p>
-
-
-
-
-
-<hr>
-<h3><a name="59"></a>59. Ambiguity in specification of gbump</h3>
-<p><b>Section:</b> 27.6.3.3.2 [streambuf.get.area] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.5.2.3.1 says that basic_streambuf::gbump() &quot;Advances the
-next pointer for the input sequence by n.&quot; </p>
-
-<p>The straightforward interpretation is that it is just gptr() +=
-n. An alternative interpretation, though, is that it behaves as if it
-calls sbumpc n times. (The issue, of course, is whether it might ever
-call underflow.) There is a similar ambiguity in the case of
-pbump. </p>
-
-<p>(The &quot;classic&quot; AT&amp;T implementation used the
-former interpretation.)</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.6.3.3.2 [streambuf.get.area] paragraph 4 gbump effects from:</p>
-
-<blockquote>
-  <p>Effects: Advances the next pointer for the input sequence by n.</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-  <p>Effects: Adds <tt>n</tt> to the next pointer for the input sequence.</p>
-</blockquote>
-
-<p>Make the same change to 27.6.3.3.3 [streambuf.put.area] paragraph 4 pbump
-effects.</p>
-
-
-
-
-
-<hr>
-<h3><a name="60"></a>60. What is a formatted input function?</h3>
-<p><b>Section:</b> 27.7.2.2.1 [istream.formatted.reqmts] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.reqmts">issues</a> in [istream.formatted.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#162">162</a>, <a href="lwg-closed.html#163">163</a>, <a href="lwg-closed.html#166">166</a></p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 1 of 27.6.1.2.1 contains general requirements for all
-formatted input functions. Some of the functions defined in section
-27.6.1.2 explicitly say that those requirements apply (&quot;Behaves
-like a formatted input member (as described in 27.6.1.2.1)&quot;), but
-others don't. The question: is 27.6.1.2.1 supposed to apply to
-everything in 27.6.1.2, or only to those member functions that
-explicitly say &quot;behaves like a formatted input member&quot;? Or
-to put it differently: are we to assume that everything that appears
-in a section called &quot;Formatted input functions&quot; really is a
-formatted input function? I assume that 27.6.1.2.1 is intended to
-apply to the arithmetic extractors (27.6.1.2.2), but I assume that it
-is not intended to apply to extractors like </p>
-
-<pre>    basic_istream&amp; operator&gt;&gt;(basic_istream&amp; (*pf)(basic_istream&amp;));</pre>
-
-<p>and </p>
-
-<pre>    basic_istream&amp; operator&gt;&gt;(basic_streammbuf*);</pre>
-
-<p>There is a similar ambiguity for unformatted input, formatted output, and unformatted
-output. </p>
-
-<p>Comments from Judy Ward: It seems like the problem is that the
-basic_istream and basic_ostream operator &lt;&lt;()'s that are used
-for the manipulators and streambuf* are in the wrong section and
-should have their own separate section or be modified to make it clear
-that the &quot;Common requirements&quot; listed in section 27.6.1.2.1
-(for basic_istream) and section 27.6.2.5.1 (for basic_ostream) do not
-apply to them. </p>
-
-<p>Additional comments from Dietmar K&uuml;hl: It appears to be somewhat
-nonsensical to consider the functions defined in 27.7.2.2.3 [istream::extractors] paragraphs 1 to 5 to be &quot;Formatted input
-function&quot; but since these functions are defined in a section
-labeled &quot;Formatted input functions&quot; it is unclear to me
-whether these operators are considered formatted input functions which
-have to conform to the &quot;common requirements&quot; from 27.7.2.2.1 [istream.formatted.reqmts]: If this is the case, all manipulators, not
-just <tt>ws</tt>, would skip whitespace unless <tt>noskipws</tt> is
-set (... but setting <tt>noskipws</tt> using the manipulator syntax
-would also skip whitespace :-)</p> <p>It is not clear which functions
-are to be considered unformatted input functions. As written, it seems
-that all functions in 27.7.2.3 [istream.unformatted] are unformatted input
-functions. However, it does not really make much sense to construct a
-sentry object for <tt>gcount()</tt>, <tt>sync()</tt>, ... Also it is
-unclear what happens to the <tt>gcount()</tt> if
-eg. <tt>gcount()</tt>, <tt>putback()</tt>, <tt>unget()</tt>, or
-<tt>sync()</tt> is called: These functions don't extract characters,
-some of them even &quot;unextract&quot; a character. Should this still
-be reflected in <tt>gcount()</tt>? Of course, it could be read as if
-after a call to <tt>gcount()</tt> <tt>gcount()</tt> return <tt>0</tt>
-(the last unformatted input function, <tt>gcount()</tt>, didn't
-extract any character) and after a call to <tt>putback()</tt>
-<tt>gcount()</tt> returns <tt>-1</tt> (the last unformatted input
-function <tt>putback()</tt> did &quot;extract&quot; back into the
-stream). Correspondingly for <tt>unget()</tt>. Is this what is
-intended?  If so, this should be clarified. Otherwise, a corresponding
-clarification should be used.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.6.1.2.2 [lib.istream.formatted.arithmetic], paragraph 1.
-Change the beginning of the second sentence from &quot;The conversion
-occurs&quot; to &quot;These extractors behave as formatted input functions (as
-described in 27.6.1.2.1).  After a sentry object is constructed,
-the conversion occurs&quot;
-</p>
-
-<p>
-In 27.6.1.2.3, [lib.istream::extractors], before paragraph 1.
-Add an effects clause.  &quot;Effects: None.  This extractor does
-not behave as a formatted input function (as described in
-27.6.1.2.1).
-</p>
-
-<p>
-In 27.6.1.2.3, [lib.istream::extractors], paragraph 2.  Change the
-effects clause to &quot;Effects: Calls pf(*this).  This extractor does not
-behave as a formatted input function (as described in 27.6.1.2.1).
-</p>
-
-<p>
-In 27.6.1.2.3, [lib.istream::extractors], paragraph 4.  Change the
-effects clause to &quot;Effects: Calls pf(*this).  This extractor does not
-behave as a formatted input function (as described in 27.6.1.2.1).
-</p>
-
-<p>
-In 27.6.1.2.3, [lib.istream::extractors], paragraph 12.  Change the
-first two sentences from &quot;If sb is null, calls setstate(failbit),
-which may throw ios_base::failure (27.4.4.3).  Extracts characters
-from *this...&quot; to &quot;Behaves as a formatted input function (as described
-in 27.6.1.2.1).  If sb is null, calls setstate(failbit), which may
-throw ios_base::failure (27.4.4.3).  After a sentry object is
-constructed, extracts characters from *this...&quot;.
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], before paragraph 2.  Add an
-effects clause.  &quot;Effects: none. This member function does not behave
-as an unformatted input function (as described in 27.6.1.3, paragraph 1).&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 3.  Change the
-beginning of the first sentence of the effects clause from &quot;Extracts a
-character&quot; to &quot;Behaves as an unformatted input function (as described
-in 27.6.1.3, paragraph 1).  After constructing a sentry object, extracts a
-character&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 5.  Change the
-beginning of the first sentence of the effects clause from &quot;Extracts a
-character&quot; to &quot;Behaves as an unformatted input function (as described
-in 27.6.1.3, paragraph 1).  After constructing a sentry object, extracts a
-character&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 7.  Change the
-beginning of the first sentence of the effects clause from &quot;Extracts
-characters&quot; to &quot;Behaves as an unformatted input function (as described
-in 27.6.1.3, paragraph 1).  After constructing a sentry object, extracts
-characters&quot;
-</p>
-
-<p>
-[No change needed in paragraph 10, because it refers to paragraph 7.]
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 12.  Change the
-beginning of the first sentence of the effects clause from &quot;Extracts
-characters&quot; to &quot;Behaves as an unformatted input function (as described
-in 27.6.1.3, paragraph 1).  After constructing a sentry object, extracts
-characters&quot;
-</p>
-
-<p>
-[No change needed in paragraph 15.]
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 17.  Change the
-beginning of the first sentence of the effects clause from &quot;Extracts
-characters&quot; to &quot;Behaves as an unformatted input function (as described
-in 27.6.1.3, paragraph 1).  After constructing a sentry object, extracts
-characters&quot;
-</p>
-
-<p>
-[No change needed in paragraph 23.]
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 24.  Change the
-beginning of the first sentence of the effects clause from &quot;Extracts
-characters&quot; to &quot;Behaves as an unformatted input function (as described
-in 27.6.1.3, paragraph 1).  After constructing a sentry object, extracts
-characters&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], before paragraph 27.  Add an
-Effects clause: &quot;Effects: Behaves as an unformatted input function (as
-described in 27.6.1.3, paragraph 1).  After constructing a sentry
-object, reads but does not extract the current input character.&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 28.  Change the
-first sentence of the Effects clause from &quot;If !good() calls&quot; to
-Behaves as an unformatted input function (as described in 27.6.1.3,
-paragraph 1).  After constructing a sentry object, if !good() calls&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 30.  Change the
-first sentence of the Effects clause from &quot;If !good() calls&quot; to
-&quot;Behaves as an unformatted input function (as described in 27.6.1.3,
-paragraph 1).  After constructing a sentry object, if !good() calls&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 32.  Change the
-first sentence of the Effects clause from &quot;If !good() calls...&quot; to
-&quot;Behaves as an unformatted input function (as described in 27.6.1.3,
-paragraph 1).  After constructing a sentry object, if !good()
-calls...&quot;  Add a new sentence to the end of the Effects clause:
-&quot;[Note: this function extracts no characters, so the value returned
-by the next call to gcount() is 0.]&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 34.  Change the
-first sentence of the Effects clause from &quot;If !good() calls&quot; to
-&quot;Behaves as an unformatted input function (as described in 27.6.1.3,
-paragraph 1).  After constructing a sentry object, if !good() calls&quot;.
-Add a new sentence to the end of the Effects clause: &quot;[Note: this
-function extracts no characters, so the value returned by the next
-call to gcount() is 0.]&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 36.  Change the
-first sentence of the Effects clause from &quot;If !rdbuf() is&quot; to &quot;Behaves
-as an unformatted input function (as described in 27.6.1.3, paragraph
-1), except that it does not count the number of characters extracted
-and does not affect the value returned by subsequent calls to
-gcount().  After constructing a sentry object, if rdbuf() is&quot;
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], before paragraph 37.  Add an
-Effects clause: &quot;Effects: Behaves as an unformatted input function (as
-described in 27.6.1.3, paragraph 1), except that it does not count the
-number of characters extracted and does not affect the value returned
-by subsequent calls to gcount().&quot;  Change the first sentence of
-paragraph 37 from &quot;if fail()&quot; to &quot;after constructing a sentry object,
-if fail()&quot;.
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 38.  Change the
-first sentence of the Effects clause from &quot;If fail()&quot; to &quot;Behaves
-as an unformatted input function (as described in 27.6.1.3, paragraph
-1), except that it does not count the number of characters extracted
-and does not affect the value returned by subsequent calls to
-gcount().  After constructing a sentry object, if fail()
-</p>
-
-<p>
-In 27.6.1.3, [lib.istream.unformatted], paragraph 40.  Change the
-first sentence of the Effects clause from &quot;If fail()&quot; to &quot;Behaves
-as an unformatted input function (as described in 27.6.1.3, paragraph
-1), except that it does not count the number of characters extracted
-and does not affect the value returned by subsequent calls to
-gcount().  After constructing a sentry object, if fail()
-</p>
-
-<p>
-In 27.6.2.5.2 [lib.ostream.inserters.arithmetic], paragraph 1.  Change
-the beginning of the third sentence from &quot;The formatting conversion&quot;
-to &quot;These extractors behave as formatted output functions (as
-described in 27.6.2.5.1).  After the sentry object is constructed, the
-conversion occurs&quot;.
-</p>
-
-<p>
-In 27.6.2.5.3 [lib.ostream.inserters], before paragraph 1.  Add an
-effects clause: &quot;Effects: None. Does not behave as a formatted output
-function (as described in 27.6.2.5.1).&quot;.
-</p>
-
-<p>
-In 27.6.2.5.3 [lib.ostream.inserters], paragraph 2.  Change the
-effects clause to &quot;Effects: calls pf(*this).  This extractor does not
-behave as a formatted output function (as described in 27.6.2.5.1).&quot;.
-</p>
-
-<p>
-In 27.6.2.5.3 [lib.ostream.inserters], paragraph 4.  Change the
-effects clause to &quot;Effects: calls pf(*this).  This extractor does not
-behave as a formatted output function (as described in 27.6.2.5.1).&quot;.
-</p>
-
-<p>
-In 27.6.2.5.3 [lib.ostream.inserters], paragraph 6.  Change the first
-sentence from &quot;If sb&quot; to &quot;Behaves as a formatted output function (as
-described in 27.6.2.5.1).  After the sentry object is constructed, if
-sb&quot;.
-</p>
-
-<p>
-In 27.6.2.6 [lib.ostream.unformatted], paragraph 2.  Change the first
-sentence from &quot;Inserts the character&quot; to &quot;Behaves as an unformatted
-output function (as described in 27.6.2.6, paragraph 1).  After
-constructing a sentry object, inserts the character&quot;.
-</p>
-
-<p>
-In 27.6.2.6 [lib.ostream.unformatted], paragraph 5.  Change the first
-sentence from &quot;Obtains characters&quot; to &quot;Behaves as an unformatted
-output function (as described in 27.6.2.6, paragraph 1).  After
-constructing a sentry object, obtains characters&quot;.
-</p>
-
-<p>
-In 27.6.2.6 [lib.ostream.unformatted], paragraph 7.  Add a new
-sentence at the end of the paragraph: &quot;Does not behave as an
-unformatted output function (as described in 27.6.2.6, paragraph 1).&quot;
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>See J16/99-0043==WG21/N1219, Proposed Resolution to Library Issue 60,
-by Judy Ward and Matt Austern.  This proposed resolution is section
-VI of that paper.</p>
-
-
-
-
-
-<hr>
-<h3><a name="61"></a>61. Ambiguity in iostreams exception policy</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The introduction to the section on unformatted input (27.6.1.3)
-says that every unformatted input function catches all exceptions that
-were thrown during input, sets badbit, and then conditionally rethrows
-the exception. That seems clear enough. Several of the specific
-functions, however, such as get() and read(), are documented in some
-circumstances as setting eofbit and/or failbit. (The standard notes,
-correctly, that setting eofbit or failbit can sometimes result in an
-exception being thrown.) The question: if one of these functions
-throws an exception triggered by setting failbit, is this an exception
-&quot;thrown during input&quot; and hence covered by 27.6.1.3, or does
-27.6.1.3 only refer to a limited class of exceptions? Just to make
-this concrete, suppose you have the following snippet. </p>
-
-<pre>  
-  char buffer[N];
-  istream is;
-  ...
-  is.exceptions(istream::failbit); // Throw on failbit but not on badbit.
-  is.read(buffer, N);</pre>
-
-<p>Now suppose we reach EOF before we've read N characters. What
-iostate bits can we expect to be set, and what exception (if any) will
-be thrown? </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.6.1.3, paragraph 1, after the sentence that begins
-&quot;If an exception is thrown...&quot;, add the following
-parenthetical comment: &quot;(Exceptions thrown from 
-<tt>basic_ios&lt;&gt;::clear()</tt> are not caught or rethrown.)&quot;
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG looked to two alternative wordings, and choose the proposed
-resolution as better standardese.</p>
-
-
-
-
-
-<hr>
-<h3><a name="62"></a>62. <tt>Sync</tt>'s return value</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The Effects clause for sync() (27.6.1.3, paragraph 36) says that it
-&quot;calls rdbuf()-&gt;pubsync() and, if that function returns -1
-... returns traits::eof().&quot; </p>
-
-<p>That looks suspicious, because traits::eof() is of type
-traits::int_type while the return type of sync() is int. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.2.3 [istream.unformatted], paragraph 36, change &quot;returns
-<tt>traits::eof()</tt>&quot; to &quot;returns <tt>-1</tt>&quot;.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="63"></a>63. Exception-handling policy for unformatted output</h3>
-<p><b>Section:</b> 27.7.3.7 [ostream.unformatted] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.unformatted">issues</a> in [ostream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Clause 27 details an exception-handling policy for formatted input,
-unformatted input, and formatted output. It says nothing for
-unformatted output (27.6.2.6). 27.6.2.6 should either include the same
-kind of exception-handling policy as in the other three places, or
-else it should have a footnote saying that the omission is
-deliberate. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.6.2.6, paragraph 1, replace the last sentence (&quot;In any
-case, the unformatted output function ends by destroying the sentry
-object, then returning the value specified for the formatted output
-function.&quot;) with the following text:
-</p>
-<blockquote><p>
-If an exception is thrown during output, then <tt>ios::badbit</tt> is
-turned on [Footnote: without causing an <tt>ios::failure</tt> to be
-thrown.] in <tt>*this</tt>'s error state. If <tt>(exceptions() &amp;
-badbit) != 0</tt> then the exception is rethrown.  In any case, the
-unformatted output function ends by destroying the sentry object,
-then, if no exception was thrown, returning the value specified for
-the formatted output function.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-This exception-handling policy is consistent with that of formatted
-input, unformatted input, and formatted output.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="64"></a>64. Exception handling in <tt>basic_istream::operator&gt;&gt;(basic_streambuf*)</tt></h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.6.1.2.3, paragraph 13, is ambiguous. It can be interpreted two
-different ways, depending on whether the second sentence is read as an
-elaboration of the first. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace 27.7.2.2.3 [istream::extractors], paragraph 13, which begins
-&quot;If the function inserts no characters ...&quot; with:</p>
-
-<blockquote>
-  <p>If the function inserts no characters, it calls
-  <tt>setstate(failbit)</tt>, which may throw
-  <tt>ios_base::failure</tt> (27.4.4.3). If it inserted no characters
-  because it caught an exception thrown while extracting characters
-  from <tt>sb</tt> and <tt>failbit</tt> is on in <tt>exceptions()</tt>
-  (27.4.4.3), then the caught exception is rethrown. </p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="66"></a>66. Strstreambuf::setbuf</h3>
-<p><b>Section:</b> D.7.1.3 [depr.strstreambuf.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.strstreambuf.virtuals">issues</a> in [depr.strstreambuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>D.7.1.3, paragraph 19, says that strstreambuf::setbuf
-&quot;Performs an operation that is defined separately for each class
-derived from strstreambuf&quot;. This is obviously an incorrect
-cut-and-paste from basic_streambuf. There are no classes derived from
-strstreambuf. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>D.7.1.3 [depr.strstreambuf.virtuals], paragraph 19, replace the setbuf effects
-clause which currently says &quot;Performs an operation that is
-defined separately for each class derived from strstreambuf&quot;
-with:</p>
-
-<blockquote>
-  <p><b>Effects</b>: implementation defined, except that
-  <tt>setbuf(0,0)</tt> has no effect.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="68"></a>68. Extractors for char* should store null at end</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1998-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Extractors for char* (27.6.1.2.3) do not store a null character
-after the extracted character sequence whereas the unformatted
-functions like get() do. Why is this?</p>
-
-<p>Comment from Jerry Schwarz: There is apparently an editing
-glitch. You'll notice that the last item of the list of what stops
-extraction doesn't make any sense. It was supposed to be the line that
-said a null is stored.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>27.7.2.2.3 [istream::extractors], paragraph 7, change the last list
-item from:</p>
-
-<blockquote><p>
-  A null byte (<tt>charT()</tt>) in the next position, which may be
-  the first position if no characters were extracted.
-</p></blockquote>
-
-<p>to become a new paragraph which reads:</p>
-
-<blockquote><p>
-  Operator&gt;&gt; then stores a null byte (<tt>charT()</tt>) in the
-  next position, which may be the first position if no characters were
-  extracted.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="69"></a>69. Must elements of a vector be contiguous?</h3>
-<p><b>Section:</b> 23.3.6 [vector] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1998-07-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The issue is this: Must the elements of a vector be in contiguous memory?</p>
-
-<p>(Please note that this is entirely separate from the question of
-whether a vector iterator is required to be a pointer; the answer to
-that question is clearly &quot;no,&quot; as it would rule out
-debugging implementations)</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following text to the end of 23.3.6 [vector],
-paragraph 1. </p>
-
-<blockquote>
-  <p>The elements of a vector are stored contiguously, meaning that if
-  v is a <tt>vector&lt;T, Allocator&gt;</tt> where T is some type
-  other than <tt>bool</tt>, then it obeys the identity <tt>&amp;v[n]
-  == &amp;v[0] + n</tt> for all <tt>0 &lt;= n &lt; v.size()</tt>.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG feels that as a practical matter the answer is clearly
-&quot;yes&quot;.  There was considerable discussion as to the best way
-to express the concept of &quot;contiguous&quot;, which is not
-directly defined in the standard.  Discussion included:</p>
-
-<ul>
-  <li>An operational definition similar to the above proposed resolution is 
-    already used for valarray (26.6.2.4 [valarray.access]).</li>
-  <li>There is no need to explicitly consider a user-defined operator&amp; 
-    because elements must be copyconstructible (23.2 [container.requirements] para 3) 
-    and copyconstructible (17.6.3.1 [utility.arg.requirements]) specifies
-    requirements for operator&amp;.</li>
-  <li>There is no issue of one-past-the-end because of language rules.</li>
-</ul>
-
-
-
-
-
-<hr>
-<h3><a name="70"></a>70. Uncaught_exception() missing throw() specification</h3>
-<p><b>Section:</b> 18.8 [support.exception], X [uncaught] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1998-08-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.exception">issues</a> in [support.exception].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In article 3E04@pratique.fr, Valentin Bonnard writes: </p>
-
-<p>uncaught_exception() doesn't have a throw specification.</p>
-
-<p>It is intentional ? Does it means that one should be prepared to
-handle exceptions thrown from uncaught_exception() ?</p>
-
-<p>uncaught_exception() is called in exception handling contexts where
-exception safety is very important.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 15.5.3 [except.uncaught], paragraph 1, 18.8 [support.exception], and X [uncaught], add &quot;throw()&quot; to uncaught_exception().</p>
-
-
-
-
-<hr>
-<h3><a name="71"></a>71. Do_get_monthname synopsis missing argument</h3>
-<p><b>Section:</b> 22.4.5.1 [locale.time.get] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-08-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The locale facet member <tt>time_get&lt;&gt;::do_get_monthname</tt>
-is described in 22.4.5.1.2 [locale.time.get.virtuals] with five arguments,
-consistent with do_get_weekday and with its specified use by member
-get_monthname. However, in the synopsis, it is specified instead with
-four arguments. The missing argument is the &quot;end&quot; iterator
-value.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.5.1 [locale.time.get], add an &quot;end&quot; argument to
-the declaration of member do_monthname as follows:</p>
-
-<pre>  virtual iter_type do_get_monthname(iter_type s, iter_type end, ios_base&amp;,
-                                     ios_base::iostate&amp; err, tm* t) const;</pre>
-
-
-
-
-<hr>
-<h3><a name="74"></a>74. Garbled text for <tt>codecvt::do_max_length</tt></h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-09-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The text of <tt>codecvt::do_max_length</tt>'s &quot;Returns&quot;
-clause (22.2.1.5.2, paragraph 11) is garbled. It has unbalanced
-parentheses and a spurious <b>n</b>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace 22.4.1.4.2 [locale.codecvt.virtuals] paragraph 11 with the
-following:</p>
-
-<blockquote><p>
-  <b>Returns</b>: The maximum value that
-  <tt>do_length(state, from, from_end, 1)</tt> can return for any
-  valid range <tt>[from, from_end)</tt> and <tt>stateT</tt> value
-  <tt>state</tt>. The specialization <tt>codecvt&lt;char, char,
-  mbstate_t&gt;::do_max_length()</tt> returns 1.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="75"></a>75. Contradiction in <tt>codecvt::length</tt>'s argument types</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b>  Matt
-Austern <b>Opened:</b> 1998-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The class synopses for classes <tt>codecvt&lt;&gt;</tt> (22.2.1.5)
-and <tt>codecvt_byname&lt;&gt;</tt> (22.2.1.6) say that the first
-parameter of the member functions <tt>length</tt> and
-<tt>do_length</tt> is of type <tt>const stateT&amp;</tt>. The member
-function descriptions, however (22.2.1.5.1, paragraph 6; 22.2.1.5.2,
-paragraph 9) say that the type is <tt>stateT&amp;</tt>.  Either the
-synopsis or the summary must be changed. </p>
-
-<p>If (as I believe) the member function descriptions are correct,
-then we must also add text saying how <tt>do_length</tt> changes its
-<tt>stateT</tt> argument. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.1.4 [locale.codecvt], and also in 22.4.1.5 [locale.codecvt.byname],
-change the <tt>stateT</tt> argument type on both member
-<tt>length()</tt> and member <tt>do_length()</tt> from </p>
-
-<blockquote>
-  <p><tt>const stateT&amp;</tt></p>
-</blockquote>
-
-<p>to</p>
-
-<blockquote>
-  <p><tt>stateT&amp;</tt></p>
-</blockquote>
-
-<p>In 22.4.1.4.2 [locale.codecvt.virtuals], add to the definition for member
-<tt>do_length</tt> a paragraph:</p>
-
-<blockquote>
-  <p>Effects: The effect on the <tt>state</tt> argument is ``as if''
-  it called <tt>do_in(state, from, from_end, from, to, to+max,
-  to)</tt> for <tt>to</tt> pointing to a buffer of at least
-  <tt>max</tt> elements.</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="76"></a>76. Can a <tt>codecvt</tt> facet always convert one internal character at a time?</h3>
-<p><b>Section:</b> 22.4.1.4 [locale.codecvt] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-09-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt">issues</a> in [locale.codecvt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>This issue concerns the requirements on classes derived from
-<tt>codecvt</tt>, including user-defined classes. What are the
-restrictions on the conversion from external characters
-(e.g. <tt>char</tt>) to internal characters (e.g. <tt>wchar_t</tt>)?
-Or, alternatively, what assumptions about <tt>codecvt</tt> facets can
-the I/O library make? </p>
-
-<p>The question is whether it's possible to convert from internal
-characters to external characters one internal character at a time,
-and whether, given a valid sequence of external characters, it's
-possible to pick off internal characters one at a time. Or, to put it
-differently: given a sequence of external characters and the
-corresponding sequence of internal characters, does a position in the
-internal sequence correspond to some position in the external
-sequence? </p>
-
-<p>To make this concrete, suppose that <tt>[first, last)</tt> is a
-sequence of <i>M</i> external characters and that <tt>[ifirst,
-ilast)</tt> is the corresponding sequence of <i>N</i> internal
-characters, where <i>N &gt; 1</i>. That is, <tt>my_encoding.in()</tt>,
-applied to <tt>[first, last)</tt>, yields <tt>[ifirst,
-ilast)</tt>. Now the question: does there necessarily exist a
-subsequence of external characters, <tt>[first, last_1)</tt>, such
-that the corresponding sequence of internal characters is the single
-character <tt>*ifirst</tt>?
-</p>
-
-<p>(What a &quot;no&quot; answer would mean is that
-<tt>my_encoding</tt> translates sequences only as blocks. There's a
-sequence of <i>M</i> external characters that maps to a sequence of
-<i>N</i> internal characters, but that external sequence has no
-subsequence that maps to <i>N-1</i> internal characters.) </p>
-
-<p>Some of the wording in the standard, such as the description of
-<tt>codecvt::do_max_length</tt> (22.4.1.4.2 [locale.codecvt.virtuals],
-paragraph 11) and <tt>basic_filebuf::underflow</tt> (27.9.1.5 [filebuf.virtuals], paragraph 3) suggests that it must always be
-possible to pick off internal characters one at a time from a sequence
-of external characters. However, this is never explicitly stated one
-way or the other. </p>
-
-<p>This issue seems (and is) quite technical, but it is important if
-we expect users to provide their own encoding facets. This is an area
-where the standard library calls user-supplied code, so a well-defined
-set of requirements for the user-supplied code is crucial. Users must
-be aware of the assumptions that the library makes. This issue affects
-positioning operations on <tt>basic_filebuf</tt>, unbuffered input,
-and several of <tt>codecvt</tt>'s member functions. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following text as a new paragraph, following 22.4.1.4.2 [locale.codecvt.virtuals] paragraph 2:</p>
-
-<blockquote>
-<p>A <tt>codecvt</tt> facet that is used by <tt>basic_filebuf</tt>
-(27.9 [file.streams]) must have the property that if</p>
-<pre>
-    do_out(state, from, from_end, from_next, to, to_lim, to_next)
-</pre>
-<p>would return <tt>ok</tt>, where <tt>from != from_end</tt>, then </p>
-<pre>
-    do_out(state, from, from + 1, from_next, to, to_end, to_next)
-</pre>
-<p>must also return <tt>ok</tt>, and that if</p>
-<pre>
-    do_in(state, from, from_end, from_next, to, to_lim, to_next)
-</pre>
-<p>would return <tt>ok</tt>, where <tt>to != to_lim</tt>, then</p>
-<pre>
-    do_in(state, from, from_end, from_next, to, to + 1, to_next)
-</pre>
-<p>must also return <tt>ok</tt>.  [<i>Footnote:</i> Informally, this
-means that <tt>basic_filebuf</tt> assumes that the mapping from
-internal to external characters is 1 to N: a <tt>codecvt</tt> that is
-used by <tt>basic_filebuf</tt> must be able to translate characters
-one internal character at a time.  <i>--End Footnote</i>]</p>
-</blockquote>
-
-<p><i>[Redmond: Minor change in proposed resolution.  Original
-proposed resolution talked about "success", with a parenthetical
-comment that success meant returning <tt>ok</tt>.  New wording
-removes all talk about "success", and just talks about the
-return value.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-
-  <p>The proposed resoluion says that conversions can be performed one
-  internal character at a time.  This rules out some encodings that
-  would otherwise be legal.  The alternative answer would mean there
-  would be some internal positions that do not correspond to any
-  external file position.</p>
-  <p>
-  An example of an encoding that this rules out is one where the
-  <tt>internT</tt> and <tt>externT</tt> are of the same type, and
-  where the internal sequence <tt>c1 c2</tt> corresponds to the
-  external sequence <tt>c2 c1</tt>.
-  </p>
-  <p>It was generally agreed that <tt>basic_filebuf</tt> relies
-  on this property: it was designed under the assumption that
-  the external-to-internal mapping is N-to-1, and it is not clear
-  that <tt>basic_filebuf</tt> is implementable without that 
-  restriction.
-  </p>
-  <p>
-  The proposed resolution is expressed as a restriction on
-  <tt>codecvt</tt> when used by <tt>basic_filebuf</tt>, rather
-  than a blanket restriction on all <tt>codecvt</tt> facets,
-  because <tt>basic_filebuf</tt> is the only other part of the 
-  library that uses <tt>codecvt</tt>.  If a user wants to define
-  a <tt>codecvt</tt> facet that implements a more general N-to-M
-  mapping, there is no reason to prohibit it, so long as the user
-  does not expect <tt>basic_filebuf</tt> to be able to use it.
-  </p>
-
-
-
-
-
-<hr>
-<h3><a name="78"></a>78. Typo: event_call_back</h3>
-<p><b>Section:</b> 27.5.3 [ios.base] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base">issues</a> in [ios.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>typo: event_call_back should be event_callback &nbsp; </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In the 27.5.3 [ios.base] synopsis change
-&quot;event_call_back&quot; to &quot;event_callback&quot;. </p>
-
-
-
-
-<hr>
-<h3><a name="79"></a>79. Inconsistent declaration of polar()</h3>
-<p><b>Section:</b> 26.4.1 [complex.syn], 26.4.7 [complex.value.ops] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.syn">issues</a> in [complex.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 26.4.1 [complex.syn] polar is declared as follows:</p>
-<pre>   template&lt;class T&gt; complex&lt;T&gt; polar(const T&amp;, const T&amp;); </pre>
-
-<p>In 26.4.7 [complex.value.ops] it is declared as follows:</p>
-<pre>   template&lt;class T&gt; complex&lt;T&gt; polar(const T&amp; rho, const T&amp; theta = 0); </pre>
-
-<p>Thus whether the second parameter is optional is not clear. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 26.4.1 [complex.syn] change:</p>
-<pre>   template&lt;class T&gt; complex&lt;T&gt; polar(const T&amp;, const T&amp;);</pre>
-
-<p>to:</p>
-<pre>   template&lt;class T&gt; complex&lt;T&gt; polar(const T&amp; rho, const T&amp; theta = 0); </pre>
-
-
-
-
-
-<hr>
-<h3><a name="80"></a>80. Global Operators of complex declared twice</h3>
-<p><b>Section:</b> 26.4.1 [complex.syn], 26.4.2 [complex] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.syn">issues</a> in [complex.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Both 26.2.1 and 26.2.2 contain declarations of global operators for
-class complex. This redundancy should be removed.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Reduce redundancy according to the general style of the standard. </p>
-
-
-
-
-<hr>
-<h3><a name="83"></a>83. String::npos vs. string::max_size()</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#89">89</a></p>
-<p><b>Discussion:</b></p>
-<p>Many string member functions throw if size is getting or exceeding
-npos. However, I wonder why they don't throw if size is getting or
-exceeding max_size() instead of npos.  May be npos is known at compile
-time, while max_size() is known at runtime. However, what happens if
-size exceeds max_size() but not npos, then? It seems the standard
-lacks some clarifications here.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>After 21.4 [basic.string] paragraph 4 (&quot;The functions
-described in this clause...&quot;) add a new paragraph:</p>
-
-<blockquote>
-  <p>For any string operation, if as a result of the operation, <tt> size()</tt> would exceed
-  <tt> max_size()</tt> then
-  the operation throws <tt>length_error</tt>.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes length_error is the correct exception to throw.</p>
-
-
-
-
-<hr>
-<h3><a name="86"></a>86. String constructors don't describe exceptions</h3>
-<p><b>Section:</b> 21.4.1 [string.require] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.require">issues</a> in [string.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The constructor from a range:</p>
-
-<pre>template&lt;class InputIterator&gt; 
-         basic_string(InputIterator begin, InputIterator end, 
-                      const Allocator&amp; a = Allocator());</pre>
-
-<p>lacks a throws clause. However, I would expect that it throws
-according to the other constructors if the numbers of characters in
-the range equals npos (or exceeds max_size(), see above). </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 21.4.1 [string.require], Strike throws paragraphs for
-constructors which say &quot;Throws: length_error if n ==
-npos.&quot;</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Throws clauses for length_error if n == npos are no longer needed
-because they are subsumed by the general wording added by the
-resolution for issue <a href="lwg-defects.html#83">83</a>.</p>
-
-
-
-
-<hr>
-<h3><a name="90"></a>90. Incorrect description of operator &gt;&gt; for strings</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The effect of operator &gt;&gt; for strings contain the following item:</p>
-
-<p>&nbsp;&nbsp;&nbsp; <tt>isspace(c,getloc())</tt> is true for the next available input
-character c.</p>
-
-<p>Here <tt>getloc()</tt> has to be replaced by <tt>is.getloc()</tt>. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 21.4.8.9 [string.io] paragraph 1 Effects clause replace:</p>
-
-<blockquote>
-  <p><tt>isspace(c,getloc())</tt> is true for the next available input character c.</p>
-</blockquote>
-
-<p>with:</p>
-
-<blockquote>
-  <p><tt>isspace(c,is.getloc())</tt> is true for the next available input character c.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="91"></a>91. Description of operator&gt;&gt; and getline() for string&lt;&gt; might cause endless loop</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Operator &gt;&gt; and getline() for strings read until eof()
-in the input stream is true. However, this might never happen, if the
-stream can't read anymore without reaching EOF. So shouldn't it be
-changed into that it reads until !good() ? </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 21.4.8.9 [string.io], paragraph 1, replace:</p>
-<blockquote><p>
-Effects: Begins by constructing a sentry object k as if k were
-constructed by typename basic_istream&lt;charT,traits&gt;::sentry k( is). If
-bool( k) is true, it calls str.erase() and then extracts characters
-from is and appends them to str as if by calling str.append(1, c). If
-is.width() is greater than zero, the maximum number n of characters
-appended is is.width(); otherwise n is str.max_size(). Characters are
-extracted and appended until any of the following occurs:
-</p></blockquote>
-<p>with:</p>
-<blockquote><p>
-Effects: Behaves as a formatted input function (27.7.2.2.1 [istream.formatted.reqmts]).  After constructing a sentry object, if the
-sentry converts to true, calls str.erase() and then extracts
-characters from is and appends them to str as if by calling
-str.append(1,c). If is.width() is greater than zero, the maximum
-number n of characters appended is is.width(); otherwise n is
-str.max_size(). Characters are extracted and appended until any of the
-following occurs:
-</p></blockquote>
-
-<p>In 21.4.8.9 [string.io], paragraph 6, replace</p>
-<blockquote><p>
-Effects: Begins by constructing a sentry object k as if by typename
-basic_istream&lt;charT,traits&gt;::sentry k( is, true). If bool( k) is true,
-it calls str.erase() and then extracts characters from is and appends
-them to str as if by calling str.append(1, c) until any of the
-following occurs:
-</p></blockquote>
-<p>with:</p>
-<blockquote><p>
-Effects: Behaves as an unformatted input function (27.7.2.3 [istream.unformatted]), except that it does not affect the value returned
-by subsequent calls to basic_istream&lt;&gt;::gcount().  After
-constructing a sentry object, if the sentry converts to true, calls
-str.erase() and then extracts characters from is and appends them to
-str as if by calling str.append(1,c) until any of the following
-occurs:
-</p></blockquote>
-
-<p><i>[Redmond: Made changes in proposed resolution.  <tt>operator&gt;&gt;</tt>
-should be a formatted input function, not an unformatted input function.
-<tt>getline</tt> should not be required to set <tt>gcount</tt>, since
-there is no mechanism for <tt>gcount</tt> to be set except by one of
-<tt>basic_istream</tt>'s member functions.]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: Nico agrees with proposed resolution.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The real issue here is whether or not these string input functions
-get their characters from a streambuf, rather than by calling an
-istream's member functions, a streambuf signals failure either by
-returning eof or by throwing an exception; there are no other
-possibilities.  The proposed resolution makes it clear that these two
-functions do get characters from a streambuf.</p>
-
-
-
-
-
-<hr>
-<h3><a name="92"></a>92. Incomplete Algorithm Requirements</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 1998-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The standard does not state, how often a function object is copied,
-called, or the order of calls inside an algorithm. This may lead to
-surprising/buggy behavior. Consider the following example: </p>
-
-<pre>class Nth {    // function object that returns true for the nth element 
-  private: 
-    int nth;     // element to return true for 
-    int count;   // element counter 
-  public: 
-    Nth (int n) : nth(n), count(0) { 
-    } 
-    bool operator() (int) { 
-        return ++count == nth; 
-    } 
-}; 
-.... 
-// remove third element 
-    list&lt;int&gt;::iterator pos; 
-    pos = remove_if(coll.begin(),coll.end(),  // range 
-                    Nth(3)),                  // remove criterion 
-    coll.erase(pos,coll.end()); </pre>
-
-<p>This call, in fact removes the 3rd <b>AND the 6th</b> element. This
-happens because the usual implementation of the algorithm copies the
-function object internally: </p>
-
-<pre>template &lt;class ForwIter, class Predicate&gt; 
-ForwIter std::remove_if(ForwIter beg, ForwIter end, Predicate op) 
-{ 
-    beg = find_if(beg, end, op); 
-    if (beg == end) { 
-        return beg; 
-    } 
-    else { 
-        ForwIter next = beg; 
-        return remove_copy_if(++next, end, beg, op); 
-    } 
-} </pre>
-
-<p>The algorithm uses find_if() to find the first element that should
-be removed. However, it then uses a copy of the passed function object
-to process the resulting elements (if any). Here, Nth is used again
-and removes also the sixth element. This behavior compromises the
-advantage of function objects being able to have a state. Without any
-cost it could be avoided (just implement it directly instead of
-calling find_if()). </p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add a new paragraph following 25 [algorithms] paragraph 8:</p>
-<blockquote><p>
-[Note: Unless otherwise specified, algorithms that take function
-objects as arguments are permitted to copy those function objects
-freely.  Programmers for whom object identity is important should
-consider using a wrapper class that points to a noncopied
-implementation object, or some equivalent solution.]
-</p></blockquote>
-
-<p><i>[Dublin: Pete Becker felt that this may not be a defect,
-but rather something that programmers need to be educated about.
-There was discussion of adding wording to the effect that the number
-and order of calls to function objects, including predicates, not
-affect the behavior of the function object.]</i></p>
-
-
-<p><i>[Pre-Kona: Nico comments: It seems the problem is that we don't
-have a clear statement of &quot;predicate&quot; in the
-standard. People including me seemed to think &quot;a function
-returning a Boolean value and being able to be called by an STL
-algorithm or be used as sorting criterion or ... is a
-predicate&quot;. But a predicate has more requirements: It should
-never change its behavior due to a call or being copied. IMHO we have
-to state this in the standard. If you like, see section 8.1.4 of my
-library book for a detailed discussion.]</i></p>
-
-
-<p><i>[Kona: Nico will provide wording to the effect that &quot;unless
-otherwise specified, the number of copies of and calls to function
-objects by algorithms is unspecified&quot;.&nbsp; Consider placing in
-25 [algorithms] after paragraph 9.]</i></p>
-
-
-<p><i>[Santa Cruz: The standard doesn't currently guarantee that
-  functions object won't be copied, and what isn't forbidden is
-  allowed.  It is believed (especially since implementations that were
-  written in concert with the standard do make copies of function
-  objects) that this was intentional.  Thus, no normative change is
-  needed.  What we should put in is a non-normative note suggesting to
-  programmers that if they want to guarantee the lack of copying they
-  should use something like the <tt>ref</tt> wrapper.]</i></p>
-
-
-<p><i>[Oxford: Matt provided wording.]</i></p>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="98"></a>98. Input iterator requirements are badly written</h3>
-<p><b>Section:</b> 24.2.3 [input.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.iterators">issues</a> in [input.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Table 72 in 24.2.3 [input.iterators] specifies semantics for
-<tt>*r++</tt> of:</p>
-
-<p>&nbsp;&nbsp; <tt>{ T tmp = *r; ++r; return tmp; }</tt></p>
-
-<p>There are two problems with this.  First, the return type is
-specified to be "T", as opposed to something like "convertible to T".
-This is too specific: we want to allow *r++ to return an lvalue.</p>
-
-<p>Second, writing the semantics in terms of code misleadingly
-suggests that the effects *r++ should precisely replicate the behavior
-of this code, including side effects.  (Does this mean that *r++
-should invoke the copy constructor exactly as many times as the sample
-code above would?) See issue <a href="lwg-defects.html#334">334</a> for a similar
-problem.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In Table 72 in 24.2.3 [input.iterators], change the return type
-for <tt>*r++</tt> from <tt>T</tt> to "convertible to T".</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This issue has two parts: the return type, and the number of times
-  the copy constructor is invoked.</p>
-
-<p>The LWG believes the the first part is a real issue.  It's
-  inappropriate for the return type to be specified so much more
-  precisely for *r++ than it is for *r.  In particular, if r is of
-  (say) type <tt>int*</tt>, then *r++ isn't <tt>int</tt>,
-  but <tt>int&amp;</tt>.</p>
-
-<p>The LWG does not believe that the number of times the copy
-  constructor is invoked is a real issue.  This can vary in any case,
-  because of language rules on copy constructor elision.  That's too
-  much to read into these semantics clauses.</p>
-
-<p>Additionally, as Dave Abrahams pointed out (c++std-lib-13703): since 
-   we're told (24.1/3) that forward iterators satisfy all the requirements
-   of input iterators, we can't impose any requirements in the Input
-   Iterator requirements table that forward iterators don't satisfy.</p>
-
-
-
-
-
-<hr>
-<h3><a name="103"></a>103. set::iterator is required to be modifiable, but this allows modification of keys</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Set::iterator is described as implementation-defined with a
-reference to the container requirement; the container requirement says
-that const_iterator is an iterator pointing to const T and iterator an
-iterator pointing to T.</p>
-
-<p>23.1.2 paragraph 2 implies that the keys should not be modified to
-break the ordering of elements. But that is not clearly
-specified. Especially considering that the current standard requires
-that iterator for associative containers be different from
-const_iterator. Set, for example, has the following: </p>
-
-<p><tt>typedef implementation defined iterator;<br/>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // See _lib.container.requirements_</tt></p>
-
-<p>23.2 [container.requirements] actually requires that iterator type pointing
-to T (table 65). Disallowing user modification of keys by changing the
-standard to require an iterator for associative container to be the
-same as const_iterator would be overkill since that will unnecessarily
-significantly restrict the usage of associative container. A class to
-be used as elements of set, for example, can no longer be modified
-easily without either redesigning the class (using mutable on fields
-that have nothing to do with ordering), or using const_cast, which
-defeats requiring iterator to be const_iterator. The proposed solution
-goes in line with trusting user knows what he is doing. </p>
-
-<p><b>Other Options Evaluated:</b> </p>
-
-<p>Option A.&nbsp;&nbsp; In 23.2.4 [associative.reqmts], paragraph 2, after
-first sentence, and before &quot;In addition,...&quot;, add one line:
-</p>
-
-<blockquote>
-  <p>Modification of keys shall not change their strict weak ordering. </p>
-</blockquote>
-
-<p>Option B.&nbsp;Add three new sentences to 23.2.4 [associative.reqmts]:</p>
-
-<blockquote>
-  <p>At the end of paragraph 5: &quot;Keys in an associative container
-  are immutable.&quot; At the end of paragraph 6: &quot;For
-  associative containers where the value type is the same as the key
-  type, both <tt>iterator</tt> and <tt>const_iterator</tt> are
-  constant iterators. It is unspecified whether or not
-  <tt>iterator</tt> and <tt>const_iterator</tt> are the same
-  type.&quot;</p>
-</blockquote>
-
-<p>Option C.&nbsp;To 23.2.4 [associative.reqmts], paragraph 3, which
-currently reads:</p>
-
-<blockquote>
-  <p>The phrase ``equivalence of keys'' means the equivalence relation imposed by the
-  comparison and not the operator== on keys. That is, two keys k1 and k2 in the same
-  container are considered to be equivalent if for the comparison object comp, comp(k1, k2)
-  == false &amp;&amp; comp(k2, k1) == false.</p>
-</blockquote>
-
-<p>&nbsp; add the following:</p>
-
-<blockquote>
-  <p>For any two keys k1 and k2 in the same container, comp(k1, k2) shall return the same
-  value whenever it is evaluated. [Note: If k2 is removed from the container and later
-  reinserted, comp(k1, k2) must still return a consistent value but this value may be
-  different than it was the first time k1 and k2 were in the same container. This is
-  intended to allow usage like a string key that contains a filename, where comp compares
-  file contents; if k2 is removed, the file is changed, and the same k2 (filename) is
-  reinserted, comp(k1, k2) must again return a consistent value but this value may be
-  different than it was the previous time k2 was in the container.]</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following to 23.2.4 [associative.reqmts] at
-the indicated location:</p>
-
-<blockquote>
-  <p>At the end of paragraph 3: &quot;For any two keys k1 and k2 in the same container,
-  calling comp(k1, k2) shall always return the same
-  value.&quot;</p>
-  <p>At the end of paragraph 5: &quot;Keys in an associative container are immutable.&quot;</p>
-  <p>At the end of paragraph 6: &quot;For associative containers where the value type is the
-  same as the key type, both <tt>iterator</tt> and <tt>const_iterator</tt> are constant
-  iterators. It is unspecified whether or not <tt>iterator</tt> and <tt>const_iterator</tt>
-  are the same type.&quot;</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Several arguments were advanced for and against allowing set elements to be
-mutable as long as the ordering was not effected. The argument which swayed the
-LWG was one of safety; if elements were mutable, there would be no compile-time
-way to detect of a simple user oversight which caused ordering to be
-modified.  There was a report that this had actually happened in practice,
-and had been painful to diagnose.  If users need to modify elements,
-it is possible to use mutable members or const_cast.</p>
-
-<p>Simply requiring that keys be immutable is not sufficient, because the comparison
-object may indirectly (via pointers) operate on values outside of the keys.</p>
-
-<p>
-The types <tt>iterator</tt> and <tt>const_iterator</tt> are permitted
-to be different types to allow for potential future work in which some
-member functions might be overloaded between the two types.  No such
-member functions exist now, and the LWG believes that user functionality
-will not be impaired by permitting the two types to be the same.  A
-function that operates on both iterator types can be defined for 
-<tt>const_iterator</tt> alone, and can rely on the automatic
-conversion from <tt>iterator</tt> to <tt>const_iterator</tt>.
-</p>
-
-<p><i>[Tokyo: The LWG crafted the proposed resolution and rationale.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="106"></a>106. Numeric library private members are implementation defined</h3>
-<p><b>Section:</b> 26.6.5 [template.slice.array] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.slice.array">issues</a> in [template.slice.array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>This is the only place in the whole standard where the implementation has to document
-something private.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the comment which says &quot;// remainder implementation defined&quot; from:
-</p>
-
-<ul>
-  <li>26.6.5 [template.slice.array]</li>
-  <li>26.6.7 [template.gslice.array]</li>
-  <li>26.6.8 [template.mask.array]</li>
-  <li>26.6.9 [template.indirect.array]</li>
-</ul>
-
-
-
-
-
-<hr>
-<h3><a name="108"></a>108. Lifetime of exception::what() return unspecified</h3>
-<p><b>Section:</b> 18.7.1 [type.info] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> AFNOR <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#type.info">issues</a> in [type.info].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 18.6.1, paragraphs 8-9, the lifetime of the return value of
-exception::what() is left unspecified. This issue has implications
-with exception safety of exception handling: some exceptions should
-not throw bad_alloc.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to 18.7.1 [type.info] paragraph 9 (exception::what notes
-clause) the sentence:</p>
-
-<blockquote>
-  <p>The return value remains valid until the exception object from which it is obtained is
-  destroyed or a non-const member function of the exception object is called.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>If an exception object has non-const members, they may be used
-to set internal state that should affect the contents of the string
-returned by <tt>what()</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="109"></a>109. Missing binders for non-const sequence elements</h3>
-<p><b>Section:</b> X [depr.lib.binders] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bjarne Stroustrup <b>Opened:</b> 1998-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.lib.binders">issues</a> in [depr.lib.binders].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>There are no versions of binders that apply to non-const elements
-of a sequence. This makes examples like for_each() using bind2nd() on
-page 521 of &quot;The C++ Programming Language (3rd)&quot;
-non-conforming. Suitable versions of the binders need to be added.</p>
-
-<p>Further discussion from Nico:</p>
-
-<p>What is probably meant here is shown in the following example:</p>
-
-<pre>class Elem { 
-  public: 
-    void print (int i) const { } 
-    void modify (int i) { } 
-}; </pre>
-<pre>int main() 
-{ 
-    vector&lt;Elem&gt; coll(2); 
-    for_each (coll.begin(), coll.end(), bind2nd(mem_fun_ref(&amp;Elem::print),42));    // OK 
-    for_each (coll.begin(), coll.end(), bind2nd(mem_fun_ref(&amp;Elem::modify),42));   // ERROR 
-}</pre>
-
-<p>The error results from the fact that bind2nd() passes its first
-argument (the argument of the sequence) as constant reference. See the
-following typical implementation:</p>
-
-<blockquote>
-  <pre>template &lt;class Operation&gt; 
-class binder2nd 
-  : public unary_function&lt;typename Operation::first_argument_type, 
-                          typename Operation::result_type&gt; { 
-protected: 
-  Operation op; 
-  typename Operation::second_argument_type value; 
-public: 
-  binder2nd(const Operation&amp; o, 
-            const typename Operation::second_argument_type&amp; v) 
-      : op(o), value(v) {} </pre>
-  <pre> typename Operation::result_type 
-  operator()(const typename Operation::first_argument_type&amp; x) const { 
-    return op(x, value); 
-  } 
-};</pre>
-</blockquote>
-
-<p>The solution is to overload operator () of bind2nd for non-constant arguments:</p>
-
-<blockquote>
-  <pre>template &lt;class Operation&gt; 
-class binder2nd 
-  : public unary_function&lt;typename Operation::first_argument_type, 
-                          typename Operation::result_type&gt; { 
-protected: 
-  Operation op; 
-  typename Operation::second_argument_type value; 
-public: 
-  binder2nd(const Operation&amp; o, 
-            const typename Operation::second_argument_type&amp; v) 
-      : op(o), value(v) {} </pre>
-  <pre> typename Operation::result_type 
-  operator()(const typename Operation::first_argument_type&amp; x) const { 
-    return op(x, value); 
-  } 
-  typename Operation::result_type 
-  operator()(typename Operation::first_argument_type&amp; x) const { 
-    return op(x, value); 
-  } 
-};</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><b>Howard believes there is a flaw</b> in this resolution.
-See c++std-lib-9127.  We may need to reopen this issue.</p>
-
-<p>In X [depr.lib.binders] in the declaration of binder1st after:</p>
-<blockquote>
-  <p><tt>typename Operation::result_type<br/>
-  &nbsp;operator()(const typename Operation::second_argument_type&amp; x) const;</tt></p>
-</blockquote>
-<p>insert:</p>
-<blockquote>
-  <p><tt>typename Operation::result_type<br/>
-  &nbsp;operator()(typename Operation::second_argument_type&amp; x) const;</tt></p>
-</blockquote>
-<p>In X [depr.lib.binders] in the declaration of binder2nd after:</p>
-<blockquote>
-  <p><tt>typename Operation::result_type<br/>
-  &nbsp;operator()(const typename Operation::first_argument_type&amp; x) const;</tt></p>
-</blockquote>
-<p>insert:</p>
-<blockquote>
-  <p><tt>typename Operation::result_type<br/>
-  &nbsp;operator()(typename Operation::first_argument_type&amp; x) const;</tt></p>
-</blockquote>
-
-<p><i>[Kona: The LWG discussed this at some length.It was agreed that
-this is a mistake in the design, but there was no consensus on whether
-it was a defect in the Standard.  Straw vote: NAD - 5.  Accept
-proposed resolution - 3.  Leave open - 6.]</i></p>
-
-
-<p><i>[Copenhagen: It was generally agreed that this was a defect.
-Strap poll: NAD - 0.  Accept proposed resolution - 10. 
-Leave open - 1.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="110"></a>110. istreambuf_iterator::equal not const</h3>
-<p><b>Section:</b> 24.6.3 [istreambuf.iterator], 24.6.3.5 [istreambuf.iterator::equal] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 1998-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istreambuf.iterator">issues</a> in [istreambuf.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Member istreambuf_iterator&lt;&gt;::equal is not declared
-&quot;const&quot;, yet 24.6.3.6 [istreambuf.iterator::op==] says that operator==,
-which is const, calls it. This is contradictory. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 24.6.3 [istreambuf.iterator] and also in 24.6.3.5 [istreambuf.iterator::equal],
-replace:</p>
-
-<blockquote>
-  <pre>bool equal(istreambuf_iterator&amp; b);</pre>
-</blockquote>
-
-<p>with:</p>
-
-<blockquote>
-  <pre>bool equal(const istreambuf_iterator&amp; b) const;</pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="112"></a>112. Minor typo in <tt>ostreambuf_iterator</tt> constructor</h3>
-<p><b>Section:</b> 24.6.4.1 [ostreambuf.iter.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-10-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The <b>requires</b> clause for <tt>ostreambuf_iterator</tt>'s
-constructor from an <tt>ostream_type</tt> (24.5.4.1, paragraph 1)
-reads &quot;<i>s</i> is not null&quot;. However, <i>s</i> is a
-reference, and references can't be null. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 24.6.4.1 [ostreambuf.iter.cons]:</p>
-
-<p>Move the current paragraph 1, which reads &quot;Requires: s is not
-null.&quot;, from the first constructor to the second constructor.</p>
-
-<p>Insert a new paragraph 1 Requires clause for the first constructor
-reading:</p>
-
-<blockquote>
-  <p><b>Requires</b>: <tt>s.rdbuf()</tt> is not null.</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="114"></a>114. Placement forms example in error twice</h3>
-<p><b>Section:</b> 18.6.1.3 [new.delete.placement] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1998-10-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.placement">issues</a> in [new.delete.placement].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#196">196</a></p>
-<p><b>Discussion:</b></p>
-<p>Section 18.5.1.3 contains the following example: </p>
-
-<pre>[Example: This can be useful for constructing an object at a known address:
-        char place[sizeof(Something)];
-        Something* p = new (place) Something();
- -end example]</pre>
-
-<p>First code line: &quot;place&quot; need not have any special alignment, and the
-following constructor could fail due to misaligned data.</p>
-
-<p>Second code line: Aren't the parens on Something() incorrect?&nbsp; [Dublin: the LWG
-believes the () are correct.]</p>
-
-<p>Examples are not normative, but nevertheless should not show code that is invalid or
-likely to fail.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the first line of code in the example in 
-18.6.1.3 [new.delete.placement] with:
-</p>
-
-<blockquote>
-  <pre>void* place = operator new(sizeof(Something));</pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="115"></a>115. Typo in strstream constructors</h3>
-<p><b>Section:</b> D.7.4.1 [depr.strstream.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 1998-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>D.7.4.1 strstream constructors paragraph 2 says: </p>
-
-<blockquote>
-  <p>Effects: Constructs an object of class strstream, initializing the base class with
-  iostream(&amp; sb) and initializing sb with one of the two constructors: </p>
-  <p>- If mode&amp;app==0, then s shall designate the first element of an array of n
-  elements. The constructor is strstreambuf(s, n, s). </p>
-  <p>- If mode&amp;app==0, then s shall designate the first element of an array of n
-  elements that contains an NTBS whose first element is designated by s. The constructor is
-  strstreambuf(s, n, s+std::strlen(s)).</p>
-</blockquote>
-
-<p>Notice the second condition is the same as the first. I think the second condition
-should be &quot;If mode&amp;app==app&quot;, or &quot;mode&amp;app!=0&quot;, meaning that
-the append bit is set.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In D.7.3.1 [depr.ostrstream.cons] paragraph 2 and D.7.4.1 [depr.strstream.cons]
-paragraph 2, change the first condition to <tt>(mode&amp;app)==0</tt>
-and the second condition to <tt>(mode&amp;app)!=0</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="117"></a>117. <tt>basic_ostream</tt> uses nonexistent <tt>num_put</tt> member functions</h3>
-<p><b>Section:</b> 27.7.3.6.2 [ostream.inserters.arithmetic] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-11-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.inserters.arithmetic">issues</a> in [ostream.inserters.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The <b>effects</b> clause for numeric inserters says that
-insertion of a value <tt>x</tt>, whose type is either <tt>bool</tt>,
-<tt>short</tt>, <tt>unsigned short</tt>, <tt>int</tt>, <tt>unsigned
-int</tt>, <tt>long</tt>, <tt>unsigned long</tt>, <tt>float</tt>,
-<tt>double</tt>, <tt>long double</tt>, or <tt>const void*</tt>, is
-delegated to <tt>num_put</tt>, and that insertion is performed as if
-through the following code fragment: </p>
-
-<pre>bool failed = use_facet&lt;
-   num_put&lt;charT,ostreambuf_iterator&lt;charT,traits&gt; &gt; 
-   &gt;(getloc()).put(*this, *this, fill(), val). failed();</pre>
-
-<p>This doesn't work, because <tt>num_put&lt;&gt;</tt>::put is only
-overloaded for the types <tt>bool</tt>, <tt>long</tt>, <tt>unsigned
-long</tt>, <tt>double</tt>, <tt>long double</tt>, and <tt>const
-void*</tt>. That is, the code fragment in the standard is incorrect
-(it is diagnosed as ambiguous at compile time) for the types
-<tt>short</tt>, <tt>unsigned short</tt>, <tt>int</tt>, <tt>unsigned
-int</tt>, and <tt>float</tt>. </p>
-
-<p>We must either add new member functions to <tt>num_put</tt>, or
-else change the description in <tt>ostream</tt> so that it only calls
-functions that are actually there. I prefer the latter. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace 27.6.2.5.2, paragraph 1 with the following: </p>
-
-<blockquote>
-<p>
-The classes num_get&lt;&gt; and num_put&lt;&gt; handle locale-dependent numeric
-formatting and parsing.  These inserter functions use the imbued
-locale value to perform numeric formatting.  When val is of type bool,
-long, unsigned long, double, long double, or const void*, the
-formatting conversion occurs as if it performed the following code
-fragment:
-</p>
-
-<pre>
-bool failed = use_facet&lt;
-   num_put&lt;charT,ostreambuf_iterator&lt;charT,traits&gt; &gt;
-   &gt;(getloc()).put(*this, *this, fill(), val). failed();
-</pre>
-
-<p>
-When val is of type short the formatting conversion occurs as if it
-performed the following code fragment:
-</p>
-
-<pre>
-ios_base::fmtflags baseflags = ios_base::flags() &amp; ios_base::basefield;
-bool failed = use_facet&lt;
-   num_put&lt;charT,ostreambuf_iterator&lt;charT,traits&gt; &gt;
-   &gt;(getloc()).put(*this, *this, fill(),
-      baseflags == ios_base::oct || baseflags == ios_base::hex
-         ? static_cast&lt;long&gt;(static_cast&lt;unsigned short&gt;(val))
-         : static_cast&lt;long&gt;(val)). failed();
-</pre>
-
-<p>
-When val is of type int the formatting conversion occurs as if it performed
-the following code fragment:
-</p>
-
-<pre>
-ios_base::fmtflags baseflags = ios_base::flags() &amp; ios_base::basefield;
-bool failed = use_facet&lt;
-   num_put&lt;charT,ostreambuf_iterator&lt;charT,traits&gt; &gt;
-   &gt;(getloc()).put(*this, *this, fill(),
-      baseflags == ios_base::oct || baseflags == ios_base::hex
-         ? static_cast&lt;long&gt;(static_cast&lt;unsigned int&gt;(val))
-         : static_cast&lt;long&gt;(val)). failed();
-</pre>
-
-<p>
-When val is of type unsigned short or unsigned int the formatting conversion
-occurs as if it performed the following code fragment:
-</p>
-
-<pre>
-bool failed = use_facet&lt;
-   num_put&lt;charT,ostreambuf_iterator&lt;charT,traits&gt; &gt;
-   &gt;(getloc()).put(*this, *this, fill(), static_cast&lt;unsigned long&gt;(val)).
-failed();
-</pre>
-
-<p>
-When val is of type float the formatting conversion occurs as if it
-performed the following code fragment:
-</p>
-
-<pre>
-bool failed = use_facet&lt;
-   num_put&lt;charT,ostreambuf_iterator&lt;charT,traits&gt; &gt;
-   &gt;(getloc()).put(*this, *this, fill(), static_cast&lt;double&gt;(val)).
-failed();
-</pre>
-
-</blockquote>
-
-<p><i>[post-Toronto: This differs from the previous proposed
-resolution; PJP provided the new wording.  The differences are in
-signed short and int output.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The original proposed resolution was to cast int and short to long,
-unsigned int and unsigned short to unsigned long, and float to double,
-thus ensuring that we don't try to use nonexistent num_put&lt;&gt;
-member functions.  The current proposed resolution is more
-complicated, but gives more expected results for hex and octal output
-of signed short and signed int.  (On a system with 16-bit short, for
-example, printing short(-1) in hex format should yield 0xffff.)</p>
-
-
-
-
-
-<hr>
-<h3><a name="118"></a>118. <tt>basic_istream</tt> uses nonexistent <tt>num_get</tt> member functions</h3>
-<p><b>Section:</b> 27.7.2.2.2 [istream.formatted.arithmetic] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1998-11-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.arithmetic">issues</a> in [istream.formatted.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Formatted input is defined for the types <tt>short</tt>, <tt>unsigned short</tt>, <tt>int</tt>,
-<tt>unsigned int</tt>, <tt>long</tt>, <tt>unsigned long</tt>, <tt>float</tt>, <tt>double</tt>,
-<tt>long double</tt>, <tt>bool</tt>, and <tt>void*</tt>. According to section 27.6.1.2.2,
-formatted input of a value <tt>x</tt> is done as if by the following code fragment: </p>
-
-<pre>typedef num_get&lt; charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget; 
-iostate err = 0; 
-use_facet&lt; numget &gt;(loc).get(*this, 0, *this, err, val); 
-setstate(err);</pre>
-
-<p>According to section 22.4.2.1.1 [facet.num.get.members], however,
-<tt>num_get&lt;&gt;::get()</tt> is only overloaded for the types
-<tt>bool</tt>, <tt>long</tt>, <tt>unsigned short</tt>, <tt>unsigned
-int</tt>, <tt>unsigned long</tt>, <tt>unsigned long</tt>,
-<tt>float</tt>, <tt>double</tt>, <tt>long double</tt>, and
-<tt>void*</tt>. Comparing the lists from the two sections, we find
-that 27.6.1.2.2 is using a nonexistent function for types
-<tt>short</tt> and <tt>int</tt>. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.2.2.2 [istream.formatted.arithmetic] Arithmetic Extractors, remove the
-two lines (1st and 3rd) which read:</p>
-<blockquote>
-  <pre>operator&gt;&gt;(short&amp; val);
-...
-operator&gt;&gt;(int&amp; val);</pre>
-</blockquote>
-
-<p>And add the following at the end of that section (27.6.1.2.2) :</p>
-
-<blockquote>
-  <pre>operator&gt;&gt;(short&amp; val);</pre>
-  <p>The conversion occurs as if performed by the following code fragment (using
-  the same notation as for the preceding code fragment):</p>
-  <pre>  typedef num_get&lt; charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-  iostate err = 0;
-  long lval;
-  use_facet&lt; numget &gt;(loc).get(*this, 0, *this, err, lval);
-        if (err == 0
-                &amp;&amp; (lval &lt; numeric_limits&lt;short&gt;::min() || numeric_limits&lt;short&gt;::max() &lt; lval))
-                err = ios_base::failbit;
-  setstate(err);</pre>
-  <pre>operator&gt;&gt;(int&amp; val);</pre>
-  <p>The conversion occurs as if performed by the following code fragment (using
-  the same notation as for the preceding code fragment):</p>
-  <pre>  typedef num_get&lt; charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-  iostate err = 0;
-  long lval;
-  use_facet&lt; numget &gt;(loc).get(*this, 0, *this, err, lval);
-        if (err == 0
-                &amp;&amp; (lval &lt; numeric_limits&lt;int&gt;::min() || numeric_limits&lt;int&gt;::max() &lt; lval))
-                err = ios_base::failbit;
-  setstate(err);</pre>
-</blockquote>
-
-<p><i>[Post-Tokyo: PJP provided the above wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="119"></a>119. Should virtual functions be allowed to strengthen the exception specification?</h3>
-<p><b>Section:</b> 17.6.5.12 [res.on.exception.handling] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.exception.handling">issues</a> in [res.on.exception.handling].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 17.6.5.12 [res.on.exception.handling] states: </p>
-
-<p>&quot;An implementation may strengthen the exception-specification
-for a function by removing listed exceptions.&quot; </p>
-
-<p>The problem is that if an implementation is allowed to do this for
-virtual functions, then a library user cannot write a class that
-portably derives from that class. </p>
-
-<p>For example, this would not compile if ios_base::failure::~failure
-had an empty exception specification: </p>
-
-<pre>#include &lt;ios&gt;
-#include &lt;string&gt;
-
-class D : public std::ios_base::failure {
-public:
-        D(const std::string&amp;);
-        ~D(); // error - exception specification must be compatible with 
-              // overridden virtual function ios_base::failure::~failure()
-};</pre>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change Section 17.6.5.12 [res.on.exception.handling] from:</p>
-
-<p>&nbsp;&nbsp;&nbsp;&nbsp; &quot;may strengthen the
-exception-specification for a function&quot;</p>
-
-<p>to:</p>
-
-<p>&nbsp;&nbsp;&nbsp;&nbsp; &quot;may strengthen the
-exception-specification for a non-virtual function&quot;. </p>
-
-
-
-
-
-<hr>
-<h3><a name="120"></a>120. Can an implementor add specializations?</h3>
-<p><b>Section:</b> 17.6.4.3 [reserved.names] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reserved.names">issues</a> in [reserved.names].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>The original issue asked whether a library implementor could
-specialize standard library templates for built-in types.  (This was
-an issue because users are permitted to explicitly instantiate
-standard library templates.)</p>
-
-<p>Specializations are no longer a problem, because of the resolution
-to core issue 259.  Under the proposed resolution, it will be legal
-for a translation unit to contain both a specialization and an
-explicit instantiation of the same template, provided that the
-specialization comes first.  In such a case, the explicit
-instantiation will be ignored.  Further discussion of library issue
-120 assumes that the core 259 resolution will be adopted.</p>
-
-<p>However, as noted in lib-7047, one piece of this issue still
-remains: what happens if a standard library implementor explicitly
-instantiates a standard library templates?  It's illegal for a program
-to contain two different explicit instantiations of the same template
-for the same type in two different translation units (ODR violation),
-and the core working group doesn't believe it is practical to relax
-that restriction.</p>
-
-<p>The issue, then, is: are users allowed to explicitly instantiate
-standard library templates for non-user defined types?  The status quo
-answer is 'yes'.  Changing it to 'no' would give library implementors
-more freedom.</p>
-
-<p>This is an issue because, for performance reasons, library
-implementors often need to explicitly instantiate standard library
-templates.  (for example, std::basic_string&lt;char&gt;)  Does giving
-users freedom to explicitly instantiate standard library templates for
-non-user defined types make it impossible or painfully difficult for
-library implementors to do this?</p>
-
-<p>John Spicer suggests, in lib-8957, that library implementors have a
-mechanism they can use for explicit instantiations that doesn't
-prevent users from performing their own explicit instantiations: put
-each explicit instantiation in its own object file.  (Different
-solutions might be necessary for Unix DSOs or MS-Windows DLLs.)  On
-some platforms, library implementors might not need to do anything
-special: the "undefined behavior" that results from having two
-different explicit instantiations might be harmless.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-  <p>Append to 17.6.4.3 [reserved.names] paragraph 1: </p>
-  <blockquote><p>
-    A program may explicitly instantiate any templates in the standard
-    library only if the declaration depends on the name of a user-defined
-    type of external linkage and the instantiation meets the standard library
-    requirements for the original template.
-  </p></blockquote>
-
-<p><i>[Kona: changed the wording from "a user-defined name" to "the name of
-  a user-defined type"]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG considered another possible resolution:</p>
-<blockquote>
-  <p>In light of the resolution to core issue 259, no normative changes
-  in the library clauses are necessary.  Add the following non-normative
-  note to the end of 17.6.4.3 [reserved.names] paragraph 1:</p>
-  <blockquote><p>
-    [<i>Note:</i> A program may explicitly instantiate standard library
-    templates, even when an explicit instantiation does not depend on
-    a user-defined name. <i>--end note</i>]
-  </p></blockquote>
-</blockquote>
-
-<p>The LWG rejected this because it was believed that it would make
-  it unnecessarily difficult for library implementors to write
-  high-quality implementations.  A program may not include an
-  explicit instantiation of the same template, for the same template
-  arguments, in two different translation units.  If users are
-  allowed to provide explicit instantiations of Standard Library
-  templates for built-in types, then library implementors aren't,
-  at least not without nonportable tricks.</p>
-
-<p>The most serious problem is a class template that has writeable
-  static member variables.  Unfortunately, such class templates are
-  important and, in existing Standard Library implementations, are
-  often explicitly specialized by library implementors: locale facets,
-  which have a writeable static member variable <tt>id</tt>.  If a
-  user's explicit instantiation collided with the implementations
-  explicit instantiation, iostream initialization could cause locales
-  to be constructed in an inconsistent state.</p>
-
-<p>One proposed implementation technique was for Standard Library
-  implementors to provide explicit instantiations in separate object
-  files, so that they would not be picked up by the linker when the
-  user also provides an explicit instantiation.  However, this
-  technique only applies for Standard Library implementations that
-  are packaged as static archives.  Most Standard Library
-  implementations nowadays are packaged as dynamic libraries, so this
-  technique would not apply.</p>
-
-<p>The Committee is now considering standardization of dynamic
-  linking.  If there are such changes in the future, it may be
-  appropriate to revisit this issue later.</p>
-
-
-
-
-
-<hr>
-<h3><a name="122"></a>122. streambuf/wstreambuf description should not say they are specializations</h3>
-<p><b>Section:</b> 27.6.3 [streambuf] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf">issues</a> in [streambuf].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 27.5.2 describes the streambuf classes this way: </p>
-
-<blockquote>
-
-<p>The class streambuf is a specialization of the template class basic_streambuf
-specialized for the type char. </p>
-
-<p>The class wstreambuf is a specialization of the template class basic_streambuf
-specialized for the type wchar_t. </p>
-
-</blockquote>
-
-<p>This implies that these classes must be template specializations, not typedefs. </p>
-
-<p>It doesn't seem this was intended, since Section 27.5 has them declared as typedefs. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove 27.6.3 [streambuf] paragraphs 2 and 3 (the above two
-sentences). </p>
-
-
-<p><b>Rationale:</b></p>
-<p>The <tt>streambuf</tt>  synopsis already has a declaration for the
-typedefs and that is sufficient. </p>
-
-
-
-
-
-<hr>
-<h3><a name="123"></a>123. Should valarray helper arrays fill functions be const?</h3>
-<p><b>Section:</b> 26.6.5.4 [slice.arr.fill], 26.6.7.4 [gslice.array.fill], 26.6.8.4 [mask.array.fill], 26.6.9.4 [indirect.array.fill] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>One of the operator= in the valarray helper arrays is const and one
-is not. For example, look at slice_array. This operator= in Section
-26.6.5.2 [slice.arr.assign] is const: </p>
-
-<p>&nbsp;&nbsp;&nbsp; <tt>void operator=(const valarray&lt;T&gt;&amp;) const;</tt> </p>
-
-<p>but this one in Section 26.6.5.4 [slice.arr.fill] is not: </p>
-
-<p>&nbsp;&nbsp;&nbsp; <tt>void operator=(const T&amp;); </tt></p>
-
-<p>The description of the semantics for these two functions is similar. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>26.6.5 [template.slice.array] Template class slice_array</p>
-<blockquote>
-
-   <p>In the class template definition for slice_array, replace the member
-   function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>with</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.5.4 [slice.arr.fill] slice_array fill function</p>
-<blockquote>
-
-   <p>Change the function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>to</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.7 [template.gslice.array] Template class gslice_array</p>
-<blockquote>
-
-   <p>In the class template definition for gslice_array, replace the member
-   function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>with</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.7.4 [gslice.array.fill] gslice_array fill function</p>
-<blockquote>
-
-   <p>Change the function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>to</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.8 [template.mask.array] Template class mask_array</p>
-<blockquote>
-
-   <p>In the class template definition for mask_array, replace the member
-   function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>with</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.8.4 [mask.array.fill] mask_array fill function</p>
-<blockquote>
-
-   <p>Change the function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>to</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.9 [template.indirect.array] Template class indirect_array</p>
-<blockquote>
-
-   <p>In the class template definition for indirect_array, replace the member
-   function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>with</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-<p>26.6.9.4 [indirect.array.fill] indirect_array fill function</p>
-<blockquote>
-
-   <p>Change the function declaration</p>
-    <pre>
-      void operator=(const T&amp;);
-    </pre>
-   <p>to</p>
-    <pre>
-      void operator=(const T&amp;) const;
-    </pre>
-</blockquote>
-
-
-<p><i>[Redmond: Robert provided wording.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>There's no good reason for one version of operator= being const and
-another one not.  Because of issue <a href="lwg-defects.html#253">253</a>, this now
-matters: these functions are now callable in more circumstances.  In
-many existing implementations, both versions are already const.</p>
-
-
-
-
-
-<hr>
-<h3><a name="124"></a>124. ctype_byname&lt;charT&gt;::do_scan_is &amp; do_scan_not return type should be const charT*</h3>
-<p><b>Section:</b> 22.4.1.2 [locale.ctype.byname] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.ctype.byname">issues</a> in [locale.ctype.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Section 22.4.1.2 [locale.ctype.byname]
-ctype_byname&lt;charT&gt;::do_scan_is() and do_scan_not() are declared
-to return a const char* not a const charT*. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change Section 22.4.1.2 [locale.ctype.byname] <tt>do_scan_is()</tt> and
-<tt>do_scan_not()</tt> to return a <tt> const
-charT*</tt>. </p>
-
-
-
-
-
-<hr>
-<h3><a name="125"></a>125. valarray&lt;T&gt;::operator!() return type is inconsistent</h3>
-<p><b>Section:</b> 26.6.2 [template.valarray] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.valarray">issues</a> in [template.valarray].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Section 26.6.2 [template.valarray] valarray&lt;T&gt;::operator!() is
-declared to return a valarray&lt;T&gt;, but in Section 26.6.2.6 [valarray.unary] it is declared to return a valarray&lt;bool&gt;. The
-latter appears to be correct. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change in Section 26.6.2 [template.valarray] the declaration of
-<tt>operator!()</tt> so that the return type is
-<tt>valarray&lt;bool&gt;</tt>. </p>
-
-
-
-
-<hr>
-<h3><a name="126"></a>126. typos in Effects clause of ctype::do_narrow()</h3>
-<p><b>Section:</b> 22.4.1.1.2 [locale.ctype.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.ctype.virtuals">issues</a> in [locale.ctype.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p><p>Typos in 22.2.1.1.2 need to be fixed.</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>In Section 22.4.1.1.2 [locale.ctype.virtuals] change: </p>
-
-<pre>   do_widen(do_narrow(c),0) == c</pre>
-
-<p>to:</p>
-
-<pre>   do_widen(do_narrow(c,0)) == c</pre>
-
-<p>and change:</p>
-
-<pre>   (is(M,c) || !ctc.is(M, do_narrow(c),dfault) )</pre>
-
-<p>to:</p>
-
-<pre>   (is(M,c) || !ctc.is(M, do_narrow(c,dfault)) )</pre>
-
-
-
-
-
-<hr>
-<h3><a name="127"></a>127. auto_ptr&lt;&gt; conversion issues</h3>
-<p><b>Section:</b> X [auto.ptr] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Greg Colvin <b>Opened:</b> 1999-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#auto.ptr">issues</a> in [auto.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>There are two problems with the current <tt>auto_ptr</tt> wording
-in the standard: </p>
-
-<p>First, the <tt>auto_ptr_ref</tt> definition cannot be nested
-because <tt>auto_ptr&lt;Derived&gt;::auto_ptr_ref</tt> is unrelated to
-<tt>auto_ptr&lt;Base&gt;::auto_ptr_ref</tt>.  <i>Also submitted by
-Nathan Myers, with the same proposed resolution.</i></p>
-
-<p>Second, there is no <tt>auto_ptr</tt> assignment operator taking an
-<tt>auto_ptr_ref</tt> argument. </p>
-
-<p>I have discussed these problems with my proposal coauthor, Bill
-Gibbons, and with some compiler and library implementors, and we
-believe that these problems are not desired or desirable implications
-of the standard. </p>
-
-<p>25 Aug 1999: The proposed resolution now reflects changes suggested
-by Dave Abrahams, with Greg Colvin's concurrence; 1) changed
-&quot;assignment operator&quot; to &quot;public assignment
-operator&quot;, 2) changed effects to specify use of release(), 3)
-made the conversion to auto_ptr_ref const. </p>
-
-<p>2 Feb 2000: Lisa Lippincott comments: [The resolution of] this issue
-states that the conversion from auto_ptr to auto_ptr_ref should
-be const.  This is not acceptable, because it would allow
-initialization and assignment from _any_ const auto_ptr!  It also
-introduces an implementation difficulty in writing this conversion
-function -- namely, somewhere along the line, a const_cast will be
-necessary to remove that const so that release() may be called.  This
-may result in undefined behavior [7.1.5.1/4]. The conversion
-operator does not have to be const, because a non-const implicit
-object parameter may be bound to an rvalue [13.3.3.1.4/3]
-[13.3.1/5]. </p>
-
-  <p>Tokyo: The LWG removed the following from the proposed resolution:</p>
-
-  <p>In 20.10.4 [meta.unary], paragraph 2, and 20.10.4.3 [meta.unary.prop], 
-  paragraph 2, make the conversion to auto_ptr_ref const:</p>
-  <blockquote>
-    <pre>template&lt;class Y&gt; operator auto_ptr_ref&lt;Y&gt;() const throw();</pre>
-  </blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 20.10.4 [meta.unary], paragraph 2, move
-the <tt>auto_ptr_ref</tt> definition to namespace scope.</p>
-
-<p>In 20.10.4 [meta.unary], paragraph 2, add
-a public assignment operator to the <tt>auto_ptr</tt> definition: </p>
-
-<blockquote>
-  <pre>auto_ptr&amp; operator=(auto_ptr_ref&lt;X&gt; r) throw();</pre>
-</blockquote>
-
-<p>Also add the assignment operator to 20.10.4.3 [meta.unary.prop]: </p>
-
-<blockquote>
-  <pre>auto_ptr&amp; operator=(auto_ptr_ref&lt;X&gt; r) throw()</pre>
-
-  <p><b>Effects:</b> Calls <tt>reset(p.release())</tt> for the <tt>auto_ptr
-  p</tt> that <tt>r</tt> holds a reference to.<br/>
-  <b>Returns: </b><tt>*this</tt>.</p>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="129"></a>129. Need error indication from seekp() and seekg()</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted], 27.7.3.5 [ostream.seeks] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-02-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Currently, the standard does not specify how seekg() and seekp()
-indicate failure. They are not required to set failbit, and they can't
-return an error indication because they must return *this, i.e. the
-stream. Hence, it is undefined what happens if they fail. And they
-<i>can</i> fail, for instance, when a file stream is disconnected from the
-underlying file (is_open()==false) or when a wide character file
-stream must perform a state-dependent code conversion, etc. </p>
-
-<p>The stream functions seekg() and seekp() should set failbit in the
-stream state in case of failure.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to the Effects: clause of&nbsp; seekg() in 
-27.7.2.3 [istream.unformatted] and to the Effects: clause of seekp() in
-27.7.3.5 [ostream.seeks]: </p>
-
-<blockquote>
-  <p>In case of failure, the function calls <tt>setstate(failbit)</tt> (which may throw <tt>ios_base::failure</tt>).
-  </p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Setting failbit is the usual error reporting mechanism for streams</p>
-
-
-
-
-<hr>
-<h3><a name="130"></a>130. Return type of container::erase(iterator) differs for associative containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1999-03-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#451">451</a></p>
-<p><b>Discussion:</b></p>
-<p>Table 67 (23.1.1) says that container::erase(iterator) returns an
-iterator. Table 69 (23.1.2) says that in addition to this requirement,
-associative containers also say that container::erase(iterator)
-returns void.  That's not an addition; it's a change to the
-requirements, which has the effect of making associative containers
-fail to meet the requirements for containers.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In 23.2.4 [associative.reqmts], in Table 69 Associative container
-requirements, change the return type of <tt>a.erase(q)</tt> from
-<tt>void</tt> to <tt>iterator</tt>.  Change the
-assertion/not/pre/post-condition from "erases the element pointed to
-by <tt>q</tt>" to "erases the element pointed to by <tt>q</tt>.
-Returns an iterator pointing to the element immediately following q
-prior to the element being erased. If no such element exists, a.end()
-is returned."
-</p>
-
-<p>
-In 23.2.4 [associative.reqmts], in Table 69 Associative container
-requirements, change the return type of <tt>a.erase(q1, q2)</tt>
-from <tt>void</tt> to <tt>iterator</tt>.  Change the
-assertion/not/pre/post-condition from "erases the elements in the
-range <tt>[q1, q2)</tt>" to "erases the elements in the range <tt>[q1,
-q2)</tt>.  Returns q2."
-</p>
-
-<p>
-In 23.4.4 [map], in the <tt>map</tt> class synopsis; and 
-in 23.4.5 [multimap], in the <tt>multimap</tt> class synopsis; and
-in 23.4.6 [set], in the <tt>set</tt> class synopsis; and
-in 23.4.7 [multiset], in the <tt>multiset</tt> class synopsis:
-change the signature of the first <tt>erase</tt> overload to
-</p>
-<pre>
-   iterator erase(iterator position);
-</pre>
-<p>and change the signature of the third <tt>erase</tt> overload to</p>
-<pre>
-  iterator erase(iterator first, iterator last); 
-</pre>
-
-
-<p><i>[Pre-Kona: reopened at the request of Howard Hinnant]</i></p>
-
-
-<p><i>[Post-Kona: the LWG agrees the return type should be
-<tt>iterator</tt>, not <tt>void</tt>.  (Alex Stepanov agrees too.)
-Matt provided wording.]</i></p>
-
-
-<p><i>[
- Sydney: the proposed wording went in the right direction, but it
- wasn't good enough. We want to return an iterator from the range form
- of erase as well as the single-iterator form. Also, the wording is
- slightly different from the wording we have for sequences; there's no
- good reason for having a difference.  Matt provided new wording,
-(reflected above) which we will review at the next meeting.
-]</i></p>
-
-
-<p><i>[
-Redmond:  formally voted into WP.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="132"></a>132. list::resize description uses random access iterators</h3>
-<p><b>Section:</b> 23.3.5.3 [list.capacity] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.capacity">issues</a> in [list.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The description reads:</p>
-
-<p>-1- Effects:</p>
-
-<pre>         if (sz &gt; size())
-           insert(end(), sz-size(), c);
-         else if (sz &lt; size())
-           erase(begin()+sz, end());
-         else
-           ;                           //  do nothing</pre>
-
-<p>Obviously list::resize should not be specified in terms of random access iterators.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 23.3.5.3 [list.capacity] paragraph 1 to:</p>
-
-<p>Effects:</p>
-
-<pre>         if (sz &gt; size())
-           insert(end(), sz-size(), c);
-         else if (sz &lt; size())
-         {
-           iterator i = begin();
-           advance(i, sz);
-           erase(i, end());
-         }</pre>
-
-<p><i>[Dublin: The LWG asked Howard to discuss exception safety offline
-with David Abrahams. They had a discussion and believe there is
-no issue of exception safety with the proposed resolution.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="133"></a>133. map missing get_allocator()</h3>
-<p><b>Section:</b> 23.4.4 [map] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map">issues</a> in [map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p><p>The title says it all.</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>Insert in 23.4.4 [map], paragraph 2,
-after operator= in the map declaration:</p>
-
-<pre>    allocator_type get_allocator() const;</pre>
-
-
-
-
-<hr>
-<h3><a name="134"></a>134. vector constructors over specified</h3>
-<p><b>Section:</b> 23.3.6.2 [vector.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The complexity description says: &quot;It does at most 2N calls to the copy constructor
-of T and logN reallocations if they are just input iterators ...&quot;.</p>
-
-<p>This appears to be overly restrictive, dictating the precise memory/performance
-tradeoff for the implementor.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 23.3.6.2 [vector.cons], paragraph 1 to:</p>
-
-<p>-1- Complexity: The constructor template &lt;class
-InputIterator&gt; vector(InputIterator first, InputIterator last)
-makes only N calls to the copy constructor of T (where N is the
-distance between first and last) and no reallocations if iterators
-first and last are of forward, bidirectional, or random access
-categories. It makes order N calls to the copy constructor of T and
-order logN reallocations if they are just input iterators.
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>&quot;at most 2N calls&quot; is correct only if the growth factor
-is greater than or equal to 2.
-</p>
-
-
-
-
-<hr>
-<h3><a name="136"></a>136. seekp, seekg setting wrong streams?</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>I may be misunderstanding the intent, but should not seekg set only
-the input stream and seekp set only the output stream? The description
-seems to say that each should set both input and output streams. If
-that's really the intent, I withdraw this proposal.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In section 27.6.1.3 change:</p>
-
-<pre>basic_istream&lt;charT,traits&gt;&amp; seekg(pos_type pos);
-Effects: If fail() != true, executes rdbuf()-&gt;pubseekpos(pos). </pre>
-
-<p>To:</p>
-
-<pre>basic_istream&lt;charT,traits&gt;&amp; seekg(pos_type pos);
-Effects: If fail() != true, executes rdbuf()-&gt;pubseekpos(pos, ios_base::in). </pre>
-
-<p>In section 27.6.1.3 change:</p>
-
-<pre>basic_istream&lt;charT,traits&gt;&amp; seekg(off_type&amp; off, ios_base::seekdir dir);
-Effects: If fail() != true, executes rdbuf()-&gt;pubseekoff(off, dir). </pre>
-
-<p>To:</p>
-
-<pre>basic_istream&lt;charT,traits&gt;&amp; seekg(off_type&amp; off, ios_base::seekdir dir);
-Effects: If fail() != true, executes rdbuf()-&gt;pubseekoff(off, dir, ios_base::in). </pre>
-
-<p>In section 27.6.2.4, paragraph 2 change:</p>
-
-<pre>-2- Effects: If fail() != true, executes rdbuf()-&gt;pubseekpos(pos). </pre>
-
-<p>To:</p>
-
-<pre>-2- Effects: If fail() != true, executes rdbuf()-&gt;pubseekpos(pos, ios_base::out). </pre>
-
-<p>In section 27.6.2.4, paragraph 4 change:</p>
-
-<pre>-4- Effects: If fail() != true, executes rdbuf()-&gt;pubseekoff(off, dir). </pre>
-
-<p>To:</p>
-
-<pre>-4- Effects: If fail() != true, executes rdbuf()-&gt;pubseekoff(off, dir, ios_base::out). </pre>
-
-<p><i>[Dublin: Dietmar K&uuml;hl thinks this is probably correct, but would
-like the opinion of more iostream experts before taking action.]</i></p>
-
-
-<p><i>[Tokyo: Reviewed by the LWG. PJP noted that although his docs are
-incorrect, his implementation already implements the Proposed
-Resolution.]</i></p>
-
-
-<p><i>[Post-Tokyo: Matt Austern comments:<br/>
-Is it a problem with basic_istream and basic_ostream, or is it a problem
-with basic_stringbuf?
-We could resolve the issue either by changing basic_istream and
-basic_ostream, or by changing basic_stringbuf. I prefer the latter
-change (or maybe both changes): I don't see any reason for the standard to
-require that std::stringbuf s(std::string(&quot;foo&quot;), std::ios_base::in);
-s.pubseekoff(0, std::ios_base::beg); must fail.<br/>
-This requirement is a bit weird. There's no similar requirement
-for basic_streambuf&lt;&gt;::seekpos, or for basic_filebuf&lt;&gt;::seekoff or
-basic_filebuf&lt;&gt;::seekpos.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="137"></a>137. Do use_facet and has_facet look in the global locale?</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-03-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 22.3.1 [locale] says:</p>
-
-<p>-4- In the call to use_facet&lt;Facet&gt;(loc), the type argument
-chooses a facet, making available all members of the named type. If
-Facet is not present in a locale (or, failing that, in the global
-locale), it throws the standard exception bad_cast. A C++ program can
-check if a locale implements a particular facet with the template
-function has_facet&lt;Facet&gt;(). </p>
-
-<p>This contradicts the specification given in section 
-22.3.2 [locale.global.templates]:
-<br/><br/>
-template &lt;class&nbsp; Facet&gt; const&nbsp; Facet&amp; use_facet(const
-locale&amp;&nbsp; loc); <br/>
-<br/>
--1- Get a reference to a facet of a locale. <br/>
--2- Returns: a reference to the corresponding facet of loc, if present. <br/>
--3- Throws: bad_cast if has_facet&lt;Facet&gt;(loc) is false. <br/>
--4- Notes: The reference returned remains valid at least as long as any copy of loc exists
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove the phrase &quot;(or, failing that, in the global locale)&quot;
-from section 22.1.1. </p>
-
-
-<p><b>Rationale:</b></p>
-<p>Needed for consistency with the way locales are handled elsewhere
-in the standard.</p>
-
-
-
-
-<hr>
-<h3><a name="139"></a>139. Optional sequence operation table description unclear</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1999-03-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The sentence introducing the Optional sequence operation table
-(23.1.1 paragraph 12) has two problems:</p>
-
-<p>A. It says ``The operations in table 68 are provided only for the containers for which
-they take constant time.''<br/>
-<br/>
-That could be interpreted in two ways, one of them being ``Even though table 68 shows
-particular operations as being provided, implementations are free to omit them if they
-cannot implement them in constant time.''<br/>
-<br/>
-B. That paragraph says nothing about amortized constant time, and it should.&nbsp;</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the wording in 23.1.1 paragraph 12&nbsp; which begins ``The operations in table 68 are provided only...&quot;
-with:</p>
-
-<blockquote>
-  <p>Table 68 lists sequence operations that are provided for some types of sequential
-  containers but not others. An implementation shall provide these operations for all
-  container types shown in the ``container'' column, and shall implement them so as to take
-  amortized constant time.</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="141"></a>141. basic_string::find_last_of, find_last_not_of say pos instead of xpos</h3>
-<p><b>Section:</b> 21.4.6.4 [string::insert], 21.4.6.6 [string::replace] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Arch Robison <b>Opened:</b> 1999-04-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::insert">issues</a> in [string::insert].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Sections 21.3.6.4 paragraph 1 and 21.3.6.6 paragraph 1 surely have misprints where they
-say:<br/>
-<br/>
-&#151; <tt>xpos &lt;= pos</tt> and <tt>pos &lt; size();</tt></p>
-
-<p>Surely the document meant to say ``<tt>xpos &lt; size()</tt>'' in both places.</p>
-
-<p><i>[Judy Ward also sent in this issue for 21.3.6.4 with the same
-proposed resolution.]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change Sections 21.3.6.4 paragraph 1 and 21.3.6.6 paragraph 1, the line which says:<br/>
-<br/>
-&#151; <tt>xpos &lt;= pos</tt> and <tt>pos &lt; size();<br/>
-<br/>
-</tt>to:<br/>
-<tt><br/>
-</tt>&#151; <tt>xpos &lt;= pos</tt> and <tt>xpos &lt; size();</tt></p>
-
-
-
-
-<hr>
-<h3><a name="142"></a>142. lexicographical_compare complexity wrong</h3>
-<p><b>Section:</b> 25.4.8 [alg.lex.comparison] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-06-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The lexicographical_compare complexity is specified as:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; &quot;At most min((last1 - first1), (last2 - first2))
-applications of the corresponding comparison.&quot;<br/>
-<br/>
-The best I can do is twice that expensive.</p>
-
-<p>Nicolai Josuttis comments in lib-6862: You mean, to check for
-equality you have to check both &lt; and &gt;? Yes, IMO you are
-right! (and Matt states this complexity in his book)</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 25.4.8 [alg.lex.comparison] complexity to:</p>
-    <blockquote><p>
-    At most <tt>2*min((last1 - first1), (last2 - first2))</tt>
-    applications of the corresponding comparison.
-    </p></blockquote>
-
-<p>Change the example at the end of paragraph 3 to read:</p>
-    <blockquote><p>
-    [Example:<br/>
-    <br/>
-    &nbsp;&nbsp;&nbsp; for ( ; first1 != last1 &amp;&amp; first2 != last2 ;
-    ++first1, ++first2) {<br/>
-    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (*first1 &lt; *first2) return true;<br/>
-    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (*first2 &lt; *first1) return false;<br/>
-    &nbsp;&nbsp;&nbsp; }<br/>
-    &nbsp;&nbsp;&nbsp; return first1 == last1 &amp;&amp; first2 != last2;<br/>
-    &nbsp;&nbsp;&nbsp;<br/>
-    --end example]
-    </p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="144"></a>144. Deque constructor complexity wrong </h3>
-<p><b>Section:</b> 23.3.3.2 [deque.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 1999-05-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.cons">issues</a> in [deque.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 23.3.3.2 [deque.cons] paragraph 6, the deque ctor that takes an iterator range appears
-to have complexity requirements which are incorrect, and which contradict the
-complexity requirements for insert(). I suspect that the text in question,
-below, was taken from vector:</p>
-<blockquote>
-  <p>Complexity: If the iterators first and last are forward iterators,
-  bidirectional iterators, or random access iterators the constructor makes only
-  N calls to the copy constructor, and performs no reallocations, where N is
-  last - first.</p>
-</blockquote>
-<p>The word &quot;reallocations&quot; does not really apply to deque. Further,
-all of the following appears to be spurious:</p>
-<blockquote>
-  <p>It makes at most 2N calls to the copy constructor of T and log N
-  reallocations if they are input iterators.1)</p>
-  <p>1) The complexity is greater in the case of input iterators because each
-  element must be added individually: it is impossible to determine the distance
-  between first abd last before doing the copying.</p>
-</blockquote>
-<p>This makes perfect sense for vector, but not for deque. Why should deque gain
-an efficiency advantage from knowing in advance the number of elements to
-insert?</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 23.3.3.2 [deque.cons] paragraph 6, replace the Complexity description, including the
-footnote, with the following text (which also corrects the &quot;abd&quot;
-typo):</p>
-<blockquote>
-  <p>Complexity: Makes last - first calls to the copy constructor of T.</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="146"></a>146. complex&lt;T&gt; Inserter and Extractor need sentries</h3>
-<p><b>Section:</b> 26.4.6 [complex.ops] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-05-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.ops">issues</a> in [complex.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The extractor for complex numbers is specified as:&nbsp;</p>
-
-<blockquote>
-
-<p>     template&lt;class T, class charT, class traits&gt;&nbsp;<br/>
-     basic_istream&lt;charT, traits&gt;&amp;&nbsp;<br/>
-     operator&gt;&gt;(basic_istream&lt;charT, traits&gt;&amp;  is, complex&lt;T&gt;&amp;  x);<br/>
-&nbsp;<br/>
-Effects: Extracts a complex number x of the form: u, (u), or (u,v),
-where u is the real part and v is the imaginary part
-(lib.istream.formatted).&nbsp;<br/>
-Requires: The input values be convertible to T. If bad input is
-encountered, calls is.setstate(ios::failbit) (which may throw
-ios::failure (lib.iostate.flags).&nbsp;<br/>
-Returns: is .</p>
-
-</blockquote>
-<p>Is it intended that the extractor for complex numbers does not skip
-whitespace, unlike all other extractors in the standard library do?
-Shouldn't a sentry be used?&nbsp;<br/>
-<br/>
-The inserter for complex numbers is specified as:</p>
-
-<blockquote>
-
-<p>     template&lt;class T, class charT, class traits&gt;&nbsp;<br/>
-     basic_ostream&lt;charT, traits&gt;&amp;&nbsp;<br/>
-     operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp;  o, const complex&lt;T&gt;&amp;  x);<br/>
-<br/>
-Effects: inserts the complex number x onto the stream o as if it were implemented as follows:<br/>
-<br/>
-     template&lt;class T, class charT, class traits&gt;&nbsp;<br/>
-     basic_ostream&lt;charT, traits&gt;&amp;&nbsp;<br/>
-     operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp; o, const complex&lt;T&gt;&amp; x)&nbsp;<br/>
-     {&nbsp;<br/>
-             basic_ostringstream&lt;charT, traits&gt; s;&nbsp;<br/>
-             s.flags(o.flags());&nbsp;<br/>
-             s.imbue(o.getloc());&nbsp;<br/>
-             s.precision(o.precision());&nbsp;<br/>
-             s &lt;&lt; '(' &lt;&lt; x.real() &lt;&lt; "," &lt;&lt; x.imag() &lt;&lt; ')';&nbsp;<br/>
-             return o &lt;&lt; s.str();&nbsp;<br/>
-     }</p>
-
-</blockquote>
-
-<p>Is it intended that the inserter for complex numbers ignores the
-field width and does not do any padding? If, with the suggested
-implementation above, the field width were set in the stream then the
-opening parentheses would be adjusted, but the rest not, because the
-field width is reset to zero after each insertion.</p>
-
-<p>I think that both operations should use sentries, for sake of
-consistency with the other inserters and extractors in the
-library. Regarding the issue of padding in the inserter, I don't know
-what the intent was.&nbsp;</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>After 26.4.6 [complex.ops] paragraph 14 (operator&gt;&gt;), add a
-Notes clause:</p>
-
-<blockquote>
-
-<p>Notes: This extraction is performed as a series of simpler
-extractions. Therefore, the skipping of whitespace is specified to be the
-same for each of the simpler extractions.</p>
-
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>For extractors, the note is added to make it clear that skipping whitespace
-follows an &quot;all-or-none&quot; rule.</p>
-
-<p>For inserters, the LWG believes there is no defect; the standard is correct
-as written.</p>
-
-
-
-
-<hr>
-<h3><a name="147"></a>147. Library Intro refers to global functions that aren't global</h3>
-<p><b>Section:</b> 17.6.5.4 [global.functions] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Lois Goldthwaite <b>Opened:</b> 1999-06-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#global.functions">issues</a> in [global.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The library had many global functions until 17.4.1.1 [lib.contents]
-paragraph 2 was added: </p>
-
-<blockquote>
-
-<p>All library entities except macros, operator new and operator
-delete are defined within the namespace std or namespaces nested
-within namespace std. </p>
-
-</blockquote>
-
-<p>It appears "global function" was never updated in the following: </p>
-
-<blockquote>
-
-<p>17.4.4.3 - Global functions [lib.global.functions]<br/>
-<br/>
--1- It is unspecified whether any global functions in the C++ Standard
-Library are defined as inline (dcl.fct.spec).<br/>
-<br/>
--2- A call to a global function signature described in Clauses
-lib.language.support through lib.input.output behaves the same as if
-the implementation declares no additional global function
-signatures.*<br/>
-<br/>
-    [Footnote: A valid C++ program always calls the expected library
-    global function. An implementation may also define additional
-    global functions that would otherwise not be called by a valid C++
-    program. --- end footnote]<br/>
-<br/>
--3- A global function cannot be declared by the implementation as
-taking additional default arguments.&nbsp;<br/>
-<br/>
-17.4.4.4 - Member functions [lib.member.functions]<br/>
-<br/>
--2- An implementation can declare additional non-virtual member
-function signatures within a class: </p>
-
-  <blockquote>
-
-<p>-- by adding arguments with default values to a member function
-signature; The same latitude does not extend to the implementation of
-virtual or global functions, however. </p>
-
-  </blockquote>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>     Change "global" to &quot;global or non-member&quot; in:</p>
-<blockquote>
-  <p>17.4.4.3 [lib.global.functions] section title,<br/>
-  17.4.4.3 [lib.global.functions] para 1,<br/>
-  17.4.4.3 [lib.global.functions] para 2 in 2 places plus 2 
-           places in the footnote,<br/>
-  17.4.4.3 [lib.global.functions] para 3,<br/>
-  17.4.4.4 [lib.member.functions] para 2</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Because operator new and delete are global, the proposed resolution
-was changed from &quot;non-member&quot; to &quot;global or non-member.
-</p>
-
-
-
-
-<hr>
-<h3><a name="148"></a>148. Functions in the example facet BoolNames should be const</h3>
-<p><b>Section:</b> 22.4.8 [facets.examples] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Jeremy Siek <b>Opened:</b> 1999-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facets.examples">issues</a> in [facets.examples].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 22.4.8 [facets.examples] paragraph 13, the do_truename() and
-do_falsename() functions in the example facet BoolNames should be
-const. The functions they are overriding in
-numpunct_byname&lt;char&gt; are const. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.8 [facets.examples] paragraph 13, insert &quot;const&quot; in
-two places:</p>
-<blockquote>
-  <p><tt>string do_truename() const { return &quot;Oui Oui!&quot;; }<br/>
-  string do_falsename() const { return &quot;Mais Non!&quot;; }</tt></p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="149"></a>149. Insert should return iterator to first element inserted</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1999-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Suppose that c and c1 are sequential containers and i is an
-iterator that refers to an element of c.  Then I can insert a copy of
-c1's elements into c ahead of element i by executing </p>
-
-<blockquote>
-
-<pre>c.insert(i, c1.begin(), c1.end());</pre>
-
-</blockquote>
-
-<p>If c is a vector, it is fairly easy for me to find out where the
-newly inserted elements are, even though i is now invalid: </p>
-
-<blockquote>
-
-<pre>size_t i_loc = i - c.begin();
-c.insert(i, c1.begin(), c1.end());</pre>
-
-</blockquote>
-
-<p>and now the first inserted element is at c.begin()+i_loc and one
-past the last is at c.begin()+i_loc+c1.size().<br/>
-<br/>
-But what if c is a list?  I can still find the location of one    
-past the last inserted element, because i is still valid.    
-To find the location of the first inserted element, though,    
-I must execute something like </p>
-
-<blockquote>
-
-<pre>for (size_t n = c1.size(); n; --n)
-   --i;</pre>
-
-</blockquote>
-
-<p>because i is now no longer a random-access iterator.<br/>
-<br/>
-Alternatively, I might write something like </p>
-
-<blockquote>
-
-<pre>bool first = i == c.begin();
-list&lt;T&gt;::iterator j = i;
-if (!first) --j;
-c.insert(i, c1.begin(), c1.end());
-if (first)
-   j = c.begin();
-else
-   ++j;</pre>
-
-</blockquote>
-
-<p>which, although wretched, requires less overhead.<br/>
-<br/>
-But I think the right solution is to change the definition of insert
-so that instead of returning void, it returns an iterator that refers
-to the first element inserted, if any, and otherwise is a copy of its
-first argument.&nbsp; </p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Reopened by Alisdair.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-In addition to the original rationale for C++03, this change also gives a
-consistent interface for all container insert operations i.e. they all
-return an iterator to the (first) inserted item.
-</p>
-
-<p>
-Proposed wording provided.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Q: why isn't this change also proposed for associative containers?
-</p>
-
-<p>
-A: The returned iterator wouldn't necessarily point to a contiguous range.
-</p>
-
-<p>
-Moved to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-23.2.3 [sequence.reqmts] Table 83
-change return type from <tt>void</tt> to <tt>iterator</tt> for the following rows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 83 &mdash; Sequence container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-</tr>
-<tr>
-<td>
-<tt>a.insert(p,n,t)</tt>
-</td>
-<td>
-<tt><del>void</del> <ins>iterator</ins></tt>
-</td>
-<td>
-Inserts <tt>n</tt> copies of <tt>t</tt> before <tt>p</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.insert(p,i,j)</tt>
-</td>
-<td>
-<tt><del>void</del> <ins>iterator</ins></tt>
-</td>
-<td>
-Each iterator in the range <tt>[i,j)</tt> shall be 
-dereferenced exactly once. 
-pre: <tt>i</tt> and <tt>j</tt> are not iterators into <tt>a</tt>. 
-Inserts copies of elements in <tt>[i, j)</tt> before <tt>p</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.insert(p,il)</tt>
-</td>
-<td>
-<tt><del>void</del> <ins>iterator</ins></tt>
-</td>
-<td>
-<tt>a.insert(p, il.begin(), il.end())</tt>.
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Add after p6 23.2.3 [sequence.reqmts]:
-</p>
-
-<blockquote>
-<p>-6- ...</p>
-
-<p><ins>
-The iterator returned from <tt>a.insert(p,n,t)</tt> points to the copy of the
-first element inserted into <tt>a</tt>, or <tt>p</tt> if <tt>n == 0</tt>.
-</ins></p>
-
-<p><ins>
-The iterator returned from <tt>a.insert(p,i,j)</tt> points to the copy of the
-first element inserted into <tt>a</tt>, or <tt>p</tt> if <tt>i == j</tt>.
-</ins></p>
-
-<p><ins>
-The iterator returned from <tt>a.insert(p,il)</tt> points to the copy of the
-first element inserted into <tt>a</tt>, or <tt>p</tt> if <tt>il</tt> is empty.
-</ins></p>
-
-</blockquote>
-
-<p>
-p2 23.3.3 [deque] Update class definition, change return type
-from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, size_type n, const T&amp; x);
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-<p>
-23.3.3.4 [deque.modifiers] change return type from <tt>void</tt> to <tt>iterator</tt> on following declarations:
-</p>
-
-<blockquote><pre>
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, size_type n, const T&amp; x);
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-Add the following (missing) declaration
-</p>
-
-<blockquote><pre>
-<ins>iterator insert(const_iterator position, initializer_list&lt;T&gt;);</ins>
-</pre></blockquote>
-
-<p>
-23.3.4 [forwardlist] Update class definition, change return type
-from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert_after(const_iterator position, initializer_list&lt;T&gt; il);
-<del>void</del> <ins>iterator</ins> insert_after(const_iterator position, size_type n, const T&amp; x);
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert_after(const_iterator position, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-p8 23.3.4.5 [forwardlist.modifiers] change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert_after(const_iterator position, size_type n, const T&amp; x);
-</pre></blockquote>
-
-<p>
-Add paragraph:
-</p>
-
-<blockquote><p>
-Returns: position.
-</p></blockquote>
-
-<p>
-p10 23.3.4.5 [forwardlist.modifiers] change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert_after(const_iterator position, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-Add paragraph:
-</p>
-
-<blockquote><p>
-Returns: position.
-</p></blockquote>
-
-<p>
-p12 23.3.4.5 [forwardlist.modifiers] change return type from <tt>void</tt> to <tt>iterator</tt> on following declarations:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert_after(const_iterator position, initializer_list&lt;T&gt; il);
-</pre></blockquote>
-
-<p>
-change return type from <tt>void</tt> to <tt>iterator</tt> on following declarations:
-</p>
-
-<p>
-p2 23.3.5 [list] Update class definition, change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, size_type n, const T&amp; x);
-
-template &lt;class InputIterator&gt;
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-<p>
-23.3.5.4 [list.modifiers] change return type from <tt>void</tt> to <tt>iterator</tt> on following declarations:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, size_type n, const T&amp; x);
-
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-Add the following (missing) declaration
-</p>
-
-<blockquote><pre>
-iterator insert(const_iterator position, initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-<p>
-p2 23.3.6 [vector]
-</p>
-
-<p>
-Update class definition, change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, T&amp;&amp; x);
-
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, size_type n, const T&amp; x);
-
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-<p>
-23.3.6.5 [vector.modifiers] change return type from <tt>void</tt> to <tt>iterator</tt> on following declarations:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator position, size_type n, const T&amp; x);
-
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-Add the following (missing) declaration
-</p>
-
-<blockquote><pre>
-iterator insert(const_iterator position, initializer_list&lt;T&gt;);
-</pre></blockquote>
-
-
-<p>
-p1 23.3.7 [vector.bool] Update class definition, change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert (const_iterator position, size_type n, const bool&amp; x);
-
-template &lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, InputIterator first, InputIterator last);
-
-  <del>void</del> <ins>iterator</ins> insert(const_iterator position, initializer_list&lt;bool&gt; il);
-</pre></blockquote>
-
-<p>
-p5 21.4 [basic.string] Update class definition, change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator p, size_type n, charT c);
-
-template&lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator p, InputIterator first, InputIterator last);
-
-<del>void</del> <ins>iterator</ins> insert(const_iterator p, initializer_list&lt;charT&gt;);
-</pre></blockquote>
-
-<p>
-p13 21.4.6.4 [string::insert] change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator p, size_type n, charT c);
-</pre></blockquote>
-
-<p>
-Add paragraph:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> an iterator which refers to the copy of the first inserted
-character, or <tt>p</tt> if <tt>n == 0</tt>.
-</p></blockquote>
-
-<p>
-p15 21.4.6.4 [string::insert] change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator&gt;
-  <del>void</del> <ins>iterator</ins> insert(const_iterator p, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-Add paragraph:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> an iterator which refers to the copy of the first inserted
-character, or <tt>p</tt> if <tt>first == last</tt>.
-</p></blockquote>
-
-<p>
-p17 21.4.6.4 [string::insert] change return type from <tt>void</tt> to <tt>iterator</tt>:
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>iterator</ins> insert(const_iterator p, initializer_list&lt;charT&gt; il);
-</pre></blockquote>
-
-<p>
-Add paragraph:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> an iterator which refers to the copy of the first inserted
-character, or <tt>p</tt> if <tt>il</tt> is empty.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-
-<p><i>[
-The following was the C++98&#47;03 rationale and does not necessarily apply to the
-proposed resolution in the C++0X time frame:
-]</i></p>
-
-
-<blockquote>
-<p>The LWG believes this was an intentional design decision and so is
-not a defect. It may be worth revisiting for the next standard.</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="150"></a>150. Find_first_of says integer instead of iterator </h3>
-<p><b>Section:</b> 25.2.7 [alg.find.first.of] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt McClure <b>Opened:</b> 1999-06-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.find.first.of">issues</a> in [alg.find.first.of].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 25.2.7 [alg.find.first.of] paragraph 2 from:</p>
-
-<blockquote>
-<p>Returns: The first iterator i in the range [first1, last1) such
-that for some integer j in the range [first2, last2) ...</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>Returns: The first iterator i in the range [first1, last1) such
-that for some iterator j in the range [first2, last2) ...</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="151"></a>151. Can't currently clear() empty container</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Ed Brey <b>Opened:</b> 1999-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>For both sequences and associative containers, a.clear() has the
-semantics of erase(a.begin(),a.end()), which is undefined for an empty
-container since erase(q1,q2) requires that q1 be dereferenceable
-(23.1.1,3 and 23.1.2,7).  When the container is empty, a.begin() is
-not dereferenceable.<br/>
-<br/>
-The requirement that q1 be unconditionally dereferenceable causes many
-operations to be intuitively undefined, of which clearing an empty
-container is probably the most dire.<br/>
-<br/>
-Since q1 and q2 are only referenced in the range [q1, q2), and [q1,
-q2) is required to be a valid range, stating that q1 and q2 must be
-iterators or certain kinds of iterators is unnecessary.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 23.1.1, paragraph 3, change:</p>
-<blockquote>
-  <p>p and q2 denote valid iterators to a, q and q1 denote valid dereferenceable iterators to a, [q1, q2) denotes a valid range</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>p denotes a valid iterator to a, q denotes a valid dereferenceable iterator to a, [q1, q2) denotes a valid range
-  in a</p>
-</blockquote>
-<p>In 23.1.2, paragraph 7, change:</p>
-<blockquote>
-  <p>p and q2 are valid iterators to a, q and q1 are valid dereferenceable
-  iterators to a, [q1, q2) is a valid range</p>
-</blockquote>
-<p>to</p>
-<blockquote>
-  <p>p is a valid iterator to a, q is a valid dereferenceable iterator to a, [q1, q2) is a valid range
-  into a</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="152"></a>152. Typo in <tt>scan_is()</tt> semantics</h3>
-<p><b>Section:</b> 22.4.1.1.2 [locale.ctype.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.ctype.virtuals">issues</a> in [locale.ctype.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The semantics of <tt>scan_is()</tt> (paragraphs 4 and 6) is not exactly described
-because there is no function <tt>is()</tt> which only takes a character as
-argument. Also, in the effects clause (paragraph 3), the semantic is also kept
-vague.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.1.1.2 [locale.ctype.virtuals] paragraphs 4 and 6, change the returns
-clause from:</p>
-<blockquote>
-  <p>&quot;... such that <tt>is(*p)</tt>
-would...&quot;</p>
-</blockquote>
-<p>to:&nbsp; &quot;... such that <tt>is(m, *p)</tt>
- would....&quot;</p>
-
-
-
-
-
-<hr>
-<h3><a name="153"></a>153. Typo in <tt>narrow()</tt> semantics</h3>
-<p><b>Section:</b> 22.4.1.3.2 [facet.ctype.char.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.ctype.char.members">issues</a> in [facet.ctype.char.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#207">207</a></p>
-<p><b>Discussion:</b></p>
-<p>The description of the array version of <tt>narrow()</tt> (in
-paragraph 11) is flawed: There is no member <tt>do_narrow()</tt> which
-takes only three arguments because in addition to the range a default
-character is needed.</p>
-
-<p>Additionally, for both <tt>widen</tt> and <tt>narrow</tt> we have
-two signatures followed by a <b>Returns</b> clause that only addresses
-one of them.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the returns clause in 22.4.1.3.2 [facet.ctype.char.members]
-paragraph 10 from:</p>
-<p>&nbsp;&nbsp;&nbsp; Returns: do_widen(low, high, to).</p>
-
-<p>to:</p>
-<p>&nbsp;&nbsp;&nbsp; Returns: do_widen(c) or do_widen(low, high, to), 
-respectively.</p>
-
-<p>Change 22.4.1.3.2 [facet.ctype.char.members] paragraph 10 and 11 from:</p>
-<pre>        char        narrow(char c, char /*dfault*/) const;
-        const char* narrow(const char* low, const char* high,
-                           char /*dfault*/, char* to) const;</pre>
-<pre>        Returns: do_narrow(low, high, to).</pre>
-<p>to:</p>
-<pre>        char        narrow(char c, char dfault) const;
-        const char* narrow(const char* low, const char* high,
-                           char dfault, char* to) const;</pre>
-<pre>        Returns: do_narrow(c, dfault) or
-                 do_narrow(low, high, dfault, to), respectively.</pre>
-
-<p><i>[Kona: 1) the problem occurs in additional places, 2) a user
-defined version could be different.]</i></p>
-
-
-<p><i>[Post-Tokyo: Dietmar provided the above wording at the request of
-the LWG. He could find no other places the problem occurred. He
-asks for clarification of the Kona &quot;a user defined
-version...&quot; comment above.  Perhaps it was a circuitous way of
-saying &quot;dfault&quot; needed to be uncommented?]</i></p>
-
-
-<p><i>[Post-Toronto: the issues list maintainer has merged in the
-proposed resolution from issue <a href="lwg-closed.html#207">207</a>, which addresses the
-same paragraphs.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="154"></a>154. Missing <tt>double</tt> specifier for <tt>do_get()</tt></h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The table in paragraph 7 for the length modifier does not list the length
-modifier <tt>l</tt> to be applied if the type is <tt>double</tt>. Thus, the
-standard asks the implementation to do undefined things when using <tt>scanf()</tt>
-(the missing length modifier for <tt>scanf()</tt> when scanning <tt>double</tt>s
-is actually a problem I found quite often in production code, too).</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.2.1.2 [facet.num.get.virtuals], paragraph 7, add a row in the Length
-Modifier table to say that for <tt>double</tt> a length modifier
-<tt>l</tt> is to be used.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The standard makes an embarrassing beginner's mistake.</p>
-
-
-
-
-<hr>
-<h3><a name="155"></a>155. Typo in naming the class defining the class <tt>Init</tt></h3>
-<p><b>Section:</b> 27.4 [iostream.objects] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.objects">issues</a> in [iostream.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>There are conflicting statements about where the class
-<tt>Init</tt> is defined. According to 27.4 [iostream.objects] paragraph 2
-it is defined as <tt>basic_ios::Init</tt>, according to 27.5.3 [ios.base] it is defined as <tt>ios_base::Init</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.4 [iostream.objects] paragraph 2 from
-&quot;<tt>basic_ios::Init&quot;</tt> to
-&quot;<tt>ios_base::Init&quot;</tt>.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Although not strictly wrong, the standard was misleading enough to warrant
-the change.</p>
-
-
-
-
-<hr>
-<h3><a name="156"></a>156. Typo in <tt>imbue()</tt> description</h3>
-<p><b>Section:</b> 27.5.3.3 [ios.base.locales] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base.locales">issues</a> in [ios.base.locales].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>There is a small discrepancy between the declarations of
-<tt>imbue()</tt>: in 27.5.3 [ios.base] the argument is passed as
-<tt>locale const&amp;</tt> (correct), in 27.5.3.3 [ios.base.locales] it
-is passed as <tt>locale const</tt> (wrong).</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.5.3.3 [ios.base.locales] change the <tt>imbue</tt> argument
-from &quot;<tt>locale const&quot; to &quot;locale
-const&amp;&quot;.</tt></p>
-
-
-
-
-<hr>
-<h3><a name="158"></a>158. Underspecified semantics for <tt>setbuf()</tt></h3>
-<p><b>Section:</b> 27.6.3.4.2 [streambuf.virt.buffer] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf.virt.buffer">issues</a> in [streambuf.virt.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The default behavior of <tt>setbuf()</tt> is described only for the
-situation that <tt>gptr() != 0 &amp;&amp; gptr() != egptr()</tt>:
-namely to do nothing.  What has to be done in other situations&nbsp;
-is not described although there is actually only one reasonable
-approach, namely to do nothing, too.</p> 
-
-<p>Since changing the buffer would almost certainly mess up most
-buffer management of derived classes unless these classes do it
-themselves, the default behavior of <tt>setbuf()</tt> should always be
-to do nothing.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.6.3.4.2 [streambuf.virt.buffer], paragraph 3, Default behavior,
-to: &quot;Default behavior: Does nothing. Returns this.&quot;</p>
-
-
-
-
-<hr>
-<h3><a name="159"></a>159. Strange use of <tt>underflow()</tt></h3>
-<p><b>Section:</b> 27.6.3.4.3 [streambuf.virt.get] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The description of the meaning of the result of
-<tt>showmanyc()</tt> seems to be rather strange: It uses calls to
-<tt>underflow()</tt>. Using <tt>underflow()</tt> is strange because
-this function only reads the current character but does not extract
-it, <tt>uflow()</tt> would extract the current character. This should
-be fixed to use <tt>sbumpc()</tt> instead.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.6.3.4.3 [streambuf.virt.get] paragraph 1,
-<tt>showmanyc()</tt>returns clause, by replacing the word
-&quot;supplied&quot; with the words &quot;extracted from the
-stream&quot;.</p>
-
-
-
-
-<hr>
-<h3><a name="160"></a>160. Typo: Use of non-existing function <tt>exception()</tt></h3>
-<p><b>Section:</b> 27.7.2.1 [istream] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream">issues</a> in [istream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The paragraph 4 refers to the function <tt>exception()</tt> which
-is not defined. Probably, the referred function is
-<tt>basic_ios&lt;&gt;::exceptions()</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.2.1 [istream], 27.7.2.3 [istream.unformatted], paragraph 1,
-27.7.3.1 [ostream], paragraph 3, and 27.7.3.6.1 [ostream.formatted.reqmts],
-paragraph 1, change &quot;<tt>exception()&quot; to
-&quot;exceptions()&quot;</tt>.</p>
-
-<p><i>[Note to Editor: &quot;exceptions&quot; with an &quot;s&quot;
-is the correct spelling.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="161"></a>161. Typo: <tt>istream_iterator</tt> vs. <tt>istreambuf_iterator</tt></h3>
-<p><b>Section:</b> 27.7.2.2.2 [istream.formatted.arithmetic] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.arithmetic">issues</a> in [istream.formatted.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The note in the second paragraph pretends that the first argument
-is an object of type <tt>istream_iterator</tt>. This is wrong: It is
-an object of type <tt>istreambuf_iterator</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.7.2.2.2 [istream.formatted.arithmetic] from:</p>
-<blockquote>
-  <p>The first argument provides an object of the istream_iterator class...</p>
-</blockquote>
-<p>to</p>
-<blockquote>
-  <p>The first argument provides an object of the istreambuf_iterator class...</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="164"></a>164. do_put() has apparently unused fill argument</h3>
-<p><b>Section:</b> 22.4.5.3.2 [locale.time.put.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 1999-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 22.4.5.3.2 [locale.time.put.virtuals] the do_put() function is specified
-as taking a fill character as an argument, but the description of the
-function does not say whether the character is used at all and, if so,
-in which way. The same holds for any format control parameters that
-are accessible through the ios_base&amp; argument, such as the
-adjustment or the field width. Is strftime() supposed to use the fill
-character in any way? In any case, the specification of
-time_put.do_put() looks inconsistent to me.<br/> <br/> Is the
-signature of do_put() wrong, or is the effects clause incomplete?</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following note after 22.4.5.3.2 [locale.time.put.virtuals]
-paragraph 2:</p>
-<blockquote>
-  <p>  [Note: the <tt>fill</tt> argument may be used in the implementation-defined  formats, or by derivations.  A space character is a reasonable default
-  for this argument. --end Note]</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG felt that while the normative text was correct,
-users need some guidance on what to pass for the <tt>fill</tt>
-argument since the standard doesn't say how it's used.</p>
-
-
-
-
-<hr>
-<h3><a name="165"></a>165. <tt>xsputn()</tt>, <tt>pubsync()</tt> never called by <tt>basic_ostream</tt> members?</h3>
-<p><b>Section:</b> 27.7.3.1 [ostream] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream">issues</a> in [ostream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 2 explicitly states that none of the <tt>basic_ostream</tt>
-functions falling into one of the groups &quot;formatted output functions&quot;
-and &quot;unformatted output functions&quot; calls any stream buffer function
-which might call a virtual function other than <tt>overflow()</tt>. Basically
-this is fine but this implies that <tt>sputn()</tt> (this function would call
-the virtual function <tt>xsputn()</tt>) is never called by any of the standard
-output functions. Is this really intended? At minimum it would be convenient to
-call <tt>xsputn()</tt> for strings... Also, the statement that <tt>overflow()</tt>
-is the only virtual member of <tt>basic_streambuf</tt> called is in conflict
-with the definition of <tt>flush()</tt> which calls <tt>rdbuf()-&gt;pubsync()</tt>
-and thereby the virtual function <tt>sync()</tt> (<tt>flush()</tt> is listed
-under &quot;unformatted output functions&quot;).</p>
-<p>In addition, I guess that the sentence starting with &quot;They may use other
-public members of <tt>basic_ostream</tt> ...&quot; probably was intended to
-start with &quot;They may use other public members of <tt>basic_streamuf</tt>...&quot;
-although the problem with the virtual members exists in both cases.</p>
-<p>I see two obvious resolutions:</p>
-<ol>
-  <li>state in a footnote that this means that <tt>xsputn()</tt> will never be
-    called by any ostream member and that this is intended.</li>
-  <li>relax the restriction and allow calling <tt>overflow()</tt> and <tt>xsputn()</tt>.
-    Of course, the problem with <tt>flush()</tt> has to be resolved in some way.</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the last sentence of 27.6.2.1 (lib.ostream) paragraph 2 from:</p>
-<blockquote>
-  <p>They may use other public members of basic_ostream except that they do not
-  invoke any virtual members of rdbuf() except overflow().</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>They may use other public members of basic_ostream except that they shall
-  not invoke any virtual members of rdbuf() except overflow(), xsputn(), and
-  sync().</p>
-</blockquote>
-
-<p><i>[Kona: the LWG believes this is a problem. Wish to ask Jerry or
-PJP why the standard is written this way.]</i></p>
-
-
-<p><i>[Post-Tokyo: Dietmar supplied wording at the request of the
-LWG. He comments: The rules can be made a little bit more specific if
-necessary be explicitly spelling out what virtuals are allowed to be
-called from what functions and eg to state specifically that flush()
-is allowed to call sync() while other functions are not.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="167"></a>167. Improper use of <tt>traits_type::length()</tt></h3>
-<p><b>Section:</b> 27.7.3.6.4 [ostream.inserters.character] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.inserters.character">issues</a> in [ostream.inserters.character].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 4 states that the length is determined using
-<tt>traits::length(s)</tt>.  Unfortunately, this function is not
-defined for example if the character type is <tt>wchar_t</tt> and the
-type of <tt>s</tt> is <tt>char const*</tt>. Similar problems exist if
-the character type is <tt>char</tt> and the type of <tt>s</tt> is
-either <tt>signed char const*</tt> or <tt>unsigned char
-const*</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 27.7.3.6.4 [ostream.inserters.character] paragraph 4 from:</p>
-<blockquote>
-  <p>Effects: Behaves like an formatted inserter (as described in
-  lib.ostream.formatted.reqmts) of out. After a sentry object is
-  constructed it inserts characters. The number of characters starting
-  at s to be inserted is traits::length(s). Padding is determined as
-  described in lib.facet.num.put.virtuals. The traits::length(s)
-  characters starting at s are widened using out.widen
-  (lib.basic.ios.members). The widened characters and any required
-  padding are inserted into out. Calls width(0).</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>Effects: Behaves like a formatted inserter (as described in
-  lib.ostream.formatted.reqmts) of out. After a sentry object is
-  constructed it inserts <i>n</i> characters starting at <i>s</i>,
-  where <i>n</i> is the number that would be computed as if by:</p>
-  <ul>
-  <li>traits::length(s) for the overload where the first argument is of
-    type basic_ostream&lt;charT, traits&gt;&amp; and the second is
-    of type const charT*, and also for the overload where the first
-    argument is of type basic_ostream&lt;char, traits&gt;&amp; and
-    the second is of type const char*.</li>
-  <li>std::char_traits&lt;char&gt;::length(s) 
-    for the overload where the first argument is of type 
-    basic_ostream&lt;charT, traits&gt;&amp; and the second is of type
-    const char*.</li>
-  <li>traits::length(reinterpret_cast&lt;const char*&gt;(s)) 
-    for the other two overloads.</li>
-  </ul>
-  <p>Padding is determined as described in
-  lib.facet.num.put.virtuals. The <i>n</i> characters starting at
-  <i>s</i> are widened using out.widen (lib.basic.ios.members).  The
-  widened characters and any required padding are inserted into
-  out. Calls width(0).</p>
-</blockquote>
-
-<p><i>[Santa Cruz: Matt supplied new wording]</i></p>
-
-
-<p><i>[Kona: changed "where <i>n</i> is" to " where <i>n</i> is the
-  number that would be computed as if by"]</i></p>
- 
-
-
-
-<p><b>Rationale:</b></p>
-<p>We have five separate cases.  In two of them we can use the
-user-supplied traits class without any fuss.  In the other three we
-try to use something as close to that user-supplied class as possible.
-In two cases we've got a traits class that's appropriate for
-char and what we've got is a const signed char* or a const
-unsigned char*; that's close enough so we can just use a reinterpret
-cast, and continue to use the user-supplied traits class.  Finally,
-there's one case where we just have to give up: where we've got a
-traits class for some arbitrary charT type, and we somehow have to
-deal with a const char*.  There's nothing better to do but fall back
-to char_traits&lt;char&gt;</p>
-
-
-
-
-
-<hr>
-<h3><a name="168"></a>168. Typo: formatted vs. unformatted</h3>
-<p><b>Section:</b> 27.7.3.7 [ostream.unformatted] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.unformatted">issues</a> in [ostream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The first paragraph begins with a descriptions what has to be done
-in <i>formatted</i> output functions. Probably this is a typo and the
-paragraph really want to describe unformatted output functions...</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.3.7 [ostream.unformatted] paragraph 1, the first and last
-sentences, change the word &quot;formatted&quot; to
-&quot;unformatted&quot;:</p>
-<blockquote>
-  <p>&quot;Each <b>unformatted </b> output function begins ...&quot;<br/>
-  &quot;... value specified for the <b>unformatted </b>  output 
-  function.&quot;</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="169"></a>169. Bad efficiency of <tt>overflow()</tt> mandated</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 8, Notes, of this section seems to mandate an extremely
-inefficient way of buffer handling for <tt>basic_stringbuf</tt>,
-especially in view of the restriction that <tt>basic_ostream</tt>
-member functions are not allowed to use <tt>xsputn()</tt> (see 27.7.3.1 [ostream]): For each character to be inserted, a new buffer
-is to be created.</p> 
-<p>Of course, the resolution below requires some handling of
-simultaneous input and output since it is no longer possible to update
-<tt>egptr()</tt> whenever <tt>epptr()</tt> is changed. A possible
-solution is to handle this in <tt>underflow()</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.8.2.4 [stringbuf.virtuals] paragraph 8, Notes, insert the words
-&quot;at least&quot; as in the following:</p>
-<blockquote>
-  <p>To make a write position available, the function reallocates (or initially
-  allocates) an array object with a sufficient number of elements to hold the
-  current array object (if any), plus <b>at least</b> one additional write
-  position.</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="170"></a>170. Inconsistent definition of <tt>traits_type</tt></h3>
-<p><b>Section:</b> 27.8.5 [stringstream] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The classes <tt>basic_stringstream</tt> (27.8.5 [stringstream]),
-<tt>basic_istringstream</tt> (27.8.3 [istringstream]), and
-<tt>basic_ostringstream</tt> (27.8.4 [ostringstream]) are inconsistent
-in their definition of the type <tt>traits_type</tt>: For
-<tt>istringstream</tt>, this type is defined, for the other two it is
-not. This should be consistent.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><b>Proposed resolution:</b></p> <p>To the declarations of
-<tt>basic_ostringstream</tt> (27.8.4 [ostringstream]) and
-<tt>basic_stringstream</tt> (27.8.5 [stringstream]) add:</p>
-<blockquote>
-<pre>typedef traits traits_type;</pre>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="171"></a>171. Strange <tt>seekpos()</tt> semantics due to joint position</h3>
-<p><b>Section:</b> 27.9.1.5 [filebuf.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#filebuf.virtuals">issues</a> in [filebuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Overridden virtual functions, seekpos()</p> <p>In 27.9.1.1 [filebuf] paragraph 3, it is stated that a joint input and
-output position is maintained by <tt>basic_filebuf</tt>. Still, the
-description of <tt>seekpos()</tt> seems to talk about different file
-positions. In particular, it is unclear (at least to me) what is
-supposed to happen to the output buffer (if there is one) if only the
-input position is changed. The standard seems to mandate that the
-output buffer is kept and processed as if there was no positioning of
-the output position (by changing the input position). Of course, this
-can be exactly what you want if the flag <tt>ios_base::ate</tt> is
-set. However, I think, the standard should say something like
-this:</p>
-<ul>
-  <li>If <tt>(which &amp; mode) == 0</tt> neither read nor write position is
-    changed and the call fails. Otherwise, the joint read and write position is
-    altered to correspond to <tt>sp</tt>.</li>
-  <li>If there is an output buffer, the output sequences is updated and any
-    unshift sequence is written before the position is altered.</li>
-  <li>If there is an input buffer, the input sequence is updated after the
-    position is altered.</li>
-</ul>
-<p>Plus the appropriate error handling, that is...</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the unnumbered paragraph in 27.8.1.4 (lib.filebuf.virtuals) before
-paragraph 14 from:</p>
-<blockquote>
-  <p>pos_type seekpos(pos_type sp, ios_base::openmode = ios_base::in |
-  ios_base::out);</p>
-  <p>Alters the file position, if possible, to correspond to the position stored
-  in sp (as described below).</p>
-  <p>- if (which&amp;ios_base::in)!=0, set the file position to sp, then update
-  the input sequence</p>
-  <p>- if (which&amp;ios_base::out)!=0, then update the output sequence, write
-  any unshift sequence, and set the file position to sp.</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>pos_type seekpos(pos_type sp, ios_base::openmode = ios_base::in |
-  ios_base::out);</p>
-  <p>Alters the file position, if possible, to correspond to the position stored
-  in sp (as described below). Altering the file position performs as follows:</p>
-  <p>1. if (om &amp; ios_base::out)!=0, then update the output sequence and
-  write any unshift sequence;</p>
-  <p>2. set the file position to sp;</p>
-  <p>3. if (om &amp; ios_base::in)!=0, then update the input sequence;</p>
-  <p>where om is the open mode passed to the last call to open(). The operation
-  fails if is_open() returns false.</p>
-</blockquote>
-
-<p><i>[Kona: Dietmar is working on a proposed resolution.]</i></p>
-
-<p><i>[Post-Tokyo: Dietmar supplied the above wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="172"></a>172. Inconsistent types for <tt>basic_istream::ignore()</tt></h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Greg Comeau, Dietmar K&uuml;hl <b>Opened:</b> 1999-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 27.7.2.1 [istream] the function
-<tt>ignore()</tt> gets an object of type <tt>streamsize</tt> as first
-argument. However, in 27.7.2.3 [istream.unformatted]
-paragraph 23 the first argument is of type <tt>int.</tt></p>
-
-<p>As far as I can see this is not really a contradiction because
-everything is consistent if <tt>streamsize</tt> is typedef to be
-<tt>int</tt>. However, this is almost certainly not what was
-intended. The same thing happened to <tt>basic_filebuf::setbuf()</tt>,
-as described in issue <a href="lwg-defects.html#173">173</a>.</p>
-
-<p>Darin Adler also
-submitted this issue, commenting: Either 27.6.1.1 should be modified
-to show a first parameter of type int, or 27.6.1.3 should be modified
-to show a first parameter of type streamsize and use
-numeric_limits&lt;streamsize&gt;::max.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.2.3 [istream.unformatted] paragraph 23 and 24, change both uses
-of <tt>int</tt> in the description of <tt>ignore()</tt> to
-<tt>streamsize</tt>.</p>
-
-
-
-
-<hr>
-<h3><a name="173"></a>173. Inconsistent types for <tt>basic_filebuf::setbuf()</tt></h3>
-<p><b>Section:</b> 27.9.1.5 [filebuf.virtuals] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Greg Comeau, Dietmar K&uuml;hl <b>Opened:</b> 1999-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#filebuf.virtuals">issues</a> in [filebuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In 27.9.1.1 [filebuf] the function <tt>setbuf()</tt> gets an
-object of type <tt>streamsize</tt> as second argument. However, in
-27.9.1.5 [filebuf.virtuals] paragraph 9 the second argument is of type
-<tt>int</tt>.
-</p>
-
-<p>
-As far as I can see this is not really a contradiction because
-everything is consistent if <tt>streamsize</tt> is typedef to be
-<tt>int</tt>. However, this is almost certainly not what was
-intended. The same thing happened to <tt>basic_istream::ignore()</tt>,
-as described in issue <a href="lwg-defects.html#172">172</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.9.1.5 [filebuf.virtuals] paragraph 9, change all uses of
-<tt>int</tt> in the description of <tt>setbuf()</tt> to
-<tt>streamsize</tt>.</p>
-
-
-
-
-<hr>
-<h3><a name="174"></a>174. Typo: <tt>OFF_T</tt> vs. <tt>POS_T</tt></h3>
-<p><b>Section:</b> D.6 [depr.ios.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.ios.members">issues</a> in [depr.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>According to paragraph 1 of this section, <tt>streampos</tt> is the
-type <tt>OFF_T</tt>, the same type as <tt>streamoff</tt>. However, in
-paragraph 6 the <tt>streampos</tt> gets the type <tt>POS_T</tt></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change D.6 [depr.ios.members] paragraph 1 from &quot;<tt>typedef
-OFF_T streampos;</tt>&quot; to &quot;<tt>typedef POS_T
-streampos;</tt>&quot;</p>
-
-
-
-
-<hr>
-<h3><a name="175"></a>175. Ambiguity for <tt>basic_streambuf::pubseekpos()</tt> and a few other functions.</h3>
-<p><b>Section:</b> D.6 [depr.ios.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.ios.members">issues</a> in [depr.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>According to paragraph 8 of this section, the methods
-<tt>basic_streambuf::pubseekpos()</tt>,
-<tt>basic_ifstream::open()</tt>, and <tt>basic_ofstream::open</tt>
-&quot;may&quot; be overloaded by a version of this function taking the
-type <tt>ios_base::open_mode</tt> as last argument argument instead of
-<tt>ios_base::openmode</tt> (<tt>ios_base::open_mode</tt> is defined
-in this section to be an alias for one of the integral types). The
-clause specifies, that the last argument has a default argument in
-three cases.  However, this generates an ambiguity with the overloaded
-version because now the arguments are absolutely identical if the last
-argument is not specified.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In D.6 [depr.ios.members] paragraph 8, remove the default arguments for
-<tt>basic_streambuf::pubseekpos()</tt>,
-<tt>basic_ifstream::open()</tt>, and
-<tt>basic_ofstream::open().</tt></p>
-
-
-
-
-<hr>
-<h3><a name="176"></a>176. <tt>exceptions()</tt> in <tt>ios_base</tt>...?</h3>
-<p><b>Section:</b> D.6 [depr.ios.members] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 1999-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.ios.members">issues</a> in [depr.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The &quot;overload&quot; for the function <tt>exceptions()</tt> in
-paragraph 8 gives the impression that there is another function of
-this function defined in class <tt>ios_base</tt>. However, this is not
-the case. Thus, it is hard to tell how the semantics (paragraph 9) can
-be implemented: &quot;Call the corresponding member function specified
-in clause 27 [input.output].&quot;</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In D.6 [depr.ios.members] paragraph 8, move the declaration of the
-function <tt>exceptions()</tt>into class <tt>basic_ios</tt>.</p>
-
-
-
-
-<hr>
-<h3><a name="179"></a>179. Comparison of const_iterators to iterators doesn't work</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 1998-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Currently the following will not compile on two well-known standard
-library implementations:</p>
-
-<blockquote>
-  <pre>#include &lt;set&gt;
-using namespace std;
-
-void f(const set&lt;int&gt; &amp;s)
-{
-  set&lt;int&gt;::iterator i;
-  if (i==s.end()); // s.end() returns a const_iterator
-}</pre>
-</blockquote>
-
-<p>
-The reason this doesn't compile is because operator== was implemented
-as a member function of the nested classes set:iterator and
-set::const_iterator, and there is no conversion from const_iterator to
-iterator. Surprisingly, (s.end() == i) does work, though, because of
-the conversion from iterator to const_iterator.
-</p>
-
-<p>
-I don't see a requirement anywhere in the standard that this must
-work. Should there be one?  If so, I think the requirement would need
-to be added to the tables in section 24.1.1. I'm not sure about the
-wording.  If this requirement existed in the standard, I would think
-that implementors would have to make the comparison operators
-non-member functions.</p>
-
-<p>This issues was also raised on comp.std.c++ by Darin
-Adler.&nbsp; The example given was:</p>
-
-<blockquote>
-  <pre>bool check_equal(std::deque&lt;int&gt;::iterator i,
-std::deque&lt;int&gt;::const_iterator ci)
-{
-return i == ci;
-}</pre>
-</blockquote>
-
-<p>Comment from John Potter:</p>
-<blockquote>
-    <p>
-    In case nobody has noticed, accepting it will break reverse_iterator.
-    </p>
-
-    <p>
-    The fix is to make the comparison operators templated on two types.
-    </p>
-
-    <pre>
-    template &lt;class Iterator1, class Iterator2&gt;
-    bool operator== (reverse_iterator&lt;Iterator1&gt; const&amp; x,
-                     reverse_iterator&lt;Iterator2&gt; const&amp; y);
-    </pre>
-
-    <p>
-    Obviously:  return x.base() == y.base();
-    </p>
-
-    <p>
-    Currently, no reverse_iterator to const_reverse_iterator compares are
-    valid.
-    </p>
-
-    <p>
-    BTW, I think the issue is in support of bad code.  Compares should be
-    between two iterators of the same type.  All std::algorithms require
-    the begin and end iterators to be of the same type. 
-    </p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Insert this paragraph after 23.2 [container.requirements] paragraph 7:</p>
-<blockquote>
-  <p>In the expressions</p>
-  <pre>
-    i == j
-    i != j
-    i &lt; j
-    i &lt;= j
-    i &gt;= j
-    i &gt; j
-    i - j
-  </pre>
-  <p>Where i and j denote objects of a container's iterator type,
-  either or both may be replaced by an object of the container's
-  const_iterator type referring to the same element with no
-  change in semantics.</p>
-</blockquote>
-
-<p><i>[post-Toronto: Judy supplied a proposed resolution saying that
-<tt>iterator</tt> and <tt>const_iterator</tt> could be freely mixed in
-iterator comparison and difference operations.]</i></p>
-
-
-<p><i>[Redmond: Dave and Howard supplied a new proposed resolution which
-explicitly listed expressions; there was concern that the previous
-proposed resolution was too informal.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The LWG believes it is clear that the above wording applies only to
-the nested types <tt>X::iterator</tt> and <tt>X::const_iterator</tt>,
-where <tt>X</tt> is a container.  There is no requirement that
-<tt>X::reverse_iterator</tt> and <tt>X::const_reverse_iterator</tt>
-can be mixed.  If mixing them is considered important, that's a
-separate issue.  (Issue <a href="lwg-defects.html#280">280</a>.)
-</p>
-
-
-
-
-<hr>
-<h3><a name="180"></a>180. Container member iterator arguments constness has unintended consequences</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 1999-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>It is the constness of the container which should control whether
-it can be modified through a member function such as erase(), not the
-constness of the iterators. The iterators only serve to give
-positioning information.</p>
-
-<p>Here's a simple and typical example problem which is currently very
-difficult or impossible to solve without the change proposed
-below.</p>
-
-<p>Wrap a standard container C in a class W which allows clients to
-find and read (but not modify) a subrange of (C.begin(), C.end()]. The
-only modification clients are allowed to make to elements in this
-subrange is to erase them from C through the use of a member function
-of W.</p>
-
-<p><i>[
-post Bellevue, Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue was implemented by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2350.pdf">N2350</a>
-for everything but <tt>basic_string</tt>.
-</p>
-
-<p>
-Note that the specific example in this issue (<tt>basic_string</tt>) is the one place
-we forgot to amend in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2350.pdf">N2350</a>,
-so we might open this issue for that
-single container?
-</p>
-</blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-This was a fix that was intended for all standard library containers,
-and has been done for other containers, but string was missed.
-</p>
-<p>
-The wording updated.
-</p>
-<p>
-We did not make the change in <tt>replace</tt>, because this change would affect
-the implementation because the string may be written into. This is an
-issue that should be taken up by concepts.
-</p>
-<p>
-We note that the supplied wording addresses the initializer list provided in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2679.pdf">N2679</a>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Update the following signature in the <tt>basic_string</tt> class template definition in
-21.4 [basic.string], p5:
-</p>
-<blockquote><pre>
-namespace std {
-  template&lt;class charT, class traits = char_traits&lt;charT&gt;,
-    class Allocator = allocator&lt;charT&gt; &gt;
-  class basic_string {
-
-    ...
-
-    iterator insert(<ins>const_</ins>iterator p, charT c);
-    void insert(<ins>const_</ins>iterator p, size_type n, charT c);
-    template&lt;class InputIterator&gt;
-      void insert(<ins>const_</ins>iterator p, InputIterator first, InputIterator last);
-    void insert(<ins>const_</ins>iterator <ins>p</ins>, initializer_list&lt;charT&gt;);
-
-    ...
-
-    iterator erase(<ins>const_</ins>iterator <ins>const_</ins>position);
-    iterator erase(<ins>const_</ins>iterator first, <ins>const_</ins>iterator last);
-
-    ...
-
-  };
-}
-</pre></blockquote>
-
-<p>
-Update the following signatures in 21.4.6.4 [string::insert]:
-</p>
-
-<blockquote><pre>
-iterator insert(<ins>const_</ins>iterator p, charT c);
-void insert(<ins>const_</ins>iterator p, size_type n, charT c);
-template&lt;class InputIterator&gt;
-  void insert(<ins>const_</ins>iterator p, InputIterator first, InputIterator last);
-void insert(<ins>const_</ins>iterator <ins>p</ins>, initializer_list&lt;charT&gt;);
-</pre></blockquote>
-
-<p>
-Update the following signatures in 21.4.6.5 [string::erase]:
-</p>
-
-<blockquote><pre>
-iterator erase(<ins>const_</ins>iterator <ins>const_</ins>position);
-iterator erase(<ins>const_</ins>iterator first, <ins>const_</ins>iterator last);
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The issue was discussed at length. It was generally agreed that 1)
-There is no major technical argument against the change (although
-there is a minor argument that some obscure programs may break), and
-2) Such a change would not break const correctness. The concerns about
-making the change were 1) it is user detectable (although only in
-boundary cases), 2) it changes a large number of signatures, and 3) it
-seems more of a design issue that an out-and-out defect.</p>
-
-<p>The LWG believes that this issue should be considered as part of a
-general review of const issues for the next revision of the
-standard. Also see issue <a href="lwg-defects.html#200">200</a>.</p>
-
-
-
-
-<hr>
-<h3><a name="181"></a>181. make_pair() unintended behavior</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1999-08-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The claim has surfaced in Usenet that expressions such as<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <tt>make_pair(&quot;abc&quot;, 3)</tt><br/>
-<br/>
-are illegal, notwithstanding their use in examples, because template instantiation tries to bind the first template
-parameter to <tt> const char (&amp;)[4]</tt>, which type is uncopyable.<br/>
-<br/>
-I doubt anyone intended that behavior...
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 20.2 [utility], paragraph 1 change the following
-declaration of make_pair():</p>
-<blockquote>
-  <pre>template &lt;class T1, class T2&gt; pair&lt;T1,T2&gt; make_pair(const T1&amp;, const T2&amp;);</pre>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <pre>template &lt;class T1, class T2&gt; pair&lt;T1,T2&gt; make_pair(T1, T2);</pre>
-</blockquote>
-<p>  In 20.3 [pairs] paragraph 7 and the line before, change:</p>
-<blockquote>
-<pre>template &lt;class T1, class T2&gt;
-pair&lt;T1, T2&gt; make_pair(const T1&amp; x, const T2&amp; y);</pre>
-</blockquote>
-<p>to:</p>
-<blockquote>
-<pre>template &lt;class T1, class T2&gt;
-pair&lt;T1, T2&gt; make_pair(T1 x, T2 y);</pre>
-</blockquote>
-<p>and add the following footnote to the effects clause:</p>
-<blockquote>
-  <p> According to 12.8 [class.copy], an implementation is permitted
-  to not perform a copy of an argument, thus avoiding unnecessary
-  copies.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Two potential fixes were suggested by Matt Austern and Dietmar
-K&uuml;hl, respectively, 1) overloading with array arguments, and 2) use of
-a reference_traits class with a specialization for arrays.  Andy
-Koenig suggested changing to pass by value. In discussion, it appeared
-that this was a much smaller change to the standard that the other two
-suggestions, and any efficiency concerns were more than offset by the
-advantages of the solution. Two implementors reported that the
-proposed resolution passed their test suites.</p>
-
-
-
-
-<hr>
-<h3><a name="182"></a>182. Ambiguous references to size_t</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Al Stevens <b>Opened:</b> 1999-08-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Many references to <tt> size_t</tt> throughout the document
-omit the <tt> std::</tt> namespace qualification.</p> <p>For
-example, 17.6.4.6 [replacement.functions] paragraph 2:</p>
-<blockquote>
-<pre> operator new(size_t)
- operator new(size_t, const std::nothrow_t&amp;)
- operator new[](size_t)
- operator new[](size_t, const std::nothrow_t&amp;)</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>   In 17.6.4.6 [replacement.functions] paragraph 2: replace:</p>
-<blockquote>
-<p><tt>     - operator new(size_t)<br/>
-     - operator new(size_t, const std::nothrow_t&amp;)<br/>
-     - operator new[](size_t)<br/>
-     - operator new[](size_t, const std::nothrow_t&amp;)</tt></p>
-</blockquote>
-<p>    by:</p>
-<blockquote>
-<pre>- operator new(std::size_t)
-- operator new(std::size_t, const std::nothrow_t&amp;)
-- operator new[](std::size_t)
-- operator new[](std::size_t, const std::nothrow_t&amp;)</pre>
-</blockquote>
-<p>In [lib.allocator.requirements] 20.1.5, paragraph 4: replace:</p>
-<blockquote>
-  <p>The typedef members pointer, const_pointer, size_type, and difference_type
-  are required to be T*, T const*, size_t, and ptrdiff_t, respectively.</p>
-</blockquote>
-<p>&nbsp;by:</p>
-<blockquote>
-  <p>The typedef members pointer, const_pointer, size_type, and difference_type
-  are required to be T*, T const*, std::size_t, and std::ptrdiff_t,
-  respectively.</p>
-</blockquote>
-<p>In [lib.allocator.members] 20.4.1.1, paragraphs 3 and 6: replace:</p>
-<blockquote>
-  <p>3 Notes: Uses ::operator new(size_t) (18.4.1).</p>
-  <p>6 Note: the storage is obtained by calling ::operator new(size_t), but it
-  is unspecified when or how often this function is called. The use of hint is
-  unspecified, but intended as an aid to locality if an implementation so
-  desires.</p>
-</blockquote>
-<p>by:</p>
-<blockquote>
-  <p>3 Notes: Uses ::operator new(std::size_t) (18.4.1).</p>
-  <p>6 Note: the storage is obtained by calling ::operator new(std::size_t), but
-  it is unspecified when or how often this function is called. The use of hint
-  is unspecified, but intended as an aid to locality if an implementation so
-  desires.</p>
-</blockquote>
-<p>In [lib.char.traits.require] 21.1.1, paragraph 1: replace:</p>
-<blockquote>
-  <p>In Table 37, X denotes a Traits class defining types and functions for the
-  character container type CharT; c and d denote values of type CharT; p and q
-  denote values of type const CharT*; s denotes a value of type CharT*; n, i and
-  j denote values of type size_t; e and f denote values of type X::int_type; pos
-  denotes a value of type X::pos_type; and state denotes a value of type X::state_type.</p>
-</blockquote>
-<p>by:</p>
-<blockquote>
-  <p>In Table 37, X denotes a Traits class defining types and functions for the
-  character container type CharT; c and d denote values of type CharT; p and q
-  denote values of type const CharT*; s denotes a value of type CharT*; n, i and
-  j denote values of type std::size_t; e and f denote values of type X::int_type;
-  pos denotes a value of type X::pos_type; and state denotes a value of type X::state_type.</p>
-</blockquote>
-<p>In [lib.char.traits.require] 21.1.1, table 37: replace the return type of
-X::length(p): &quot;size_t&quot; by &quot;std::size_t&quot;.</p>
-<p>   In [lib.std.iterator.tags] 24.3.3, paragraph 2:    replace:<br/>
-&nbsp;&nbsp;&nbsp; typedef ptrdiff_t difference_type;<br/>
-    by:<br/>
-&nbsp;&nbsp;&nbsp; typedef std::ptrdiff_t difference_type;</p>
-<p>   In [lib.locale.ctype] 22.2.1.1 put namespace std { ...} around the declaration of    template &lt;class charT&gt; class ctype.<br/>
-<br/>
-   In [lib.iterator.traits] 24.3.1, paragraph 2    put namespace std { ...} around the declaration of:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; template&lt;class Iterator&gt; struct iterator_traits<br/>
-&nbsp;&nbsp;&nbsp; template&lt;class T&gt; struct iterator_traits&lt;T*&gt;<br/>
-&nbsp;&nbsp;&nbsp; template&lt;class T&gt; struct iterator_traits&lt;const T*&gt;</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes correcting names like <tt>size_t</tt> and
-<tt>ptrdiff_t</tt> to <tt>std::size_t</tt> and <tt>std::ptrdiff_t</tt>
-to be essentially editorial.  There there can't be another size_t or
-ptrdiff_t meant anyway because, according to 17.6.4.3.3 [extern.types],</p>
-
-<blockquote><p>
-For each type T from the Standard C library, the types ::T and std::T
-are reserved to the implementation and, when defined, ::T shall be
-identical to std::T.
-</p></blockquote>
-
-<p>The issue is treated as a Defect Report to make explicit the Project
-Editor's authority to make this change.</p>
-
-<p><i>[Post-Tokyo: Nico Josuttis provided the above wording at the
-request of the LWG.]</i></p>
-
-
-<p><i>[Toronto: This is tangentially related to issue <a href="lwg-defects.html#229">229</a>, but only tangentially: the intent of this issue is to
-address use of the name <tt>size_t</tt> in contexts outside of
-namespace std, such as in the description of <tt>::operator new</tt>.
-The proposed changes should be reviewed to make sure they are
-correct.]</i></p>
-
-
-<p><i>[pre-Copenhagen: Nico has reviewed the changes and believes
-them to be correct.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="183"></a>183. I/O stream manipulators don't work for wide character streams</h3>
-<p><b>Section:</b> 27.7.4 [std.manip] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 1999-07-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#std.manip">issues</a> in [std.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.7.4 [std.manip] paragraph 3 says (clause numbering added for
-exposition):</p>
-<blockquote>
-<p>Returns: An object s of unspecified type such that if [1] out is an (instance
-of) basic_ostream then the expression out&lt;&lt;s behaves as if f(s) were
-called, and if [2] in is an (instance of) basic_istream then the expression
-in&gt;&gt;s behaves as if f(s) were called. Where f can be defined as: ios_base&amp;
-f(ios_base&amp; str, ios_base::fmtflags mask) { // reset specified flags
-str.setf(ios_base::fmtflags(0), mask); return str; } [3] The expression
-out&lt;&lt;s has type ostream&amp; and value out. [4] The expression in&gt;&gt;s
-has type istream&amp; and value in.</p>
-</blockquote>
-<p>Given the definitions [1] and [2] for out and in, surely [3] should read:
-&quot;The expression out &lt;&lt; s has type basic_ostream&amp; ...&quot; and
-[4] should read: &quot;The expression in &gt;&gt; s has type basic_istream&amp;
-...&quot;</p>
-<p>If the wording in the standard is correct, I can see no way of implementing
-any of the manipulators so that they will work with wide character streams.</p>
-<p>e.g. wcout &lt;&lt; setbase( 16 );</p>
-<p>Must have value 'wcout' (which makes sense) and type 'ostream&amp;' (which
-doesn't).</p>
-<p>The same &quot;cut'n'paste&quot; type also seems to occur in Paras 4,5,7 and
-8. In addition, Para 6 [setfill] has a similar error, but relates only to
-ostreams.</p>
-<p>I'd be happier if there was a better way of saying this, to make it clear
-that the value of the expression is &quot;the same specialization of
-basic_ostream as out&quot;&amp;</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace section 27.7.4 [std.manip] except paragraph 1 with the
-following:</p>
-<blockquote>
-<p>2- The type designated smanip in each of the following function descriptions is implementation-specified and may be different for each
-function.<br/>
-<br/>
-<tt>smanip resetiosflags(ios_base::fmtflags mask);</tt><br/>
-<br/>
--3- Returns: An object s of unspecified type such that if out is an instance of basic_ostream&lt;charT,traits&gt; then the expression out&lt;&lt;s behaves
-as if f(s, mask) were called, or if in is an instance of basic_istream&lt;charT,traits&gt; then the expression in&gt;&gt;s behaves as if
-f(s, mask) were called. The function f can be defined as:*<br/>
-<br/>
-[Footnote: The expression cin &gt;&gt; resetiosflags(ios_base::skipws) clears ios_base::skipws in the format flags stored in the
-basic_istream&lt;charT,traits&gt; object cin (the same as cin &gt;&gt; noskipws), and the expression cout &lt;&lt; resetiosflags(ios_base::showbase) clears
-ios_base::showbase in the format flags stored in the basic_ostream&lt;charT,traits&gt; object cout (the same as cout &lt;&lt;
-noshowbase). --- end footnote]<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; <tt>ios_base&amp; f(ios_base&amp; str, ios_base::fmtflags mask)<br/>
-&nbsp;&nbsp; {<br/>
-&nbsp;&nbsp; //  reset specified flags<br/>
-&nbsp;&nbsp; str.setf(ios_base::fmtflags(0), mask);<br/>
-&nbsp;&nbsp; return str;<br/>
-&nbsp;&nbsp; }<br/>
-</tt><br/>
-The expression out&lt;&lt;s has type basic_ostream&lt;charT,traits&gt;&amp; and value out.
-The expression in&gt;&gt;s has type basic_istream&lt;charT,traits&gt;&amp; and value in.<br/>
-<br/>
-&nbsp;<tt>smanip setiosflags(ios_base::fmtflags mask);</tt><br/>
-<br/>
--4- Returns: An object s of unspecified type such that if out is an instance of basic_ostream&lt;charT,traits&gt; then the expression out&lt;&lt;s behaves
-as if f(s, mask) were called, or if in is an instance of basic_istream&lt;charT,traits&gt; then the expression in&gt;&gt;s behaves as if f(s,
-mask) were called. The function f can be defined as:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; <tt>ios_base&amp; f(ios_base&amp; str, ios_base::fmtflags mask)<br/>
-&nbsp;&nbsp; {<br/>
-&nbsp;&nbsp; //  set specified flags<br/>
-&nbsp;&nbsp; str.setf(mask);<br/>
-&nbsp;&nbsp; return str;<br/>
-&nbsp;&nbsp; }<br/>
-</tt><br/>
-The expression out&lt;&lt;s has type basic_ostream&lt;charT,traits&gt;&amp; and value out.
-The expression in&gt;&gt;s has type basic_istream&lt;charT,traits&gt;&amp; and value in.<br/>
-<br/>
-<tt>smanip setbase(int base);</tt><br/>
-<br/>
--5- Returns: An object s of unspecified type such that if out is an instance of basic_ostream&lt;charT,traits&gt; then the expression out&lt;&lt;s behaves
-as if f(s, base) were called, or if in is an instance of basic_istream&lt;charT,traits&gt; then the expression in&gt;&gt;s behaves as if f(s,
-base) were called. The function f can be defined as:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp; <tt>ios_base&amp; f(ios_base&amp; str, int base)<br/>
-&nbsp;&nbsp; {<br/>
-&nbsp;&nbsp; //  set  basefield<br/>
-&nbsp;&nbsp; str.setf(base ==  8 ? ios_base::oct :<br/>
-&nbsp;&nbsp; base == 10 ? ios_base::dec :<br/>
-&nbsp;&nbsp; base == 16 ? ios_base::hex :<br/>
-&nbsp;&nbsp; ios_base::fmtflags(0), ios_base::basefield);<br/>
-&nbsp;&nbsp; return str;<br/>
-&nbsp;&nbsp; }<br/>
-</tt><br/>
-The expression out&lt;&lt;s has type basic_ostream&lt;charT,traits&gt;&amp; and value out.
-The expression in&gt;&gt;s has type basic_istream&lt;charT,traits&gt;&amp; and value in.<br/>
-<br/>
-<tt>smanip setfill(char_type c);<br/>
-</tt><br/>
--6- Returns: An object s of unspecified type such that if out is (or is derived from) basic_ostream&lt;charT,traits&gt; and c has type charT then the
-expression out&lt;&lt;s behaves as if f(s, c) were called. The function f can be
-defined as:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <tt>template&lt;class charT, class traits&gt;<br/>
-&nbsp;&nbsp; basic_ios&lt;charT,traits&gt;&amp; f(basic_ios&lt;charT,traits&gt;&amp; str, charT c)<br/>
-&nbsp;&nbsp; {<br/>
-&nbsp;&nbsp; //  set fill character<br/>
-&nbsp;&nbsp; str.fill(c);<br/>
-&nbsp;&nbsp; return str;<br/>
-&nbsp;&nbsp; }<br/>
-</tt><br/>
-The expression out&lt;&lt;s has type basic_ostream&lt;charT,traits&gt;&amp; and value out.<br/>
-<br/>
-<tt>smanip setprecision(int n);</tt><br/>
-<br/>
--7- Returns: An object s of unspecified type such that if out is an instance of basic_ostream&lt;charT,traits&gt; then the expression out&lt;&lt;s behaves
-as if f(s, n) were called, or if in is an instance of basic_istream&lt;charT,traits&gt; then the expression in&gt;&gt;s behaves as if f(s, n)
-were called. The function f can be defined as:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <tt>ios_base&amp; f(ios_base&amp; str, int n)<br/>
-&nbsp;&nbsp; {<br/>
-&nbsp;&nbsp; //  set precision<br/>
-&nbsp;&nbsp; str.precision(n);<br/>
-&nbsp;&nbsp; return str;<br/>
-&nbsp;&nbsp; }<br/>
-</tt><br/>
-The expression out&lt;&lt;s has type basic_ostream&lt;charT,traits&gt;&amp; and value out.
-The expression in&gt;&gt;s has type basic_istream&lt;charT,traits&gt;&amp; and value in<br/>
-.<br/>
-<tt>smanip setw(int n);<br/>
-</tt><br/>
--8- Returns: An object s of unspecified type such that if out is an instance of basic_ostream&lt;charT,traits&gt; then the expression out&lt;&lt;s behaves
-as if f(s, n) were called, or if in is an instance of basic_istream&lt;charT,traits&gt; then the expression in&gt;&gt;s behaves as if f(s, n)
-were called. The function f can be defined as:<br/>
-<br/>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <tt>ios_base&amp; f(ios_base&amp; str, int n)<br/>
-&nbsp;&nbsp; {<br/>
-&nbsp;&nbsp; //  set width<br/>
-&nbsp;&nbsp; str.width(n);<br/>
-&nbsp;&nbsp; return str;<br/>
-&nbsp;&nbsp; }<br/>
-</tt><br/>
-The expression out&lt;&lt;s has type
-basic_ostream&lt;charT,traits&gt;&amp; and value out.  The expression
-in&gt;&gt;s has type basic_istream&lt;charT,traits&gt;&amp; and value
-in.
-</p>
-</blockquote>
-
-<p><i>[Kona: Andy Sawyer and Beman Dawes will work to improve the wording of
-the proposed resolution.]</i></p>
-
-
-<p><i>[Tokyo - The LWG noted that issue <a href="lwg-closed.html#216">216</a> involves
-the same paragraphs.]</i></p>
-
-
-<p><i>[Post-Tokyo: The issues list maintainer combined the proposed
-resolution of this issue with the proposed resolution for issue <a href="lwg-closed.html#216">216</a> as they both involved the same paragraphs, and were so
-intertwined that dealing with them separately appear fraught with
-error.  The full text was supplied by Bill Plauger; it was cross
-checked against changes supplied by Andy Sawyer. It should be further
-checked by the LWG.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="184"></a>184. numeric_limits&lt;bool&gt; wording problems</h3>
-<p><b>Section:</b> 18.3.2.7 [numeric.special] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 1999-07-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.special">issues</a> in [numeric.special].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>bools are defined by the standard to be of integer types, as per
-3.9.1 [basic.fundamental] paragraph 7.  However &quot;integer types&quot;
-seems to have a special meaning for the author of 18.2. The net effect
-is an unclear and confusing specification for
-numeric_limits&lt;bool&gt; as evidenced below.</p>
-
-<p>18.2.1.2/7 says numeric_limits&lt;&gt;::digits is, for built-in integer
-types, the number of non-sign bits in the representation.</p>
-
-<p>4.5/4 states that a bool promotes to int ; whereas 4.12/1 says any non zero
-arithmetical value converts to true.</p>
-
-<p>I don't think it makes sense at all to require
-numeric_limits&lt;bool&gt;::digits and numeric_limits&lt;bool&gt;::digits10 to
-be meaningful.</p>
-
-<p>The standard defines what constitutes a signed (resp. unsigned) integer
-types. It doesn't categorize bool as being signed or unsigned. And the set of
-values of bool type has only two elements.</p>
-
-<p>I don't think it makes sense to require numeric_limits&lt;bool&gt;::is_signed
-to be meaningful.</p>
-
-<p>18.2.1.2/18 for numeric_limits&lt;integer_type&gt;::radix&nbsp; says:</p>
-<blockquote>
-  <p>For integer types, specifies the base of the representation.186)</p>
-</blockquote>
-
-<p>This disposition is at best misleading and confusing for the standard
-requires a &quot;pure binary numeration system&quot; for integer types as per
-3.9.1/7</p>
-
-<p>The footnote 186) says: &quot;Distinguishes types with base other than 2 (e.g
-BCD).&quot;&nbsp; This also erroneous as the standard never defines any integer
-types with base representation other than 2.</p>
-
-<p>Furthermore, numeric_limits&lt;bool&gt;::is_modulo and
-numeric_limits&lt;bool&gt;::is_signed have similar problems.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Append to the end of 18.3.2.7 [numeric.special]:</p>
-<blockquote>
-  <p>The specialization for bool shall be provided as follows:</p>
-  <pre>    namespace std {
-       template&lt;&gt; class numeric_limits&lt;bool&gt; {
-       public:
-         static const bool is_specialized = true;
-         static bool min() throw() { return false; }
-         static bool max() throw() { return true; }
-
-         static const int  digits = 1;
-         static const int  digits10 = 0;
-         static const bool is_signed = false;
-         static const bool is_integer = true;
-         static const bool is_exact = true;
-         static const int  radix = 2;
-         static bool epsilon() throw() { return 0; }
-         static bool round_error() throw() { return 0; }
-
-         static const int  min_exponent = 0;
-         static const int  min_exponent10 = 0;
-         static const int  max_exponent = 0;
-         static const int  max_exponent10 = 0;
-
-         static const bool has_infinity = false;
-         static const bool has_quiet_NaN = false;
-         static const bool has_signaling_NaN = false;
-         static const float_denorm_style has_denorm = denorm_absent;
-         static const bool has_denorm_loss = false;
-         static bool infinity() throw() { return 0; }
-         static bool quiet_NaN() throw() { return 0; }
-         static bool signaling_NaN() throw() { return 0; }
-         static bool denorm_min() throw() { return 0; }
-
-         static const bool is_iec559 = false;
-         static const bool is_bounded = true;
-         static const bool is_modulo = false;
-
-         static const bool traps = false;
-         static const bool tinyness_before = false;
-         static const float_round_style round_style = round_toward_zero;
-       };
-     }</pre>
-</blockquote>
-
-<p><i>[Tokyo:&nbsp; The LWG desires wording that specifies exact values
-rather than more general wording in the original proposed
-resolution.]</i></p>
-
-
-<p><i>[Post-Tokyo:&nbsp; At the request of the LWG in Tokyo, Nico
-Josuttis provided the above wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="185"></a>185. Questionable use of term &quot;inline&quot;</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> UK Panel <b>Opened:</b> 1999-07-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 4 of 20.9 [function.objects] says:</p>
-<blockquote>
-  <p>&nbsp;[Example: To negate every element of a: transform(a.begin(), a.end(),
-  a.begin(), negate&lt;double&gt;()); The corresponding functions will inline
-  the addition and the negation. end example]</p>
-</blockquote>
-<p>(Note: The &quot;addition&quot; referred to in the above is in para 3) we can
-find no other wording, except this (non-normative) example which suggests that
-any &quot;inlining&quot; will take place in this case.</p>
-<p>Indeed both:</p>
-<blockquote>
-  <p>17.4.4.3 Global Functions [lib.global.functions] 1 It is
-  unspecified whether any global functions in the C++ Standard Library
-  are defined as inline (7.1.2).</p>
-</blockquote>
-<p>and</p>
-<blockquote>
-  <p>17.4.4.4 Member Functions [lib.member.functions] 1 It is
-  unspecified whether any member functions in the C++ Standard Library
-  are defined as inline (7.1.2).</p>
-</blockquote>
-<p>take care to state that this may indeed NOT be the case.</p>
-<p>Thus the example &quot;mandates&quot; behavior that is explicitly
-not required elsewhere.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 20.9 [function.objects] paragraph 1, remove the sentence:</p>
-<blockquote>
-<p>They are important for the effective use of the library.</p>
-</blockquote>
-<p>Remove 20.9 [function.objects] paragraph 2, which reads:</p>
-<blockquote>
-  <p> Using function objects together with function templates
-  increases the expressive power of the library as well as making the
-  resulting code much more efficient.</p>
-</blockquote>
-<p>In 20.9 [function.objects] paragraph 4, remove the sentence:</p>
-<blockquote>
-  <p>The corresponding functions will inline the addition and the
-  negation.</p>
-</blockquote>
-
-<p><i>[Kona: The LWG agreed there was a defect.]</i></p>
-
-<p><i>[Tokyo: The LWG crafted the proposed resolution.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="186"></a>186. bitset::set() second parameter should be bool</h3>
-<p><b>Section:</b> 20.6.2 [bitset.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Darin Adler <b>Opened:</b> 1999-08-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.members">issues</a> in [bitset.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In section 20.6.2 [bitset.members], paragraph 13 defines the
-bitset::set operation to take a second parameter of type int. The
-function tests whether this value is non-zero to determine whether to
-set the bit to true or false. The type of this second parameter should
-be bool. For one thing, the intent is to specify a Boolean value. For
-another, the result type from test() is bool. In addition, it's
-possible to slice an integer that's larger than an int. This can't
-happen with bool, since conversion to bool has the semantic of
-translating 0 to false and any non-zero value to true.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 20.6 [template.bitset] Para 1 Replace:</p>
-<blockquote>
-<pre>bitset&lt;N&gt;&amp; set(size_t pos, int val = true ); </pre>
-</blockquote>
-<p>With:</p>
-<blockquote>
-  <pre>bitset&lt;N&gt;&amp; set(size_t pos, bool val = true );</pre>
-</blockquote>
-<p>In 20.6.2 [bitset.members] Para 12(.5) Replace:</p>
-<blockquote>
-  <pre>bitset&lt;N&gt;&amp; set(size_t pos, int val = 1 );</pre>
-</blockquote>
-<p>With:</p>
-<blockquote>
-  <pre>bitset&lt;N&gt;&amp; set(size_t pos, bool val = true );</pre>
-</blockquote>
-
-<p><i>[Kona: The LWG agrees with the description.&nbsp; Andy Sawyer will work
-on better P/R wording.]</i></p>
-
-<p><i>[Post-Tokyo: Andy provided the above wording.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p><tt>bool</tt> is a better choice.  It is believed that binary
-compatibility is not an issue, because this member function is
-usually implemented as <tt>inline</tt>, and because it is already
-the case that users cannot rely on the type of a pointer to a
-nonvirtual member of a standard library class.</p>
-
-
-
-
-
-<hr>
-<h3><a name="187"></a>187. iter_swap underspecified</h3>
-<p><b>Section:</b> 25.3.3 [alg.swap] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1999-08-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.swap">issues</a> in [alg.swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The description of iter_swap in 25.2.2 paragraph 7,says that it
-``exchanges the values'' of the objects to which two iterators
-refer.<br/> <br/> What it doesn't say is whether it does so using swap
-or using the assignment operator and copy constructor.<br/> <br/> This
-question is an important one to answer, because swap is specialized to
-work efficiently for standard containers.<br/> For example:</p>
-<blockquote>
-<pre>vector&lt;int&gt; v1, v2;
-iter_swap(&amp;v1, &amp;v2);</pre>
-</blockquote>
-<p>Is this call to iter_swap equivalent to calling swap(v1, v2)?&nbsp;
-Or is it equivalent to</p>
-<blockquote>
-<pre>{
-vector&lt;int&gt; temp = v1;
-v1 = v2;
-v2 = temp;
-}</pre>
-</blockquote>
-<p>The first alternative is O(1); the second is O(n).</p>
-<p>A LWG member, Dave Abrahams, comments:</p>
-<blockquote>
-<p>Not an objection necessarily, but I want to point out the cost of
-that requirement:</p>
-  <blockquote>
-<p><tt>iter_swap(list&lt;T&gt;::iterator, list&lt;T&gt;::iterator)</tt></p>
-  </blockquote>
-<p>can currently be specialized to be more efficient than
-iter_swap(T*,T*) for many T (by using splicing). Your proposal would
-make that optimization illegal.&nbsp;</p>
-</blockquote>
-
-<p><i>[Kona: The LWG notes the original need for iter_swap was proxy iterators
-which are no longer permitted.]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the effect clause of iter_swap in 25.2.2 paragraph 7 from:</p>
-<blockquote>
-<p>Exchanges the values pointed to by the two iterators a and b.</p>
-</blockquote>
-<p>to</p>
-<blockquote>
-<p><tt>swap(*a, *b)</tt>.</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>It's useful to say just what <tt>iter_swap</tt> does.  There may be
-  some iterators for which we want to specialize <tt>iter_swap</tt>,
-  but the fully general version should have a general specification.</p>
-
-<p>Note that in the specific case of <tt>list&lt;T&gt;::iterator</tt>,
-iter_swap should not be specialized as suggested above.  That would do
-much more than exchanging the two iterators' values: it would change
-predecessor/successor relationships, possibly moving the iterator from
-one list to another.  That would surely be inappropriate.</p>
-
-
-
-
-
-<hr>
-<h3><a name="189"></a>189. setprecision() not specified correctly</h3>
-<p><b>Section:</b> 27.5.3.2 [fmtflags.state] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 1999-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fmtflags.state">issues</a> in [fmtflags.state].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.4.2.2 paragraph 9 claims that setprecision() sets the precision,
-and includes a parenthetical note saying that it is the number of
-digits after the decimal point.<br/>
-<br/>
-This claim is not strictly correct.  For example, in the default
-floating-point output format, setprecision sets the number of
-significant digits printed, not the number of digits after the decimal
-point.<br/>
-<br/>
-I would like the committee to look at the definition carefully and
-correct the statement in 27.4.2.2</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove from 27.5.3.2 [fmtflags.state], paragraph 9, the text
-&quot;(number of digits after the decimal point)&quot;.</p>
-
-
-
-
-<hr>
-<h3><a name="193"></a>193. Heap operations description incorrect</h3>
-<p><b>Section:</b> 25.4.6 [alg.heap.operations] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Markus Mauhart <b>Opened:</b> 1999-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.heap.operations">issues</a> in [alg.heap.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#216">216</a></p>
-<p><b>Discussion:</b></p>
-<p>25.3.6 [lib.alg.heap.operations] states two key properties of a heap [a,b), the first of them
-is<br/>
-<br/>
-&nbsp;&nbsp;&nbsp; `"(1) *a is the largest element"<br/>
-<br/>
-I think this is incorrect and should be changed to the wording in the proposed
-resolution.</p>
-<p>Actually there are two independent changes:</p>
-<blockquote>
-  <p>A-&quot;part of largest equivalence class" instead of "largest", cause 25.3
-  [lib.alg.sorting] asserts "strict weak ordering" for all its sub clauses.</p>
-  <p>B-Take 'an oldest' from that equivalence class, otherwise the heap functions  could not be used for a
-  priority queue as explained in 23.2.3.2.2 [lib.priqueue.members] (where I assume that a "priority queue" respects  priority AND time).</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 25.4.6 [alg.heap.operations] property (1) from:</p>
-<blockquote>
-  <p>(1) *a is the largest element</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>(1) There is no element greater than <tt>*a</tt></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="195"></a>195. Should <tt>basic_istream::sentry</tt>'s constructor ever set eofbit?</h3>
-<p><b>Section:</b> 27.7.2.1.3 [istream::sentry] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1999-10-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::sentry">issues</a> in [istream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Suppose that <tt>is.flags() &amp; ios_base::skipws</tt> is nonzero.
-What should <tt>basic_istream&lt;&gt;::sentry</tt>'s constructor do if it
-reaches eof while skipping whitespace?  27.6.1.1.2/5 suggests it
-should set failbit. Should it set eofbit as well?  The standard
-doesn't seem to answer that question.</p>
-
-<p>On the one hand, nothing in 27.7.2.1.3 [istream::sentry] says that
-<tt>basic_istream&lt;&gt;::sentry</tt> should ever set eofbit.  On the
-other hand, 27.7.2.1 [istream] paragraph 4 says that if
-extraction from a <tt>streambuf</tt> &quot;returns
-<tt>traits::eof()</tt>, then the input function, except as explicitly
-noted otherwise, completes its actions and does
-<tt>setstate(eofbit)&quot;</tt>.  So the question comes down to
-whether <tt>basic_istream&lt;&gt;::sentry</tt>'s constructor is an
-input function.</p>
-
-<p>Comments from Jerry Schwarz:</p>
-<blockquote>
-<p>It was always my intention that eofbit should be set any time that a
-virtual returned something to indicate eof, no matter what reason
-iostream code had for calling the virtual.</p>
-<p>
-The motivation for this is that I did not want to require streambufs
-to behave consistently if their virtuals are called after they have
-signaled eof.</p>
-<p>
-The classic case is a streambuf reading from a UNIX file.  EOF isn't
-really a state for UNIX file descriptors.  The convention is that a
-read on UNIX returns 0 bytes to indicate &quot;EOF&quot;, but the file
-descriptor isn't shut down in any way and future reads do not
-necessarily also return 0 bytes.  In particular, you can read from
-tty's on UNIX even after they have signaled &quot;EOF&quot;.  (It
-isn't always understood that a ^D on UNIX is not an EOF indicator, but
-an EOL indicator.  By typing a &quot;line&quot; consisting solely of
-^D you cause a read to return 0 bytes, and by convention this is
-interpreted as end of file.)</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a sentence to the end of 27.6.1.1.2 paragraph 2:</p>
-<blockquote>
-<p>If <tt>is.rdbuf()-&gt;sbumpc()</tt> or <tt>is.rdbuf()-&gt;sgetc()</tt>
-returns <tt>traits::eof()</tt>, the function calls
-<tt>setstate(failbit | eofbit)</tt> (which may throw
-<tt>ios_base::failure</tt>).
-</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="198"></a>198. Validity of pointers and references unspecified after iterator destruction</h3>
-<p><b>Section:</b> X [iterator.concepts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 1999-11-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.concepts">issues</a> in [iterator.concepts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Is a pointer or reference obtained from an iterator still valid after
-destruction of the iterator?
-</p>
-<p>
-Is a pointer or reference obtained from an iterator still valid after the value
-of the iterator changes?
-</p>
-<blockquote>
-<pre>
-#include &lt;iostream&gt;
-#include &lt;vector&gt;
-#include &lt;iterator&gt;
-
-int main()
-{
-    typedef std::vector&lt;int&gt; vec_t;
-    vec_t v;
-    v.push_back( 1 );
-
-    // Is a pointer or reference obtained from an iterator still
-    // valid after destruction of the iterator?
-    int * p = &amp;*v.begin();
-    std::cout &lt;&lt; *p &lt;&lt; '\n';  // OK?
-
-    // Is a pointer or reference obtained from an iterator still
-    // valid after the value of the iterator changes?
-    vec_t::iterator iter( v.begin() );
-    p = &amp;*iter++;
-    std::cout &lt;&lt; *p &lt;&lt; '\n';  // OK?
-
-    return 0;
-}
-</pre>
-</blockquote>
-
-<p>The standard doesn't appear to directly address these
-questions. The standard needs to be clarified. At least two real-world
-cases have been reported where library implementors wasted
-considerable effort because of the lack of clarity in the
-standard. The question is important because requiring pointers and
-references to remain valid has the effect for practical purposes of
-prohibiting iterators from pointing to cached rather than actual
-elements of containers.</p>
-
-<p>The standard itself assumes that pointers and references obtained
-from an iterator are still valid after iterator destruction or
-change. The definition of reverse_iterator::operator*(), 24.5.1.3.3 [reverse.iter.conv], which returns a reference, defines
-effects:</p>
-
-<blockquote>
-  <pre>Iterator tmp = current;
-return *--tmp;</pre>
-</blockquote>
-<p>The definition of reverse_iterator::operator-&gt;(), 24.5.1.3.4 [reverse.iter.op.star], which returns a pointer, defines effects:</p>
-<blockquote>
-  <pre>return &amp;(operator*());</pre>
-</blockquote>
-
-<p>Because the standard itself assumes pointers and references remain
-valid after iterator destruction or change, the standard should say so
-explicitly. This will also reduce the chance of user code breaking
-unexpectedly when porting to a different standard library
-implementation.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a new paragraph to X [iterator.concepts]:</p>
-<blockquote><p>
-Destruction of an iterator may invalidate pointers and references
-previously obtained from that iterator.
-</p></blockquote>
-
-<p>Replace paragraph 1 of 24.5.1.3.3 [reverse.iter.conv] with:</p>
-
-<blockquote>
-<p><b>Effects:</b></p>
-<pre>
-  this->tmp = current;
-  --this->tmp;
-  return *this->tmp;
-</pre>
-
-<p>
-[<i>Note:</i> This operation must use an auxiliary member variable,
-rather than a temporary variable, to avoid returning a reference that
-persists beyond the lifetime of its associated iterator.  (See
-X [iterator.concepts].)  The name of this member variable is shown for
-exposition only.  <i>--end note</i>]
-</p>
-</blockquote>
-
-<p><i>[Post-Tokyo: The issue has been reformulated purely
-in terms of iterators.]</i></p>
-
-
-<p><i>[Pre-Toronto: Steve Cleary pointed out the no-invalidation
-assumption by reverse_iterator. The issue and proposed resolution was
-reformulated yet again to reflect this reality.]</i></p>
-
-
-<p><i>[Copenhagen: Steve Cleary pointed out that reverse_iterator
-assumes its underlying iterator has persistent pointers and
-references.  Andy Koenig pointed out that it is possible to rewrite
-reverse_iterator so that it no longer makes such an assupmption.
-However, this issue is related to issue <a href="lwg-closed.html#299">299</a>.  If we
-decide it is intentional that <tt>p[n]</tt> may return by value
-instead of reference when <tt>p</tt> is a Random Access Iterator,
-other changes in reverse_iterator will be necessary.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This issue has been discussed extensively.  Note that it is
-<i>not</i> an issue about the behavior of predefined iterators.  It is
-asking whether or not user-defined iterators are permitted to have
-transient pointers and references.  Several people presented examples
-of useful user-defined iterators that have such a property; examples
-include a B-tree iterator, and an "iota iterator" that doesn't point
-to memory.  Library implementors already seem to be able to cope with
-such iterators: they take pains to avoid forming references to memory
-that gets iterated past.  The only place where this is a problem is
-<tt>reverse_iterator</tt>, so this issue changes
-<tt>reverse_iterator</tt> to make it work.</p>
-
-<p>This resolution does not weaken any guarantees provided by
-predefined iterators like <tt>list&lt;int&gt;::iterator</tt>.
-Clause 23 should be reviewed to make sure that guarantees for
-predefined iterators are as strong as users expect.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="199"></a>199. What does <tt>allocate(0)</tt> return?</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1999-11-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Suppose that <tt>A</tt> is a class that conforms to the
-Allocator requirements of Table 32, and <tt>a</tt> is an
-object of class <tt>A</tt>  What should be the return
-value of <tt>a.allocate(0)</tt>?  Three reasonable
-possibilities: forbid the argument <tt>0</tt>, return
-a null pointer, or require that the return value be a
-unique non-null pointer.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a note to the <tt>allocate</tt> row of Table 32:
-&quot;[<i>Note:</i> If <tt>n == 0</tt>, the return value is unspecified. <i>--end note</i>]&quot;</p>
-
-
-<p><b>Rationale:</b></p>
-<p>A key to understanding this issue is that the ultimate use of
-allocate() is to construct an iterator, and that iterator for zero
-length sequences must be the container's past-the-end
-representation.  Since this already implies special case code, it
-would be over-specification to mandate the return value.
-</p>
-
-
-
-
-<hr>
-<h3><a name="200"></a>200. Forward iterator requirements don't allow constant iterators</h3>
-<p><b>Section:</b> 24.2.5 [forward.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 1999-11-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward.iterators">issues</a> in [forward.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In table 74, the return type of the expression <tt>*a</tt> is given
-as <tt>T&amp;</tt>, where <tt>T</tt> is the iterator's value type.
-For constant iterators, however, this is wrong.  ("Value type"
-is never defined very precisely, but it is clear that the value type
-of, say, <tt>std::list&lt;int&gt;::const_iterator</tt> is supposed to be
-<tt>int</tt>, not <tt>const int</tt>.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In table 74, in the <tt>*a</tt> and <tt>*r++</tt> rows, change the
-return type from "<tt>T&amp;</tt>" to "<tt>T&amp;</tt>
-if <tt>X</tt> is mutable, otherwise <tt>const T&amp;</tt>".
-In the <tt>a-&gt;m</tt> row, change the return type from
-"<tt>U&amp;</tt>" to "<tt>U&amp;</tt> if <tt>X</tt> is mutable,
-otherwise <tt>const U&amp;</tt>".
-</p>
-
-<p><i>[Tokyo: The LWG believes this is the tip of a larger iceberg;
-there are multiple const problems with the STL portion of the library
-and that these should be addressed as a single package.&nbsp; Note
-that issue <a href="lwg-defects.html#180">180</a> has already been declared NAD Future for
-that very reason.]</i></p>
-
-
-<p><i>[Redmond: the LWG thinks this is separable from other constness
-issues.  This issue is just cleanup; it clarifies language that was
-written before we had iterator_traits.  Proposed resolution was
-modified: the original version only discussed *a.  It was pointed out
-that we also need to worry about *r++ and a-&gt;m.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="201"></a>201. Numeric limits terminology wrong</h3>
-<p><b>Section:</b> 18.3.2 [limits] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Stephen Cleary <b>Opened:</b> 1999-12-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#limits">issues</a> in [limits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In some places in this section, the terms "fundamental types" and
-"scalar types" are used when the term "arithmetic types" is intended.
-The current usage is incorrect because void is a fundamental type and
-pointers are scalar types, neither of which should have
-specializations of numeric_limits.
-</p>
-<p><i>[Lillehammer: it remains true that numeric_limits is using
-  imprecise language. However, none of the proposals for changed
-  wording are clearer.  A redesign of numeric_limits is needed, but this
-  is more a task than an open issue.]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 18.3 [support.limits] to:
-</p>
-
-<blockquote>
-<p>
--1- The headers <tt>&lt;limits&gt;</tt>, <tt>&lt;climits&gt;</tt>,
-<tt>&lt;cfloat&gt;</tt>, and <tt>&lt;cinttypes&gt;</tt> supply
-characteristics of implementation-dependent <del>fundamental</del>
-<ins>arithmetic</ins> types (3.9.1).
-</p>
-</blockquote>
-
-<p>
-Change 18.3.2 [limits] to:
-</p>
-
-<blockquote>
-<p>
--1- The <tt>numeric_limits</tt> component provides a C++ program with
-information about various properties of the implementation's
-representation of the <del>fundamental</del> <ins>arithmetic</ins>
-types.
-</p>
-<p>
--2- Specializations shall be provided for each <del>fundamental</del>
-<ins>arithmetic</ins> type, both floating point and integer, including
-<tt>bool</tt>. The member <tt>is_specialized</tt> shall be <tt>true</tt>
-for all such specializations of <tt>numeric_limits</tt>.
-</p>
-<p>
--4- Non-<del>fundamental</del><ins>arithmetic</ins> standard types, such
-as <tt>complex&lt;T&gt;</tt> (26.3.2), shall not have specializations.
-</p>
-</blockquote>
-
-<p>
-Change 18.3.2.3 [numeric.limits] to:
-</p>
-
-<blockquote>
-<p>
-<del>-1- The member <tt>is_specialized</tt> makes it possible to distinguish
-between fundamental types, which have specializations, and non-scalar types,
-which do not.</del>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="202"></a>202. unique() effects unclear when predicate not an equivalence relation</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2000-01-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-What should unique() do if you give it a predicate that is not an
-equivalence relation?  There are at least two plausible answers:
-</p>
-
-<blockquote>
-
-<p>
-   1. You can't, because 25.2.8 says that it it "eliminates all but
-   the first element from every consecutive group of equal
-   elements..." and it wouldn't make sense to interpret "equal" as
-   meaning anything but an equivalence relation.  [It also doesn't
-   make sense to interpret "equal" as meaning ==, because then there
-   would never be any sense in giving a predicate as an argument at
-   all.]
-</p>
-
-<p>
-   2. The word "equal" should be interpreted to mean whatever the
-   predicate says, even if it is not an equivalence relation
-   (and in particular, even if it is not transitive).
-</p>
-
-</blockquote>
-
-<p>
-The example that raised this question is from Usenet:
-</p>
-
-<blockquote>
-
-<pre>int f[] = { 1, 3, 7, 1, 2 };
-int* z = unique(f, f+5, greater&lt;int&gt;());</pre>
-
-</blockquote>
-
-<p>
-If one blindly applies the definition using the predicate
-greater&lt;int&gt;, and ignore the word "equal", you get:
-</p>
-
-<blockquote>
-
-<p>
-    Eliminates all but the first element from every consecutive group    
-    of elements referred to by the iterator i in the range [first, last)    
-    for which *i &gt; *(i - 1).
-</p>
-
-</blockquote>
-
-<p>
-The first surprise is the order of the comparison.  If we wanted to
-allow for the predicate not being an equivalence relation, then we
-should surely compare elements the other way: pred(*(i - 1), *i).  If
-we do that, then the description would seem to say: "Break the
-sequence into subsequences whose elements are in strictly increasing
-order, and keep only the first element of each subsequence".  So the
-result would be 1, 1, 2.  If we take the description at its word, it
-would seem to call for strictly DEcreasing order, in which case the
-result should be 1, 3, 7, 2.<br/>
-<br/>
-In fact, the SGI implementation of unique() does neither: It yields 1,
-3, 7.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 25.3.9 [alg.unique] paragraph 1 to:</p>
-<blockquote><p>
-For a nonempty range, eliminates all but the first element from every
-consecutive group of equivalent elements referred to by the iterator
-<tt>i</tt> in the range [first+1, last) for which the following
-conditions hold: <tt>*(i-1) == *i</tt> or <tt>pred(*(i-1), *i) !=
-false</tt>.
-</p></blockquote>
-
-<p>
-Also insert a new paragraph, paragraph 2a, that reads: "Requires: The
-comparison function must be an equivalence relation."
-</p>
-
-<p><i>[Redmond: discussed arguments for and against requiring the
-comparison function to be an equivalence relation.  Straw poll:
-14-2-5.  First number is to require that it be an equivalence
-relation, second number is to explicitly not require that it be an
-equivalence relation, third number is people who believe they need
-more time to consider the issue.  A separate issue: Andy Sawyer
-pointed out that "i-1" is incorrect, since "i" can refer to the first
-iterator in the range.  Matt provided wording to address this
-problem.]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: The LWG changed &quot;... the range (first,
-last)...&quot; to &quot;...  the range [first+1, last)...&quot; for
-clarity. They considered this change close enough to editorial to not
-require another round of review.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG also considered an alternative resolution: change 
-25.3.9 [alg.unique] paragraph 1 to:</p>
-
-<blockquote><p>
-For a nonempty range, eliminates all but the first element from every
-consecutive group of elements referred to by the iterator
-<tt>i</tt> in the range (first, last) for which the following
-conditions hold: <tt>*(i-1) == *i</tt> or <tt>pred(*(i-1), *i) !=
-false</tt>.
-</p></blockquote>
-
-<p>
-Also insert a new paragraph, paragraph 1a, that reads: "Notes: The
-comparison function need not be an equivalence relation."
-</p>
-
-
-<p>Informally: the proposed resolution imposes an explicit requirement
-that the comparison function be an equivalence relation.  The
-alternative resolution does not, and it gives enough information so
-that the behavior of unique() for a non-equivalence relation is
-specified.  Both resolutions are consistent with the behavior of
-existing implementations.</p>
-
-
-
-
-
-<hr>
-<h3><a name="206"></a>206. operator new(size_t, nothrow) may become unlinked to ordinary operator new if ordinary version replaced</h3>
-<p><b>Section:</b> 18.6.1.1 [new.delete.single] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 1999-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.single">issues</a> in [new.delete.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>As specified, the implementation of the nothrow version of operator
-new does not necessarily call the ordinary operator new, but may
-instead simply call the same underlying allocator and return a null
-pointer instead of throwing an exception in case of failure.</p>
-
-<p>Such an implementation breaks code that replaces the ordinary
-version of new, but not the nothrow version. If the ordinary version
-of new/delete is replaced, and if the replaced delete is not
-compatible with pointers returned from the library versions of new,
-then when the replaced delete receives a pointer allocated by the
-library new(nothrow), crash follows.</p>
-
-<p>The fix appears to be that the lib version of new(nothrow) must
-call the ordinary new. Thus when the ordinary new gets replaced, the
-lib version will call the replaced ordinary new and things will
-continue to work.</p>
-
-<p>An alternative would be to have the ordinary new call
-new(nothrow). This seems sub-optimal to me as the ordinary version of
-new is the version most commonly replaced in practice. So one would
-still need to replace both ordinary and nothrow versions if one wanted
-to replace the ordinary version.</p>
-
-<p>Another alternative is to put in clear text that if one version is
-replaced, then the other must also be replaced to maintain
-compatibility. Then the proposed resolution below would just be a
-quality of implementation issue. There is already such text in
-paragraph 7 (under the new(nothrow) version). But this nuance is
-easily missed if one reads only the paragraphs relating to the
-ordinary new.</p>
-
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2158.html">N2158</a>
-has been written explaining the rationale for the proposed resolution below.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.5.1.1 [new.delete.single]:
-</p>
-
-<blockquote>
-<pre>
-void* operator new(std::size_t <i>size</i>, const std::nothrow_t&amp;) throw();
-</pre>
-<blockquote>
-<p>
--5- <i>Effects:</i> Same as above, except that it is called by a placement
-version of a <i>new-expression</i> when a C++ program prefers a null pointer result as
-an error indication, instead of a <tt>bad_alloc</tt> exception.
-</p>
-
-<p>
--6- <i>Replaceable:</i> a C++ program may define a function with this function
-signature that displaces the default version defined by the C++ Standard
-library.
-</p>
-
-<p>
--7- <i>Required behavior:</i> Return a non-null pointer to suitably aligned
-storage (3.7.4), or else return a null pointer. This nothrow version of operator
-new returns a pointer obtained as if acquired from the <ins>(possibly
-replaced)</ins> ordinary version. This requirement is binding on a replacement
-version of this function.
-</p>
-
-<p>
--8- <i>Default behavior:</i>
-</p>
-<ul>
-<li><ins>
-Calls <tt>operator new(<i>size</i>)</tt>.
-</ins></li>
-<li><ins>
-If the call to <tt>operator new(<i>size</i>)</tt> returns normally, returns
-the result of that call, else
-</ins></li>
-<li><ins>
-if the call to <tt>operator new(<i>size</i>)</tt> throws an exception, returns
-a null pointer.
-</ins></li>
-<li><del>
-Executes a loop: Within the loop, the function first attempts to allocate the
-requested storage. Whether the attempt involves a call to the Standard C library
-function <tt>malloc</tt> is unspecified.
-</del></li>
-<li><del>
-Returns a pointer to the allocated storage if the attempt is successful.
-Otherwise, if the last argument to <tt>set_new_handler()</tt> was a null
-pointer, return a null pointer.
-</del></li>
-<li><del>
-Otherwise, the function calls the current <i>new_handler</i> (18.5.2.2). If the
-called function returns, the loop repeats.
-</del></li>
-<li><del>
-The loop terminates when an attempt to allocate the requested storage is
-successful or when a called <i>new_handler</i> function does not return. If the
-called <i>new_handler</i> function terminates by throwing a <tt>bad_alloc
-exception</tt>, the function returns a null pointer.
-</del></li>
-</ul>
-<p>
--9- [<i>Example:</i>
-</p>
-<blockquote><pre>
-T* p1 = new T;                 <i>// throws bad_alloc if it fails</i>
-T* p2 = new(nothrow) T;        <i>// returns 0 if it fails</i>
-</pre></blockquote>
-<p>
---<i>end example</i>]
-</p>
-</blockquote>
-
-<pre>
-void operator delete(void* <i>ptr</i>) throw();
-<del>void operator delete(void* <i>ptr</i>, const std::nothrow_t&amp;) throw();</del>
-</pre>
-
-<blockquote>
-<p>
--10- <i>Effects:</i> The <i>deallocation function</i> (3.7.4.2) called by a
-<i>delete-expression</i> to render the value of <tt><i>ptr</i></tt> invalid.
-</p>
-<p>
--11- <i>Replaceable:</i> a C++ program may define a function with this function
-signature that displaces the default version defined by the C++ Standard
-library.
-</p>
-<p>
--12- <i>Requires:</i> the value of <tt><i>ptr</i></tt> is null or the value
-returned by an earlier call to the <del>default</del> <ins>(possibly
-replaced)</ins> <tt>operator new(std::size_t)</tt> or <tt>operator
-new(std::size_t, const std::nothrow_t&amp;)</tt>.
-</p>
-<p>
--13- <i>Default behavior:</i>
-</p>
-<ul>
-<li>
-For a null value of <tt><i>ptr</i></tt>, do nothing.
-</li>
-<li>
-Any other value of <tt><i>ptr</i></tt> shall be a value returned earlier by a
-call to the default <tt>operator new</tt>, which was not invalidated by an
-intervening call to <tt>operator delete(void*)</tt> (17.4.3.7). For such a
-non-null value of <tt><i>ptr</i></tt>, reclaims storage allocated by the earlier
-call to the default <tt>operator new</tt>.
-</li>
-</ul>
-<p>
--14- <i>Remarks:</i>  It is unspecified under what conditions part or all of
-such reclaimed storage is allocated by a subsequent call to <tt>operator
-new</tt> or any of <tt>calloc</tt>, <tt>malloc</tt>, or <tt>realloc</tt>,
-declared in <tt>&lt;cstdlib&gt;</tt>.
-</p>
-</blockquote>
-
-<pre>
-<ins>void operator delete(void* <i>ptr</i>, const std::nothrow_t&amp;) throw();</ins>
-</pre>
-
-<blockquote>
-<p><ins>
--15- <i>Effects:</i> Same as above, except that it is called by the
-implementation when an exception propagates from a nothrow placement version
-of the <i>new-expression</i> (i.e. when the constructor throws an exception).
-</ins></p>
-<p><ins>
--16- <i>Replaceable:</i> a C++ program may define a function with this function
-signature that displaces the default version defined by the C++ Standard
-library.
-</ins></p>
-<p><ins>
--17- <i>Requires:</i> the value of <tt><i>ptr</i></tt> is null or the
-value returned by an earlier call to the (possibly replaced) <tt>operator
-new(std::size_t)</tt> or <tt>operator new(std::size_t, const
-std::nothrow_t&amp;)</tt>. </ins></p>
-<p><ins>
--18- <i>Default behavior:</i> Calls <tt>operator delete(<i>ptr</i>)</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 18.5.1.2 [new.delete.array]
-</p>
-
-<blockquote>
-<pre>
-void* operator new[](std::size_t <i>size</i>, const std::nothrow_t&amp;) throw();
-</pre>
-
-<blockquote>
-<p>
--5- <i>Effects:</i> Same as above, except that it is called by a placement
-version of a <i>new-expression</i> when a C++ program prefers a null pointer result as
-an error indication, instead of a <tt>bad_alloc</tt> exception.
-</p>
-
-<p>
--6- <i>Replaceable:</i>  a C++ program can define a function with this function
-signature that displaces the default version defined by the C++ Standard
-library.
-</p>
-
-<p>
--7- <i>Required behavior:</i> <del>Same as for operator <tt>new(std::size_t,
-const std::nothrow_t&amp;)</tt>. This nothrow version of operator <tt>new[]</tt>
-returns a pointer obtained as if acquired from the ordinary version.</del>
-<ins>Return a non-null pointer to suitably aligned storage (3.7.4), or else
-return a null pointer. This nothrow version of operator new returns a pointer
-obtained as if acquired from the (possibly replaced) <tt>operator
-new[](std::size_t <i>size</i>)</tt>. This requirement is binding on a
-replacement version of this function.</ins>
-</p>
-
-<p>
--8- <i>Default behavior:</i> <del>Returns <tt>operator new(<i>size</i>,
-nothrow)</tt>.</del>
-</p>
-
-<ul>
-<li><ins>
-Calls <tt>operator new[](<i>size</i>)</tt>.
-</ins></li>
-<li><ins>
-If the call to <tt>operator new[](<i>size</i>)</tt> returns normally, returns
-the result of that call, else
-</ins></li>
-<li><ins>
-if the call to <tt>operator new[](<i>size</i>)</tt> throws an exception, returns
-a null pointer.
-</ins></li>
-</ul>
-</blockquote>
-
-<pre>
-void operator delete[](void* <i>ptr</i>) throw(); 
-void operator delete[](void* <i>ptr</i>, const std::nothrow_t&amp;) throw();
-</pre>
-
-<blockquote>
-<p>
--9- <i>Effects:</i> The <i>deallocation function</i> (3.7.4.2) called by the
-array form of a <i>delete-expression</i> to render the value of
-<tt><i>ptr</i></tt> invalid.
-</p>
-
-<p>
--10- <i>Replaceable:</i> a C++ program can define a function with this function
-signature that displaces the default version defined by the C++ Standard
-library.
-</p>
-
-<p>
--11- <i>Requires:</i> the value of
-<tt><i>ptr</i></tt> is null or the value returned by an earlier call to
-<tt>operator new[](std::size_t)</tt> or <tt>operator new[](std::size_t, const
-std::nothrow_t&amp;)</tt>.
-</p>
-
-<p>
--12- <i>Default behavior:</i> Calls <tt>operator delete(<i>ptr</i>)</tt> or
-<tt>operator delete<ins>[]</ins>(<i>ptr</i><del>, std::nothrow</del>)</tt> respectively.
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Yes, they may become unlinked, and that is by design. If a user
-replaces one, the user should also replace the other.</p>
-
-<p><i>[
-Reopened due to a gcc conversation between Howard, Martin and Gaby.  Forwarding
-or not is visible behavior to the client and it would be useful for the client
-to know which behavior it could depend on.
-]</i></p>
-
-
-<p><i>[
-Batavia: Robert voiced serious reservations about backwards compatibility for
-his customers.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="208"></a>208. Unnecessary restriction on past-the-end iterators</h3>
-<p><b>Section:</b> X [iterator.concepts] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Stephen Cleary <b>Opened:</b> 2000-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.concepts">issues</a> in [iterator.concepts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 24.1 paragraph 5, it is stated &quot;. . . Dereferenceable and
-past-the-end values are always non-singular.&quot;</p>
-<p>This places an unnecessary restriction on past-the-end iterators for
-containers with forward iterators (for example, a singly-linked list). If the
-past-the-end value on such a container was a well-known singular value, it would
-still satisfy all forward iterator requirements.</p>
-<p>Removing this restriction would allow, for example, a singly-linked list
-without a &quot;footer&quot; node.</p>
-<p>This would have an impact on existing code that expects past-the-end
-iterators obtained from different (generic) containers being not equal.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change X [iterator.concepts] paragraph 5, the last sentence, from:</p>
-<blockquote>
-<p>Dereferenceable and past-the-end values are always non-singular.</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-<p>Dereferenceable values are always non-singular.&nbsp;</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>For some kinds of containers, including singly linked lists and
-zero-length vectors, null pointers are perfectly reasonable past-the-end
-iterators.  Null pointers are singular.
-</p>
-
-
-
-
-<hr>
-<h3><a name="209"></a>209. basic_string declarations inconsistent</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Igor Stauder <b>Opened:</b> 2000-02-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In Section 21.4 [basic.string] the basic_string member function
-declarations use a consistent style except for the following functions:</p>
-<blockquote>
-  <pre>void push_back(const charT);
-basic_string&amp; assign(const basic_string&amp;);
-void swap(basic_string&lt;charT,traits,Allocator&gt;&amp;);</pre>
-</blockquote>
-<p>- push_back, assign, swap: missing argument name&nbsp;<br/>
-- push_back: use of const with charT (i.e. POD type passed by value
-not by reference - should be charT or const charT&amp; )<br/>
-- swap: redundant use of template parameters in argument
-basic_string&lt;charT,traits,Allocator&gt;&amp;</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In Section 21.4 [basic.string] change the basic_string member
-function declarations push_back, assign, and swap to:</p>
-<blockquote>
-  <pre>void push_back(charT c); 
-
-basic_string&amp; assign(const basic_string&amp; str);
-void swap(basic_string&amp; str);</pre>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Although the standard is in general not consistent in declaration
-style, the basic_string declarations are consistent other than the
-above.  The LWG felt that this was sufficient reason to merit the
-change.
-</p>
-
-
-
-
-<hr>
-<h3><a name="210"></a>210. distance first and last confused</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Lisa Lippincott <b>Opened:</b> 2000-02-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In paragraph 9 of section 25 [algorithms], it is written:</p>
-<blockquote>
-  <p>      In the description of the algorithms operators + and - are used
-           for some of the iterator categories for which they do not have to
-           be defined. In these cases the semantics of [...] a-b is the same
-           as of<br/>
-  <br/>
-  &nbsp;&nbsp;&nbsp;&nbsp; <tt>return distance(a, b);</tt></p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>On the last line of paragraph 9 of section 25 [algorithms] change
-<tt>&quot;a-b&quot;</tt> to <tt>&quot;b-a&quot;.</tt></p>
-
-
-<p><b>Rationale:</b></p>
-<p>There are two ways to fix the defect; change the description to b-a
-or change the return to distance(b,a).  The LWG preferred the
-former for consistency.</p>
-
-
-
-
-<hr>
-<h3><a name="211"></a>211. operator&gt;&gt;(istream&amp;, string&amp;) doesn't set failbit</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Scott Snyder <b>Opened:</b> 2000-02-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The description of the stream extraction operator for std::string (section
-21.3.7.9 [lib.string.io]) does not contain a requirement that failbit be set in
-the case that the operator fails to extract any characters from the input
-stream.</p>
-<p>This implies that the typical construction</p>
-<blockquote>
-  <pre>std::istream is;
-std::string str;
-...
-while (is &gt;&gt; str) ... ;</pre>
-</blockquote>
-<p>(which tests failbit) is not required to terminate at EOF.</p>
-<p>Furthermore, this is inconsistent with other extraction operators,
-which do include this requirement. (See sections 27.7.2.2 [istream.formatted] and 27.7.2.3 [istream.unformatted]), where this
-requirement is present, either explicitly or implicitly, for the
-extraction operators. It is also present explicitly in the description
-of getline (istream&amp;, string&amp;, charT) in section 21.4.8.9 [string.io] paragraph 8.)</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Insert new paragraph after paragraph 2 in section 21.4.8.9 [string.io]:</p>
-<blockquote>
-
-<p>If the function extracts no characters, it calls
-is.setstate(ios::failbit) which may throw ios_base::failure
-(27.4.4.3).</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="212"></a>212. Empty range behavior unclear for several algorithms</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Nico Josuttis <b>Opened:</b> 2000-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The standard doesn't specify what min_element() and max_element() shall
-return if the range is empty (first equals last). The usual implementations
-return last. This problem seems also apply to partition(), stable_partition(),
-next_permutation(), and prev_permutation().</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 25.4.7 [alg.min.max] - Minimum and maximum, paragraphs 7 and
-9, append: Returns last if first==last.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG looked in some detail at all of the above mentioned
-algorithms, but believes that except for min_element() and
-max_element() it is already clear that last is returned if first ==
-last.</p>
-
-
-
-
-<hr>
-<h3><a name="214"></a>214. set::find() missing const overload</h3>
-<p><b>Section:</b> 23.4.6 [set], 23.4.7 [multiset] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-02-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#set">issues</a> in [set].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#450">450</a></p>
-<p><b>Discussion:</b></p>
-<p>The specification for the associative container requirements in
-Table 69 state that the find member function should &quot;return
-iterator; const_iterator for constant a&quot;. The map and multimap
-container descriptions have two overloaded versions of find, but set
-and multiset do not, all they have is:</p>
-<blockquote>
-  <pre>iterator find(const key_type &amp; x) const;</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the prototypes for find(), lower_bound(), upper_bound(), and
-equal_range() in section 23.4.6 [set] and section 23.4.7 [multiset] to each have two overloads:</p>
-<blockquote>
-  <pre>iterator find(const key_type &amp; x);
-const_iterator find(const key_type &amp; x) const;</pre>
-  <pre>iterator lower_bound(const key_type &amp; x);
-const_iterator lower_bound(const key_type &amp; x) const;</pre>
-  <pre>iterator upper_bound(const key_type &amp; x);
-const_iterator upper_bound(const key_type &amp; x) const;</pre>
-  <pre>pair&lt;iterator, iterator&gt; equal_range(const key_type &amp; x);
-pair&lt;const_iterator, const_iterator&gt; equal_range(const key_type &amp; x) const;</pre>
-</blockquote>
-
-<p><i>[Tokyo: At the request of the LWG, Judy Ward provided wording
-extending the proposed resolution to lower_bound, upper_bound, and
-equal_range.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="217"></a>217. Facets example (Classifying Japanese characters) contains errors</h3>
-<p><b>Section:</b> 22.4.8 [facets.examples] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-02-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facets.examples">issues</a> in [facets.examples].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The example in 22.2.8, paragraph 11 contains the following errors:</p>
-<p>1) The member function `My::JCtype::is_kanji()' is non-const; the function
-must be const in order for it to be callable on a const object (a reference to
-which which is what std::use_facet&lt;&gt;() returns).</p>
-<p>2) In file filt.C, the definition of `JCtype::id' must be qualified with the
-name of the namespace `My'.</p>
-<p>3) In the definition of `loc' and subsequently in the call to use_facet&lt;&gt;()
-in main(), the name of the facet is misspelled: it should read `My::JCtype'
-rather than `My::JCType'.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the &quot;Classifying Japanese characters&quot; example in 22.2.8,
-paragraph 11 with the following:</p>
-<pre>#include &lt;locale&gt;</pre>
-<pre>namespace My {
-    using namespace std;
-    class JCtype : public locale::facet {
-    public:
-        static locale::id id;     //  required for use as a new locale facet
-        bool is_kanji (wchar_t c) const;
-        JCtype() {}
-    protected:
-        ~JCtype() {}
-    };
-}</pre>
-<pre>//  file:  filt.C
-#include &lt;iostream&gt;
-#include &lt;locale&gt;
-#include &quot;jctype&quot;                 //  above
-std::locale::id My::JCtype::id;   //  the static  JCtype  member
-declared above.</pre>
-<pre>int main()
-{
-    using namespace std;
-    typedef ctype&lt;wchar_t&gt; wctype;
-    locale loc(locale(&quot;&quot;),              //  the user's preferred locale...
-               new My::JCtype);         //  and a new feature ...
-    wchar_t c = use_facet&lt;wctype&gt;(loc).widen('!');
-    if (!use_facet&lt;My::JCtype&gt;(loc).is_kanji(c))
-        cout &lt;&lt; &quot;no it isn't!&quot; &lt;&lt; endl;
-    return 0;
-}</pre>
-
-
-
-
-<hr>
-<h3><a name="220"></a>220. ~ios_base() usage valid?</h3>
-<p><b>Section:</b> 27.5.3.7 [ios.base.cons] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Jonathan Schilling, Howard Hinnant <b>Opened:</b> 2000-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The pre-conditions for the ios_base destructor are described in 27.4.2.7
-paragraph 2:</p>
-<blockquote>
-  <p>Effects: Destroys an object of class ios_base. Calls each registered
-  callback pair (fn,index) (27.4.2.6) as (*fn)(erase_event,*this,index) at such
-  time that any ios_base member function called from within fn has well defined
-  results.</p>
-</blockquote>
-<p>But what is not clear is: If no callback functions were ever registered, does
-it matter whether the ios_base members were ever initialized?</p>
-<p>For instance, does this program have defined behavior:</p>
-<blockquote>
-  <pre>#include &lt;ios&gt;</pre>
-  <pre>class D : public std::ios_base { };</pre>
-  <pre>int main() { D d; }</pre>
-</blockquote>
-<p>It seems that registration of a callback function would surely affect the
-state of an ios_base. That is, when you register a callback function with an
-ios_base, the ios_base must record that fact somehow.</p>
-<p>But if after construction the ios_base is in an indeterminate state, and that
-state is not made determinate before the destructor is called, then how would
-the destructor know if any callbacks had indeed been registered? And if the
-number of callbacks that had been registered is indeterminate, then is not the
-behavior of the destructor undefined?</p>
-<p>By comparison, the basic_ios class description in 27.4.4.1 paragraph 2 makes
-it explicit that destruction before initialization results in undefined
-behavior.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Modify 27.4.2.7 paragraph 1 from</p>
-<blockquote>
-  <p>Effects: Each ios_base member has an indeterminate value after
-  construction.</p>
-</blockquote>
-<p>to</p>
-<blockquote>
-  <p>Effects: Each ios_base member has an indeterminate value after
-  construction. These members must be initialized by calling basic_ios::init. If an ios_base object is destroyed before these initializations
-  have taken place, the behavior is undefined.</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="221"></a>221. num_get&lt;&gt;::do_get stage 2 processing broken</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2000-03-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Stage 2 processing of numeric conversion is broken.</p>
-
-<p>Table 55 in 22.2.2.1.2 says that when basefield is 0 the integral
-conversion specifier is %i. A %i specifier determines a number's base
-by its prefix (0 for octal, 0x for hex), so the intention is clearly
-that a 0x prefix is allowed.  Paragraph 8 in the same section,
-however, describes very precisely how characters are processed. (It
-must be done &quot;as if&quot; by a specified code fragment.) That
-description does not allow a 0x prefix to be recognized.</p>
-
-<p>Very roughly, stage 2 processing reads a char_type ct. It converts
-ct to a char, not by using narrow but by looking it up in a
-translation table that was created by widening the string literal
-&quot;0123456789abcdefABCDEF+-&quot;. The character &quot;x&quot; is
-not found in that table, so it can't be recognized by stage 2
-processing.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.2.2.1.2 paragraph 8, replace the line:</p>
-<blockquote>
-  <pre>static const char src[] = &quot;0123456789abcdefABCDEF+-&quot;;</pre>
-</blockquote>
-<p>with the line:</p>
-<blockquote>
-  <pre>static const char src[] = &quot;0123456789abcdefxABCDEFX+-&quot;;</pre>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>If we're using the technique of widening a string literal, the
-string literal must contain every character we wish to recognize.
-This technique has the consequence that alternate representations
-of digits will not be recognized.  This design decision was made
-deliberately, with full knowledge of that limitation.</p>
-
-
-
-
-
-<hr>
-<h3><a name="222"></a>222. Are throw clauses necessary if a throw is already implied by the effects clause?</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-03-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 21.3.6.8 describes the basic_string::compare function this way:</p>
-<blockquote>
-  <pre>21.3.6.8 - basic_string::compare [lib.string::compare]
-
-int compare(size_type pos1, size_type n1,
-                const basic_string&lt;charT,traits,Allocator&gt;&amp;  str ,
-                size_type  pos2 , size_type  n2 ) const;
-
--4- Returns: 
-
-    basic_string&lt;charT,traits,Allocator&gt;(*this,pos1,n1).compare(
-                 basic_string&lt;charT,traits,Allocator&gt;(str,pos2,n2)) .</pre>
-</blockquote>
-<p>and the constructor that's implicitly called by the above is
-defined to throw an out-of-range exception if pos &gt; str.size(). See
-section 21.4.1 [string.require] paragraph 4.</p>
-
-<p>On the other hand, the compare function descriptions themselves don't have
-&quot;Throws: &quot; clauses and according to 17.3.1.3, paragraph 3, elements
-that do not apply to a function are omitted.</p>
-<p>So it seems there is an inconsistency in the standard -- are the
-&quot;Effects&quot; clauses correct, or are the &quot;Throws&quot; clauses
-missing?</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 17.5.1.4 [structure.specifications] paragraph 3, the footnote 148 attached to
-the sentence &quot;Descriptions of function semantics contain the
-following elements (as appropriate):&quot;, insert the word
-&quot;further&quot; so that the foot note reads:</p>
-<blockquote>
-  <p>To save space, items that do not apply to a function are
-  omitted. For example, if a function does not specify any further
-  preconditions, there will be no &quot;Requires&quot; paragraph.</p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The standard is somewhat inconsistent, but a failure to note a
-throw condition in a throws clause does not grant permission not to
-throw.  The inconsistent wording is in a footnote, and thus
-non-normative. The proposed resolution from the LWG clarifies the
-footnote.</p>
-
-
-
-
-<hr>
-<h3><a name="223"></a>223. reverse algorithm should use iter_swap rather than swap</h3>
-<p><b>Section:</b> 25.3.10 [alg.reverse] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2000-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.reverse">issues</a> in [alg.reverse].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Shouldn't the effects say "applies iter_swap to all pairs..."?</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 25.3.10 [alg.reverse], replace:</p>
-  <blockquote><p>
-  Effects: For each non-negative integer i &lt;= (last - first)/2, 
-  applies swap to all pairs of iterators first + i, (last - i) - 1.
-  </p></blockquote>
-<p>with:</p>
-  <blockquote><p>
-  Effects: For each non-negative integer i &lt;= (last - first)/2, 
-  applies iter_swap to all pairs of iterators first + i, (last - i) - 1.
-  </p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="224"></a>224. clear() complexity for associative containers refers to undefined N</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Ed Brey <b>Opened:</b> 2000-03-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In the associative container requirements table in 23.1.2 paragraph 7,
-a.clear() has complexity &quot;log(size()) + N&quot;. However, the meaning of N
-is not defined.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In the associative container requirements table in 23.1.2 paragraph
-7, the complexity of a.clear(), change &quot;log(size()) + N&quot; to
-&quot;linear in <tt>size()</tt>&quot;.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>It's the &quot;log(size())&quot;, not the &quot;N&quot;, that is in
-error: there's no difference between <i>O(N)</i> and <i>O(N +
-log(N))</i>.  The text in the standard is probably an incorrect
-cut-and-paste from the range version of <tt>erase</tt>.</p>
-
-
-
-
-<hr>
-<h3><a name="225"></a>225. std:: algorithms use of other unqualified algorithms</h3>
-<p><b>Section:</b> 17.6.5.4 [global.functions] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2000-04-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#global.functions">issues</a> in [global.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Are algorithms in std:: allowed to use other algorithms without qualification, so functions in
-user namespaces might be found through Koenig lookup?</p>
-<p>For example, a popular standard library implementation includes this
-implementation of std::unique:</p>
-<blockquote>
-<pre>namespace std {
-    template &lt;class _ForwardIter&gt;
-    _ForwardIter unique(_ForwardIter __first, _ForwardIter __last) {
-      __first = adjacent_find(__first, __last);
-      return unique_copy(__first, __last, __first);
-    }
-    }</pre>
-</blockquote>
-<p>Imagine two users on opposite sides of town, each using unique on his own
-sequences bounded by my_iterators . User1 looks at his standard library
-implementation and says, &quot;I know how to implement a more efficient
-unique_copy for my_iterators&quot;, and writes:</p>
-<blockquote>
-<pre>namespace user1 {
-    class my_iterator;
-    // faster version for my_iterator
-    my_iterator unique_copy(my_iterator, my_iterator, my_iterator);
-    }</pre>
-</blockquote>
-<p>user1::unique_copy() is selected by Koenig lookup, as he intended.</p>
-<p>User2 has other needs, and writes:</p>
-<blockquote>
-<pre>namespace user2 {
-    class my_iterator;
-    // Returns true iff *c is a unique copy of *a and *b.
-    bool unique_copy(my_iterator a, my_iterator b, my_iterator c);
-    }</pre>
-</blockquote>
-<p>User2 is shocked to find later that his fully-qualified use of
-std::unique(user2::my_iterator, user2::my_iterator, user2::my_iterator) fails to
-compile (if he's lucky). Looking in the standard, he sees the following Effects
-clause for unique():</p>
-<blockquote>
-  <p>Effects: Eliminates all but the first element from every consecutive group
-  of equal elements referred to by the iterator i in the range [first, last) for
-  which the following corresponding conditions hold: *i == *(i - 1) or pred(*i,
-  *(i - 1)) != false</p>
-</blockquote>
-<p>The standard gives user2 absolutely no reason to think he can interfere with
-std::unique by defining names in namespace user2. His standard library has been
-built with the template export feature, so he is unable to inspect the
-implementation. User1 eventually compiles his code with another compiler, and
-his version of unique_copy silently stops being called. Eventually, he realizes
-that he was depending on an implementation detail of his library and had no
-right to expect his unique_copy() to be called portably.</p>
-<p>On the face of it, and given above scenario, it may seem obvious that the
-implementation of unique() shown is non-conforming because it uses unique_copy()
-rather than ::std::unique_copy(). Most standard library implementations,
-however, seem to disagree with this notion.</p>
-<p> <i>[Tokyo:&nbsp; Steve Adamczyk from
-the core working group indicates that &quot;std::&quot; is sufficient;&nbsp;
-leading &quot;::&quot; qualification is not required because any namespace
-qualification is sufficient to suppress Koenig lookup.]</i></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a paragraph and a note at the end of 
-17.6.5.4 [global.functions]:</p>
-<blockquote>
-
-<p>Unless otherwise specified, no global or non-member function in the
-standard library shall use a function from another namespace which is
-found through <i>argument-dependent name lookup</i> (3.4.2 [basic.lookup.argdep]).</p>
-
-<p>[Note: the phrase "unless otherwise specified" is intended to
-allow Koenig lookup in cases like that of ostream_iterators:<br/>
-
-<br/>
-  Effects:</p>
-  <blockquote>
-<p>*out_stream &lt;&lt; value;<br/>
-      if(delim != 0) *out_stream &lt;&lt; delim;<br/>
-      return (*this);</p>
-    <p>--end note]</p>
-  </blockquote>
-</blockquote>
-
-<p><i>[Tokyo: The LWG agrees that this is a defect in the standard, but
-is as yet unsure if the proposed resolution is the best
-solution. Furthermore, the LWG believes that the same problem of
-unqualified library names applies to wording in the standard itself,
-and has opened issue <a href="lwg-defects.html#229">229</a> accordingly. Any resolution of
-issue <a href="lwg-defects.html#225">225</a> should be coordinated with the resolution of
-issue <a href="lwg-defects.html#229">229</a>.]</i></p>
-
-
-<p><i>[Toronto: The LWG is not sure if this is a defect in the
-standard.  Most LWG members believe that an implementation of
-<tt>std::unique</tt> like the one quoted in this issue is already
-illegal, since, under certain circumstances, its semantics are not
-those specified in the standard.  The standard's description of
-<tt>unique</tt> does not say that overloading <tt>adjacent_find</tt>
-should have any effect.]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: An LWG-subgroup spent an afternoon working on issues
-225, 226, and 229.  Their conclusion was that the issues should be
-separated into an LWG portion (Howard's paper, N1387=02-0045), and a
-EWG portion (Dave will write a proposal). The LWG and EWG had
-(separate) discussions of this plan the next day.  The proposed
-resolution for this issue is in accordance with Howard's paper.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>It could be argued that this proposed isn't strictly necessary,
-  that the Standard doesn't grant implementors license to write a
-  standard function that behaves differently than specified in the
-  Standard just because of an unrelated user-defined name in some
-  other namespace.  However, this is at worst a clarification.  It is
-  surely right that algorithsm shouldn't pick up random names, that
-  user-defined names should have no effect unless otherwise specified.
-  Issue <a href="lwg-defects.html#226">226</a> deals with the question of when it is
-  appropriate for the standard to explicitly specify otherwise.</p>
-
-
-
-
-
-<hr>
-<h3><a name="226"></a>226. User supplied specializations or overloads of namespace std function templates</h3>
-<p><b>Section:</b> 17.6.4.3 [reserved.names] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2000-04-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reserved.names">issues</a> in [reserved.names].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The issues are:&nbsp;</p>
-<p>1. How can a 3rd party library implementor (lib1) write a version of a standard
-algorithm which is specialized to work with his own class template?&nbsp;</p>
-<p>2. How can another library implementor (lib2) write a generic algorithm which 
-will take advantage of the specialized algorithm in lib1?</p>
-<p>This appears to be the only viable answer under current language rules:</p>
-<blockquote>
-  <pre>namespace lib1
-{
-    // arbitrary-precision numbers using T as a basic unit
-    template &lt;class T&gt;
-    class big_num { //...
-    };
-    </pre>
-  <pre>    // defining this in namespace std is illegal (it would be an
-    // overload), so we hope users will rely on Koenig lookup
-    template &lt;class T&gt;
-    void swap(big_int&lt;T&gt;&amp;, big_int&lt;T&gt;&amp;);
-}</pre>
-  <pre>#include &lt;algorithm&gt;
-namespace lib2
-{
-    template &lt;class T&gt;
-    void generic_sort(T* start, T* end)
-    {
-            ...
-        // using-declaration required so we can work on built-in types
-        using std::swap;
-        // use Koenig lookup to find specialized algorithm if available
-        swap(*x, *y);
-    }
-}</pre>
-</blockquote>
-<p>This answer has some drawbacks. First of all, it makes writing lib2 difficult
-and somewhat slippery. The implementor needs to remember to write the
-using-declaration, or generic_sort will fail to compile when T is a built-in
-type. The second drawback is that the use of this style in lib2 effectively
-&quot;reserves&quot; names in any namespace which defines types which may
-eventually be used with lib2. This may seem innocuous at first when applied to
-names like swap, but consider more ambiguous names like unique_copy() instead.
-It is easy to imagine the user wanting to define these names differently in his
-own namespace. A definition with semantics incompatible with the standard
-library could cause serious problems (see issue <a href="lwg-defects.html#225">225</a>).</p>
-<p>Why, you may ask, can't we just partially specialize std::swap()? It's
-because the language doesn't allow for partial specialization of function
-templates. If you write:</p>
-<blockquote>
-  <pre>namespace std
-{
-    template &lt;class T&gt;
-    void swap(lib1::big_int&lt;T&gt;&amp;, lib1::big_int&lt;T&gt;&amp;);
-}</pre>
-</blockquote>
-<p>You have just overloaded std::swap, which is illegal under the current
-language rules. On the other hand, the following full specialization is legal:</p>
-<blockquote>
-  <pre>namespace std
-{
-    template &lt;&gt;
-    void swap(lib1::other_type&amp;, lib1::other_type&amp;);
-}</pre>
-</blockquote>
-
-<p>This issue reflects concerns raised by the &quot;Namespace issue
-with specialized swap&quot; thread on comp.lang.c++.moderated. A
-similar set of concerns was earlier raised on the boost.org mailing
-list and the ACCU-general mailing list.  Also see library reflector
-message c++std-lib-7354.</p>
-
-<p>
-J. C. van Winkel points out (in c++std-lib-9565) another unexpected
-fact: it's impossible to output a container of std::pair's using copy
-and an ostream_iterator, as long as both pair-members are built-in or
-std:: types.  That's because a user-defined operator&lt;&lt; for (for
-example) std::pair&lt;const std::string, int&gt; will not be found:
-lookup for operator&lt;&lt; will be performed only in namespace std.
-Opinions differed on whether or not this was a defect, and, if so,
-whether the defect is that something is wrong with user-defined
-functionality and std, or whether it's that the standard library does
-not provide an operator&lt;&lt; for std::pair&lt;&gt;.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Adopt the wording proposed in Howard Hinnant's paper
-  N1523=03-0106, "Proposed Resolution To LWG issues 225, 226, 229".</p>
-
-
-<p><i>[Tokyo: Summary, &quot;There is no conforming way to extend
-std::swap for user defined templates.&quot;&nbsp; The LWG agrees that
-there is a problem.  Would like more information before
-proceeding. This may be a core issue.  Core issue 229 has been opened
-to discuss the core aspects of this problem. It was also noted that
-submissions regarding this issue have been received from several
-sources, but too late to be integrated into the issues list.
-]</i></p>
-
-
-<p><i>[Post-Tokyo: A paper with several proposed resolutions,
-J16/00-0029==WG21/N1252, &quot;Shades of namespace std functions
-&quot; by Alan Griffiths, is in the Post-Tokyo mailing. It
-should be considered a part of this issue.]</i></p>
-
-
-<p><i>[Toronto: Dave Abrahams and Peter Dimov have proposed a
-resolution that involves core changes: it would add partial
-specialization of function template.  The Core Working Group is
-reluctant to add partial specialization of function templates.  It is
-viewed as a large change, CWG believes that proposal presented leaves
-some syntactic issues unanswered; if the CWG does add partial
-specialization of function templates, it wishes to develop its own
-proposal.  The LWG continues to believe that there is a serious
-problem: there is no good way for users to force the library to use
-user specializations of generic standard library functions, and in
-certain cases (e.g. transcendental functions called by
-<tt>valarray</tt> and <tt>complex</tt>) this is important.  Koenig
-lookup isn't adequate, since names within the library must be
-qualified with <tt>std</tt> (see issue 225), specialization doesn't
-work (we don't have partial specialization of function templates), and
-users aren't permitted to add overloads within namespace std.
-]</i></p>
-
-
-<p><i>[Copenhagen: Discussed at length, with no consensus.  Relevant
-papers in the pre-Copenhagen mailing: N1289, N1295, N1296.  Discussion
-focused on four options. (1) Relax restrictions on overloads within
-namespace std. (2) Mandate that the standard library use unqualified
-calls for <tt>swap</tt> and possibly other functions.  (3) Introduce
-helper class templates for <tt>swap</tt> and possibly other functions.
-(4) Introduce partial specialization of function templates.  Every
-option had both support and opposition.  Straw poll (first number is
-support, second is strongly opposed): (1) 6, 4; (2) 6, 7; (3) 3, 8;
-(4) 4, 4.]</i></p>
-
-
-<p><i>[Redmond: Discussed, again no consensus.  Herb presented an
-argument that a user who is defining a type <tt>T</tt> with an
-associated <tt>swap</tt> should not be expected to put that
-<tt>swap</tt> in namespace std, either by overloading or by partial
-specialization.  The argument is that <tt>swap</tt> is part of
-<tt>T</tt>'s interface, and thus should to in the same namespace as
-<tt>T</tt> and only in that namespace.  If we accept this argument,
-the consequence is that standard library functions should use
-unqualified call of <tt>swap</tt>.  (And which other functions? Any?)
-A small group (Nathan, Howard, Jeremy, Dave, Matt, Walter, Marc) will
-try to put together a proposal before the next meeting.]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: An LWG-subgroup spent an afternoon working on issues
-225, 226, and 229.  Their conclusion was that the issues should be
-separated into an LWG portion (Howard's paper, N1387=02-0045), and a
-EWG portion (Dave will write a proposal). The LWG and EWG had
-(separate) discussions of this plan the next day.  The proposed
-resolution is the one proposed by Howard.]</i></p>
-
-
-<p><i>[Santa Cruz: the LWG agreed with the general direction of
-  Howard's paper, N1387.  (Roughly: Koenig lookup is disabled unless
-  we say otherwise; this issue is about when we do say otherwise.)
-  However, there were concerns about wording.  Howard will provide new
-  wording.  Bill and Jeremy will review it.]</i></p>
-
-
-<p><i>[Kona: Howard proposed the new wording.  The LWG accepted his
-  proposed resolution.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>Informally: introduce a Swappable concept, and specify that the
-  value types of the iterators passed to certain standard algorithms
-  (such as iter_swap, swap_ranges, reverse, rotate, and sort) conform
-  to that concept.  The Swappable concept will make it clear that
-  these algorithms use unqualified lookup for the calls
-  to <tt>swap</tt>.  Also, in 26.6.3.3 [valarray.transcend] paragraph 1,
-  state that the valarray transcendentals use unqualified lookup.</p>
-
-
-
-
-
-<hr>
-<h3><a name="227"></a>227. std::swap() should require CopyConstructible or DefaultConstructible arguments</h3>
-<p><b>Section:</b> 25.3.3 [alg.swap] <b>Status:</b> <a href="lwg-active.html#TC1">TC1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2000-04-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.swap">issues</a> in [alg.swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TC1">TC1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>25.2.2 reads:</p>
-<blockquote>
-  <p><tt>  template&lt;class T&gt; void swap(T&amp; a, T&amp; b);</tt><br/>
-  <br/>
-  Requires:    Type T is Assignable (_lib.container.requirements_).<br/>
-  Effects:    Exchanges values stored in two locations.</p>
-</blockquote>
-<p>The only reasonable** generic implementation of swap requires construction of a 
-   new temporary copy of one of its arguments:</p>
-<blockquote>
-<pre>template&lt;class T&gt; void swap(T&amp; a, T&amp; b);
-  {
-      T tmp(a);
-      a = b;
-      b = tmp;
-  }</pre>
-</blockquote>
-<p>But a type which is only Assignable cannot be swapped by this implementation.</p>
-<p>**Yes, there's also an unreasonable implementation which would require T to be 
-   DefaultConstructible instead of CopyConstructible. I don't think this is worthy 
-   of consideration:</p>
-<blockquote>
-<pre>template&lt;class T&gt; void swap(T&amp; a, T&amp; b);
-{
-    T tmp;
-    tmp = a;
-    a = b;
-    b = tmp;
-}</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 25.2.2 paragraph 1 from:</p>
-<blockquote>
-<p>  Requires: Type T is Assignable (23.1).</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-<p>  Requires: Type T is CopyConstructible (20.1.3) and Assignable (23.1)</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="228"></a>228. Incorrect specification of &quot;..._byname&quot; facets</h3>
-<p><b>Section:</b> 22.4 [locale.categories] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 2000-04-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.categories">issues</a> in [locale.categories].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The sections 22.4.1.2 [locale.ctype.byname], 22.4.1.5 [locale.codecvt.byname],
-sref ref="22.2.1.6", 22.4.3.2 [locale.numpunct.byname], 22.4.4.2 [locale.collate.byname], 22.4.5.4 [locale.time.put.byname], 22.4.6.4 [locale.moneypunct.byname], and 22.4.7.2 [locale.messages.byname] overspecify the
-definitions of the &quot;..._byname&quot; classes by listing a bunch
-of virtual functions. At the same time, no semantics of these
-functions are defined. Real implementations do not define these
-functions because the functional part of the facets is actually
-implemented in the corresponding base classes and the constructor of
-the &quot;..._byname&quot; version just provides suitable date used by
-these implementations. For example, the 'numpunct' methods just return
-values from a struct. The base class uses a statically initialized
-struct while the derived version reads the contents of this struct
-from a table.  However, no virtual function is defined in
-'numpunct_byname'.</p>
-
-<p>For most classes this does not impose a problem but specifically
-for 'ctype' it does: The specialization for 'ctype_byname&lt;char&gt;'
-is required because otherwise the semantics would change due to the
-virtual functions defined in the general version for 'ctype_byname':
-In 'ctype&lt;char&gt;' the method 'do_is()' is not virtual but it is
-made virtual in both 'ctype&lt;cT&gt;' and 'ctype_byname&lt;cT&gt;'.
-Thus, a class derived from 'ctype_byname&lt;char&gt;' can tell whether
-this class is specialized or not under the current specification:
-Without the specialization, 'do_is()' is virtual while with
-specialization it is not virtual.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>&nbsp; Change section 22.2.1.2 (lib.locale.ctype.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT&gt;
-       class ctype_byname : public ctype&lt;charT&gt; {
-       public:
-         typedef ctype&lt;charT&gt;::mask mask;
-         explicit ctype_byname(const char*, size_t refs = 0);
-       protected:
-        ~ctype_byname();             //  virtual
-       };
-     }</pre>
-<p>&nbsp; Change section 22.2.1.6 (lib.locale.codecvt.byname) to become:</p>
-<pre>    namespace std {
-      template &lt;class internT, class externT, class stateT&gt;
-      class codecvt_byname : public codecvt&lt;internT, externT, stateT&gt; {
-      public:
-       explicit codecvt_byname(const char*, size_t refs = 0);
-      protected:
-      ~codecvt_byname();             //  virtual
-       };
-     }
-</pre>
-<p>&nbsp; Change section 22.2.3.2 (lib.locale.numpunct.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT&gt;
-       class numpunct_byname : public numpunct&lt;charT&gt; {
-     //  this class is specialized for  char  and  wchar_t.
-       public:
-         typedef charT                char_type;
-         typedef basic_string&lt;charT&gt;  string_type;
-         explicit numpunct_byname(const char*, size_t refs = 0);
-       protected:
-        ~numpunct_byname();          //  virtual
-       };
-     }</pre>
-<p>&nbsp; Change section 22.2.4.2 (lib.locale.collate.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT&gt;
-       class collate_byname : public collate&lt;charT&gt; {
-       public:
-         typedef basic_string&lt;charT&gt; string_type;
-         explicit collate_byname(const char*, size_t refs = 0);
-       protected:
-        ~collate_byname();           //  virtual
-       };
-     }</pre>
-<p>&nbsp; Change section 22.2.5.2 (lib.locale.time.get.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT, class InputIterator = istreambuf_iterator&lt;charT&gt; &gt;
-       class time_get_byname : public time_get&lt;charT, InputIterator&gt; {
-       public:
-         typedef time_base::dateorder dateorder;
-         typedef InputIterator        iter_type</pre>
-<pre>         explicit time_get_byname(const char*, size_t refs = 0);
-       protected:
-        ~time_get_byname();          //  virtual
-       };
-     }</pre>
-<p>&nbsp; Change section 22.2.5.4 (lib.locale.time.put.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT, class OutputIterator = ostreambuf_iterator&lt;charT&gt; &gt;
-       class time_put_byname : public time_put&lt;charT, OutputIterator&gt;
-       {
-       public:
-         typedef charT          char_type;
-         typedef OutputIterator iter_type;</pre>
-<pre>         explicit time_put_byname(const char*, size_t refs = 0);
-       protected:
-        ~time_put_byname();          //  virtual
-       };
-     }&quot;</pre>
-<p>&nbsp; Change section 22.2.6.4 (lib.locale.moneypunct.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT, bool Intl = false&gt;
-       class moneypunct_byname : public moneypunct&lt;charT, Intl&gt; {
-       public:
-         typedef money_base::pattern pattern;
-         typedef basic_string&lt;charT&gt; string_type;</pre>
-<pre>         explicit moneypunct_byname(const char*, size_t refs = 0);
-       protected:
-        ~moneypunct_byname();        //  virtual
-       };
-     }</pre>
-<p>&nbsp; Change section 22.2.7.2 (lib.locale.messages.byname) to become:</p>
-<pre>     namespace std {
-       template &lt;class charT&gt;
-       class messages_byname : public messages&lt;charT&gt; {
-       public:
-         typedef messages_base::catalog catalog;
-         typedef basic_string&lt;charT&gt;    string_type;</pre>
-<pre>         explicit messages_byname(const char*, size_t refs = 0);
-       protected:
-        ~messages_byname();          //  virtual
-       };
-     }</pre>
-<p>Remove section 22.4.1.4 [locale.codecvt] completely (because in
-this case only those members are defined to be virtual which are
-defined to be virtual in 'ctype&lt;cT&gt;'.)</p>
-
-<p><i>[Post-Tokyo: Dietmar K&uuml;hl submitted this issue at the request of
-the LWG to solve the underlying problems raised by issue <a href="lwg-closed.html#138">138</a>.]</i></p>
-
-
-<p><i>[Copenhagen: proposed resolution was revised slightly, to remove
-three last virtual functions from <tt>messages_byname</tt>.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="229"></a>229. Unqualified references of other library entities</h3>
-<p><b>Section:</b> 17.6.1.1 [contents] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 2000-04-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#contents">issues</a> in [contents].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Throughout the library chapters, the descriptions of library entities refer
-to other library entities without necessarily qualifying the names.</p>
-
-<p>For example, section 25.2.2 &quot;Swap&quot; describes the effect of
-swap_ranges in terms of the unqualified name &quot;swap&quot;. This section
-could reasonably be interpreted to mean that the library must be implemented so
-as to do a lookup of the unqualified name &quot;swap&quot;, allowing users to
-override any ::std::swap function when Koenig lookup applies.</p>
-
-<p>Although it would have been best to use explicit qualification with
-&quot;::std::&quot; throughout, too many lines in the standard would have to be
-adjusted to make that change in a Technical Corrigendum.</p>
-
-<p>Issue <a href="lwg-defects.html#182">182</a>, which addresses qualification of
-<tt>size_t</tt>, is a special case of this.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>To section 17.4.1.1 &quot;Library contents&quot; Add the following paragraph:</p>
-<blockquote>
-  <p>Whenever a name x defined in the standard library is mentioned, the name x
-  is assumed to be fully qualified as ::std::x, unless explicitly described
-  otherwise. For example, if the Effects section for library function F is
-  described as calling library function G, the function ::std::G is meant.</p>
-</blockquote>
-
-<p><i>[Post-Tokyo: Steve Clamage submitted this issue at the request of
-the LWG to solve a problem in the standard itself similar to the
-problem within implementations of library identified by issue <a href="lwg-defects.html#225">225</a>.  Any resolution of issue <a href="lwg-defects.html#225">225</a> should be
-coordinated with the resolution of this issue.]</i></p>
-
-
-<p><i>[post-Toronto: Howard is undecided about whether it is
-appropriate for all standard library function names referred to in
-other standard library functions to be explicitly qualified by
-<tt>std</tt>: it is common advice that users should define global
-functions that operate on their class in the same namespace as the 
-class, and this requires argument-dependent lookup if those functions
-are intended to be called by library code.  Several LWG members are
-concerned that valarray appears to require argument-dependent lookup,
-but that the wording may not be clear enough to fall under
-&quot;unless explicitly described otherwise&quot;.]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: An LWG-subgroup spent an afternoon working on issues
-225, 226, and 229.  Their conclusion was that the issues should be
-separated into an LWG portion (Howard's paper, N1387=02-0045), and a
-EWG portion (Dave will write a proposal). The LWG and EWG had
-(separate) discussions of this plan the next day.  This paper resolves
-issues 225 and 226.  In light of that resolution, the proposed
-resolution for the current issue makes sense.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="230"></a>230. Assignable specified without also specifying CopyConstructible</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2000-04-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Issue <a href="lwg-defects.html#227">227</a> identified an instance (std::swap) where
-Assignable was specified without also specifying
-CopyConstructible. The LWG asked that the standard be searched to
-determine if the same defect existed elsewhere.</p>
-
-<p>There are a number of places (see proposed resolution below) where
-Assignable is specified without also specifying
-CopyConstructible. There are also several cases where both are
-specified. For example, 26.5.1 [rand.req].</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In  23.2 [container.requirements] table 65 for value_type:
-change "T is Assignable" to "T is CopyConstructible and
-Assignable&quot;
-</p>
-
-<p>In 23.2.4 [associative.reqmts] table 69 X::key_type; change
-&quot;Key is Assignable" to &quot;Key is
-CopyConstructible and Assignable&quot;<br/>
-</p>
-
-<p>In 24.2.4 [output.iterators] paragraph 1, change:
-</p>
-<blockquote>
-<p> A class or a built-in type X satisfies the requirements of an
-output iterator if X is an Assignable type (23.1) and also the
-following expressions are valid, as shown in Table 73:
-</p>
-</blockquote>
-<p>to:
-</p>
-<blockquote>
-<p> A class or a built-in type X satisfies the requirements of an
-output iterator if X is a CopyConstructible (20.1.3) and Assignable
-type (23.1) and also the following expressions are valid, as shown in
-Table 73:
-</p>
-</blockquote>
-
-<p><i>[Post-Tokyo: Beman Dawes submitted this issue at the request of
-the LWG.  He asks that the 25.3.5 [alg.replace] and 25.3.6 [alg.fill] changes be studied carefully, as it is not clear that
-CopyConstructible is really a requirement and may be
-overspecification.]</i></p>
-
-
-<p><i>[Portions of the resolution for issue 230 have been superceded by
-the resolution of issue <a href="lwg-defects.html#276">276</a>.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The original proposed resolution also included changes to input
-iterator, fill, and replace.  The LWG believes that those changes are
-not necessary.  The LWG considered some blanket statement, where an
-Assignable type was also required to be Copy Constructible, but
-decided against this because fill and replace really don't require the
-Copy Constructible property.</p>
-
-
-
-
-<hr>
-<h3><a name="231"></a>231. Precision in iostream?</h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> James Kanze, Stephen Clamage <b>Opened:</b> 2000-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>What is the following program supposed to output?</p>
-<pre>#include &lt;iostream&gt;
-
-    int
-    main()
-    {
-        std::cout.setf( std::ios::scientific , std::ios::floatfield ) ;
-        std::cout.precision( 0 ) ;
-        std::cout &lt;&lt; 1.00 &lt;&lt; '\n' ;
-        return 0 ;
-    }</pre>
-<p>From my C experience, I would expect &quot;1e+00&quot;; this is what 
-<tt>printf(&quot;%.0e&quot; , 1.00 );</tt> does. G++ outputs 
-&quot;1.000000e+00&quot;.</p>
-
-<p>The only indication I can find in the standard is 22.2.2.2.2/11,
-where it says &quot;For conversion from a floating-point type, if
-(flags &amp; fixed) != 0 or if str.precision() &gt; 0, then
-str.precision() is specified in the conversion specification.&quot;
-This is an obvious error, however, fixed is not a mask for a field,
-but a value that a multi-bit field may take -- the results of and'ing
-fmtflags with ios::fixed are not defined, at least not if
-ios::scientific has been set. G++'s behavior corresponds to what might
-happen if you do use (flags &amp; fixed) != 0 with a typical
-implementation (floatfield == 3 &lt;&lt; something, fixed == 1
-&lt;&lt; something, and scientific == 2 &lt;&lt; something).</p>
-
-<p>Presumably, the intent is either (flags &amp; floatfield) != 0, or
-(flags &amp; floatfield) == fixed; the first gives something more or
-less like the effect of precision in a printf floating point
-conversion. Only more or less, of course. In order to implement printf
-formatting correctly, you must know whether the precision was
-explicitly set or not. Say by initializing it to -1, instead of 6, and
-stating that for floating point conversions, if precision &lt; -1, 6
-will be used, for fixed point, if precision &lt; -1, 1 will be used,
-etc. Plus, of course, if precision == 0 and flags &amp; floatfield ==
-0, 1 should be = used. But it probably isn't necessary to emulate all
-of the anomalies of printf:-).</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace 22.4.2.2.2 [facet.num.put.virtuals], paragraph 11, with the following 
-sentence:
-</p>
-<blockquote><p>
-For conversion from a floating-point type,
-<tt><i>str</i>.precision()</tt> is specified in the conversion
-specification.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The floatfield determines whether numbers are formatted as if
-with %f, %e, or %g.  If the <tt>fixed</tt> bit is set, it's %f,
-if <tt>scientific</tt> it's %e, and if both bits are set, or 
-neither, it's %g.</p>
-<p>Turning to the C standard, a precision of 0 is meaningful
-for %f and %e.  For %g, precision 0 is taken to be the same as 
-precision 1.</p>
-<p>The proposed resolution has the effect that if neither
-<tt>fixed</tt> nor <tt>scientific</tt> is set we'll be
-specifying a precision of 0, which will be internally
-turned into 1.  There's no need to call it out as a special
-case.</p>
-<p>The output of the above program will be &quot;1e+00&quot;.</p>
-
-<p><i>[Post-Cura&ccedil;ao: Howard provided improved wording covering the case
-where precision is 0 and mode is %g.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="232"></a>232. &quot;depends&quot; poorly defined in 17.4.3.1</h3>
-<p><b>Section:</b> 17.6.4.3 [reserved.names] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2000-04-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reserved.names">issues</a> in [reserved.names].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>17.4.3.1/1 uses the term &quot;depends&quot; to limit the set of allowed
-specializations of standard templates to those that &quot;depend on a
-user-defined name of external linkage.&quot;</p>
-<p>This term, however, is not adequately defined, making it possible to
-construct a specialization that is, I believe, technically legal according to
-17.4.3.1/1, but that specializes a standard template for a built-in type such as
-'int'.</p>
-<p>The following code demonstrates the problem:</p>
-<blockquote>
-  <pre>#include &lt;algorithm&gt;</pre>
-  <pre>template&lt;class T&gt; struct X
-{
- typedef T type;
-};</pre>
-  <pre>namespace std
-{
- template&lt;&gt; void swap(::X&lt;int&gt;::type&amp; i, ::X&lt;int&gt;::type&amp; j);
-}</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change &quot;user-defined name&quot; to &quot;user-defined
-type&quot;.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This terminology is used in section 2.5.2 and 4.1.1 of <i>The C++
-Programming Language</i>.  It disallows the example in the issue,
-since the underlying type itself is not user-defined.  The only
-possible problem I can see is for non-type templates, but there's no
-possible way for a user to come up with a specialization for bitset,
-for example, that might not have already been specialized by the
-implementor?</p>
-
-<p><i>[Toronto: this may be related to issue <a href="lwg-defects.html#120">120</a>.]</i></p>
-
-
-<p><i>[post-Toronto: Judy provided the above proposed resolution and
-rationale.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="233"></a>233. Insertion hints in associative containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2000-04-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#192">192</a>, <a href="lwg-closed.html#246">246</a></p>
-<p><b>Discussion:</b></p>
-<p>
-If <tt>mm</tt> is a multimap and <tt>p</tt> is an iterator
-into the multimap, then <tt>mm.insert(p, x)</tt> inserts
-<tt>x</tt> into <tt>mm</tt> with <tt>p</tt> as a hint as
-to where it should go.  Table 69 claims that the execution time is
-amortized constant if the insert winds up taking place adjacent to
-<tt>p</tt>, but does not say when, if ever, this is guaranteed to
-happen.  All it says it that <tt>p</tt> is a hint as to where to
-insert.
-</p>
-<p>
-The question is whether there is any guarantee about the relationship
-between <tt>p</tt> and the insertion point, and, if so, what it
-is.
-</p>
-<p>
-I believe the present state is that there is no guarantee: The user
-can supply <tt>p</tt>, and the implementation is allowed to
-disregard it entirely.
-</p>
-
-<p><b>Additional comments from Nathan:</b><br/>
-
-The vote [in Redmond] was on whether to elaborately specify the use of
-the hint, or to require behavior only if the value could be inserted
-adjacent to the hint.  I would like to ensure that we have a chance to
-vote for a deterministic treatment: "before, if possible, otherwise
-after, otherwise anywhere appropriate", as an alternative to the
-proposed "before or after, if possible, otherwise [...]".
-</p>
-
-<p><i>[Toronto: there was general agreement that this is a real defect:
-when inserting an element x into a multiset that already contains
-several copies of x, there is no way to know whether the hint will be
-used.  The proposed resolution was that the new element should always
-be inserted as close to the hint as possible.  So, for example, if
-there is a subsequence of equivalent values, then providing a.begin()
-as the hint means that the new element should be inserted before the
-subsequence even if a.begin() is far away.  JC van Winkel supplied
-precise wording for this proposed resolution, and also for an
-alternative resolution in which hints are only used when they are
-adjacent to the insertion point.]</i></p>
-
-
-<p><i>[Copenhagen: the LWG agreed to the original proposed resolution,
-in which an insertion hint would be used even when it is far from the
-insertion point.  This was contingent on seeing a example
-implementation showing that it is possible to implement this
-requirement without loss of efficiency.  John Potter provided such a
-example implementation.]</i></p>
-
-
-<p><i>[Redmond: The LWG was reluctant to adopt the proposal that
-emerged from Copenhagen: it seemed excessively complicated, and went
-beyond fixing the defect that we identified in Toronto.  PJP provided
-the new wording described in this issue.  Nathan agrees that we
-shouldn't adopt the more detailed semantics, and notes: "we know that
-you can do it efficiently enough with a red-black tree, but there are
-other (perhaps better) balanced tree techniques that might differ
-enough to make the detailed semantics hard to satisfy."]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: Nathan should give us the alternative wording he
-suggests so the LWG can decide between the two options.]</i></p>
-
-
-<p><i>[Lillehammer: The LWG previously rejected the more detailed
-  semantics, because it seemed more loike a new feature than like
-  defect fixing.  We're now more sympathetic to it, but we (especially
-  Bill) are still worried about performance.  N1780 describes a naive
-  algorithm, but it's not clear whether there is a non-naive
-  implementation. Is it possible to implement this as efficently as
-  the current version of insert?]</i></p>
-
-
-<p><i>[Post Lillehammer:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1780.html">N1780</a>
-updated in post meeting mailing with
-feedback from Lillehammer with more information regarding performance.
-]</i></p>
-
-
-<p><i>[
-Batavia:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1780.html">1780</a>
-accepted with minor wording changes in the proposed wording (reflected in the
-proposed resolution below).  Concerns about the performance of the algorithm
-were satisfactorily met by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1780.html">1780</a>.
-<a href="lwg-defects.html#371">371</a> already handles the stability of equal ranges
-and so that part of the resolution from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1780.html">1780</a>
-is no longer needed (or reflected in the proposed wording below).
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change the indicated rows of the "Associative container requirements" Table in
-23.2.4 [associative.reqmts] to:
-</p>
-
-<table border="1">
-<caption>Associative container requirements</caption>
-<tr><th>expression</th> <th>return type</th>
-<th>assertion&#47;note<br/>pre&#47;post-condition</th>
-<th>complexity</th></tr>
-<tr><td><tt>a_eq.insert(t)</tt></td>
-<td><tt>iterator</tt></td>
-<td>
-inserts <tt>t</tt> and returns the iterator pointing to the newly inserted
-element. <ins>If a range containing elements equivalent to <tt>t</tt> exists in
-<tt>a_eq</tt>, <tt>t</tt> is inserted at the end of that range.</ins>
-</td>
-<td>
-logarithmic
-</td></tr>
-<tr><td><tt>a.insert(p,t)</tt></td>
-<td><tt>iterator</tt></td>
-<td>
-inserts <tt>t</tt> if and only if there is no element with key equivalent to the
-key of <tt>t</tt> in containers with unique keys; always inserts <tt>t</tt> in containers
-with equivalent keys. always returns the iterator pointing to the element with key
-equivalent to the key of <tt>t</tt>. <del>iterator <tt>p</tt> is a hint pointing to where
-the insert should start to search.</del> <ins><tt>t</tt> is inserted as close as possible
-to the position just prior to <tt>p</tt>.</ins>
-</td>
-<td>
-logarithmic in general, but amortized constant if <tt>t</tt> is inserted right <del>after</del>
- <ins>before</ins> <tt>p</tt>.
-</td></tr>
-</table>
-
-
-
-
-
-
-<hr>
-<h3><a name="234"></a>234. Typos in allocator definition</h3>
-<p><b>Section:</b> 20.7.9.1 [allocator.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 2000-04-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.members">issues</a> in [allocator.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In paragraphs 12 and 13 the effects of <tt>construct()</tt> and
-<tt>destruct()</tt> are described as returns but the functions actually
-return <tt>void</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Substitute &quot;Returns&quot; by &quot;Effect&quot;.</p>
-
-
-
-
-<hr>
-<h3><a name="235"></a>235. No specification of default ctor for reverse_iterator</h3>
-<p><b>Section:</b> 24.5.1.1 [reverse.iterator] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 2000-04-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iterator">issues</a> in [reverse.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The declaration of <tt>reverse_iterator</tt> lists a default
-constructor.  However, no specification is given what this constructor
-should do.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-  <p>In section 24.5.1.3.1 [reverse.iter.cons] add the following
-  paragraph:</p>
-      <blockquote>
-      <p><tt>reverse_iterator()</tt></p>
-
-      <p>Default initializes <tt>current</tt>. Iterator operations
-      applied to the resulting iterator have defined behavior if and
-      only if the corresponding operations are defined on a default
-      constructed iterator of type <tt>Iterator</tt>.</p>
-      </blockquote>
-  <p><i>[pre-Copenhagen: Dietmar provide wording for proposed
-  resolution.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="237"></a>237. Undefined expression in complexity specification</h3>
-<p><b>Section:</b> 23.3.3.2 [deque.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 2000-04-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.cons">issues</a> in [deque.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The complexity specification in paragraph 6 says that the complexity
-is linear in <tt>first - last</tt>. Even if <tt>operator-()</tt> is
-defined on iterators this term is in general undefined because it
-would have to be <tt>last - first</tt>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-  <p>Change paragraph 6 from</p>
-     <blockquote><p>Linear in <i>first - last</i>.</p></blockquote>
-  <p>to become</p>
-     <blockquote><p>Linear in <i>distance(first, last)</i>.</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="238"></a>238. Contradictory results of stringbuf initialization.</h3>
-<p><b>Section:</b> 27.8.2.1 [stringbuf.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dietmar K&uuml;hl <b>Opened:</b> 2000-05-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.cons">issues</a> in [stringbuf.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 27.7.1.1 paragraph 4 the results of calling the constructor of
-'basic_stringbuf' are said to be <tt>str() == str</tt>. This is fine
-that far but consider this code:</p>
-
-<pre>
-  std::basic_stringbuf&lt;char&gt; sbuf("hello, world", std::ios_base::openmode(0));
-  std::cout &lt;&lt; "'" &lt;&lt; sbuf.str() &lt;&lt; "'\n";
-</pre>
-
-<p>Paragraph 3 of 27.7.1.1 basically says that in this case neither
-the output sequence nor the input sequence is initialized and
-paragraph 2 of 27.7.1.2 basically says that <tt>str()</tt> either
-returns the input or the output sequence. None of them is initialized,
-ie. both are empty, in which case the return from <tt>str()</tt> is
-defined to be <tt>basic_string&lt;cT&gt;()</tt>.</p>
-
-<p>However, probably only test cases in some testsuites will detect this
-"problem"...</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove 27.7.1.1 paragraph 4.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>We could fix 27.7.1.1 paragraph 4, but there would be no point.  If
-we fixed it, it would say just the same thing as text that's already
-in the standard.</p>
-
-
-
-
-<hr>
-<h3><a name="239"></a>239. Complexity of unique() and/or unique_copy incorrect</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 2000-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The complexity of unique and unique_copy are inconsistent with each
-other and inconsistent with the implementations.&nbsp; The standard
-specifies:</p>
-
-<p>for unique():</p>
-
-<blockquote><p>-3- Complexity: If the range (last - first) is not empty, exactly
-(last - first) - 1 applications of the corresponding predicate, otherwise
-no applications of the predicate.</p></blockquote>
-
-<p>for unique_copy():</p>
-
-<blockquote><p>-7- Complexity: Exactly last - first applications of the corresponding
-predicate.</p></blockquote>
-
-<p>
-The implementations do it the other way round: unique() applies the
-predicate last-first times and unique_copy() applies it last-first-1
-times.</p>
-
-<p>As both algorithms use the predicate for pair-wise comparison of
-sequence elements I don't see a justification for unique_copy()
-applying the predicate last-first times, especially since it is not
-specified to which pair in the sequence the predicate is applied
-twice.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change both complexity sections in 25.3.9 [alg.unique] to:</p>
-
-<blockquote><p>Complexity: For nonempty ranges, exactly last - first - 1
-applications of the corresponding predicate.</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="240"></a>240. Complexity of adjacent_find() is meaningless</h3>
-<p><b>Section:</b> 25.2.8 [alg.adjacent.find] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 2000-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.adjacent.find">issues</a> in [alg.adjacent.find].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The complexity section of adjacent_find is defective:</p>
-
-<blockquote>
-<pre>
-template &lt;class ForwardIterator&gt;
-ForwardIterator adjacent_find(ForwardIterator first, ForwardIterator last
-                              BinaryPredicate pred);
-</pre>
-
-<p>-1- Returns: The first iterator i such that both i and i + 1 are in
-the range [first, last) for which the following corresponding
-conditions hold: *i == *(i + 1), pred(*i, *(i + 1)) != false. Returns
-last if no such iterator is found.</p>
-
-<p>-2- Complexity: Exactly find(first, last, value) - first applications
-of the corresponding predicate.
-</p>
-</blockquote>
-
-<p>In the Complexity section, it is not defined what &quot;value&quot;
-is supposed to mean. My best guess is that &quot;value&quot; means an
-object for which one of the conditions pred(*i,value) or
-pred(value,*i) is true, where i is the iterator defined in the Returns
-section. However, the value type of the input sequence need not be
-equality-comparable and for this reason the term find(first, last,
-value) - first is meaningless.</p>
-
-<p>A term such as find_if(first, last, bind2nd(pred,*i)) - first or
-find_if(first, last, bind1st(pred,*i)) - first might come closer to
-the intended specification.  Binders can only be applied to function
-objects that have the function call operator declared const, which is
-not required of predicates because they can have non-const data
-members. For this reason, a specification using a binder could only be
-an &quot;as-if&quot; specification.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the complexity section in 25.2.8 [alg.adjacent.find] to:</p>
-<blockquote><p>
-For a nonempty range, exactly <tt>min((<i>i</i> - <i>first</i>) + 1,
-(<i>last</i> - <i>first</i>) - 1)</tt> applications of the
-corresponding predicate, where <i>i</i> is <tt>adjacent_find</tt>'s
-return value.
-</p></blockquote>
-
-<p><i>[Copenhagen: the original resolution specified an upper
-bound.  The LWG preferred an exact count.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="241"></a>241. Does unique_copy() require CopyConstructible and Assignable?</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 2000-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Some popular implementations of unique_copy() create temporary
-copies of values in the input sequence, at least if the input iterator
-is a pointer.  Such an implementation is built on the assumption that
-the value type is CopyConstructible and Assignable.</p>
-
-<p>It is common practice in the standard that algorithms explicitly
-specify any additional requirements that they impose on any of the
-types used by the algorithm. An example of an algorithm that creates
-temporary copies and correctly specifies the additional requirements
-is accumulate(), 26.5.1 [rand.req].</p>
-
-<p>Since the specifications of unique() and unique_copy() do not
-require CopyConstructible and Assignable of the InputIterator's value
-type the above mentioned implementations are not standard-compliant. I
-cannot judge whether this is a defect in the standard or a defect in
-the implementations.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 25.2.8 change:</p>
-
-<blockquote><p>
--4- Requires: The ranges [first, last) and [result, result+(last-first))
-shall not overlap.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote>
-  <p>-4- Requires: The ranges [first, last) and [result,
-  result+(last-first)) shall not overlap. The expression *result =
-  *first must be valid. If neither InputIterator nor OutputIterator
-  meets the requirements of forward iterator then the value type of
-  InputIterator must be copy constructible. Otherwise copy
-  constructible is not required. </p>
-</blockquote>
-
-<p><i>[Redmond: the original proposed resolution didn't impose an
-explicit requirement that the iterator's value type must be copy
-constructible, on the grounds that an input iterator's value type must
-always be copy constructible.  Not everyone in the LWG thought that
-this requirement was clear from table 72.  It has been suggested that
-it might be possible to implement <tt>unique_copy</tt> without
-requiring assignability, although current implementations do impose
-that requirement.  Howard provided new wording.]</i></p>
-
-
-<p><i>[
-Cura&ccedil;ao: The LWG changed the PR editorially to specify
-&quot;neither...nor...meet...&quot; as clearer than
-&quot;both...and...do not meet...&quot;. Change believed to be so
-minor as not to require re-review.
-]</i></p>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="242"></a>242. Side effects of function objects</h3>
-<p><b>Section:</b> 25.3.4 [alg.transform], 26.5 [rand] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Angelika Langer <b>Opened:</b> 2000-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.transform">issues</a> in [alg.transform].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The algorithms transform(), accumulate(), inner_product(),
-partial_sum(), and adjacent_difference() require that the function
-object supplied to them shall not have any side effects.</p>
-
-<p>The standard defines a side effect in 1.9 [intro.execution] as:</p>
-<blockquote><p>-7- Accessing an object designated by a volatile lvalue (basic.lval),
-modifying an object, calling a library I/O function, or calling a function
-that does any of those operations are all side effects, which are changes
-in the state of the execution environment.</p></blockquote>
-
-<p>As a consequence, the function call operator of a function object supplied
-to any of the algorithms listed above cannot modify data members, cannot
-invoke any function that has a side effect, and cannot even create and
-modify temporary objects.&nbsp; It is difficult to imagine a function object
-that is still useful under these severe limitations. For instance, any
-non-trivial transformator supplied to transform() might involve creation
-and modification of temporaries, which is prohibited according to the current
-wording of the standard.</p>
-
-<p>On the other hand, popular implementations of these algorithms exhibit
-uniform and predictable behavior when invoked with a side-effect-producing
-function objects. It looks like the strong requirement is not needed for
-efficient implementation of these algorithms.</p>
-
-<p>The requirement of&nbsp; side-effect-free function objects could be
-replaced by a more relaxed basic requirement (which would hold for all
-function objects supplied to any algorithm in the standard library):</p>
-<blockquote><p>A function objects supplied to an algorithm shall not invalidate
-any iterator or sequence that is used by the algorithm. Invalidation of
-the sequence includes destruction of the sorting order if the algorithm
-relies on the sorting order (see section 25.3 - Sorting and related operations
-[lib.alg.sorting]).</p></blockquote>
-
-<p>I can't judge whether it is intended that the function objects supplied
-to transform(), accumulate(), inner_product(), partial_sum(), or adjacent_difference()
-shall not modify sequence elements through dereferenced iterators.</p>
-
-<p>It is debatable whether this issue is a defect or a change request.
-Since the consequences for user-supplied function objects are drastic and
-limit the usefulness of the algorithms significantly I would consider it
-a defect.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>Things to notice about these changes:</i></p>
-
-<ol>
-<li> <i>The fully-closed ("[]" as opposed to half-closed "[)" ranges
-     are intentional. we want to prevent side-effects from
-     invalidating the end iterators.</i></li>
-
-<li> <i>That has the unintentional side-effect of prohibiting
-     modification of the end element as a side-effect. This could
-     conceivably be significant in some cases.</i></li>
-
-<li> <i>The wording also prevents side-effects from modifying elements
-     of the output sequence. I can't imagine why anyone would want
-     to do this, but it is arguably a restriction that implementors
-     don't need to place on users.</i></li>
-
-<li> <i>Lifting the restrictions imposed in #2 and #3 above is possible
-     and simple, but would require more verbiage.</i></li>
-</ol>
-
-<p>Change 25.2.3/2 from:</p>
-
-<blockquote><p>
-   -2- Requires: op and binary_op shall not have any side effects.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  -2- Requires: in the ranges [first1, last1], [first2, first2 +
-  (last1 - first1)] and [result, result + (last1- first1)], op and
-  binary_op shall neither modify elements nor invalidate iterators or
-  subranges.
-  [Footnote: The use of fully closed ranges is intentional --end footnote]
-</p></blockquote>
-
-
-<p>Change 25.2.3/2 from:</p>
-
-<blockquote><p>
-   -2- Requires: op and binary_op shall not have any side effects. 
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  -2- Requires: op and binary_op shall not invalidate iterators or
-   subranges, or modify elements in the ranges [first1, last1],
-   [first2, first2 + (last1 - first1)], and [result, result + (last1
-   - first1)].
-  [Footnote: The use of fully closed ranges is intentional --end footnote]
-</p></blockquote>
-
-
-<p>Change 26.4.1/2 from:</p>
-
-<blockquote><p>
-  -2- Requires: T must meet the requirements of CopyConstructible
-   (lib.copyconstructible) and Assignable (lib.container.requirements)
-   types. binary_op shall not cause side effects.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  -2- Requires: T must meet the requirements of CopyConstructible
-   (lib.copyconstructible) and Assignable
-   (lib.container.requirements) types. In the range [first, last],
-   binary_op shall neither modify elements nor invalidate iterators
-   or subranges.
-  [Footnote: The use of a fully closed range is intentional --end footnote]
-</p></blockquote>
-
-<p>Change 26.4.2/2 from:</p>
-
-<blockquote><p>
-  -2- Requires: T must meet the requirements of CopyConstructible
-   (lib.copyconstructible) and Assignable (lib.container.requirements)
-   types. binary_op1 and binary_op2 shall not cause side effects.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  -2- Requires: T must meet the requirements of CopyConstructible
-   (lib.copyconstructible) and Assignable (lib.container.requirements)
-   types. In the ranges [first, last] and [first2, first2 + (last -
-   first)], binary_op1 and binary_op2 shall neither modify elements
-   nor invalidate iterators or subranges.
-  [Footnote: The use of fully closed ranges is intentional --end footnote]
-</p></blockquote>
-
-
-<p>Change 26.4.3/4 from:</p>
-
-<blockquote><p>
-  -4- Requires: binary_op is expected not to have any side effects.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  -4- Requires: In the ranges [first, last] and [result, result +
-   (last - first)], binary_op shall neither modify elements nor
-   invalidate iterators or subranges.
-  [Footnote: The use of fully closed ranges is intentional --end footnote]
-</p></blockquote>
-
-<p>Change 26.4.4/2 from:</p>
-
-<blockquote><p>
-  -2- Requires: binary_op shall not have any side effects.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  -2- Requires: In the ranges [first, last] and [result, result +
-   (last - first)], binary_op shall neither modify elements nor
-   invalidate iterators or subranges.
-  [Footnote: The use of fully closed ranges is intentional --end footnote]
-</p></blockquote>
-
-<p><i>[Toronto: Dave Abrahams supplied wording.]</i></p>
-
-
-<p><i>[Copenhagen: Proposed resolution was modified slightly. Matt
-added footnotes pointing out that the use of closed ranges was
-intentional.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="243"></a>243. <tt>get</tt> and <tt>getline</tt> when sentry reports failure</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>basic_istream&lt;&gt;::get(), and basic_istream&lt;&gt;::getline(),
-are unclear with respect to the behavior and side-effects of the named
-functions in case of an error.</p>
-
-<p>27.6.1.3, p1 states that &quot;... If the sentry object returns
-true, when converted to a value of type bool, the function endeavors
-to obtain the requested input...&quot; It is not clear from this (or
-the rest of the paragraph) what precisely the behavior should be when
-the sentry ctor exits by throwing an exception or when the sentry
-object returns false.  In particular, what is the number of characters
-extracted that gcount() returns supposed to be?</p>
-
-<p>27.6.1.3 p8 and p19 say about the effects of get() and getline():
-&quot;...  In any case, it then stores a null character (using
-charT()) into the next successive location of the array.&quot; Is not
-clear whether this sentence applies if either of the conditions above
-holds (i.e., when sentry fails).</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to 27.6.1.3, p1 after the sentence</p>
-
-<blockquote><p>
-&quot;... If the sentry object returns true, when converted to a value of
-type bool, the function endeavors to obtain the requested input.&quot;
-</p></blockquote>
-
-<p>the following</p>
-
-
-<blockquote><p>
-&quot;Otherwise, if the sentry constructor exits by throwing an exception or
-if the sentry object returns false, when converted to a value of type
-bool, the function returns without attempting to obtain any input. In
-either case the number of extracted characters is set to 0; unformatted
-input functions taking a character array of non-zero size as an argument
-shall also store a null character (using charT()) in the first location
-of the array.&quot;
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Although the general philosophy of the input functions is that the
-argument should not be modified upon failure, <tt>getline</tt>
-historically added a terminating null unconditionally.  Most
-implementations still do that.  Earlier versions of the draft standard
-had language that made this an unambiguous requirement; those words
-were moved to a place where their context made them less clear.  See
-Jerry Schwarz's message c++std-lib-7618.</p>
-
-
-
-
-<hr>
-<h3><a name="247"></a>247. <tt>vector</tt>, <tt>deque::insert</tt> complexity</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Lisa Lippincott <b>Opened:</b> 2000-06-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 2 of 23.3.6.5 [vector.modifiers] describes the complexity
-of <tt>vector::insert</tt>:</p>
-
-   <blockquote><p>
-   Complexity: If first and last are forward iterators, bidirectional
-   iterators, or random access iterators, the complexity is linear in
-   the number of elements in the range [first, last) plus the distance
-   to the end of the vector. If they are input iterators, the complexity
-   is proportional to the number of elements in the range [first, last)
-   times the distance to the end of the vector.
-   </p></blockquote>
-
-<p>First, this fails to address the non-iterator forms of
-<tt>insert</tt>.</p>
-
-<p>Second, the complexity for input iterators misses an edge case --
-it requires that an arbitrary number of elements can be added at
-the end of a <tt>vector</tt> in constant time.</p>
-
-<p>I looked to see if <tt>deque</tt> had a similar problem, and was
-surprised to find that <tt>deque</tt> places no requirement on the
-complexity of inserting multiple elements (23.3.3.4 [deque.modifiers],
-paragraph 3):</p>
-
-   <blockquote><p>
-   Complexity: In the worst case, inserting a single element into a
-   deque takes time linear in the minimum of the distance from the
-   insertion point to the beginning of the deque and the distance
-   from the insertion point to the end of the deque. Inserting a
-   single element either at the beginning or end of a deque always
-   takes constant time and causes a single call to the copy constructor
-   of T.
-   </p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change Paragraph 2 of 23.3.6.5 [vector.modifiers] to</p>
-   <blockquote><p>
-   Complexity: The complexity is linear in the number of elements 
-   inserted plus the distance to the end of the vector.
-   </p></blockquote>
-
-   <p><i>[For input iterators, one may achieve this complexity by first
-   inserting at the end of the <tt>vector</tt>, and then using
-   <tt>rotate</tt>.]</i></p>
-
-
-<p>Change 23.3.3.4 [deque.modifiers], paragraph 3, to:</p>
-
-   <blockquote><p>
-   Complexity: The complexity is linear in the number of elements 
-   inserted plus the shorter of the distances to the beginning and
-   end of the deque.  Inserting a single element at either the
-   beginning or the end of a deque causes a single call to the copy
-   constructor of T.
-   </p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This is a real defect, and proposed resolution fixes it: some
-  complexities aren't specified that should be.  This proposed
-  resolution does constrain deque implementations (it rules out the
-  most naive possible implementations), but the LWG doesn't see a
-  reason to permit that implementation.</p>
-
-
-
-
-
-<hr>
-<h3><a name="248"></a>248. time_get fails to set eofbit</h3>
-<p><b>Section:</b> 22.4.5 [category.time] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>There is no requirement that any of time_get member functions set
-ios::eofbit when they reach the end iterator while parsing their input.
-Since members of both the num_get and money_get facets are required to
-do so (22.2.2.1.2, and 22.2.6.1.2, respectively), time_get members
-should follow the same requirement for consistency.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add paragraph 2 to section 22.2.5.1 with the following text:</p>
-
-<blockquote><p>
-If the end iterator is reached during parsing by any of the get()
-member functions, the member sets ios_base::eofbit in err.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Two alternative resolutions were proposed.  The LWG chose this one
-because it was more consistent with the way eof is described for other
-input facets.</p>
-
-
-
-
-<hr>
-<h3><a name="250"></a>250. splicing invalidates iterators</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Brian Parker  <b>Opened:</b> 2000-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 23.3.5.5 [list.ops] states that
-</p>
-<pre>
-  void splice(iterator position, list&lt;T, Allocator&gt;&amp; x);
-</pre>
-<p>
-<i>invalidates</i> all iterators and references to list <tt>x</tt>.
-</p>
-
-<p>
-This is unnecessary and defeats an important feature of splice. In
-fact, the SGI STL guarantees that iterators to <tt>x</tt> remain valid
-after <tt>splice</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add a footnote to 23.3.5.5 [list.ops], paragraph 1:</p>
-<blockquote><p>
-[<i>Footnote:</i> As specified in  [default.con.req], paragraphs
-4-5, the semantics described in this clause applies only to the case
-where allocators compare equal.  --end footnote]
-</p></blockquote>
-
-<p>In 23.3.5.5 [list.ops], replace paragraph 4 with:</p>
-<blockquote><p>
-Effects: Inserts the contents of x before position and x becomes 
-empty.  Pointers and references to the moved elements of x now refer to 
-those same elements but as members of *this.  Iterators referring to the 
-moved elements will continue to refer to their elements, but they now 
-behave as iterators into *this, not into x.
-</p></blockquote>
-
-<p>In 23.3.5.5 [list.ops], replace paragraph 7 with:</p>
-<blockquote><p>
-Effects: Inserts an element pointed to by i from list x before 
-position and removes the element from x. The result is unchanged if 
-position == i or position == ++i.  Pointers and references to *i continue 
-to refer to this same element but as a member of *this.  Iterators to *i 
-(including i itself) continue to refer to the same element, but now 
-behave as iterators into *this, not into x.
-</p></blockquote>
-
-<p>In 23.3.5.5 [list.ops], replace paragraph 12 with:</p>
-<blockquote><p>
-Requires: [first, last) is a valid range in x. The result is 
-undefined if position is an iterator in the range [first, last).  
-Pointers and references to the moved elements of x now refer to those 
-same elements but as members of *this.  Iterators referring to the moved 
-elements will continue to refer to their elements, but they now behave as 
-iterators into *this, not into x.
-</p></blockquote>
-
-<p><i>[pre-Copenhagen: Howard provided wording.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The original proposed resolution said that iterators and references
-would remain "valid".  The new proposed resolution clarifies what that
-means.  Note that this only applies to the case of equal allocators.
-From  [default.con.req] paragraph 4, the behavior of list when
-allocators compare nonequal is outside the scope of the standard.</p>
-
-
-
-
-<hr>
-<h3><a name="251"></a>251. basic_stringbuf missing allocator_type</h3>
-<p><b>Section:</b> 27.8.2 [stringbuf] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The synopsis for the template class <tt>basic_stringbuf</tt>
-doesn't list a typedef for the template parameter
-<tt>Allocator</tt>. This makes it impossible to determine the type of
-the allocator at compile time. It's also inconsistent with all other
-template classes in the library that do provide a typedef for the
-<tt>Allocator</tt> parameter.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to the synopses of the class templates basic_stringbuf (27.7.1),
-basic_istringstream (27.7.2), basic_ostringstream (27.7.3), and 
-basic_stringstream (27.7.4) the typedef:</p>
-<pre>
-  typedef Allocator allocator_type;
-</pre>
-
-
-
-
-<hr>
-<h3><a name="252"></a>252. missing casts/C-style casts used in iostreams</h3>
-<p><b>Section:</b> 27.8 [string.streams] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.streams">issues</a> in [string.streams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.7.2.2, p1 uses a C-style cast rather than the more appropriate
-const_cast&lt;&gt; in the Returns clause for basic_istringstream&lt;&gt;::rdbuf().
-The same C-style cast is being used in 27.7.3.2, p1, D.7.2.2, p1, and
-D.7.3.2, p1, and perhaps elsewhere. 27.7.6, p1 and D.7.2.2, p1 are missing
-the cast altogether.</p>
-
-<p>C-style casts have not been deprecated, so the first part of this
-issue is stylistic rather than a matter of correctness.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.7.2.2, p1 replace </p>
-<pre>  -1- Returns: (basic_stringbuf&lt;charT,traits,Allocator&gt;*)&amp;sb.</pre>
-
-<p>with</p>
-<pre>  -1- Returns: const_cast&lt;basic_stringbuf&lt;charT,traits,Allocator&gt;*&gt;(&amp;sb).</pre>
-
-
-<p>In 27.7.3.2, p1 replace</p>
-<pre>  -1- Returns: (basic_stringbuf&lt;charT,traits,Allocator&gt;*)&amp;sb.</pre>
-
-<p>with</p>
-<pre>  -1- Returns: const_cast&lt;basic_stringbuf&lt;charT,traits,Allocator&gt;*&gt;(&amp;sb).</pre>
-
-<p>In 27.7.6, p1, replace</p>
-<pre>  -1- Returns: &amp;sb</pre>
-
-<p>with</p>
-<pre>  -1- Returns: const_cast&lt;basic_stringbuf&lt;charT,traits,Allocator&gt;*&gt;(&amp;sb).</pre>
-
-<p>In D.7.2.2, p1 replace</p>
-<pre>  -2- Returns: &amp;sb. </pre>
-
-<p>with</p>
-<pre>  -2- Returns: const_cast&lt;strstreambuf*&gt;(&amp;sb).</pre>
-
-
-
-
-<hr>
-<h3><a name="253"></a>253. valarray helper functions are almost entirely useless</h3>
-<p><b>Section:</b> 26.6.2.2 [valarray.cons], 26.6.2.3 [valarray.assign] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2000-07-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cons">issues</a> in [valarray.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>This discussion is adapted from message c++std-lib-7056 posted
-November 11, 1999.  I don't think that anyone can reasonably claim
-that the problem described below is NAD.</p>
-
-<p>These valarray constructors can never be called:</p>
-
-<pre>
-   template &lt;class T&gt;
-         valarray&lt;T&gt;::valarray(const slice_array&lt;T&gt; &amp;);
-   template &lt;class T&gt;
-         valarray&lt;T&gt;::valarray(const gslice_array&lt;T&gt; &amp;);
-   template &lt;class T&gt;
-         valarray&lt;T&gt;::valarray(const mask_array&lt;T&gt; &amp;);
-   template &lt;class T&gt;
-         valarray&lt;T&gt;::valarray(const indirect_array&lt;T&gt; &amp;);
-</pre>
-
-<p>Similarly, these valarray assignment operators cannot be
-called:</p>
-
-<pre>
-     template &lt;class T&gt;
-     valarray&lt;T&gt; valarray&lt;T&gt;::operator=(const slice_array&lt;T&gt; &amp;);
-     template &lt;class T&gt;
-     valarray&lt;T&gt; valarray&lt;T&gt;::operator=(const gslice_array&lt;T&gt; &amp;);
-     template &lt;class T&gt;
-     valarray&lt;T&gt; valarray&lt;T&gt;::operator=(const mask_array&lt;T&gt; &amp;);
-     template &lt;class T&gt;
-     valarray&lt;T&gt; valarray&lt;T&gt;::operator=(const indirect_array&lt;T&gt; &amp;);
-</pre>
-
-<p>Please consider the following example:</p>
-
-<pre>
-   #include &lt;valarray&gt;
-   using namespace std;
-
-   int main()
-   {
-       valarray&lt;double&gt; va1(12);
-       valarray&lt;double&gt; va2(va1[slice(1,4,3)]); // line 1
-   }
-</pre>
-
-
-<p>Since the valarray va1 is non-const, the result of the sub-expression
-va1[slice(1,4,3)] at line 1 is an rvalue of type const
-std::slice_array&lt;double&gt;.  This slice_array rvalue is then used to
-construct va2.  The constructor that is used to construct va2 is
-declared like this:</p>
-
-<pre>
-     template &lt;class T&gt;
-     valarray&lt;T&gt;::valarray(const slice_array&lt;T&gt; &amp;);
-</pre>
-
-<p>Notice the constructor's const reference parameter.  When the
-constructor is called, a slice_array must be bound to this reference.
-The rules for binding an rvalue to a const reference are in 8.5.3,
-paragraph 5 (see also 13.3.3.1.4).  Specifically, paragraph 5
-indicates that a second slice_array rvalue is constructed (in this
-case copy-constructed) from the first one; it is this second rvalue
-that is bound to the reference parameter.  Paragraph 5 also requires
-that the constructor that is used for this purpose be callable,
-regardless of whether the second rvalue is elided.  The
-copy-constructor in this case is not callable, however, because it is
-private.  Therefore, the compiler should report an error.</p>
-
-<p>Since slice_arrays are always rvalues, the valarray constructor that has a
-parameter of type const slice_array&lt;T&gt; &amp; can never be called.  The
-same reasoning applies to the three other constructors and the four
-assignment operators that are listed at the beginning of this post.
-Furthermore, since these functions cannot be called, the valarray helper
-classes are almost entirely useless.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>slice_array:</p>
-<ul>
-<li> Make the copy constructor and copy-assignment operator declarations
-     public in the slice_array class template definition in 26.6.5 [template.slice.array] </li>
-<li> remove paragraph 3 of 26.6.5 [template.slice.array]</li>
-<li> remove the copy constructor declaration from  [cons.slice.arr]</li>
-<li> change paragraph 1 of  [cons.slice.arr] to read "This constructor is declared
-    to be private.  This constructor need not be defined."</li>
-<li> remove the first sentence of paragraph 1 of 26.6.5.2 [slice.arr.assign]</li>
-<li> Change the first three words of the second sentence of paragraph 1 of
-    26.6.5.2 [slice.arr.assign] to "These assignment operators have"</li>
-</ul>
-
-<p>gslice_array:</p>
-<ul>
-<li> Make the copy constructor and copy-assignment operator declarations
-    public in the gslice_array class template definition in 26.6.7 [template.gslice.array] </li>
-<li> remove the note in paragraph 3 of 26.6.7 [template.gslice.array]</li>
-<li> remove the copy constructor declaration from  [gslice.array.cons]</li>
-<li> change paragraph 1 of  [gslice.array.cons] to read "This constructor is declared
-    to be private.  This constructor need not be defined."</li>
-<li> remove the first sentence of paragraph 1 of 26.6.7.2 [gslice.array.assign]</li>
-<li> Change the first three words of the second sentence of paragraph 1 of
-    26.6.7.2 [gslice.array.assign] to "These assignment operators have"</li>
-</ul>
-
-<p>mask_array:</p>
-<ul>
-<li> Make the copy constructor and copy-assignment operator declarations
-    public in the mask_array class template definition in 26.6.8 [template.mask.array] </li>
-<li> remove the note in paragraph 2 of 26.6.8 [template.mask.array]</li>
-<li> remove the copy constructor declaration from  [mask.array.cons]</li>
-<li> change paragraph 1 of  [mask.array.cons] to read "This constructor is declared
-    to be private.  This constructor need not be defined."</li>
-<li> remove the first sentence of paragraph 1 of 26.6.8.2 [mask.array.assign]</li>
-<li> Change the first three words of the second sentence of paragraph 1 of
-    26.6.8.2 [mask.array.assign] to "These assignment operators have"</li>
-</ul>
-
-<p>indirect_array:</p>
-<ul>
-<li>Make the copy constructor and copy-assignment operator declarations
-    public in the indirect_array class definition in 26.6.9 [template.indirect.array]</li>
-<li> remove the note in paragraph 2 of 26.6.9 [template.indirect.array]</li>
-<li> remove the copy constructor declaration from  [indirect.array.cons]</li>
-<li> change the descriptive text in  [indirect.array.cons] to read "This constructor is
-    declared to be private.  This constructor need not be defined."</li>
-<li> remove the first sentence of paragraph 1 of 26.6.9.2 [indirect.array.assign]</li>
-<li> Change the first three words of the second sentence of paragraph 1 of
-    26.6.9.2 [indirect.array.assign] to "These assignment operators have"</li>
-</ul>
-<p><i>[Proposed resolution was modified in Santa Cruz: explicitly make
-copy constructor and copy assignment operators public, instead of
-removing them.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Keeping the valarray constructors private is untenable.  Merely
-making valarray a friend of the helper classes isn't good enough,
-because access to the copy constructor is checked in the user's
-environment.</p>
-
-<p>Making the assignment operator public is not strictly necessary to
-solve this problem.  A majority of the LWG <i>(straw poll: 13-4)</i>
-believed we should make the assignment operators public, in addition
-to the copy constructors, for reasons of symmetry and user
-expectation.</p>
-
-
-
-
-
-<hr>
-<h3><a name="254"></a>254. Exception types in clause 19 are constructed from <tt>std::string</tt></h3>
-<p><b>Section:</b> 19.2 [std.exceptions], 27.5.3.1.1 [ios::failure] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2000-08-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#std.exceptions">issues</a> in [std.exceptions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Many of the standard exception types which implementations are
-required to throw are constructed with a const std::string&amp;
-parameter. For example:
-</p>
-
-<pre>
-     19.1.5  Class out_of_range                          [lib.out.of.range]
-     namespace std {
-       class out_of_range : public logic_error {
-       public:
-         explicit out_of_range(const string&amp; what_arg);
-       };
-     }
-
-   1 The class out_of_range defines the type of objects  thrown  as  excep-
-     tions to report an argument value not in its expected range.
-
-     out_of_range(const string&amp; what_arg);
-
-     Effects:
-       Constructs an object of class out_of_range.
-     Postcondition:
-       strcmp(what(), what_arg.c_str()) == 0.
-</pre>
-
-<p>
-There are at least two problems with this:
-</p>
-<ol>
-<li>A program which is low on memory may end up throwing
-std::bad_alloc instead of out_of_range because memory runs out while
-constructing the exception object.</li>
-<li>An obvious implementation which stores a std::string data member
-may end up invoking terminate() during exception unwinding because the
-exception object allocates memory (or rather fails to) as it is being
-copied.</li>
-</ol>
-
-<p>
-There may be no cure for (1) other than changing the interface to
-out_of_range, though one could reasonably argue that (1) is not a
-defect. Personally I don't care that much if out-of-memory is reported
-when I only have 20 bytes left, in the case when out_of_range would
-have been reported. People who use exception-specifications might care
-a lot, though.
-</p>
-
-<p>
-There is a cure for (2), but it isn't completely obvious. I think a
-note for implementors should be made in the standard. Avoiding
-possible termination in this case shouldn't be left up to chance.  The
-cure is to use a reference-counted &quot;string&quot; implementation
-in the exception object. I am not necessarily referring to a
-std::string here; any simple reference-counting scheme for a NTBS
-would do.
-</p>
-
-<p><b>Further discussion, in email:</b></p>
-
-<p>
-...I'm not so concerned about (1). After all, a library implementation
-can add const char* constructors as an extension, and users don't
-<i>need</i> to avail themselves of the standard exceptions, though this is
-a lame position to be forced into.  FWIW, std::exception and
-std::bad_alloc don't require a temporary basic_string.
-</p>
-
-<p>
-...I don't think the fixed-size buffer is a solution to the problem,
-strictly speaking, because you can't satisfy the postcondition
-<br/>
-    <tt>&nbsp;&nbsp;strcmp(what(), what_arg.c_str()) == 0</tt>
-<br/>
-For all values of what_arg (i.e. very long values). That means that
-the only truly conforming solution requires a dynamic allocation.
-</p>
-
-<p><b>Further discussion, from Redmond:</b></p>
-
-<p>The most important progress we made at the Redmond meeting was
-realizing that there are two separable issues here: the const
-string&amp; constructor, and the copy constructor.  If a user writes
-something like <tt>throw std::out_of_range("foo")</tt>, the const
-string&amp; constructor is invoked before anything gets thrown.  The
-copy constructor is potentially invoked during stack unwinding.</p>
-
-<p>The copy constructor is a more serious problem, becuase failure
-during stack unwinding invokes <tt>terminate</tt>.  The copy
-constructor must be nothrow. <i>Cura&ccedil;ao: Howard thinks this
-requirement may already be present.</i></p>
-
-<p>The fundamental problem is that it's difficult to get the nothrow
-requirement to work well with the requirement that the exception
-objects store a string of unbounded size, particularly if you also try
-to make the const string&amp; constructor nothrow.  Options discussed
-include:</p>
-
-<ul>
-<li>Limit the size of a string that exception objects are required to
-throw: change the postconditions of 19.2.2 [domain.error] paragraph 3
-and 19.2.6 [runtime.error] paragraph 3 to something like this:
-"strncmp(what(), what_arg._str(), N) == 0, where N is an
-implementation defined constant no smaller than 256".</li>
-<li>Allow the const string&amp; constructor to throw, but not the
-copy constructor.  It's the implementor's responsibility to get it
-right.  (An implementor might use a simple refcount class.)</li>
-<li>Compromise between the two: an implementation is not allowed to
-throw if the string's length is less than some N, but, if it doesn't
-throw, the string must compare equal to the argument.</li>
-<li>Add a new constructor that takes a const char*</li>
-</ul>
-
-<p>(Not all of these options are mutually exclusive.)</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 19.2.1 [logic.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class logic_error : public exception {
-  public:
-    explicit logic_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit logic_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>logic_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>logic_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.2 [domain.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class domain_error : public logic_error {
-  public:
-    explicit domain_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit domain_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>domain_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>domain_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<p>
-Change 19.2.3 [invalid.argument]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class invalid_argument : public logic_error {
-  public:
-    explicit invalid_argument(const string&amp; <i>what_arg</i>);
-    <ins>explicit invalid_argument(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>invalid_argument(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>invalid_argument</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.4 [length.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class length_error : public logic_error {
-  public:
-    explicit length_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit length_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>length_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>length_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.5 [out.of.range]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class out_of_range : public logic_error {
-  public:
-    explicit out_of_range(const string&amp; <i>what_arg</i>);
-    <ins>explicit out_of_range(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>out_of_range(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>out_of_range</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.6 [runtime.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class runtime_error : public exception {
-  public:
-    explicit runtime_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit runtime_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>runtime_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>runtime_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.7 [range.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class range_error : public runtime_error {
-  public:
-    explicit range_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit range_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>range_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>range_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.8 [overflow.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class overflow_error : public runtime_error {
-  public:
-    explicit overflow_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit overflow_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>overflow_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>overflow_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 19.2.9 [underflow.error]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class underflow_error : public runtime_error {
-  public:
-    explicit underflow_error(const string&amp; <i>what_arg</i>);
-    <ins>explicit underflow_error(const char* <i>what_arg</i>);</ins>
-  };
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>underflow_error(const char* <i>what_arg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>underflow_error</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>what_arg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 27.5.3.1.1 [ios::failure]
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class ios_base::failure : public exception {
-  public:
-    explicit failure(const string&amp; <i>msg</i>);
-    <ins>explicit failure(const char* <i>msg</i>);</ins>
-    virtual const char* what() const throw();
-};
-}
-</pre>
-<p>...</p>
-<p>
-<ins><tt>failure(const char* <i>msg</i>);</tt></ins>
-</p>
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Constructs an object of class <tt>failure</tt>.
-</ins></p>
-<p><ins>
--5- <i>Postcondition:</i> <tt>strcmp(what(), <i>msg</i>) == 0</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-
-<p>Throwing a bad_alloc while trying to construct a message for another
-exception-derived class is not necessarily a bad thing.  And the
-bad_alloc constructor already has a no throw spec on it (18.4.2.1).</p>
-
-<p><b>Future:</b></p>
-
-<p>All involved would like to see const char* constructors added, but
-this should probably be done for C++0X as opposed to a DR.</p>
-
-<p>I believe the no throw specs currently decorating these functions
-could be improved by some kind of static no throw spec checking
-mechanism (in a future C++ language).  As they stand, the copy
-constructors might fail via a call to unexpected.  I think what is
-intended here is that the copy constructors can't fail.</p>
-
-<p><i>[Pre-Sydney: reopened at the request of Howard Hinnant.
-  Post-Redmond: James Kanze noticed that the copy constructors of
-  exception-derived classes do not have nothrow clauses.  Those
-  classes have no copy constructors declared, meaning the
-  compiler-generated implicit copy constructors are used, and those
-  compiler-generated constructors might in principle throw anything.]</i></p>
-
-
-<p><i>[
-Batavia:  Merged copy constructor and assignment operator spec into <tt>exception</tt>
-and added <tt>ios::failure</tt> into the proposed resolution.
-]</i></p>
-
-
-<p><i>[
-Oxford:  The proposed resolution simply addresses the issue of constructing
-the exception objects with <tt>const char*</tt> and string literals without
-the need to explicit include or construct a <tt>std::string</tt>.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="256"></a>256. typo in 27.4.4.2, p17: copy_event does not exist</h3>
-<p><b>Section:</b> 27.5.5.3 [basic.ios.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-08-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-27.4.4.2, p17 says
-</p>
-
-<blockquote><p>
--17- Before copying any parts of rhs, calls each registered callback
-pair (fn,index) as (*fn)(erase_event,*this,index). After all parts but
-exceptions() have been replaced, calls each callback pair that was
-copied from rhs as (*fn)(copy_event,*this,index). 
-</p></blockquote>
-
-<p>
-The name copy_event isn't defined anywhere. The intended name was
-copyfmt_event.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace copy_event with copyfmt_event in the named paragraph.</p>
-
-
-
-
-<hr>
-<h3><a name="258"></a>258. Missing allocator requirement</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2000-08-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From lib-7752:
-</p>
-
-<p>
-I've been assuming (and probably everyone else has been assuming) that
-allocator instances have a particular property, and I don't think that
-property can be deduced from anything in Table 32.
-</p>
-
-<p>
-I think we have to assume that allocator type conversion is a
-homomorphism.  That is, if x1 and x2 are of type X, where
-X::value_type is T, and if type Y is X::template
-rebind&lt;U&gt;::other, then Y(x1) == Y(x2) if and only if x1 == x2.
-</p>
-
-<p>
-Further discussion: Howard Hinnant writes, in lib-7757:
-</p>
-
-<p>
-I think I can prove that this is not provable by Table 32.  And I agree 
-it needs to be true except for the "and only if".  If x1 != x2, I see no 
-reason why it can't be true that Y(x1) == Y(x2).  Admittedly I can't 
-think of a practical instance where this would happen, or be valuable.  
-But I also don't see a need to add that extra restriction.  I think we 
-only need:
-</p>
-
-<blockquote><p>
-     if (x1 == x2) then Y(x1) == Y(x2)
-</p></blockquote>
-
-<p>
-If we decide that == on allocators is transitive, then I think I can 
-prove the above.  But I don't think == is necessarily transitive on 
-allocators.  That is:
-</p>
-
-<p>
-Given x1 == x2  and x2 == x3, this does not mean x1 == x3.
-</p>
-
-<p>Example:</p>
-
-<blockquote>
-<p>
-x1 can deallocate pointers from:  x1, x2, x3    <br/>
-x2 can deallocate pointers from:  x1, x2, x4    <br/>
-x3 can deallocate pointers from:  x1, x3        <br/>
-x4 can deallocate pointers from:  x2, x4 
-</p>
-
-<p>
-x1 == x2, and x2 == x4, but x1 != x4
-</p>
-</blockquote>
-<p><i>[Toronto: LWG members offered multiple opinions.  One
-opinion is that it should not be required that <tt>x1 == x2</tt>
-implies <tt>Y(x1) == Y(x2)</tt>, and that it should not even be
-required that <tt>X(x1) == x1</tt>.  Another opinion is that 
-the second line from the bottom in table 32 already implies the
-desired property.  This issue should be considered in light of
-other issues related to allocator instances.]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Accept proposed wording from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2436.pdf">N2436</a> part 3.
-</p>
-
-
-<p><i>[Lillehammer: Same conclusion as before: this should be
-  considered as part of an allocator redesign, not solved on its own.]</i></p>
-
-
-<p><i>[
-Batavia:  An allocator redesign is not forthcoming and thus we fixed this one issue.
-]</i></p>
-
-
-<p><i>[
-Toronto:  Reopened at the request of the project editor (Pete) because the proposed
-wording did not fit within the indicated table.  The intent of the resolution remains
-unchanged.  Pablo to work with Pete on improved wording.
-]</i></p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2387 for this issue which
-was subsequently split out into a separate paper N2436 for the purposes of voting.
-The resolution in N2436 addresses this issue.  The LWG voted to accelerate this
-issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="259"></a>259. <tt>basic_string::operator[]</tt> and const correctness</h3>
-<p><b>Section:</b> 21.4.4 [string.capacity] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Chris Newton  <b>Opened:</b> 2000-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.capacity">issues</a> in [string.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<i>Paraphrased from a message that Chris Newton posted to comp.std.c++:</i>
-</p>
-
-<p>
-The standard's description of <tt>basic_string&lt;&gt;::operator[]</tt>
-seems to violate const correctness.
-</p>
-
-<p>
-The standard (21.3.4/1) says that &quot;If <tt>pos &lt; size()</tt>,
-returns <tt>data()[pos]</tt>.&quot; The types don't work.  The
-return value of <tt>data()</tt> is <tt>const charT*</tt>, but
-<tt>operator[]</tt> has a non-const version whose return type is <tt>reference</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section 21.3.4, paragraph 1, change
-&quot;<tt>data()[<i>pos</i>]</tt>&quot; to &quot;<tt>*(begin() +
-<i>pos</i>)</tt>&quot;.
-</p>
-
-
-
-
-<hr>
-<h3><a name="260"></a>260. Inconsistent return type of <tt>istream_iterator::operator++(int)</tt></h3>
-<p><b>Section:</b> 24.6.1.2 [istream.iterator.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator.ops">issues</a> in [istream.iterator.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The synopsis of istream_iterator::operator++(int) in 24.5.1 shows
-it as returning the iterator by value. 24.5.1.2, p5 shows the same
-operator as returning the iterator by reference. That's incorrect
-given the Effects clause below (since a temporary is returned). The
-`&amp;' is probably just a typo.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the declaration in 24.5.1.2, p5 from</p>
- <pre>
- istream_iterator&lt;T,charT,traits,Distance&gt;&amp; operator++(int);
- </pre>
-<p>to</p>
- <pre>
- istream_iterator&lt;T,charT,traits,Distance&gt; operator++(int);
- </pre>
-<p>(that is, remove the `&amp;').</p>
-
-
-
-
-<hr>
-<h3><a name="261"></a>261. Missing description of <tt>istream_iterator::operator!=</tt></h3>
-<p><b>Section:</b> 24.6.1.2 [istream.iterator.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator.ops">issues</a> in [istream.iterator.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-24.5.1, p3 lists the synopsis for
-</p>
-
-<pre>
-   template &lt;class T, class charT, class traits, class Distance&gt;
-        bool operator!=(const istream_iterator&lt;T,charT,traits,Distance&gt;&amp; x,
-                        const istream_iterator&lt;T,charT,traits,Distance&gt;&amp; y);
-</pre>
-
-<p>
-but there is no description of what the operator does (i.e., no Effects
-or Returns clause) in 24.5.1.2.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add paragraph 7 to the end of section 24.5.1.2 with the following text:
-</p>
-
-<pre>
-   template &lt;class T, class charT, class traits, class Distance&gt;
-        bool operator!=(const istream_iterator&lt;T,charT,traits,Distance&gt;&amp; x,
-                        const istream_iterator&lt;T,charT,traits,Distance&gt;&amp; y);
-</pre>
-
-<p>-7- Returns: !(x == y).</p>
-
-
-
-
-<hr>
-<h3><a name="262"></a>262. Bitmask operator ~ specified incorrectly</h3>
-<p><b>Section:</b> 17.5.2.1.3 [bitmask.types] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2000-09-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitmask.types">issues</a> in [bitmask.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The ~ operation should be applied after the cast to int_type.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.3.2.1.2 [lib.bitmask.types] operator~ from:
-</p>
-
-<pre>
-   bitmask operator~ ( bitmask X )
-     { return static_cast&lt; bitmask&gt;(static_cast&lt;int_type&gt;(~ X)); }
-</pre>
-
-<p>
-to:
-</p>
-
-<pre>
-   bitmask operator~ ( bitmask X )
-     { return static_cast&lt; bitmask&gt;(~static_cast&lt;int_type&gt;(X)); }
-</pre>
-
-
-
-
-<hr>
-<h3><a name="263"></a>263. Severe restriction on <tt>basic_string</tt> reference counting</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Kevlin Henney <b>Opened:</b> 2000-09-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The note in paragraph 6 suggests that the invalidation rules for
-references, pointers, and iterators in paragraph 5 permit a reference-
-counted implementation (actually, according to paragraph 6, they permit
-a &quot;reference counted implementation&quot;, but this is a minor editorial fix).
-</p>
-
-<p>
-However, the last sub-bullet is so worded as to make a reference-counted
-implementation unviable. In the following example none of the
-conditions for iterator invalidation are satisfied:
-</p>
-
-<pre>
-    // first example: &quot;*******************&quot; should be printed twice
-    string original = &quot;some arbitrary text&quot;, copy = original;
-    const string &amp; alias = original;
-
-    string::const_iterator i = alias.begin(), e = alias.end();
-    for(string::iterator j = original.begin(); j != original.end(); ++j)
-        *j = '*';
-    while(i != e)
-        cout &lt;&lt; *i++;
-    cout &lt;&lt; endl;
-    cout &lt;&lt; original &lt;&lt; endl;
-</pre>
-
-<p>
-Similarly, in the following example:
-</p>
-
-<pre>
-    // second example: &quot;some arbitrary text&quot; should be printed out
-    string original = &quot;some arbitrary text&quot;, copy = original;
-    const string &amp; alias = original;
-
-    string::const_iterator i = alias.begin();
-    original.begin();
-    while(i != alias.end())
-        cout &lt;&lt; *i++;
-</pre>
-
-<p>
-I have tested this on three string implementations, two of which were
-reference counted. The reference-counted implementations gave
-&quot;surprising behavior&quot; because they invalidated iterators on
-the first call to non-const begin since construction. The current
-wording does not permit such invalidation because it does not take
-into account the first call since construction, only the first call
-since various member and non-member function calls.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the following sentence in 21.3 paragraph 5 from
-</p>
-
-<blockquote><p>
-    Subsequent to any of the above uses except the forms of insert() and
-    erase() which return iterators, the first call to non-const member
-    functions operator[](), at(), begin(), rbegin(), end(), or rend().
-</p></blockquote>
-
-<p>to</p>
-
-<blockquote><p>
-    Following construction or any of the above uses, except the forms of
-    insert() and erase() that return iterators, the first call to non-
-    const member functions operator[](), at(), begin(), rbegin(), end(),
-    or rend().
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="264"></a>264. Associative container <tt>insert(i, j)</tt> complexity requirements are not feasible.</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> John Potter <b>Opened:</b> 2000-09-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#102">102</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Table 69 requires linear time if [i, j) is sorted.  Sorted is necessary but not sufficient.
-Consider inserting a sorted range of even integers into a set&lt;int&gt; containing the odd
-integers in the same range.
-</p>
-
-<p><i>Related issue: <a href="lwg-closed.html#102">102</a></i></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In Table 69, in section 23.1.2, change the complexity clause for
-insertion of a range from &quot;N log(size() + N) (N is the distance
-from i to j) in general; linear if [i, j) is sorted according to
-value_comp()&quot; to &quot;N log(size() + N), where N is the distance
-from i to j&quot;.
-</p>
-
-<p><i>[Copenhagen: Minor fix in proposed resolution: fixed unbalanced
-parens in the revised wording.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Testing for valid insertions could be less efficient than simply
-inserting the elements when the range is not both sorted and between
-two adjacent existing elements; this could be a QOI issue.
-</p>
-
-<p> 
-The LWG considered two other options: (a) specifying that the
-complexity was linear if [i, j) is sorted according to value_comp()
-and between two adjacent existing elements; or (b) changing to
-Klog(size() + N) + (N - K) (N is the distance from i to j and K is the
-number of elements which do not insert immediately after the previous
-element from [i, j) including the first).  The LWG felt that, since
-we can't guarantee linear time complexity whenever the range to be
-inserted is sorted, it's more trouble than it's worth to say that it's
-linear in some special cases.
-</p>
-
-
-
-
-<hr>
-<h3><a name="265"></a>265. std::pair::pair() effects overly restrictive</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-09-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I don't see any requirements on the types of the elements of the
-std::pair container in 20.2.2. From the descriptions of the member
-functions it appears that they must at least satisfy the requirements of
-20.1.3 [lib.copyconstructible] and 20.1.4 [lib.default.con.req], and in
-the case of the [in]equality operators also the requirements of 20.1.1
-[lib.equalitycomparable] and 20.1.2 [lib.lessthancomparable].
-</p>
-
-<p>
-I believe that the the CopyConstructible requirement is unnecessary in
-the case of 20.2.2, p2.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the Effects clause in 20.2.2, p2 from</p>
-
-<blockquote><p>
--2- <b>Effects</b>: Initializes its members as if implemented: <tt> pair() :
-first(T1()), second(T2()) {} </tt>
-</p></blockquote>
-
-<p>to</p>
-
-<blockquote><p>
--2- <b>Effects</b>: Initializes its members as if implemented: <tt> pair() :
-first(), second() {} </tt>
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>The existing specification of pair's constructor appears to be a
-historical artifact: there was concern that pair's members be properly
-zero-initialized when they are built-in types.  At one time there was
-uncertainty about whether they would be zero-initialized if the
-default constructor was written the obvious way.  This has been
-clarified by core issue 178, and there is no longer any doubt that
-the straightforward implementation is correct.</p>
-
-
-
-
-<hr>
-<h3><a name="266"></a>266. bad_exception::~bad_exception() missing Effects clause</h3>
-<p><b>Section:</b> 18.8.2 [bad.exception] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopsis for std::bad_exception lists the function ~bad_exception()
-but there is no description of what the function does (the Effects
-clause is missing).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the destructor from the class synopses of 
-<tt>bad_alloc</tt> (18.6.2.1 [bad.alloc]),
-<tt>bad_cast</tt> (18.7.2 [bad.cast]),
-<tt>bad_typeid</tt> (18.7.3 [bad.typeid]),
-and <tt>bad_exception</tt> (18.8.2 [bad.exception]).
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-This is a general problem with the exception classes in clause 18. 
-The proposed resolution is to remove the destructors from the class
-synopses, rather than to document the destructors' behavior, because
-removing them is more consistent with how exception classes are
-described in clause 19.
-</p>
-
-
-
-
-<hr>
-<h3><a name="268"></a>268. Typo in locale synopsis</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The synopsis of the class std::locale in 22.1.1 contains two typos:
-the semicolons after the declarations of the default ctor
-locale::locale() and the copy ctor locale::locale(const locale&amp;)
-are missing.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the missing semicolons, i.e., change</p>
-
-<pre>
-    //  construct/copy/destroy:
-        locale() throw()
-        locale(const locale&amp; other) throw()
-</pre>
-
-<p>in the synopsis in 22.1.1 to</p>
-
-<pre>
-    //  construct/copy/destroy:
-        locale() throw();
-        locale(const locale&amp; other) throw();
-</pre>
-
-
-
-
-<hr>
-<h3><a name="270"></a>270. Binary search requirements overly strict</h3>
-<p><b>Section:</b> 25.4.3 [alg.binary.search] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2000-10-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.binary.search">issues</a> in [alg.binary.search].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#472">472</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Each of the four binary search algorithms (lower_bound, upper_bound,
-equal_range, binary_search) has a form that allows the user to pass a
-comparison function object.  According to 25.3, paragraph 2, that
-comparison function object has to be a strict weak ordering.
-</p>
-
-<p>
-This requirement is slightly too strict.  Suppose we are searching
-through a sequence containing objects of type X, where X is some
-large record with an integer key.  We might reasonably want to look
-up a record by key, in which case we would want to write something
-like this:
-</p>
-<pre>
-    struct key_comp {
-      bool operator()(const X&amp; x, int n) const {
-        return x.key() &lt; n;
-      }
-    }
-
-    std::lower_bound(first, last, 47, key_comp());
-</pre>
-
-<p>
-key_comp is not a strict weak ordering, but there is no reason to
-prohibit its use in lower_bound.
-</p>
-
-<p>
-There's no difficulty in implementing lower_bound so that it allows
-the use of something like key_comp.  (It will probably work unless an
-implementor takes special pains to forbid it.)  What's difficult is
-formulating language in the standard to specify what kind of
-comparison function is acceptable.  We need a notion that's slightly
-more general than that of a strict weak ordering, one that can encompass
-a comparison function that involves different types.  Expressing that
-notion may be complicated.
-</p>
-
-<p><i>Additional questions raised at the Toronto meeting:</i></p>
-<ul>
-<li> Do we really want to specify what ordering the implementor must
-     use when calling the function object?  The standard gives 
-     specific expressions when describing these algorithms, but it also
-     says that other expressions (with different argument order) are
-     equivalent.</li>
-<li> If we are specifying ordering, note that the standard uses both
-     orderings when describing <tt>equal_range</tt>.</li>
-<li> Are we talking about requiring these algorithms to work properly
-     when passed a binary function object whose two argument types
-     are not the same, or are we talking about requirements when
-     they are passed a binary function object with several overloaded
-     versions of <tt>operator()</tt>?</li>
-<li> The definition of a strict weak ordering does not appear to give
-     any guidance on issues of overloading; it only discusses expressions,
-     and all of the values in these expressions are of the same type.
-     Some clarification would seem to be in order.</li>
-</ul>
-
-<p><i>Additional discussion from Copenhagen:</i></p>
-<ul>
-<li>It was generally agreed that there is a real defect here: if
-the predicate is merely required to be a Strict Weak Ordering, then
-it's possible to pass in a function object with an overloaded
-operator(), where the version that's actually called does something
-completely inappropriate.  (Such as returning a random value.)</li>
-
-<li>An alternative formulation was presented in a paper distributed by
-David Abrahams at the meeting, "Binary Search with Heterogeneous
-Comparison", J16-01/0027 = WG21 N1313: Instead of viewing the
-predicate as a Strict Weak Ordering acting on a sorted sequence, view
-the predicate/value pair as something that partitions a sequence.
-This is almost equivalent to saying that we should view binary search
-as if we are given a unary predicate and a sequence, such that f(*p)
-is true for all p below a specific point and false for all p above it.
-The proposed resolution is based on that alternative formulation.</li>
-</ul>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change 25.3 [lib.alg.sorting] paragraph 3 from:</p>
-
-<blockquote><p>
-  3 For all algorithms that take Compare, there is a version that uses
-  operator&lt; instead. That is, comp(*i, *j) != false defaults to *i &lt;
-  *j != false. For the algorithms to work correctly, comp has to
-  induce a strict weak ordering on the values.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-  3 For all algorithms that take Compare, there is a version that uses
-  operator&lt; instead. That is, comp(*i, *j) != false defaults to *i
-  &lt; *j != false. For algorithms other than those described in
-  lib.alg.binary.search (25.3.3) to work correctly, comp has to induce
-  a strict weak ordering on the values.
-</p></blockquote>
-
-<p>Add the following paragraph after 25.3 [lib.alg.sorting] paragraph 5:</p>
-
-<blockquote><p>
-  -6- A sequence [start, finish) is partitioned with respect to an
-  expression f(e) if there exists an integer n such that
-  for all 0 &lt;= i &lt; distance(start, finish), f(*(begin+i)) is true if
-  and only if i &lt; n.
-</p></blockquote>
-
-<p>Change 25.3.3 [lib.alg.binary.search] paragraph 1 from:</p>
-
-<blockquote><p>
-  -1- All of the algorithms in this section are versions of binary
-   search and assume that the sequence being searched is in order
-   according to the implied or explicit comparison function. They work
-   on non-random access iterators minimizing the number of
-   comparisons, which will be logarithmic for all types of
-   iterators. They are especially appropriate for random access
-   iterators, because these algorithms do a logarithmic number of
-   steps through the data structure. For non-random access iterators
-   they execute a linear number of steps.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-   -1- All of the algorithms in this section are versions of binary
-    search and assume that the sequence being searched is partitioned
-    with respect to an expression formed by binding the search key to
-    an argument of the implied or explicit comparison function. They
-    work on non-random access iterators minimizing the number of
-    comparisons, which will be logarithmic for all types of
-    iterators. They are especially appropriate for random access
-    iterators, because these algorithms do a logarithmic number of
-    steps through the data structure. For non-random access iterators
-    they execute a linear number of steps.
-</p></blockquote>
-
-<p>Change 25.3.3.1 [lib.lower.bound] paragraph 1 from:</p>
-
-<blockquote><p>
-   -1- Requires: Type T is LessThanComparable
-    (lib.lessthancomparable). 
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-   -1- Requires: The elements e of [first, last) are partitioned with
-   respect to the expression e &lt; value or comp(e, value)
-</p></blockquote>
-
-
-<p>Remove 25.3.3.1 [lib.lower.bound] paragraph 2:</p>
-
-<blockquote><p>
-   -2- Effects: Finds the first position into which value can be
-    inserted without violating the ordering. 
-</p></blockquote>
-
-<p>Change 25.3.3.2 [lib.upper.bound] paragraph 1 from:</p>
-
-<blockquote><p>
-  -1- Requires: Type T is LessThanComparable (lib.lessthancomparable).
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-   -1- Requires: The elements e of [first, last) are partitioned with
-   respect to the expression !(value &lt; e) or !comp(value, e)
-</p></blockquote>
-
-<p>Remove 25.3.3.2 [lib.upper.bound] paragraph 2:</p>
-
-<blockquote><p>
-   -2- Effects: Finds the furthermost position into which value can be
-    inserted without violating the ordering.
-</p></blockquote>
-
-<p>Change 25.3.3.3 [lib.equal.range] paragraph 1 from:</p>
-
-<blockquote><p>
-   -1- Requires: Type T is LessThanComparable
-    (lib.lessthancomparable).
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-   -1- Requires: The elements e of [first, last) are partitioned with
-   respect to the expressions e &lt; value and !(value &lt; e) or
-   comp(e, value) and !comp(value, e).  Also, for all elements e of
-   [first, last), e &lt; value implies !(value &lt; e) or comp(e,
-   value) implies !comp(value, e)
-</p></blockquote>
-
-<p>Change 25.3.3.3 [lib.equal.range] paragraph 2 from:</p>
-
-<blockquote><p>
-   -2- Effects: Finds the largest subrange [i, j) such that the value
-    can be inserted at any iterator k in it without violating the
-    ordering. k satisfies the corresponding conditions: !(*k &lt; value)
-    &amp;&amp; !(value &lt; *k) or comp(*k, value) == false &amp;&amp; comp(value, *k) ==
-    false.
-</p></blockquote>
-
-<p>to:</p>
-
-<pre>
-   -2- Returns: 
-         make_pair(lower_bound(first, last, value),
-                   upper_bound(first, last, value))
-       or
-         make_pair(lower_bound(first, last, value, comp),
-                   upper_bound(first, last, value, comp))
-</pre>
-
-<p>Change 25.3.3.3 [lib.binary.search] paragraph 1 from:</p>
-
-<blockquote><p>
-   -1- Requires: Type T is LessThanComparable
-    (lib.lessthancomparable).
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-   -1- Requires: The elements e of [first, last) are partitioned with
-   respect to the expressions e &lt; value and !(value &lt; e) or comp(e,
-   value) and !comp(value, e). Also, for all elements e of [first,
-   last), e &lt; value implies !(value &lt; e) or comp(e, value) implies
-   !comp(value, e)
-</p></blockquote>
-
-<p><i>[Copenhagen: Dave Abrahams provided this wording]</i></p>
-
-
-<p><i>[Redmond: Minor changes in wording.  (Removed "non-negative", and
-changed the "other than those described in" wording.) Also, the LWG
-decided to accept the "optional" part.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The proposed resolution reinterprets binary search. Instead of
-thinking about searching for a value in a sorted range, we view that
-as an important special case of a more general algorithm: searching
-for the partition point in a partitioned range.</p>
-
-<p>We also add a guarantee that the old wording did not: we ensure
-that the upper bound is no earlier than the lower bound, that
-the pair returned by equal_range is a valid range, and that the first
-part of that pair is the lower bound.</p>
-
-
-
-
-
-<hr>
-<h3><a name="271"></a>271. basic_iostream missing typedefs</h3>
-<p><b>Section:</b> 27.7.2.5 [iostreamclass] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class template basic_iostream has no typedefs.  The typedefs it
-inherits from its base classes can't be used, since (for example)
-basic_iostream&lt;T&gt;::traits_type is ambiguous.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add the following to basic_iostream's class synopsis in 
-27.7.2.5 [iostreamclass], immediately after <tt>public</tt>:</p>
-
-<pre>
-  // types:
-  typedef charT                     char_type;
-  typedef typename traits::int_type int_type;
-  typedef typename traits::pos_type pos_type;
-  typedef typename traits::off_type off_type;
-  typedef traits                    traits_type;
-</pre>
-
-
-
-
-<hr>
-<h3><a name="272"></a>272. Missing parentheses around subexpression</h3>
-<p><b>Section:</b> 27.5.5.4 [iostate.flags] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#569">569</a></p>
-<p><b>Discussion:</b></p>
-<p>
-27.4.4.3, p4 says about the postcondition of the function: If
-rdbuf()!=0 then state == rdstate(); otherwise
-rdstate()==state|ios_base::badbit.
-</p>
-
-<p>
-The expression on the right-hand-side of the operator==() needs to be
-parenthesized in order for the whole expression to ever evaluate to
-anything but non-zero.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add parentheses like so: rdstate()==(state|ios_base::badbit).
-</p>
-
-
-
-
-<hr>
-<h3><a name="273"></a>273. Missing ios_base qualification on members of a dependent class</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.5.2.4.2, p4, and 27.8.1.6, p2, 27.8.1.7, p3, 27.8.1.9, p2,
-27.8.1.10, p3 refer to in and/or out w/o ios_base:: qualification.
-That's incorrect since the names are members of a dependent base
-class (14.6.2 [temp.dep]) and thus not visible.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Qualify the names with the name of the class of which they are
-members, i.e., ios_base.</p>
-
-
-
-
-<hr>
-<h3><a name="274"></a>274. a missing/impossible allocator requirement</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I see that table 31 in 20.1.5, p3 allows T in std::allocator&lt;T&gt; to be of
-any type. But the synopsis in 20.4.1 calls for allocator&lt;&gt;::address() to
-be overloaded on reference and const_reference, which is ill-formed for
-all T = const U. In other words, this won't work:
-</p>
-
-<p>
-template class std::allocator&lt;const int&gt;;
-</p>
-
-<p>
-The obvious solution is to disallow specializations of allocators on
-const types. However, while containers' elements are required to be
-assignable (which rules out specializations on const T's), I think that
-allocators might perhaps be potentially useful for const values in other
-contexts. So if allocators are to allow const types a partial
-specialization of std::allocator&lt;const T&gt; would probably have to be
-provided.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the text in row 1, column 2 of table 32 in 20.1.5, p3 from</p>
-
-    <blockquote><p>
-    any type
-    </p></blockquote>
-
-<p>to</p>
-    <blockquote><p>
-    any non-const, non-reference type
-    </p></blockquote>
-
-<p><i>[Redmond: previous proposed resolution was "any non-const,
-non-volatile, non-reference type".  Got rid of the "non-volatile".]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Two resolutions were originally proposed: one that partially
-specialized std::allocator for const types, and one that said an
-allocator's value type may not be const.  The LWG chose the second.
-The first wouldn't be appropriate, because allocators are intended for
-use by containers, and const value types don't work in containers.
-Encouraging the use of allocators with const value types would only
-lead to unsafe code.
-</p>
-<p>
-The original text for proposed resolution 2 was modified so that it
-also forbids volatile types and reference types.
-</p>
-
-<p><i>[Cura&ccedil;ao: LWG double checked and believes volatile is correctly
-excluded from the PR.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="275"></a>275. Wrong type in num_get::get() overloads</h3>
-<p><b>Section:</b> 22.4.2.1.1 [facet.num.get.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2000-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.members">issues</a> in [facet.num.get.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 22.2.2.1.1, we have a list of overloads for num_get&lt;&gt;::get().
-There are eight overloads, all of which are identical except for the
-last parameter.  The overloads are: 
-</p>
-<ul>
-<li> long&amp; </li>
-<li> unsigned short&amp; </li>
-<li> unsigned int&amp; </li>
-<li> unsigned long&amp; </li>
-<li> short&amp; </li>
-<li> double&amp; </li>
-<li> long double&amp; </li>
-<li> void*&amp; </li>
-</ul>
-
-<p>
-There is a similar list, in 22.2.2.1.2, of overloads for
-num_get&lt;&gt;::do_get().  In this list, the last parameter has
-the types: 
-</p>
-<ul>
-<li> long&amp; </li>
-<li> unsigned short&amp; </li>
-<li> unsigned int&amp; </li>
-<li> unsigned long&amp; </li>
-<li> float&amp; </li>
-<li> double&amp; </li>
-<li> long double&amp; </li>
-<li> void*&amp; </li>
-</ul>
-
-<p>
-These two lists are not identical.  They should be, since
-<tt>get</tt> is supposed to call <tt>do_get</tt> with exactly
-the arguments it was given.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.2.1.1 [facet.num.get.members], change</p>
-<pre>
-  iter_type get(iter_type in, iter_type end, ios_base&amp; str,
-                ios_base::iostate&amp; err, short&amp; val) const;
-</pre>
-<p>to</p>
-<pre>
-  iter_type get(iter_type in, iter_type end, ios_base&amp; str,
-                ios_base::iostate&amp; err, float&amp; val) const;
-</pre>
-
-
-
-
-<hr>
-<h3><a name="276"></a>276. Assignable requirement for container value type overly strict</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2000-11-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.1/3 states that the objects stored in a container must be
-Assignable.  23.4.4 [map], paragraph 2,
-states that map satisfies all requirements for a container, while in
-the same time defining value_type as pair&lt;const Key, T&gt; - a type
-that is not Assignable.
-</p>
-
-<p>
-It should be noted that there exists a valid and non-contradictory
-interpretation of the current text. The wording in 23.1/3 avoids 
-mentioning value_type, referring instead to &quot;objects stored in a
-container.&quot; One might argue that map does not store objects of
-type map::value_type, but of map::mapped_type instead, and that the
-Assignable requirement applies to map::mapped_type, not
-map::value_type.
-</p>
-
-<p>
-However, this makes map a special case (other containers store objects of
-type value_type) and the Assignable requirement is needlessly restrictive in
-general.
-</p>
-
-<p>
-For example, the proposed resolution of active library issue 
-<a href="lwg-defects.html#103">103</a> is to make set::iterator a constant iterator; this
-means that no set operations can exploit the fact that the stored
-objects are Assignable.
-</p>
-
-<p>
-This is related to, but slightly broader than, closed issue
-<a href="lwg-closed.html#140">140</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>23.1/3: Strike the trailing part of the sentence:</p>
-    <blockquote><p>
-    , and the additional requirements of Assignable types from 23.1/3
-    </p></blockquote>
-<p>so that it reads:</p>
-    <blockquote><p>
-    -3- The type of objects stored in these components must meet the 
-    requirements of CopyConstructible types (lib.copyconstructible).
-    </p></blockquote>
-
-<p>23.1/4: Modify to make clear that this requirement is not for all 
-containers.  Change to:</p>
-
-<blockquote><p>
--4- Table 64 defines the Assignable requirement.  Some containers 
-require this property of the types to be stored in the container.  T is 
-the type used to instantiate the container. t is a value of T, and u is 
-a value of (possibly const) T.
-</p></blockquote>
-
-<p>23.1, Table 65: in the first row, change "T is Assignable" to "T is
-CopyConstructible".</p>
-
-<p>23.2.1/2: Add sentence for Assignable requirement.  Change to:</p>
-
-<blockquote><p>
--2- A deque satisfies all of the requirements of a container and of a 
-reversible container (given in tables in lib.container.requirements) and 
-of a sequence, including the optional sequence requirements 
-(lib.sequence.reqmts).  In addition to the requirements on the stored 
-object described in 23.1[lib.container.requirements], the stored object 
-must also meet the requirements of Assignable.  Descriptions are 
-provided here only for operations on deque that are not described in one 
-of these tables or for operations where there is additional semantic 
-information.
-</p></blockquote>
-
-<p>23.2.2/2:  Add Assignable requirement to specific methods of list.  
-Change to:</p>
-
-<blockquote>
-<p>-2- A list satisfies all of the requirements of a container and of a 
-reversible container (given in two tables in lib.container.requirements) 
-and of a sequence, including most of the the optional sequence 
-requirements (lib.sequence.reqmts). The exceptions are the operator[] 
-and at member functions, which are not provided. 
-
-[Footnote: These member functions are only provided by containers whose 
-iterators are random access iterators. --- end foonote]
-</p>
-
-<p>list does not require the stored type T to be Assignable unless the 
-following methods are instantiated:
-
-[Footnote: Implementors are permitted but not required to take advantage 
-of T's Assignable properties for these methods. -- end foonote]
-</p>
-<pre>
-     list&lt;T,Allocator&gt;&amp; operator=(const list&lt;T,Allocator&gt;&amp;  x );
-     template &lt;class InputIterator&gt;
-       void assign(InputIterator first, InputIterator last);
-     void assign(size_type n, const T&amp; t);
-</pre>
-
-
-<p>Descriptions are provided here only for operations on list that are not 
-described in one of these tables or for operations where there is 
-additional semantic information.</p>
-</blockquote>
-
-<p>23.2.4/2:   Add sentence for Assignable requirement.  Change to:</p>
-
-<blockquote><p>
--2- A vector satisfies all of the requirements of a container and of a 
-reversible container (given in two tables in lib.container.requirements) 
-and of a sequence, including most of the optional sequence requirements 
-(lib.sequence.reqmts). The exceptions are the push_front and pop_front 
-member functions, which are not provided.  In addition to the 
-requirements on the stored object described in 
-23.1[lib.container.requirements], the stored object must also meet the 
-requirements of Assignable.  Descriptions are provided here only for 
-operations on vector that are not described in one of these tables or 
-for operations where there is additional semantic information.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>list, set, multiset, map, multimap are able to store non-Assignables.
-However, there is some concern about <tt>list&lt;T&gt;</tt>:
-although in general there's no reason for T to be Assignable, some
-implementations of the member functions <tt>operator=</tt> and
-<tt>assign</tt> do rely on that requirement.  The LWG does not want
-to forbid such implementations.</p>
-
-<p>Note that the type stored in a standard container must still satisfy
-the requirements of the container's allocator; this rules out, for
-example, such types as "const int".  See issue <a href="lwg-defects.html#274">274</a>
-for more details.
-</p>
-
-<p>In principle we could also relax the "Assignable" requirement for
-individual <tt>vector</tt> member functions, such as
-<tt>push_back</tt>.  However, the LWG did not see great value in such
-selective relaxation.  Doing so would remove implementors' freedom to
-implement <tt>vector::push_back</tt> in terms of
-<tt>vector::insert</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="278"></a>278. What does iterator validity mean?</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2000-11-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 23.3.5.5 [list.ops] states that
-</p>
-<pre>
-  void splice(iterator position, list&lt;T, Allocator&gt;&amp; x);
-</pre>
-<p>
-<i>invalidates</i> all iterators and references to list <tt>x</tt>.
-</p>
-
-<p>
-But what does the C++ Standard mean by &quot;invalidate&quot;?  You
-can still dereference the iterator to a spliced list element, but
-you'd better not use it to delimit a range within the original
-list. For the latter operation, it has definitely lost some of its
-validity.
-</p>
-
-<p>
-If we accept the proposed resolution to issue <a href="lwg-defects.html#250">250</a>,
-then we'd better clarify that a &quot;valid&quot; iterator need no
-longer designate an element within the same container as it once did.
-We then have to clarify what we mean by invalidating a past-the-end
-iterator, as when a vector or string grows by reallocation. Clearly,
-such an iterator has a different kind of validity. Perhaps we should
-introduce separate terms for the two kinds of &quot;validity.&quot;
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following text to the end of section X [iterator.concepts],
-after paragraph 5:</p>
-<blockquote><p>
-An <i>invalid</i> iterator is an iterator that may be
-singular. [Footnote: This definition applies to pointers, since
-pointers are iterators. The effect of dereferencing an iterator that
-has been invalidated is undefined.]
-</p></blockquote>
-
-<p><i>[post-Copenhagen: Matt provided wording.]</i></p>
-
-
-<p><i>[Redmond: General agreement with the intent, some objections to
-the wording.  Dave provided new wording.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This resolution simply defines a term that the Standard uses but
-  never defines, "invalid", in terms of a term that is defined,
-  "singular".</p>
-
-<p>Why do we say "may be singular", instead of "is singular"?  That's
-  becuase a valid iterator is one that is known to be nonsingular.
-  Invalidating an iterator means changing it in such a way that it's
-  no longer known to be nonsingular.  An example: inserting an
-  element into the middle of a vector is correctly said to invalidate
-  all iterators pointing into the vector.  That doesn't necessarily
-  mean they all become singular.</p>
-
-
-
-
-
-<hr>
-<h3><a name="280"></a>280. Comparison of reverse_iterator to const reverse_iterator</h3>
-<p><b>Section:</b> 24.5.1 [reverse.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Steve Cleary <b>Opened:</b> 2000-11-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iterators">issues</a> in [reverse.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This came from an email from Steve Cleary to Fergus in reference to
-issue <a href="lwg-defects.html#179">179</a>. The library working group briefly discussed
-this in Toronto and believed it should be a separate issue.  There was
-also some reservations about whether this was a worthwhile problem to
-fix.
-</p>
-
-<p>
-Steve said: &quot;Fixing reverse_iterator. std::reverse_iterator can
-(and should) be changed to preserve these additional
-requirements.&quot; He also said in email that it can be done without
-breaking user's code: &quot;If you take a look at my suggested
-solution, reverse_iterator doesn't have to take two parameters; there
-is no danger of breaking existing code, except someone taking the
-address of one of the reverse_iterator global operator functions, and
-I have to doubt if anyone has ever done that. . .  <i>But</i>, just in
-case they have, you can leave the old global functions in as well --
-they won't interfere with the two-template-argument functions.  With
-that, I don't see how <i>any</i> user code could break.&quot;
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-<b>Section:</b> 24.5.1.1 [reverse.iterator]
-add/change the following declarations:</p>
-<pre>
-  A) Add a templated assignment operator, after the same manner
-        as the templated copy constructor, i.e.:
-
-  template &lt; class U &gt;
-  reverse_iterator &lt; Iterator &gt;&amp; operator=(const reverse_iterator&lt; U &gt;&amp; u);
-
-  B) Make all global functions (except the operator+) have
-  two template parameters instead of one, that is, for
-  operator ==, !=, &lt;, &gt;, &lt;=, &gt;=, - replace:
-
-       template &lt; class Iterator &gt;
-       typename reverse_iterator&lt; Iterator &gt;::difference_type operator-(
-                 const reverse_iterator&lt; Iterator &gt;&amp; x,
-                 const reverse_iterator&lt; Iterator &gt;&amp; y);
-
-  with:
-
-      template &lt; class Iterator1, class Iterator2 &gt;
-      typename reverse_iterator &lt; Iterator1 &gt;::difference_type operator-(
-                 const reverse_iterator &lt; Iterator1 &gt; &amp; x,
-                 const reverse_iterator &lt; Iterator2 &gt; &amp; y);
-</pre>
-<p>
-Also make the addition/changes for these signatures in 
-24.5.1.3 [reverse.iter.ops].
-</p>
-
-<p><i>[
-Copenhagen: The LWG is concerned that the proposed resolution 
-introduces new overloads.  Experience shows that introducing
-overloads is always risky, and that it would be inappropriate to
-make this change without implementation experience.  It may be
-desirable to provide this feature in a different way.
-]</i></p>
-
-
-<p><i>[
-Lillehammer: We now have implementation experience, and agree that
-this solution is safe and correct.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="281"></a>281. std::min() and max() requirements overly restrictive</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-12-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#486">486</a></p>
-<p><b>Discussion:</b></p>
-<p>The requirements in 25.3.7, p1 and 4 call for T to satisfy the
-requirements of <tt>LessThanComparable</tt> ( [lessthancomparable])
-and <tt>CopyConstructible</tt> (17.6.3.1 [utility.arg.requirements]).
-Since the functions take and return their arguments and result by
-const reference, I believe the <tt>CopyConstructible</tt> requirement
-is unnecessary.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove the <tt>CopyConstructible</tt> requirement. Specifically, replace
-25.3.7, p1 with</p>
-<p><b>-1- Requires:</b> Type T is <tt>LessThanComparable</tt> 
-( [lessthancomparable]).
-</p>
-<p>and replace 25.3.7, p4 with</p>
-<p><b>-4- Requires:</b> Type T is <tt>LessThanComparable</tt> 
-( [lessthancomparable]).
-</p>
-
-
-
-
-<hr>
-<h3><a name="282"></a>282. What types does numpunct grouping refer to?</h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2000-12-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 16 mistakenly singles out integral types for inserting 
-thousands_sep() characters.  This conflicts with the syntax for floating 
-point numbers described under 22.2.3.1/2.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change paragraph 16 from:</p>
-
-<blockquote><p>
-For integral types, punct.thousands_sep() characters are inserted into 
-the sequence as determined by the value returned by punct.do_grouping() 
-using the method described in 22.4.3.1.2 [facet.numpunct.virtuals].
-</p></blockquote>
-
-<p>To:</p>
-
-<blockquote><p>
-For arithmetic types, punct.thousands_sep() characters are inserted into 
-the sequence as determined by the value returned by punct.do_grouping() 
-using the method described in 22.4.3.1.2 [facet.numpunct.virtuals].
-</p></blockquote>
-
-<p><i>[
-Copenhagen: Opinions were divided about whether this is actually an
-inconsistency, but at best it seems to have been unintentional.  This
-is only an issue for floating-point output: The standard is
-unambiguous that implementations must parse thousands_sep characters
-when performing floating-point.  The standard is also unambiguous that
-this requirement does not apply to the "C" locale.
-]</i></p>
-
-
-<p><i>[
-A survey of existing practice is needed; it is believed that some
-implementations do insert thousands_sep characters for floating-point
-output and others fail to insert thousands_sep characters for 
-floating-point input even though this is unambiguously required by the
-standard.
-]</i></p>
-
-
-<p><i>[Post-Cura&ccedil;ao: the above proposed resolution is the consensus of
-Howard, Bill, Pete, Benjamin, Nathan, Dietmar, Boris, and Martin.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="283"></a>283. std::replace() requirement incorrect/insufficient</h3>
-<p><b>Section:</b> 25.3.5 [alg.replace] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.replace">issues</a> in [alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#483">483</a></p>
-<p><b>Discussion:</b></p>
-<p>
-(revision of the further discussion)
-There are a number of problems with the requires clauses for the
-algorithms in 25.1 and 25.2. The requires clause of each algorithm
-should describe the necessary and sufficient requirements on the inputs
-to the algorithm such that the algorithm compiles and runs properly.
-Many of the requires clauses fail to do this. Here is a summary of the kinds
-of mistakes:
-</p>
-
-<ol>
-<li>
-Use of EqualityComparable, which only puts requirements on a single
-type, when in fact an equality operator is required between two
-different types, typically either T and the iterator's value type
-or between the value types of two different iterators.
-</li>
-<li>
-Use of Assignable for T when in fact what was needed is Assignable
-for the value_type of the iterator, and convertability from T to the
-value_type of the iterator. Or for output iterators, the requirement
-should be that T is writable to the iterator (output iterators do
-not have value types).
-</li>
-</ol>
-
-<p>
-Here is the list of algorithms that contain mistakes:
-</p>
-
-<ul>
-<li>25.1.2 std::find</li>
-<li>25.1.6 std::count</li>
-<li>25.1.8 std::equal</li>
-<li>25.1.9 std::search, std::search_n</li>
-<li>25.2.4 std::replace, std::replace_copy</li>
-<li>25.2.5 std::fill</li>
-<li>25.2.7 std::remove, std::remove_copy</li>
-</ul>
-
-<p>
-Also, in the requirements for EqualityComparable, the requirement that
-the operator be defined for const objects is lacking.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>20.1.1 Change p1 from</p>
-
-<p>In Table 28, <tt>T</tt> is a type to be supplied by a C++ program
-instantiating a template, <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are
-values of type <tt>T</tt>.
-</p>
-
-<p>to</p>
-
-<p>
-In Table 28, <tt>T</tt> is a type to be supplied by a C++ program
-instantiating a template, <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are
-values of type <tt>const T</tt>.
-</p>
-
-<p>25 Between p8 and p9</p>
-
-<p>Add the following sentence:</p>
-
-<p>When the description of an algorithm gives an expression such as
-<tt>*first == value</tt> for a condition, it is required that the expression
-evaluate to either true or false in boolean contexts.</p>
-
-<p>25.1.2 Change p1 by deleting the requires clause.</p>
-
-<p>25.1.6 Change p1 by deleting the requires clause.</p>
-
-<p>25.1.9</p>
-
-<p>Change p4 from</p>
-
-<p>-4- Requires: Type <tt>T</tt> is <tt>EqualityComparable</tt>
-(20.1.1), type Size is convertible to integral type (4.7.12.3).
-</p>
-
-<p>to</p>
-
-<p>-4- Requires: The type <tt>Size</tt> is convertible to integral
-type (4.7.12.3).</p>
-
-<p>25.2.4 Change p1 from</p>
-
-<p>-1- Requires: Type <tt>T</tt> is <tt>Assignable</tt> (23.1 ) (and, for <tt>replace()</tt>, <tt>EqualityComparable</tt> (20.1.1 )).</p>
-
-<p>to</p>
-
-<p>-1- Requires: The expression <tt>*first = new_value</tt> must be valid.</p>
-
-<p>and change p4 from</p>
-
-<p>-4- Requires: Type <tt>T</tt> is <tt>Assignable</tt> (23.1) (and,
-for <tt>replace_copy()</tt>, <tt>EqualityComparable</tt>
-(20.1.1)). The ranges <tt>[first, last)</tt> and <tt>[result, result +
-(last - first))</tt> shall not overlap.</p>
-
-<p>to</p>
-
-<p>-4- Requires: The results of the expressions <tt>*first</tt> and
-<tt>new_value</tt> must be writable to the result output iterator. The
-ranges <tt>[first, last)</tt> and <tt>[result, result + (last -
-first))</tt> shall not overlap.</p>
-
-
-<p>25.2.5 Change p1 from</p>
-
-<p>-1- Requires: Type <tt>T</tt> is <tt>Assignable</tt> (23.1). The
-type <tt>Size</tt> is convertible to an integral type (4.7.12.3).</p>
-
-<p>to</p>
-
-<p>-1- Requires: The expression <tt>value</tt> must be is writable to
-the output iterator. The type <tt>Size</tt> is convertible to an
-integral type (4.7.12.3).</p>
-
-<p>25.2.7 Change p1 from</p>
-
-<p>-1- Requires: Type <tt>T</tt> is <tt>EqualityComparable</tt> (20.1.1).</p>
-
-<p>to</p>
-
-<p>
--1- Requires: The value type of the iterator must be
-<tt>Assignable</tt> (23.1).
-</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The general idea of the proposed solution is to remove the faulty
-requires clauses and let the returns and effects clauses speak for
-themselves. That is, the returns clauses contain expressions that must
-be valid, and therefore already imply the correct requirements. In
-addition, a sentence is added at the beginning of chapter 25 saying
-that expressions given as conditions must evaluate to true or false in
-a boolean context. An alternative would be to say that the type of
-these condition expressions must be literally bool, but that would be
-imposing a greater restriction that what the standard currently says
-(which is convertible to bool).
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="284"></a>284. unportable example in 20.3.7, p6</h3>
-<p><b>Section:</b> 20.9.6 [comparisons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-12-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#comparisons">active issues</a> in [comparisons].</p>
-<p><b>View all other</b> <a href="lwg-index.html#comparisons">issues</a> in [comparisons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The example in 20.9.6 [comparisons], p6 shows how to use the C
-library function <tt>strcmp()</tt> with the function pointer adapter
-<tt>ptr_fun()</tt>. But since it's unspecified whether the C library
-functions have <tt>extern &quot;C&quot;</tt> or <tt>extern
-&quot;C++&quot;</tt> linkage [17.6.2.3 [using.linkage]], and since
-function pointers with different the language linkage specifications
-(7.5 [dcl.link]) are incompatible, whether this example is
-well-formed is unspecified.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 20.9.6 [comparisons] paragraph 6 from:</p>
-<blockquote>
-  <p>[<i>Example:</i></p>
-  <pre>
-    replace_if(v.begin(), v.end(), not1(bind2nd(ptr_fun(strcmp), "C")), "C++");
-  </pre>
-  <p>replaces each <tt>C</tt> with <tt>C++</tt> in sequence <tt>v</tt>.</p>
-</blockquote>
-
-
-<p>to:</p>
-<blockquote>
-  <p>[<i>Example:</i></p>
-  <pre>
-    int compare(const char*, const char*);
-    replace_if(v.begin(), v.end(),
-               not1(bind2nd(ptr_fun(compare), "abc")), "def");
-  </pre>
-  <p>replaces each <tt>abc</tt> with <tt>def</tt> in sequence <tt>v</tt>.</p>
-</blockquote>
-
-<p>Also, remove footnote 215 in that same paragraph.</p>
-
-<p><i>[Copenhagen: Minor change in the proposed resolution.  Since this
-issue deals in part with C and C++ linkage, it was believed to be too
-confusing for the strings in the example to be "C" and "C++".
-]</i></p>
-
-
-<p><i>[Redmond: More minor changes.  Got rid of the footnote (which
-seems to make a sweeping normative requirement, even though footnotes
-aren't normative), and changed the sentence after the footnote so that
-it corresponds to the new code fragment.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="285"></a>285. minor editorial errors in fstream ctors</h3>
-<p><b>Section:</b> 27.9.1.7 [ifstream.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2000-12-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.9.1.7 [ifstream.cons], p2, 27.9.1.11 [ofstream.cons], p2, and
-27.9.1.15 [fstream.cons], p2 say about the effects of each constructor:
-</p>
-
-<p>... If that function returns a null pointer, calls
-<tt>setstate(failbit)</tt> (which may throw <tt>ios_base::failure</tt>).
-</p>
-
-<p>The parenthetical note doesn't apply since the ctors cannot throw an
-exception due to the requirement in 27.5.5.2 [basic.ios.cons], p3 
-that <tt>exceptions()</tt> be initialized to <tt>ios_base::goodbit</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike the parenthetical note from the Effects clause in each of the
-paragraphs mentioned above.
-</p>
-
-
-
-
-<hr>
-<h3><a name="286"></a>286. &lt;cstdlib&gt; requirements missing size_t typedef</h3>
-<p><b>Section:</b> 25.5 [alg.c.library] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.c.library">issues</a> in [alg.c.library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The &lt;cstdlib&gt; header file contains prototypes for bsearch and
-qsort (C++ Standard section 25.4 paragraphs 3 and 4) and other
-prototypes (C++ Standard section 21.4 paragraph 1 table 49) that
-require the typedef size_t. Yet size_t is not listed in the
-&lt;cstdlib&gt; synopsis table 78 in section 25.4.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the type size_t to Table 78 (section 25.4) and add
-the type size_t &lt;cstdlib&gt; to Table 97 (section C.2).
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Since size_t is in &lt;stdlib.h&gt;, it must also be in &lt;cstdlib&gt;.</p>
-
-
-
-
-
-<hr>
-<h3><a name="288"></a>288. &lt;cerrno&gt; requirements missing macro EILSEQ</h3>
-<p><b>Section:</b> 19.4 [errno] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Judy Ward <b>Opened:</b> 2000-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-ISO/IEC 9899:1990/Amendment1:1994 Section 4.3 States: &quot;The list
-of macros defined in &lt;errno.h&gt; is adjusted to include a new
-macro, EILSEQ&quot;
-</p>
-
-<p>
-ISO/IEC 14882:1998(E) section 19.3 does not refer
-to the above amendment.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Update Table 26 (section 19.3) &quot;Header  &lt;cerrno&gt; synopsis&quot;
-and Table 95 (section C.2) &quot;Standard Macros&quot; to include EILSEQ.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="291"></a>291. Underspecification of set algorithms</h3>
-<p><b>Section:</b> 25.4.5 [alg.set.operations] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2001-01-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.set.operations">issues</a> in [alg.set.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard library contains four algorithms that compute set
-operations on sorted ranges: <tt>set_union</tt>, <tt>set_intersection</tt>,
-<tt>set_difference</tt>, and <tt>set_symmetric_difference</tt>.  Each
-of these algorithms takes two sorted ranges as inputs, and writes the
-output of the appropriate set operation to an output range.  The elements
-in the output range are sorted.
-</p>
-
-<p>
-The ordinary mathematical definitions are generalized so that they
-apply to ranges containing multiple copies of a given element.  Two
-elements are considered to be &quot;the same&quot; if, according to an
-ordering relation provided by the user, neither one is less than the
-other.  So, for example, if one input range contains five copies of an
-element and another contains three, the output range of <tt>set_union</tt>
-will contain five copies, the output range of
-<tt>set_intersection</tt> will contain three, the output range of
-<tt>set_difference</tt> will contain two, and the output range of
-<tt>set_symmetric_difference</tt> will contain two.
-</p>
-
-<p>
-Because two elements can be &quot;the same&quot; for the purposes
-of these set algorithms, without being identical in other respects
-(consider, for example, strings under case-insensitive comparison),
-this raises a number of unanswered questions:
-</p>
-
-<ul>
-<li>If we're copying an element that's present in both of the
-input ranges, which one do we copy it from?</li>
-<li>If there are <i>n</i> copies of an element in the relevant
-input range, and the output range will contain fewer copies (say
-<i>m</i>) which ones do we choose?  The first <i>m</i>, or the last
-<i>m</i>, or something else?</li>
-<li>Are these operations stable?  That is, does a run of equivalent
-elements appear in the output range in the same order as as it
-appeared in the input range(s)?</li>
-</ul>
-
-<p>
-The standard should either answer these questions, or explicitly
-say that the answers are unspecified.  I prefer the former option,
-since, as far as I know, all existing implementations behave the
-same way.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add the following to the end of 25.4.5.2 [set.union] paragraph 5:</p>
-<blockquote><p>
-If [first1, last1) contains <i>m</i> elements that are equivalent to
-each other and [first2, last2) contains <i>n</i> elements that are
-equivalent to them, then max(<i>m</i>, <i>n</i>) of these elements
-will be copied to the output range: all <i>m</i> of these elements
-from [first1, last1), and the last max(<i>n-m</i>, 0) of them from
-[first2, last2), in that order.
-</p></blockquote>
-
-<p>Add the following to the end of 25.4.5.3 [set.intersection] paragraph 5:</p>
-<blockquote><p>
-If [first1, last1) contains <i>m</i> elements that are equivalent to each
-other and [first2, last2) contains <i>n</i> elements that are
-equivalent to them, the first min(<i>m</i>, <i>n</i>) of those 
-elements from [first1, last1) are copied to the output range.
-</p></blockquote>
-
-<p>Add a new paragraph, <b>Notes</b>, after 25.4.5.4 [set.difference]
-paragraph 4:</p>
-<blockquote><p>
-If [first1, last1) contains <i>m</i> elements that are equivalent to each
-other and [first2, last2) contains <i>n</i> elements that are
-equivalent to them, the last max(<i>m-n</i>, 0) elements from 
-[first1, last1) are copied to the output range.
-</p></blockquote>
-
-<p>Add a new paragraph, <b>Notes</b>, after 25.4.5.5 [set.symmetric.difference]
-paragraph 4:</p>
-<blockquote><p>
-If [first1, last1) contains <i>m</i> elements that are equivalent to
-each other and [first2, last2) contains <i>n</i> elements that are
-equivalent to them, then |<i>m - n</i>| of those elements will be
-copied to the output range: the last <i>m - n</i> of these elements
-from [first1, last1) if <i>m</i> &gt; <i>n</i>, and the last <i>n -
-m</i> of these elements from [first2, last2) if <i>m</i> &lt; <i>n</i>.
-</p></blockquote>
-
-<p><i>[Santa Cruz: it's believed that this language is clearer than
-  what's in the Standard.  However, it's also believed that the
-  Standard may already make these guarantees (although not quite in
-  these words).  Bill and Howard will check and see whether they think
-  that some or all of these changes may be redundant.  If so, we may
-  close this issue as NAD.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>For simple cases, these descriptions are equivalent to what's
-  already in the Standard.  For more complicated cases, they describe
-  the behavior of existing implementations.</p>
-
-
-
-
-
-<hr>
-<h3><a name="292"></a>292. effects of a.copyfmt (a)</h3>
-<p><b>Section:</b> 27.5.5.3 [basic.ios.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-01-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The Effects clause of the member function <tt>copyfmt()</tt> in
-27.4.4.2, p15 doesn't consider the case where the left-hand side
-argument is identical to the argument on the right-hand side, that is
-<tt>(this == &amp;rhs)</tt>.  If the two arguments are identical there
-is no need to copy any of the data members or call any callbacks
-registered with <tt>register_callback()</tt>.  Also, as Howard Hinnant
-points out in message c++std-lib-8149 it appears to be incorrect to
-allow the object to fire <tt>erase_event</tt> followed by
-<tt>copyfmt_event</tt> since the callback handling the latter event
-may inadvertently attempt to access memory freed by the former.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the Effects clause in 27.4.4.2, p15 from</p>
-
-<blockquote><p>
-<b>-15- Effects:</b>Assigns to the member objects of <tt>*this</tt>
-the corresponding member objects of <tt>rhs</tt>, except that...
-</p></blockquote>
-
-<p>to</p>
-
-<blockquote><p>
-<b>-15- Effects:</b>If <tt>(this == &amp;rhs)</tt> does nothing. Otherwise
-assigns to the member objects of <tt>*this</tt> the corresponding member
-objects of <tt>rhs</tt>, except that...
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="294"></a>294. User defined macros and standard headers</h3>
-<p><b>Section:</b> 17.6.4.3.1 [macro.names] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2001-01-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#macro.names">issues</a> in [macro.names].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Paragraph 2 of 17.6.4.3.1 [macro.names] reads: &quot;A
-translation unit that includes a header shall not contain any macros
-that define names declared in that header.&quot; As I read this, it
-would mean that the following program is legal:</p>
-
-<pre>
-  #define npos 3.14
-  #include &lt;sstream&gt;
-</pre>
-
-<p>since npos is not defined in &lt;sstream&gt;.  It is, however, defined
-in &lt;string&gt;, and it is hard to imagine an implementation in
-which &lt;sstream&gt; didn't include &lt;string&gt;.</p>
-
-<p>I think that this phrase was probably formulated before it was
-decided that a standard header may freely include other standard
-headers.  The phrase would be perfectly appropriate for C, for
-example.  In light of 17.6.5.2 [res.on.headers] paragraph 1, however,
-it isn't stringent enough.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>For 17.6.4.3.1 [macro.names], replace the current wording, which reads:</p>
-<blockquote>
-     <p>Each name defined as a macro in a header is reserved to the
-     implementation for any use if the translation unit includes
-     the header.168)</p>
-
-     <p>A translation unit that includes a header shall not contain any
-     macros that define names declared or defined in that header. Nor shall
-     such a translation unit define macros for names lexically
-     identical to keywords.</p>
-
-     <p>168) It is not permissible to remove a library macro definition by
-     using the #undef directive.</p>
-</blockquote>
-
-<p>with the wording:</p>
-
-<blockquote>
-     <p>A translation unit that includes a standard library header shall not
-     #define or #undef names declared in any standard library header.</p>
-
-     <p>A translation unit shall not #define or #undef names lexically
-     identical to keywords.</p>
-</blockquote>
-
-<p><i>[Lillehammer: Beman provided new wording]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="295"></a>295. Is abs defined in &lt;cmath&gt;?</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2001-01-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 80 lists the contents of the &lt;cmath&gt; header.  It does not
-list <tt>abs()</tt>.  However, 26.5, paragraph 6, which lists added 
-signatures present in &lt;cmath&gt;, does say that several overloads
-of <tt>abs()</tt> should be defined in &lt;cmath&gt;.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add <tt>abs</tt> to Table 80.  Also, remove the parenthetical list
-of functions "(abs(), div(), rand(), srand())" from 26.6 [numarray],
-paragraph 1.
-</p>
-
-<p><i>[Copenhagen: Modified proposed resolution so that it also gets
-rid of that vestigial list of functions in paragraph 1.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>All this DR does is fix a typo; it's uncontroversial.  A 
-separate question is whether we're doing the right thing in 
-putting some overloads in &lt;cmath&gt; that we aren't also 
-putting in &lt;cstdlib&gt;.  That's issue <a href="lwg-closed.html#323">323</a>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="296"></a>296. Missing descriptions and requirements of pair operators</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-01-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The synopsis of the header <tt>&lt;utility></tt> in 20.2 [utility]
-lists the complete set of equality and relational operators for <tt>pair</tt>
-but the section describing the template and the operators only describes
-<tt>operator==()</tt> and <tt>operator&lt;()</tt>, and it fails to mention
-any requirements on the template arguments. The remaining operators are
-not mentioned at all.
-</p>
-
-<p><i>[
-2009-09-27 Alisdair reopens.
-]</i></p>
-
-
-<blockquote>
-<p>
-The issue is a lack of wording specifying the semantics of <tt>std::pair</tt>
-relational operators.  The rationale is that this is covered by
-catch-all wording in the relops component, and that as relops directly
-precedes <tt>pair</tt> in the document this is an easy connection to make.
-</p>
-
-<p>
-Reading the current working paper I make two observations:
-</p>
-
-<ol style="list-style-type:lower-roman">
-<li>
-relops no longer immediately precedes <tt>pair</tt> in the order of
-specification.  However, even if it did, there is a lot of <tt>pair</tt>
-specification itself between the (apparently) unrelated relops and the
-relational operators for <tt>pair</tt>.  (The catch-all still requires
-<tt>operator==</tt> and <tt>operator&lt;</tt> to be specified
-explicitly)
-</li>
-
-<li>
-No other library component relies on the catch-all clause. The following
-all explicitly document all six relational operators, usually in a
-manner that could have deferred to the relops clause.
-</li>
-</ol>
-
-<blockquote><pre>
-tuple
-unique_ptr
-duration
-time_point
-basic_string
-queue
-stack
-move_iterator
-reverse_iterator 
-regex submatch
-thread::id
-</pre></blockquote>
-
-<p>
-The container components provide their own (equivalent) definition in
-23.2.1 [container.requirements.general] Table 90 -- Container
-requirements and do so do not defer to relops.
-</p>
-
-<p>
-<tt>Shared_ptr</tt> explicitly documents <tt>operator!=</tt> and does
-not supply the other 3 missing operators
-(<tt>&gt;</tt>,<tt>&gt;=</tt>,<tt>&lt;=</tt>) so does not meet the
-reqirements of the relops clause.
-</p>
-
-<p>
-<tt>Weak_ptr</tt> only supports <tt>operator&lt;</tt> so would not be
-covered by relops.
-</p>
-
-<p>
-At the very least I would request a note pointing to the relops clause
-we rely on to provide this definition.  If this route is taken, I would
-recommend reducing many of the above listed clauses to a similar note
-rather than providing redundant specification.
-</p>
-
-<p>
-My preference would be to supply the 4 missing specifications consistent
-with the rest of the library.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-10-11 Daniel opens <a href="lwg-closed.html#1233">1233</a> which deals with the same issue as
-it pertains to <tt>unique_ptr</tt>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-After p20 20.3 [pairs] add:
-</p>
-
-<blockquote><pre>
-template &lt;class T1, class T2&gt;
-bool operator!=(const pair&lt;T1,T2&gt;&amp; x, const pair&lt;T1,T2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>!(x==y)</tt>
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class T2&gt;
-bool operator&gt; (const pair&lt;T1,T2&gt;&amp; x, const pair&lt;T1,T2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>y &lt; x</tt>
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class T2&gt;
-bool operator&gt;=(const pair&lt;T1,T2&gt;&amp; x, const pair&lt;T1,T2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>!(x &lt; y)</tt>
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class T2&gt;
-bool operator&lt;=(const pair&lt;T1,T2&gt;&amp; x, const pair&lt;T1,T2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>!(y &lt; x)</tt>
-</p></blockquote>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>20.2.1 [operators] paragraph 10 already specifies the semantics.
-That paragraph says that, if declarations of operator!=, operator&gt;,
-operator&lt;=, and operator&gt;= appear without definitions, they are
-defined as specified in 20.2.1 [operators].  There should be no user
-confusion, since that paragraph happens to immediately precede the
-specification of <tt>pair</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="297"></a>297. const_mem_fun_t&lt;&gt;::argument_type should be const T*</h3>
-<p><b>Section:</b> 20.9.7 [logical.operations] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-01-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The class templates <tt>const_mem_fun_t</tt> in 20.5.8, p8 and
-<tt>const_mem_fun1_t</tt>
-in 20.5.8, p9 derive from <tt>unary_function&lt;T*, S></tt>, and
-<tt>binary_function&lt;T*,
-A, S></tt>, respectively. Consequently, their <tt>argument_type</tt>, and
-<tt>first_argument_type</tt>
-members, respectively, are both defined to be <tt>T*</tt> (non-const).
-However, their function call member operator takes a <tt>const T*</tt>
-argument. It is my opinion that <tt>argument_type</tt> should be <tt>const
-T*</tt> instead, so that one can easily refer to it in generic code. The
-example below derived from existing code fails to compile due to the
-discrepancy:
-</p>
-
-<p><tt>template &lt;class T></tt>
-<br/><tt>void foo (typename T::argument_type arg)&nbsp;&nbsp; // #1</tt>
-<br/><tt>{</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp; typename T::result_type (T::*pf) (typename
-T::argument_type)
-const =&nbsp;&nbsp; // #2</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;T::operator();</tt>
-<br/><tt>}</tt>
-</p>
-
-<p><tt>struct X { /* ... */ };</tt></p>
-
-<p><tt>int main ()</tt>
-<br/><tt>{</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp; const X x;</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp; foo&lt;std::const_mem_fun_t&lt;void, X>
->(&amp;x);&nbsp;&nbsp;
-// #3</tt>
-<br/><tt>}</tt>
-</p>
-
-<p>#1 <tt>foo()</tt> takes a plain unqualified <tt>X*</tt> as an argument
-<br/>#2 the type of the pointer is incompatible with the type of the member
-function
-<br/>#3 the address of a constant being passed to a function taking a non-const
-<tt>X*</tt>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the top portion of the definition of the class template
-const_mem_fun_t in 20.5.8, p8
-</p>
-<p><tt>template &lt;class S, class T> class const_mem_fun_t</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : public
-unary_function&lt;T*, S> {</tt>
-</p>
-<p>with</p>
-<p><tt>template &lt;class S, class T> class const_mem_fun_t</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : public
-unary_function&lt;<b>const</b> T*, S> {</tt>
-</p>
-<p>Also replace the top portion of the definition of the class template
-const_mem_fun1_t in 20.5.8, p9</p>
-<p><tt>template &lt;class S, class T, class A> class const_mem_fun1_t</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : public
-binary_function&lt;T*, A, S> {</tt>
-</p>
-<p>with</p>
-<p><tt>template &lt;class S, class T, class A> class const_mem_fun1_t</tt>
-<br/><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : public
-binary_function&lt;<b>const</b> T*, A, S> {</tt>
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>This is simply a contradiction: the <tt>argument_type</tt> typedef,
-and the argument type itself, are not the same.</p>
-
-
-
-
-
-<hr>
-<h3><a name="298"></a>298. ::operator delete[] requirement incorrect/insufficient</h3>
-<p><b>Section:</b> 18.6.1.2 [new.delete.array] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> John A. Pedretti <b>Opened:</b> 2001-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The default behavior of <tt>operator delete[]</tt> described in 18.5.1.2, p12 -
-namely that for non-null value of <i>ptr</i>, the operator reclaims storage
-allocated by the earlier call to the default <tt>operator new[]</tt> - is not
-correct in all cases. Since the specified <tt>operator new[]</tt> default
-behavior is to call <tt>operator new</tt> (18.5.1.2, p4, p8), which can be
-replaced, along with <tt>operator delete</tt>, by the user, to implement their
-own memory management, the specified default behavior of<tt> operator
-delete[]</tt> must be to call <tt>operator delete</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 18.5.1.2, p12 from</p>
-<blockquote><p>
-<b>-12-</b> <b>Default behavior:</b></p>
-<ul>
-<li>
-For a null value of <i><tt>ptr</tt></i> , does nothing.
-</li>
-<li>
-Any other value of <i><tt>ptr</tt></i> shall be a value returned
-earlier by a call to the default <tt>operator new[](std::size_t)</tt>.
-[Footnote: The value must not have been invalidated by an intervening
-call to <tt>operator delete[](void*)</tt> (17.6.4.9 [res.on.arguments]).
---- end footnote]
-For such a non-null value of <i><tt>ptr</tt></i> , reclaims storage
-allocated by the earlier call to the default <tt>operator new[]</tt>.
-</li>
-</ul>
-</blockquote>
-
-<p>to</p>
-
-<blockquote><p>
-<b>-12-</b> <b>Default behavior: </b>Calls <tt>operator
-delete(</tt><i>ptr</i>)
-or <tt>operator delete(<i>ptr</i>, std::nothrow)</tt> respectively.
-</p></blockquote>
-<p>and expunge paragraph 13.</p>
-
-
-
-
-<hr>
-<h3><a name="300"></a>300. list::merge() specification incomplete</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> John Pedretti <b>Opened:</b> 2001-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The &quot;Effects&quot; clause for list::merge() (23.3.5.5 [list.ops], p23)
-appears to be incomplete: it doesn't cover the case where the argument
-list is identical to *this (i.e., this == &amp;x). The requirement in the
-note in p24 (below) is that x be empty after the merge which is surely
-unintended in this case.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 23.3.5.5 [list.ops], replace paragraps 23-25 with:</p>
-<blockquote>
-<p>
-23 Effects: if (&amp;x == this) does nothing; otherwise, merges the two
-sorted ranges [begin(), end()) and [x.begin(), x.end()).  The result
-is a range in which the elements will be sorted in non-decreasing
-order according to the ordering defined by comp; that is, for every
-iterator i in the range other than the first, the condition comp(*i,
-*(i - 1)) will be false.
-</p>
-
-<p>
-24 Notes: Stable: if (&amp;x != this), then for equivalent elements in the
-two original ranges, the elements from the original range [begin(),
-end()) always precede the elements from the original range [x.begin(),
-x.end()).  If (&amp;x != this) the range [x.begin(), x.end()) is empty
-after the merge.
-</p>
-
-<p>
-25 Complexity: At most size() + x.size() - 1 applications of comp if
-(&amp;x !  = this); otherwise, no applications of comp are performed.  If
-an exception is thrown other than by a comparison there are no
-effects.
-</p>
-
-</blockquote>
-
-<p><i>[Copenhagen: The original proposed resolution did not fix all of
-the problems in 23.3.5.5 [list.ops], p22-25.  Three different
-paragraphs (23, 24, 25) describe the effects of <tt>merge</tt>.
-Changing p23, without changing the other two, appears to introduce
-contradictions.  Additionally, "merges the argument list into the
-list" is excessively vague.]</i></p>
-
-
-<p><i>[Post-Cura&ccedil;ao: Robert Klarer provided new wording.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="301"></a>301. basic_string template ctor effects clause omits allocator argument</h3>
-<p><b>Section:</b> 21.4.1 [string.require] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-01-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.require">issues</a> in [string.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The effects clause for the basic_string template ctor in 21.3.1, p15
-leaves out the third argument of type Allocator. I believe this to be
-a mistake.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace</p>
-
-<blockquote>
-    <p><b>-15- Effects:</b> If <i><tt>InputIterator</tt></i> is an integral
-    type, equivalent to</p>
-
-    <blockquote><p><tt>basic_string(static_cast&lt;size_type&gt;(begin),
-    static_cast&lt;value_type&gt;(end))</tt></p></blockquote>
-</blockquote>
-
-<p>with</p>
-
-<blockquote>
-    <p><b>-15- Effects:</b> If <i><tt>InputIterator</tt></i> is an integral
-    type, equivalent to</p>
-
-    <blockquote><p><tt>basic_string(static_cast&lt;size_type&gt;(begin),
-    static_cast&lt;value_type&gt;(end), <b>a</b>)</tt></p></blockquote>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="303"></a>303. Bitset input operator underspecified</h3>
-<p><b>Section:</b> 20.6.4 [bitset.operators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2001-02-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 23.3.5.3, we are told that <tt>bitset</tt>'s input operator
-&quot;Extracts up to <i>N</i> (single-byte) characters from
-<i>is</i>.&quot;, where <i>is</i> is a stream of type
-<tt>basic_istream&lt;charT, traits&gt;</tt>.
-</p>
-
-<p>
-The standard does not say what it means to extract single byte
-characters from a stream whose character type, <tt>charT</tt>, is in
-general not a single-byte character type.  Existing implementations
-differ.
-</p>
-
-<p>
-A reasonable solution will probably involve <tt>widen()</tt> and/or
-<tt>narrow()</tt>, since they are the supplied mechanism for
-converting a single character between <tt>char</tt> and 
-arbitrary <tt>charT</tt>.
-</p>
-
-<p>Narrowing the input characters is not the same as widening the
-literals <tt>'0'</tt> and <tt>'1'</tt>, because there may be some
-locales in which more than one wide character maps to the narrow
-character <tt>'0'</tt>.  Narrowing means that alternate
-representations may be used for bitset input, widening means that
-they may not be.</p>
-
-<p>Note that for numeric input, <tt>num_get&lt;&gt;</tt>
-(22.2.2.1.2/8) compares input characters to widened version of narrow
-character literals.</p>
-
-<p>From Pete Becker, in c++std-lib-8224:</p>
-<blockquote>
-<p>
-Different writing systems can have different representations for the
-digits that represent 0 and 1. For example, in the Unicode representation
-of the Devanagari script (used in many of the Indic languages) the digit 0
-is 0x0966, and the digit 1 is 0x0967. Calling narrow would translate those
-into '0' and '1'. But Unicode also provides the ASCII values 0x0030 and
-0x0031 for for the Latin representations of '0' and '1', as well as code
-points for the same numeric values in several other scripts (Tamil has no
-character for 0, but does have the digits 1-9), and any of these values
-would also be narrowed to '0' and '1'.
-</p>
-
-<p>...</p>
-
-<p>
-It's fairly common to intermix both native and Latin
-representations of numbers in a document. So I think the rule has to be
-that if a wide character represents a digit whose value is 0 then the bit
-should be cleared; if it represents a digit whose value is 1 then the bit
-should be set; otherwise throw an exception. So in a Devanagari locale,
-both 0x0966 and 0x0030 would clear the bit, and both 0x0967 and 0x0031
-would set it. Widen can't do that. It would pick one of those two values,
-and exclude the other one.
-</p>
-
-</blockquote>
-
-<p>From Jens Maurer, in c++std-lib-8233:</p>
-
-<blockquote>
-<p>
-Whatever we decide, I would find it most surprising if
-bitset conversion worked differently from int conversion
-with regard to alternate local representations of
-numbers.
-</p>
-
-<p>Thus, I think the options are:</p>
-<ul>
- <li> Have a new defect issue for 22.2.2.1.2/8 so that it will
-require the use of narrow().</li>
-
- <li> Have a defect issue for bitset() which describes clearly
-that widen() is to be used.</li>
-</ul>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-    <p>Replace the first two sentences of paragraph 5 with:</p>
-
-    <blockquote><p>
-    Extracts up to <i>N</i> characters from <i>is</i>. Stores these
-    characters in a temporary object <i>str</i> of type
-    <tt>basic_string&lt;charT, traits&gt;</tt>, then evaluates the
-    expression <tt><i>x</i> = bitset&lt;N&gt;(<i>str</i>)</tt>.
-    </p></blockquote>
-
-    <p>Replace the third bullet item in paragraph 5 with:</p>
-    <ul><li>
-    the next input character is neither <tt><i>is</i>.widen(0)</tt>
-    nor <tt><i>is</i>.widen(1)</tt> (in which case the input character
-    is not extracted).
-    </li></ul>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Input for <tt>bitset</tt> should work the same way as numeric
-input.  Using <tt>widen</tt> does mean that alternative digit
-representations will not be recognized, but this was a known 
-consequence of the design choice.</p>
-
-
-
-
-
-<hr>
-<h3><a name="305"></a>305. Default behavior of codecvt&lt;wchar_t, char, mbstate_t&gt;::length()</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2001-01-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>22.2.1.5/3 introduces codecvt in part with:</p>
-
-<blockquote><p>
-  codecvt&lt;wchar_t,char,mbstate_t&gt; converts between the native
-  character sets for tiny and wide characters. Instantiations on
-  mbstate_t perform conversion between encodings known to the library
-  implementor.
-</p></blockquote>
-
-<p>But 22.2.1.5.2/10 describes do_length in part with:</p>
-
-<blockquote><p>
-  ... codecvt&lt;wchar_t, char, mbstate_t&gt; ... return(s) the lesser of max and 
-  (from_end-from).
-</p></blockquote>
-
-<p>
-The semantics of do_in and do_length are linked.  What one does must
-be consistent with what the other does.  22.2.1.5/3 leads me to
-believe that the vendor is allowed to choose the algorithm that
-codecvt&lt;wchar_t,char,mbstate_t&gt;::do_in performs so that it makes
-his customers happy on a given platform.  But 22.2.1.5.2/10 explicitly
-says what codecvt&lt;wchar_t,char,mbstate_t&gt;::do_length must
-return.  And thus indirectly specifies the algorithm that
-codecvt&lt;wchar_t,char,mbstate_t&gt;::do_in must perform.  I believe
-that this is not what was intended and is a defect.
-</p>
-
-<p>Discussion from the -lib reflector:
-
-<br/>This proposal would have the effect of making the semantics of
-all of the virtual functions in <tt>codecvt&lt;wchar_t, char,
-mbstate_t&gt;</tt> implementation specified.  Is that what we want, or
-do we want to mandate specific behavior for the base class virtuals
-and leave the implementation specified behavior for the codecvt_byname
-derived class?  The tradeoff is that former allows implementors to
-write a base class that actually does something useful, while the
-latter gives users a way to get known and specified---albeit
-useless---behavior, and is consistent with the way the standard
-handles other facets.  It is not clear what the original intention
-was.</p>
-
-<p>
-Nathan has suggest a compromise: a character that is a widened version
-of the characters in the basic execution character set must be
-converted to a one-byte sequence, but there is no such requirement
-for characters that are not part of the basic execution character set.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.2.1.5.2/5 from:
-</p>
-<p>
-The instantiations required in Table 51 (lib.locale.category), namely
-codecvt&lt;wchar_t,char,mbstate_t&gt; and
-codecvt&lt;char,char,mbstate_t&gt;, store no characters. Stores no more
-than (to_limit-to) destination elements. It always leaves the to_next
-pointer pointing one beyond the last element successfully stored.
-</p>
-<p>
-to:
-</p>
-<p>
-Stores no more than (to_limit-to) destination elements, and leaves the
-to_next pointer pointing one beyond the last element successfully
-stored.  codecvt&lt;char,char,mbstate_t&gt; stores no characters.
-</p>
-
-<p>Change 22.2.1.5.2/10 from:</p>
-
-<blockquote><p>
--10- Returns: (from_next-from) where from_next is the largest value in
-the range [from,from_end] such that the sequence of values in the
-range [from,from_next) represents max or fewer valid complete
-characters of type internT. The instantiations required in Table 51
-(21.1.1.1.1), namely codecvt&lt;wchar_t, char, mbstate_t&gt; and
-codecvt&lt;char, char, mbstate_t&gt;, return the lesser of max and
-(from_end-from).
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
--10- Returns: (from_next-from) where from_next is the largest value in 
-the range [from,from_end] such that the sequence of values in the range 
-[from,from_next) represents max or fewer valid complete characters of 
-type internT. The instantiation codecvt&lt;char, char, mbstate_t&gt; returns 
-the lesser of max and (from_end-from). 
-</p></blockquote>
-
-<p><i>[Redmond: Nathan suggested an alternative resolution: same as
-above, but require that, in the default encoding, a character from the
-basic execution character set would map to a single external
-character.  The straw poll was 8-1 in favor of the proposed
-resolution.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The default encoding should be whatever users of a given platform
-would expect to be the most natural.  This varies from platform to
-platform.  In many cases there is a preexisting C library, and users
-would expect the default encoding to be whatever C uses in the default
-"C" locale.  We could impose a guarantee like the one Nathan suggested
-(a character from the basic execution character set must map to a
-single external character), but this would rule out important
-encodings that are in common use: it would rule out JIS, for
-example, and it would rule out a fixed-width encoding of UCS-4.</p>
-
-<p><i>[Cura&ccedil;ao: fixed rationale typo at the request of Ichiro Koshida;
-&quot;shift-JIS&quot; changed to &quot;JIS&quot;.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="306"></a>306. offsetof macro and non-POD types</h3>
-<p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 2001-02-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.types">issues</a> in [support.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p> 
-<p>Spliced together from reflector messages c++std-lib-8294 and -8295:</p>
-
-<p>18.1, paragraph 5, reads: &quot;The macro <tt>offsetof</tt>
-accepts a restricted set of <i>type</i> arguments in this
-International Standard. <i>type</i> shall be a POD structure or a POD
-union (clause 9). The result of applying the offsetof macro to a field
-that is a static data member or a function member is
-undefined.&quot;</p>
-
-<p>For the POD requirement, it doesn't say &quot;no diagnostic
-required&quot; or &quot;undefined behavior&quot;. I read 1.4 [intro.compliance], paragraph 1, to mean that a diagnostic is required.
-It's not clear whether this requirement was intended.  While it's
-possible to provide such a diagnostic, the extra complication doesn't
-seem to add any value.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 18.1, paragraph 5, to &quot;If <i>type</i> is not a POD
-structure or a POD union the results are undefined.&quot;</p>
-
-<p><i>[Copenhagen: straw poll was 7-4 in favor.  It was generally
-agreed that requiring a diagnostic was inadvertent, but some LWG
-members thought that diagnostics should be required whenever
-possible.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="307"></a>307. Lack of reference typedefs in container adaptors</h3>
-<p><b>Section:</b> 23.3.5 [list] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2001-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>From reflector message c++std-lib-8330.  See also lib-8317.</p>
-
-<p>
-The standard is currently inconsistent in 23.3.5.3 [list.capacity]
-paragraph 1 and 23.3.5.4 [list.modifiers] paragraph 1.
-23.2.3.3/1, for example, says:
-</p>
-
-<blockquote><p>
--1- Any sequence supporting operations back(), push_back() and pop_back() 
-can be used to instantiate stack. In particular, vector (lib.vector), list 
-(lib.list) and deque (lib.deque) can be used. 
-</p></blockquote>
-
-<p>But this is false: vector&lt;bool&gt; can not be used, because the
-container adaptors return a T&amp; rather than using the underlying
-container's reference type.</p>
-
-<p>This is a contradiction that can be fixed by:</p>
-
-<ol>
-<li>Modifying these paragraphs to say that vector&lt;bool&gt;
-    is an exception.</li>
-<li>Removing the vector&lt;bool&gt; specialization.</li>
-<li>Changing the return types of stack and priority_queue to use 
-    reference typedef's.</li>
-</ol>
-
-<p>
-I propose 3.  This does not preclude option 2 if we choose to do it
-later (see issue <a href="lwg-closed.html#96">96</a>); the issues are independent.  Option
-3 offers a small step towards support for proxied containers.  This
-small step fixes a current contradiction, is easy for vendors to
-implement, is already implemented in at least one popular lib, and
-does not break any code.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Summary: Add reference and const_reference typedefs to queue,
-priority_queue and stack.  Change return types of "value_type&amp;" to
-"reference".  Change return types of "const value_type&amp;" to
-"const_reference".  Details:</p>
-
-<p>Change 23.2.3.1/1 from:</p>
-
-<pre>
-  namespace std {
-    template &lt;class T, class Container = deque&lt;T&gt; &gt;
-    class queue {
-    public:
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::size_type             size_type;
-      typedef          Container                        container_type;
-    protected:
-      Container c;
-
-    public:
-      explicit queue(const Container&amp; = Container());
-
-      bool      empty() const             { return c.empty(); }
-      size_type size()  const             { return c.size(); }
-      value_type&amp;       front()           { return c.front(); }
-      const value_type&amp; front() const     { return c.front(); }
-      value_type&amp;       back()            { return c.back(); }
-      const value_type&amp; back() const      { return c.back(); }
-      void push(const value_type&amp; x)      { c.push_back(x); }
-      void pop()                          { c.pop_front(); }
-    };
-</pre>
-
-<p>to:</p>
-
-<pre>
-  namespace std {
-    template &lt;class T, class Container = deque&lt;T&gt; &gt;
-    class queue {
-    public:
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::reference             reference;
-      typedef typename Container::const_reference       const_reference;
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::size_type             size_type;
-      typedef          Container                        container_type;
-    protected:
-      Container c;
-
-    public:
-      explicit queue(const Container&amp; = Container());
-
-      bool      empty() const             { return c.empty(); }
-      size_type size()  const             { return c.size(); }
-      reference         front()           { return c.front(); }
-      const_reference   front() const     { return c.front(); }
-      reference         back()            { return c.back(); }
-      const_reference   back() const      { return c.back(); }
-      void push(const value_type&amp; x)      { c.push_back(x); }
-      void pop()                          { c.pop_front(); }
-    };
-</pre>
-
-<p>Change 23.2.3.2/1 from:</p>
-
-<pre>
-  namespace std {
-    template &lt;class T, class Container = vector&lt;T&gt;,
-              class Compare = less&lt;typename Container::value_type&gt; &gt;
-    class priority_queue {
-    public:
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::size_type             size_type;
-      typedef          Container                        container_type;
-    protected:
-      Container c;
-      Compare comp;
-
-    public:
-      explicit priority_queue(const Compare&amp; x = Compare(),
-                              const Container&amp; = Container());
-      template &lt;class InputIterator&gt;
-        priority_queue(InputIterator first, InputIterator last,
-                       const Compare&amp; x = Compare(),
-                       const Container&amp; = Container());
-
-      bool      empty() const       { return c.empty(); }
-      size_type size()  const       { return c.size(); }
-      const value_type&amp; top() const { return c.front(); }
-      void push(const value_type&amp; x);
-      void pop();
-    };
-                                  //  no equality is provided
-  }
-</pre>
-
-<p>to:</p>
-
-<pre>
-  namespace std {
-    template &lt;class T, class Container = vector&lt;T&gt;,
-              class Compare = less&lt;typename Container::value_type&gt; &gt;
-    class priority_queue {
-    public:
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::reference             reference;
-      typedef typename Container::const_reference       const_reference;
-      typedef typename Container::size_type             size_type;
-      typedef          Container                        container_type;
-    protected:
-      Container c;
-      Compare comp;
-
-    public:
-      explicit priority_queue(const Compare&amp; x = Compare(),
-                              const Container&amp; = Container());
-      template &lt;class InputIterator&gt;
-        priority_queue(InputIterator first, InputIterator last,
-                       const Compare&amp; x = Compare(),
-                       const Container&amp; = Container());
-
-      bool      empty() const       { return c.empty(); }
-      size_type size()  const       { return c.size(); }
-      const_reference   top() const { return c.front(); }
-      void push(const value_type&amp; x);
-      void pop();
-    };
-                                  //  no equality is provided
-  }
-</pre>
-
-<p>And change 23.2.3.3/1 from:</p>
-
-<pre>
-  namespace std {
-    template &lt;class T, class Container = deque&lt;T&gt; &gt;
-    class stack {
-    public:
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::size_type             size_type;
-      typedef          Container                        container_type;
-    protected:
-      Container c;
-
-    public:
-      explicit stack(const Container&amp; = Container());
-
-      bool      empty() const             { return c.empty(); }
-      size_type size()  const             { return c.size(); }
-      value_type&amp;       top()             { return c.back(); }
-      const value_type&amp; top() const       { return c.back(); }
-      void push(const value_type&amp; x)      { c.push_back(x); }
-      void pop()                          { c.pop_back(); }
-    };
-
-    template &lt;class T, class Container&gt;
-      bool operator==(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&lt; (const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator!=(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&gt; (const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&gt;=(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&lt;=(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-  }
-</pre>
-
-<p>to:</p>
-
-<pre>
-  namespace std {
-    template &lt;class T, class Container = deque&lt;T&gt; &gt;
-    class stack {
-    public:
-      typedef typename Container::value_type            value_type;
-      typedef typename Container::reference             reference;
-      typedef typename Container::const_reference       const_reference;
-      typedef typename Container::size_type             size_type;
-      typedef          Container                        container_type;
-    protected:
-      Container c;
-
-    public:
-      explicit stack(const Container&amp; = Container());
-
-      bool      empty() const             { return c.empty(); }
-      size_type size()  const             { return c.size(); }
-      reference         top()             { return c.back(); }
-      const_reference   top() const       { return c.back(); }
-      void push(const value_type&amp; x)      { c.push_back(x); }
-      void pop()                          { c.pop_back(); }
-    };
-
-    template &lt;class T, class Container&gt;
-      bool operator==(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&lt; (const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator!=(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&gt; (const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&gt;=(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-    template &lt;class T, class Container&gt;
-      bool operator&lt;=(const stack&lt;T, Container&gt;&amp; x,
-                      const stack&lt;T, Container&gt;&amp; y);
-  }
-</pre>
-
-<p><i>[Copenhagen: This change was discussed before the IS was released
-and it was deliberately not adopted.  Nevertheless, the LWG believes
-(straw poll: 10-2) that it is a genuine defect.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="308"></a>308. Table 82 mentions unrelated headers</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-03-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 82 in section 27 mentions the header &lt;cstdlib&gt; for String
-streams (27.8 [string.streams]) and the headers &lt;cstdio&gt; and
-&lt;cwchar&gt; for File streams (27.9 [file.streams]). It's not clear
-why these headers are mentioned in this context since they do not
-define any of the library entities described by the
-subclauses. According to 17.6.1.1 [contents], only such headers
-are to be listed in the summary.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove &lt;cstdlib&gt; and &lt;cwchar&gt; from
-Table 82.</p>
-
-<p><i>[Copenhagen: changed the proposed resolution slightly.  The
-original proposed resolution also said to remove &lt;cstdio&gt; from
-Table 82.  However, &lt;cstdio&gt; is mentioned several times within
-section 27.9 [file.streams], including 27.9.2 [c.files].]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="310"></a>310. Is errno a macro?</h3>
-<p><b>Section:</b> 17.6.1.2 [headers], 19.4 [errno] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 2001-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#headers">issues</a> in [headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-  <p>
-  Exactly how should errno be declared in a conforming C++ header?
-  </p>
-
-  <p>
-  The C standard says in 7.1.4 that it is unspecified whether errno is a
-  macro or an identifier with external linkage.  In some implementations
-  it can be either, depending on compile-time options.  (E.g., on
-  Solaris in multi-threading mode, errno is a macro that expands to a
-  function call, but is an extern int otherwise.  "Unspecified" allows
-  such variability.)
-  </p>
-
-  <p>The C++ standard:</p>
-  <ul>
-  <li>17.4.1.2 says in a note that errno must be macro in C. (false)</li>
-  <li>17.4.3.1.3 footnote 166 says errno is reserved as an external 
-      name (true), and implies that it is an identifier.</li>
-  <li>19.3 simply lists errno as a macro (by what reasoning?) and goes
-      on to say that the contents of of C++ &lt;errno.h&gt; are the
-      same as in C, begging the question.</li>
-  <li>C.2, table 95 lists errno as a macro, without comment.</li>
-  </ul>
-
-  <p>I find no other references to errno.</p>
-
-  <p>We should either explicitly say that errno must be a macro, even
-  though it need not be a macro in C, or else explicitly leave it
-  unspecified.  We also need to say something about namespace std. 
-  A user who includes &lt;cerrno&gt; needs to know whether to write
-  <tt>errno</tt>, or <tt>::errno</tt>, or <tt>std::errno</tt>, or
-  else &lt;cerrno&gt; is useless.</p>
-
-  <p>Two acceptable fixes:</p>
-  <ul>
-    <li><p>errno must be a macro. This is trivially satisfied by adding<br/>
-        &nbsp;&nbsp;#define errno (::std::errno)<br/>
-        to the headers if errno is not already a macro. You then always
-        write errno without any scope qualification, and it always expands
-        to a correct reference. Since it is always a macro, you know to
-        avoid using errno as a local identifer.</p></li>
-    <li><p>errno is in the global namespace. This fix is inferior, because
-        ::errno is not guaranteed to be well-formed.</p></li>
-  </ul>
-
-  <p><i>[
-    This issue was first raised in 1999, but it slipped through 
-    the cracks.
-  ]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-  <p>Change the Note in section 17.4.1.2p5 from</p>
-
-    <blockquote><p>
-    Note: the names defined as macros in C include the following:
-    assert, errno, offsetof, setjmp, va_arg, va_end, and va_start.
-    </p></blockquote>
-
-  <p>to</p>
-
-    <blockquote><p>
-    Note: the names defined as macros in C include the following:
-    assert, offsetof, setjmp, va_arg, va_end, and va_start.
-    </p></blockquote>
-
-  <p>In section 19.3, change paragraph 2 from</p>
-
-    <blockquote><p>
-    The contents are the same as the Standard C library header
-    &lt;errno.h&gt;.
-    </p></blockquote>
-
-  <p>to</p>
-
-    <blockquote><p>
-    The contents are the same as the Standard C library header 
-    &lt;errno.h&gt;, except that errno shall be defined as a macro.
-    </p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>C++ must not leave it up to the implementation to decide whether or
-not a name is a macro; it must explicitly specify exactly which names
-are required to be macros.  The only one that really works is for it
-to be a macro.</p>
-
-<p><i>[Cura&ccedil;ao: additional rationale added.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="311"></a>311. Incorrect wording in basic_ostream class synopsis</h3>
-<p><b>Section:</b> 27.7.3.1 [ostream] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2001-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream">issues</a> in [ostream].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>In 27.7.3.1 [ostream], the synopsis of class basic_ostream says:</p>
-
-<pre>
-  // partial specializationss
-  template&lt;class traits&gt;
-    basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;( basic_ostream&lt;char,traits&gt;&amp;,
-                                            const char * );
-</pre>
-
-<p>Problems:</p>
-<ul>
-<li>Too many 's's at the end of "specializationss" </li>
-<li>This is an overload, not a partial specialization</li>
-</ul>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In the synopsis in 27.7.3.1 [ostream], remove the 
-<i>// partial specializationss</i> comment.  Also remove the same 
-comment (correctly spelled, but still incorrect) from the synopsis in 
-27.7.3.6.4 [ostream.inserters.character].
-</p>
-
-<p><i>[
-Pre-Redmond: added 27.7.3.6.4 [ostream.inserters.character] because of Martin's
-comment in c++std-lib-8939.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="312"></a>312. Table 27 is missing headers</h3>
-<p><b>Section:</b> 20 [utilities] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-03-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utilities">issues</a> in [utilities].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Table 27 in section 20 lists the header &lt;memory&gt; (only) for
-Memory (lib.memory) but neglects to mention the headers
-&lt;cstdlib&gt; and &lt;cstring&gt; that are discussed in 20.10.6 [meta.rel].</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add &lt;cstdlib&gt; and &lt;cstring&gt; to Table 27, in the same row
-as &lt;memory&gt;.</p>
-
-
-
-
-
-<hr>
-<h3><a name="315"></a>315. Bad "range" in list::unique complexity</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2001-05-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.3.5.5 [list.ops], Para 21 describes the complexity of
-list::unique as: "If the range (last - first) is not empty, exactly
-(last - first) -1 applications of the corresponding predicate,
-otherwise no applications of the predicate)".
-</p>
-
-<p>
-"(last - first)" is not a range.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the "range" from (last - first) to [first, last).
-</p>
-
-
-
-
-<hr>
-<h3><a name="316"></a>316. Vague text in Table 69</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Table 69 says this about a_uniq.insert(t):</p>
-
-<blockquote><p>
-inserts t if and only if there is no element in the container with key
-equivalent to the key of t. The bool component of the returned pair 
-indicates whether the insertion takes place and the iterator component of the
-pair points to the element with key equivalent to the key of t.
-</p></blockquote>
-
-<p>The description should be more specific about exactly how the bool component
-indicates whether the insertion takes place.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the text in question to</p>
-
-<blockquote><p>
-...The bool component of the returned pair is true if and only if the insertion
-takes place...
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="317"></a>317. Instantiation vs. specialization of facets</h3>
-<p><b>Section:</b> 22 [localization] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#localization">issues</a> in [localization].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The localization section of the standard refers to specializations of
-the facet templates as instantiations even though the required facets
-are typically specialized rather than explicitly (or implicitly)
-instantiated. In the case of ctype&lt;char&gt; and
-ctype_byname&lt;char&gt; (and the wchar_t versions), these facets are
-actually required to be specialized. The terminology should be
-corrected to make it clear that the standard doesn't mandate explicit
-instantiation (the term specialization encompasses both explicit
-instantiations and specializations).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In the following paragraphs, replace all occurrences of the word
-instantiation or instantiations with specialization or specializations,
-respectively:
-</p>
-
-<blockquote><p>
-22.1.1.1.1, p4, Table 52, 22.2.1.1, p2, 22.2.1.5, p3, 22.2.1.5.1, p5,
-22.2.1.5.2, p10, 22.2.2, p2, 22.2.3.1, p1, 22.2.3.1.2, p1, p2 and p3, 
-22.2.4.1, p1, 22.2.4.1.2, p1, 22,2,5, p1, 22,2,6, p2, 22.2.6.3.2, p7, and
-Footnote 242.
-</p></blockquote>
-
-<p>And change the text in 22.1.1.1.1, p4 from</p>
-
-<blockquote><p>
-    An implementation is required to provide those instantiations
-    for facet templates identified as members of a category, and
-    for those shown in Table 52:
-</p></blockquote>
-
-<p>to</p>
-
-<blockquote><p>
-    An implementation is required to provide those specializations...
-</p></blockquote>
-
-<p><i>[Nathan will review these changes, and will look for places where
-explicit specialization is necessary.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>This is a simple matter of outdated language.  The language to
-describe templates was clarified during the standardization process,
-but the wording in clause 22 was never updated to reflect that
-change.</p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="318"></a>318. Misleading comment in definition of numpunct_byname</h3>
-<p><b>Section:</b> 22.4.3.2 [locale.numpunct.byname] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-05-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The definition of the numpunct_byname template contains the following
-comment:</p>
-
-<pre>
-    namespace std {
-        template &lt;class charT&gt;
-        class numpunct_byname : public numpunct&lt;charT&gt; {
-    // this class is specialized for char and wchar_t.
-        ...
-</pre>
-
-<p>There is no documentation of the specializations and it seems
-conceivable that an implementation will not explicitly specialize the
-template at all, but simply provide the primary template.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove the comment from the text in 22.2.3.2 and from the proposed
-resolution of library issue <a href="lwg-defects.html#228">228</a>.</p>
-
-
-
-
-<hr>
-<h3><a name="319"></a>319. Storage allocation wording confuses "Required behavior", "Requires"</h3>
-<p><b>Section:</b> 18.6.1.1 [new.delete.single], 18.6.1.2 [new.delete.array] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2001-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.single">issues</a> in [new.delete.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The standard specifies 17.5.1.4 [structure.specifications] that "Required
-behavior" elements describe "the semantics of a function definition
-provided by either the implementation or a C++ program."</p>
-
-<p>The standard specifies 17.5.1.4 [structure.specifications] that "Requires"
-elements describe "the preconditions for calling the function."</p>
-
-<p>In the sections noted below, the current wording specifies
-"Required Behavior" for what are actually preconditions, and thus
-should be specified as "Requires".</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>In 18.6.1.1 [new.delete.single] Para 12 Change:</p>
-<blockquote>
-  <p>Required behavior: accept a value of ptr that is null or that was
-  returned by an earlier call ...</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>Requires: the value of ptr is null or the value returned by an
-  earlier call ...</p>
-</blockquote>
-
-<p>In 18.6.1.2 [new.delete.array] Para 11 Change:</p>
-<blockquote>
-  <p>Required behavior: accept a value of ptr that is null or that was
-  returned by an earlier call ...</p>
-</blockquote>
-<p>to:</p>
-<blockquote>
-  <p>Requires: the value of ptr is null or the value returned by an
-  earlier call ...</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="320"></a>320. list::assign overspecified</h3>
-<p><b>Section:</b> 23.3.5.2 [list.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2001-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.cons">issues</a> in [list.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 23.3.5.2 [list.cons], paragraphs 6-8 specify that list assign (both forms) have
-the "effects" of a call to erase followed by a call to insert.
-</p>
-
-<p>
-I would like to document that implementers have the freedom to implement 
-assign by other methods, as long as the end result is the same and the 
-exception guarantee is as good or better than the basic guarantee.
-</p>
-
-<p>
-The motivation for this is to use T's assignment operator to recycle
-existing nodes in the list instead of erasing them and reallocating
-them with new values.  It is also worth noting that, with careful
-coding, most common cases of assign (everything but assignment with
-true input iterators) can elevate the exception safety to strong if
-T's assignment has a nothrow guarantee (with no extra memory cost).
-Metrowerks does this.  However I do not propose that this subtlety be
-standardized.  It is a QoI issue.  </p>
-
-<p>Existing practise:
-Metrowerks and SGI recycle nodes, Dinkumware and Rogue Wave don't.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 23.3.5.2 [list.cons]/7 from:</p>
-
-<blockquote>
-<p>Effects:</p>
-
-<pre>
-   erase(begin(), end());
-   insert(begin(), first, last);
-</pre>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>Effects: Replaces the contents of the list with the range [first, last).</p>
-</blockquote>
-
-<p>In 23.2.3 [sequence.reqmts], in Table 67 (sequence requirements), 
-add two new rows:</p>
-<pre>
-      a.assign(i,j)     void      pre: i,j are not iterators into a.
-                                  Replaces elements in a with a copy
-                                  of [i, j).
-
-      a.assign(n,t)     void      pre: t is not a reference into a.
-                                  Replaces elements in a with n copies
-                                  of t.
-</pre>
-
-<p>Change 23.3.5.2 [list.cons]/8 from:</p>
-
-<blockquote>
-<p>Effects:</p>
-<pre>
-   erase(begin(), end());
-   insert(begin(), n, t);
-</pre>
-</blockquote>
-<p>to:</p>
-
-<blockquote>
-<p>Effects: Replaces the contents of the list with n copies of t.</p>
-</blockquote>
-
-<p><i>[Redmond: Proposed resolution was changed slightly.  Previous
-version made explicit statement about exception safety, which wasn't
-consistent with the way exception safety is expressed elsewhere.
-Also, the change in the sequence requirements is new.  Without that
-change, the proposed resolution would have required that assignment of
-a subrange would have to work.  That too would have been
-overspecification; it would effectively mandate that assignment use a
-temporary.  Howard provided wording.
-]</i></p>
-
-
-<p><i>[Cura&ccedil;ao: Made editorial improvement in wording; changed
-&quot;Replaces elements in a with copies of elements in [i, j).&quot;
-with &quot;Replaces the elements of a with a copy of [i, j).&quot;
-Changes not deemed serious enough to requre rereview.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="321"></a>321. Typo in num_get</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Kevin Djang <b>Opened:</b> 2001-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 22.2.2.1.2 at p7 states that "A length specifier is added to
-the conversion function, if needed, as indicated in Table 56."
-However, Table 56 uses the term "length modifier", not "length
-specifier".
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 22.2.2.1.2 at p7, change the text "A length specifier is added ..."
-to be "A length modifier is added ..."
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>C uses the term "length modifier".  We should be consistent.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="322"></a>322. iterator and const_iterator should have the same value type</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2001-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It's widely assumed that, if X is a container,
-iterator_traits&lt;X::iterator&gt;::value_type and
-iterator_traits&lt;X::const_iterator&gt;::value_type should both be
-X::value_type.  However, this is nowhere stated.  The language in
-Table 65 is not precise about the iterators' value types (it predates
-iterator_traits), and could even be interpreted as saying that
-iterator_traits&lt;X::const_iterator&gt;::value_type should be "const
-X::value_type".
-</p>
-
-<p>Related issue: <a href="lwg-closed.html#279">279</a>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In Table 65 ("Container Requirements"), change the return type for
-X::iterator to "iterator type whose value type is T".  Change the
-return type for X::const_iterator to "constant iterator type whose
-value type is T".</p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-This belongs as a container requirement, rather than an iterator
-requirement, because the whole notion of iterator/const_iterator
-pairs is specific to containers' iterator.
-</p>
-<p>
-It is existing practice that (for example) 
-iterator_traits&lt;list&lt;int&gt;::const_iterator&gt;::value_type
-is "int", rather than "const int".  This is consistent with
-the way that const pointers are handled: the standard already 
-requires that iterator_traits&lt;const int*&gt;::value_type is int.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="324"></a>324. Do output iterators have value types?</h3>
-<p><b>Section:</b> 24.2.4 [output.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2001-06-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#output.iterators">active issues</a> in [output.iterators].</p>
-<p><b>View all other</b> <a href="lwg-index.html#output.iterators">issues</a> in [output.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Table 73 suggests that output iterators have value types.  It 
-requires the expression "*a = t".  Additionally, although Table 73
-never lists "a = t" or "X(a) = t" in the "expressions" column, it
-contains a note saying that "a = t" and "X(a) = t" have equivalent
-(but nowhere specified!) semantics.</p>
-
-<p>According to 24.1/9, t is supposed to be "a value of value type
-T":</p>
-
-    <blockquote><p>
-    In the following sections, a and b denote values of X, n denotes a
-    value of the difference type Distance, u, tmp, and m denote
-    identifiers, r denotes a value of X&amp;, t denotes a value of
-    value type T.
-    </p></blockquote>
-
-<p>Two other parts of the standard that are relevant to whether
-output iterators have value types:</p>
-
-<ul>
-    <li>24.1/1 says "All iterators i support the expression *i,
-    resulting in a value of some class, enumeration, or built-in type
-    T, called the value type of the iterator".</li>
-
-    <li>
-    24.3.1/1, which says "In the case of an output iterator, the types
-    iterator_traits&lt;Iterator&gt;::difference_type
-    iterator_traits&lt;Iterator&gt;::value_type are both defined as void."
-    </li>
-</ul>
-
-<p>The first of these passages suggests that "*i" is supposed to
-return a useful value, which contradicts the note in 24.1.2/2 saying
-that the only valid use of "*i" for output iterators is in an
-expression of the form "*i = t".  The second of these passages appears
-to contradict Table 73, because it suggests that "*i"'s return value
-should be void.  The second passage is also broken in the case of a an
-iterator type, like non-const pointers, that satisfies both the output
-iterator requirements and the forward iterator requirements.</p>
-
-<p>What should the standard say about <tt>*i</tt>'s return value when
-i is an output iterator, and what should it say about that t is in the
-expression "*i = t"?  Finally, should the standard say anything about
-output iterators' pointer and reference types?</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>24.1 p1, change</p>
-
-<blockquote>
-<p>All iterators <tt>i</tt> support the expression <tt>*i</tt>, resulting
-in a value of some class, enumeration, or built-in type <tt>T</tt>,
-called the value type of the iterator.</p>
-</blockquote>
-
-<p>to</p>
-
-<blockquote>
-<p>All input iterators <tt>i</tt> support the expression <tt>*i</tt>,
-resulting in a value of some class, enumeration, or built-in type
-<tt>T</tt>, called the value type of the iterator. All output
-iterators support the expression <tt>*i = o</tt> where <tt>o</tt> is a
-value of some type that is in the set of types that are <i>writable</i> to
-the particular iterator type of <tt>i</tt>.
-</p>
-</blockquote>
-
-<p>24.1 p9, add</p>
-
-<blockquote>
-<p><tt>o</tt> denotes a value of some type that is writable to the
-output iterator.
-</p>
-</blockquote>
-
-<p>Table 73, change</p>
-
-<blockquote>
-<pre>
-*a = t
-</pre>
-</blockquote>
-
-<p>to</p>
-
-<blockquote>
-<pre>
-*r = o
-</pre>
-</blockquote>
-
-<p>and change</p>
-
-<blockquote>
-<pre>
-*r++ = t
-</pre>
-</blockquote>
-
-<p>to</p>
-
-<blockquote>
-<pre>
-*r++ = o
-</pre>
-</blockquote>
-
-<p><i>[post-Redmond: Jeremy provided wording]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG considered two options: change all of the language that
-seems to imply that output iterators have value types, thus making it
-clear that output iterators have no value types, or else define value
-types for output iterator consistently.  The LWG chose the former
-option, because it seems clear that output iterators were never
-intended to have value types.  This was a deliberate design decision,
-and any language suggesting otherwise is simply a mistake.</p>
-
-<p>A future revision of the standard may wish to revisit this design
-decision.</p>
-
-
-
-
-
-<hr>
-<h3><a name="325"></a>325. Misleading text in moneypunct&lt;&gt;::do_grouping</h3>
-<p><b>Section:</b> 22.4.6.3.2 [locale.moneypunct.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.moneypunct.virtuals">issues</a> in [locale.moneypunct.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The Returns clause in 22.2.6.3.2, p3 says about
-moneypunct&lt;charT&gt;::do_grouping()
-</p>
-
-<blockquote><p>
-    Returns: A pattern defined identically as the result of
-    numpunct&lt;charT&gt;::do_grouping().241)
-</p></blockquote>
-
-<p>Footnote 241 then reads</p>
-
-<blockquote><p>
-    This is most commonly the value "\003" (not "3").
-</p></blockquote>
-
-<p>
-The returns clause seems to imply that the two member functions must
-return an identical value which in reality may or may not be true,
-since the facets are usually implemented in terms of struct std::lconv
-and return the value of the grouping and mon_grouping, respectively.
-The footnote also implies that the member function of the moneypunct
-facet (rather than the overridden virtual functions in moneypunct_byname)
-most commonly return "\003", which contradicts the C standard which
-specifies the value of "" for the (most common) C locale.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the text in Returns clause in 22.2.6.3.2, p3 with the following:</p>
-
-<blockquote><p>
-    Returns: A pattern defined identically as, but not necessarily
-    equal to, the result of numpunct&lt;charT&gt;::do_grouping().241)
-</p></blockquote>
-
-<p>and replace the text in Footnote 241 with the following:</p>
-
-<blockquote><p>
-    To specify grouping by 3s the value is "\003", not "3".
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The fundamental problem is that the description of the locale facet
-virtuals serves two purposes: describing the behavior of the base
-class, and describing the meaning of and constraints on the behavior
-in arbitrary derived classes.  The new wording makes that separation a
-little bit clearer.  The footnote (which is nonnormative) is not
-supposed to say what the grouping is in the "C" locale or in any other
-locale. It is just a reminder that the values are interpreted as small
-integers, not ASCII characters.
-</p>
-
-
-
-
-<hr>
-<h3><a name="327"></a>327. Typo in time_get facet in table 52</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Tiki Wan <b>Opened:</b> 2001-07-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#447">447</a></p>
-<p><b>Discussion:</b></p>
-<p>The <tt>wchar_t</tt> versions of <tt>time_get</tt> and
-<tt>time_get_byname</tt> are listed incorrectly in table 52,
-required instantiations.  In both cases the second template
-parameter is given as OutputIterator.  It should instead be
-InputIterator, since these are input facets.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In table 52, required instantiations, in 
-22.3.1.1.1 [locale.category], change</p>
-<pre>
-    time_get&lt;wchar_t, OutputIterator&gt;
-    time_get_byname&lt;wchar_t, OutputIterator&gt;
-</pre>
-<p>to</p>
-<pre>
-    time_get&lt;wchar_t, InputIterator&gt;
-    time_get_byname&lt;wchar_t, InputIterator&gt;
-</pre>
-
-<p><i>[Redmond: Very minor change in proposed resolution.  Original had
-a typo, wchart instead of wchar_t.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="328"></a>328. Bad sprintf format modifier in money_put&lt;&gt;::do_put()</h3>
-<p><b>Section:</b> 22.4.6.2.2 [locale.money.put.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-07-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The sprintf format string , "%.01f" (that's the digit one), in the
-description of the do_put() member functions of the money_put facet in
-22.2.6.2.2, p1 is incorrect. First, the f format specifier is wrong
-for values of type long double, and second, the precision of 01
-doesn't seem to make sense. What was most likely intended was
-"%.0Lf"., that is a precision of zero followed by the L length
-modifier.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the format string to "%.0Lf".</p>
-
-
-<p><b>Rationale:</b></p><p>Fixes an obvious typo</p>
-
-
-
-
-<hr>
-<h3><a name="329"></a>329. vector capacity, reserve and reallocation</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity], 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2001-07-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is an apparent contradiction about which circumstances can cause
-a reallocation of a vector in Section 23.3.6.3 [vector.capacity] and
-section 23.3.6.5 [vector.modifiers].
-</p>
-
-<p>23.3.6.3 [vector.capacity],p5 says:</p>
-<blockquote><p>
-Notes: Reallocation invalidates all the references, pointers, and iterators
-referring to the elements in the sequence. It is guaranteed that no
-reallocation takes place during insertions that happen after a call to
-reserve() until the time when an insertion would make the size of the vector
-greater than the size specified in the most recent call to reserve().
-</p></blockquote>
-
-<p>Which implies if I do</p>
-
-<pre>
-  std::vector&lt;int&gt; vec;
-  vec.reserve(23);
-  vec.reserve(0);
-  vec.insert(vec.end(),1);
-</pre>
-
-<p>then the implementation may reallocate the vector for the insert,
-as the size specified in the previous call to reserve was zero.</p>
-
-<p>However, the previous paragraphs (23.3.6.3 [vector.capacity], p1-2) state:</p>
-<blockquote>
-<p>
-(capacity) Returns: The total number of elements the vector
-can hold without requiring reallocation
-</p>
-<p>
-...After reserve(), capacity() is greater or equal to the
-argument of reserve if reallocation happens; and equal to the previous value
-of capacity() otherwise...
-</p>
-</blockquote>
-
-<p>
-This implies that vec.capacity() is still 23, and so the insert()
-should not require a reallocation, as vec.size() is 0. This is backed
-up by 23.3.6.5 [vector.modifiers], p1:
-</p>
-<blockquote><p>
-(insert) Notes: Causes reallocation if the new size is greater than the old
-capacity.
-</p></blockquote>
-
-<p>
-Though this doesn't rule out reallocation if the new size is less
-than the old capacity, I think the intent is clear.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the wording of 23.3.6.3 [vector.capacity] paragraph 5 to:</p>
-
-<blockquote><p>
-Notes: Reallocation invalidates all the references, pointers, and
-iterators referring to the elements in the sequence. It is guaranteed
-that no reallocation takes place during insertions that happen after a
-call to reserve() until the time when an insertion would make the size
-of the vector greater than the value of capacity().
-</p></blockquote>
-
-<p><i>[Redmond: original proposed resolution was modified slightly.  In
-the original, the guarantee was that there would be no reallocation
-until the size would be greater than the value of capacity() after the
-most recent call to reserve().  The LWG did not believe that the
-"after the most recent call to reserve()" added any useful
-information.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>There was general agreement that, when reserve() is called twice in
-succession and the argument to the second invocation is smaller than
-the argument to the first, the intent was for the second invocation to
-have no effect.  Wording implying that such cases have an effect on
-reallocation guarantees was inadvertant.</p>
-
-
-
-
-
-<hr>
-<h3><a name="331"></a>331. bad declaration of destructor for ios_base::failure</h3>
-<p><b>Section:</b> 27.5.3.1.1 [ios::failure] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> PremAnand M. Rao <b>Opened:</b> 2001-08-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios::failure">issues</a> in [ios::failure].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With the change in 17.6.5.12 [res.on.exception.handling] to state
-   "An implementation may strengthen the exception-specification for a 
-    non-virtual function by removing listed exceptions."
-(issue <a href="lwg-defects.html#119">119</a>)
-and the following declaration of ~failure() in ios_base::failure
-</p>
-<pre>
-    namespace std {
-       class ios_base::failure : public exception {
-       public:
-           ...
-           virtual ~failure();
-           ...
-       };
-     }
-</pre>
-<p>the class failure cannot be implemented since in 18.7.1 [type.info] the destructor of class exception has an empty
-exception specification:</p>
-<pre>
-    namespace std {
-       class exception {
-       public:
-         ...
-         virtual ~exception() throw();
-         ...
-       };
-     }
-</pre>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove the declaration of ~failure().</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The proposed resolution is consistent with the way that destructors
-of other classes derived from <tt>exception</tt> are handled.</p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="333"></a>333. does endl imply synchronization with the device?</h3>
-<p><b>Section:</b> 27.7.3.8 [ostream.manip] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> PremAnand M. Rao <b>Opened:</b> 2001-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>A footnote in 27.7.3.8 [ostream.manip] states:</p>
-<blockquote><p>
-    [Footnote: The effect of executing cout &lt;&lt; endl is to insert a 
-     newline character in the output sequence controlled by cout, then 
-     synchronize it with any external file with which it might be 
-     associated. --- end foonote]
-</p></blockquote>
-
-<p>
-Does the term "file" here refer to the external device?
-This leads to some implementation ambiguity on systems with fully 
-buffered files where a newline does not cause a flush to the device.
-</p>
-
-<p>
-Choosing to sync with the device leads to significant performance
-penalties for each call to endl, while not sync-ing leads to
-errors under special circumstances.
-</p>
-
-<p>
-I could not find any other statement that explicitly defined
-the behavior one way or the other.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove footnote 300 from section 27.7.3.8 [ostream.manip].</p>
-
-
-<p><b>Rationale:</b></p>
-<p>We already have normative text saying what <tt>endl</tt> does: it
-inserts a newline character and calls <tt>flush</tt>.  This footnote
-is at best redundant, at worst (as this issue says) misleading,
-because it appears to make promises about what <tt>flush</tt>
-does.</p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="334"></a>334. map::operator[] specification forces inefficient implementation</h3>
-<p><b>Section:</b> 23.4.4.3 [map.access] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andrea Griffini <b>Opened:</b> 2001-09-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.access">issues</a> in [map.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current standard describes map::operator[] using a
-code example. That code example is however quite
-inefficient because it requires several useless copies
-of both the passed key_type value and of default
-constructed mapped_type instances.
-My opinion is that was not meant by the comitee to
-require all those temporary copies. 
-</p>
-
-<p>Currently map::operator[] behaviour is specified as: </p>
-<pre>
-  Returns:
-    (*((insert(make_pair(x, T()))).first)).second.
-</pre>
-  
-<p>
-This specification however uses make_pair that is a
-template function of which parameters in this case
-will be deduced being of type const key_type&amp; and
-const T&amp;. This will create a pair&lt;key_type,T&gt; that
-isn't the correct type expected by map::insert so
-another copy will be required using the template
-conversion constructor available in pair to build
-the required pair&lt;const key_type,T&gt; instance.
-</p>
-
-<p>If we consider calling of key_type copy constructor
-and mapped_type default constructor and copy
-constructor as observable behaviour (as I think we
-should) then the standard is in this place requiring
-two copies of a key_type element plus a default
-construction and two copy construction of a mapped_type
-(supposing the addressed element is already present
-in the map; otherwise at least another copy
-construction for each type). 
-</p>
-
-<p>A simple (half) solution would be replacing the description with:</p>
-<pre>
-  Returns:
-    (*((insert(value_type(x, T()))).first)).second.
-</pre>
-
-<p>This will remove the wrong typed pair construction that
-requires one extra copy of both key and value.</p>
-
-<p>However still the using of map::insert requires temporary
-objects while the operation, from a logical point of view,
-doesn't require any. </p>
-
-<p>I think that a better solution would be leaving free an
-implementer to use a different approach than map::insert
-that, because of its interface, forces default constructed
-temporaries and copies in this case.
-The best solution in my opinion would be just requiring
-map::operator[] to return a reference to the mapped_type
-part of the contained element creating a default element
-with the specified key if no such an element is already
-present in the container. Also a logarithmic complexity
-requirement should be specified for the operation.
-</p>
-
-<p>
-This would allow library implementers to write alternative
-implementations not using map::insert and reaching optimal
-performance in both cases of the addressed element being
-present or absent from the map (no temporaries at all and
-just the creation of a new pair inside the container if
-the element isn't present).
-Some implementer has already taken this option but I think
-that the current wording of the standard rules that as
-non-conforming. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Replace 23.4.4.3 [map.access] paragraph 1 with
-</p>
-<blockquote>
-<p>
--1- Effects:  If there is no key equivalent to x in the map, inserts 
-value_type(x, T()) into the map.
-</p>
-<p>
--2- Returns: A reference to the mapped_type corresponding to x in *this.
-</p>
-<p>
--3- Complexity: logarithmic.
-</p>
-</blockquote>
-
-<p><i>[This is the second option mentioned above.  Howard provided
-wording.  We may also wish to have a blanket statement somewhere in
-clause 17 saying that we do not intend the semantics of sample code
-fragments to be interpreted as specifing exactly how many copies are
-made.  See issue <a href="lwg-defects.html#98">98</a> for a similar problem.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-This is the second solution described above; as noted, it is
-consistent with existing practice.
-</p>
-
-<p>Note that we now need to specify the complexity explicitly, because
-we are no longer defining <tt>operator[]</tt> in terms of
-<tt>insert</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="335"></a>335. minor issue with char_traits, table 37</h3>
-<p><b>Section:</b> 21.2.1 [char.traits.require] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2001-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 37, in 21.2.1 [char.traits.require], descibes char_traits::assign
-as:
-</p>
-<pre>
-  X::assign(c,d)   assigns c = d.
-</pre>
-
-<p>And para 1 says:</p>
-
-<blockquote><p>
- [...] c and d denote values of type CharT [...]
-</p></blockquote>
-
-<p>
-Naturally, if c and d are <i>values</i>, then the assignment is
-(effectively) meaningless. It's clearly intended that (in the case of
-assign, at least), 'c' is intended to be a reference type.
-</p>
-
-<p>I did a quick survey of the four implementations I happened to have
-lying around, and sure enough they all have signatures:</p>
-<pre>
-    assign( charT&amp;, const charT&amp; );
-</pre>
-
-<p>(or the equivalent). It's also described this way in Nico's book.
-(Not to mention the synopses of char_traits&lt;char&gt; in 21.1.3.1
-and char_traits&lt;wchar_t&gt; in 21.1.3.2...)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following to 21.1.1 para 1:</p>
-<blockquote><p>
- r denotes an lvalue of CharT
-</p></blockquote>
-
-<p>and change the description of assign in the table to:</p>
-<pre>
-  X::assign(r,d)   assigns r = d
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="336"></a>336. Clause 17 lack of references to deprecated headers</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2001-09-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>From c++std-edit-873:</p>
-
-<p>17.6.1.2 [headers], Table 11.  In this table, the header
-&lt;strstream&gt; is missing.</p>
-
-<p>This shows a general problem: The whole clause 17 refers quite
-often to clauses 18 through 27, but D.7 is also a part of the standard
-library (though a deprecated one).</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>To 17.6.1.2 [headers] Table 11, C++ Library Headers, add
-"&lt;strstream&gt;".</p>
-
-<p>In the following places, change "clauses 17 through 27" to "clauses
-17 through 27 and Annex D":</p>
-
-<ul>
-<li>1.2 [intro.refs] Normative references/1/footnote 1</li>
-<li>1.3 [intro.defs] Definitions/1</li>
-<li>7 [dcl.dcl] Library introduction/9</li>
-<li>17.5 [description] Method of description (Informative)/1</li>
-<li>17.5.2.1.4 [character.seq] Character sequences/1/bullet 2</li>
-<li>17.5.2.2 [functions.within.classes] Functions within classes/1</li>
-<li>17.5.2.3 [objects.within.classes] Private members/1/(2 places)</li>
-<li>17.6 [requirements] Library-wide requirements/1</li>
-<li>17.6.1.2 [headers] Headers/4</li>
-<li>17.6.4.6 [replacement.functions] Replacement functions/1</li>
-<li>17.6.5.4 [global.functions] Global or non-member functions/2</li>
-<li>17.6.5.10 [protection.within.classes] Protection within classes/1</li>
-</ul>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="337"></a>337. replace_copy_if's template parameter should be InputIterator</h3>
-<p><b>Section:</b> 25.3.5 [alg.replace] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2001-09-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.replace">issues</a> in [alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>From c++std-edit-876:</p>
-
-<p>
-In section 25.3.5 [alg.replace] before p4: The name of the first
-parameter of template replace_copy_if should be "InputIterator"
-instead of "Iterator".  According to 17.5.2.1 [type.descriptions] p1 the
-parameter name conveys real normative meaning.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change <tt>Iterator</tt> to <tt>InputIterator</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="338"></a>338.  is whitespace allowed between `-' and a digit?</h3>
-<p><b>Section:</b> 22.4 [locale.categories] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-09-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.categories">issues</a> in [locale.categories].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From Stage 2 processing in 22.4.2.1.2 [facet.num.get.virtuals], p8 and 9 (the
-original text or the text corrected by the proposed resolution of
-issue <a href="lwg-defects.html#221">221</a>) it seems clear that no whitespace is allowed
-within a number, but 22.4.3.1 [locale.numpunct], p2, which gives the
-format for integer and floating point values, says that whitespace is
-optional between a plusminus and a sign.
-</p>
-
-<p>
-The text needs to be clarified to either consistently allow or
-disallow whitespace between a plusminus and a sign. It might be
-worthwhile to consider the fact that the C library stdio facility does
-not permit whitespace embedded in numbers and neither does the C or
-C++ core language (the syntax of integer-literals is given in 2.13.2 [lex.icon], that of floating-point-literals in 2.13.4 [lex.fcon] of the C++ standard).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the first part of 22.4.3.1 [locale.numpunct] paragraph 2 from:</p>
-<blockquote>
-<p>
-The syntax for number formats is as follows, where <tt>digit</tt>
-represents the radix set specified by the <tt>fmtflags</tt> argument
-value, <tt>whitespace</tt> is as determined by the facet
-<tt>ctype&lt;charT&gt;</tt> (22.2.1.1), and <tt>thousands-sep</tt> and
-<tt>decimal-point</tt> are the results of corresponding
-<tt>numpunct&lt;charT&gt;</tt> members.  Integer values have the
-format:
-</p>
-<pre>
-  integer   ::= [sign] units
-  sign      ::= plusminus [whitespace]
-  plusminus ::= '+' | '-'
-  units     ::= digits [thousands-sep units]
-  digits    ::= digit [digits]
-</pre>
-</blockquote>
-<p>to:</p>
-<blockquote>
-<p>
-The syntax for number formats is as follows, where <tt>digit</tt>
-represents the radix set specified by the <tt>fmtflags</tt> argument
-value, and <tt>thousands-sep</tt> and <tt>decimal-point</tt> are the
-results of corresponding <tt>numpunct&lt;charT&gt;</tt> members.
-Integer values have the format:
-</p>
-<pre>
-  integer   ::= [sign] units
-  sign      ::= plusminus
-  plusminus ::= '+' | '-'
-  units     ::= digits [thousands-sep units]
-  digits    ::= digit [digits]
-</pre>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>It's not clear whether the format described in 22.4.3.1 [locale.numpunct] paragraph 2 has any normative weight: nothing in the
-standard says how, or whether, it's used.  However, there's no reason
-for it to differ gratuitously from the very specific description of
-numeric processing in 22.4.2.1.2 [facet.num.get.virtuals].  The proposed
-resolution removes all mention of "whitespace" from that format.</p>
-
-
-
-
-
-<hr>
-<h3><a name="339"></a>339. definition of bitmask type restricted to clause 27</h3>
-<p><b>Section:</b> 22.4.1 [category.ctype], 17.5.2.1.3 [bitmask.types] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-09-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#category.ctype">issues</a> in [category.ctype].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The ctype_category::mask type is declared to be an enum in 22.4.1 [category.ctype] with p1 then stating that it is a bitmask type, most
-likely referring to the definition of bitmask type in 17.5.2.1.3 [bitmask.types], p1. However, the said definition only applies to
-clause 27, making the reference in 22.2.1 somewhat dubious.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Clarify 17.3.2.1.2, p1 by changing the current text from</p>
-    <blockquote><p>
-    Several types defined in clause 27 are bitmask types. Each bitmask type
-    can be implemented as an enumerated type that overloads certain operators,
-    as an integer type, or as a bitset (20.6 [template.bitset]).
-    </p></blockquote>
-<p>to read</p>
-    <blockquote><p>
-    Several types defined in clauses lib.language.support through 
-    lib.input.output and Annex D are bitmask types. Each bitmask type can
-    be implemented as an enumerated type that overloads certain operators,
-    as an integer  type, or as a bitset (lib.template.bitset).
-    </p></blockquote>
-
-<p>
-Additionally, change the definition in 22.2.1 to adopt the same
-convention as in clause 27 by replacing the existing text with the
-following (note, in particluar, the cross-reference to 17.3.2.1.2 in
-22.2.1, p1):
-</p>
-
-<blockquote>
-<p>22.2.1 The ctype category [lib.category.ctype]</p>
-<pre>
-namespace std {
-    class ctype_base {
-    public:
-        typedef <b><i>T</i></b> mask;
-
-        // numeric values are for exposition only.
-        static const mask space = 1 &lt;&lt; 0;
-        static const mask print = 1 &lt;&lt; 1;
-        static const mask cntrl = 1 &lt;&lt; 2;
-        static const mask upper = 1 &lt;&lt; 3;
-        static const mask lower = 1 &lt;&lt; 4;
-        static const mask alpha = 1 &lt;&lt; 5;
-        static const mask digit = 1 &lt;&lt; 6;
-        static const mask punct = 1 &lt;&lt; 7;
-        static const mask xdigit = 1 &lt;&lt; 8;
-        static const mask alnum = alpha | digit;
-        static const mask graph = alnum | punct;
-    };
-}
-</pre>
-
-<p>The type <tt>mask</tt> is a bitmask type (17.5.2.1.3 [bitmask.types]).</p>
-</blockquote>
-
-<p><i>[Cura&ccedil;ao: The LWG notes that T above should be bold-italics to be
-consistent with the rest of the standard.]</i></p>
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="340"></a>340. interpretation of <tt>has_facet&lt;Facet&gt;(loc)</tt></h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It's unclear whether 22.1.1.1.1, p3 says that
-<tt>has_facet&lt;Facet&gt;(loc)</tt> returns true for any <tt>Facet</tt>
-from Table 51 or whether it includes Table 52 as well:
-</p>
-
-<blockquote><p>
-For any locale <tt>loc</tt> either constructed, or returned by
-locale::classic(), and any facet <tt>Facet</tt> that is a member of a
-standard category, <tt>has_facet&lt;Facet&gt;(loc)</tt> is true. Each
-locale member function which takes a <tt>locale::category</tt>
-argument operates on the corresponding set of facets.
-</p></blockquote>
-
-<p>
-It seems that it comes down to which facets are considered to be members of a
-standard category. Intuitively, I would classify all the facets in Table 52 as
-members of their respective standard categories, but there are an unbounded set
-of them...
-</p>
-
-<p>
-The paragraph implies that, for instance, <tt>has_facet&lt;num_put&lt;C,
-OutputIterator&gt; &gt;(loc)</tt> must always return true. I don't think that's
-possible. If it were, then <tt>use_facet&lt;num_put&lt;C, OutputIterator&gt;
-&gt;(loc)</tt> would have to return a reference to a distinct object for each
-valid specialization of <tt>num_put&lt;C, OutputIteratory&gt;</tt>, which is
-clearly impossible.
-</p>
-
-<p>
-On the other hand, if none of the facets in Table 52 is a member of a standard
-category then none of the locale member functions that operate on entire
-categories of facets will work properly.
-</p>
-
-<p>
-It seems that what p3 should mention that it's required (permitted?)
-to hold only for specializations of <tt>Facet</tt> from Table 52 on
-<tt>C</tt> from the set { <tt>char</tt>, <tt>wchar_t</tt> }, and
-<tt>InputIterator</tt> and <tt>OutputIterator</tt> from the set of
-{
-{i,o}<tt>streambuf_iterator</tt>&lt;{<tt>char</tt>,<tt>wchar_t</tt>}<tt>&gt;</tt>
-}.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.1.1.1 [locale.category], paragraph 3, change
-"that is a member of a standard category" to "shown in Table 51".</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The facets in Table 52 are an unbounded set.  Locales should not be
-required to contain an infinite number of facets.</p> 
-
-<p>It's not necessary to talk about which values of InputIterator and
-OutputIterator must be supported.  Table 51 already contains a
-complete list of the ones we need.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="341"></a>341. Vector reallocation and swap</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2001-09-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>It is a common idiom to reduce the capacity of a vector by swapping it with
-an empty one:</p>
-<pre>
-  std::vector&lt;SomeType&gt; vec;
-  // fill vec with data
-  std::vector&lt;SomeType&gt;().swap(vec);
-  // vec is now empty, with minimal capacity
-</pre>
-
-<p>However, the wording of 23.3.6.3 [vector.capacity]paragraph 5 prevents
-the capacity of a vector being reduced, following a call to
-reserve(). This invalidates the idiom, as swap() is thus prevented
-from reducing the capacity. The proposed wording for issue <a href="lwg-defects.html#329">329</a> does not affect this.  Consequently, the example above
-requires the temporary to be expanded to cater for the contents of
-vec, and the contents be copied across. This is a linear-time
-operation.</p>
-
-<p>However, the container requirements state that swap must have constant
-complexity (23.2 [container.requirements] note to table 65).</p>
-
-<p>This is an important issue, as reallocation affects the validity of
-references and iterators.</p>
-
-<p>If the wording of 23.2.4.2p5 is taken to be the desired intent, then
-references and iterators remain valid after a call to swap, if they refer to
-an element before the new end() of the vector into which they originally
-pointed, in which case they refer to the element at the same index position.
-Iterators and references that referred to an element whose index position
-was beyond the new end of the vector are invalidated.</p>
-
-<p>If the note to table 65 is taken as the desired intent, then there are two
-possibilities with regard to iterators and references:</p>
-
-<ol>
-<li>All Iterators and references into both vectors are invalidated.</li>
-<li>Iterators and references into either vector remain valid, and remain
-pointing to the same element. Consequently iterators and references that
-referred to one vector now refer to the other, and vice-versa.</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a new paragraph after 23.3.6.3 [vector.capacity] paragraph 5:</p>
-<blockquote>
-<pre>
-  void swap(vector&lt;T,Allocator&gt;&amp; x);
-</pre>
-<p><b>Effects:</b> Exchanges the contents and capacity() of <tt>*this</tt>
-with that of <tt>x</tt>.</p>
-<p><b>Complexity:</b> Constant time.</p>
-</blockquote>
-
-<p><i>[This solves the problem reported for this issue.  We may also
-have a problem with a circular definition of swap() for other
-containers.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-swap should be constant time.  The clear intent is that it should just
-do pointer twiddling, and that it should exchange all properties of
-the two vectors, including their reallocation guarantees.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="343"></a>343. Unspecified library header dependencies</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopses of the C++ library headers clearly show which names are
-required to be defined in each header. Since in order to implement the
-classes and templates defined in these headers declarations of other
-templates (but not necessarily their definitions) are typically
-necessary the standard in 17.4.4, p1 permits library implementers to
-include any headers needed to implement the definitions in each header.
-</p>
-
-<p>
-For instance, although it is not explicitly specified in the synopsis of
-<tt>&lt;string&gt;</tt>, at the point of definition of the <tt>std::basic_string</tt> template
-the declaration of the <tt>std::allocator</tt> template must be in scope. All
-current implementations simply include <tt>&lt;memory&gt;</tt> from within <tt>&lt;string&gt;</tt>,
-either directly or indirectly, to bring the declaration of
-<tt>std::allocator</tt> into scope.
-</p>
-
-<p>
-Additionally, however, some implementation also include <tt>&lt;istream&gt;</tt> and
-<tt>&lt;ostream&gt;</tt> at the top of <tt>&lt;string&gt;</tt> to bring the declarations of
-<tt>std::basic_istream</tt> and <tt>std::basic_ostream</tt> into scope (which are needed
-in order to implement the string inserter and extractor operators
-(21.3.7.9 [lib.string.io])). Other implementations only include
-<tt>&lt;iosfwd&gt;</tt>, since strictly speaking, only the declarations and not the
-full definitions are necessary.
-</p>
-
-<p>
-Obviously, it is possible to implement <tt>&lt;string&gt;</tt> without actually
-providing the full definitions of all the templates <tt>std::basic_string</tt>
-uses (<tt>std::allocator</tt>, <tt>std::basic_istream</tt>, and <tt>std::basic_ostream</tt>).
-Furthermore, not only is it possible, doing so is likely to have a
-positive effect on compile-time efficiency.
-</p>
-
-<p>
-But while it may seem perfectly reasonable to expect a program that uses
-the <tt>std::basic_string</tt> insertion and extraction operators to also
-explicitly include <tt>&lt;istream&gt;</tt> or <tt>&lt;ostream&gt;</tt>, respectively, it doesn't seem
-reasonable to also expect it to explicitly include <tt>&lt;memory&gt;</tt>. Since
-what's reasonable and what isn't is highly subjective one would expect
-the standard to specify what can and what cannot be assumed.
-Unfortunately, that isn't the case.
-</p>
-
-<p>The examples below demonstrate the issue.</p>
-
-<p>Example 1:</p>
-
-<p>It is not clear whether the following program is complete:</p>
-
-<pre>
-#include &lt;string&gt;
-
-extern std::basic_ostream&lt;char&gt; &amp;strm;
-
-int main () {
-    strm &lt;&lt; std::string ("Hello, World!\n");
-}
-</pre>    
-
-<p>or whether one must explicitly include <tt>&lt;memory&gt;</tt> or
-<tt>&lt;ostream&gt;</tt> (or both) in addition to <tt>&lt;string&gt;</tt> in order for
-the program to compile.</p>
-
-
-<p>Example 2:</p>
-
-<p>Similarly, it is unclear whether the following program is complete:</p>
-
-<pre>
-#include &lt;istream&gt;
-
-extern std::basic_iostream&lt;char&gt; &amp;strm;
-
-int main () {
-    strm &lt;&lt; "Hello, World!\n";
-}
-</pre>
-
-<p>
-or whether one needs to explicitly include <tt>&lt;ostream&gt;</tt>, and
-perhaps even other headers containing the definitions of other
-required templates:</p>
-
-<pre>
-#include &lt;ios&gt;
-#include &lt;istream&gt;
-#include &lt;ostream&gt;
-#include &lt;streambuf&gt;
-
-extern std::basic_iostream&lt;char&gt; &amp;strm;
-
-int main () {
-    strm &lt;&lt; "Hello, World!\n";
-}
-</pre>
-
-<p>Example 3:</p>
-
-<p>Likewise, it seems unclear whether the program below is complete:</p>
-<pre>
-#include &lt;iterator&gt;
-
-bool foo (std::istream_iterator&lt;int&gt; a, std::istream_iterator&lt;int&gt; b)
-{
-    return a == b;
-}
-
-int main () { }
-</pre>
-
-<p>or whether one should be required to include <tt>&lt;istream&gt;</tt>.</p>
-
-<p>There are many more examples that demonstrate this lack of a
-requirement.  I believe that in a good number of cases it would be
-unreasonable to require that a program explicitly include all the
-headers necessary for a particular template to be specialized, but I
-think that there are cases such as some of those above where it would
-be desirable to allow implementations to include only as much as
-necessary and not more.</p>
-
-<p><i>[
-post Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Position taken in prior reviews is that the idea of a table of header
-dependencies is a good one. Our view is that a full paper is needed to
-do justice to this, and we've made that recommendation to the issue
-author.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Resolved. Handled by LWG <a href="lwg-defects.html#1178">1178</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-For every C++ library header, supply a minimum set of other C++ library
-headers that are required to be included by that header. The proposed
-list is below (C++ headers for C Library Facilities, table 12 in
-17.4.1.2, p3, are omitted):
-</p>
-
-<pre>
-+------------+--------------------+
-| C++ header |required to include |
-+============+====================+
-|&lt;algorithm&gt; |                    |
-+------------+--------------------+
-|&lt;bitset&gt;    |                    |
-+------------+--------------------+
-|&lt;complex&gt;   |                    |
-+------------+--------------------+
-|&lt;deque&gt;     |&lt;memory&gt;            |
-+------------+--------------------+
-|&lt;exception&gt; |                    |
-+------------+--------------------+
-|&lt;fstream&gt;   |&lt;ios&gt;               |
-+------------+--------------------+
-|&lt;functional&gt;|                    |
-+------------+--------------------+
-|&lt;iomanip&gt;   |&lt;ios&gt;               |
-+------------+--------------------+
-|&lt;ios&gt;       |&lt;streambuf&gt;         |
-+------------+--------------------+
-|&lt;iosfwd&gt;    |                    |
-+------------+--------------------+
-|&lt;iostream&gt;  |&lt;istream&gt;, &lt;ostream&gt;|
-+------------+--------------------+
-|&lt;istream&gt;   |&lt;ios&gt;               |
-+------------+--------------------+
-|&lt;iterator&gt;  |                    |
-+------------+--------------------+
-|&lt;limits&gt;    |                    |
-+------------+--------------------+
-|&lt;list&gt;      |&lt;memory&gt;            |
-+------------+--------------------+
-|&lt;locale&gt;    |                    |
-+------------+--------------------+
-|&lt;map&gt;       |&lt;memory&gt;            |
-+------------+--------------------+
-|&lt;memory&gt;    |                    |
-+------------+--------------------+
-|&lt;new&gt;       |&lt;exception&gt;         |
-+------------+--------------------+
-|&lt;numeric&gt;   |                    |
-+------------+--------------------+
-|&lt;ostream&gt;   |&lt;ios&gt;               |
-+------------+--------------------+
-|&lt;queue&gt;     |&lt;deque&gt;             |
-+------------+--------------------+
-|&lt;set&gt;       |&lt;memory&gt;            |
-+------------+--------------------+
-|&lt;sstream&gt;   |&lt;ios&gt;, &lt;string&gt;     |
-+------------+--------------------+
-|&lt;stack&gt;     |&lt;deque&gt;             |
-+------------+--------------------+
-|&lt;stdexcept&gt; |                    |
-+------------+--------------------+
-|&lt;streambuf&gt; |&lt;ios&gt;               |
-+------------+--------------------+
-|&lt;string&gt;    |&lt;memory&gt;            |
-+------------+--------------------+
-|&lt;strstream&gt; |                    |
-+------------+--------------------+
-|&lt;typeinfo&gt;  |&lt;exception&gt;         |
-+------------+--------------------+
-|&lt;utility&gt;   |                    |
-+------------+--------------------+
-|&lt;valarray&gt;  |                    |
-+------------+--------------------+
-|&lt;vector&gt;    |&lt;memory&gt;            |
-+------------+--------------------+
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>The portability problem is real.  A program that works correctly on
-one implementation might fail on another, because of different header
-dependencies.  This problem was understood before the standard was
-completed, and it was a conscious design choice.</p>
-<p>One possible way to deal with this, as a library extension, would
-be an <tt>&lt;all&gt;</tt> header.</p>
-
-<p>
-Hinnant:  It's time we dealt with this issue for C++0X.  Reopened.
-</p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="345"></a>345. type tm in &lt;cwchar&gt;</h3>
-<p><b>Section:</b> 21.8 [c.strings] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Clark Nelson <b>Opened:</b> 2001-10-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.strings">active issues</a> in [c.strings].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.strings">issues</a> in [c.strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-C99, and presumably amendment 1 to C90, specify that &lt;wchar.h&gt;
-declares struct tm as an incomplete type. However, table 48 in 21.8 [c.strings] does not mention the type tm as being declared in
-&lt;cwchar&gt;. Is this omission intentional or accidental?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In section 21.8 [c.strings], add "tm" to table 48.</p>
-
-
-
-
-
-<hr>
-<h3><a name="346"></a>346. Some iterator member functions should be const</h3>
-<p><b>Section:</b> X [iterator.concepts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jeremy Siek <b>Opened:</b> 2001-10-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.concepts">issues</a> in [iterator.concepts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Iterator member functions and operators that do not change the state
-of the iterator should be defined as const member functions or as
-functions that take iterators either by const reference or by
-value. The standard does not explicitly state which functions should
-be const.  Since this a fairly common mistake, the following changes
-are suggested to make this explicit.</p>
-
-<p>The tables almost indicate constness properly through naming: r
-for non-const and a,b for const iterators. The following changes
-make this more explicit and also fix a couple problems.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In X [iterator.concepts] Change the first section of p9 from
-"In the following sections, a and b denote values of X..." to
-"In the following sections, a and b denote values of type const X...".</p>
-
-<p>In Table 73, change</p>
-<pre>
-    a-&gt;m   U&amp;         ...
-</pre>
-
-<p>to</p>
-
-<pre>
-    a-&gt;m   const U&amp;   ...
-    r-&gt;m   U&amp;         ...
-</pre>
-
-<p>In Table 73 expression column, change</p>
-
-<pre>
-    *a = t
-</pre>
-
-<p>to</p>
-
-<pre>
-    *r = t
-</pre>
-
-<p><i>[Redmond: The container requirements should be reviewed to see if
-the same problem appears there.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="347"></a>347. locale::category and bitmask requirements</h3>
-<p><b>Section:</b> 22.3.1.1.1 [locale.category] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> P.J. Plauger, Nathan Myers <b>Opened:</b> 2001-10-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.category">issues</a> in [locale.category].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 22.3.1.1.1 [locale.category] paragraph 1, the category members
-are described as bitmask elements.  In fact, the bitmask requirements
-in 17.5.2.1.3 [bitmask.types] don't seem quite right: <tt>none</tt>
-and <tt>all</tt> are bitmask constants, not bitmask elements.</p>
-
-<p>In particular, the requirements for <tt>none</tt> interact poorly
-with the requirement that the LC_* constants from the C library must
-be recognizable as C++ locale category constants.  LC_* values should
-not be mixed with these values to make category values.</p>
-
-<p>We have two options for the proposed resolution.  Informally:
-option 1 removes the requirement that LC_* values be recognized as
-category arguments.  Option 2 changes the category type so that this
-requirement is implementable, by allowing <tt>none</tt> to be some
-value such as 0x1000 instead of 0.</p>
-
-<p>Nathan writes: "I believe my proposed resolution [Option 2] merely
-re-expresses the status quo more clearly, without introducing any
-changes beyond resolving the DR.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace the first two paragraphs of 22.3.1.1 [locale.types] with:</p>
-<blockquote>
-<pre>
-    typedef int category;
-</pre>
-
-<p>Valid category values include the <tt>locale</tt> member bitmask
-elements <tt>collate</tt>, <tt>ctype</tt>, <tt>monetary</tt>,
-<tt>numeric</tt>, <tt>time</tt>, and <tt>messages</tt>, each of which
-represents a single locale category. In addition, <tt>locale</tt> member
-bitmask constant <tt>none</tt> is defined as zero and represents no
-category. And locale member bitmask constant <tt>all</tt> is defined such that
-the expression</p>
-<pre>
-    (collate | ctype | monetary | numeric | time | messages | all) == all
-</pre>
-<p>
-is <tt>true</tt>, and represents the union of all categories.  Further
-the expression <tt>(X | Y)</tt>, where <tt>X</tt> and <tt>Y</tt> each
-represent a single category, represents the union of the two
-categories.
-</p>
-
-<p>
-<tt>locale</tt> member functions expecting a <tt>category</tt>
-argument require one of the <tt>category</tt> values defined above, or
-the union of two or more such values. Such a <tt>category</tt>
-argument identifies a set of locale categories. Each locale category,
-in turn, identifies a set of locale facets, including at least those
-shown in Table 51:
-</p>
-</blockquote>
-<p><i>[Cura&ccedil;ao: need input from locale experts.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-
-<p>The LWG considered, and rejected, an alternate proposal (described
-  as "Option 2" in the discussion).  The main reason for rejecting it
-  was that library implementors were concerened about implementation
-  difficult, given that getting a C++ library to work smoothly with a
-  separately written C library is already a delicate business.  Some
-  library implementers were also concerned about the issue of adding
-  extra locale categories.</p>
-
-<blockquote>
-<p><b>Option 2:</b> <br/>
-Replace the first paragraph of 22.3.1.1 [locale.types] with:</p>
-<blockquote>
-<p>
-Valid category values include the enumerated values.  In addition, the
-result of applying commutative operators | and &amp; to any two valid 
-values is valid, and results in the setwise union and intersection, 
-respectively, of the argument categories.  The values <tt>all</tt> and 
-<tt>none</tt> are defined such that for any valid value <tt>cat</tt>, the
-expressions <tt>(cat | all == all)</tt>, <tt>(cat &amp; all == cat)</tt>,
-<tt>(cat | none == cat)</tt> and <tt>(cat &amp; none == none)</tt> are 
-true.  For non-equal values <tt>cat1</tt> and <tt>cat2</tt> of the
-remaining enumerated values, <tt>(cat1 &amp; cat2 == none)</tt> is true.
-For any valid categories <tt>cat1</tt> and <tt>cat2</tt>, the result
-of <tt>(cat1 &amp; ~cat2)</tt> is valid, and equals the setwise union of 
-those categories found in <tt>cat1</tt> but not found in <tt>cat2</tt>.
-[Footnote: it is not required that <tt>all</tt> equal the setwise union
-of the other enumerated values; implementations may add extra categories.]
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="349"></a>349. Minor typographical error in ostream_iterator</h3>
-<p><b>Section:</b> 24.6.2 [ostream.iterator] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2001-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>24.5.2 [lib.ostream.iterator] states:</p>
-<pre>
-    [...]
-
-    private:
-    // basic_ostream&lt;charT,traits&gt;* out_stream; exposition only
-    // const char* delim; exposition only
-</pre>
-
-<p>Whilst it's clearly marked "exposition only", I suspect 'delim'
-should be of type 'const charT*'.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 24.6.2 [ostream.iterator], replace <tt>const char* delim</tt> with
-<tt>const charT* delim</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="352"></a>352. missing fpos requirements</h3>
-<p><b>Section:</b> 21.2.2 [char.traits.typedefs] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-12-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits.typedefs">issues</a> in [char.traits.typedefs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<i>(1)</i>
-There are no requirements on the <tt>stateT</tt> template parameter of
-<tt>fpos</tt> listed in 27.4.3. The interface appears to require that
-the type be at least Assignable and CopyConstructible (27.4.3.1, p1),
-and I think also DefaultConstructible (to implement the operations in
-Table 88).
-</p>
-<p>
-21.1.2, p3, however, only requires that
-<tt>char_traits&lt;charT&gt;::state_type</tt> meet the requirements of
-CopyConstructible types.
-</p>
-<p>
-<i>(2)</i>
-Additionally, the <tt>stateT</tt> template argument has no
-corresponding typedef in fpos which might make it difficult to use in
-generic code.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify 21.1.2, p4 from
-</p>
-<p>
-    Requires: <tt>state_type</tt> shall meet the requirements of
-              CopyConstructible types (20.1.3).
-</p>
-<p>
-    Requires: state_type shall meet the requirements of Assignable
-              (23.1, p4), CopyConstructible (20.1.3), and
-              DefaultConstructible  (20.1.4) types.
-</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG feels this is two issues, as indicated above. The first is
-a defect---std::basic_fstream is unimplementable without these
-additional requirements---and the proposed resolution fixes it.  The
-second is questionable; who would use that typedef?  The class
-template fpos is used only in a very few places, all of which know the
-state type already.  Unless motivation is provided, the second should
-be considered NAD.</p>
-
-
-
-
-
-<hr>
-<h3><a name="353"></a>353. <tt>std::pair</tt> missing template assignment</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2001-12-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class template <tt>std::pair</tt> defines a template ctor (20.2.2, p4) but
-no template assignment operator. This may lead to inefficient code since
-assigning an object of <tt>pair&lt;C, D&gt;</tt> to <tt>pair&lt;A, B&gt;</tt>
-where the types <tt>C</tt> and <tt>D</tt> are distinct from but convertible to
-<tt>A</tt> and <tt>B</tt>, respectively, results in a call to the template copy
-ctor to construct an unnamed temporary of type <tt>pair&lt;A, B&gt;</tt>
-followed by an ordinary (perhaps implicitly defined) assignment operator,
-instead of just a straight assignment.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following declaration to the definition of <tt>std::pair</tt>:
-</p>
-<pre>
-    template&lt;class U, class V&gt;
-    pair&amp; operator=(const pair&lt;U, V&gt; &amp;p);
-</pre>
-<p>
-And also add a paragraph describing the effects of the function template to the
-end of 20.2.2:
-</p>
-<pre>
-    template&lt;class U, class V&gt;
-    pair&amp; operator=(const pair&lt;U, V&gt; &amp;p);
-</pre>
-<p>
-    <b>Effects</b>: <tt>first = p.first;</tt>
-                    <tt>second = p.second;</tt>
-    <b>Returns</b>: <tt>*this</tt>
-</p>
-
-<p><i>[Cura&ccedil;ao: There is no indication this is was anything other than
-a design decision, and thus NAD.&nbsp; May be appropriate for a future
-standard.]</i></p>
-
-
-<p><i>[
-Pre Bellevue:  It was recognized that this was taken care of by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html">N1856</a>,
-and thus moved from NAD Future to <del>NAD Editorial</del><ins>Resolved</ins>.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="354"></a>354. Associative container lower/upper bound requirements</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Hans Aberg <b>Opened:</b> 2001-12-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Discussions in the thread "Associative container lower/upper bound
-requirements" on comp.std.c++ suggests that there is a defect in the
-C++ standard, Table 69 of section 23.1.2, "Associative containers",
-[lib.associative.reqmts].  It currently says:</p>
-
-<blockquote>
-<p>
-a.find(k): returns an iterator pointing to an element with the key equivalent to
-k, or a.end() if such an element is not found.
-</p>
-
-<p>
-a.lower_bound(k): returns an iterator pointing to the first element with
-key not less than k.
-</p>
-
-<p>
-a.upper_bound(k): returns an iterator pointing to the first element with
-key greater than k.
-</p>
-</blockquote>
-
-<p>
-We have "or a.end() if such an element is not found" for
-<tt>find</tt>, but not for <tt>upper_bound</tt> or
-<tt>lower_bound</tt>.  As the text stands, one would be forced to
-insert a new element into the container and return an iterator to that
-in case the sought iterator does not exist, which does not seem to be
-the intention (and not possible with the "const" versions).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change Table 69 of section 23.2.4 [associative.reqmts] indicated entries
-to:</p>
-
-<blockquote>
-<p>
-a.lower_bound(k): returns an iterator pointing to the first element with
-key not less than k, or a.end() if such an element is not found.
-</p>
-
-<p>
-a.upper_bound(k): returns an iterator pointing to the first element with
-key greater than k, or a.end() if such an element is not found.
-</p>
-</blockquote>
-
-<p><i>[Cura&ccedil;ao: LWG reviewed PR.]</i></p>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="355"></a>355. Operational semantics for a.back()</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Yaroslav Mironov <b>Opened:</b> 2002-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Table 68 &quot;Optional Sequence Operations&quot; in 23.1.1/12
-specifies operational semantics for &quot;a.back()&quot; as
-&quot;*--a.end()&quot;, which may be ill-formed <i>[because calling
-operator-- on a temporary (the return) of a built-in type is
-ill-formed]</i>, provided a.end() returns a simple pointer rvalue
-(this is almost always the case for std::vector::end(), for
-example). Thus, the specification is not only incorrect, it
-demonstrates a dangerous construct: &quot;--a.end()&quot; may
-successfully compile and run as intended, but after changing the type
-of the container or the mode of compilation it may produce
-compile-time error. </p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the specification in table 68 &quot;Optional Sequence
-Operations&quot; in 23.1.1/12 for &quot;a.back()&quot; from</p>
-
-
-<blockquote><pre>
-*--a.end()
-</pre></blockquote>
-
-<p>to</p>
-
-<blockquote><pre>
-  { iterator tmp = a.end(); --tmp; return *tmp; }
-</pre></blockquote>
-
-<p>and the specification for "a.pop_back()" from</p>
-
-<blockquote><pre>
-a.erase(--a.end())
-</pre></blockquote>
-
-<p>to</p>
-
-<blockquote><pre>
-  { iterator tmp = a.end(); --tmp; a.erase(tmp); }
-</pre></blockquote>
-
-<p><i>[Cura&ccedil;ao: LWG changed PR from &quot;{ X::iterator tmp =
-a.end(); return *--tmp; }&quot; to &quot;*a.rbegin()&quot;, and from
-&quot;{ X::iterator tmp = a.end(); a.erase(--tmp); }&quot; to
-&quot;a.erase(rbegin())&quot;.]</i></p>
-
-
-<p><i>[There is a second possible defect; table 68 &quot;Optional
-Sequence Operations&quot; in the &quot;Operational Semantics&quot;
-column uses operations present only in the &quot;Reversible
-Container&quot; requirements, yet there is no stated dependency
-between these separate requirements tables. Ask in Santa Cruz if the
-LWG would like a new issue opened.]</i></p>
-
-
-<p><i>[Santa Cruz: the proposed resolution is even worse than what's in
-  the current standard: erase is undefined for reverse iterator.  If
-  we're going to make the change, we need to define a temporary and
-  use operator--.  Additionally, we don't know how prevalent this is:
-  do we need to make this change in more than one place?  Martin has
-  volunteered to review the standard and see if this problem occurs
-  elsewhere.]</i></p>
-
-
-<p><i>[Oxford: Matt provided new wording to address the concerns raised
-  in Santa Cruz.  It does not appear that this problem appears
-  anywhere else in clauses 23 or 24.]</i></p>
-
-
-<p><i>[Kona: In definition of operational semantics of back(), change
-"*tmp" to "return *tmp;"]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="358"></a>358. interpreting <tt>thousands_sep</tt> after a <tt>decimal_point</tt></h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I don't think <tt>thousands_sep</tt> is being treated correctly after
-decimal_point has been seen. Since grouping applies only to the
-integral part of the number, the first such occurrence should, IMO,
-terminate Stage 2. (If it does not terminate it, then 22.2.2.1.2, p12
-and 22.2.3.1.2, p3 need to explain how <tt>thousands_sep</tt> is to be
-interpreted in the fractional part of a number.)
-</p>
-
-<p>
-The easiest change I can think of that resolves this issue would be
-something like below.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the first sentence of 22.2.2.1.2, p9 from
-</p>
-
-<blockquote><p>
-    If discard is true then the position of the character is
-    remembered, but the character is otherwise ignored. If it is not
-    discarded, then a check is made to determine if c is allowed as
-    the next character of an input field of the conversion specifier
-    returned by stage 1. If so it is accumulated.
-</p></blockquote>
-
-<p>to</p>
-
-<blockquote><p>
-    If <tt>discard</tt> is true, then if <tt>'.'</tt> has not yet been
-    accumulated, then the position of the character is remembered, but
-    the character is otherwise ignored. Otherwise, if <tt>'.'</tt> has
-    already been accumulated, the character is discarded and Stage 2
-     terminates. ...
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>We believe this reflects the intent of the Standard.  Thousands sep
-  characters after the decimal point are not useful in any locale.
-  Some formatting conventions do group digits that follow the decimal
-  point, but they usually introduce a different grouping character
-  instead of reusing the thousand sep character.  If we want to add
-  support for such conventions, we need to do so explicitly.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="359"></a>359. num_put&lt;&gt;::do_put (..., bool) undocumented</h3>
-<p><b>Section:</b> 22.4.2.2.1 [facet.num.put.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>22.2.2.2.1, p1:</p>
-
-    <pre>
-    iter_type put (iter_type out, ios_base&amp; str, char_type fill,
-                   bool val) const;
-    ...
-
-    1   Returns: do_put (out, str, fill, val).
-    </pre>
-
-<p>AFAICS, the behavior of do_put (..., bool) is not documented anywhere,
-however, 22.2.2.2.2, p23:</p>
-
-<blockquote>
-<pre>
-iter_type put (iter_type out, ios_base&amp; str, char_type fill,
-               bool val) const;
-</pre>
-
-
-        <p>Effects: If (str.flags() &amp; ios_base::boolalpha) == 0 then do
-             out = do_put(out, str, fill, (int)val)
-           Otherwise do</p>
-<pre>
-             string_type s =
-                 val ? use_facet&lt;ctype&lt;charT&gt; &gt;(loc).truename()
-                     : use_facet&lt;ctype&lt;charT&gt; &gt;(loc).falsename();
-</pre>
-           <p>and then insert the characters of s into out. <i>out</i>.</p>
-</blockquote>
-
-<p>
-This means that the bool overload of <tt>do_put()</tt> will never be called,
-which contradicts the first paragraph. Perhaps the declaration
-should read <tt>do_put()</tt>, and not <tt>put()</tt>?
-</p>
-
-<p>
-Note also that there is no <b>Returns</b> clause for this function, which
-should probably be corrected, just as should the second occurrence
-of <i>"out."</i> in the text.
-</p>
-
-<p>
-I think the least invasive change to fix it would be something like
-the following:
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.4.2.2.2 [facet.num.put.virtuals], just above paragraph 1, remove
-  the <tt>bool</tt> overload.</p>
-
-<p>
-In 22.4.2.2.2 [facet.num.put.virtuals], p23, make the following changes
-</p>
-
-<blockquote><p>
-     Replace <tt>put()</tt> with <tt>do_put()</tt> in the declaration
-     of the member function.
-</p></blockquote>
-
-<blockquote><p>
-    Change the <b>Effects</b> clause to a <b>Returns</b> clause (to
-    avoid the requirement to call <tt>do_put(..., int)</tt> from <tt>
-    do_put (..., bool))</tt>
-    like so:
-</p></blockquote>
-
-<blockquote><p>
-    23   <b>Returns</b>: If <tt>(str.flags() &amp;
-         ios_base::boolalpha) == 0</tt> then
-         <tt>do_put (out, str, fill, (long)val)</tt>
-         Otherwise the function obtains a string <tt>s</tt> as if by</p>
-<pre>
-             string_type s =
-                val ? use_facet&lt;ctype&lt;charT&gt; &gt;(loc).truename()
-                    : use_facet&lt;ctype&lt;charT&gt; &gt;(loc).falsename();
-</pre>
-         <p>and then inserts each character <tt>c</tt> of s into out via
-           <tt>*out++ = c</tt>
-         and returns <tt>out</tt>.</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-This fixes a couple of obvious typos, and also fixes what appears to
-be a requirement of gratuitous inefficiency.
-</p>
-
-
-
-
-<hr>
-<h3><a name="360"></a>360. locale mandates inefficient implementation</h3>
-<p><b>Section:</b> 22.3.1 [locale] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale">issues</a> in [locale].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.1.1, p7 (copied below) allows iostream formatters and extractors
-to make assumptions about the values returned from facet members.
-However, such assumptions are apparently not guaranteed to hold
-in other cases (e.g., when the facet members are being called directly
-rather than as a result of iostream calls, or between successive
-calls to the same iostream functions with no interevening calls to
-<tt>imbue()</tt>, or even when the facet member functions are called
-from other member functions of other facets). This restriction
-prevents locale from being implemented efficiently.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the first sentence in 22.1.1, p7 from</p>
-<blockquote><p>
-    In successive calls to a locale facet member function during
-    a call to an iostream inserter or extractor or a streambuf member
-    function, the returned result shall be identical. [Note: This
-    implies that such results may safely be reused without calling
-    the locale facet member function again, and that member functions
-    of iostream classes cannot safely call <tt>imbue()</tt>
-    themselves, except as specified elsewhere. --end note]
-</p></blockquote>
-
-<p>to</p>
-
-<blockquote><p>
-    In successive calls to a locale facet member function on a facet
-    object installed in the same locale, the returned result shall be
-    identical. ...
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>This change is reasonable becuase it clarifies the intent of this
-  part of the standard.</p>
-
-
-
-
-
-<hr>
-<h3><a name="362"></a>362. bind1st/bind2nd type safety</h3>
-<p><b>Section:</b> X [depr.lib.binders] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andrew Demkin <b>Opened:</b> 2002-04-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.lib.binders">issues</a> in [depr.lib.binders].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The definition of bind1st() (X [depr.lib.binders]) can result in
-the construction of an unsafe binding between incompatible pointer
-types. For example, given a function whose first parameter type is
-'pointer to T', it's possible without error to bind an argument of
-type 'pointer to U' when U does not derive from T:
-</p>
-<pre>
-   foo(T*, int);
-
-   struct T {};
-   struct U {};
-
-   U u;
-
-   int* p;
-   int* q;
-
-   for_each(p, q, bind1st(ptr_fun(foo), &amp;u));    // unsafe binding
-</pre>
-
-<p>
-The definition of bind1st() includes a functional-style conversion to
-map its argument to the expected argument type of the bound function
-(see below):
-</p>
-<pre>
-  typename Operation::first_argument_type(x)
-</pre>
-
-<p>
-A functional-style conversion (X [depr.lib.binders]) is defined to be
-semantically equivalent to an explicit cast expression (X [depr.lib.binders]), which may (according to 5.4, paragraph 5) be interpreted
-as a reinterpret_cast, thus masking the error.
-</p>
-
-<p>The problem and proposed change also apply to X [depr.lib.binders].</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add this sentence to the end of X [depr.lib.binders]/1:
-  "Binders <tt>bind1st</tt> and <tt>bind2nd</tt> are deprecated in
-  favor of <tt>std::tr1::bind</tt>."</p>
-
-<p>(Notes to editor: (1) when and if tr1::bind is incorporated into
-  the standard, "std::tr1::bind" should be changed to "std::bind". (2)
-  20.5.6 should probably be moved to Annex D.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>There is no point in fixing bind1st and bind2nd.  tr1::bind is a
-  superior solution.  It solves this problem and others.</p>
-
-
-
-
-
-<hr>
-<h3><a name="363"></a>363. Missing exception specification in 27.4.2.1.1</h3>
-<p><b>Section:</b> 27.5.3.1.1 [ios::failure] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown and Marc Paterno <b>Opened:</b> 2002-05-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios::failure">issues</a> in [ios::failure].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The destructor of ios_base::failure should have an empty throw
-specification, because the destructor of its base class, exception, is
-declared in this way.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the destructor to</p>
-<pre>
-  virtual ~failure() throw();
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>Fixes an obvious glitch.  This is almost editorial.</p>
-
-
-
-
-
-<hr>
-<h3><a name="364"></a>364. Inconsistent wording in 27.5.2.4.2</h3>
-<p><b>Section:</b> 27.6.3.4.2 [streambuf.virt.buffer] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown, Marc Paterno <b>Opened:</b> 2002-05-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#streambuf.virt.buffer">issues</a> in [streambuf.virt.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-27.6.3.4.2 [streambuf.virt.buffer] paragraph 1 is inconsistent with the Effects
-clause for seekoff.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Make this paragraph, the Effects clause for setbuf, consistent in wording
-with the Effects clause for seekoff in paragraph 3 by amending paragraph 1
-to indicate the purpose of setbuf:
-</p>
-
-<p>Original text:</p>
-
-<blockquote><p>
-1 Effects: Performs an operation that is defined separately for each
-class derived from basic_streambuf in this clause (27.7.1.3, 27.8.1.4).
-</p></blockquote>
-
-<p>Proposed text:</p>
-
-<blockquote><p>
-1 Effects: Influences stream buffering in a way that is defined separately
-for each class derived from basic_streambuf in this clause
-(27.7.1.3, 27.8.1.4).
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG doesn't believe there is any normative difference between
-  the existing wording and what's in the proposed resolution, but the
-  change may make the intent clearer.</p>
-
-
-
-
-
-<hr>
-<h3><a name="365"></a>365. Lack of const-qualification in clause 27</h3>
-<p><b>Section:</b> 27 [input.output] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown, Marc Paterno <b>Opened:</b> 2002-05-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#input.output">issues</a> in [input.output].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Some stream and streambuf member functions are declared non-const,
-even thought they appear only to report information rather than to
-change an object's logical state.  They should be declared const.  See
-document N1360 for details and rationale.
-</p>
-
-<p>The list of member functions under discussion: <tt>in_avail</tt>,
-<tt>showmanyc</tt>, <tt>tellg</tt>, <tt>tellp</tt>, <tt>is_open</tt>.</p>
-
-<p>Related issue: <a href="lwg-closed.html#73">73</a></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.8.1.5, 27.8.1.7, 27.8.1.8, 27.8.1.10, 27.8.1.11, and 27.8.1.13</p>
-<p>Replace</p>
-<pre>
-  bool is_open();
-</pre>
-<p>with</p>
-<pre>
-  bool is_open() const;
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>Of the changes proposed in N1360, the only one that is safe is
-changing the filestreams' is_open to const.  The LWG believed that
-this was NAD the first time it considered this issue (issue <a href="lwg-closed.html#73">73</a>), but now thinks otherwise.  The corresponding streambuf
-member function, after all,is already const.</p>
-
-<p>The other proposed changes are less safe, because some streambuf
-functions that appear merely to report a value do actually perform
-mutating operations.  It's not even clear that they should be
-considered "logically const", because streambuf has two interfaces, a
-public one and a protected one.  These functions may, and often do,
-change the state as exposed by the protected interface, even if the
-state exposed by the public interface is unchanged.</p>
-
-<p>Note that implementers can make this change in a binary compatible
-way by providing both overloads; this would be a conforming extension.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="369"></a>369. io stream objects and static ctors</h3>
-<p><b>Section:</b> 27.4 [iostream.objects] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ruslan Abdikeev <b>Opened:</b> 2002-07-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.objects">issues</a> in [iostream.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Is it safe to use standard iostream objects from constructors of
-static objects?  Are standard iostream objects constructed and are
-their associations established at that time?
-</p>
-
-<p>Surpisingly enough, Standard does NOT require that.</p>
-
-<p>
-27.3/2 [lib.iostream.objects] guarantees that standard iostream
-objects are constructed and their associations are established before
-the body of main() begins execution.  It also refers to ios_base::Init
-class as the panacea for constructors of static objects.
-</p>
-
-<p>
-However, there's nothing in 27.3 [lib.iostream.objects],
-in 27.4.2 [lib.ios.base], and in 27.4.2.1.6 [lib.ios::Init],
-that would require implementations to allow access to standard
-iostream objects from constructors of static objects.
-</p>
-
-<p>Details:</p>
-
-<p>Core text refers to some magic object ios_base::Init, which will
-be discussed below:</p>
-
-<blockquote><p>
-    "The [standard iostream] objects are constructed, and their
-    associations are established at some time prior to or during
-    first time an object of class basic_ios&lt;charT,traits&gt;::Init
-    is constructed, and in any case before the body of main
-    begins execution." (27.3/2 [lib.iostream.objects])
-</p></blockquote>
-
-<p>
-The first <i>non-normative</i> footnote encourages implementations
-to initialize standard iostream objects earlier than required.
-</p>
-
-<p>However, the second <i>non-normative</i> footnote makes an explicit
-and unsupported claim:</p>
-
-<blockquote><p>
-  "Constructors and destructors for static objects can access these
-  [standard iostream] objects to read input from stdin or write output
-  to stdout or stderr." (27.3/2 footnote 265 [lib.iostream.objects])
-</p></blockquote>
-
-<p>
-The only bit of magic is related to that ios_base::Init class.  AFAIK,
-the rationale behind ios_base::Init was to bring an instance of this
-class to each translation unit which #included &lt;iostream&gt; or
-related header.  Such an inclusion would support the claim of footnote
-quoted above, because in order to use some standard iostream object it
-is necessary to #include &lt;iostream&gt;.
-</p>
-
-<p>
-However, while Standard explicitly describes ios_base::Init as
-an appropriate class for doing the trick, I failed to found a
-mention of an _instance_ of ios_base::Init in Standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add to 27.4 [iostream.objects], p2, immediately before the last sentence
-of the paragraph, the following two sentences:</p>
-
-<blockquote><p>
-If a translation unit includes &lt;iostream&gt;, or explicitly
-constructs an ios_base::Init object, these stream objects shall
-be constructed before dynamic initialization of non-local
-objects defined later in that translation unit, and these stream
-objects shall be destroyed after the destruction of dynamically
-initialized non-local objects defined later in that translation unit.
-</p></blockquote>
-
-<p><i>[Lillehammer: Matt provided wording.]</i></p>
-
-<p><i>[Mont Tremblant: Matt provided revised wording.]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The original proposed resolution unconditionally required
-implementations to define an ios_base::Init object of some
-implementation-defined name in the header &lt;iostream>. That's an
-overspecification. First, defining the object may be unnecessary
-and even detrimental to performance if an implementation can
-guarantee that the 8 standard iostream objects will be initialized
-before any other user-defined object in a program. Second, there
-is no need to require implementations to document the name of the
-object.</p>
-
-<p>
-The new proposed resolution gives users guidance on what they need to
-do to ensure that stream objects are constructed during startup.</p>
-
-
-
-
-
-<hr>
-<h3><a name="370"></a>370. Minor error in basic_istream::get</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2002-07-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Defect report for description of basic_istream::get (section 27.7.2.3 [istream.unformatted]), paragraph 15. The description for the get function
-with the following signature:</p>
-
-<pre>
-  basic_istream&lt;charT,traits&gt;&amp; get(basic_streambuf&lt;char_type,traits&gt;&amp;
-  sb);
-</pre>
-
-<p>is incorrect. It reads</p>
-
-<blockquote><p>
-  Effects: Calls get(s,n,widen('\n'))
-</p></blockquote>
-
-<p>which I believe should be:</p>
-
-<blockquote><p>
-  Effects: Calls get(sb,widen('\n'))
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the <b>Effects</b> paragraph to:</p>
-<blockquote><p>
-  Effects: Calls get(sb,this->widen('\n'))
-</p></blockquote>
-
-<p><i>[Pre-Oxford: Minor correction from Howard: replaced 'widen' 
-      with 'this->widen'.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p><p>Fixes an obvious typo.</p>
-
-
-
-
-<hr>
-<h3><a name="371"></a>371. Stability of multiset and multimap member functions</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Frank Compagner <b>Opened:</b> 2002-07-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements for multiset and multimap containers (23.1
-[lib.containers.requirements], 23.1.2 [lib.associative.reqmnts],
-23.3.2 [lib.multimap] and 23.3.4 [lib.multiset]) make no mention of
-the stability of the required (mutating) member functions. It appears
-the standard allows these functions to reorder equivalent elements of
-the container at will, yet the pervasive red-black tree implementation
-appears to provide stable behaviour.
-</p>
-
-<p>This is of most concern when considering the behaviour of erase().
-A stability requirement would guarantee the correct working of the
-following 'idiom' that removes elements based on a certain predicate
-function.
-</p>
-
-<pre>
-  multimap&lt;int, int&gt; m;
-  multimap&lt;int, int&gt;::iterator i = m.begin();
-  while (i != m.end()) {
-      if (pred(i))
-          m.erase (i++);
-      else
-          ++i;
-  }
-</pre>
-
-<p>
-Although clause 23.1.2/8 guarantees that i remains a valid iterator
-througout this loop, absence of the stability requirement could
-potentially result in elements being skipped. This would make
-this code incorrect, and, furthermore, means that there is no way
-of erasing these elements without iterating first over the entire
-container, and second over the elements to be erased. This would
-be unfortunate, and have a negative impact on both performance and
-code simplicity.
-</p>
-
-<p>
-If the stability requirement is intended, it should be made explicit
-(probably through an extra paragraph in clause 23.1.2).
-</p>
-<p>
-If it turns out stability cannot be guaranteed, i'd argue that a
-remark or footnote is called for (also somewhere in clause 23.1.2) to
-warn against relying on stable behaviour (as demonstrated by the code
-above).  If most implementations will display stable behaviour, any
-problems emerging on an implementation without stable behaviour will
-be hard to track down by users. This would also make the need for an
-erase_if() member function that much greater.
-</p>
-
-<p>This issue is somewhat related to LWG issue <a href="lwg-defects.html#130">130</a>.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add the following to the end of 23.2.4 [associative.reqmts] paragraph 4: 
-"For <tt>multiset</tt> and <tt>multimap</tt>, <tt>insert</tt>and <tt>erase</tt>
-  are <i>stable</i>: they preserve the relative ordering of equivalent
-  elements.</p> 
-
-<p><i>[Lillehammer: Matt provided wording]</i></p>
-
-<p><i>[Joe Gottman points out that the provided wording does not address
-multimap and multiset.  N1780 also addresses this issue and suggests
-wording.]</i></p>
-
-
-<p><i>[Mont Tremblant: Changed set and map to multiset and multimap.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG agrees that this guarantee is necessary for common user
-  idioms to work, and that all existing implementations provide this
-  property.  Note that this resolution guarantees stability for
-  multimap and multiset, not for all associative containers in
-  general.</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="373"></a>373. Are basic_istream and basic_ostream to use (exceptions()&amp;badbit) != 0 ?</h3>
-<p><b>Section:</b> 27.7.2.2.1 [istream.formatted.reqmts], 27.7.3.6.1 [ostream.formatted.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Keith Baker <b>Opened:</b> 2002-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.reqmts">issues</a> in [istream.formatted.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In 27.7.2.2.1 [istream.formatted.reqmts] and 27.7.3.6.1 [ostream.formatted.reqmts]
-(exception()&amp;badbit) != 0 is used in testing for rethrow, yet
-exception() is the constructor to class std::exception in 18.7.1 [type.info] that has no return type. Should member function
-exceptions() found in 27.5.5 [ios] be used instead?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.7.2.2.1 [istream.formatted.reqmts] and 27.7.3.6.1 [ostream.formatted.reqmts], change
-"(exception()&amp;badbit) != 0" to "(exceptions()&amp;badbit) != 0".
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>Fixes an obvious typo.</p>
-
-
-
-
-
-<hr>
-<h3><a name="375"></a>375. basic_ios should be ios_base in 27.7.1.3</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2002-08-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Section 27.8.2.4 [stringbuf.virtuals]: Table 90, Table 91, and paragraph
-14 all contain references to "basic_ios::" which should be
-"ios_base::".
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change all references to "basic_ios" in Table 90, Table 91, and
-paragraph 14 to "ios_base".
-</p>
-
-
-<p><b>Rationale:</b></p><p>Fixes an obvious typo.</p>
-
-
-
-
-<hr>
-<h3><a name="376"></a>376. basic_streambuf semantics</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2002-08-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Section 27.8.2.4 [stringbuf.virtuals], Table 90, the implication is that
-the four conditions should be mutually exclusive, but they are not.
-The first two cases, as written, are subcases of the third.</p>
-
-<p>
-As written, it is unclear what should be the result if cases 1 and 2
-are both true, but case 3 is false.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Rewrite these conditions as:</p>
-<blockquote>
-<p>
-  (which &amp; (ios_base::in|ios_base::out)) == ios_base::in
-</p>
-
-<p>
-  (which &amp; (ios_base::in|ios_base::out)) == ios_base::out
-</p>
-
-<p>
-  (which &amp; (ios_base::in|ios_base::out)) == 
-(ios_base::in|ios_base::out)
-   and way == either ios_base::beg or ios_base::end
-</p>
-
-<p>Otherwise</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>It's clear what we wanted to say, we just failed to say it.  This
-  fixes it.</p>
-
-
-
-
-
-<hr>
-<h3><a name="379"></a>379. nonsensical ctype::do_widen() requirement</h3>
-<p><b>Section:</b> 22.4.1.1.2 [locale.ctype.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.ctype.virtuals">issues</a> in [locale.ctype.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The last sentence in 22.2.1.1.2, p11 below doesn't seem to make sense.
-</p>
-<pre>
-  charT do_widen (char c) const;
-
-  -11- Effects: Applies the simplest reasonable transformation from
-       a char value or sequence of char values to the corresponding
-       charT value or values. The only characters for which unique
-       transformations are required are those in the basic source
-       character set (2.2). For any named ctype category with a
-       ctype&lt;charT> facet ctw and valid ctype_base::mask value
-       M (is(M, c) || !ctw.is(M, do_widen(c))) is true.
-</pre>
-<p>
-Shouldn't the last sentence instead read
-</p>
-<pre>
-       For any named ctype category with a ctype&lt;char> facet ctc
-       and valid ctype_base::mask value M
-       (ctc.is(M, c) || !is(M, do_widen(c))) is true.
-</pre>
-<p>
-I.e., if the narrow character c is not a member of a class of
-characters then neither is the widened form of c. (To paraphrase
-footnote 224.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace the last sentence of 22.4.1.1.2 [locale.ctype.virtuals], p11 with the
-following text:
-</p>
-<pre>
-       For any named ctype category with a ctype&lt;char> facet ctc
-       and valid ctype_base::mask value M,
-       (ctc.is(M, c) || !is(M, do_widen(c))) is true.
-</pre>
-
-<p><i>[Kona: Minor edit. Added a comma after the <i>M</i> for clarity.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes this is just a typo, and that this is the correct fix.</p>
-
-
-
-
-
-<hr>
-<h3><a name="380"></a>380. typos in codecvt tables 53 and 54</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Tables 53 and 54 in 22.4.1.5 [locale.codecvt.byname] are both titled "convert
-result values," when surely "do_in/do_out result values" must have
-been intended for Table 53 and "do_unshift result values" for Table
-54.
-</p>
-<p>
-Table 54, row 3 says that the meaning of partial is "more characters
-needed to be supplied to complete termination." The function is not
-supplied any characters, it is given a buffer which it fills with
-characters or, more precisely, destination elements (i.e., an escape
-sequence). So partial means that space for more than (to_limit - to)
-destination elements was needed to terminate a sequence given the
-value of state.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the title of Table 53 to "do_in/do_out result values" and
-the title of Table 54 to "do_unshift result values."
-</p>
-<p>
-Change the text in Table 54, row 3 (the <b>partial</b> row), under the
-heading Meaning, to "space for more than (to_limit - to) destination
-elements was needed to terminate a sequence given the value of state."
-</p>
-
-
-
-
-<hr>
-<h3><a name="381"></a>381. detection of invalid mbstate_t in codecvt</h3>
-<p><b>Section:</b> 22.4.1.5 [locale.codecvt.byname] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2002-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.byname">issues</a> in [locale.codecvt.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-All but one codecvt member functions that take a state_type argument
-list as one of their preconditions that the state_type argument have
-a valid value. However, according to 22.2.1.5.2, p6,
-codecvt::do_unshift() is the only codecvt member that is supposed to
-return error if the state_type object is invalid.
-</p>
-
-<p>
-It seems to me that the treatment of state_type by all codecvt member
-functions should be the same and the current requirements should be
-changed. Since the detection of invalid state_type values may be
-difficult in general or computationally expensive in some specific
-cases, I propose the following:
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new paragraph before 22.2.1.5.2, p5, and after the function
-declaration below
-</p>
-<pre>
-    result do_unshift(stateT&amp; state,
-    externT* to, externT* to_limit, externT*&amp; to_next) const;
-</pre>
-<p>
-as follows:
-</p>
-<pre>
-    Requires: (to &lt;= to_end) well defined and true; state initialized,
-    if at the beginning of a sequence, or else equal to the result of
-    converting the preceding characters in the sequence.
-</pre>
-<p>
-and change the text in Table 54, row 4, the <b>error</b> row, under
-the heading Meaning, from
-</p>
-<pre>
-    state has invalid value
-</pre>
-<p>
-to
-</p>
-<pre>
-    an unspecified error has occurred
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>The intent is that implementations should not be required to detect
-invalid state values; such a requirement appears nowhere else.  An
-invalid state value is a precondition violation, <i>i.e.</i> undefined
-behavior.  Implementations that do choose to detect invalid state
-values, or that choose to detect any other kind of error, may return
-<b>error</b> as an indication.</p>
-
-
-
-
-
-<hr>
-<h3><a name="383"></a>383. Bidirectional iterator assertion typo</h3>
-<p><b>Section:</b> 24.2.6 [bidirectional.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> ysapir (submitted via comp.std.c++) <b>Opened:</b> 2002-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bidirectional.iterators">issues</a> in [bidirectional.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Following a discussion on the boost list regarding end iterators and
-the possibility of performing operator--() on them, it seems to me
-that there is a typo in the standard.  This typo has nothing to do
-with that discussion.
-</p>
-
-<p>
-I have checked this newsgroup, as well as attempted a search of the
-Active/Defect/Closed Issues List on the site for the words "s is
-derefer" so I believe this has not been proposed before.  Furthermore,
-the "Lists by Index" mentions only DR <a href="lwg-closed.html#299">299</a> on section
-24.1.4, and DR <a href="lwg-closed.html#299">299</a> is not related to this issue.
-</p>
-
-<p>
-The standard makes the following assertion on bidirectional iterators,
-in section 24.1.4 [lib.bidirectional.iterators], Table 75:
-</p>
-
-<pre>
-                         operational  assertion/note
-expression  return type   semantics    pre/post-condition
-
---r          X&amp;                        pre: there exists s such
-                                       that r == ++s.
-                                       post: s is dereferenceable.
-                                       --(++r) == r.
-                                       --r == --s implies r == s.
-                                       &amp;r == &amp;--r.
-</pre>
-
-<p>
-(See <a href="http://lists.boost.org/Archives/boost/2002/10/37636.php">http://lists.boost.org/Archives/boost/2002/10/37636.php</a>.)
-</p>
-
-<p>
-In particular, "s is dereferenceable" seems to be in error.  It seems
-that the intention was to say "r is dereferenceable".
-</p>
-
-<p>
-If it were to say "r is dereferenceable" it would
-make perfect sense.  Since s must be dereferenceable prior to
-operator++, then the natural result of operator-- (to undo operator++)
-would be to make r dereferenceable.  Furthermore, without other
-assertions, and basing only on precondition and postconditions, we
-could not otherwise know this.  So it is also interesting information.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the guarantee to "postcondition: r is dereferenceable."
-</p>
-
-
-<p><b>Rationale:</b></p><p>Fixes an obvious typo</p>
-
-
-
-
-<hr>
-<h3><a name="384"></a>384. equal_range has unimplementable runtime complexity</h3>
-<p><b>Section:</b> 25.4.3.3 [equal.range] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Hans Bos <b>Opened:</b> 2002-10-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#equal.range">issues</a> in [equal.range].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 25.4.3.3 [equal.range]
-states that at most 2 * log(last - first) + 1
-comparisons are allowed for equal_range.
-</p>
-
-<p>It is not possible to implement equal_range with these constraints.</p>
-
-<p>In a range of one element as in:</p>
-<pre>
-    int x = 1;
-    equal_range(&amp;x, &amp;x + 1, 1)
-</pre>
-
-<p>it is easy to see that at least 2 comparison operations are needed.</p>
-
-<p>For this case at most 2 * log(1) + 1 = 1 comparison is allowed.</p>
-
-<p>I have checked a few libraries and they all use the same (nonconforming)
-algorithm for equal_range that has a complexity of</p>
-<pre>
-     2* log(distance(first, last)) + 2.
-</pre>
-<p>I guess this is the algorithm that the standard assumes for equal_range.</p>
-
-<p>
-It is easy to see that 2 * log(distance) + 2 comparisons are enough
-since equal range can be implemented with lower_bound and upper_bound
-(both log(distance) + 1).
-</p>
-
-<p>
-I think it is better to require something like 2log(distance) + O(1)  (or
-even logarithmic as multiset::equal_range).
-Then an implementation has more room to optimize for certain cases (e.g.
-have log(distance) characteristics when at most match is found in the range
-but 2log(distance) + 4 for the worst case).
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 25.4.3.1 [lower.bound]/4, change <tt>log(last - first) + 1</tt>
-to <tt>log<sub>2</sub>(last - first) + <i>O</i>(1)</tt>.</p>
-
-<p>In 25.4.3.2 [upper.bound]/4, change <tt>log(last - first) + 1</tt>
-to <tt>log<sub>2</sub>(last - first) + <i>O</i>(1)</tt>.</p>
-
-<p>In 25.4.3.3 [equal.range]/4, change <tt>2*log(last - first) + 1</tt>
-to <tt>2*log<sub>2</sub>(last - first) + <i>O</i>(1)</tt>.</p>
-
-<p><i>[Matt provided wording]</i></p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG considered just saying <i>O</i>(log n) for all three, but
-  decided that threw away too much valuable information.  The fact
-  that lower_bound is twice as fast as equal_range is important.
-  However, it's better to allow an arbitrary additive constant than to
-  specify an exact count.  An exact count would have to
-  involve <tt>floor</tt> or <tt>ceil</tt>.  It would be too easy to
-  get this wrong, and don't provide any substantial value for users.</p>
-
-
-
-
-<hr>
-<h3><a name="386"></a>386. Reverse iterator's operator[] has impossible return type</h3>
-<p><b>Section:</b> 24.5.1.3.11 [reverse.iter.op-=] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2002-10-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In 24.5.1.3.11 [reverse.iter.op-=], <tt>reverse_iterator&lt;&gt;::operator[]</tt> 
-is specified as having a return type of <tt>reverse_iterator::reference</tt>,
-which is the same as <tt>iterator_traits&lt;Iterator&gt;::reference</tt>.
-(Where <tt>Iterator</tt> is the underlying iterator type.)</p>
-
-<p>The trouble is that <tt>Iterator</tt>'s own operator[] doesn't
-  necessarily have a return type
-  of <tt>iterator_traits&lt;Iterator&gt;::reference</tt>.   Its
-  return type is merely required to be convertible
-  to <tt>Iterator</tt>'s value type.  The return type specified for
-  reverse_iterator's operator[] would thus appear to be impossible.</p>
-
-<p>With the resolution of issue <a href="lwg-closed.html#299">299</a>, the type of
-  <tt>a[n]</tt> will continue to be required (for random access
-  iterators) to be convertible to the value type, and also <tt>a[n] =
-  t</tt> will be a valid expression.  Implementations of
-  <tt>reverse_iterator</tt> will likely need to return a proxy from
-  <tt>operator[]</tt> to meet these requirements. As mentioned in the
-  comment from Dave Abrahams, the simplest way to specify that
-  <tt>reverse_iterator</tt> meet this requirement to just mandate
-  it and leave the return type of <tt>operator[]</tt> unspecified.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>In 24.5.1.2 [reverse.iter.requirements] change:</p>
-
-<blockquote>
-<pre>
-reference operator[](difference_type n) const;
-</pre>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<pre>
-<b><i>unspecified</i></b> operator[](difference_type n) const; // see 24.2.7 [random.access.iterators]
-</pre>
-</blockquote>
-
-
-
-
-<p><i>[
-Comments from Dave Abrahams: IMO we should resolve 386 by just saying
-    that the return type of reverse_iterator's operator[] is
-    unspecified, allowing the random access iterator requirements to
-    impose an appropriate return type.  If we accept 299's proposed
-    resolution (and I think we should), the return type will be
-    readable and writable, which is about as good as we can do.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="387"></a>387. <tt>std::complex</tt> over-encapsulated</h3>
-<p><b>Section:</b> 26.4 [complex.numbers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 2002-11-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#complex.numbers">active issues</a> in [complex.numbers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.numbers">issues</a> in [complex.numbers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The absence of explicit description of <tt>std::complex&lt;T&gt;</tt> layout
-makes it imposible to reuse existing software developed in traditional
-languages like Fortran or C with unambigous and commonly accepted
-layout assumptions.  There ought to be a way for practitioners to
-predict with confidence the layout of <tt>std::complex&lt;T&gt;</tt> whenever <tt>T</tt>
-is a numerical datatype.  The absence of ways to access individual
-parts of a <tt>std::complex&lt;T&gt;</tt> object as lvalues unduly promotes
-severe pessimizations. For example, the only way to change,
-independently, the real and imaginary parts is to write something like
-</p>
-
-<pre>
-complex&lt;T&gt; z;
-// ...
-// set the real part to r
-z = complex&lt;T&gt;(r, z.imag());
-// ...
-// set the imaginary part to i
-z = complex&lt;T&gt;(z.real(), i);
-</pre>
-
-<p>
-At this point, it seems appropriate to recall that a complex number
-is, in effect, just a pair of numbers with no particular invariant to
-maintain.  Existing practice in numerical computations has it that a
-complex number datatype is usually represented by Cartesian
-coordinates. Therefore the over-encapsulation put in the specification
-of <tt>std::complex&lt;&gt;</tt> is not justified.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following requirements to 26.4 [complex.numbers] as 26.3/4:</p>
-<blockquote>
-<p>If <tt>z</tt> is an lvalue expression of type <i>cv</i> <tt>std::complex&lt;T&gt;</tt> then</p>
-
-<ul>
-<li>the expression <tt>reinterpret_cast&lt;cv T(&amp;)[2]&gt;(z)</tt>
-is well-formed; and</li>
-<li><tt>reinterpret_cast&lt;cv T(&amp;)[2]&gt;(z)[0]</tt> designates the
-real part of <tt>z</tt>; and</li>
-<li><tt>reinterpret_cast&lt;cv T(&amp;)[2]&gt;(z)[1]</tt> designates the
-imaginary part of <tt>z</tt>.</li>
-</ul>
-
-<p>
-Moreover, if <tt>a</tt> is an expression of pointer type <i>cv</i> <tt>complex&lt;T&gt;*</tt>
-and the expression <tt>a[i]</tt> is well-defined for an integer expression
-<tt>i</tt> then:
-</p>
-
-<ul>
-<li><tt>reinterpret_cast&lt;cv T*&gt;(a)[2*i]</tt> designates the real
-part of <tt>a[i]</tt>; and</li>
-<li><tt>reinterpret_cast&lt;cv T*&gt;(a)[2*i+1]</tt> designates the
-imaginary part of <tt>a[i]</tt>.</li>
-</ul>
-</blockquote>
-
-<p>
-In 26.4.2 [complex] and 26.4.3 [complex.special] add the following member functions
-(changing <tt>T</tt> to concrete types as appropriate for the specializations).
-</p>
-
-<blockquote><pre>
-void real(T);
-void imag(T);
-</pre></blockquote>
-
-<p>
-Add to 26.4.4 [complex.members]
-</p>
-
-<blockquote>
-<pre>
-T real() const;
-</pre>
-<blockquote><p>
-<i>Returns:</i> the value of the real component
-</p></blockquote>
-<pre>
-void real(T val);
-</pre>
-<blockquote><p>
-Assigns <tt>val</tt> to the real component.
-</p></blockquote>
-<pre>
-T imag() const;
-</pre>
-<blockquote><p>
-<i>Returns:</i> the value of the imaginary component
-</p></blockquote>
-<pre>
-void imag(T val);
-</pre>
-<blockquote><p>
-Assigns <tt>val</tt> to the imaginary component.
-</p></blockquote>
-</blockquote>
-
-<p><i>[Kona: The layout guarantee is absolutely necessary for C
-  compatibility.  However, there was disagreement about the other part
-  of this proposal: retrieving elements of the complex number as
-  lvalues.  An alternative: continue to have <tt>real()</tt> and <tt>imag()</tt> return
-  rvalues, but add <tt>set_real()</tt> and <tt>set_imag()</tt>.  Straw poll: return
-  lvalues - 2, add setter functions - 5.  Related issue: do we want
-  reinterpret_cast as the interface for converting a complex to an
-  array of two reals, or do we want to provide a more explicit way of
-  doing it?  Howard will try to resolve this issue for the next
-  meeting.]</i></p>
-
-
-<p><i>[pre-Sydney: Howard summarized the options in n1589.]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Second half of proposed wording replaced and moved to Ready.
-</p></blockquote>
-
-<p><i>[
-Pre-Sophia Antipolis, Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Added the members to 26.4.3 [complex.special] and changed from Ready to Review.
-</p></blockquote>
-
-<p><i>[
-Post-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Moved from WP back to Ready so that the "and 26.4.3 [complex.special]" in the proposed
-resolution can be officially applied.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes that C99 compatibility would be enough
-justification for this change even without other considerations.  All
-existing implementations already have the layout proposed here.</p>
-
-
-
-
-
-<hr>
-<h3><a name="389"></a>389. Const overload of valarray::operator[] returns by value</h3>
-<p><b>Section:</b> 26.6.2.4 [valarray.access] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 2002-11-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.access">issues</a> in [valarray.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#77">77</a></p>
-<p><b>Discussion:</b></p>
-<p>Consider the following program:</p>
-<pre>
-    #include &lt;iostream&gt;
-    #include &lt;ostream&gt;
-    #include &lt;vector&gt;
-    #include &lt;valarray&gt;
-    #include &lt;algorithm&gt;
-    #include &lt;iterator&gt;
-    template&lt;typename Array&gt;
-    void print(const Array&amp; a)
-    {
-    using namespace std;
-    typedef typename Array::value_type T;
-    copy(&amp;a[0], &amp;a[0] + a.size(),
-    ostream_iterator&lt;T&gt;(std::cout, " "));
-    }
-    template&lt;typename T, unsigned N&gt;
-    unsigned size(T(&amp;)[N]) { return N; }
-    int main()
-    {
-    double array[] = { 0.89, 9.3, 7, 6.23 };
-    std::vector&lt;double&gt; v(array, array + size(array));
-    std::valarray&lt;double&gt; w(array, size(array));
-    print(v); // #1
-    std::cout &lt;&lt; std::endl;
-    print(w); // #2
-    std::cout &lt;&lt; std::endl;
-    }
-</pre>
-
-<p>While the call numbered #1 succeeds, the call numbered #2 fails
-because the const version of the member function
-valarray&lt;T&gt;::operator[](size_t) returns a value instead of a
-const-reference. That seems to be so for no apparent reason, no
-benefit. Not only does that defeats users' expectation but it also
-does hinder existing software (written either in C or Fortran)
-integration within programs written in C++.  There is no reason why
-subscripting an expression of type valarray&lt;T&gt; that is const-qualified
-should not return a const T&amp;.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In the class synopsis in 26.6.2 [template.valarray], and in
-26.6.2.4 [valarray.access] just above paragraph 1, change</p>
-<pre>
-  T operator[](size_t const);
-</pre>
-<p>to</p>
-<pre>
-  const T&amp; operator[](size_t const);
-</pre>
-
-<p><i>[Kona: fixed a minor typo: put semicolon at the end of the line
-  wehre it belongs.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>Return by value seems to serve no purpose.  Valaray was explicitly
-designed to have a specified layout so that it could easily be
-integrated with libraries in other languages, and return by value
-defeats that purpose.  It is believed that this change will have no
-impact on allowable optimizations.</p>
-
-
-
-
-
-<hr>
-<h3><a name="391"></a>391. non-member functions specified as const</h3>
-<p><b>Section:</b> 22.3.3.2 [conversions] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2002-12-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specifications of toupper and tolower both specify the functions as
-const, althought they are not member functions, and are not specified as
-const in the header file synopsis in section 22.3 [locales].
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 22.3.3.2 [conversions], remove <tt>const</tt> from the function
-  declarations of std::toupper and std::tolower</p>
-
-
-<p><b>Rationale:</b></p><p>Fixes an obvious typo</p>
-
-
-
-
-<hr>
-<h3><a name="395"></a>395. inconsistencies in the definitions of rand() and random_shuffle()</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2003-01-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 26.8 [c.math], the C++ standard refers to the C standard for the
-definition of rand(); in the C standard, it is written that "The
-implementation shall behave as if no library function calls the rand
-function."
-</p>
-
-<p>
-In 25.3.12 [alg.random.shuffle], there is no specification as to
-how the two parameter version of the function generates its random
-value.  I believe that all current implementations in fact call rand()
-(in contradiction with the requirement avove); if an implementation does
-not call rand(), there is the question of how whatever random generator
-it does use is seeded.  Something is missing.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In [lib.c.math], add a paragraph specifying that the C definition of
-rand shal be modified to say that "Unless otherwise specified, the
-implementation shall behave as if no library function calls the rand
-function."
-</p>
-
-<p>
-In [lib.alg.random.shuffle], add a sentence to the effect that "In
-the two argument form of the function, the underlying source of
-random numbers is implementation defined. [Note: in particular, an
-implementation is permitted to use <tt>rand</tt>.]
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The original proposed resolution proposed requiring the
-  two-argument from of <tt>random_shuffle</tt> to
-  use <tt>rand</tt>. We don't want to do that, because some existing
-  implementations already use something else: gcc
-  uses <tt>lrand48</tt>, for example.  Using <tt>rand</tt> presents a
-  problem if the number of elements in the sequence is greater than
-  RAND_MAX.</p> 
-
-
-
-
-
-<hr>
-<h3><a name="396"></a>396. what are characters zero and one</h3>
-<p><b>Section:</b> 20.6.1 [bitset.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-01-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.cons">issues</a> in [bitset.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-    <p>
-23.3.5.1, p6 [lib.bitset.cons] talks about a generic character
-having the value of 0 or 1 but there is no definition of what
-that means for charT other than char and wchar_t. And even for
-those two types, the values 0 and 1 are not actually what is
-intended -- the values '0' and '1' are. This, along with the
-converse problem in the description of to_string() in 23.3.5.2,
-p33, looks like a defect remotely related to DR <a href="lwg-defects.html#303">303</a>.
-    </p>
-    <p>
-http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#303
-    </p>
-    <pre>
-23.3.5.1:
-  -6-  An element of the constructed string has value zero if the
-       corresponding character in str, beginning at position pos,
-       is 0. Otherwise, the element has the value one.
-    </pre>
-    <pre>
-23.3.5.2:
-  -33-  Effects: Constructs a string object of the appropriate
-        type and initializes it to a string of length N characters.
-        Each character is determined by the value of its
-        corresponding bit position in *this. Character position N
-        ?- 1 corresponds to bit position zero. Subsequent decreasing
-        character positions correspond to increasing bit positions.
-        Bit value zero becomes the character 0, bit value one becomes
-        the character 1.
-    </pre>
-    <p>
-Also note the typo in 23.3.5.1, p6: the object under construction
-is a bitset, not a string.
-    </p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-We note that <tt>bitset</tt> has been moved from section 23 to section 20, by
-another issue (<a href="lwg-defects.html#842">842</a>) previously resolved at this meeting.
-</p>
-<p>
-Disposition: move to ready.
-</p>
-<p>
-We request that Howard submit a separate issue regarding the three <tt>to_string</tt> overloads.
-</p>
-</blockquote>
-
-  
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the constructor's function declaration immediately before 
-20.6.1 [bitset.cons] p3 to:</p>
-<pre>
-    template &lt;class charT, class traits, class Allocator&gt;
-    explicit
-    bitset(const basic_string&lt;charT, traits, Allocator&gt;&amp; str,
-           typename basic_string&lt;charT, traits, Allocator&gt;::size_type pos = 0,
-           typename basic_string&lt;charT, traits, Allocator&gt;::size_type n =
-             basic_string&lt;charT, traits, Allocator&gt;::npos,
-           charT zero = charT('0'), charT one = charT('1'))
-</pre>
-<p>Change the first two sentences of 20.6.1 [bitset.cons] p6 to: "An
-element of the constructed string has value 0 if the corresponding
-character in <i>str</i>, beginning at position <i>pos</i>,
-is <i>zero</i>. Otherwise, the element has the value 1.</p>
-
-<p>Change the text of the second sentence in 23.3.5.1, p5 to read:
-    "The function then throws invalid_argument if any of the rlen
-    characters in str beginning at position pos is other than <i>zero</i>
-    or <i>one</i>. The function uses traits::eq() to compare the character
-    values."
-</p>
-
-<p>Change the declaration of the <tt>to_string</tt> member function
-  immediately before 20.6.2 [bitset.members] p33 to:</p>
-<pre>
-    template &lt;class charT, class traits, class Allocator&gt;
-    basic_string&lt;charT, traits, Allocator&gt; 
-    to_string(charT zero = charT('0'), charT one = charT('1')) const;
-</pre>
-<p>Change the last sentence of 20.6.2 [bitset.members] p33 to: "Bit
-  value 0 becomes the character <tt><i>zero</i></tt>, bit value 1 becomes the
-  character <tt><i>one</i></tt>.</p>
-<p>Change 20.6.4 [bitset.operators] p8 to:</p>
-<p><b>Returns</b>:</p> 
-<pre>
-  os &lt;&lt; x.template to_string&lt;charT,traits,allocator&lt;charT&gt; &gt;(
-      use_facet&lt;ctype&lt;charT&gt; &gt;(<i>os</i>.getloc()).widen('0'),
-      use_facet&lt;ctype&lt;charT&gt; &gt;(<i>os</i>.getloc()).widen('1'));
-</pre>
-
-
-<p><b>Rationale:</b></p>
-<p>There is a real problem here: we need the character values of '0'
-  and '1', and we have no way to get them since strings don't have
-  imbued locales. In principle the "right" solution would be to
-  provide an extra object, either a ctype facet or a full locale,
-  which would be used to widen '0' and '1'. However, there was some
-  discomfort about using such a heavyweight mechanism.  The proposed
-  resolution allows those users who care about this issue to get it
-  right.</p>
-<p>We fix the inserter to use the new arguments.  Note that we already
-  fixed the analogous problem with the extractor in issue <a href="lwg-defects.html#303">303</a>.</p>
-
-
-
-<p><i>[
-post Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-We are happy with the resolution as proposed, and we move this to Ready.
-</p></blockquote>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-The proposed wording neglects the 3 newer <tt>to_string</tt> overloads.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="400"></a>400. redundant type cast in lib.allocator.members</h3>
-<p><b>Section:</b> 20.7.9.1 [allocator.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Markus Mauhart <b>Opened:</b> 2003-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.members">issues</a> in [allocator.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.7.9.1 [allocator.members] allocator members, contains
-the following 3 lines:
-</p>
-
-<pre>
-  12 Returns: new((void *) p) T( val)
-     void destroy(pointer p);
-  13 Returns: ((T*) p)-&gt;~T()
-</pre>
-
-<p>
-The type cast "(T*) p" in the last line is redundant cause
-we know that std::allocator&lt;T&gt;::pointer is a typedef for T*.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace "((T*) p)" with "p".
-</p>
-
-
-<p><b>Rationale:</b></p><p>Just a typo, this is really editorial.</p>
-
-
-
-
-<hr>
-<h3><a name="401"></a>401.  incorrect type casts in table 32 in lib.allocator.requirements</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Markus Mauhart <b>Opened:</b> 2003-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think that in par2 of  [default.con.req] the last two
-lines of table 32 contain two incorrect type casts. The lines are ...
-</p>
-
-<pre>
-  a.construct(p,t)   Effect: new((void*)p) T(t)
-  a.destroy(p)       Effect: ((T*)p)?-&gt;~T()
-</pre>
-
-<p>
-.... with the prerequisits coming from the preceding two paragraphs, especially
-from table 31:
-</p>
-
-<pre>
-  alloc&lt;T&gt;             a     ;// an allocator for T
-  alloc&lt;T&gt;::pointer    p     ;// random access iterator
-                              // (may be different from T*)
-  alloc&lt;T&gt;::reference  r = *p;// T&amp;
-  T const&amp;             t     ;
-</pre>
-
-<p>
-For that two type casts ("(void*)p" and "(T*)p") to be well-formed
-this would require then conversions to T* and void* for all
-alloc&lt;T&gt;::pointer, so it would implicitely introduce extra
-requirements for alloc&lt;T&gt;::pointer, additionally to the only
-current requirement (being a random access iterator).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Accept proposed wording from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2436.pdf">N2436</a> part 1.
-</p>
-
-<p>
-Note: Actually I would prefer to replace "((T*)p)?-&gt;dtor_name" with
-"p?-&gt;dtor_name", but AFAICS this is not possible cause of an omission
-in 13.5.6 [over.ref] (for which I have filed another DR on 29.11.2002).
-</p>
-
-<p><i>[Kona: The LWG thinks this is somewhere on the border between
-  Open and NAD.  The intend is clear: <tt>construct</tt> constructs an
-  object at the location <i>p</i>.  It's reading too much into the
-  description to think that literally calling <tt>new</tt> is
-  required.  Tweaking this description is low priority until we can do
-  a thorough review of allocators, and, in particular, allocators with
-  non-default pointer types.]</i></p>
-
-
-<p><i>[
-Batavia:  Proposed resolution changed to less code and more description.
-]</i></p>
-
-
-<p><i>[
-post Oxford:  This would be rendered NAD Editorial by acceptance of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2257.html">N2257</a>.
-]</i></p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2387 for this issue which
-was subsequently split out into a separate paper N2436 for the purposes of voting.
-The resolution in N2436 addresses this issue.  The LWG voted to accelerate this
-issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="402"></a>402. wrong new expression in [some_]allocator::construct</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 20.7.9.1 [allocator.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Markus Mauhart <b>Opened:</b> 2003-02-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This applies to the new expression that is contained in both par12 of
-20.7.9.1 [allocator.members] and in par2 (table 32) of  [default.con.req].
-I think this new expression is wrong, involving unintended side
-effects.
-</p>
-
-
-<p>20.7.9.1 [allocator.members]  contains the following 3 lines:</p>
-
-<pre>
-  11 Returns: the largest value N for which the call allocate(N,0) might succeed.
-     void construct(pointer p, const_reference val);
-  12 Returns: new((void *) p) T( val)
-</pre>
-
-
-<p> [default.con.req] in table 32 has the following line:</p>
-<pre>
-  a.construct(p,t)   Effect: new((void*)p) T(t)
-</pre>
-
-<p>
-.... with the prerequisits coming from the preceding two paragraphs,
-especially from table 31:
-</p>
-
-<pre>
-  alloc&lt;T&gt;             a     ;// an allocator for T
-  alloc&lt;T&gt;::pointer    p     ;// random access iterator
-                              // (may be different from T*)
-  alloc&lt;T&gt;::reference  r = *p;// T&amp;
-  T const&amp;             t     ;
-</pre>
-
-<p>
-Cause of using "new" but not "::new", any existing "T::operator new"
-function will hide the global placement new function. When there is no
-"T::operator new" with adequate signature,
-every_alloc&lt;T&gt;::construct(..) is ill-formed, and most
-std::container&lt;T,every_alloc&lt;T&gt;&gt; use it; a workaround
-would be adding placement new and delete functions with adequate
-signature and semantic to class T, but class T might come from another
-party. Maybe even worse is the case when T has placement new and
-delete functions with adequate signature but with "unknown" semantic:
-I dont like to speculate about it, but whoever implements
-any_container&lt;T,any_alloc&gt; and wants to use construct(..)
-probably must think about it.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace "new" with "::new" in both cases.
-</p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="403"></a>403. basic_string::swap should not throw exceptions</h3>
-<p><b>Section:</b> 21.4.6.8 [string::swap] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2003-03-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::swap">issues</a> in [string::swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-std::basic_string, 21.4 [basic.string] paragraph 2 says that
-basic_string "conforms to the requirements of a Sequence, as specified
-in (23.1.1)." The sequence requirements specified in (23.1.1) to not
-include any prohibition on swap members throwing exceptions.
-</p>
-
-<p>
-Section 23.2 [container.requirements] paragraph 10 does limit conditions under
-which exceptions may be thrown, but applies only to "all container
-types defined in this clause" and so excludes basic_string::swap
-because it is defined elsewhere.
-</p>
-
-<p>
-Eric Niebler points out that 21.4 [basic.string] paragraph 5 explicitly
-permits basic_string::swap to invalidates iterators, which is
-disallowed by 23.2 [container.requirements] paragraph 10. Thus the standard would
-be contradictory if it were read or extended to read as having
-basic_string meet 23.2 [container.requirements] paragraph 10 requirements.
-</p>
-
-<p>
-Yet several LWG members have expressed the belief that the original
-intent was that basic_string::swap should not throw exceptions as
-specified by 23.2 [container.requirements] paragraph 10, and that the standard is
-unclear on this issue. The complexity of basic_string::swap is
-specified as "constant time", indicating the intent was to avoid
-copying (which could cause a bad_alloc or other exception). An
-important use of swap is to ensure that exceptions are not thrown in
-exception-safe code.
-</p>
-
-<p>
-Note: There remains long standing concern over whether or not it is
-possible to reasonably meet the 23.2 [container.requirements] paragraph 10 swap
-requirements when allocators are unequal. The specification of
-basic_string::swap exception requirements is in no way intended to
-address, prejudice, or otherwise impact that concern.
-</p>
-
-
-
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 21.4.6.8 [string::swap], add a throws clause:
-</p>
-
-<p>
-Throws: Shall not throw exceptions.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="404"></a>404. May a replacement allocation function be declared inline?</h3>
-<p><b>Section:</b> 17.6.4.6 [replacement.functions], 18.6.1 [new.delete] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2003-04-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#replacement.functions">issues</a> in [replacement.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The eight basic dynamic memory allocation functions (single-object
-and array versions of ::operator new and ::operator delete, in the
-ordinary and nothrow forms) are replaceable.  A C++ program may
-provide an alternative definition for any of them, which will be used
-in preference to the implementation's definition.  
-</p>
-
-<p>
-Three different parts of the standard mention requirements on
-replacement functions: 17.6.4.6 [replacement.functions], 18.6.1.1 [new.delete.single]
-and 18.6.1.2 [new.delete.array], and 3.7.3 [basic.stc.auto].
-</p>
-
-<p>None of these three places say whether a replacement function may
-  be declared inline.  18.6.1.1 [new.delete.single] paragraph 2 specifies a
-  signature for the replacement function, but that's not enough:
-  the <tt>inline</tt> specifier is not part of a function's signature.
-  One might also reason from 7.1.2 [dcl.fct.spec] paragraph 2, which
-  requires that "an inline function shall be defined in every
-  translation unit in which it is used," but this may not be quite
-  specific enough either.  We should either explicitly allow or
-  explicitly forbid inline replacement memory allocation
-  functions.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new sentence to the end of 17.6.4.6 [replacement.functions] paragraph 3:
-"The program's definitions shall not be specified as <tt>inline</tt>.
-No diagnostic is required."
-</p>
-
-<p><i>[Kona: added "no diagnostic is required"]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The fact that <tt>inline</tt> isn't mentioned appears to have been
-nothing more than an oversight.  Existing implementations do not
-permit inline functions as replacement memory allocation functions.
-Providing this functionality would be difficult in some cases, and is
-believed to be of limited value.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="405"></a>405. qsort and POD</h3>
-<p><b>Section:</b> 25.5 [alg.c.library] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ray Lischner <b>Opened:</b> 2003-04-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.c.library">issues</a> in [alg.c.library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 25.5 [alg.c.library] describes bsearch and qsort, from the C
-standard library. Paragraph 4 does not list any restrictions on qsort,
-but it should limit the base parameter to point to POD.  Presumably,
-qsort sorts the array by copying bytes, which requires POD.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 25.5 [alg.c.library] paragraph 4, just after the declarations and
-before the nonnormative note, add these words: "both of which have the
-same behavior as the original declaration.  The behavior is undefined
-unless the objects in the array pointed to by <i>base</i> are of POD
-type."
-</p>
-
-<p><i>[Something along these lines is clearly necessary.  Matt
-  provided wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="406"></a>406. vector::insert(s) exception safety</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2003-04-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is a possible defect in the standard: the standard text was
-never intended to prevent arbitrary ForwardIterators, whose operations
-may throw exceptions, from being passed, and it also wasn't intended
-to require a temporary buffer in the case where ForwardIterators were
-passed (and I think most implementations don't use one).  As is, the
-standard appears to impose requirements that aren't met by any
-existing implementation.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace 23.3.6.5 [vector.modifiers] paragraph 1 with:</p>
-<blockquote><p>
-  1- Notes: Causes reallocation if the new size is greater than the
-  old capacity. If no reallocation happens, all the iterators and
-  references before the insertion point remain valid. If an exception
-  is thrown other than by the copy constructor or assignment operator
-  of T or by any InputIterator operation there are no effects.
-</p></blockquote>
-
-<p><i>[We probably need to say something similar for deque.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="407"></a>407. Can singular iterators be destroyed?</h3>
-<p><b>Section:</b> X [iterator.concepts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 2003-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.concepts">issues</a> in [iterator.concepts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Clause X [iterator.concepts], paragraph 5, says that the only expression
-that is defined for a singular iterator is "an assignment of a
-non-singular value to an iterator that holds a singular value".  This 
-means that destroying a singular iterator (e.g. letting an automatic
-variable go out of scope) is technically undefined behavior.  This
-seems overly strict, and probably unintentional.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the sentence in question to "... the only exceptions are
-destroying an iterator that holds a singular value, or the assignment
-of a non-singular value to an iterator that holds a singular value."
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="409"></a>409. Closing an fstream should clear error state</h3>
-<p><b>Section:</b> 27.9.1.9 [ifstream.members], 27.9.1.13 [ofstream.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nathan Myers <b>Opened:</b> 2003-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ifstream.members">issues</a> in [ifstream.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A strict reading of 27.9.1 [fstreams] shows that opening or
-closing a basic_[io]fstream does not affect the error bits.  This
-means, for example, that if you read through a file up to EOF, and
-then close the stream and reopen it at the beginning of the file,
-the EOF bit in the stream's error state is still set.  This is
-counterintuitive.
-</p>
-<p>
-The LWG considered this issue once before, as issue <a href="lwg-defects.html#22">22</a>,
-and put in a footnote to clarify that the strict reading was indeed
-correct.  We did that because we believed the standard was
-unambiguous and consistent, and that we should not make architectural
-changes in a TC.  Now that we're working on a new revision of the
-language, those considerations no longer apply.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change 27.9.1.9 [ifstream.members], para. 3 from:</p>
-
-<blockquote><p>
-Calls rdbuf()->open(s,mode|in). If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure [Footnote: (lib.iostate.flags)].
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-Calls rdbuf()->open(s,mode|in). If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure [Footnote: (lib.iostate.flags)), else calls clear().
-</p></blockquote>
-
-<p>Change 27.9.1.13 [ofstream.members], para. 3 from:</p>
-
-<blockquote><p>
-Calls rdbuf()->open(s,mode|out). If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure [Footnote: (lib.iostate.flags)).
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-Calls rdbuf()->open(s,mode|out). If that function returns a null pointer, calls setstate(failbit) (which may throw ios_base::failure [Footnote: (lib.iostate.flags)), else calls clear().
-</p></blockquote>
-
-<p>Change 27.9.1.17 [fstream.members], para. 3 from:</p>
-
-<blockquote><p>
-Calls rdbuf()->open(s,mode), If that function returns a null pointer, calls setstate(failbit), (which may throw ios_base::failure). (lib.iostate.flags) )
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-Calls rdbuf()->open(s,mode), If that function returns a null pointer, calls setstate(failbit), (which may throw ios_base::failure). (lib.iostate.flags) ), else calls clear().
-</p></blockquote>
-
-
-
-<p><i>[Kona: the LWG agrees this is a good idea.  Post-Kona: Bill
-provided wording.  He suggests having open, not close, clear the error
-flags.]</i></p>
-
-
-<p><i>[Post-Sydney: Howard provided a new proposed resolution.  The
-  old one didn't make sense because it proposed to fix this at the
-  level of basic_filebuf, which doesn't have access to the stream's
-  error state.  Howard's proposed resolution fixes this at the level
-  of the three fstream class template instead.]</i></p>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="410"></a>410. Missing semantics for stack and queue comparison operators</h3>
-<p><b>Section:</b> 23.3.5.2 [list.cons], 23.3.5.4 [list.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Hans Bos <b>Opened:</b> 2003-06-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.cons">issues</a> in [list.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Sections 23.3.5.2 [list.cons] and 23.3.5.4 [list.modifiers] list
-comparison operators (==, !=, &lt;, &lt;=, &gt;, =&gt;) for queue and
-stack.  Only the semantics for queue::operator== (23.3.5.2 [list.cons] par2) and queue::operator&lt; (23.3.5.2 [list.cons]
-par3) are defined.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add the following new paragraphs after 23.3.5.2 [list.cons]
-  paragraph 3:</p>
-
-<blockquote>
-
-<pre>
-  operator!=
-</pre>
-<p>Returns: <tt>x.c != y.c</tt></p>
-
-<pre>
-  operator&gt;
-</pre>
-<p>Returns: <tt>x.c &gt; y.c</tt></p>
-
-<pre>
-  operator&lt;=
-</pre>
-<p>Returns: <tt>x.c &lt;= y.c</tt></p>
-
-<pre>
-  operator&gt;=
-</pre>
-<p>Returns: <tt>x.c &gt;= y.c</tt></p>
-
-</blockquote>
-
-<p>Add the following paragraphs at the end of 23.3.5.4 [list.modifiers]:</p>
-
-<blockquote>
-
-<pre>
-  operator==
-</pre>
-<p>Returns: <tt>x.c == y.c</tt></p>
-
-<pre>
-  operator&lt;
-</pre>
-<p>Returns: <tt>x.c &lt; y.c</tt></p>
-
-<pre>
-  operator!=
-</pre>
-<p>Returns: <tt>x.c != y.c</tt></p>
-
-<pre>
-  operator&gt;
-</pre>
-<p>Returns: <tt>x.c &gt; y.c</tt></p>
-
-<pre>
-  operator&lt;=
-</pre>
-<p>Returns: <tt>x.c &lt;= y.c</tt></p>
-
-<pre>
-  operator&gt;=
-</pre>
-<p>Returns: <tt>x.c &gt;= y.c</tt></p>
-
-</blockquote>
-
-
-<p><i>[Kona: Matt provided wording.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>There isn't any real doubt about what these operators are
-supposed to do, but we ought to spell it out.</p>
-
-
-
-
-
-<hr>
-<h3><a name="411"></a>411. Wrong names of set member functions</h3>
-<p><b>Section:</b> 25.4.5 [alg.set.operations] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Frey <b>Opened:</b> 2003-07-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.set.operations">issues</a> in [alg.set.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-25.4.5 [alg.set.operations] paragraph 1 reads:
-"The semantics of the set operations are generalized to multisets in a 
-standard way by defining union() to contain the maximum number of 
-occurrences of every element, intersection() to contain the minimum, and 
-so on."
-</p>
-
-<p>
-This is wrong.  The name of the functions are set_union() and
-set_intersection(), not union() and intersection().
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change that sentence to use the correct names.</p>
-
-
-
-
-
-<hr>
-<h3><a name="412"></a>412. Typo in 27.4.4.3</h3>
-<p><b>Section:</b> 27.5.5.4 [iostate.flags] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-07-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#429">429</a></p>
-<p><b>Discussion:</b></p>
-<p>
-The Effects clause in 27.5.5.4 [iostate.flags] paragraph 5 says that the
-function only throws if the respective bits are already set prior to
-the function call. That's obviously not the intent. The typo ought to
-be corrected and the text reworded as: "If (<i>state</i> &amp;
-exceptions()) == 0, returns. ..."
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.5.5.4 [iostate.flags] paragraph 5, replace "If (rdstate() &amp;
-exceptions()) == 0" with "If ((state | (rdbuf() ? goodbit : badbit))
-&amp; exceptions()) == 0".
-</p>
-
-<p><i>[Kona: the original proposed resolution wasn't quite right.  We
-  really do mean rdstate(); the ambiguity is that the wording in the
-  standard doesn't make it clear whether we mean rdstate() before
-  setting the new state, or rdsate() after setting it.  We intend the
-  latter, of course. Post-Kona: Martin provided wording.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="413"></a>413. Proposed resolution to LDR#64 still wrong</h3>
-<p><b>Section:</b> 27.7.2.2.3 [istream::extractors] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2003-07-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::extractors">issues</a> in [istream::extractors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The second sentence of the proposed resolution says:
-</p>
-
-<p>
-"If it inserted no characters because it caught an exception thrown
-while extracting characters from sb and ..."
-</p>
-
-<p>
-However, we are not extracting from sb, but extracting from the
-basic_istream (*this) and inserting into sb. I can't really tell if
-"extracting" or "sb" is a typo.
-</p>
-
-<p><i>[
-Sydney: Definitely a real issue. We are, indeed, extracting characters
-from an istream and not from sb. The problem was there in the FDIS and
-wasn't fixed by issue <a href="lwg-defects.html#64">64</a>. Probably what was intended was
-to have *this instead of sb. We're talking about the exception flag
-state of a basic_istream object, and there's only one basic_istream
-object in this discussion, so that would be a consistent
-interpretation.  (But we need to be careful: the exception policy of
-this member function must be consistent with that of other
-extractors.)  PJP will provide wording.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the sentence from:</p>
-
-<blockquote><p>
-If it inserted no characters because it caught an exception thrown
-while extracting characters from sb and failbit is on in exceptions(),
-then the caught exception is rethrown.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-If it inserted no characters because it caught an exception thrown
-while extracting characters from *this and failbit is on in exceptions(),
-then the caught exception is rethrown.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="414"></a>414. Which iterators are invalidated by v.erase()?</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2003-08-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following code fragment:
-</p>
-<blockquote>
-<pre>
-int A[8] = { 1,3,5,7,9,8,4,2 };
-std::vector&lt;int&gt; v(A, A+8);
-
-std::vector&lt;int&gt;::iterator i1 = v.begin() + 3;
-std::vector&lt;int&gt;::iterator i2 = v.begin() + 4;
-v.erase(i1);
-</pre>
-</blockquote>
-
-<p>
-Which iterators are invalidated by <tt>v.erase(i1)</tt>: i1, i2,
-both, or neither?
-</p>
-
-<p>
-On all existing implementations that I know of, the status of i1 and
-i2 is the same: both of them will be iterators that point to some
-elements of the vector (albeit not the same elements they did
-before).  You won't get a crash if you use them.  Depending on 
-exactly what you mean by "invalidate", you might say that neither one
-has been invalidated because they still point to <i>something</i>,
-or you might say that both have been invalidated because in both
-cases the elements they point to have been changed out from under the
-iterator.
-</p>
-
-<p>
-The standard doesn't say either of those things.  It says that erase
-invalidates all iterators and references "after the point of the
-erase".  This doesn't include i1, since it's at the point of the
-erase instead of after it.  I can't think of any sensible definition
-of invalidation by which one can say that i2 is invalidated but i1
-isn't.
-</p>
-
-<p>
-(This issue is important if you try to reason about iterator validity
-based only on the guarantees in the standard, rather than reasoning
-from typical implementation techniques.  Strict debugging modes,
-which some programmers find useful, do not use typical implementation
-techniques.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.3.6.5 [vector.modifiers] paragraph 3, change "Invalidates all the
-iterators and references after the point of the erase" to
-"Invalidates iterators and references at or after the point of the
-erase". 
-</p>
-
-
-<p><b>Rationale:</b></p>
-<p>I believe this was essentially a typographical error, and that it
-  was taken for granted that erasing an element invalidates iterators
-  that point to it.  The effects clause in question treats iterators
-  and references in parallel, and it would seem counterintuitive to
-  say that a reference to an erased value remains valid.</p>
-
-
-
-
-
-<hr>
-<h3><a name="415"></a>415. behavior of std::ws</h3>
-<p><b>Section:</b> 27.7.2.4 [istream.manip] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to 27.6.1.4, the ws() manipulator is not required to construct
-the sentry object. The manipulator is also not a member function so the
-text in 27.6.1, p1 through 4 that describes the exception policy for
-istream member functions does not apply. That seems inconsistent with
-the rest of extractors and all the other input functions (i.e., ws will
-not cause a tied stream to be flushed before extraction, it doesn't check
-the stream's exceptions or catch exceptions thrown during input, and it
-doesn't affect the stream's gcount).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 27.7.2.4 [istream.manip], immediately before the first sentence
-of paragraph 1, the following text:
-</p>
-
-    <blockquote><p>
-    Behaves as an unformatted input function (as described in
-    27.6.1.3, paragraph 1), except that it does not count the number
-    of characters extracted and does not affect the value returned by
-    subsequent calls to is.gcount(). After constructing a sentry
-    object...  
-    </p></blockquote>
-
-<p><i>[Post-Kona: Martin provided wording]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="416"></a>416. definitions of XXX_MIN and XXX_MAX macros in climits</h3>
-<p><b>Section:</b> 18.3.3 [c.limits] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-Given two overloads of the function foo(), one taking an argument of type
-int and the other taking a long, which one will the call foo(LONG_MAX)
-resolve to? The expected answer should be foo(long), but whether that
-is true depends on the #defintion of the LONG_MAX macro, specifically
-its type. This issue is about the fact that the type of these macros
-is not actually required to be the same as the the type each respective
-limit.
-<br/>
-
-Section 18.2.2 of the C++ Standard does not specify the exact types of
-the XXX_MIN and XXX_MAX macros #defined in the &lt;climits> and &lt;limits.h>
-headers such as INT_MAX and LONG_MAX and instead defers to the C standard.
-<br/>
-
-Section 5.2.4.2.1, p1 of the C standard specifies that "The values [of
-these constants] shall be replaced by constant expressions suitable for use
-in #if preprocessing directives. Moreover, except for CHAR_BIT and MB_LEN_MAX,
-the following shall be replaced by expressions that have the same type as
-would an expression that is an object of the corresponding type converted
-according to the integer promotions."
-<br/>
-
-The "corresponding type converted according to the integer promotions" for
-LONG_MAX is, according to 6.4.4.1, p5 of the C standard, the type of long
-converted to the first of the following set of types that can represent it:
-int, long int, long long int. So on an implementation where (sizeof(long)
-== sizeof(int)) this type is actually int, while on an implementation where
-(sizeof(long) > sizeof(int)) holds this type will be long.
-<br/>
-
-This is not an issue in C since the type of the macro cannot be detected
-by any conforming C program, but it presents a portability problem in C++
-where the actual type is easily detectable by overload resolution.
-
-        </p>
-<p><i>[Kona: the LWG does not believe this is a defect.  The C macro
-  definitions are what they are; we've got a better
-  mechanism, <tt>std::numeric_limits</tt>, that is specified more
-  precisely than the C limit macros.  At most we should add a
-  nonnormative note recommending that users who care about the exact
-  types of limit quantities should use &lt;limits&gt; instead of
-  &lt;climits&gt;.]</i></p>
-
-
-    
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 18.3.3 [c.limits], paragraph 2:
-</p>
-
-<blockquote><p>
--2- The contents are the same as the Standard C library header <tt>&lt;limits.h&gt;</tt>.
-<ins>[<i>Note:</i> The types of the macros in <tt>&lt;climits&gt;</tt> are not guaranteed
-to match the type to which they refer.<i>--end note</i>]</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="419"></a>419. istream extractors not setting <tt>failbit</tt> if <tt>eofbit</tt> is already set</h3>
-<p><b>Section:</b> 27.7.2.1.3 [istream::sentry] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::sentry">issues</a> in [istream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-27.7.2.1.3 [istream::sentry], p2 says that <tt>istream::sentry</tt> ctor prepares for input if <tt>is.good()</tt>
-is true. p4 then goes on to say that the ctor sets the <tt>sentry::ok_</tt> member to
-true if the stream state is good after any preparation. 27.7.2.2.1 [istream.formatted.reqmts], p1 then
-says that a formatted input function endeavors to obtain the requested input
-if the sentry's <tt>operator bool()</tt> returns true.
-
-Given these requirements, no formatted extractor should ever set <tt>failbit</tt> if
-the initial stream <tt>rdstate() == eofbit</tt>. That is contrary to the behavior of
-all implementations I tested. The program below prints out
-</p>
-<blockquote><pre>
-eof = 1, fail = 0
-eof = 1, fail = 1
-</pre></blockquote>
-<p>
-on all of them.
-        </p>
-<pre>
-
-#include &lt;sstream>
-#include &lt;cstdio>
-
-int main()
-{
-    std::istringstream strm ("1");
-
-    int i = 0;
-
-    strm >> i;
-
-    std::printf ("eof = %d, fail = %d\n",
-                 !!strm.eof (), !!strm.fail ());
-
-    strm >> i;
-
-    std::printf ("eof = %d, fail = %d\n",
-                 !!strm.eof (), !!strm.fail ());
-}
-
-</pre>
-        <p>
-<br/>
-
-Comments from Jerry Schwarz (c++std-lib-11373):
-<br/>
-
-Jerry Schwarz wrote:
-<br/>
-
-I don't know where (if anywhere) it says it in the standard, but the
-formatted extractors are supposed to set <tt>failbit</tt> if they don't extract
-any characters. If they didn't then simple loops like
-<br/>
-
-while (cin >> x);
-<br/>
-
-would loop forever.
-<br/>
-
-Further comments from Martin Sebor:
-<br/>
-
-The question is which part of the extraction should prevent this from happening
-by setting <tt>failbit</tt> when <tt>eofbit</tt> is already set. It could either be the sentry
-object or the extractor. It seems that most implementations have chosen to
-set <tt>failbit</tt> in the sentry [...] so that's the text that will need to be
-corrected. 
-
-        </p>
-<p>
-Pre Berlin:  This issue is related to <a href="lwg-closed.html#342">342</a>.  If the sentry
-sets <tt>failbit</tt> when it finds <tt>eofbit</tt> already set, then
-you can never seek away from the end of stream.
-</p>
-<p>Kona: Possibly NAD.  If <tt>eofbit</tt> is set then <tt>good()</tt> will return false.  We
-  then set <i>ok</i> to false.  We believe that the sentry's
-  constructor should always set <tt>failbit</tt> when <i>ok</i> is false, and
-  we also think the standard already says that.  Possibly it could be
-  clearer.</p> 
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.7.2.1.3 [istream::sentry], p2 to:
-</p>
-
-<blockquote>
-<pre>explicit sentry(basic_istream&lt;charT,traits&gt;&amp; <i>is</i> , bool <i>noskipws</i> = false);</pre>
-<p>
--2- <i>Effects:</i> If <tt>is.good()</tt> is <del><tt>true</tt></del>
-<ins><tt>false</tt></ins>, <ins>calls <tt>is.setstate(failbit)</tt>. 
-Otherwise</ins> prepares for formatted or unformatted input. ...
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="420"></a>420. is std::FILE a complete type?</h3>
-<p><b>Section:</b> 27.9.1 [fstreams] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fstreams">issues</a> in [fstreams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-7.19.1, p2, of C99 requires that the FILE type only be declared in
-&lt;stdio.h>.  None of the (implementation-defined) members of the
-struct is mentioned anywhere for obvious reasons.
-</p>
-
-<p>
-C++ says in 27.8.1, p2 that FILE is a type that's defined in &lt;cstdio>. Is
-it really the intent that FILE be a complete type or is an implementation
-allowed to just declare it without providing a full definition?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In the first sentence of 27.9.1 [fstreams] paragraph 2, change
-  "defined" to "declared".</p>
-
-
-<p><b>Rationale:</b></p>
-<p>We don't want to impose any restrictions beyond what the C standard
-  already says. We don't want to make anything implementation defined,
-  because that imposes new requirements in implementations.</p>
-
-
-
-
-
-<hr>
-<h3><a name="422"></a>422. explicit specializations of member functions of class templates</h3>
-<p><b>Section:</b> 17.6.4.3 [reserved.names] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reserved.names">issues</a> in [reserved.names].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It has been suggested that 17.4.3.1, p1 may or may not allow programs to
-explicitly specialize members of standard templates on user-defined types.
-The answer to the question might have an impact where library requirements
-are given using the "as if" rule. I.e., if programs are allowed to specialize
-member functions they will be able to detect an implementation's strict
-conformance to Effects clauses that describe the behavior of the function
-in terms of the other member function (the one explicitly specialized by
-the program) by relying on the "as if" rule.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-  Add the following sentence to 17.6.4.3 [reserved.names], p1:
-</p>
-
-<blockquote><p>
-It is undefined for a C++ program to add declarations or definitions to
-namespace std or namespaces within namespace <tt>std</tt> unless otherwise specified. A
-program may add template specializations for any standard library template to
-namespace <tt>std</tt>. Such a specialization (complete or partial) of a standard library
-template results in undefined behavior unless the declaration depends on a
-user-defined type of external linkage and unless the specialization meets the
-standard library requirements for the original template.<sup>168)</sup>
-<ins>A program has undefined behavior if it declares</ins>
-</p>
-<ul>
-<li><ins>an explicit specialization of any member function of a standard
-            library class template, or</ins></li>
-<li><ins>an explicit specialization of any member function template of a
-            standard library class or class template, or</ins></li>
-<li><ins>an explicit or partial specialization of any member class
-            template of a standard library class or class template.</ins></li>
-</ul>
-<p>
-A program may explicitly instantiate any templates in the standard library only
-if the declaration depends on the name of a user-defined type of external
-linkage and the instantiation meets the standard library requirements for the
-original template.
-</p></blockquote>
-
-<p><i>[Kona: straw poll was 6-1 that user programs should not be
-  allowed to specialize individual member functions of standard
-  library class templates, and that doing so invokes undefined
-  behavior. Post-Kona: Martin provided wording.]</i></p>
-
-
-<p><i>[Sydney: The LWG agrees that the standard shouldn't permit users
-to specialize individual member functions unless they specialize the
-whole class, but we're not sure these words say what we want them to;
-they could be read as prohibiting the specialization of any standard
-library class templates. We need to consult with CWG to make sure we
-use the right wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="425"></a>425. return value of std::get_temporary_buffer</h3>
-<p><b>Section:</b> 20.7.11 [temporary.buffer] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#temporary.buffer">issues</a> in [temporary.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard is not clear about the requirements on the value returned from
-a call to get_temporary_buffer(0). In particular, it fails to specify whether
-the call should return a distinct pointer each time it is called (like
-operator new), or whether the value is unspecified (as if returned by
-malloc). The standard also fails to mention what the required behavior
-is when the argument is less than 0.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 20.10.3 [meta.help] paragraph 2 from "...or a pair of 0
-values if no storage can be obtained" to "...or a pair of 0 values if
-no storage can be obtained or if <i>n</i> &lt;= 0."</p>
-<p><i>[Kona: Matt provided wording]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="426"></a>426. search_n(), fill_n(), and generate_n() with negative n</h3>
-<p><b>Section:</b> 25.2.13 [alg.search], 25.3.6 [alg.fill], 25.3.7 [alg.generate] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.search">issues</a> in [alg.search].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The complexity requirements for these function templates are incorrect
-(or don't even make sense) for negative n:</p>
-
-<p>25.1.9, p7 (search_n):
-<br/>
-Complexity: At most (last1 - first1) * count applications
-of the corresponding predicate.</p>
-
-<p>25.2.5, p3 (fill_n):
-<br/>
-Complexity: Exactly last - first (or n) assignments.</p>
-
-<p>25.2.6, p3 (generate_n):
-<br/>
-Complexity: Exactly last - first (or n) assignments.</p>
-
-<p>
-In addition, the Requirements or the Effects clauses for the latter two
-templates don't say anything about the behavior when n is negative.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 25.1.9, p7 to</p>
-
-<blockquote><p>
-Complexity: At most (last1 - first1) * count applications
-of the corresponding predicate if count is positive,
-or 0 otherwise.
-</p></blockquote>
-
-<p>Change 25.2.5, p2 to</p>
-<blockquote><p>
-Effects: Assigns value through all the iterators in the range [first,
-last), or [first, first + n) if n is positive, none otherwise.
-</p></blockquote>
-
-<p>Change 25.2.5, p3 to:</p>
-<blockquote><p>
-Complexity: Exactly last - first (or n if n is positive,
-or 0 otherwise) assignments.
-</p></blockquote>
-
-<p>
-Change 25.2.6, p1 
-to (notice the correction for the misspelled "through"):
-</p>
-<blockquote><p>
-Effects: Invokes the function object genand assigns the return
-value of gen through all the iterators in the range [first, last),
-or [first, first + n) if n is positive, or [first, first)
-otherwise.
-</p></blockquote>
-
-<p>Change 25.2.6, p3 to:</p>
-<blockquote><p>
-Complexity: Exactly last - first (or n if n is positive,
-or 0 otherwise) assignments.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>Informally, we want to say that whenever we see a negative number
-  we treat it the same as if it were zero.  We believe the above
-  changes do that (although they may not be the minimal way of saying
-  so).  The LWG considered and rejected the alternative of saying that
-  negative numbers are undefined behavior.</p>
-
-
-
-
-
-<hr>
-<h3><a name="427"></a>427. Stage 2 and rationale of DR 221</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements specified in Stage 2 and reiterated in the rationale
-of DR 221 (and echoed again in DR 303) specify that num_get&lt;charT>::
-do_get() compares characters on the stream against the widened elements
-of "012...abc...ABCX+-"
-</p>
-
-<p>
-An implementation is required to allow programs to instantiate the num_get
-template on any charT that satisfies the requirements on a user-defined
-character type. These requirements do not include the ability of the
-character type to be equality comparable (the char_traits template must
-be used to perform tests for equality). Hence, the num_get template cannot
-be implemented to support any arbitrary character type. The num_get template
-must either make the assumption that the character type is equality-comparable
-(as some popular implementations do), or it may use char_traits&lt;charT> to do
-the comparisons (some other popular implementations do that). This diversity
-of approaches makes it difficult to write portable programs that attempt to
-instantiate the num_get template on user-defined types.
-</p>
-
-<p><i>[Kona: the heart of the problem is that we're theoretically
-  supposed to use traits classes for all fundamental character
-  operations like assignment and comparison, but facets don't have
-  traits parameters.  This is a fundamental design flaw and it
-  appears all over the place, not just in this one place.  It's not
-  clear what the correct solution is, but a thorough review of facets
-  and traits is in order.  The LWG considered and rejected the
-  possibility of changing numeric facets to use narrowing instead of
-  widening.  This may be a good idea for other reasons (see issue
-  <a href="lwg-closed.html#459">459</a>), but it doesn't solve the problem raised by this
-  issue.  Whether we use widen or narrow the <tt>num_get</tt> facet
-  still has no idea which traits class the user wants to use for 
-  the comparison, because only streams, not facets, are passed traits
-  classes.   The standard does not require that two different
-  traits classes with the same <tt>char_type</tt> must necessarily 
-  have the same behavior.]</i></p>
-
-
-<p>Informally, one possibility: require that some of the basic
-character operations, such as <tt>eq</tt>, <tt>lt</tt>,
-and <tt>assign</tt>, must behave the same way for all traits classes
-with the same <tt>char_type</tt>.  If we accept that limitation on
-traits classes, then the facet could reasonably be required to
-use <tt>char_traits&lt;charT&gt;</tt>.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-There was general agreement that the standard only needs to specify the
-behavior when the character type is char or wchar_t.
-</p>
-<p>
-Beman: we don't need to worry about C++1x because there is a non-zero
-possibility that we would have a replacement facility for iostreams that
-would solve these problems.
-</p>
-<p>
-We need to change the following sentence in [locale.category], paragraph
-6 to specify that C is char and wchar_t:
-</p>
-<p>
-"A template formal parameter with name C represents the set of all
-possible specializations on a parameter that satisfies the requirements
-for a character on which any member of the iostream components can be
-instantiated."
-</p>
-<p>
-We also need to specify in 27 that the basic character operations, such
-as eq, lt, and assign use std::char_traits.
-</p>
-<p>
-Daniel volunteered to provide wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-09-19 Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as Open. Alisdair and&#47;or Tom will provide wording based on discussions.
-We want to clearly state that streams and locales work just on <tt>char</tt>
-and <tt>wchar_t</tt> (except where otherwise specified).
-</p></blockquote>
-
-<p><i>[
-2010-02-06 Tom updated the proposed wording.
-]</i></p>
-
-
-<blockquote>
-<p><i>[
-The original proposed wording is preserved here:
-]</i></p>
-
-
-<blockquote class="note">
-<ol>
-<li>
-<p>
-Change 22.3.1.1.1 [locale.category]/6:
-</p>
-
-<blockquote><p>
-[..] A template formal parameter with name <tt>C</tt> represents the set of all possible
-specializations on a <ins><tt>char</tt> or <tt>wchar_t</tt></ins> parameter<del> that satisfies
-the requirements for a character on which any of the iostream components
-can be instantiated</del>. [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add the following sentence to the end of 22.4.2 [category.numeric]/2:
-</p>
-
-<blockquote><p>
-[..] These specializations refer to [..], and also for the <tt>ctype&lt;&gt;</tt> facet to
-perform character classification. <ins>Implementations are encouraged
-but not required to use the <tt>char_traits&lt;charT&gt;</tt> functions for all
-comparisons and assignments of characters of type <tt>charT</tt> that do
-not belong to the set of required specializations.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals]/3:
-</p>
-
-<blockquote>
-<p>
-Stage 2: If <tt>in==end</tt> then stage 2 terminates. Otherwise a <tt>charT</tt> is taken
-from <tt>in</tt> and local variables are initialized as if by
-</p>
-
-<blockquote><pre>
-char_type ct = *in;
-<ins>using tr = char_traits&lt;char_type&gt;;
-const char_type* pos = tr::find(atoms, sizeof(src) - 1, ct);</ins>
-char c = src[<del>find(atoms, atoms + sizeof(src) - 1, ct) - atoms</del>
-             <ins>pos ? pos - atoms : sizeof(src) - 1</ins>];
-if (<ins>tr::eq(ct, </ins><del>ct == </del>use_facet&lt;numpunct&lt;charT&gt;(loc).decimal_point()<ins>)</ins>)
-    c = '.';
-bool discard =
-    <ins>tr::eq(ct, </ins><del>ct == </del>use_facet&lt;numpunct&lt;charT&gt;(loc).thousands_sep()<ins>)</ins>
-    &amp;&amp; use_facet&lt;numpunct&lt;charT&gt; &gt;(loc).grouping().length() != 0;
-</pre></blockquote>
-
-<p>
-where the values <tt>src</tt> and <tt>atoms</tt> are defined as if by: [..]
-</p>
-</blockquote>
-
-<p>
-[Remark of the author: I considered to replace the initialization
-"<tt>char_type ct = *in;</tt>"
-by the sequence "<tt>char_type ct; tr::assign(ct, *in);</tt>", but decided
-against it, because
-it is a copy-initialization context, not an assignment]
-</p>
-</li>
-
-<li>
-<p>
-Add the following sentence to the end of 22.4.5 [category.time]/1:
-</p>
-
-<blockquote><p>
-[..] Their members use [..] , to determine formatting details.
-<ins>Implementations are encouraged but not required to use the
-<tt>char_traits&lt;charT&gt;</tt> functions for all comparisons and assignments
-of characters of type <tt>charT</tt> that do
-not belong to the set of required specializations.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.5.1.1 [locale.time.get.members]/8 bullet 4:
-</p>
-
-<ul>
-<li>
-<del>The next element of <tt>fmt</tt> is equal to <tt>'%'</tt></del> <ins>For the next element <tt>c</tt>
-of <tt>fmt char_traits&lt;char_type&gt;::eq(c, use_facet&lt;ctype&lt;char_type&gt;&gt;(f.getloc()).widen('%')) == true</tt></ins>,
-[..]
-</li>
-</ul>
-</li>
-
-<li>
-<p>
-Add the following sentence to the end of 22.4.6 [category.monetary]/2:
-</p>
-
-<blockquote><p>
-Their members use [..] to determine formatting details.
-<ins>Implementations are encouraged but not required to use the
-<tt>char_traits&lt;charT&gt;</tt> functions for all comparisons and assignments
-of characters of type <tt>charT</tt> that do
-not belong to the set of required specializations.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.6.1.2 [locale.money.get.virtuals]/4:
-</p>
-
-<blockquote>
-<p>
-[..] The value <tt>units</tt> is produced as if by:
-</p>
-
-<blockquote><pre>
-for (int i = 0; i &lt; n; ++i)
-  buf2[i] = src[<ins>char_traits&lt;charT&gt;::</ins>find(atoms, <del>atoms+</del>sizeof(src), buf1[i]) - atoms];
-buf2[n] = 0;
-sscanf(buf2, "%Lf", &amp;units);
-</pre></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.6.2.2 [locale.money.put.virtuals]/1:
-</p>
-
-<blockquote><p>
-[..] for character buffers <tt>buf1</tt> and <tt>buf2</tt>. If <ins>for</ins> the first
-character <ins><tt>c</tt></ins>
-in <tt>digits</tt> or <tt>buf2</tt> <del>is equal to
-<tt>ct.widen('-')</tt></del><ins><tt>char_traits&lt;charT&gt;::eq(c,
-ct.widen('-')) == true</tt></ins>, [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote to the first sentence of 27.7.2.2.2 [istream.formatted.arithmetic]/1:
-</p>
-
-<blockquote>
-<p>
-As in the case of the inserters, these extractors depend on the locale's
-<tt>num_get&lt;&gt;</tt> (22.4.2.1) object to perform parsing the input stream
-data.<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote to the second sentence of 27.7.3.6.2 [ostream.inserters.arithmetic]/1:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> The classes <tt>num_get&lt;&gt;</tt> and
-<tt>num_put&lt;&gt;</tt> handle locale-dependent numeric formatting and
-parsing. These inserter functions use the imbued locale value to perform
-numeric formatting.<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/4:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> An object of unspecified type such that if in is an object of type
-<tt>basic_istream&lt;charT, traits&gt;</tt> then the expression <tt>in &gt;&gt; get_money(mon, intl)</tt>
-behaves as if it called <tt>f(in, mon, intl)</tt>, where the function <tt>f</tt> is defined
-as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/5:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> An object of unspecified type such that if <tt>out</tt> is an object of type
-<tt>basic_ostream&lt;charT, traits&gt;</tt> then the expression <tt>out &lt;&lt; put_money(mon, intl)</tt>
-behaves as a formatted input function that calls <tt>f(out, mon, intl)</tt>, where the
-function <tt>f</tt> is defined as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-13) Add a footnote after the first sentence of 27.7.5 [ext.manip]/8:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> An object of unspecified type such that if <tt>in</tt> is an
-object of type b<tt>asic_istream&lt;charT, traits&gt;</tt> then the expression
-<tt>in &gt;&gt;get_time(tmb, fmt)</tt> behaves as if it called <tt>f(in, tmb, fmt)</tt>,
-where the function <tt>f</tt> is defined as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/10:
-</p>
-
-<blockquote>
-<p>
-Returns: An object of unspecified type such that if <tt>out</tt> is an object of type
-<tt>basic_ostream&lt;charT, traits&gt;</tt> then the expression <tt>out &lt;&lt;put_time(tmb, fmt)</tt>
-behaves as if it called <tt>f(out, tmb, fmt)</tt>, where the function <tt>f</tt> is defined
-as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-Moved to Ready with only two of the bullets.  The original wording is preserved
-here:
-</p>
-
-<blockquote class="note">
-<ol>
-<li>
-<p>
-Change 22.3.1.1.1 [locale.category]/6:
-</p>
-
-<blockquote><p>
-[..] A template formal parameter with name <tt>C</tt> represents 
-the set 
-<del>of all possible specializations on a</del> 
-<ins>of types containing <tt>char</tt>, <tt>wchar_t</tt>,
-and any other implementation-defined character type
-</ins>
-<del> parameter</del>
-that satisfies
-the requirements for a character on which any of the iostream components
-can be instantiated. [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add the following sentence to the end of 22.4.2 [category.numeric]/2:
-</p>
-
-<blockquote><p>
-[..] These specializations refer to [..], and also for the <tt>ctype&lt;&gt;</tt> facet to
-perform character classification. <ins>[<i>Note:</i> Implementations are encouraged
-but not required to use the <tt>char_traits&lt;charT&gt;</tt> functions for all
-comparisons and assignments of characters of type <tt>charT</tt> that do
-not belong to the set of required specializations - <i>end note</i>].</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals]/3:
-</p>
-
-<blockquote>
-<p>
-Stage 2: If <tt>in==end</tt> then stage 2 terminates. Otherwise a <tt>charT</tt> is taken
-from <tt>in</tt> and local variables are initialized as if by
-</p>
-
-<blockquote><pre>
-char_type ct = *in;
-<ins>using tr = char_traits&lt;char_type&gt;;
-const char_type* pos = tr::find(atoms, sizeof(src) - 1, ct);</ins>
-char c = src[<del>find(atoms, atoms + sizeof(src) - 1, ct) - atoms</del>
-             <ins>pos ? pos - atoms : sizeof(src) - 1</ins>];
-if (<ins>tr::eq(ct, </ins><del>ct == </del>use_facet&lt;numpunct&lt;charT&gt;(loc).decimal_point()<ins>)</ins>)
-    c = '.';
-bool discard =
-    <ins>tr::eq(ct, </ins><del>ct == </del>use_facet&lt;numpunct&lt;charT&gt;(loc).thousands_sep()<ins>)</ins>
-    &amp;&amp; use_facet&lt;numpunct&lt;charT&gt; &gt;(loc).grouping().length() != 0;
-</pre></blockquote>
-
-<p>
-where the values <tt>src</tt> and <tt>atoms</tt> are defined as if by: [..]
-</p>
-</blockquote>
-
-<p>
-[Remark of the author: I considered to replace the initialization
-"<tt>char_type ct = *in;</tt>"
-by the sequence "<tt>char_type ct; tr::assign(ct, *in);</tt>", but decided
-against it, because
-it is a copy-initialization context, not an assignment]
-</p>
-</li>
-
-<li>
-<p>
-Add the following sentence to the end of 22.4.5 [category.time]/1:
-</p>
-
-<blockquote><p>
-[..] Their members use [..] , to determine formatting details.
-<ins>[<i>Note:</i> Implementations are encouraged but not required to use the
-<tt>char_traits&lt;charT&gt;</tt> functions for all comparisons and assignments
-of characters of type <tt>charT</tt> that do
-not belong to the set of required specializations - <i>end note</i>].</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.5.1.1 [locale.time.get.members]/8 bullet 4:
-</p>
-
-<ul>
-<li>
-<del>The next element of <tt>fmt</tt> is equal to <tt>'%'</tt></del> <ins>For the next element <tt>c</tt>
-of <tt>fmt char_traits&lt;char_type&gt;::eq(c, use_facet&lt;ctype&lt;char_type&gt;&gt;(f.getloc()).widen('%')) == true</tt></ins>,
-[..]
-</li>
-</ul>
-</li>
-
-<li>
-<p>
-Add the following sentence to the end of 22.4.6 [category.monetary]/2:
-</p>
-
-<blockquote><p>
-Their members use [..] to determine formatting details.
-<ins>[<i>Note:</i> Implementations are encouraged but not required to use the
-<tt>char_traits&lt;charT&gt;</tt> functions for all comparisons and assignments
-of characters of type <tt>charT</tt> that do
-not belong to the set of required specializations - <i>end note</i>].</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.6.1.2 [locale.money.get.virtuals]/4:
-</p>
-
-<blockquote>
-<p>
-[..] The value <tt>units</tt> is produced as if by:
-</p>
-
-<blockquote><pre>
-for (int i = 0; i &lt; n; ++i)
-  buf2[i] = src[<ins>char_traits&lt;charT&gt;::</ins>find(atoms, <del>atoms+</del>sizeof(src), buf1[i]) - atoms];
-buf2[n] = 0;
-sscanf(buf2, "%Lf", &amp;units);
-</pre></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 22.4.6.2.2 [locale.money.put.virtuals]/1:
-</p>
-
-<blockquote><p>
-[..] for character buffers <tt>buf1</tt> and <tt>buf2</tt>. If <ins>for</ins> the first
-character <ins><tt>c</tt></ins>
-in <tt>digits</tt> or <tt>buf2</tt> <del>is equal to
-<tt>ct.widen('-')</tt></del><ins><tt>char_traits&lt;charT&gt;::eq(c,
-ct.widen('-')) == true</tt></ins>, [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add a new paragraph after the 
-first paragraph of 27.2.2 [iostreams.limits.pos]/1:
-</p>
-<blockquote><p>
-In the classes of clause 27,
-a template formal parameter with name <tt>charT</tt> represents 
-one of
-the set of types
-containing <tt>char</tt>, <tt>wchar_t</tt>,
-and any other implementation-defined character type
-that satisfies
-the requirements for a character on which any of the iostream components
-can be instantiated.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote to the first sentence of 27.7.2.2.2 [istream.formatted.arithmetic]/1:
-</p>
-
-<blockquote>
-<p>
-As in the case of the inserters, these extractors depend on the locale's
-<tt>num_get&lt;&gt;</tt> (22.4.2.1) object to perform parsing the input stream
-data.<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote to the second sentence of 27.7.3.6.2 [ostream.inserters.arithmetic]/1:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> The classes <tt>num_get&lt;&gt;</tt> and
-<tt>num_put&lt;&gt;</tt> handle locale-dependent numeric formatting and
-parsing. These inserter functions use the imbued locale value to perform
-numeric formatting.<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/4:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> An object of unspecified type such that if in is an object of type
-<tt>basic_istream&lt;charT, traits&gt;</tt> then the expression <tt>in &gt;&gt; get_money(mon, intl)</tt>
-behaves as if it called <tt>f(in, mon, intl)</tt>, where the function <tt>f</tt> is defined
-as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/5:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> An object of unspecified type such that if <tt>out</tt> is an object of type
-<tt>basic_ostream&lt;charT, traits&gt;</tt> then the expression <tt>out &lt;&lt; put_money(mon, intl)</tt>
-behaves as a formatted input function that calls <tt>f(out, mon, intl)</tt>, where the
-function <tt>f</tt> is defined as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/8:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> An object of unspecified type such that if <tt>in</tt> is an
-object of type b<tt>asic_istream&lt;charT, traits&gt;</tt> then the expression
-<tt>in &gt;&gt;get_time(tmb, fmt)</tt> behaves as if it called <tt>f(in, tmb, fmt)</tt>,
-where the function <tt>f</tt> is defined as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the input stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add a footnote after the first sentence of 27.7.5 [ext.manip]/10:
-</p>
-
-<blockquote>
-<p>
-Returns: An object of unspecified type such that if <tt>out</tt> is an object of type
-<tt>basic_ostream&lt;charT, traits&gt;</tt> then the expression <tt>out &lt;&lt;put_time(tmb, fmt)</tt>
-behaves as if it called <tt>f(out, tmb, fmt)</tt>, where the function <tt>f</tt> is defined
-as:<ins><sup>(footnote)</sup></ins> [..]
-</p>
-
-<p>
-<ins>
-<sup>footnote)</sup> If the traits of the output stream has different semantics for <tt>lt()</tt>,
-<tt>eq()</tt>, and <tt>assign()</tt> than <tt>char_traits&lt;char_type&gt;</tt>, this may give surprising
-results.
-</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 22.3.1.1.1 [locale.category]/6:
-</p>
-
-<blockquote><p>
-[..] A template formal parameter with name <tt>C</tt> represents 
-the set 
-<del>of all possible specializations on a</del> 
-<ins>of types containing <tt>char</tt>, <tt>wchar_t</tt>,
-and any other implementation-defined character type
-</ins>
-<del> parameter</del>
-that satisfies
-the requirements for a character on which any of the iostream components
-can be instantiated. [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add a new paragraph after the 
-first paragraph of 27.2.2 [iostreams.limits.pos]/1:
-</p>
-<blockquote><p>
-In the classes of clause 27,
-a template formal parameter with name <tt>charT</tt> represents 
-one of
-the set of types
-containing <tt>char</tt>, <tt>wchar_t</tt>,
-and any other implementation-defined character type
-that satisfies
-the requirements for a character on which any of the iostream components
-can be instantiated.
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-<hr>
-<h3><a name="428"></a>428. string::erase(iterator) validity</h3>
-<p><b>Section:</b> 21.4.6.5 [string::erase] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::erase">issues</a> in [string::erase].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.1.1, p3 along with Table 67 specify as a prerequisite for a.erase(q)
-that q must be a valid dereferenceable iterator into the sequence a.
-</p>
-
-<p>
-However, 21.3.5.5, p5 describing string::erase(p) only requires that
-p be a valid iterator.
-</p>
-
-<p>
-This may be interepreted as a relaxation of the general requirement,
-which is most likely not the intent.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove 21.4.6.5 [string::erase] paragraph 5.</p>
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG considered two options: changing the string requirements to
-  match the general container requirements, or just removing the
-  erroneous string requirements altogether.  The LWG chose the latter
-  option, on the grounds that duplicating text always risks the
-  possibility that it might be duplicated incorrectly.</p>
-
-
-
-
-
-<hr>
-<h3><a name="430"></a>430. <tt>valarray</tt> subset operations</h3>
-<p><b>Section:</b> 26.6.2.5 [valarray.sub] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard fails to specify the behavior of valarray::operator[](slice)
-and other valarray subset operations when they are passed an "invalid"
-slice object, i.e., either a slice that doesn't make sense at all (e.g.,
-slice (0, 1, 0) or one that doesn't specify a valid subset of the valarray
-object (e.g., slice (2, 1, 1) for a valarray of size 1).
-</p>
-<p><i>[Kona: the LWG believes that invalid slices should invoke
-  undefined behavior.  Valarrays are supposed to be designed for high
-  performance, so we don't want to require specific checking.  We
-  need wording to express this decision.]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Please note that the standard also fails to specify the behavior of
-slice_array and gslice_array in the valid case. Bill Plauger will
-endeavor to provide revised wording for <tt>slice_array</tt> and <tt>gslice_array</tt>.
-</p></blockquote>
-
-<p><i>[
-post-Bellevue:  Bill provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-11-04 Pete opens:
-]</i></p>
-
-
-<blockquote><p>
-The resolution to LWG issue <a href="lwg-defects.html#430">430</a> has not been applied &mdash; there have been
-changes to the underlying text, and the resolution needs to be reworked.
-</p></blockquote>
-
-<p><i>[
-2010-03-09 Matt updated wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh: Moved to Ready for Pittsburgh.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace 26.6.2.5 [valarray.sub], with the following:
-</p>
-
-<blockquote>
-<p>
-The member operator is overloaded to provide several ways to select
-sequences of elements from among those controlled by <tt>*this</tt>.
-Each of these operations returns a subset of the array.  The
-const-qualified versions return this subset as a new <tt>valarray</tt>. The
-non-const versions return a class template object which has reference
-semantics to the original array, working in conjunction with various
-overloads of <tt>operator=</tt> (and other assigning operators) to allow
-selective replacement (slicing) of the controlled sequence. In each case
-the selected element(s) must exist.
-</p>
-
-<pre>
-valarray&lt;T&gt; operator[](slice slicearr) const; 
-</pre>
-
-<blockquote>
-<p>
-This function returns an object of class <tt>valarray&lt;T&gt;</tt>
-containing those elements of the controlled sequence designated by
-<tt>slicearr</tt>. [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-valarray&lt;char&gt; v1("ABCDE", 5); 
-v0[slice(2, 5, 3)] = v1; 
-// v0 == valarray&lt;char&gt;("abAdeBghCjkDmnEp", 16)
-</pre></blockquote>
-<p>
-<i>end example</i>]
-</p>
-</blockquote>
- 
-<pre>
-valarray&lt;T&gt; operator[](slice slicearr); 
-</pre>
-
-<blockquote>
-<p>
-This function selects those elements of the controlled sequence
-designated by <tt>slicearr</tt>.  [<i>Example</i>:
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-valarray&lt;char&gt; v1("ABCDE", 5); 
-v0[slice(2, 5, 3)] = v1; 
-// v0 == valarray&lt;char&gt;("abAdeBghCjkDmnEp", 16)
-</pre></blockquote>
-<p>
-<i>end example</i>]
-</p>
-</blockquote>
- 
-<pre>
-valarray&lt;T&gt; operator[](const gslice&amp; gslicearr) const; 
-</pre>
-
-<blockquote>
-<p>
-This function returns an object of class <tt>valarray&lt;T&gt;</tt>
-containing those elements of the controlled sequence designated by
-<tt>gslicearr</tt>. [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-const size_t lv[] = {2, 3}; 
-const size_t dv[] = {7, 2}; 
-const valarray&lt;size_t&gt; len(lv, 2), str(dv, 2); 
-// v0[gslice(3, len, str)] returns 
-// valarray&lt;char&gt;("dfhkmo", 6)
-</pre></blockquote>
-<p>
-<i>end example</i>]
-</p>
-</blockquote>
- 
-<pre>
-gslice_array&lt;T&gt; operator[](const gslice&amp; gslicearr); 
-</pre>
-
-<blockquote>
-<p>
-This function selects those elements of the controlled sequence
-designated by <tt>gslicearr</tt>.  [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-valarray&lt;char&gt; v1("ABCDEF", 6); 
-const size_t lv[] = {2, 3}; 
-const size_t dv[] = {7, 2}; 
-const valarray&lt;size_t&gt; len(lv, 2), str(dv, 2); 
-v0[gslice(3, len, str)] = v1; 
-// v0 == valarray&lt;char&gt;("abcAeBgCijDlEnFp", 16)
-</pre></blockquote>
-<p>
-<i>end example</i>]
-</p>
-</blockquote>
- 
-<pre>
-valarray&lt;T&gt; operator[](const valarray&lt;bool&gt;&amp; boolarr) const; 
-</pre>
-
-<blockquote>
-<p>
-This function returns an object of class <tt>valarray&lt;T&gt;</tt>
-containing those elements of the controlled sequence designated by
-<tt>boolarr</tt>. [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-const bool vb[] = {false, false, true, true, false, true}; 
-// v0[valarray&lt;bool&gt;(vb, 6)] returns 
-// valarray&lt;char&gt;("cdf", 3)
-</pre></blockquote>
-<p>
-<i>end example</i>] 
-</p>
-</blockquote>
- 
-<pre>
-mask_array&lt;T&gt; operator[](const valarray&lt;bool&gt;&amp; boolarr); 
-</pre>
-
-<blockquote>
-<p>
-This function selects those elements of the controlled sequence
-designated by <tt>boolarr</tt>. [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-valarray&lt;char&gt; v1("ABC", 3); 
-const bool vb[] = {false, false, true, true, false, true}; 
-v0[valarray&lt;bool&gt;(vb, 6)] = v1; 
-// v0 == valarray&lt;char&gt;("abABeCghijklmnop", 16)
-</pre></blockquote>
-<p>
-<i>end example</i>]
-</p>
-</blockquote>
- 
-<pre>
-valarray&lt;T&gt; operator[](const valarray&lt;size_t&gt;&amp; indarr) const; 
-</pre>
-
-<blockquote>
-<p>
-This function returns an object of class <tt>valarray&lt;T&gt;</tt>
-containing those elements of the controlled sequence designated by
-<tt>indarr</tt>. [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-const size_t vi[] = {7, 5, 2, 3, 8}; 
-// v0[valarray&lt;size_t&gt;(vi, 5)] returns 
-// valarray&lt;char&gt;("hfcdi", 5)
-</pre></blockquote>
-<p>
-<i>end example</i>] 
-</p>
-</blockquote>
- 
-<pre>
-indirect_array&lt;T&gt; operator[](const valarray&lt;size_t&gt;&amp; indarr);
-</pre>
-
-<blockquote>
-<p>
-This function selects those elements of the controlled sequence
-designated by <tt>indarr</tt>. [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-valarray&lt;char&gt; v0("abcdefghijklmnop", 16); 
-valarray&lt;char&gt; v1("ABCDE", 5); 
-const size_t vi[] = {7, 5, 2, 3, 8}; 
-v0[valarray&lt;size_t&gt;(vi, 5)] = v1; 
-// v0 == valarray&lt;char&gt;("abCDeBgAEjklmnop", 16)
-</pre></blockquote>
-<p>
-<i>end example</i>]
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="431"></a>431. Swapping containers with unequal allocators</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2003-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Clause 17.6.3.5 [allocator.requirements] paragraph 4 says that implementations
-  are permitted to supply containers that are unable to cope with
-  allocator instances and that container implementations may assume
-  that all instances of an allocator type compare equal.  We gave
-  implementers this latitude as a temporary hack, and eventually we
-  want to get rid of it.  What happens when we're dealing with
-  allocators that <i>don't</i> compare equal?
-</p>
-
-<p>In particular: suppose that <tt>v1</tt> and <tt>v2</tt> are both
-  objects of type <tt>vector&lt;int, my_alloc&gt;</tt> and that
-  <tt>v1.get_allocator() != v2.get_allocator()</tt>.  What happens if
-  we write <tt>v1.swap(v2)</tt>?  Informally, three possibilities:</p>
-
-<p>1. This operation is illegal.  Perhaps we could say that an
-  implementation is required to check and to throw an exception, or
-  perhaps we could say it's undefined behavior.</p>
-<p>2. The operation performs a slow swap (i.e. using three
-  invocations of <tt>operator=</tt>, leaving each allocator with its
-  original container.  This would be an O(N) operation.</p>
-<p>3. The operation swaps both the vectors' contents and their
-  allocators.  This would be an O(1) operation. That is:</p>
-  <blockquote>
-  <pre>
-    my_alloc a1(...);
-    my_alloc a2(...);
-    assert(a1 != a2);
-
-    vector&lt;int, my_alloc> v1(a1);
-    vector&lt;int, my_alloc> v2(a2);
-    assert(a1 == v1.get_allocator());
-    assert(a2 == v2.get_allocator());
-
-    v1.swap(v2);
-    assert(a1 == v2.get_allocator());
-    assert(a2 == v1.get_allocator());
-  </pre>
-  </blockquote>
-
-<p><i>[Kona: This is part of a general problem.  We need a paper
-  saying how to deal with unequal allocators in general.]</i></p>
-
-
-<p><i>[pre-Sydney: Howard argues for option 3 in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1599.html">N1599</a>.
-]</i></p>
-
-
-<p><i>[
-2007-01-12, Howard:  This issue will now tend to come up more often with move constructors
-and move assignment operators.  For containers, these members transfer resources (i.e.
-the allocated memory) just like swap.
-]</i></p>
-
-
-<p><i>[
-Batavia:  There is agreement to overload the container <tt>swap</tt> on the allocator's Swappable
-requirement using concepts.  If the allocator supports Swappable, then container's swap will
-swap allocators, else it will perform a "slow swap" using copy construction and copy assignment.
-]</i></p>
-
-
-<p><i>[
-2009-04-28 Pablo adds:
-]</i></p>
-
-<blockquote><p>
-Fixed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a>.
-I argued for marking this Tentatively-Ready right after Bellevue,
-but there was a concern that
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a>
-would break in the presence of the RVO. (That breakage had nothing to do with
-swap, but never-the-less). I addressed that breakage in in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2840.pdf">N2840</a>
-(Summit) by means of a non-normative reference:
-</p>
-<blockquote><p>
-[<i>Note:</i> in situations where the copy constructor for a container is elided,
-this function is not called. The behavior in these cases is as if
-<tt>select_on_container_copy_construction</tt> returned <tt>x</tt> &mdash; <i>end note</i>]
-</p></blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="432"></a>432. stringbuf::overflow() makes only one write position available</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Christian W Brock <b>Opened:</b> 2003-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>27.7.1.3 par 8 says:</p>
-<blockquote><p>
-Notes: The function can make a write position available only if
-    ( mode &amp; ios_base::out) != 0. To make a write position
-    available, the function reallocates (or initially allocates) an
-    array object with a sufficient number of elements to hold the
-    current array object (if any), plus one additional write position.
-    If ( mode &amp; ios_base::in) != 0, the function alters the read end
-    pointer egptr() to point just past the new write position (as
-    does the write end pointer epptr()).
-</p></blockquote>
-
-<p>
-The sentences "plus one additional write position." and especially
-    "(as does the write end pointer epptr())" COULD by interpreted
-    (and is interpreted by at least my library vendor) as:
-</p>
-
-<blockquote><p>
-    post-condition: epptr() == pptr()+1
-</p></blockquote>
-
-<p>
-This WOULD force sputc() to call the virtual overflow() each time.
-</p>
-
-<p>The proposed change also affects Defect Report 169.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>27.7.1.1/2 Change:</p>
-
-<blockquote><p>
-2- Notes: The function allocates no array object.
-</p></blockquote>
-
-<p>
-to:
-</p>
-
-<blockquote><p>
-2- Postcondition: str() == "".
-</p></blockquote>
-
-<p>
-27.7.1.1/3 Change:
-</p>
-
-<blockquote>
-<p>
--3- Effects: Constructs an object of class basic_stringbuf,
-initializing the base class with basic_streambuf()
-(lib.streambuf.cons), and initializing mode with which . Then copies
-the content of str into the basic_stringbuf underlying character
-sequence and initializes the input and output sequences according to
-which. If which &amp; ios_base::out is true, initializes the output
-sequence with the underlying sequence. If which &amp; ios_base::in is
-true, initializes the input sequence with the underlying sequence.
-</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>
--3- Effects: Constructs an object of class basic_stringbuf,
-initializing the base class with basic_streambuf()
-(lib.streambuf.cons), and initializing mode with which. Then copies
-the content of str into the basic_stringbuf underlying character
-sequence. If which &amp; ios_base::out is true, initializes the output
-sequence such that pbase() points to the first underlying character,
-epptr() points one past the last underlying character, and if (which &amp;
-ios_base::ate) is true, pptr() is set equal to
-epptr() else pptr() is set equal to pbase(). If which &amp; ios_base::in
-is true, initializes the input sequence such that eback() and gptr()
-point to the first underlying character and egptr() points one past
-the last underlying character.
-</p>
-</blockquote>
-
-<p>27.7.1.2/1 Change:</p>
-
-<blockquote>
-<p>
--1- Returns: A basic_string object whose content is equal to the
-basic_stringbuf underlying character sequence. If the buffer is only
-created in input mode, the underlying character sequence is equal to
-the input sequence; otherwise, it is equal to the output sequence. In
-case of an empty underlying character sequence, the function returns
-basic_string&lt;charT,traits,Allocator>().
-</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>
--1- Returns: A basic_string object whose content is equal to the
-basic_stringbuf underlying character sequence. If the basic_stringbuf
-was created only in input mode, the resultant basic_string contains
-the character sequence in the range [eback(), egptr()).  If the
-basic_stringbuf was created with (which &amp; ios_base::out) being true
-then the resultant basic_string contains the character sequence in the
-range [pbase(), high_mark) where high_mark represents the position one
-past the highest initialized character in the buffer.  Characters can
-be initialized either through writing to the stream, or by
-constructing the basic_stringbuf with a basic_string, or by calling
-the str(basic_string) member function.  In the case of calling the
-str(basic_string) member function, all characters initialized prior to
-the call are now considered uninitialized (except for those
-characters re-initialized by the new basic_string).  Otherwise the
-basic_stringbuf has been created in neither input nor output mode and
-a zero length basic_string is returned.
-</p>
-</blockquote>
-
-<p>
-27.7.1.2/2 Change:
-</p>
-
-<blockquote>
-<p>
--2- Effects: If the basic_stringbuf's underlying character sequence is
-not empty, deallocates it. Then copies the content of s into the
-basic_stringbuf underlying character sequence and initializes the
-input and output sequences according to the mode stored when creating
-the basic_stringbuf object. If (mode&amp;ios_base::out) is true, then
-initializes the output sequence with the underlying sequence. If
-(mode&amp;ios_base::in) is true, then initializes the input sequence with
-the underlying sequence.
-</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>
--2- Effects: Copies the content of s into the basic_stringbuf
-underlying character sequence. If mode &amp; ios_base::out is true,
-initializes the output sequence such that pbase() points to the first
-underlying character, epptr() points one past the last underlying
-character, and if (mode &amp; ios_base::ate) is true,
-pptr() is set equal to epptr() else pptr() is set equal to pbase(). If
-mode &amp; ios_base::in is true, initializes the input sequence such that
-eback() and gptr() point to the first underlying character and egptr()
-points one past the last underlying character.
-</p>
-</blockquote>
-
-<p>Remove 27.2.1.2/3.  (Same rationale as issue 238: incorrect and unnecessary.)</p>
-
-<p>27.7.1.3/1 Change:</p>
-
-<blockquote>
-<p>
-1- Returns: If the input sequence has a read position available,
-returns traits::to_int_type(*gptr()).  Otherwise, returns
-traits::eof().
-</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>
-1- Returns: If the input sequence has a read position available,
-returns traits::to_int_type(*gptr()).  Otherwise, returns
-traits::eof().  Any character in the underlying buffer which has been
-initialized is considered to be part of the input sequence.
-</p>
-</blockquote>
-
-<p>27.7.1.3/9 Change:</p>
-
-<blockquote>
-<p>
--9- Notes: The function can make a write position available only if (
-mode &amp; ios_base::out) != 0. To make a write position available, the
-function reallocates (or initially allocates) an array object with a
-sufficient number of elements to hold the current array object (if
-any), plus one additional write position. If ( mode &amp; ios_base::in) !=
-0, the function alters the read end pointer egptr() to point just past
-the new write position (as does the write end pointer epptr()).
-</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>
--9- The function can make a write position available only if ( mode &amp;
-ios_base::out) != 0. To make a write position available, the function
-reallocates (or initially allocates) an array object with a sufficient
-number of elements to hold the current array object (if any), plus one
-additional write position. If ( mode &amp; ios_base::in) != 0, the
-function alters the read end pointer egptr() to point just past the
-new write position.
-</p>
-</blockquote>
-
-<p>27.7.1.3/12 Change:</p>
-
-<blockquote>
-<p>
--12- _ If (newoff + off) &lt; 0, or (xend - xbeg) &lt; (newoff + off), the
-positioning operation fails. Otherwise, the function assigns xbeg +
-newoff + off to the next pointer xnext .
-</p>
-</blockquote>
-
-<p>to:</p>
-
-<blockquote>
-<p>
--12- _ If (newoff + off) &lt; 0, or if (newoff + off) refers to an
-uninitialized character (as defined in 27.8.2.3 [stringbuf.members]
-paragraph 1), the positioning operation fails. Otherwise, the function
-assigns xbeg + newoff + off to the next pointer xnext .
-</p>
-</blockquote>
-
-<p><i>[post-Kona: Howard provided wording.  At Kona the LWG agreed that
-  something along these lines was a good idea, but the original
-  proposed resolution didn't say enough about the effect of various
-  member functions on the underlying character sequences.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The current basic_stringbuf description is over-constrained in such
-a way as to prohibit vendors from making this the high-performance
-in-memory stream it was meant to be.  The fundamental problem is that
-the pointers: eback(), gptr(), egptr(), pbase(), pptr(), epptr() are
-observable from a derived client, and the current description
-restricts the range [pbase(), epptr()) from being grown geometrically.
-This change allows, but does not require, geometric growth of this
-range.</p>
-
-<p>Backwards compatibility issues: These changes will break code that
-derives from basic_stringbuf, observes epptr(), and depends upon
-[pbase(), epptr()) growing by one character on each call to overflow()
-(i.e. test suites).  Otherwise there are no backwards compatibility
-issues.</p>
-
-<p>27.7.1.1/2: The non-normative note is non-binding, and if it were
-binding, would be over specification.  The recommended change focuses
-on the important observable fact.</p>
-
-<p>27.7.1.1/3: This change does two things: 1.  It describes exactly
-what must happen in terms of the sequences.  The terms "input
-sequence" and "output sequence" are not well defined.  2.  It
-introduces a common extension: open with app or ate mode.  I concur
-with issue 238 that paragraph 4 is both wrong and unnecessary.</p>
-
-<p>27.7.1.2/1: This change is the crux of the efficiency issue.  The
-resultant basic_string is not dependent upon epptr(), and thus
-implementors are free to grow the underlying buffer geometrically
-during overflow() *and* place epptr() at the end of that buffer.</p>
-
-<p>27.7.1.2/2:  Made consistent with the proposed 27.7.1.1/3.</p>
-
-<p>27.7.1.3/1: Clarifies that characters written to the stream beyond
-the initially specified string are available for reading in an i/o
-basic_streambuf.</p>
-
-<p>27.7.1.3/9: Made normative by removing "Notes:", and removed the
-trailing parenthetical comment concerning epptr().</p>
-
-<p>27.7.1.3/12: Restricting the positioning to [xbeg, xend) is no
-longer allowable since [pbase(), epptr()) may now contain
-uninitialized characters.  Positioning is only allowable over the
-initialized range.</p>
-
-
-
-
-
-<hr>
-<h3><a name="434"></a>434. bitset::to_string() hard to use</h3>
-<p><b>Section:</b> 20.6.2 [bitset.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.members">issues</a> in [bitset.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It has been pointed out a number of times that the bitset to_string() member
-function template is tedious to use since callers must explicitly specify the
-entire template argument list (3 arguments). At least two implementations
-provide a number of overloads of this template to make it easier to use.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In order to allow callers to specify no template arguments at all, just the
-first one (charT), or the first 2 (charT and traits), in addition to all
-three template arguments, add the following three overloads to both the
-interface (declarations only) of the class template bitset as well as to
-section 23.3.5.2, immediately after p34, the Returns clause of the existing
-to_string() member function template:</p>
-
-<pre>
-    template &lt;class charT, class traits>
-    basic_string&lt;charT, traits, allocator&lt;charT> >
-    to_string () const;
-
-    -34.1- Returns: to_string&lt;charT, traits, allocator&lt;charT> >().
-
-    template &lt;class charT>
-    basic_string&lt;charT, char_traits&lt;charT>, allocator&lt;charT> >
-    to_string () const;
-
-    -34.2- Returns: to_string&lt;charT, char_traits&lt;charT>, allocator&lt;charT> >().
-
-    basic_string&lt;char, char_traits&lt;char>, allocator&lt;char> >
-    to_string () const;
-
-    -34.3- Returns: to_string&lt;char, char_traits&lt;char>, allocator&lt;char> >().
-</pre>
-
-<p><i>[Kona: the LWG agrees that this is an improvement over the
-  status quo.  Dietmar thought about an alternative using a proxy
-  object but now believes that the proposed resolution above is the
-  right choice.
-]</i></p>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="435"></a>435. bug in DR 25</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-It has been pointed out that the proposed resolution in DR <a href="lwg-defects.html#25">25</a> may not be
-quite up to snuff: <br/>
-http://gcc.gnu.org/ml/libstdc++/2003-09/msg00147.html
-http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#25<br/>
-</p>
-
-<p>
-It looks like Petur is right. The complete corrected text is copied below.
-I think we may have have been confused by the reference to 22.2.2.2.2 and
-the subsequent description of `n' which actually talks about the second
-argument to sputn(), not about the number of fill characters to pad with.
-</p>
-
-<p>
-So the question is: was the original text correct? If the intent was to
-follow classic iostreams then it most likely wasn't, since setting width()
-to less than the length of the string doesn't truncate it on output. This
-is also the behavior of most implementations (except for SGI's standard
-iostreams where the operator does truncate).
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the text in 21.3.7.9, p4 from</p>
-    <blockquote><p>
-    If bool(k) is true, inserts characters as if by calling
-    os.rdbuf()->sputn(str.data(), n), padding as described in stage 3
-    of lib.facet.num.put.virtuals, where n is the larger of os.width()
-    and str.size(); 
-    </p></blockquote>
-<p>to</p>
-    <blockquote><p>
-    If bool(k) is true, determines padding as described in
-    lib.facet.num.put.virtuals, and then inserts the resulting
-    sequence of characters <tt>seq</tt> as if by calling
-    <tt>os.rdbuf()->sputn(seq, n)</tt>, where <tt>n</tt> is the larger of
-    <tt>os.width()</tt> and <tt>str.size()</tt>;
-     </p></blockquote>
-
-<p><i>[Kona: it appears that neither the original wording, DR25, nor the
-  proposed resolution, is quite what we want.  We want to say that
-  the string will be output, padded to os.width() if necessary.  We
-  don't want to duplicate the padding rules in clause 22, because
-  they're complicated, but we need to be careful because they weren't
-  quite written with quite this case in mind.  We need to say what
-  the character sequence is, and then defer to clause 22.  Post-Kona:
-  Benjamin provided wording.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="436"></a>436. are cv-qualified facet types valid facets?</h3>
-<p><b>Section:</b> 22.3.1.1.2 [locale.facet] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2003-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Is "const std::ctype&lt;char>" a valid template argument to has_facet, use_facet,
-and the locale template ctor? And if so, does it designate the same Facet as
-the non-const "std::ctype&lt;char>?" What about "volatile std::ctype&lt;char>?"
-Different implementations behave differently: some fail to compile, others
-accept such types but behave inconsistently.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 22.1.1.1.2, p1 to read:</p>
-
-<p>Template parameters in this clause which are required to be facets
-are those named Facet in declarations. A program that passes a type
-that is not a facet, or a type that refers to volatile-qualified
-facet, as an (explicit or deduced) template parameter to a locale
-function expecting a facet, is ill-formed.  A const-qualified facet is
-a valid template argument to any locale function that expects a Facet
-template parameter.</p>
-
-<p><i>[Kona: changed the last sentence from a footnote to normative
-text.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="438"></a>438. Ambiguity in the "do the right thing" clause</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2003-10-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Section 23.2.3 [sequence.reqmts], paragraphs 9-11, fixed up the problem
-noticed with statements like:</p>
-<pre>
-vector&lt;int&gt; v(10, 1);
-</pre>
-
-<p>The intent of the above statement was to construct with:</p>
-<pre>
-vector(size_type, const value_type&amp;);
-</pre>
-
-<p>but early implementations failed to compile as they bound to:</p>
-<pre>
-template &lt;class InputIterator&gt;
-vector(InputIterator f, InputIterator l);
-</pre>
-<p>instead.</p>
-
-<p>Paragraphs 9-11 say that if InputIterator is an integral type, then the
-member template constructor will have the same effect as:</p>
-<pre>
-vector&lt;static_cast&lt;size_type&gt;(f), static_cast&lt;value_type&gt;(l));
-</pre>
-<p>(and similarly for the other member template functions of sequences).</p>
-
-<p>There is also a note that describes one implementation technique:</p>
-<blockquote><p>
-   One way that sequence implementors can satisfy this requirement is to
-   specialize the member template for every integral type.
-</p></blockquote>
-
-<p>This might look something like:</p>
-<blockquote>
-<pre>
-template &lt;class T&gt;
-struct vector
-{
-     typedef unsigned size_type;
-
-     explicit vector(size_type) {}
-     vector(size_type, const T&amp;) {}
-
-     template &lt;class I&gt;
-     vector(I, I);
-
-     // ...
-};
-
-template &lt;class T&gt;
-template &lt;class I&gt;
-vector&lt;T&gt;::vector(I, I) { ... }
-
-template &lt;&gt;
-template &lt;&gt;
-vector&lt;int&gt;::vector(int, int) { ... }
-
-template &lt;&gt;
-template &lt;&gt;
-vector&lt;int&gt;::vector(unsigned, unsigned) { ... }
-
-//  ...
-</pre>
-</blockquote>
-
-<p>Label this solution 'A'.</p>
-
-<p>The standard also says:</p>
-<blockquote><p>
- Less cumbersome implementation techniques also exist.
-</p></blockquote>
-<p>
-A popular technique is to not specialize as above, but instead catch
-every call with the member template, detect the type of InputIterator,
-and then redirect to the correct logic.  Something like:
-</p>
-<blockquote>
-<pre>
-template &lt;class T&gt;
-template &lt;class I&gt;
-vector&lt;T&gt;::vector(I f, I l)
-{
-     choose_init(f, l, int2type&lt;is_integral&lt;I&gt;::value&gt;());
-}
-
-template &lt;class T&gt;
-template &lt;class I&gt;
-vector&lt;T&gt;::choose_init(I f, I l, int2type&lt;false&gt;)
-{
-    // construct with iterators
-}
-
-template &lt;class T&gt;
-template &lt;class I&gt;
-vector&lt;T&gt;::choose_init(I f, I l, int2type&lt;true&gt;)
-{
-    size_type sz = static_cast&lt;size_type&gt;(f);
-    value_type v = static_cast&lt;value_type&gt;(l);
-    // construct with sz,v
-}
-</pre>
-</blockquote>
-
-<p>Label this solution 'B'.</p>
-
-<p>Both of these solutions solve the case the standard specifically
-mentions:</p>
-<pre>
-vector&lt;int&gt; v(10, 1);  // ok, vector size 10, initialized to 1
-</pre>
-
-<p>
-However, (and here is the problem), the two solutions have different
-behavior in some cases where the value_type of the sequence is not an
-integral type.  For example consider:
-</p>
-<blockquote><pre>
-     pair&lt;char, char&gt;                     p('a', 'b');
-     vector&lt;vector&lt;pair&lt;char, char&gt; &gt; &gt;   d('a', 'b');
-</pre></blockquote>
-<p>
-The second line of this snippet is likely an error.  Solution A catches
-the error and refuses to compile.  The reason is that there is no
-specialization of the member template constructor that looks like:
-</p>
-<pre>
-template &lt;&gt;
-template &lt;&gt;
-vector&lt;vector&lt;pair&lt;char, char&gt; &gt; &gt;::vector(char, char) { ... }
-</pre>
-
-<p>
-So the expression binds to the unspecialized member template
-constructor, and then fails (compile time) because char is not an
-InputIterator.
-</p>
-
-<p>
-Solution B compiles the above example though.  'a' is casted to an
-unsigned integral type and used to size the outer vector.  'b' is
-static casted to the inner vector using it's explicit constructor:
-</p>
-
-<pre>
-explicit vector(size_type n);
-</pre>
-
-<p>
-and so you end up with a static_cast&lt;size_type&gt;('a') by
-static_cast&lt;size_type&gt;('b') matrix.
-</p>
-
-<p>
-It is certainly possible that this is what the coder intended.  But the
-explicit qualifier on the inner vector has been thwarted at any rate.
-</p>
-
-<p>
-The standard is not clear whether the expression:
-</p>
-
-<pre>
-     vector&lt;vector&lt;pair&lt;char, char&gt; &gt; &gt;   d('a', 'b');
-</pre>
-
-<p>
-(and similar expressions) are:
-</p>
-
-<ol>
-<li>  undefined behavior.</li>
-<li>  illegal and must be rejected.</li>
-<li>  legal and must be accepted.</li>
-</ol>
-
-<p>My preference is listed in the order presented.</p>
-
-<p>There are still other techniques for implementing the requirements of
-paragraphs 9-11, namely the "restricted template technique" (e.g.
-enable_if).  This technique is the most compact and easy way of coding
-the requirements, and has the behavior of #2 (rejects the above
-expression).
-</p>
-
-<p>
-Choosing 1 would allow all implementation techniques I'm aware of.
-Choosing 2 would allow only solution 'A' and the enable_if technique.
-Choosing 3 would allow only solution 'B'.
-</p>
-
-<p>
-Possible wording for a future standard if we wanted to actively reject
-the expression above would be to change "static_cast" in paragraphs
-9-11 to "implicit_cast" where that is defined by:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class T, class U&gt;
-inline
-T implicit_cast(const U&amp; u)
-{
-     return u;
-}
-</pre>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Replace 23.2.3 [sequence.reqmts] paragraphs 9 - 11 with:</p>
-
-<p>For every sequence defined in this clause and in clause lib.strings:</p>
-
-<ul>
-  <li>
-    <p>If the constructor</p>
-       <pre>
-       template &lt;class InputIterator&gt;
-       X(InputIterator f, InputIterator l,
-         const allocator_type&amp; a = allocator_type())
-       </pre>
-    <p>is called with a type InputIterator that does not qualify as
-    an input iterator, then the constructor will behave as if the
-    overloaded constructor:</p>
-       <pre>
-       X(size_type, const value_type&amp; = value_type(),
-         const allocator_type&amp; = allocator_type())
-       </pre>
-    <p>were called instead, with the arguments static_cast&lt;size_type>(f), l and a, respectively.</p>
-  </li>
-
-  <li>
-    <p>If the member functions of the forms:</p>
-       <pre>
-       template &lt;class InputIterator&gt;          //  such as  insert()
-       rt fx1(iterator p, InputIterator f, InputIterator l);
-
-       template &lt;class InputIterator&gt;          //  such as  append(), assign()
-       rt fx2(InputIterator f, InputIterator l);
-
-       template &lt;class InputIterator&gt;          //  such as  replace()
-       rt fx3(iterator i1, iterator i2, InputIterator f, InputIterator l);
-       </pre>
-    <p>are called with a type InputIterator that does not qualify as
-    an input iterator, then these functions will behave as if the
-    overloaded member functions:</p>
-       <pre>
-       rt fx1(iterator, size_type, const value_type&amp;);
-
-       rt fx2(size_type, const value_type&amp;);
-
-       rt fx3(iterator, iterator, size_type, const value_type&amp;);
-       </pre>
-    <p>were called instead, with the same arguments.</p>
-  </li>
-</ul>
-
-<p>In the previous paragraph the alternative binding will fail if f 
-is not implicitly convertible to X::size_type or if l is not implicitly 
-convertible to X::value_type.</p>
-
-<p>
-The extent to which an implementation determines that a type cannot be
-an input iterator is unspecified, except that as a minimum integral
-types shall not qualify as input iterators.
-</p>
-
-
-
-<p><i>[
-Kona: agreed that the current standard requires <tt>v('a', 'b')</tt>
-to be accepted, and also agreed that this is surprising behavior.  The
-LWG considered several options, including something like
-implicit_cast, which doesn't appear to be quite what we want.  We
-considered Howards three options: allow acceptance or rejection,
-require rejection as a compile time error, and require acceptance.  By
-straw poll (1-6-1), we chose to require a compile time error.
-Post-Kona: Howard provided wording.
-]</i></p>
-
-
-<p><i>[
-Sydney: The LWG agreed with this general direction, but there was some
-discomfort with the wording in the original proposed resolution.
-Howard submitted new wording, and we will review this again in
-Redmond.
-]</i></p>
-
-
-<p><i>[Redmond: one very small change in wording: the first argument
-  is cast to size_t.  This fixes the problem of something like
-  <tt>vector&lt;vector&lt;int> >(5, 5)</tt>, where int is not 
-  implicitly convertible to the value type.]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>The proposed resolution fixes:</p>
-
-<pre>
-  vector&lt;int&gt; v(10, 1);
-</pre>
-
-<p>
-since as integral types 10 and 1 must be disqualified as input
-iterators and therefore the (size,value) constructor is called (as
-if).</p>
-
-<p>The proposed resolution breaks:</p>
-
-<pre>
-  vector&lt;vector&lt;T&gt; &gt; v(10, 1);
-</pre>
-
-<p>
-because the integral type 1 is not *implicitly* convertible to
-vector&lt;T&gt;.  The wording above requires a diagnostic.</p>
-
-<p>
-The proposed resolution leaves the behavior of the following code
-unspecified.
-</p>
-
-<pre>
-  struct A
-  {
-    operator int () const {return 10;}
-  };
-
-  struct B
-  {
-    B(A) {}
-  };
-
-  vector&lt;B&gt; v(A(), A());
-</pre>
-
-<p>
-The implementation may or may not detect that A is not an input
-iterator and employee the (size,value) constructor.  Note though that
-in the above example if the B(A) constructor is qualified explicit,
-then the implementation must reject the constructor as A is no longer
-implicitly convertible to B.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="441"></a>441. Is fpos::state const?</h3>
-<p><b>Section:</b> 27.5.4 [fpos] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Vincent Leloup <b>Opened:</b> 2003-11-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fpos">issues</a> in [fpos].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In section 27.5.4.1 [fpos.members] fpos&lt;stateT>::state() is declared
-non const, but in section 27.5.4 [fpos] it is declared const.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section 27.5.4.1 [fpos.members], change the declaration of 
-<tt>fpos&lt;stateT>::state()</tt> to const.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="442"></a>442. sentry::operator bool() inconsistent signature</h3>
-<p><b>Section:</b> 27.7.3.4 [ostream::sentry] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Vincent Leloup <b>Opened:</b> 2003-11-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream::sentry">issues</a> in [ostream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In section 27.7.3.4 [ostream::sentry] paragraph 4, in description part
-basic_ostream&lt;charT, traits>::sentry::operator bool() is declared
-as non const, but in section 27.6.2.3, in synopsis it is declared
-const.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section 27.7.3.4 [ostream::sentry] paragraph 4, change the declaration
-of <tt>sentry::operator bool()</tt> to const.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="443"></a>443. filebuf::close() inconsistent use of EOF</h3>
-<p><b>Section:</b> 27.9.1.4 [filebuf.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Vincent Leloup <b>Opened:</b> 2003-11-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#filebuf.members">issues</a> in [filebuf.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In section 27.9.1.4 [filebuf.members] par6, in effects description of
-basic_filebuf&lt;charT, traits>::close(), overflow(EOF) is used twice;
-should be overflow(traits::eof()).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change overflow(EOF) to overflow(traits::eof()).
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="444"></a>444. Bad use of casts in fstream</h3>
-<p><b>Section:</b> 27.9.1 [fstreams] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Vincent Leloup <b>Opened:</b> 2003-11-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fstreams">issues</a> in [fstreams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-27.9.1.9 [ifstream.members] p1, 27.9.1.13 [ofstream.members] p1, 27.9.1.17 [fstream.members] p1 seems have same problem as exposed in LWG issue
-<a href="lwg-defects.html#252">252</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[Sydney: Genuine defect. 27.8.1.13 needs a cast to cast away
- constness. The other two places are stylistic: we could change the
- C-style casts to const_cast. Post-Sydney: Howard provided wording.
-]</i></p>
-
-
-<p>Change 27.8.1.7/1 from:</p>
-<blockquote><p>
-  Returns: (basic_filebuf&lt;charT,traits>*)&amp;sb.
-</p></blockquote>
-
-<p>to:</p>
-<blockquote><p>
-  Returns: const_cast&lt;basic_filebuf&lt;charT,traits>*>(&amp;sb).
-</p></blockquote>
-
-<p>Change 27.8.1.10/1 from:</p>
-<blockquote><p>
-  Returns: (basic_filebuf&lt;charT,traits>*)&amp;sb.
-</p></blockquote>
-
-<p>to:</p>
-<blockquote><p>
-  Returns: const_cast&lt;basic_filebuf&lt;charT,traits>*>(&amp;sb).
-</p></blockquote>
-
-<p>Change 27.8.1.13/1 from:</p>
-<blockquote><p>
-  Returns: &amp;sb.
-</p></blockquote>
-
-<p>to:</p>
-<blockquote><p>
-  Returns: const_cast&lt;basic_filebuf&lt;charT,traits>*>(&amp;sb).
-</p></blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="445"></a>445. iterator_traits::reference unspecified for some iterator categories</h3>
-<p><b>Section:</b> 24.4.1 [iterator.traits] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2003-12-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.traits">issues</a> in [iterator.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard places no restrictions at all on the reference type
-of input, output, or forward iterators (for forward iterators it
-only specifies that *x must be value_type&amp; and doesn't mention
-the reference type).  Bidirectional iterators' reference type is
-restricted only by implication, since the base iterator's
-reference type is used as the return type of reverse_iterator's
-operator*, which must be T&amp; in order to be a conforming forward
-iterator.
-</p>
-
-<p>
-Here's what I think we ought to be able to expect from an input
-or forward iterator's reference type R, where a is an iterator
-and V is its value_type
-</p>
-
-<ul>
-  <li>
-      *a is convertible to R
-  </li>
-
-  <li>
-      R is convertible to V
-  </li>
-
-  <li>
-      static_cast&lt;V&gt;(static_cast&lt;R&gt;(*a)) is equivalent to
-      static_cast&lt;V&gt;(*a) 
-  </li>
-</ul>
-
-<p>A mutable forward iterator ought to satisfy, for x of type V:</p>
-  <pre>
-      { R r = *a; r = x; } is equivalent to *a = x;
-  </pre>
-
-<p>
-I think these requirements capture existing container iterators
-(including vector&lt;bool&gt;'s), but render istream_iterator invalid;
-its reference type would have to be changed to a constant
-reference.
-</p>
-
-
-<p>
-(Jeremy Siek) During the discussion in Sydney, it was felt that a
-simpler long term solution for this was needed. The solution proposed
-was to require <tt>reference</tt> to be the same type as <tt>*a</tt>
-and <tt>pointer</tt> to be the same type as <tt>a-&gt;</tt>.  Most
-iterators in the Standard Library already meet this requirement. Some
-iterators are output iterators, and do not need to meet the
-requirement, and others are only specified through the general
-iterator requirements (which will change with this resolution). The
-sole case where there is an explicit definition of the reference type
-that will need to change is <tt>istreambuf_iterator</tt> which returns
-<tt>charT</tt> from <tt>operator*</tt> but has a reference type of
-<tt>charT&amp;</tt>. We propose changing the reference type of
-<tt>istreambuf_iterator</tt> to <tt>charT</tt>.
-</p>
-
-<p>The other option for resolving the issue with <tt>pointer</tt>,
-  mentioned in the note below, is to remove <tt>pointer</tt>
-  altogether. I prefer placing requirements on <tt>pointer</tt> to
-  removing it for two reasons. First, <tt>pointer</tt> will become
-  useful for implementing iterator adaptors and in particular,
-  <tt>reverse_iterator</tt> will become more well defined. Second,
-  removing <tt>pointer</tt> is a rather drastic and publicly-visible
-  action to take.</p>
-
-<p>The proposed resolution technically enlarges the requirements for
-iterators, which means there are existing iterators (such as
-<tt>istreambuf_iterator</tt>, and potentially some programmer-defined
-iterators) that will no longer meet the requirements. Will this break
-existing code? The scenario in which it would is if an algorithm
-implementation (say in the Standard Library) is changed to rely on
-<tt>iterator_traits::reference</tt>, and then is used with one of the
-iterators that do not have an appropriately defined
-<tt>iterator_traits::reference</tt>.
-</p>
-
-
-<p>The proposed resolution makes one other subtle change. Previously,
-it was required that output iterators have a <tt>difference_type</tt>
-and <tt>value_type</tt> of <tt>void</tt>, which means that a forward
-iterator could not be an output iterator. This is clearly a mistake,
-so I've changed the wording to say that those types may be
-<tt>void</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>In 24.4.1 [iterator.traits], after:</p>
-
-<blockquote><p>
-be defined as the iterator's difference type, value type and iterator
-category, respectively.
-</p></blockquote>
-
-<p>add</p>
-
-<blockquote><p>
-In addition, the types</p>
-<pre>
-iterator_traits&lt;Iterator&gt;::reference
-iterator_traits&lt;Iterator&gt;::pointer
-</pre>
-<p>must be defined as the iterator's reference and pointer types, that
-is, the same type as the type of <tt>*a</tt> and <tt>a-&gt;</tt>,
-respectively.</p>
-</blockquote>
-
-<p>In 24.4.1 [iterator.traits], change:</p>
-
-<blockquote><p>
-In the case of an output iterator, the types</p>
-<pre>
-iterator_traits&lt;Iterator&gt;::difference_type
-iterator_traits&lt;Iterator&gt;::value_type
-</pre>
-<p>are both defined as <tt>void</tt>.</p>
-</blockquote>
-
-<p>to:</p>
-<blockquote><p>
-In the case of an output iterator, the types</p>
-<pre>
-iterator_traits&lt;Iterator&gt;::difference_type
-iterator_traits&lt;Iterator&gt;::value_type
-iterator_traits&lt;Iterator&gt;::reference
-iterator_traits&lt;Iterator&gt;::pointer
-</pre>
-<p>may be defined as <tt>void</tt>.</p>
-</blockquote>
-
-<p>In 24.6.3 [istreambuf.iterator], change:</p>
-<blockquote>
-<pre>
-typename traits::off_type, charT*, charT&amp;&gt;
-</pre>
-</blockquote>
-<p>to:</p>
-<blockquote>
-<pre>
-typename traits::off_type, charT*, charT&gt;
-</pre>
-</blockquote>
-
-<p><i>[
-Redmond: there was concern in Sydney that this might not be the only place
-where things were underspecified and needed to be changed.  Jeremy
-reviewed iterators in the standard and confirmed that nothing else
-needed to be changed.
-]</i></p>
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="448"></a>448. Random Access Iterators over abstract classes</h3>
-<p><b>Section:</b> 24.2.7 [random.access.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2004-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#random.access.iterators">issues</a> in [random.access.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 76, the random access iterator requirement table, says that the
-return type of a[n] must be "convertible to T".  When an iterator's
-value_type T is an abstract class, nothing is convertible to T.
-Surely this isn't an intended restriction?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the return type to "convertible to T const&amp;".
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="449"></a>449. Library Issue 306 Goes Too Far</h3>
-<p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2004-01-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.types">issues</a> in [support.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Original text:</p>
-<blockquote><p>
-The macro offsetof accepts a restricted set of type arguments in this
-International Standard. type shall be a POD structure or a POD union
-(clause 9). The result of applying the offsetof macro to a field that
-is a static data member or a function member is undefined."
-</p></blockquote>
-
-<p>Revised text:</p>
-<blockquote><p>
-"If type is not a POD structure or a POD union the results are undefined."
-</p></blockquote>
-
-<p>
-Looks to me like the revised text should have replaced only the second
-sentence. It doesn't make sense standing alone.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 18.1, paragraph 5, to:</p>
-
-<blockquote><p>
-The macro offsetof accepts a restricted set of type arguments in this
-International Standard.  If type is not a POD structure or a POD union
-the results are undefined.  The result of applying the offsetof macro
-to a field that is a static data member or a function member is
-undefined."
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="453"></a>453. basic_stringbuf::seekoff need not always fail for an empty stream</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<pre>
-  pos_type basic_stringbuf::seekoff(off_type, ios_base::seekdir,
-                                    ios_base::openmode);
-</pre>
-<p>
-is obliged to fail if nothing has been inserted into the stream. This
-is unnecessary and undesirable. It should be permissible to seek to
-an effective offset of zero.</p>
-
-<p><i>[
- Sydney: Agreed that this is an annoying problem: seeking to zero should be
- legal. Bill will provide wording.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the sentence from:</p>
-<blockquote><p>
-For a sequence to be positioned, if its next pointer (either
-gptr() or pptr()) is a null pointer, the positioning operation
-fails.
-</p></blockquote>
-
-<p>to:</p>
-
-<blockquote><p>
-For a sequence to be positioned, if its next pointer (either
-gptr() or pptr()) is a null pointer and the new offset newoff
-is nonzero, the positioning operation fails.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="455"></a>455. cerr::tie() and wcerr::tie() are overspecified</h3>
-<p><b>Section:</b> 27.4 [iostream.objects] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.objects">issues</a> in [iostream.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Both cerr::tie() and wcerr::tie() are obliged to be null at program
-startup. This is overspecification and overkill. It is both traditional
-and useful to tie cerr to cout, to ensure that standard output is drained
-whenever an error message is written. This behavior should at least be
-permitted if not required. Same for wcerr::tie().
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add to the description of cerr:</p>
-<blockquote><p>
-After the object cerr is initialized, cerr.tie() returns &amp;cout.
-Its state is otherwise the same as required for basic_ios&lt;char>::init
-(lib.basic.ios.cons).
-</p></blockquote>
-
-<p>Add to the description of wcerr:</p>
-
-<blockquote><p>
-After the object wcerr is initialized, wcerr.tie() returns &amp;wcout.
-Its state is otherwise the same as required for basic_ios&lt;wchar_t>::init
-(lib.basic.ios.cons).
-</p></blockquote>
-
-<p><i>[Sydney: straw poll (3-1): we should <i>require</i>, not just
-  permit, cout and cerr to be tied on startup.  Pre-Redmond: Bill will
-  provide wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="456"></a>456. Traditional C header files are overspecified</h3>
-<p><b>Section:</b> 17.6.1.2 [headers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#headers">issues</a> in [headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>The C++ Standard effectively requires that the traditional C headers
-(of the form &lt;xxx.h&gt;) be defined in terms of the newer C++
-headers (of the form &lt;cxxx&gt;). Clauses 17.4.1.2/4 and D.5 combine
-to require that:</p>
-
-<ul>
- <li>Including the header &lt;cxxx&gt; declares a C name in namespace std.</li>
-
- <li> Including the header &lt;xxx.h&gt; declares a C name in namespace std
-    (effectively by including &lt;cxxx&gt;), then imports it into the global
-    namespace with an individual using declaration.</li>
-</ul>
-
-<p>
-The rules were left in this form despited repeated and heated objections
-from several compiler vendors. The C headers are often beyond the direct
-control of C++ implementors. In some organizations, it's all they can do
-to get a few #ifdef __cplusplus tests added. Third-party library vendors
-can perhaps wrap the C headers. But neither of these approaches supports
-the drastic restructuring required by the C++ Standard. As a result, it is
-still widespread practice to ignore this conformance requirement, nearly
-seven years after the committee last debated this topic. Instead, what is
-often implemented is:
-</p>
-
-<ul>
- <li> Including the header &lt;xxx.h&gt; declares a C name in the
- global namespace.</li> 
-
- <li> Including the header &lt;cxxx&gt; declares a C name in the
- global namespace (effectively by including &lt;xxx.h&gt;), then
- imports it into namespace std with an individual using declaration.</li>
-</ul>
-
-<p>
-The practical benefit for implementors with the second approach is that
-they can use existing C library headers, as they are pretty much obliged
-to do. The practical cost for programmers facing a mix of implementations
-is that they have to assume weaker rules:</p>
-
-<ul>
-  <li> If you want to assuredly declare a C name in the global
-  namespace, include &lt;xxx.h&gt;. You may or may not also get the
-  declaration in namespace std.</li>
-
-  <li> If you want to assuredly declare a C name in namespace std,
-  include &lt;cxxx&gt;. You may or may not also get the declaration in
-  the global namespace.</li>
-</ul>
-
-<p>
-There also exists the <i>possibility</i> of subtle differences due to
-Koenig lookup, but there are so few non-builtin types defined in the C
-headers that I've yet to see an example of any real problems in this
-area.
-</p>
-
-<p>
-It is worth observing that the rate at which programmers fall afoul of
-these differences has remained small, at least as measured by newsgroup
-postings and our own bug reports. (By an overwhelming margin, the
-commonest problem is still that programmers include &lt;string&gt; and can't
-understand why the typename string isn't defined -- this a decade after
-the committee invented namespace std, nominally for the benefit of all
-programmers.)
-</p>
-
-<p>
-We should accept the fact that we made a serious mistake and rectify it,
-however belatedly, by explicitly allowing either of the two schemes for
-declaring C names in headers.
-</p>
-
-<p><i>[Sydney: This issue has been debated many times, and will
-  certainly have to be discussed in full committee before any action
-  can be taken.  However, the preliminary sentiment of the LWG was in
-  favor of the change.  (6 yes, 0 no, 2 abstain) Robert Klarer
-  suggests that we might also want to undeprecate the
-  C-style <tt>.h</tt> headers.]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 17.6.1.2 [headers], para. 4:
-</p>
-
-<blockquote><p>
-Except as noted in clauses 18 through 27 and Annex D, the contents of each
-header <i>cname</i> shall be the same as that of the corresponding header
-<i>name.h</i>, as specified in ISO/IEC 9899:1990 Programming Languages C (Clause
-7), or ISO/IEC:1990 Programming Languages-C AMENDMENT 1: C Integrity, (Clause
-7), as appropriate, as if by inclusion. In the C++ Standard Library, however,
-the declarations <del>and definitions</del> (except for names which are defined
-as macros in C) are within namespace scope (3.3.5) of the namespace std. 
-<ins>It is unspecified whether these names are first declared within the global
-namespace scope and are then injected into namespace std by explicit
-using-declarations (7.3.3 [namespace.udecl]).</ins>
-</p></blockquote>
-
-<p>
-Change D.5 [depr.c.headers], para. 2-3:
-</p>
-
-<blockquote>
-<p>
--2- Every C header, each of which has a name of the form <i>name.h</i>, behaves
-as if each name placed in the Standard library namespace by the corresponding
-<i>cname</i> header is <del>also</del> placed within the <ins>global</ins>
-namespace scope<ins>.</ins> <del>of the namespace <tt>std</tt> and is followed
-by an explicit <i>using-declaration</i> (7.3.3 [namespace.udecl]).</del>
-<ins>It is unspecified whether these names are first declared or defined within
-namespace scope (3.3.6 [basic.scope.namespace]) of the namespace
-<tt>std</tt> and are then injected into the global namespace scope by explicit
-using-declarations (7.3.3 [namespace.udecl]).</ins>
-</p>
-<p>
--3- [<i>Example:</i> The header <tt>&lt;cstdlib&gt;</tt> <ins>assuredly</ins>
-provides its declarations and definitions within the namespace <tt>std</tt>.
-<ins>It may also provide these names within the global namespace.</ins> The
-header <tt>&lt;stdlib.h&gt;</tt> <del>makes these available also in</del>
-<ins>assuredly provides the same declarations and definitions within</ins> the
-global namespace, much as in the C Standard. <ins>It may also provide these
-names within the namespace <tt>std</tt>.</ins> <i>-- end example</i>]
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="457"></a>457. bitset constructor: incorrect number of initialized bits</h3>
-<p><b>Section:</b> 20.6.1 [bitset.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dag Henriksson <b>Opened:</b> 2004-01-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.cons">issues</a> in [bitset.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The constructor from unsigned long says it initializes "the first M
-bit positions to the corresponding bit values in val. M is the smaller
-of N and the value CHAR_BIT * sizeof(unsigned long)."
-</p>
-
-<p>
-Object-representation vs. value-representation strikes again. CHAR_BIT *
-sizeof (unsigned long) does not give us the number of bits an unsigned long
-uses to hold the value. Thus, the first M bit position above is not
-guaranteed to have any corresponding bit values in val.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 20.6.1 [bitset.cons] paragraph 2, change "M is the smaller of
-  N and the value CHAR_BIT * sizeof (unsigned long). (249)" to
-  "<tt>M</tt> is the smaller of <tt>N</tt> and the number of bits in
-  the value representation (section 3.9 [basic.types]) of <tt>unsigned
-  long</tt>."
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="460"></a>460. Default modes missing from basic_fstream member specifications</h3>
-<p><b>Section:</b> 27.9.1 [fstreams] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ben Hutchings <b>Opened:</b> 2004-04-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#fstreams">issues</a> in [fstreams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The second parameters of the non-default constructor and of the open
-member function for basic_fstream, named "mode", are optional
-according to the class declaration in 27.8.1.11 [lib.fstream].  The
-specifications of these members in 27.8.1.12 [lib.fstream.cons] and
-27.8.1.13 lib.fstream.members] disagree with this, though the
-constructor declaration has the "explicit" function-specifier implying
-that it is intended to be callable with one argument.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 27.9.1.15 [fstream.cons], change</p>
-<pre>
-  explicit basic_fstream(const char* s, ios_base::openmode mode); 
-</pre>
-<p>to</p>
-<pre>
-  explicit basic_fstream(const char* s,
-                         ios_base::openmode mode = ios_base::in|ios_base::out);
-</pre>
-<p>In 27.9.1.17 [fstream.members], change</p>
-<pre>
-  void open(const char*s, ios_base::openmode mode); 
-</pre>
-<p>to</p>
-<pre>
-  void open(const char*s,
-            ios_base::openmode mode = ios_base::in|ios_base::out);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="461"></a>461. time_get hard or impossible to implement</h3>
-<p><b>Section:</b> 22.4.5.1.2 [locale.time.get.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bill Plauger <b>Opened:</b> 2004-03-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Template time_get currently contains difficult, if not impossible,
-requirements for do_date_order, do_get_time, and do_get_date. All require
-the implementation to scan a field generated by the %x or %X conversion
-specifier in strftime. Yes, do_date_order can always return no_order, but
-that doesn't help the other functions. The problem is that %x can be
-nearly anything, and it can vary widely with locales. It's horribly
-onerous to have to parse "third sunday after Michaelmas in the year of
-our Lord two thousand and three," but that's what we currently ask of
-do_get_date. More practically, it leads some people to think that if
-%x produces 10.2.04, we should know to look for dots as separators. Still
-not easy.
-</p>
-
-<p>
-Note that this is the <i>opposite</i> effect from the intent stated in the
-footnote earlier in this subclause:
-</p>
-
-<blockquote><p>
-"In other words, user confirmation is required for reliable parsing of
-user-entered dates and times, but machine-generated formats can be
-parsed reliably. This allows parsers to be aggressive about interpreting
-user variations on standard formats."
-</p></blockquote>
-
-<p>
-We should give both implementers and users an easier and more reliable
-alternative: provide a (short) list of alternative delimiters and say
-what the default date order is for no_order. For backward compatibility,
-and maximum latitude, we can permit an implementation to parse whatever
-%x or %X generates, but we shouldn't require it.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><b>In the description:</b></p>
-<pre>
-iter_type do_get_time(iter_type s, iter_type end, ios_base&amp; str,
-        ios_base::iostate&amp; err, tm* t) const;
-</pre>
-
-<p>
-2 Effects: Reads characters starting at suntil it has extracted those
-struct tm members, and remaining format characters, used by
-time_put&lt;&gt;::put to produce the format specified by 'X', or until it
-encounters an error or end of sequence.
-</p>
-
-<p><b>change:</b> 'X'</p>
-
-<p><b>to:</b> "%H:%M:%S"</p>
-
-
-<p>Change</p>
-<pre>
-iter_type do_get_date(iter_type s, iter_type end, ios_base&amp; str,
-        ios_base::iostate&amp; err, tm* t) const;
-
-4 Effects: Reads characters starting at s until it has extracted those
-struct tm members, and remaining format characters, used by
-time_put&lt;>::put to produce the format specified by 'x', or until it
-encounters an error.
-</pre>
-
-<p>to</p>
-<pre>
-iter_type do_get_date(iter_type s, iter_type end, ios_base&amp; str,
-        ios_base::iostate&amp; err, tm* t) const;
-</pre>
-
-<p>
-4 Effects: Reads characters starting at s until it has extracted those
-struct tm members, and remaining format characters, used by
-time_put&lt;>::put to produce one of the following formats, or until it
-encounters an error. The format depends on the value returned by
-date_order() as follows:
-</p>
-
-<pre>
-        date_order()  format
-
-        no_order      "%m/%d/%y"
-        dmy           "%d/%m/%y"
-        mdy           "%m/%d/%y"
-        ymd           "%y/%m/%d"
-        ydm           "%y/%d/%m"
-</pre>
-<p>
-An implementation may also accept additional implementation-defined formats.
-</p>
-
-<p><i>[Redmond: agreed that this is a real problem.  The solution is
-  probably to match C99's parsing rules.  Bill provided wording.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="464"></a>464. Suggestion for new member functions in standard containers</h3>
-<p><b>Section:</b> 23.3.6 [vector], 23.4.4 [map] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2004-05-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>To add slightly more convenience to vector&lt;T> and map&lt;Key,T> we should consider to add</p>
-<ol>
-<li> add vector&lt;T>::data() member (const and non-const version)
-semantics: if( empty() ) return 0; else return buffer_;</li>
-<li> add map&lt;Key,T>::at( const Key&amp; k ) member (const and non-const version)
-<i>semantics</i>: iterator i = find( k ); if( i != end() ) return *i; else throw range_error();</li>
-</ol>
-
-<p>Rationale:</p>
-
-<ul>
-<li>To obtain a pointer to the vector's buffer, one must use either operator[]() (which can give undefined  behavior for empty vectors) or at() (which will then throw if the vector is empty).  </li>
-<li>tr1::array&lt;T,sz> already has a data() member</li>
-<li>e cannot use operator[]() when T is not DefaultDonstructible</li>
-<li>Neither when the map is const.</li>
-<li>when we want to make sure we don't add an element accidently</li>
-<li>when it should be considered an error if a key is not in the map</li>
-</ul>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 23.3.6 [vector], add the following to the <tt>vector</tt>
-  synopsis after "element access" and before "modifiers":</p>
-<pre>
-  // <i>[lib.vector.data] data access</i>
-  pointer       data();
-  const_pointer data() const;
-</pre>
-
-<p>Add a new subsection of 23.3.6 [vector]:</p>
-<blockquote>
-<p>23.2.4.x <tt>vector</tt> data access</p>
-<pre>
-   pointer       data();
-   const_pointer data() const;
-</pre>
-<p><b>Returns:</b> A pointer such that [data(), data() + size()) is a valid
-   range.  For a non-empty vector, data() == &amp;front().</p>
-<p><b>Complexity:</b> Constant time.</p>
-<p><b>Throws:</b> Nothing.</p>
-</blockquote>
-
-<p>In 23.4.4 [map], add the following to the <tt>map</tt>
-synopsis immediately after the line for operator[]:</p>
-<pre>
-  T&amp;       at(const key_type&amp; x);
-  const T&amp; at(const key_type&amp; x) const;
-</pre>
-
-<p>Add the following to 23.4.4.3 [map.access]:</p>
-<blockquote>
-<pre>
-  T&amp;       at(const key_type&amp; x);
-  const T&amp; at(const key_type&amp; x) const;
-</pre>
-
-<p><b>Returns:</b> A reference to the element whose key is equivalent
-  to x, if such an element is present in the map.</p>
-<p><b>Throws:</b> <tt>out_of_range</tt> if no such element is present.</p>
-
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>Neither of these additions provides any new functionality but the
-  LWG agreed that they are convenient, especially for novices.  The
-  exception type chosen for <tt>at</tt>, <tt>std::out_of_range</tt>,
-  was chosen to match <tt>vector::at</tt>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="465"></a>465. Contents of &lt;ciso646></h3>
-<p><b>Section:</b> 17.6.1.2 [headers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Steve Clamage <b>Opened:</b> 2004-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#headers">issues</a> in [headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>C header &lt;iso646.h> defines macros for some operators, such as
-not_eq for !=.</p>
-
-<p>Section 17.6.1.2 [headers] "Headers" says that except as noted in
-clauses 18 through 27, the &lt;cname> C++ header contents are the same
-as the C header &lt;name.h>. In particular, table 12 lists
-&lt;ciso646> as a C++ header.</p>
-
-<p>I don't find any other mention of &lt;ciso646>, or any mention of
-&lt;iso646.h>, in clauses 17 thorough 27. That implies that the
-contents of &lt;ciso646> are the same as C header &lt;iso646.h>.</p>
-
-<p>Annex C (informative, not normative) in [diff.header.iso646.h] C.2.2.2
-"Header &lt;iso646.h>" says that the alternative tokens are not
-defined as macros in &lt;ciso646>, but does not mention the contents
-of &lt;iso646.h>.</p>
-
-<p>I don't find any normative text to support C.2.2.2.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to section 17.4.1.2 Headers [lib.headers] a new paragraph after
-  paragraph 6 (the one about functions must be functions):</p> 
-
-<blockquote>
-<p>Identifiers that are keywords or operators in C++ shall not be defined
-as macros in C++ standard library headers. 
-[Footnote:In particular, including the standard header &lt;iso646.h>
-or &lt;ciso646> has no effect. </p>
-</blockquote>
-
-<p><i>[post-Redmond: Steve provided wording.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="467"></a>467. char_traits::lt(), compare(), and memcmp()</h3>
-<p><b>Section:</b> 21.2.3.1 [char.traits.specializations.char] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Table 37 describes the requirements on Traits::compare() in terms of
-those on Traits::lt(). 21.1.3.1, p6 requires char_traits&lt;char>::lt()
-to yield the same result as operator&lt;(char, char).
-</p>
-
-<p>
-Most, if not all, implementations of char_traits&lt;char>::compare()
-call memcmp() for efficiency. However, the C standard requires both
-memcmp() and strcmp() to interpret characters under comparison as
-unsigned, regardless of the signedness of char. As a result, all
-these char_traits implementations fail to meet the requirement
-imposed by Table 37 on compare() when char is signed.
-</p>
-
-
-<p>Read email thread starting with c++std-lib-13499 for more. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p>Change 21.1.3.1, p6 from</p>
-<blockquote><p>
-    The two-argument members assign, eq, and lt are defined identically
-    to the built-in operators =, ==, and &lt; respectively.
-</p></blockquote>
-<p>to</p>
-<blockquote><p>
-  The two-argument member assign is defined identically to
-  the built-in operator =. The two
-  argument members eq and lt are defined identically to
-  the built-in operators == and &lt; for type unsigned char.
-</p></blockquote>
-
-<p><i>[Redmond: The LWG agreed with this general direction, but we
-  also need to change <tt>eq</tt> to be consistent with this change.
-  Post-Redmond: Martin provided wording.]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="468"></a>468. unexpected consequences of ios_base::operator void*()</h3>
-<p><b>Section:</b> 27.5.5.4 [iostate.flags] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>The program below is required to compile but when run it typically
-produces unexpected results due to the user-defined conversion from
-std::cout or any object derived from basic_ios to void*.
-</p>
-
-<pre>
-    #include &lt;cassert>
-    #include &lt;iostream>
-
-    int main ()
-    {
-        assert (std::cin.tie () == std::cout);
-        // calls std::cout.ios::operator void*()
-    }
-</pre>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Replace std::basic_ios&lt;charT, traits>::operator void*() with another
-conversion operator to some unspecified type that is guaranteed not
-to be convertible to any other type except for bool (a pointer-to-member
-might be one such suitable type). In addition, make it clear that the
-pointer type need not be a pointer to a complete type and when non-null,
-the value need not be valid.
-</p>
-
-<p>Specifically, change in [lib.ios] the signature of</p>
-<pre>
-    operator void*() const;
-</pre>
-<p>to</p>
-<pre>
-    operator unspecified-bool-type() const;
-</pre>
-<p>and change [lib.iostate.flags], p1 from</p>
-<pre>
-    operator void*() const;
-</pre>
-<p>to</p>
-<pre>
-operator unspecified-bool-type() const;
-
-     -1- Returns: if fail() then a value that will evaluate false in a
-      boolean context; otherwise a value that will evaluate true in a
-      boolean context. The value type returned shall not be
-      convertible to int.
-
-     -2- [Note: This conversion can be used in contexts where a bool
-      is expected (e.g., an if condition); however, implicit
-      conversions (e.g., to int) that can occur with bool are not
-      allowed, eliminating some sources of user error. One possible
-      implementation choice for this type is pointer-to-member.  - end
-      note]
-</pre>
-
-<p><i>[Redmond: 5-4 straw poll in favor of doing this.]</i></p>
-
-<p><i>[Lillehammer: Doug provided revised wording for
-  "unspecified-bool-type".]</i></p>
- 
-
-
-
-
-
-
-
-<hr>
-<h3><a name="469"></a>469. vector&lt;bool&gt; ill-formed relational operators</h3>
-<p><b>Section:</b> 23.3.6 [vector] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The overloads of relational operators for vector&lt;bool> specified
-in [lib.vector.bool] are redundant (they are semantically identical
-to those provided for the vector primary template) and may even be
-diagnosed as ill-formed (refer to Daveed Vandevoorde's explanation
-in c++std-lib-13647).
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove all overloads of overloads of relational operators for
-vector&lt;bool> from [lib.vector.bool].
-</p>
-
-
-
-
-<hr>
-<h3><a name="471"></a>471. result of <tt>what()</tt> implementation-defined</h3>
-<p><b>Section:</b> 18.8.1 [exception] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>[lib.exception] specifies the following:</p>
-<pre>
-    exception (const exception&amp;) throw();
-    exception&amp; operator= (const exception&amp;) throw();
-
-    -4- Effects: Copies an exception object.
-    -5- Notes: The effects of calling what() after assignment
-        are implementation-defined.
-</pre>
-
-<p>
-First, does the Note only apply to the assignment operator? If so,
-what are the effects of calling what() on a copy of an object? Is
-the returned pointer supposed to point to an identical copy of
-the NTBS returned by what() called on the original object or not?
-</p>
-
-<p>
-Second, is this Note intended to extend to all the derived classes
-in section 19? I.e., does the standard provide any guarantee for
-the effects of what() called on a copy of any of the derived class
-described in section 19?
-</p>
-
-<p>
-Finally, if the answer to the first question is no, I believe it
-constitutes a defect since throwing an exception object typically
-implies invoking the copy ctor on the object. If the answer is yes,
-then I believe the standard ought to be clarified to spell out
-exactly what the effects are on the copy (i.e., after the copy
-ctor was called).
-</p>
-
-<p><i>[Redmond: Yes, this is fuzzy.  The issue of derived classes is
-  fuzzy too.]</i></p>
-
-
-<p><i>[
-Batavia: Howard provided wording.
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Eric concerned this is unimplementable, due to nothrow guarantees.
-Suggested implementation would involve reference counting.
-</p>
-<p>
-Is the implied reference counting subtle enough to call out a note on
-implementation? Probably not.
-</p>
-<p>
-If reference counting required, could we tighten specification further
-to require same pointer value? Probably an overspecification, especially
-if exception classes defer evalutation of final string to calls to
-what().
-</p>
-<p>
-Remember issue moved open and not resolved at Batavia, but cannot
-remember who objected to canvas a disenting opinion - please speak up if
-you disagree while reading these minutes!
-</p>
-<p>
-Move to Ready as we are accepting words unmodified.
-</p>
-</blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-The issue was pulled from Ready.  It needs to make clear that only homogenous copying
-is intended to be supported, not coping from a derived to a base.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard supplied the following replacement wording
-for paragraph 7 of the proposed resolution:
-</p>
-<blockquote><p>
-<ins>-7- <i>Postcondition:</i> <tt>what()</tt> shall return the same NTBS
-  as would be obtained by using <tt>static_cast</tt>
-  to cast the rhs to the same types as the lhs
-  and then calling <tt>what()</tt> on that possibly sliced object.</ins>
-</p></blockquote>
-<p>
-Pete asks what "the same NTBS" means.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-30 Niels adds:
-]</i></p>
-
-
-<blockquote><p>
-Further discussion in the thread starting with c++std-lib-24512.
-</p></blockquote>
-
-<p><i>[
-2009-09-24 Niels provided updated wording:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think the resolution should at least guarantee
-that the result of <tt>what()</tt> is independent of whether the compiler does
-copy-elision. And for any class derived from <tt>std::excepion</tt> that has a
-constructor that allows specifying a <tt>what_arg</tt>, it should make sure that
-the text of a user-provided <tt>what_arg</tt> is preserved, when the object is
-copied. Note that all the implementations I've tested already appear to
-satisfy the proposed resolution, including MSVC 2008 SP1, Apache
-stdcxx-4.2.1, GCC 4.1.2, GCC 4.3.2, and CodeGear C++ 6.13.
-</p>
-<p>
-The proposed resolution was updated with help from Daniel Kr&uuml;gler;
-the update aims to clarify that the proposed postcondition only
-applies to homogeneous copying.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready after inserting "publicly accessible" in two places.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 18.8.1 [exception] to:
-</p>
-
-<blockquote>
-<p>
--1- The class <tt>exception</tt> defines the base class for the types of
-objects thrown as exceptions by C++ standard library components, and
-certain expressions, to report errors detected during program execution.
-</p>
-<p><ins>
-Each standard library class <tt>T</tt> that derives from class
-<tt>exception</tt> shall have a publicly accessible copy constructor and a publicly accessible copy assignment
-operator that do not exit with an exception. These member functions
-shall preserve the following postcondition: If two objects <i>lhs</i>
-and <i>rhs</i> both have dynamic type <tt>T</tt>, and <i>lhs</i> is a
-copy of <i>rhs</i>, then <tt>strcmp(<i>lhs</i>.what(),
-<i>rhs</i>.what()) == 0</tt>.
-</ins></p>
-<p>
- ...
-</p>
-
-<pre>exception(const exception&amp; <ins>rhs</ins>) throw();
-exception&amp; operator=(const exception&amp; <ins>rhs</ins>) throw();</pre>
-
-<blockquote>
-<p>
--4- <i>Effects:</i> Copies an exception object.
-</p>
-<p>
-<del> -5- <i>Remarks:</i> The effects of calling <tt>what()</tt> after assignment
-are implementation-defined.</del>
-</p>
-<p>
-<ins>-5- <i>Postcondition:</i>
-	If <tt>*this</tt>
-	and <i>rhs</i> both have dynamic type <tt>exception</tt>
-	then <tt>strcmp(what(), <i>rhs</i>.what()) == 0</tt>.</ins>
-</p>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="473"></a>473. underspecified <tt>ctype</tt> calls</h3>
-<p><b>Section:</b> 22.4.1.1 [locale.ctype] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Most <tt>ctype</tt> member functions come in two forms: one that operates
-on a single character at a time and another form that operates
-on a range of characters. Both forms are typically described by
-a single Effects and&#47;or Returns clause.
-</p>
-<p>
-The Returns clause of each of the single-character non-virtual forms
-suggests that the function calls the corresponding single character
-virtual function, and that the array form calls the corresponding
-virtual array form. Neither of the two forms of each virtual member
-function is required to be implemented in terms of the other.
-</p>
-<p>
-There are three problems:
-</p>
-<p>
-1. One is that while the standard does suggest that each non-virtual
-member function calls the corresponding form of the virtual function,
-it doesn't actually explicitly require it.
-</p>
-<p>
-Implementations that cache results from some of the virtual member
-functions for some or all values of their arguments might want to
-call the array form from the non-array form the first time to fill
-the cache and avoid any or most subsequent virtual calls. Programs
-that rely on each form of the virtual function being called from
-the corresponding non-virtual function will see unexpected behavior
-when using such implementations.
-</p>
-<p>
-2. The second problem is that either form of each of the virtual
-functions can be overridden by a user-defined function in a derived
-class to return a value that is different from the one produced by
-the virtual function of the alternate form that has not been
-overriden.
-</p>
-<p>
-Thus, it might be possible for, say, <tt>ctype::widen(c)</tt> to return one
-value, while for <tt>ctype::widen(&amp;c, &amp;c + 1, &amp;wc)</tt> to set
-<tt>wc</tt> to another value. This is almost certainly not intended. Both
-forms of every function should be required to return the same result
-for the same character, otherwise the same program using an
-implementation that calls one form of the functions will behave
-differently than when using another implementation that calls the
-other form of the function "under the hood."
-</p>
-<p>
-3. The last problem is that the standard text fails to specify whether
-one form of any of the virtual functions is permitted to be implemented
-in terms of the other form or not, and if so, whether it is required
-or permitted to call the overridden virtual function or not.
-</p>
-<p>
-Thus, a program that overrides one of the virtual functions so that
-it calls the other form which then calls the base member might end
-up in an infinite loop if the called form of the base implementation
-of the function in turn calls the other form.
-</p>
-<p>
-Lillehammer: Part of this isn't a real problem. We already talk about
-caching. 22.1.1&#47;6 But part is a real problem. <tt>ctype</tt> virtuals may call
-each other, so users don't know which ones to override to avoid avoid
-infinite loops.</p>
-
-<p>This is a problem for all facet virtuals, not just <tt>ctype</tt> virtuals,
-so we probably want a blanket statement in clause 22 for all
-facets. The LWG is leaning toward a blanket prohibition, that a
-facet's virtuals may never call each other. We might want to do that
-in clause 27 too, for that matter. A review is necessary.  Bill will
-provide wording.</p>
-
-<p><i>[
-2009-07 Frankfurt, Howard provided wording directed by consensus.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add paragraph 3 to 22.4 [locale.categories]:
-</p>
-
-<blockquote><p><ins>
--3- Within this clause it is unspecified if one virtual function calls another
-virtual function.
-</ins></p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-We are explicitly not addressing bullet
-item #2, thus giving implementors more latitude. Users will have to
-override both virtual functions, not just one.
-</p>
-
-
-
-
-<hr>
-<h3><a name="474"></a>474. confusing Footnote 297</h3>
-<p><b>Section:</b> 27.7.3.6.4 [ostream.inserters.character] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2004-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.inserters.character">issues</a> in [ostream.inserters.character].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-I think Footnote 297 is confused. The paragraph it applies to seems
-quite clear in that widen() is only called if the object is not a char
-stream (i.e., not basic_ostream&lt;char>), so it's irrelevant what the
-value of widen(c) is otherwise.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-I propose to strike the Footnote.
-</p>
-
-
-
-
-<hr>
-<h3><a name="475"></a>475. May the function object passed to for_each modify the elements of the iterated sequence?</h3>
-<p><b>Section:</b> 25.2.4 [alg.foreach] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Stephan T. Lavavej, Jaakko Jarvi <b>Opened:</b> 2004-07-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.foreach">issues</a> in [alg.foreach].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is not clear whether the function object passed to for_each is allowed to
-modify the elements of the sequence being iterated over.
-</p>
-
-<p>
-for_each is classified without explanation in [lib.alg.nonmodifying], "25.1
-Non-modifying sequence operations". 'Non-modifying sequence operation' is
-never defined.
-</p>
-
-<p>
-25(5) says: "If an algorithm's Effects section says that a value pointed to
-by any iterator passed as an argument is modified, then that algorithm has
-an additional type requirement: The type of that argument shall satisfy the
-requirements of a mutable iterator (24.1)."
-</p>
-
-<p>for_each's Effects section does not mention whether arguments can be
-modified:</p>
-
-<blockquote><p>
-  "Effects: Applies f to the result of dereferencing every iterator in the
-   range [first, last), starting from first and proceeding to last - 1."
-</p></blockquote>
-
-<p>
-Every other algorithm in [lib.alg.nonmodifying] is "really" non-modifying in
-the sense that neither the algorithms themselves nor the function objects
-passed to the algorithms may modify the sequences or elements in any way.
-This DR affects only for_each.
-</p>
-
-<p>
-We suspect that for_each's classification in "non-modifying sequence
-operations" means that the algorithm itself does not inherently modify the
-sequence or the elements in the sequence, but that the function object
-passed to it may modify the elements it operates on. 
-</p>
-
-<p>
-The original STL document by Stepanov and Lee explicitly prohibited the
-function object from modifying its argument.
-The "obvious" implementation of for_each found in several standard library 
-implementations, however, does not impose this restriction.
-As a result, we suspect that the use of for_each with function objects that modify
-their arguments is wide-spread. 
-If the restriction was reinstated, all such code would become non-conforming.
-Further, none of the other algorithms in the Standard
-could serve the purpose of for_each (transform does not guarantee the order in
-which its function object is called). 
-</p>
-
-<p>
-We suggest that the standard be clarified to explicitly allow the function object 
-passed to for_each modify its argument.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add a nonnormative note to the Effects in 25.2.4 [alg.foreach]: If
-the type of 'first' satisfies the requirements of a mutable iterator,
-'f' may apply nonconstant functions through the dereferenced iterators
-passed to it.
-</p>
-
-
-
-<p><b>Rationale:</b></p>
-<p>The LWG believes that nothing in the standard prohibits function
-  objects that modify the sequence elements. The problem is that
-  for_each is in a secion entitled "nonmutating algorithms", and the
-  title may be confusing.  A nonnormative note should clarify that.</p>
-
-
-
-
-
-<hr>
-<h3><a name="478"></a>478. Should forward iterator requirements table have a line for r->m?</h3>
-<p><b>Section:</b> 24.2.5 [forward.iterators] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2004-07-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward.iterators">issues</a> in [forward.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#477">477</a></p>
-<p><b>Discussion:</b></p>
-<p>
-The Forward Iterator requirements table contains the following:
-</p>
-<pre>
- expression  return type         operational  precondition
-                                  semantics
-  ==========  ==================  ===========  ==========================
-  a->m        U&amp; if X is mutable, (*a).m       pre: (*a).m is well-defined.
-              otherwise const U&amp;
-
-  r->m        U&amp;                  (*r).m       pre: (*r).m is well-defined.
-</pre>
-
-<p>The second line may be unnecessary.  Paragraph 11 of
-  [lib.iterator.requirements] says:
-</p>
-
-<blockquote><p>
-   In the following sections, a and b denote values of type const X, n
-   denotes a value of the difference type Distance, u, tmp, and m
-   denote identifiers, r denotes a value of X&amp;, t denotes a value of
-   value type T, o denotes a value of some type that is writable to
-   the output iterator.
-</p></blockquote>
-
-<p>
-Because operators can be overloaded on an iterator's const-ness, the
-current requirements allow iterators to make many of the operations
-specified using the identifiers a and b invalid for non-const
-iterators.</p>
-
-<p>Related issue: <a href="lwg-closed.html#477">477</a></p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Remove the "r->m" line from the Forward Iterator requirements
-table. Change</p>
-<blockquote><p>
-    "const X"
-</p></blockquote>
-
-<p> to </p>
-
-<blockquote><p>
-    "X or const X" 
-</p></blockquote>
-
-<p>in paragraph 11 of [lib.iterator.requirements].</p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-This is a defect because it constrains an lvalue to returning a modifiable lvalue.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="482"></a>482. Swapping pairs</h3>
-<p><b>Section:</b> 20.3 [pairs], 20.4 [tuple] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2004-09-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>(Based on recent comp.std.c++ discussion)</p>
-
-<p>Pair (and tuple) should specialize std::swap to work in terms of
-std::swap on their components.  For example, there's no obvious reason
-why swapping two objects of type pair&lt;vector&lt;int>,
-list&lt;double> > should not take O(1).</p>
-
-<p><i>[Lillehammer: We agree it should be swappable.  Howard will
-  provide wording.]</i></p>
-
-
-<p><i>[
-Post Oxford:  We got <tt>swap</tt> for <tt>pair</tt> but accidently
-missed <tt>tuple</tt>.  <tt>tuple::swap</tt> is being tracked by <a href="lwg-defects.html#522">522</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Wording provided in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html#20.2.3%20-%20Pairs">N1856</a>.
-</p>
-
-<p><b>Rationale:</b></p>
-<p>
-Recommend <del>NAD</del><ins>Resolved</ins>, fixed by 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html#20.2.3%20-%20Pairs">N1856</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="485"></a>485. output iterator insufficiently constrained</h3>
-<p><b>Section:</b> 24.2.4 [output.iterators] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2004-10-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#output.iterators">active issues</a> in [output.iterators].</p>
-<p><b>View all other</b> <a href="lwg-index.html#output.iterators">issues</a> in [output.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The note on 24.1.2 Output iterators insufficiently limits what can be
-performed on output iterators. While it requires that each iterator is
-progressed through only once and that each iterator is written to only
-once, it does not require the following things:</p>
-
-<p>Note: Here it is assumed that <tt>x</tt> is an output iterator of type <tt>X</tt> which
-has not yet been assigned to.</p>
-
-<p>a) That each value of the output iterator is written to:
-The standard allows:
-<tt>++x; ++x; ++x;</tt>
-</p>
-
-<p>
-b) That assignments to the output iterator are made in order
-<tt>X a(x); ++a; *a=1; *x=2;</tt> is allowed
-</p>
-
-<p>
-c) Chains of output iterators cannot be constructed:
-<tt>X a(x); ++a; X b(a); ++b; X c(b); ++c;</tt> is allowed, and under the current
-wording (I believe) <tt>x,a,b,c</tt> could be written to in any order.
-</p>
-
-<p>I do not believe this was the intension of the standard?</p>
-<p><i>[Lillehammer: Real issue.  There are lots of constraints we
-  intended but didn't specify.  Should be solved as part of iterator
-  redesign.]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Bill provided wording according to consensus.
-</p></blockquote>
-
-<p><i>[
-2009-07-21 Alisdair requests change from Review to Open.  See thread starting
-with c++std-lib-24459 for discussion.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Modified wording.  Set to Review.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready after looking at again in a larger group in Santa Cruz.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by N3066.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Table 101 &mdash; Output iterator requirements in 24.2.4 [output.iterators]:
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 101 &mdash; Output iterator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion/note pre-/post-condition</th>
-</tr>
-
-<tr>
-<td>
-<tt>X(a)</tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<tt>a = t</tt> is equivalent to <tt>X(a) = t</tt>. note: a destructor is assumed.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X u(a);</tt><br/>
-<tt>X u = a;</tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>*r = o</tt>
-</td>
-<td>
-result is not used
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<ins>
-Post: <tt>r</tt> is not required to be dereferenceable.  <tt>r</tt> is incrementable.
-</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>++r</tt>
-</td>
-<td>
-<tt>X&amp;</tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-<tt>&amp;r == &amp;++r</tt>
-<ins>
-Post: <tt>r</tt> is dereferenceable, unless otherwise specified.  <tt>r</tt> is not required to be incrementable.
-</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>r++</tt>
-</td>
-<td>
-convertible to <tt>const X&amp;</tt>
-</td>
-<td>
-<tt>{X tmp = r;<br/>++r;<br/>return tmp;}</tt>
-</td>
-<td>
-<ins>
-Post: <tt>r</tt> is dereferenceable, unless otherwise specified. <tt>r</tt> is not required to be incrementable.
-</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>*r++ = o;</tt>
-</td>
-<td>
-result is not used
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="488"></a>488. rotate throws away useful information</h3>
-<p><b>Section:</b> 25.3.11 [alg.rotate] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2004-11-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.rotate">issues</a> in [alg.rotate].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-rotate takes 3 iterators:  first, middle and last which point into a
-sequence, and rearranges the sequence such that the subrange [middle,
-last) is now at the beginning of the sequence and the subrange [first,
-middle) follows.  The return type is void. 
-</p>
-
-<p>
-In many use cases of rotate, the client needs to know where the
-subrange [first, middle) starts after the rotate is performed.  This
-might look like: 
-</p>
-<pre>
-  rotate(first, middle, last);
-  Iterator i = advance(first, distance(middle, last));
-</pre>
-
-<p>
-Unless the iterators are random access, the computation to find the
-start of the subrange [first, middle) has linear complexity.  However,
-it is not difficult for rotate to return this information with
-negligible additional computation expense.  So the client could code: 
-</p>
-<pre>
-  Iterator i = rotate(first, middle, last);
-</pre>
-
-<p>
-and the resulting program becomes significantly more efficient.
-</p>
-
-<p>
-While the backwards compatibility hit with this change is not zero, it
-is very small (similar to that of lwg <a href="lwg-defects.html#130">130</a>), and there is
-a significant benefit to the change. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>In 25 [algorithms] p2, change:</p>
-
-<blockquote><pre>
-  template&lt;class ForwardIterator>
-    <del>void</del> <ins>ForwardIterator</ins> rotate(ForwardIterator first, ForwardIterator middle,
-                ForwardIterator last);
-</pre></blockquote>
-
-<p>In 25.3.11 [alg.rotate], change:</p>
-
-<blockquote><pre>
-  template&lt;class ForwardIterator>
-    <del>void</del> <ins>ForwardIterator</ins> rotate(ForwardIterator first, ForwardIterator middle,
-                ForwardIterator last);
-</pre></blockquote>
-
-<p>In 25.3.11 [alg.rotate] insert a new paragraph after p1:</p>
-
-<blockquote>
-<p><b>Returns</b>: <tt>first + (last - middle)</tt>.</p>
-</blockquote>
-
-<p><i>[
-The LWG agrees with this idea, but has one quibble: we want to make
-sure not to give the impression that the function "advance" is
-actually called, just that the nth iterator is returned.  (Calling
-advance is observable behavior, since users can specialize it for
-their own iterators.)  Howard will provide wording.
-]</i></p>
-
-
-<p><i>[Howard provided wording for mid-meeting-mailing Jun. 2005.]</i></p>
-
-
-<p><i>[
-Toronto: moved to Ready.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="495"></a>495. Clause 22 template parameter requirements</h3>
-<p><b>Section:</b> 22 [localization] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2005-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#localization">issues</a> in [localization].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>It appears that there are no requirements specified for many of the
-template parameters in clause 22. It looks like this issue has never
-come up, except perhaps for Facet.</p>
-
-<p>Clause 22 isn't even listed in 17.3.2.1 [lib.type.descriptions],
-either, which is the wording that allows requirements on template
-parameters to be identified by name.</p>
-
-<p>So one issue is that 17.3.2.1 [lib.type.descriptions] Should be
-changed to cover clause 22. A better change, which will cover us in
-the future, would be to say that it applies to all the library
-clauses. Then if a template gets added to any library clause we are
-covered.</p>
-
-<p>charT, InputIterator, and other names with requirements defined
-elsewhere are fine, assuming the 17.3.2.1 [lib.type.descriptions] fix.
-But there are a few template arguments names which I don't think have
-requirements given elsewhere:</p>
-
-<ul>
-<li>internT and externT.  The fix is to add wording saying that internT
-and externT must meet the same requirements as template arguments
-named charT.</li>
-
-<li>stateT.  I'm not sure about this one. There already is some wording,
-but it seems a bit vague.</li>
-
-<li>Intl.  [lib.locale.moneypunct.byname] The fix for this one is to
-rename "Intl" to "International". The name is important because other
-text identifies the requirements for the name International but not
-for Intl.</li>
-</ul>
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 17.5.2.1 [type.descriptions], paragraph 1, from:</p>
-<blockquote><p>
-The Requirements subclauses may describe names that are used to
-specify constraints on template arguments.153) These names are used in
-clauses 20, 23, 25, and 26 to describe the types that may be supplied
-as arguments by a C++ program when instantiating template components
-from the library. 
-</p></blockquote>
-<p>to:</p>
-<blockquote><p>
-The Requirements subclauses may describe names that are used to
-specify constraints on template arguments.153) These names are used in
-library clauses to describe the types that may be supplied as
-arguments by a C++ program when instantiating template components from
-the library.
-</p></blockquote>
-
-<p>In the front matter of class 22, locales, add:</p>
-<blockquote><p>
-Template parameter types internT and externT shall meet the
-requirements of charT (described in 21 [strings]).
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
- Again, a blanket clause isn't blanket enough. Also, we've got a
- couple of names that we don't have blanket requirement statements
- for. The only issue is what to do about stateT. This wording is
- thin, but probably adequate.</p>
-
-
-
-
-
-<hr>
-<h3><a name="496"></a>496. Illegal use of "T" in vector&lt;bool&gt;</h3>
-<p><b>Section:</b> 23.3.6 [vector] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> richard@ex-parrot.com <b>Opened:</b> 2005-02-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector">issues</a> in [vector].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the synopsis of the std::vector&lt;bool> specialisation in 23.3.6 [vector],
-the non-template assign() function has the signature</p>
-
-<pre>
-  void assign( size_type n, const T&amp; t );
-</pre>
-
-<p>The type, T, is not defined in this context.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Replace "T" with "value_type".</p>
-
-
-
-
-
-<hr>
-<h3><a name="497"></a>497. meaning of numeric_limits::traps for floating point types</h3>
-<p><b>Section:</b> 18.3.2.4 [numeric.limits.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2005-03-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.limits.members">issues</a> in [numeric.limits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>18.2.1.2, p59 says this much about the traps member of numeric_limits:</p>
-
-<blockquote>
-<p>static const bool traps;<br/>
--59- true if trapping is implemented for the type.204)
-<br/>
-Footnote 204: Required by LIA-1.
-</p>
-</blockquote>
-
-<p>It's not clear what is meant by "is implemented" here.</p>
-
-<p>
-In the context of floating point numbers it seems reasonable to expect
-to be able to use traps to determine whether a program can "safely" use
-infinity(), quiet_NaN(), etc., in arithmetic expressions, that is
-without causing a trap (i.e., on UNIX without having to worry about
-getting a signal). When traps is true, I would expect any of the
-operations in section 7 of IEEE 754 to cause a trap (and my program
-to get a SIGFPE). So, for example, on Alpha, I would expect traps
-to be true by default (unless I compiled my program with the -ieee
-option), false by default on most other popular architectures,
-including IA64, MIPS, PA-RISC, PPC, SPARC, and x86 which require
-traps to be explicitly enabled by the program.
-</p>
-
-<p>
-Another possible interpretation of p59 is that traps should be true
-on any implementation that supports traps regardless of whether they
-are enabled by default or not. I don't think such an interpretation
-makes the traps member very useful, even though that is how traps is
-implemented on several platforms. It is also the only way to implement
-traps on platforms that allow programs to enable and disable trapping
-at runtime.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change p59 to read:</p>
-<blockquote><p>True if, at program startup, there exists a value of the type that
-  would cause an arithmetic operation using that value to trap.</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
- Real issue, since trapping can be turned on and off. Unclear what a
- static query can say about a dynamic issue. The real advice we should
- give users is to use cfenv for these sorts of queries. But this new
- proposed resolution is at least consistent and slightly better than
- nothing.</p>
-
-
-
-
-
-<hr>
-<h3><a name="498"></a>498. Requirements for partition() and stable_partition() too strong</h3>
-<p><b>Section:</b> 25.3.13 [alg.partitions] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Sean Parent, Joe Gottman <b>Opened:</b> 2005-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.partitions">issues</a> in [alg.partitions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Problem:
-The iterator requirements for partition() and stable_partition() [25.2.12]
-are listed as BidirectionalIterator, however, there are efficient algorithms
-for these functions that only require ForwardIterator that have been known
-since before the standard existed. The SGI implementation includes these (see
-<a href="http://www.sgi.com/tech/stl/partition.html">http://www.sgi.com/tech/stl/partition.html</a>
-and
-<a href="http://www.sgi.com/tech/stl/stable_partition.html">http://www.sgi.com/tech/stl/stable_partition.html</a>).
-</p>
-
-<p><i>[
-2009-04-30 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Now we have concepts this is easier to express!
-</p>
-<p>
-Proposed resolution:
-</p>
-<p>
-Add the following signature to:
-</p>
-<p>
-Header <tt>&lt;algorithm&gt;</tt> synopsis  [algorithms.syn]<br/>
-p3 Partitions 25.3.13 [alg.partitions]
-</p>
-<blockquote><pre>
- template&lt;ForwardIterator Iter, Predicate&lt;auto, Iter::value_type&gt; Pred&gt;
-   requires ShuffleIterator&lt;Iter&gt;
-         &amp;&amp; CopyConstructible&lt;Pred&gt;
-   Iter partition(Iter first, Iter last, Pred pred);
-</pre></blockquote>
-
-<p>
-Update p3 Partitions 25.3.13 [alg.partitions]:
-</p>
-
-<blockquote>
-<p>
-<i>Complexity:</i> <del>At most <tt>(last - first)/2</tt> swaps. Exactly <tt>last - first</tt>
-applications of the predicate
-are done.</del>
-<ins>
-If <tt>Iter</tt> satisfies <tt>BidirectionalIterator</tt>, at most <tt>(last -
-first)/2</tt> swaps. Exactly <tt>last - first</tt> applications of the predicate
-are done.
-</ins>
-</p>
-<p><ins>
-If <tt>Iter</tt> merely satisfied <tt>ForwardIterator</tt> at most <tt>(last - first)</tt> swaps
-are done. Exactly <tt>(last - first)</tt> applications of the predicate are done.
-</ins></p>
-</blockquote>
-
-<p>
-[Editorial note: I looked for existing precedent in how we might call out
-distinct overloads overloads from a set of constrained templates, but there
-is not much existing practice to lean on.   advance/distance were the only
-algorithms I could find, and that wording is no clearer.]
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Hinnant: if you want to partition your std::forward_list, you'll need
-partition() to accept ForwardIterators.
-</p>
-<p>
-No objection to Ready.
-</p>
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25.2.12 from </p>
-<blockquote><pre>
-template&lt;class BidirectionalIterator, class Predicate&gt; 
-BidirectionalIterator partition(BidirectionalIterato r first, 
-                                BidirectionalIterator last, 
-                                Predicate pred); 
-</pre></blockquote>
-<p>to </p>
-<blockquote><pre>
-template&lt;class ForwardIterator, class Predicate&gt; 
-ForwardIterator partition(ForwardIterator first, 
-                          ForwardIterator last, 
-                          Predicate pred); 
-</pre></blockquote>
-<p>Change the complexity from </p>
-
-<blockquote><p>
-At most (last - first)/2 swaps are done. Exactly (last - first) 
-applications of the predicate are done. 
-</p></blockquote>
-
-<p>to </p>
-
-<blockquote><p>
-If ForwardIterator is a bidirectional_iterator, at most (last - first)/2 
-swaps are done; otherwise at most (last - first) swaps are done. Exactly 
-(last - first) applications of the predicate are done. 
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Partition is a "foundation" algorithm useful in many contexts (like sorting
-as just one example) - my motivation for extending it to include forward
-iterators is foward_list - without this extension you can't partition an foward_list
-(without writing your own partition). Holes like this in the standard
-library weaken the argument for generic programming (ideally I'd be able
-to provide a library that would refine std::partition() to other concepts
-without fear of conflicting with other libraries doing the same - but
-that is a digression). I consider the fact that partition isn't defined
-to work for ForwardIterator a minor embarrassment.
-</p>
-
-<p><i>[Mont Tremblant:  Moved to Open, request motivation and use cases by next meeting. Sean provided further rationale by post-meeting mailing.]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="505"></a>505. Result_type in random distribution requirements</h3>
-<p><b>Section:</b> 26.5.1 [rand.req], TR1 5.1.1 [tr.rand.req] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req">issues</a> in [rand.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 17: Random distribution requirements
-</p>
-<p>
-Row 1 requires that each random distribution provide a nested type "input_type";
-this type denotes the type of the values that the distribution consumes.
-</p>
-<p>
-Inspection of all distributions in [tr.rand.dist] reveals that each distribution
-provides a second typedef ("result_type") that denotes the type of the values the
-distribution produces when called.  
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-It seems to me that this is also a requirement
-for all distributions and should therefore be  indicated as such via a new second
-row to this table 17:
-</p>
-<table border="1" cellpadding="5">
-<tr><td>X::result_type</td><td>T</td><td>---</td><td>compile-time</td></tr>
-</table>
-
-<p><i>[
-Berlin:  Voted to WP.  N1932 adopts the proposed resolution:  see Table 5 row 1.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="507"></a>507. Missing requirement for variate_generator::operator()</h3>
-<p><b>Section:</b> 26.5 [rand], TR1 5.1.3 [tr.rand.var] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 11 of [tr.rand.var] equires that the member template
-</p>
-<blockquote><pre>
-template&lt;class T&gt; result_type operator() (T value);
-</pre></blockquote>
-<p>
-return
-</p>
-<blockquote><pre>
-distribution()(e, value)
-</pre></blockquote>
-<p>
-However, not all distributions have an operator() with a corresponding signature.
-</p>
-
-<p><i>[
-Berlin:  As a working group we voted in favor of N1932 which makes this moot:
-variate_generator has been eliminated.  Then in full committee we voted to give
-this issue WP status (mistakenly).
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We therefore  recommend that we insert the following precondition before paragraph 11:
-</p>
-<blockquote><p>
-Precondition:  <tt>distribution().operator()(e,value)</tt> is well-formed.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="508"></a>508. Bad parameters for ranlux64_base_01</h3>
-<p><b>Section:</b> 26.5.5 [rand.predef], TR1 5.1.5 [tr.rand.predef] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.predef">issues</a> in [rand.predef].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The fifth of these engines with predefined parameters, ranlux64_base_01,
-appears to have an unintentional error for which there is a simple correction.
-The two pre-defined  subtract_with_carry_01 engines are given as: 
-</p>
-<blockquote><pre>
-typedef subtract_with_carry_01&lt;float,  24, 10, 24&gt; ranlux_base_01;
-typedef subtract_with_carry_01&lt;double, 48, 10, 24&gt; ranlux64_base_01;
-</pre></blockquote>
-<p>
-We demonstrate below that ranlux64_base_01 fails to meet the intent of the
-random number generation proposal, but that the simple correction to
-</p>
-<blockquote><pre>
-typedef subtract_with_carry_01&lt;double, 48,  5, 12&gt; ranlux64_base_01;
-</pre></blockquote>
-<p>
-does meet the intent of defining well-known good parameterizations.
-</p>
-<p>
-The ranlux64_base_01 engine as presented fails to meet the intent for
-predefined engines, stated in proposal N1398 (section E):
-</p>
-<blockquote><p>
-In order to make good random numbers available to a large number of library
-users, this proposal not only defines generic random-number engines, but also
-provides a number of predefined well-known good parameterizations for those.
-</p></blockquote>
-<p>
-The predefined ranlux_base_01 engine has been proven [1,2,3] to have a very
-long period and so meets this criterion.  This property makes it suitable for
-use in the excellent discard_block  engines defined subsequently.  The proof
-of long period relies on the fact (proven in [1]) that 2**(w*r) - 2**(w*s)
-+ 1 is prime (w, r, and s are template parameters to subtract_with_carry_01,
-as defined in [tr.rand.eng.sub1]).
-</p>
-<p>
-The ranlux64_base_01 engine as presented in [tr.rand.predef] uses w=48, r=24, s=10.
-For these numbers, the combination 2**(w*r)-2**(w*s)+1 is non-prime (though
-explicit factorization  would be a challenge).  In consequence, while it is
-certainly possible for some seeding states that this engine would have a very
-long period, it is not at all "well-known" that this is the case. The intent
-in the N1398 proposal involved the base of the ranlux64 engine, which finds heavy
-use in the physics community.  This is isomorphic to the predefined ranlux_base_01,
-but exploits the ability of double variables to hold (at least) 48 bits of mantissa,
-to deliver 48 random bits at a time rather than 24.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-To achieve this intended behavior, the correct template parameteriztion  would be:
-</p>
-<blockquote><pre>
-typedef subtract_with_carry_01&lt;double, 48, 5, 12&gt; ranlux64_base_01;
-</pre></blockquote>
-<p>
-The sequence of mantissa bits delivered by this is isomorphic (treating each
-double as having the  bits of two floats) to that delivered by ranlux_base_01.
-</p>
-<p>
-<b>References:</b>
-</p>
-<ol>
-<li>F. James, Comput. Phys. Commun. 60(1990) 329</li>
-<li>G. Marsaglia and A. Zaman, Ann. Appl. Prob 1(1991) 462</li>
-<li>M. Luscher, Comput. Phys. Commun. 79(1994) 100-110</li>
-</ol>
-
-<p><i>[
-Berlin: Voted to WP.  N1932 adopts the proposed resolution in 26.3.5,
-just above paragraph 5.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="518"></a>518. Are insert and erase stable for unordered_multiset and unordered_multimap?</h3>
-<p><b>Section:</b> 23.2.5 [unord.req], TR1 6.3.1 [tr.unord.req] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue 371 deals with stability of multiset/multimap under insert and erase
-(i.e. do they preserve the relative order in ranges of equal elements).
-The same issue applies to unordered_multiset and unordered_multimap.
-</p>
-<p><i>[
-Moved to open (from review):  There is no resolution.
-]</i></p>
-
-
-<p><i>[
-Toronto:  We have a resolution now.  Moved to Review.  Some concern was noted
-as to whether this conflicted with existing practice or not.  An additional
-concern was in specifying (partial) ordering for an unordered container.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Wording for the proposed resolution is taken from the equivalent text for associative containers.
-</p>
-
-<p>
-Change 23.2.5 [unord.req], Unordered associative containers, paragraph 6 to:
-</p>
-
-<blockquote><p>
-An unordered associative container supports <i>unique</i> keys if it may 
-contain at most one element for each key. Otherwise, it supports <i>equivalent 
-keys</i>. <tt>unordered_set</tt> and <tt>unordered_map</tt> support 
-unique keys. <tt>unordered_multiset</tt> and <tt>unordered_multimap</tt> 
-support equivalent keys. In containers that support equivalent keys, elements 
-with equivalent keys are adjacent to each other. <ins>For
-<tt>unordered_multiset</tt> 
-and <tt>unordered_multimap</tt>,<tt> insert</tt> and <tt>erase</tt> 
-preserve the relative ordering of equivalent elements.</ins>
-</p></blockquote>
-
-<p>
-Change 23.2.5 [unord.req], Unordered associative containers, paragraph 8 to:
-</p>
-
-<blockquote>
-<p>The elements of an unordered associative container are organized into <i>
-buckets</i>. Keys with the same hash code appear in the same bucket. The number 
-of buckets is automatically increased as elements are added to an unordered 
-associative container, so that the average number of elements per bucket is kept 
-below a bound. Rehashing invalidates iterators, changes ordering between 
-elements, and changes which buckets elements appear in, but does not invalidate 
-pointers or references to elements. <ins>For <tt>unordered_multiset</tt> 
-and <tt>unordered_multimap</tt>, rehashing 
-preserves the relative ordering of equivalent elements.</ins></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="519"></a>519. Data() undocumented</h3>
-<p><b>Section:</b> 23.3.2 [array], TR1 6.2.2 [tr.array.array] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>array&lt;&gt;::data()</tt> is present in the class synopsis, but not documented.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new section, after 6.2.2.3:
-</p>
-<blockquote><pre>
-T*       data()
-const T* data() const;
-</pre></blockquote>
-<p>
-<b>Returns:</b> <tt>elems</tt>.
-</p>
-<p>
-Change 6.2.2.4/2 to:
-</p>
-<blockquote><p>
-In the case where <tt>N == 0</tt>, <tt>begin() == end()</tt>. The return value
-of <tt>data()</tt> is unspecified.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="520"></a>520. Result_of and pointers to data members</h3>
-<p><b>Section:</b> 20.9.10 [func.bind], TR1 3.6 [tr.func.bind] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the original proposal for binders, the return type of bind() when
-called with a pointer to member data as it's callable object was
-defined to be mem_fn(ptr); when Peter Dimov and I  unified the
-descriptions of the TR1 function objects we hoisted the descriptions
-of return types into the INVOKE pseudo-function and into result_of.
-Unfortunately, we left pointer to member data out of result_of, so
-bind doesn't have any specified behavior when called with a pointer
-to  member data.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-Pete and Peter will provide wording.
-]</i></p>
-
-
-<p>
-In 20.5.4 [lib.func.ret] ([tr.func.ret]) p3 add the following bullet after bullet 2:
-</p>
-<ol>
-<li>[&hellip;]</li>
-<li>[&hellip;]</li>
-<li>If <tt>F</tt> is a member data pointer type <tt>R T::*</tt>, <tt>type</tt>
-shall be <tt><i>cv</i> R&amp;</tt> when <tt>T1</tt> is <tt><i>cv</i> U1&amp;</tt>,
-<tt>R</tt> otherwise.</li>
-</ol>
-
-<p><i>[
-Peter provided wording.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="521"></a>521. Garbled requirements for argument_type in reference_wrapper</h3>
-<p><b>Section:</b> 20.9.4 [refwrap], TR1 2.1.2 [tr.util.refwrp.refwrp] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#refwrap">issues</a> in [refwrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-2.1.2/3, second bullet item currently says that reference_wrapper&lt;T&gt; is
-derived from unary_function&lt;T, R&gt; if T is:
-</p>
-<blockquote><p>
-a pointer to member function type with cv-qualifier cv and no arguments;
-the type T1 is cv T* and R is the return type of the pointer to member function;
-</p></blockquote>
-<p>
-The type of T1 can't be cv T*, 'cause that's a pointer to a pointer to member
-function. It should be a pointer to the class that T is a pointer to member of.
-Like this:
-</p>
-<blockquote><p>
-a pointer to a member function R T0::f() cv (where cv represents the member
-function's cv-qualifiers); the type T1 is cv T0*
-</p></blockquote>
-<p>
-Similarly, bullet item 2 in 2.1.2/4 should be:
-</p>
-<blockquote><p>
-a pointer to a member function R T0::f(T2) cv (where cv represents the member
-function's cv-qualifiers); the type T1 is cv T0*
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change bullet item 2 in 2.1.2/3:
-</p>
-
-<blockquote>
-<ul>
-<li>
-a pointer to member function <del>type with cv-qualifier <tt><i>cv</i></tt> and no arguments;
-the type <tt>T1</tt> is <tt><i>cv</i> T*</tt> and <tt>R</tt> is the return 
-type of the pointer to member function</del> <ins><tt>R T0::f() <i>cv</i></tt>
-(where <tt><i>cv</i></tt> represents the member function's cv-qualifiers);
-the type <tt>T1</tt> is <tt><i>cv</i> T0*</tt></ins>
-</li>
-</ul>
-</blockquote>
-
-<p>
-Change bullet item 2 in 2.1.2/4:
-</p>
-
-<blockquote>
-<ul>
-<li>
-a pointer to member function <del>with cv-qualifier <tt><i>cv</i></tt> and taking one argument
-of type <tt>T2</tt>; the type <tt>T1</tt> is <tt><i>cv</i> T*</tt> and 
-<tt>R</tt> is the return type of the pointer to member function</del>
-<ins><tt>R T0::f(T2) <i>cv</i></tt> (where <tt><i>cv</i></tt> represents the member
-function's cv-qualifiers); the type <tt>T1</tt> is <tt><i>cv</i> T0*</tt></ins>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="522"></a>522. Tuple doesn't define swap</h3>
-<p><b>Section:</b> 20.4 [tuple], TR1 6.1 [tr.tuple] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Andy Koenig <b>Opened:</b> 2005-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple">issues</a> in [tuple].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Tuple doesn't define swap().  It should.
-</p>
-<p><i>[
-Berlin: Doug to provide wording.
-]</i></p>
-
-<p><i>[
-Batavia: Howard to provide wording.
-]</i></p>
-
-<p><i>[
-Toronto: Howard to provide wording (really this time).
-]</i></p>
-
-
-<p><i>[
-Bellevue:  Alisdair provided wording.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add these signatures to 20.4 [tuple]
-</p>
-
-<blockquote><pre>
-template &lt;class... Types&gt;
-  void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp; y);
-template &lt;class... Types&gt;
-  void swap(tuple&lt;Types...&gt;&amp;&amp; x, tuple&lt;Types...&gt;&amp; y);
-template &lt;class... Types&gt;
-  void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp;&amp; y); 
-</pre></blockquote>
-
-<p>
-Add this signature to 20.4.2 [tuple.tuple]
-</p>
-
-<blockquote><pre>
-void swap(tuple&amp;&amp;);
-</pre></blockquote>
-
-<p>
-Add the following two sections to the end of the tuple clauses
-</p>
-
-<blockquote>
-<p>
-20.3.1.7 tuple swap [tuple.swap]
-</p>
-
-<pre>
-void swap(tuple&amp;&amp; rhs); 
-</pre>
-
-<blockquote>
-<p>
-<i>Requires:</i> Each type in <tt>Types</tt> shall be <tt>Swappable</tt>.
-</p>
-<p>
-<i>Effects:</i> Calls <tt>swap</tt> for each element in <tt>*this</tt> and its corresponding element
-in <tt>rhs</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing, unless one of the element-wise <tt>swap</tt> calls throw an
-exception. 
-</p>
-</blockquote>
-
-<p>
-20.3.1.8 tuple specialized algorithms [tuple.special]
-</p>
-
-<pre>
-template &lt;class... Types&gt;
-  void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp; y);
-template &lt;class... Types&gt;
-  void swap(tuple&lt;Types...&gt;&amp;&amp; x, tuple&lt;Types...&gt;&amp; y);
-template &lt;class... Types&gt;
-  void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp;&amp; y); 
-</pre>
-
-<blockquote>
-<p>
-<i>Effects:</i> x.swap(y)
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="524"></a>524. regex named character classes and case-insensitivity don't mix</h3>
-<p><b>Section:</b> 28 [re] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Eric Niebler <b>Opened:</b> 2005-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re">active issues</a> in [re].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re">issues</a> in [re].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This defect is also being discussed on the Boost developers list. The 
-full discussion can be found here:
-http://lists.boost.org/boost/2005/07/29546.php
-</p>
-<p>
--- Begin original message --
-</p>
-<p>
-Also, I may have found another issue, closely related to the one under
-discussion. It regards case-insensitive matching of named character
-classes. The regex_traits&lt;&gt; provides two functions for working with
-named char classes: lookup_classname and isctype. To match a char class
-such as [[:alpha:]], you pass "alpha" to lookup_classname and get a
-bitmask. Later, you pass a char and the bitmask to isctype and get a
-bool yes/no answer.
-</p>
-<p>
-But how does case-insensitivity work in this scenario? Suppose we're
-doing a case-insensitive match on [[:lower:]]. It should behave as if it
-were [[:lower:][:upper:]], right? But there doesn't seem to be enough
-smarts in the regex_traits interface to do this.
-</p>
-<p>
-Imagine I write a traits class which recognizes [[:fubar:]], and the
-"fubar" char class happens to be case-sensitive. How is the regex engine
-to know that? And how should it do a case-insensitive match of a
-character against the [[:fubar:]] char class? John, can you confirm this
-is a legitimate problem?
-</p>
-<p>
-I see two options:
-</p>
-<p>
-1) Add a bool icase parameter to lookup_classname. Then,
-lookup_classname( "upper", true ) will know to return lower|upper
-instead of just upper.
-</p>
-<p>
-2) Add a isctype_nocase function
-</p>
-<p>
-I prefer (1) because the extra computation happens at the time the
-pattern is compiled rather than when it is executed.
-</p>
-<p>
--- End original message --
-</p>
-
-<p>
-For what it's worth, John has also expressed his preference for option 
-(1) above.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2409.pdf">N2409</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2409 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="525"></a>525. type traits definitions not clear</h3>
-<p><b>Section:</b> 20.10.4 [meta.unary], TR1 4.5 [tr.meta.unary] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2005-07-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary">issues</a> in [meta.unary].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is not completely clear how the primary type traits deal with
-cv-qualified types.  And several of the secondary type traits
-seem to be lacking a definition.
-</p>
-
-<p><i>[
-Berlin:  Howard to provide wording.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Wording provided in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2028.html">N2028</a>.
-A <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2157.html">revision (N2157)</a>
-provides more detail for motivation.
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2157.html">revision (N2157)</a>
-in the WP.
-</p>
-
-
-
-
-<hr>
-<h3><a name="527"></a>527. <tt>tr1::bind</tt> has lost its Throws clause</h3>
-<p><b>Section:</b> 20.9.10.3 [func.bind.bind], TR1 3.6.3 [tr.func.bind.bind] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2005-10-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The original bind proposal gives the guarantee that <tt>tr1::bind(f, t1, ..., tN)</tt> 
-does not throw when the copy constructors of <tt>f, t1, ..., tN</tt> don't.
-</p>
-
-<p>
-This guarantee is not present in the final version of TR1.
-</p>
-
-<p>
-I'm pretty certain that we never removed it on purpose. Editorial omission? :-)
-</p>
-
-<p><i>[
-Berlin: not quite editorial, needs proposed wording.
-]</i></p>
-
-<p><i>[
-Batavia:  Doug to translate wording to variadic templates.
-]</i></p>
-
-
-<p><i>[
-Toronto:  We agree but aren't quite happy with the wording.  The "t"'s no
-longer refer to anything.  Alan to provide improved wording.
-]</i></p>
-
-
-
-<p><i>[
-Pre-Bellevue:  Alisdair provided wording.
-]</i></p>
-
-
-<p>
-TR1 proposed resolution:
-</p>
-
-<blockquote>
-<p>
-In TR1 3.6.3 [tr.func.bind.bind], add a new paragraph after p2:
-</p>
-<blockquote><p>
-<i>Throws:</i> Nothing unless one of the copy constructors of <tt>f, t1, t2, ..., tN</tt>
-throws an exception.
-</p></blockquote>
-
-<p>
-Add a new paragraph after p4:
-</p>
-<blockquote><p>
-<i>Throws:</i> nothing unless one of the copy constructors of <tt>f, t1, t2, ..., tN</tt>
-throws an exception.
-</p></blockquote>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.9.10.3 [func.bind.bind], add a new paragraph after p2:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> Nothing unless the copy constructor of <tt>F</tt> or of one of the types
-in the <tt>BoundArgs...</tt> pack expansion throws an exception. 
-</p></blockquote>
-
-<p>
-In 20.9.10.3 [func.bind.bind], add a new paragraph after p4:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> Nothing unless the copy constructor of <tt>F</tt> or of one of the types
-in the <tt>BoundArgs...</tt> pack expansion throws an exception. 
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="530"></a>530. Must elements of a string be contiguous?</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2005-11-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Issue <a href="lwg-defects.html#69">69</a>, which was incorporated into C++03, mandated
-   that the elements of a vector must be stored in contiguous memory.
-   Should the same also apply to <tt>basic_string</tt>?</p>
-
-<p>We almost require contiguity already. Clause 23.4.7 [multiset]
-  defines <tt>operator[]</tt> as <tt>data()[pos]</tt>. What's missing
-  is a similar guarantee if we access the string's elements via the
-  iterator interface.</p>
-
-<p>Given the existence of <tt>data()</tt>, and the definition of
-  <tt>operator[]</tt> and <tt>at</tt> in terms of <tt>data</tt>,
-  I don't believe it's possible to write a useful and standard-
-  conforming <tt>basic_string</tt> that isn't contiguous. I'm not
-  aware of any non-contiguous implementation. We should just require
-  it.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following text to the end of 21.4 [basic.string],
-paragraph 2. </p>
-
-<blockquote>
-  <p>The characters in a string are stored contiguously, meaning that if
-  <tt>s</tt> is a <tt>basic_string&lt;charT, Allocator&gt;</tt>, then
-  it obeys the identity
-  <tt>&amp;*(s.begin() + n) == &amp;*s.begin() + n</tt>
-  for all <tt>0 &lt;= n &lt; s.size()</tt>.
-  </p>
-</blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Not standardizing this existing practice does not give implementors more
-freedom.  We thought it might a decade ago.  But the vendors have spoken
-both with their implementations, and with their voice at the LWG
-meetings.  The implementations are going to be contiguous no matter what
-the standard says.  So the standard might as well give string clients
-more design choices.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="531"></a>531. array forms of unformatted input functions</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2005-11-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The array forms of unformatted input functions don't seem to have well-defined
-semantics for zero-element arrays in a couple of cases. The affected ones
-(<tt>istream::get()</tt> and <tt>istream::getline()</tt>) are supposed to
-terminate when <tt>(n - 1)</tt> characters are stored, which obviously can
-never be true when <tt>(n == 0)</tt> holds to start with. See
-c++std-lib-16071.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-I suggest changing 27.6.1.3, p7 (<tt>istream::get()</tt>), bullet 1 to read:
-</p>
-            <ul>
-                <li>
-                    <tt>(n &lt; 1)</tt> is true or <tt>(n - 1)</tt> characters
-                    are stored;
-                </li>
-            </ul>
-<p>
-Change 27.6.1.3, p9:
-</p>
-
-<blockquote><p>
-If the function stores no characters, it calls <tt>setstate(failbit)</tt> (which
-may throw <tt>ios_base::failure</tt> (27.4.4.3)).  In any case, <ins>if <tt>(n
-&gt; 0)</tt> is true</ins> it then stores a null character into the next
-successive location of the array.
-</p></blockquote>
-
-        <p>
-
-and similarly p17 (<tt>istream::getline()</tt>), bullet 3 to:
-
-        </p>
-            <ul>
-                <li>
-                    <tt>(n &lt; 1)</tt> is true or <tt>(n - 1)</tt> characters
-                    are stored (in which case the function calls
-                    <tt>setstate(failbit)</tt>).
-                </li>
-            </ul>
-
-        <p>
-
-In addition, to clarify that <tt>istream::getline()</tt> must not store the
-terminating NUL character unless the the array has non-zero size, Robert
-Klarer suggests in c++std-lib-16082 to change 27.6.1.3, p20 to read:
-
-        </p>
-            <blockquote><p>
-
-In any case, provided <tt>(n &gt; 0)</tt> is true, it then stores a null character
-(using charT()) into the next successive location of the array.
-
-            </p></blockquote>
-
-<p><i>[
-post-Redmond:  Pete noticed that the current resolution for <tt>get</tt> requires
-writing to out of bounds memory when <tt>n == 0</tt>.  Martin provided fix.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="533"></a>533. typo in 2.2.3.10/1</h3>
-<p><b>Section:</b> 20.8.2.2.10 [util.smartptr.getdeleter], TR1 2.2.3.10 [tr.util.smartptr.getdeleter] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2005-11-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.getdeleter">issues</a> in [util.smartptr.getdeleter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I'm seeing something that looks like a typo. The Return of <tt>get_deleter</tt>
-says:
-</p>
-<blockquote><p>
-If <tt>*this</tt> <i>owns</i> a deleter <tt>d</tt>...
-</p></blockquote>
-<p>
-but <tt>get_deleter</tt> is a free function!
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Therefore, I think should be:
-</p>
-<blockquote><p>
-If <tt><del>*this</del> <ins>p</ins></tt> <i>owns</i> a deleter <tt>d</tt>...
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="534"></a>534. Missing basic_string members</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2005-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-OK, we all know std::basic_string is bloated and already has way too
-many members.  However, I propose it is missing 3 useful members that
-are often expected by users believing it is a close approximation of the
-container concept.  All 3 are listed in table 71 as 'optional'
-</p>
-
-<p>
-i/  pop_back.
-</p>
-
-<p>
-This is the one I feel most strongly about, as I only just discovered it
-was missing as we are switching to a more conforming standard library
-&lt;g&gt;
-</p>
-
-<p>
-I find it particularly inconsistent to support push_back, but not
-pop_back.
-</p>
-
-<p>
-ii/ back.
-</p>
-
-<p>
-There are certainly cases where I want to examine the last character of
-a string before deciding to append, or to trim trailing path separators
-from directory names etc.  *rbegin() somehow feels inelegant.
-</p>
-
-<p>
-iii/ front
-</p>
-
-<p>
-This one I don't feel strongly about, but if I can get the first two,
-this one feels that it should be added as a 'me too' for consistency.
-</p>
-
-<p>
-I believe this would be similarly useful to the data() member recently
-added to vector, or at() member added to the maps.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following members to definition of class template basic_string, 21.3p7
-</p>
-<blockquote><pre>
-void pop_back ()
-
-const charT &amp; front() const
-charT &amp; front()
-
-const charT &amp; back() const
-charT &amp; back()
-</pre></blockquote>
-<p>
-Add the following paragraphs to basic_string description
-</p>
-
-<p>
-21.3.4p5
-</p>
-<blockquote>
-<pre>
-const charT &amp; front() const
-charT &amp; front()
-</pre>
-<p>
-<i>Precondition:</i> <tt>!empty()</tt>
-</p>
-<p>
-<i>Effects:</i> Equivalent to <tt>operator[](0)</tt>.
-</p>
-</blockquote>
-
-<p>
-21.3.4p6
-</p>
-<blockquote>
-<pre>
-const charT &amp; back() const
-charT &amp; back()
-</pre>
-<p>
-<i>Precondition:</i> <tt>!empty()</tt>
-</p>
-<p>
-<i>Effects:</i> Equivalent to <tt>operator[]( size() - 1)</tt>.
-</p>
-</blockquote>
-
-<p>
-21.3.5.5p10
-</p>
-<blockquote>
-<pre>
-void pop_back ()
-</pre>
-<p>
-<i>Precondition:</i> <tt>!empty()</tt>
-</p>
-<p>
-<i>Effects:</i> Equivalent to <tt>erase( size() - 1, 1 )</tt>.
-</p>
-</blockquote>
-
-<p>
-Update Table 71: (optional sequence operations)
-Add basic_string to the list of containers for the following operations.
-</p>
-<blockquote><pre>
-a.front()
-a.back()
-a.push_back()
-a.pop_back()
-a[n]
-</pre></blockquote>
-
-<p><i>[
-Berlin: Has support.  Alisdair provided wording.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="535"></a>535. std::string::swap specification poorly worded</h3>
-<p><b>Section:</b> 21.4.6.8 [string::swap] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2005-12-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::swap">issues</a> in [string::swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-std::string::swap currently says for effects and postcondition:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> Swaps the contents of the two strings.
-</p>
-
-<p>
-<i>Postcondition:</i> <tt>*this</tt> contains the characters that were in <tt><i>s</i></tt>,
-<tt><i>s</i></tt> contains the characters that were in <tt>*this</tt>.
-</p>
-</blockquote>
-
-<p>
-Specifying both Effects and Postcondition seems redundant, and the postcondition
-needs to be made stronger. Users would be unhappy if the characters were not in
-the same order after the swap.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<blockquote>
-<p>
-<del><i>Effects:</i> Swaps the contents of the two strings.</del>
-</p>
-
-<p>
-<i>Postcondition:</i> <tt>*this</tt> contains the <ins>same sequence of</ins>
-characters that <del>were</del> <ins>was</ins> in <tt><i>s</i></tt>,
-<tt><i>s</i></tt> contains the <ins>same sequence of</ins> characters that
-<del>were</del> <ins>was</ins> in <tt>*this</tt>.
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="537"></a>537. Typos in the signatures in 27.6.1.3/42-43 and 27.6.2.4</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2006-02-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the most recent working draft, I'm still seeing:
-</p>
-
-<blockquote><pre>
-seekg(off_type&amp; off, ios_base::seekdir dir)
-</pre></blockquote>
-
-<p>
-and
-</p>
-
-<blockquote><pre>
-seekp(pos_type&amp; pos)
-
-seekp(off_type&amp; off, ios_base::seekdir dir)
-</pre></blockquote>
-
-<p>
-that is, by reference off and pos arguments.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-After 27.6.1.3p42 change:
-</p>
-
-<blockquote><pre>
-basic_istream&lt;charT,traits&gt;&amp; seekg(off_type<del>&amp;</del> <i>off</i>, ios_base::seekdir <i>dir</i>);
-</pre></blockquote>
-
-<p>
-After 27.6.2.4p1 change:
-</p>
-
-<blockquote><pre>
-basic_ostream&lt;charT,traits&gt;&amp; seekp(pos_type<del>&amp;</del> <i>pos</i>);
-</pre></blockquote>
-
-<p>
-After 27.6.2.4p3 change:
-</p>
-
-<blockquote><pre>
-basic_ostream&lt;charT,traits&gt;&amp; seekp(off_type<del>&amp;</del> <i>off</i>, ios_base::seekdir <i>dir</i>);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="538"></a>538. 241 again: Does unique_copy() require CopyConstructible and Assignable?</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2006-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I believe I botched the resolution of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#241">
-241 "Does unique_copy() require CopyConstructible and Assignable?"</a> which now
-has WP status.
-</p>
-
-<p>
-This talks about <tt>unique_copy</tt> requirements and currently reads:
-</p>
-
-<blockquote><p>
--5- <i>Requires:</i> The ranges <tt>[<i>first</i>, <i>last</i>)</tt> and
-<tt>[<i>result</i>, <i>result</i>+(<i>last</i>-<i>first</i>))</tt>
-shall not overlap. The expression <tt>*<i>result</i> = *<i>first</i></tt> shall
-be valid. If neither <tt>InputIterator</tt> nor <tt>OutputIterator</tt> meets the
-requirements of forward iterator then the value type of <tt>InputIterator</tt>
-must be CopyConstructible (20.1.3). Otherwise CopyConstructible is not required.
-</p></blockquote>
-
-<p>
-The problem (which Paolo discovered) is that when the iterators are at their
-most restrictive (<tt>InputIterator</tt>, <tt>OutputIterator</tt>), then we want
-<tt>InputIterator::value_type</tt> to be both <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt> (for the most efficient implementation).  However this
-proposed resolution only makes it clear that it is <tt>CopyConstructible</tt>,
-and that one can assign from <tt>*<i>first</i></tt> to <tt>*<i>result</i></tt>.
-This latter requirement does not necessarily imply that you can:
-</p>
-
-<blockquote><pre>
-*<i>first</i> = *<i>first</i>;
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<blockquote><p>
--5- <i>Requires:</i> The ranges <tt>[<i>first</i>, <i>last</i>)</tt> and
-<tt>[<i>result</i>, <i>result</i>+(<i>last</i>-<i>first</i>))</tt>
-shall not overlap. The expression <tt>*<i>result</i> = *<i>first</i></tt>
-shall
-be valid. If neither <tt>InputIterator</tt> nor <tt>OutputIterator</tt> meets the
-requirements of forward iterator then the <del>value type</del> 
-<ins><tt>value_type</tt></ins> of <tt>InputIterator</tt>
-must be CopyConstructible (20.1.3) <ins>and Assignable</ins>.
-Otherwise CopyConstructible is not required.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="539"></a>539. <tt>partial_sum</tt> and <tt>adjacent_difference</tt> should mention requirements</h3>
-<p><b>Section:</b> 26.7.4 [partial.sum] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Marc Schoolderman <b>Opened:</b> 2006-02-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are some problems in the definition of <tt>partial_sum</tt> and
-<tt>adjacent_difference</tt> in 26.4 [lib.numeric.ops]
-</p>
-
-<p>
-Unlike <tt>accumulate</tt> and <tt>inner_product</tt>, these functions are not
-parametrized on a "type T", instead, 26.4.3 [lib.partial.sum] simply
-specifies the effects clause as;
-</p>
-
-<blockquote><p>
-Assigns to every element referred to by iterator <tt>i</tt> in the range
-<tt>[result,result + (last - first))</tt> a value correspondingly equal to
-</p>
-<blockquote><pre>
-((...(* first + *( first + 1)) + ...) + *( first + ( i - result )))
-</pre></blockquote>
-</blockquote>
-
-<p>
-And similarly for BinaryOperation. Using just this definition, it seems
-logical to expect that:
-</p>
-
-
-<blockquote><pre>
-char i_array[4] = { 100, 100, 100, 100 };
-int  o_array[4];
-
-std::partial_sum(i_array, i_array+4, o_array);
-</pre></blockquote>
-
-<p>
-Is equivalent to
-</p>
-
-<blockquote><pre>
-int o_array[4] = { 100, 100+100, 100+100+100, 100+100+100+100 };
-</pre></blockquote>
-
-<p>
-i.e. 100, 200, 300, 400, with addition happening in the <tt>result type</tt>,
-<tt>int</tt>.
-</p>
-
-<p>
-Yet all implementations I have tested produce 100, -56, 44, -112,
-because they are using an accumulator of the <tt>InputIterator</tt>'s
-<tt>value_type</tt>, which in this case is <tt>char</tt>, not <tt>int</tt>.
-</p>
-
-<p>
-The issue becomes more noticeable when the result of the expression <tt>*i +
-*(i+1)</tt> or <tt>binary_op(*i, *i-1)</tt> can't be converted to the
-<tt>value_type</tt>. In a contrived example:
-</p>
-
-<blockquote><pre>
-enum not_int { x = 1, y = 2 };
-...
-not_int e_array[4] = { x, x, y, y };
-std::partial_sum(e_array, e_array+4, o_array);
-</pre></blockquote>
-
-<p>
-Is it the intent that the operations happen in the <tt>input type</tt>, or in
-the <tt>result type</tt>?
-</p>
-
-<p>
-If the intent is that operations happen in the <tt>result type</tt>, something
-like this should be added to the "Requires" clause of 26.4.3/4
-[lib.partial.sum]:
-</p>
-
-<blockquote><p>
-The type of <tt>*i + *(i+1)</tt> or <tt>binary_op(*i, *(i+1))</tt> shall meet the
-requirements of <tt>CopyConstructible</tt> (20.1.3) and <tt>Assignable</tt>
-(23.1) types.
-</p></blockquote>
-
-<p>
-(As also required for <tt>T</tt> in 26.4.1 [lib.accumulate] and 26.4.2
-[lib.inner.product].)
-</p>
-
-<p>
-The "auto initializer" feature proposed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1894.pdf">N1894</a>
-is not required to
-implement <tt>partial_sum</tt> this way. The 'narrowing' behaviour can still be
-obtained by using the <tt>std::plus&lt;&gt;</tt> function object.
-</p>
-
-<p>
-If the intent is that operations happen in the <tt>input type</tt>, then
-something like this should be added instead;
-</p>
-
-<blockquote><p>
-The type of *first shall meet the requirements of
-<tt>CopyConstructible</tt> (20.1.3) and <tt>Assignable</tt> (23.1) types.
-The result of <tt>*i + *(i+1)</tt> or <tt>binary_op(*i, *(i+1))</tt> shall be
-convertible to this type.
-</p></blockquote>
-
-<p>
-The 'widening' behaviour can then be obtained by writing a custom proxy
-iterator, which is somewhat involved.
-</p>
-
-<p>
-In both cases, the semantics should probably be clarified.
-</p>
-
-<p>
-26.4.4 [lib.adjacent.difference] is similarly underspecified, although
-all implementations seem to perform operations in the 'result' type:
-</p>
-
-<blockquote><pre>
-unsigned char i_array[4] = { 4, 3, 2, 1 };
-int o_array[4];
-
-std::adjacent_difference(i_array, i_array+4, o_array);
-</pre></blockquote>
-
-<p>
-o_array is 4, -1, -1, -1 as expected, not 4, 255, 255, 255.
-</p>
-
-<p>
-In any case, <tt>adjacent_difference</tt> doesn't mention the requirements on the
-<tt>value_type</tt>; it can be brought in line with the rest of 26.4
-[lib.numeric.ops] by adding the following to 26.4.4/2
-[lib.adjacent.difference]:
-</p>
-
-<blockquote><p>
-The type of <tt>*first</tt> shall meet the requirements of
-<tt>CopyConstructible</tt> (20.1.3) and <tt>Assignable</tt> (23.1) types."
-</p></blockquote>
-<p><i>[
-Berlin: Giving output iterator's value_types very controversial. Suggestion of
-adding signatures to allow user to specify "accumulator".
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-The intent of the algorithms is to perform their calculations using the type of the input iterator.
-Proposed wording provided.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-We did not agree that the proposed resolution was correct. For example,
-when the arguments are types <tt>(float*, float*, double*)</tt>, the
-highest-quality solution would use double as the type of the
-accumulator. If the intent of the wording is to require that the type of
-the accumulator must be the <tt>input_iterator</tt>'s <tt>value_type</tt>, the wording
-should specify it.
-</p></blockquote>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Now that we have the facility, the 'best' accumulator type could probably be
-deduced as:
-</p>
-<blockquote><pre>
-std::common_type&lt;InIter::value_type, OutIter::reference&gt;::type
-</pre></blockquote>
-<p>
-This type would then have additional requirements of constructability and
-incrementability/assignability.
-</p>
-<p>
-If this extracting an accumulator type from a pair/set of iterators (with
-additional requirements on that type) is a problem for multiple functions,
-it might be worth extracting into a SharedAccumulator concept or similar.
-</p>
-<p>
-I'll go no further in writing up wording now, until the group gives a
-clearer indication of preferred direction.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution isn't quite right. For example, "the type of
-<tt>*first</tt>" should be changed to "<tt>iterator::value_type</tt>" or similar. Daniel
-volunteered to correct the wording.
-</p></blockquote>
-
-<p><i>[
-2009-07-29 Daniel corrected wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-<ol>
-<li>
-<p>
-Change 26.7.4 [partial.sum]/1 as indicated:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> <ins>Let <tt>VT</tt> be <tt>InputIterator</tt>'s value type. For a nonempty range,
-initializes an accumulator <tt>acc</tt> of type <tt>VT</tt> with <tt>*first</tt> and performs
-<tt>*result = acc</tt>. For every iterator <tt>i</tt> in <tt>[first + 1, last)</tt> in order, <tt>acc</tt> is then
-modified by <tt>acc = acc + *i</tt> or <tt>acc = binary_op(acc, *i)</tt> and is assigned
-to <tt>*(result + (i - first))</tt>.</ins> <del>Assigns to every element referred to by
-iterator <tt>i</tt> in the range <tt>[result,result + (last - first))</tt> a value
-correspondingly
-equal to</del>
-</p>
-
-<blockquote><pre><del>
-((...(*first + *(first + 1)) + ...) + *(first + (i - result)))
-</del></pre></blockquote>
-
-<p><del>
-or
-</del></p>
-
-<blockquote><pre><del>
-binary_op(binary_op(...,
-   binary_op(*first, *(first + 1)),...), *(first + (i - result)))
-</del></pre></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 26.7.4 [partial.sum]/3 as indicated:
-</p>
-
-<blockquote><p>
-<i>Complexity:</i> Exactly <tt><ins>max(</ins>(last - first) - 1<ins>, 0)</ins></tt>
-applications
-of <tt><del>binary_op</del></tt><ins>the binary operation</ins>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 26.7.4 [partial.sum]/4 as indicated:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <ins><tt>VT</tt> shall be constructible from the type of <tt>*first</tt>, the result of
-<tt>acc + *i</tt> or <tt>binary_op(acc, *i)</tt> shall be implicitly convertible to <tt>VT</tt>, and
-the result of the expression <tt>acc</tt> shall be writable to the <tt>result</tt>
-output iterator.</ins> In the ranges <tt>[first,last]</tt> and
-<tt>[result,result + (last - first)]</tt> [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 26.7.5 [adjacent.difference]/1 as indicated:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> <ins>Let <tt>VT</tt> be <tt>InputIterator</tt>'s value type. For a nonempty range,
-initializes an accumulator <tt>acc</tt> of type <tt>VT</tt> with <tt>*first</tt> and performs
-<tt>*result = acc</tt>. For every iterator <tt>i</tt> in <tt>[first + 1, last)</tt> in order,
-initializes a
-value <tt>val</tt> of type <tt>VT</tt> with <tt>*i</tt>, assigns the result of <tt>val - acc</tt> or
-<tt>binary_op(val, acc)</tt>
-to <tt>*(result + (i - first))</tt> and modifies <tt>acc = std::move(val)</tt>.</ins>
-<del>Assigns to every element referred to by iterator <tt>i</tt> in the range
-<tt>[result + 1,
-result + (last - first))</tt> a value correspondingly equal to</del>
-</p>
-
-<blockquote><pre><del>
-*(first + (i - result)) - *(first + (i - result) - 1)
-</del></pre></blockquote>
-
-<p><del>
-or
-</del></p>
-
-<blockquote><pre><del>
-binary_op(*(first + (i - result)), *(first + (i - result) - 1)).
-</del></pre></blockquote>
-
-<p><del>
-result gets the value of *first.</del>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 26.7.5 [adjacent.difference]/2 as indicated:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <ins><tt>VT</tt> shall be <tt>MoveAssignable</tt> ([moveassignable])
-and shall be
-constructible from the type of <tt>*first</tt>. The result
-of the expression <tt>acc</tt> and the result of the expression <tt>val - acc</tt> or
-<tt>binary_op(val, acc)</tt>
-shall be writable to the <tt>result</tt> output iterator.</ins> In the ranges
-<tt>[first,last]</tt> [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 26.7.5 [adjacent.difference]/5 as indicated:
-</p>
-
-<blockquote><p>
-<i>Complexity:</i> Exactly <tt><ins>max(</ins>(last - first) - 1<ins>, 0)</ins></tt>
-applications
-of <del><tt>binary_op</tt></del><ins>the binary operation</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="540"></a>540. shared_ptr&lt;void&gt;::operator*()</h3>
-<p><b>Section:</b> 20.8.2.2.5 [util.smartptr.shared.obs], TR1 2.2.3.5 [tr.util.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2005-10-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.obs">issues</a> in [util.smartptr.shared.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I'm trying to reconcile the note in tr.util.smartptr.shared.obs, p6
-that talks about the operator*() member function of shared_ptr:
-</p>
-
-<blockquote><p>
-  Notes: When T is void, attempting to instantiate this member function
-  renders the program ill-formed. [Note: Instantiating shared_ptr&lt;void&gt;
-  does not necessarily result in instantiating this member function.
-  --end note]
-</p></blockquote>
-
-<p>
-with the requirement in temp.inst, p1:
-</p>
-
-<blockquote><p>
-  The implicit instantiation of a class template specialization causes
-  the implicit instantiation of the declarations, but not of the
-  definitions...
-</p></blockquote>
-
-<p>
-I assume that what the note is really trying to say is that
-"instantiating shared_ptr&lt;void&gt; *must not* result in instantiating
-this member function." That is, that this function must not be
-declared a member of shared_ptr&lt;void&gt;. Is my interpretation
-correct?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 2.2.3.5p6
-</p>
-
-<blockquote><p>
--6- <del><i>Notes:</i></del> When <tt>T</tt> is <tt>void</tt>, <del>attempting to instantiate
-this member function renders the program ill-formed. [<i>Note:</i>
-Instantiating <tt>shared_ptr&lt;void&gt;</tt> does not necessarily result in
-instantiating this member function. <i>--end note</i>]</del> <ins>it is
-unspecified whether this member function is declared or not, and if so, what its
-return type is, except that the declaration (although not necessarily the
-definition) of the function shall be well-formed.</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="541"></a>541. shared_ptr template assignment and void</h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared], TR1 2.2.3 [tr.util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2005-10-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Is the void specialization of the template assignment operator taking
-a shared_ptr&lt;void&gt; as an argument supposed be well-formed?
-</p>
-<p>
-I.e., is this snippet well-formed:
-</p>
-<blockquote><pre>
-shared_ptr&lt;void&gt; p;
-p.operator=&lt;void&gt;(p);
-</pre></blockquote>
-
-<p>
-Gcc complains about auto_ptr&lt;void&gt;::operator*() returning a reference
-to void. I suspect it's because shared_ptr has two template assignment
-operators, one of which takes auto_ptr, and the auto_ptr template gets
-implicitly instantiated in the process of overload resolution.
-</p>
-
-<p>
-The only way I see around it is to do the same trick with auto_ptr&lt;void&gt;
-operator*() as with the same operator in shared_ptr&lt;void&gt;.
-</p>
-
-<p>
-PS Strangely enough, the EDG front end doesn't mind the code, even
-though in a small test case (below) I can reproduce the error with
-it as well.
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-struct A { T&amp; operator*() { return *(T*)0; } };
-
-template &lt;class T&gt;
-struct B {
-    void operator= (const B&amp;) { }
-    template &lt;class U&gt;
-    void operator= (const B&lt;U&gt;&amp;) { }
-    template &lt;class U&gt;
-    void operator= (const A&lt;U&gt;&amp;) { }
-};
-
-int main ()
-{
-    B&lt;void&gt; b;
-    b.operator=&lt;void&gt;(b);
-}
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In [lib.memory] change:
-</p>
-<blockquote><pre>
-template&lt;class X&gt; class auto_ptr;
-<ins>template&lt;&gt; class auto_ptr&lt;void&gt;;</ins>
-</pre></blockquote>
-
-<p>
-In [lib.auto.ptr]/2 add the following before the last closing brace:
-</p>
-
-<blockquote><pre>
-template&lt;&gt; class auto_ptr&lt;void&gt;
-{
-public:
-    typedef void element_type;
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="542"></a>542. shared_ptr observers</h3>
-<p><b>Section:</b> 20.8.2.2.5 [util.smartptr.shared.obs], TR1 2.2.3.5 [tr.util.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2005-10-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.obs">issues</a> in [util.smartptr.shared.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Peter Dimov wrote:
-To: C++ libraries mailing list
-Message c++std-lib-15614
-[...]
-The intent is for both use_count() and unique() to work in a threaded environment.
-They are intrinsically prone to race conditions, but they never return garbage.
-</p>
-
-<p>
-This is a crucial piece of information that I really wish were
-captured in the text. Having this in a non-normative note would
-have made everything crystal clear to me and probably stopped
-me from ever starting this discussion :) Instead, the sentence
-in p12 "use only for debugging and testing purposes, not for
-production code" very strongly suggests that implementations
-can and even are encouraged to return garbage (when threads
-are involved) for performance reasons.
-</p>
-<p>
-How about adding an informative note along these lines:
-</p>
-<blockquote><p>
-  Note: Implementations are encouraged to provide well-defined
-  behavior for use_count() and unique() even in the presence of
-  multiple threads.
-</p></blockquote>
-<p>
-I don't necessarily insist on the exact wording, just that we
-capture the intent.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.2.2.5 [util.smartptr.shared.obs] p12:
-</p>
-<blockquote><p>
-[<i>Note:</i> <tt>use_count()</tt> is not necessarily efficient. <del>Use only for
-debugging and testing purposes, not for production code.</del> --<i>end note</i>]
-</p></blockquote>
-
-<p>
-Change 20.8.2.3.5 [util.smartptr.weak.obs] p3:
-</p>
-<blockquote><p>
-[<i>Note:</i> <tt>use_count()</tt> is not necessarily efficient. <del>Use only for
-debugging and testing purposes, not for production code.</del> --<i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="543"></a>543. valarray slice default constructor</h3>
-<p><b>Section:</b> 26.6.4 [class.slice] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2005-11-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If one explicitly constructs a slice or glice with the default
-constructor, does the standard require this slice to have any usable
-state?  It says "creates a slice which specifies no elements", which
-could be interpreted two ways:
-</p>
-<ol>
-<li>There are no elements to which the slice refers (i.e. undefined).</li>
-<li>The slice specifies an array with no elements in it (i.e. defined).</li>
-</ol>
-<p>
-Here is a bit of code to illustrate:
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;valarray&gt;
-
-int main()
-{
-    std::valarray&lt;int&gt; v(10);
-    std::valarray&lt;int&gt; v2 = v[std::slice()];
-    std::cout &lt;&lt; "v[slice()].size() = " &lt;&lt; v2.size() &lt;&lt; '\n';
-}
-</pre></blockquote>
-
-<p>
-Is the behavior undefined?  Or should the output be:
-</p>
-
-<blockquote><pre>
-v[slice()].size() = 0
-</pre></blockquote>
-
-<p>
-There is a similar question and wording for gslice at 26.3.6.1p1.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[Martin suggests removing the second sentence in 26.6.4.2 [cons.slice] as well.]</i></p>
-
-
-<p>
-Change 26.6.4.2 [cons.slice]:
-</p>
-
-<blockquote><p>
-1 - <del>The default constructor for <tt>slice</tt> creates a <tt>slice</tt>
-which specifies no elements.</del> <ins>The default constructor is equivalent to
-<tt>slice(0, 0, 0)</tt>.</ins> A default constructor is provided only to permit
-the declaration of arrays of slices. The constructor with arguments for a slice
-takes a start, length, and stride parameter.
-</p></blockquote>
-
-<p>
-Change 26.6.6.2 [gslice.cons]:
-</p>
-
-<blockquote><p>
-1 - <del>The default constructor creates a <tt>gslice</tt> which specifies no
-elements.</del> <ins>The default constructor is equivalent to <tt>gslice(0,
-valarray&lt;size_t&gt;(), valarray&lt;size_t&gt;())</tt>.</ins> The constructor
-with arguments builds a <tt>gslice</tt> based on a specification of start,
-lengths, and strides, as explained in the previous section.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="545"></a>545. When is a deleter deleted?</h3>
-<p><b>Section:</b> 20.8.2.2.10 [util.smartptr.getdeleter], TR1 2.2.3.2 [tr.util.smartptr.shared.dest] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2006-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.getdeleter">issues</a> in [util.smartptr.getdeleter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The description of ~shared_ptr doesn't say when the shared_ptr's deleter, if
-any, is destroyed. In principle there are two possibilities: it is destroyed
-unconditionally whenever ~shared_ptr is executed (which, from an implementation
-standpoint, means that the deleter is copied whenever the shared_ptr is copied),
-or it is destroyed immediately after the owned pointer is destroyed (which, from
-an implementation standpoint, means that the deleter object is shared between
-instances). We should say which it is.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add after the first sentence of 20.8.2.2.10 [util.smartptr.getdeleter]/1:
-</p>
-<blockquote>
-<p>
-The returned pointer remains valid as long as there exists a <tt>shared_ptr</tt> instance
-that owns <tt><i>d</i></tt>.
-</p>
-<p>
-[<i>Note:</i> it is unspecified whether the pointer remains valid longer than that.
-This can happen if the implementation doesn't destroy the deleter until all
-<tt>weak_ptr</tt> instances in the ownership group are destroyed. <i>-- end note</i>]
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="550"></a>550. What should the return type of <tt>pow(float,int)</tt> be?</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2006-01-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Assuming we adopt the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf">C
-compatibility package from C99</a>  what should be the return type of the
-following signature be:
-</p>
-<blockquote><pre>
-?  pow(float, int);
-</pre></blockquote>
-<p>
-C++03 says that the return type should be <tt>float</tt>. 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf">
-TR1</a> and C90&#47;99 say the return type should be <tt>double</tt>.  This can put
-clients into a situation where C++03 provides answers that are not as high
-quality as C90&#47;C99&#47;TR1.  For example:
-</p>
-<blockquote><pre>
-#include &lt;math.h&gt;
-
-int main()
-{
-    float x = 2080703.375F;
-    double y = pow(x, 2);
-}
-</pre></blockquote>
-<p>
-Assuming an IEEE 32 bit float and IEEE 64 bit double, C90&#47;C99&#47;TR1 all suggest:
-</p>
-
-<blockquote><pre>
-y = 4329326534736.390625
-</pre></blockquote>
-
-<p>
-which is exactly right.  While C++98&#47;C++03 demands:
-</p>
-
-<blockquote><pre>
-y = 4329326510080.
-</pre></blockquote>
-
-<p>
-which is only approximately right.
-</p>
-
-<p>
-I recommend that C++0X adopt the mixed mode arithmetic already adopted by
-Fortran, C and TR1 and make the return type of <tt>pow(float,int)</tt> be
-<tt>double</tt>.
-</p>
-
-<p><i>[
-Kona (2007): Other functions that are affected by this issue include
-<tt>ldexp</tt>, <tt>scalbln</tt>, and <tt>scalbn</tt>. We also believe that there is a typo in
-26.7&#47;10: <tt>float nexttoward(float, long double);</tt> [sic] should be <tt>float
-nexttoward(float, float);</tt> Proposed Disposition: Review (the proposed
-resolution appears above, rather than below, the heading "Proposed
-resolution")
-]</i></p>
-
-
-<p><i>[Howard, post Kona:]</i></p>
-
-<blockquote>
-<p>
-Unfortunately I strongly disagree with a part of the resolution
-from Kona.  I am moving from New to Open instead of to Review because I do not believe
-we have consensus on the intent of the resolution.
-</p>
-<p>
-This issue does not include <tt>ldexp</tt>, <tt>scalbln</tt>, and <tt>scalbn</tt> because
-the second integral parameter in each of these signatures (from C99) is <b>not</b> a
-<i>generic parameter</i> according to C99 7.22p2.  The corresponding C++ overloads are
-intended (as far as I know) to correspond directly to C99's definition of <i>generic parameter</i>.
-</p>
-<p>
-For similar reasons, I do not believe that the second <tt>long double</tt> parameter of
-<tt>nexttoward</tt>, nor the return type of this function, is in error.  I believe the
-correct signature is:
-</p>
-<blockquote>
-<pre>
-float nexttoward(float, long double);
-</pre>
-</blockquote>
-<p>
-which is what both the C++0X working paper and C99 state (as far as I currently understand).
-</p>
-<p>
-This is really <b>only</b> about <tt>pow(float, int)</tt>.  And this is because C++98 took one
-route (with <tt>pow</tt> only) and C99 took another (with many math functions in <tt>&lt;tgmath.h&gt;</tt>.
-The proposed resolution basically says: C++98 got it wrong and C99 got it right; let's go with C99.
-</p>
-</blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-This signature was not picked up from C99. Instead, if one types
-<tt>pow(2.0f,2)</tt>, the promotion rules will invoke "double pow(double,
-double)", which generally gives special treatment for integral
-exponents, preserving full accuracy of the result.  New proposed
-wording provided.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.8 [c.math] p10:
-</p>
-
-<blockquote>
-<p>
-The added signatures are:
-</p>
-<blockquote><pre>
-...
-<del>float pow(float, int);</del>
-...
-<del>double pow(double, int);</del>
-...
-<del>long double pow(long double, int);</del>
-</pre></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="551"></a>551. &lt;ccomplex&gt;</h3>
-<p><b>Section:</b> X [cmplxh], TR1 8.3 [tr.c99.cmplxh] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2006-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Previously xxx.h was parsable by C++.  But in the case of C99's &lt;complex.h&gt;
-it isn't.  Otherwise we could model it just like &lt;string.h&gt;, &lt;cstring&gt;, &lt;string&gt;:
-</p>
-
-<ul>
-<li>&lt;string&gt;   : C++ API in namespace std</li>
-<li>&lt;cstring&gt;  : C API in namespace std</li>
-<li>&lt;string.h&gt; : C API in global namespace</li>
-</ul>
-
-<p>
-In the case of C's complex, the C API won't compile in C++.  So we have:
-</p>
-
-<ul>
-<li>&lt;complex&gt;   : C++ API in namespace std</li>
-<li>&lt;ccomplex&gt;  : ?</li>
-<li>&lt;complex.h&gt; : ?</li>
-</ul>
-
-<p>
-The ? can't refer to the C API.  TR1 currently says:
-</p>
-
-<ul>
-<li>&lt;complex&gt;   : C++ API in namespace std</li>
-<li>&lt;ccomplex&gt;  : C++ API in namespace std</li>
-<li>&lt;complex.h&gt; : C++ API in global namespace</li>
-</ul>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.3.11 [cmplxh]:
-</p>
-
-<blockquote>
-<p>
-The header behaves as if it includes the header
-<tt>&lt;ccomplex&gt;</tt><ins>.</ins><del>, and provides sufficient using
-declarations to declare in the global namespace all function and type names
-declared or defined in the neader <tt>&lt;complex&gt;</tt>.</del>
-<ins>[<i>Note:</i> <tt>&lt;complex.h&gt;</tt> does not promote any interface
-into the global namespace as there is no C interface to promote. <i>--end
-note</i>]</ins>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="552"></a>552. random_shuffle and its generator</h3>
-<p><b>Section:</b> 25.3.12 [alg.random.shuffle] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-01-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.random.shuffle">issues</a> in [alg.random.shuffle].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-...is specified to shuffle its range by calling swap but not how
-(or even that) it's supposed to use the RandomNumberGenerator
-argument passed to it.
-</p>
-<p>
-Shouldn't we require that the generator object actually be used
-by the algorithm to obtain a series of random numbers and specify
-how many times its operator() should be invoked by the algorithm?
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="556"></a>556. Is <tt>Compare</tt> a <tt>BinaryPredicate</tt>?</h3>
-<p><b>Section:</b> 25.4 [alg.sorting] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.sorting">issues</a> in [alg.sorting].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 25, p8 we allow BinaryPredicates to return a type that's convertible
-to bool but need not actually be bool. That allows predicates to return
-things like proxies and requires that implementations be careful about
-what kinds of expressions they use the result of the predicate in (e.g.,
-the expression in if (!pred(a, b)) need not be well-formed since the
-negation operator may be inaccessible or return a type that's not
-convertible to bool).
-</p>
-<p>
-Here's the text for reference:
-</p>
-<blockquote><p>
-  ...if an algorithm takes BinaryPredicate binary_pred as its argument
- and first1 and first2 as its iterator arguments, it should work
- correctly in the construct if (binary_pred(*first1, first2)){...}.
-</p></blockquote>
-
-<p>
-In 25.3, p2 we require that the Compare function object return true
-of false, which would seem to preclude such proxies. The relevant text
-is here:
-</p>
-<blockquote><p>
-  Compare is used as a function object which returns true if the first
-  argument is less than the second, and false otherwise...
-</p></blockquote>
-
-<p><i>[
-Portland:  Jack to define "convertible to bool" such that short circuiting isn't
-destroyed.
-]</i></p>
-
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Review once wording received. Stefanus to send proposed wording.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Review once wording received. Stefanus to send proposed wording.
-</p></blockquote>
-
-<p><i>[
-2009-10-24 Stefanus supplied wording.
-]</i></p>
-
-
-<blockquote><p>
-Move to Review once wording received. Stefanus to send proposed wording.
-Old proposed wording here:
-</p><blockquote>
-<p>
-I think we could fix this by rewording 25.3, p2 to read somthing like:
-</p>
-<blockquote><p>
--2- <tt>Compare</tt> is <del>used as a function object which returns
-<tt>true</tt> if the first argument</del> <ins>a <tt>BinaryPredicate</tt>. The
-return value of the function call operator applied to an object of type
-<tt>Compare</tt>, when converted to type <tt>bool</tt>, yields <tt>true</tt>
-if the first argument of the call</ins> is less than the second, and
-<tt>false</tt> otherwise. <tt>Compare <i>comp</i></tt> is used throughout for
-algorithms assuming an ordering relation. It is assumed that <tt><i>comp</i></tt>
-will not apply any non-constant function through the dereferenced iterator.
-</p></blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-01-17:
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard expresses concern that the current direction of the proposed
-wording outlaws expressions such as:
-</p>
-
-<blockquote><pre>
-if (!comp(x, y))
-</pre></blockquote>
-
-<p>
-Daniel provides wording which addresses that concern.
-</p>
-
-<p>
-The previous wording is saved here:
-</p>
-
-<blockquote>
-
-<p>
-Change 25.4 [alg.sorting] p2:
-</p>
-<blockquote><p>
-<tt>Compare</tt> is used as a function object<ins>. The return value of
-the function call operator applied to an object of type Compare, when
-converted to type bool, yields true if the first argument of the
-call</ins> <del>which returns <tt>true</tt> if the first argument</del>
-is less than the second, and <tt>false</tt> otherwise. <tt>Compare
-comp</tt> is used throughout for algorithms assuming an ordering
-relation. It is assumed that <tt>comp</tt> will not apply any
-non-constant function through the dereferenced iterator.
-</p></blockquote>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-01-22 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Change 25.1 [algorithms.general]/7+8 as indicated. <i>[This change is
-recommended to bring the return value requirements of <tt>BinaryPredicate</tt>
-and <tt>Compare</tt> in sync.]</i>
-</p>
-
-<blockquote>
-<p>
-7 The <tt>Predicate</tt> parameter is used whenever an algorithm expects a
-function object that when applied to the result of dereferencing the
-corresponding iterator returns a value testable as <tt>true</tt>. In other
-words, if an algorithm takes <tt>Predicate pred</tt> as its argument and
-<tt>first</tt> as its iterator argument, it should work correctly in the
-construct <del>if <tt>(pred(*first)){...}</tt></del> <ins><tt>pred(*first)</tt>
-contextually converted to <tt>bool</tt> (4 [conv])</ins>. The
-function object <tt>pred</tt> shall not apply any nonconstant function through
-the dereferenced iterator. This function object may be a pointer to function, or
-an object of a type with an appropriate function call operator.
-</p>
-
-<p>
-8 The <tt>BinaryPredicate</tt> parameter is used whenever an algorithm expects a
-function object that when applied to the result of dereferencing two
-corresponding iterators or to dereferencing an iterator and type <tt>T</tt> when
-<tt>T</tt> is part of the signature returns a value testable as <tt>true</tt>.
-In other words, if an algorithm takes <tt>BinaryPredicate</tt>
-<tt>binary_pred</tt> as its argument and <tt>first1</tt> and <tt>first2</tt> as
-its iterator arguments, it should work correctly in the construct <del><tt>if
-(binary_pred(*first1, *first2)){...}</tt></del> <ins><tt>binary_pred(*first1,
-*first2)</tt> contextually converted to <tt>bool</tt> (4 [conv])</ins>. <tt>BinaryPredicate</tt> always takes the first iterator
-type as its first argument, that is, in those cases when <tt>T value</tt> is
-part of the signature, it should work correctly in the <del>context of <tt>if
-(binary_pred(*first1, value)){...}</tt></del> <ins>construct
-<tt>binary_pred(*first1, value)</tt> contextually converted to <tt>bool</tt>
-(4 [conv])</ins>. <tt>binary_pred</tt> shall not apply any
-non-constant function through the dereferenced iterators.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 25.4 [alg.sorting]/2 as indicated:
-</p>
-
-<blockquote><p>
-2 <tt>Compare</tt> is <del>used as</del> a function object <ins>type (20.9 [function.objects]). The return value of the function call operation
-applied to an object of type <tt>Compare</tt>, when contextually converted to
-type <tt>bool</tt> (4 [conv]), yields <tt>true</tt> if the first
-argument of the call</ins><del> which returns <tt>true</tt> if the first
-argument</del> is less than the second, and <tt>false</tt> otherwise.
-<tt>Compare comp</tt> is used throughout for algorithms assuming an ordering
-relation. It is assumed that <tt>comp</tt> will not apply any non-constant
-function through the dereferenced iterator.
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="559"></a>559. numeric_limits&lt;const T&gt;</h3>
-<p><b>Section:</b> 18.3.2 [limits] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#limits">issues</a> in [limits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-18.3.2 [limits], p2 requires implementations  to provide specializations of the
-<code>numeric_limits</code> template for  each scalar type. While this
-could be interepreted to include cv-qualified forms of such types such
-an  interepretation   is  not  reflected   in  the  synopsis   of  the
-<code>&lt;limits&gt;</code> header.
-
-        </p>
-        <p>
-
-The absence  of specializations of the template  on cv-qualified forms
-of  fundamental types  makes <code>numeric_limits</code>  difficult to
-use in generic  code where the constness (or volatility)  of a type is
-not  always  immediately  apparent.  In  such  contexts,  the  primary
-template  ends   up  being   instantiated  instead  of   the  provided
-specialization, typically yielding unexpected behavior.
-
-        </p>
-        <p>
-
-Require   that  specializations   of   <code>numeric_limits</code>  on
-cv-qualified fundamental types have the same semantics as those on the
-unqualifed forms of the same types.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Add  to  the   synopsis  of  the  <code>&lt;limits&gt;</code>  header,
-immediately  below  the  declaration  of  the  primary  template,  the
-following:
-</p>
-
-<pre>
-
-template &lt;class T&gt; class numeric_limits&lt;const T&gt;;
-template &lt;class T&gt; class numeric_limits&lt;volatile T&gt;;
-template &lt;class T&gt; class numeric_limits&lt;const volatile T&gt;;
-
-</pre>
-
-        <p>
-
-Add  a new paragraph  to the  end of  18.3.2.3 [numeric.limits], with  the following
-text:
-
-        </p>
-        <p>
-
--new-para- The  value of each member  of a <code>numeric_limits</code>
-specialization on a  cv-qualified T is equal to the  value of the same
-member of <code>numeric_limits&lt;T&gt;</code>.
-
-        </p>
-
-<p><i>[
-Portland: Martin will clarify that user-defined types get cv-specializations
-automatically.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="561"></a>561. inserter overly generic</h3>
-<p><b>Section:</b> 24.5.2.6.5 [inserter] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2006-02-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The declaration of <tt>std::inserter</tt> is:
-</p>
-
-<blockquote><pre>
-template &lt;class Container, class Iterator&gt;
-insert_iterator&lt;Container&gt;
-inserter(Container&amp; x, Iterator i);
-</pre></blockquote>
-
-<p>
-The template parameter <tt>Iterator</tt> in this function is completely unrelated
-to the template parameter <tt>Container</tt> when it doesn't need to be.  This
-causes the code to be overly generic.  That is, any type at all can be deduced
-as <tt>Iterator</tt>, whether or not it makes sense.  Now the same is true of
-<tt>Container</tt>.  However, for every free (unconstrained) template parameter
-one has in a signature, the opportunity for a mistaken binding grows geometrically.
-</p>
-
-<p>
-It would be much better if <tt>inserter</tt> had the following signature instead:
-</p>
-
-<blockquote><pre>
-template &lt;class Container&gt;
-insert_iterator&lt;Container&gt;
-inserter(Container&amp; x, typename Container::iterator i);
-</pre></blockquote>
-
-<p>
-Now there is only one free template parameter.  And the second argument to
-<tt>inserter</tt> must be implicitly convertible to the container's iterator,
-else the call will not be a viable overload (allowing other functions in the
-overload set to take precedence).  Furthermore, the first parameter must have a
-nested type named <tt>iterator</tt>, or again the binding to <tt>std::inserter</tt>
-is not viable.  Contrast this with the current situation
-where any type can bind to <tt>Container</tt> or <tt>Iterator</tt> and those
-types need not be anything closely related to containers or iterators.
-</p>
-
-<p>
-This can adversely impact well written code.  Consider:
-</p>
-
-<blockquote><pre>
-#include &lt;iterator&gt;
-#include &lt;string&gt;
-
-namespace my
-{
-
-template &lt;class String&gt;
-struct my_type {};
-
-struct my_container
-{
-template &lt;class String&gt;
-void push_back(const my_type&lt;String&gt;&amp;);
-};
-
-template &lt;class String&gt;
-void inserter(const my_type&lt;String&gt;&amp; m, my_container&amp; c) {c.push_back(m);}
-
-}  // my
-
-int main()
-{
-    my::my_container c;
-    my::my_type&lt;std::string&gt; m;
-    inserter(m, c);
-}
-</pre></blockquote>
-
-<p>
-Today this code fails because the call to <tt>inserter</tt> binds to
-<tt>std::inserter</tt> instead of to <tt>my::inserter</tt>.  However with the
-proposed change <tt>std::inserter</tt> will no longer be a viable function which
-leaves only <tt>my::inserter</tt> in the overload resolution set.  Everything
-works as the client intends.
-</p>
-
-<p>
-To make matters a little more insidious, the above example works today if you
-simply change the first argument to an rvalue:
-</p>
-
-<blockquote><pre>
-    inserter(my::my_type(), c);
-</pre></blockquote>
-
-<p>
-It will also work if instantiated with some string type other than
-<tt>std::string</tt> (or any other <tt>std</tt> type).  It will also work if
-<tt>&lt;iterator&gt;</tt> happens to not get included.
-</p>
-
-<p>
-And it will fail again for such inocuous reaons as <tt>my_type</tt> or
-<tt>my_container</tt> privately deriving from any <tt>std</tt> type.
-</p>
-
-<p>
-It seems unfortunate that such simple changes in the client's code can result
-in such radically differing behavior.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.2:
-</p>
-
-<blockquote><p>
-<b>24.2 Header</b> <tt>&lt;iterator&gt;</tt> <b>synopsis</b>
-</p>
-<blockquote><pre>
-...
-template &lt;class Container<del>, class Iterator</del>&gt;
-   insert_iterator&lt;Container&gt; inserter(Container&amp; x, <del>Iterator</del> <ins>typename Container::iterator</ins> i);
-...
-</pre></blockquote>
-</blockquote>
-
-<p>
-Change 24.4.2.5:
-</p>
-
-<blockquote><p>
-<b>24.4.2.5 Class template</b> <tt>insert_iterator</tt></p>
-<blockquote><pre>
-...
-template &lt;class Container<del>, class Iterator</del>&gt;
-   insert_iterator&lt;Container&gt; inserter(Container&amp; x, <del>Iterator</del> <ins>typename Container::iterator</ins> i);
-...
-</pre></blockquote>
-</blockquote>
-
-<p>
-Change 24.4.2.6.5:
-</p>
-
-<blockquote>
-<p>
-<b>24.4.2.6.5</b> <tt>inserter</tt>
-</p>
-<pre>
-template &lt;class Container<del>, class Inserter</del>&gt;
-   insert_iterator&lt;Container&gt; inserter(Container&amp; x, <del>Inserter</del> <ins>typename Container::iterator</ins> i);
-</pre>
-<blockquote><p>
--1- <i>Returns:</i> <tt>insert_iterator&lt;Container&gt;(x,<del>typename Container::iterator(</del>i<del>)</del>)</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007): This issue will probably be addressed as a part of the concepts overhaul of the library anyway, but the proposed resolution is correct in the absence of concepts. 
-Proposed Disposition: Ready
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="562"></a>562. stringbuf ctor inefficient</h3>
-<p><b>Section:</b> 27.8 [string.streams] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.streams">issues</a> in [string.streams].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-For  better efficiency,  the requirement  on the  stringbuf  ctor that
-takes  a  string  argument  should  be  loosened  up  to  let  it  set
-<code>epptr()</code>  beyond  just   one  past  the  last  initialized
-character  just like  <code>overflow()</code> has  been changed  to be
-allowed  to  do   (see  issue  432).  That  way   the  first  call  to
-<code>sputc()</code> on  an object won't  necessarily cause a  call to
-<code>overflow</code>. The corresponding change  should be made to the
-string overload of the <code>str()</code> member function.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Change 27.7.1.1, p3 of the Working Draft, N1804, as follows:
-
-        </p>
-
-<blockquote><pre>
-explicit basic_stringbuf(const basic_string&lt;charT,traits,Allocator&gt;&amp; <i>s<del>tr</del></i>,
-               ios_base::openmode <i>which</i> = ios_base::in | ios_base::out);
-</pre>
-
-<p>
--3- <i>Effects:</i>  Constructs an object of class <tt>basic_stringbuf</tt>,
-initializing the base class with <tt>basic_streambuf()</tt>
-(27.5.2.1), and initializing <tt><i>mode</i></tt> with <tt><i>which</i></tt>.
-Then <ins>calls <tt>str(<i>s</i>)</tt>.</ins> <del>copies the content of
-<i>str</i> into the <tt>basic_stringbuf</tt> underlying character
-sequence. If <tt><i>which</i> &amp; ios_base::out</tt> is true, initializes the
-output sequence such that <tt>pbase()</tt> points to the first underlying
-character, <tt>epptr()</tt> points one past the last underlying character, and
-<tt>pptr()</tt> is equal to <tt>epptr()</tt> if <tt><i>which</i> &amp; ios_base::ate</tt>
-is true, otherwise <tt>pptr()</tt> is equal to <tt>pbase()</tt>. If
-<tt>which &amp; ios_base::in</tt> is true, initializes the input sequence such
-that <tt>eback()</tt> and <tt>gptr()</tt> point to the first underlying 
-character and <tt>egptr()</tt> points one past the last underlying character.</del>
-</p>
-</blockquote>
-
-        <p>
-
-Change the Effects clause of the <code>str()</code> in 27.7.1.2, p2 to
-read:
-
-        </p>
-<blockquote>
-<p>
--2- <i>Effects:</i> Copies the content<ins>s</ins> of <tt><i>s</i></tt> into the
-<tt>basic_stringbuf</tt> underlying character sequence <ins>and
-initializes the input and output sequences according to <tt><i>mode</i></tt></ins>.
-<del>If
-<tt><i>mode</i> &amp; ios_base::out</tt> is true, initializes the output
-sequence such that <tt>pbase()</tt> points to the first underlying character, 
-<tt>epptr()</tt> points one past the last underlying character, and <tt>pptr()</tt>
-is equal to <tt>epptr()</tt> if <tt><i>mode</i> &amp; ios_base::in</tt>
-is true, otherwise <tt>pptr()</tt> is equal to <tt>pbase()</tt>. If
-<tt>mode &amp; ios_base::in</tt> is true, initializes the input sequence 
-such that <tt>eback()</tt> and <tt>gptr()</tt> point to the first underlying
-character and <tt>egptr()</tt> points one past the last underlying character.</del>
-</p>
-
-        <p>
-
-<ins>-3- <i>Postconditions:</i>  If  <code>mode  &amp; ios_base::out</code>  is  true,
-<code>pbase()</code>  points  to the  first  underlying character  and
-<code>(epptr() &gt;= pbase() + s.size())</code> holds; in addition, if
-<code>mode &amp; ios_base::in</code> is true, <code>(pptr() == pbase()
-+ s.data())</code>  holds, otherwise <code>(pptr()  == pbase())</code>
-is   true.    If  <code>mode   &amp;   ios_base::in</code>  is   true,
-<code>eback()</code>  points to  the first  underlying  character, and
-<code>(gptr()  ==  eback())</code>  and  <code>(egptr() ==  eback()  +
-s.size())</code> hold.</ins>
-
-        </p>
-</blockquote>
-
-
-<p><i>[
-Kona (2007) Moved to Ready.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="563"></a>563. stringbuf seeking from end</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to  Table 92  (unchanged by issue  432), when  <code>(way ==
-end)</code> the  <code>newoff</code> value in out mode  is computed as
-the difference between <code>epptr()</code> and <code>pbase()</code>.
-</p>
-        <p>
-
-This value  isn't meaningful unless the  value of <code>epptr()</code>
-can be  precisely controlled by a  program.  That used  to be possible
-until  we accepted the  resolution of  issue 432,  but since  then the
-requirements on <code>overflow()</code> have  been relaxed to allow it
-to  make  more than  1  write  position  available (i.e.,  by  setting
-<code>epptr()</code>     to     some     unspecified    value     past
-<code>pptr()</code>).      So    after     the    first     call    to
-<code>overflow()</code>  positioning the  output sequence  relative to
-end will have unspecified results.
-
-        </p>
-        <p>
-
-In  addition,  in <code>in|out</code>  mode,  since <code>(egptr()  ==
-epptr())</code> need not hold, there are two different possible values
-for   <code>newoff</code>:    <code>epptr()   -   pbase()</code>   and
-<code>egptr() - eback()</code>.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Change the <code>newoff</code>  column in the last row  of Table 94 to
-read:
-
-        </p>
-<blockquote><p>
-
-the <del>end</del> <ins>high mark</ins> pointer minus the beginning 
-pointer (<code><del>xend</del> <ins>high_mark</ins> - xbeg</code>).
-
-</p></blockquote>
-
-
-<p><i>[
-Kona (2007) Moved to Ready.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="564"></a>564. <tt>stringbuf</tt> seekpos underspecified</h3>
-<p><b>Section:</b> 27.8.2.4 [stringbuf.virtuals] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#stringbuf.virtuals">issues</a> in [stringbuf.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The   effects  of  the   <code>seekpos()</code>  member   function  of
-<code>basic_stringbuf</code>  simply say  that the  function positions
-the  input and/or  output  sequences  but fail  to  spell out  exactly
-how. This is in contrast  to the detail in which <code>seekoff()</code>
-is described.
-</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Change 27.7.1.3, p13 to read:
-
-        </p>
-<blockquote>
-<p>
--13- <i>Effects:</i> <ins>Equivalent to <tt>seekoff(off_type(<i>sp</i>), ios_base::beg,
-<i>which</i>)</tt>.</ins> <del>Alters the stream position within the controlled sequences,
-if possible, to correspond to the stream position stored in <tt><i>sp</i></tt>
-(as described below).</del>
-</p>
-<ul>
-<li><del>If <tt>(<i>which</i> &amp; ios_base::in) != 0</tt>, positions the input sequence.</del></li>
-<li><del>If <tt>(<i>which</i> &amp; ios_base::out) != 0</tt>, positions the output sequence.</del></li>
-<li><del>If <tt><i>sp</i></tt> is an invalid stream position, or if the function
-positions neither sequence, the positioning operation fails. If <tt><i>sp</i></tt>
-has not been obtained by a previous successful call to one of the positioning
-functions (<tt>seekoff</tt>, <tt>seekpos</tt>, <tt>tellg</tt>, <tt>tellp</tt>)
-the effect is undefined.</del></li>
-</ul>
-</blockquote>
-
-
-<p><i>[
-Kona (2007): A <tt>pos_type</tt> is a position in a stream by
-definition, so there is no ambiguity as to what it means. Proposed
-Disposition: NAD
-]</i></p>
-
-
-<p><i>[
-Post-Kona Martin adds:
-I'm afraid I disagree
-with the Kona '07 rationale for marking it NAD. The only text
-that describes precisely what it means to position the input
-or output sequence is in <tt>seekoff()</tt>. The <tt>seekpos()</tt> Effects
-clause is inadequate in comparison and the proposed resolution
-plugs the hole by specifying <tt>seekpos()</tt> in terms of <tt>seekoff()</tt>.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="565"></a>565. <tt>xsputn</tt> inefficient</h3>
-<p><b>Section:</b> 27.6.3.4.5 [streambuf.virt.put] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-<tt>streambuf::xsputn()</tt>  is  specified  to  have  the  effect  of
-"writing up to  <tt>n</tt> characters to the output  sequence as if by
-repeated calls to <tt>sputc(c)</tt>."
-
-        </p>
-        <p>
-
-Since  <tt>sputc()</tt> is required  to call  <tt>overflow()</tt> when
-<tt>(pptr()    ==   epptr())</tt>    is   true,    strictly   speaking
-<tt>xsputn()</tt>  should do  the same.   However, doing  so  would be
-suboptimal in  some interesting cases,  such as in unbuffered  mode or
-when the buffer is <tt>basic_stringbuf</tt>.
-
-        </p>
-        <p>
-
-Assuming  calling <tt>overflow()</tt>  is  not really  intended to  be
-required  and the  wording is  simply  meant to  describe the  general
-effect of appending to the end  of the sequence it would be worthwhile
-to  mention in  <tt>xsputn()</tt> that  the function  is  not actually
-required to cause a call to <tt>overflow()</tt>.
-
-        </p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Add the following sentence  to the <tt>xsputn()</tt> Effects clause in
-27.5.2.4.5, p1 (N1804):
-
-        </p>
-        <blockquote>    
-            <p>
--1- <i>Effects:</i> Writes up to <tt><i>n</i></tt> characters to the output
-sequence as if by repeated calls to <tt>sputc(<i>c</i>)</tt>. The characters 
-written are obtained from successive elements of the array whose first element
-is designated by <tt><i>s</i></tt>. Writing stops when either <tt><i>n</i></tt>
-characters have been written or a call to <tt>sputc(<i>c</i>)</tt> would return
-<tt>traits::eof()</tt>. <ins>It is  uspecified whether the function  calls
-<tt>overflow()</tt> when <tt>(pptr() ==  epptr())</tt> becomes true or whether
-it achieves the same effects by other means.</ins>
-            </p>
-        </blockquote>    
-        <p>
-
-In addition,  I suggest to  add a footnote  to this function  with the
-same text as Footnote 292 to  make it extra clear that derived classes
-are permitted to override <tt>xsputn()</tt> for efficiency.
-
-        </p>
-
-
-<p><i>[
-Kona (2007): We want to permit a <tt>streambuf</tt> that streams output directly
-to a device without making calls to <tt>sputc</tt> or <tt>overflow</tt>. We believe that
-has always been the intention of the committee. We believe that the
-proposed wording doesn't accomplish that. Proposed Disposition: Open
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="566"></a>566. array forms of unformatted input function undefined for zero-element arrays</h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The array forms of unformatted input functions don't have well-defined
-semantics for zero-element  arrays in a couple of  cases. The affected
-ones (<tt>istream::get()</tt> and  <tt>getline()</tt>) are supposed to
-terminate when <tt>(n - 1)</tt> characters are stored, which obviously
-can never be true when <tt>(n == 0)</tt> to start with.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-I  propose  the following  changes  (references  are  relative to  the
-Working Draft (document N1804).
-
-        </p>
-        <p>
-
-Change 27.6.1.3, p8 (<tt>istream::get()</tt>), bullet 1 as follows:
-
-        </p>
-        <blockquote>
-            <p>
-
-<ins>if  <tt>(n  &lt; 1)</tt>  is  true  or  </ins> <tt>(n  -  1)</tt>
-characters are stored;
-
-            </p>
-        </blockquote>
-        <p>
-
-Similarly, change  27.6.1.3, p18 (<tt>istream::getline()</tt>), bullet
-3 as follows:
-
-        </p>
-        <blockquote>
-            <p>
-
-<ins><tt>(n &lt; 1)</tt> is  true or </ins><tt>(n - 1)</tt> characters
-are     stored     (in    which     case     the    function     calls
-<tt>setstate(failbit)</tt>).
-
-            </p>
-        </blockquote>
-        <p>
-
-Finally, change p21 as follows:
-
-        </p>
-        <blockquote>
-            <p>
-
-In any  case, <ins>provided  <tt>(n &gt; 0)</tt>  is true,  </ins>it then
-stores  a null  character  (using charT())  into  the next  successive
-location of the array.
-
-            </p>
-        </blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="567"></a>567. streambuf inserter and extractor should be unformatted</h3>
-<p><b>Section:</b> 27.7 [iostream.format] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-02-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.format">issues</a> in [iostream.format].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-Issue  60 explicitly made  the extractor  and inserter  operators that
-take a  <tt>basic_streambuf*</tt> argument formatted  input and output
-functions,  respectively.  I  believe that's  wrong, certainly  in the
-case of  the extractor, since formatted functions  begin by extracting
-and  discarding  whitespace.  The  extractor  should  not discard  any
-characters.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-I propose to  change each operator to behave  as unformatted input and
-output function,  respectively. The changes below are  relative to the
-working draft document number N1804.
-
-        </p>
-        <p>
-
-Specifically, change 27.6.1.2.3, p14 as follows:
-
-        </p>
-
-            <blockquote>
-        <p>
-
-<i>Effects</i>:  Behaves as  a<ins>n un</ins>formatted  input function
-(as   described   in   <del>27.6.1.2.1</del><ins>27.6.1.3,   paragraph
-1</ins>).
-
-        </p>
-            </blockquote>
-        <p>
-
-And change 27.6.2.5.3, p7 as follows:
-
-        </p>
-
-            <blockquote>
-        <p>
-
-<i>Effects</i>: Behaves  as a<ins>n un</ins>formatted  output function
-(as   described   in   <del>27.6.2.5.1</del><ins>27.6.2.6,   paragraph
-1</ins>).
-
-        </p>
-            </blockquote>
-
-
-<p><i>[
-Kona (2007): Proposed Disposition: Ready
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="574"></a>574. DR 369 Contradicts Text</h3>
-<p><b>Section:</b> 27.4 [iostream.objects] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2006-04-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.objects">issues</a> in [iostream.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-lib.iostream.objects requires that the standard stream objects are never
-destroyed, and it requires that they be destroyed.
-</p>
-<p>
-DR 369 adds words to say that we really mean for <tt>ios_base::Init</tt> objects to force
-construction of standard stream objects. It ends, though, with the phrase "these
-stream objects shall be destroyed after the destruction of dynamically ...".
-However, the rule for destruction is stated in the standard: "The objects are
-not destroyed during program execution."
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.4 [iostream.objects]/1:
-</p>
-
-<blockquote>
-<p>
--2- The objects are constructed and the associations are established at
-some time prior to or during the first time an object of class
-<tt>ios_base::Init</tt> is constructed, and in any case before the body of main
-begins execution.<sup>290)</sup> The objects are not destroyed during program
-execution.<sup>291)</sup> If a translation unit includes <tt>&lt;iostream&gt;</tt> or explicitly
-constructs an <tt>ios_base::Init</tt> object, these stream objects shall be
-constructed before dynamic initialization of non-local objects defined
-later in that translation unit<del>, and these stream objects shall be
-destroyed after the destruction of dynamically initialized non-local
-objects defined later in that translation unit</del>.
-</p>
-</blockquote>
-
-
-<p><i>[
-Kona (2007): From 27.4 [iostream.objects]/2, strike the words "...and these stream objects
-shall be destroyed after the destruction of dynamically initialized
-non-local objects defined later in that translation unit." Proposed
-Disposition: Review
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="575"></a>575. the specification of ~shared_ptr is MT-unfriendly, makes implementation assumptions</h3>
-<p><b>Section:</b> 20.8.2.2.2 [util.smartptr.shared.dest], TR1 2.2.3.2 [tr.util.smartptr.shared.dest] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2006-04-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.dest">issues</a> in [util.smartptr.shared.dest].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-[tr.util.smartptr.shared.dest] says in its second bullet:
-</p>
-
-<p>
-"If *this shares ownership with another shared_ptr instance (use_count() &gt; 1),
-decrements that instance's use count."
-</p>
-
-<p>
-The problem with this formulation is that it presupposes the existence of an
-"use count" variable that can be decremented and that is part of the state of a
-shared_ptr instance (because of the "that instance's use count".)
-</p>
-
-<p>
-This is contrary to the spirit of the rest of the specification that carefully
-avoids to require an use count variable. Instead, use_count() is specified to
-return a value, a number of instances.
-</p>
-
-<p>
-In multithreaded code, the usual implicit assumption is that a shared variable
-should not be accessed by more than one thread without explicit synchronization,
-and by introducing the concept of an "use count" variable, the current wording
-implies that two shared_ptr instances that share ownership cannot be destroyed
-simultaneously.
-</p>
-
-<p>
-In addition, if we allow the interpretation that an use count variable is part
-of shared_ptr's state, this would lead to other undesirable consequences WRT
-multiple threads. For example,
-</p>
-
-<blockquote><pre>
-p1 = p2;
-</pre></blockquote>
-
-<p>
-would now visibly modify the state of p2, a "write" operation, requiring a lock.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the first two bullets of [lib.util.smartptr.shared.dest]/1 to:
-</p>
-
-<blockquote>
-<ul>
-<li>If <tt>*this</tt> is <i>empty</i> <ins>or shares ownership with another
-<tt>shared_ptr</tt> instance (<tt>use_count() &gt; 1</tt>)</ins>, there are no side effects.</li>
-<li><del>If <tt>*this</tt> <i>shares ownership</i> with another <tt>shared_ptr</tt> instance
-(<tt>use_count() &gt; 1</tt>), decrements that instance's use count.</del></li>
-</ul>
-</blockquote>
-
-<p>
-Add the following paragraph after [lib.util.smartptr.shared.dest]/1:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> since the destruction of <tt>*this</tt> decreases the number of instances in
-<tt>*this</tt>'s ownership group by one, all <tt>shared_ptr</tt> instances that share ownership
-with <tt>*this</tt> will report an <tt>use_count()</tt> that is one lower than its previous value
-after <tt>*this</tt> is destroyed. <i>--end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="576"></a>576. find_first_of is overconstrained</h3>
-<p><b>Section:</b> 25.2.7 [alg.find.first.of] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2006-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.find.first.of">issues</a> in [alg.find.first.of].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 25.1.4 Find First [lib.alg.find.first], the two iterator type parameters to
-find_first_of are specified to require Forward Iterators, as follows:
-</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-  ForwardIterator1
-  find_first_of(ForwardIterator1 first1, ForwardIterator1 last1,
-                        ForwardIterator2 first2, ForwardIterator2 last2);
-template&lt;class ForwardIterator1, class ForwardIterator2,
-                  class BinaryPredicate&gt;
-ForwardIterator1
-  find_first_of(ForwardIterator1 first1, ForwardIterator1 last1,
-                         ForwardIterator2 first2, ForwardIterator2 last2,
-                        BinaryPredicate pred);
-</pre></blockquote>
-
-<p>
-However, ForwardIterator1 need not actually be a Forward Iterator; an Input
-Iterator suffices, because we do not need the multi-pass property of the Forward
-Iterator or a true reference.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the declarations of <tt>find_first_of</tt> to:
-</p>
-
-<blockquote><pre>
-template&lt;class <del>ForwardIterator1</del><ins>InputIterator1</ins>, class ForwardIterator2&gt;
-  <del>ForwardIterator1</del><ins>InputIterator1</ins>
-  find_first_of(<del>ForwardIterator1</del><ins>InputIterator1</ins> first1, <del>ForwardIterator1</del><ins>InputIterator1</ins> last1,
-                        ForwardIterator2 first2, ForwardIterator2 last2);
-template&lt;class <del>ForwardIterator1</del><ins>InputIterator1</ins>, class ForwardIterator2,
-                  class BinaryPredicate&gt;
-<del>ForwardIterator1</del><ins>InputIterator1</ins>
-  find_first_of(<del>ForwardIterator1</del><ins>InputIterator1</ins> first1, <del>ForwardIterator1</del><ins>InputIterator1</ins> last1,
-                         ForwardIterator2 first2, ForwardIterator2 last2,
-                        BinaryPredicate pred);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="577"></a>577. upper_bound(first, last, ...) cannot return last</h3>
-<p><b>Section:</b> 25.4.3.2 [upper.bound] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Seungbeom Kim <b>Opened:</b> 2006-05-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-ISO/IEC 14882:2003 says:
-</p>
-
-<blockquote>
-<p>
-25.3.3.2 upper_bound
-</p>
-<p>
-<i>Returns:</i> The furthermost iterator <tt>i</tt> in the range
-<tt>[<i>first</i>, <i>last</i>)</tt> such that
-for any iterator <tt>j</tt> in the range <tt>[<i>first</i>, i)</tt> the following corresponding
-conditions hold: <tt>!(value &lt; *j)</tt> or <tt><i>comp</i>(<i>value</i>, *j) == false</tt>.
-</p>
-</blockquote>
-
-<p>
-From the description above, upper_bound cannot return last, since it's
-not in the interval [first, last). This seems to be a typo, because if
-value is greater than or equal to any other values in the range, or if
-the range is empty, returning last seems to be the intended behaviour.
-The corresponding interval for lower_bound is also [first, last].
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change [lib.upper.bound]:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> The furthermost iterator <tt>i</tt> in the range
-<tt>[<i>first</i>, <i>last</i><del>)</del><ins>]</ins></tt> such that
-for any iterator <tt>j</tt> in the range <tt>[<i>first</i>, i)</tt> the following corresponding
-conditions hold: <tt>!(value &lt; *j)</tt> or <tt><i>comp</i>(<i>value</i>, *j) == false</tt>.
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="578"></a>578. purpose of hint to allocator::allocate()</h3>
-<p><b>Section:</b> 20.7.9.1 [allocator.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.members">issues</a> in [allocator.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The     description    of     the     allocator    member     function
-<code>allocate()</code>  requires  that  the <i>hint</i>  argument  be
-either 0 or a  value previously returned from <code>allocate()</code>.
-Footnote 227 further suggests that  containers may pass the address of
-an adjacent element as this argument.
-
-        </p>
-        <p>
-
-I  believe  that  either  the  footnote  is  wrong  or  the  normative
-requirement that  the argument be  a value previously returned  from a
-call to  <code>allocate()</code> is wrong. The latter  is supported by
-the resolution  to issue 20-004 proposed in  c++std-lib-3736 by Nathan
-Myers. In addition,  the <i>hint</i> is an ordinary  void* and not the
-<code>pointer</code>  type returned  by  <code>allocate()</code>, with
-the  two  types potentially  being  incompatible  and the  requirement
-impossible to satisfy.
-
-        </p>
-        <p>
-
-See also c++std-lib-14323 for some  more context on where this came up
-(again).
-
-        </p>
-    
-
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-Remove  the requirement  in  20.6.1.1, p4  that  the hint  be a  value
-previously returned from <code>allocate()</code>. Specifically, change
-the paragraph as follows:
-
-        </p>
-<p>
-<del><i>Requires</i>: <i>hint</i> either 0 or previously obtained  from  member
-<code>allocate</code>  and  not  yet passed  to member  <code>deallocate</code>.
-The value hint may be used by an implementation to help improve performance
-<sup>223)</sup>.</del> <ins>[<i>Note:</i> The value <i>hint</i> may be used by an
-implementation to help improve performance. -- <i>end note</i>]</ins>
-</p>
-<blockquote><p>
-<del>[Footnote: <sup>223)</sup>In a container member function, the address of an
-adjacent element is often a good choice to pass for this argument.</del>
-</p></blockquote>
-    
-
-
-
-<hr>
-<h3><a name="581"></a>581. <code>flush()</code> not unformatted function</h3>
-<p><b>Section:</b> 27.7.3.7 [ostream.unformatted] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.unformatted">issues</a> in [ostream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The resolution of issue 60 changed <code>basic_ostream::flush()</code>
-so as not  to require it to behave as  an unformatted output function.
-That has at least two in my opinion problematic consequences:
-
-        </p>
-        <p>
-
-First, <code>flush()</code>  now calls <code>rdbuf()->pubsync()</code>
-unconditionally, without  regard to the  state of the stream.  I can't
-think of any reason why <code>flush()</code> should behave differently
-from the vast majority of stream functions in this respect.
-
-        </p>
-        <p>
-
-Second, <code>flush()</code> is not  required to catch exceptions from
-<code>pubsync()</code> or set  <code>badbit</code> in response to such
-events. That doesn't seem right either, as most other stream functions
-do so.
-
-        </p>
-    
-
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-I  propose  to revert  the  resolution of  issue  60  with respect  to
-<code>flush()</code>. Specifically,  I propose to  change 27.6.2.6, p7
-as follows:
-
-        </p>
-
-<p>
-Effects: <ins>Behaves as an  unformatted output function (as described
-in 27.6.2.6, paragraph 1). </ins>If <code>rdbuf()</code> is not a null
-pointer,  <ins>constructs a  sentry  object.  If  this object  returns
-<code>true</code> when converted to a  value of type bool the function
-</ins>calls <code>rdbuf()->pubsync()</code>.  If that function returns
--1    calls    <code>setstate(badbit)</code>    (which    may    throw
-<code>ios_base::failure</code>  (27.4.4.3)).   <ins>Otherwise, if  the
-sentry object returns <code>false</code>, does nothing.</ins><del>Does
-not  behave  as  an  unformatted  output  function  (as  described  in
-27.6.2.6, paragraph 1).</del>
-</p>
-
-    
-
-<p><i>[
-Kona (2007): Proposed Disposition: Ready
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="586"></a>586. string inserter not a formatted function</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-Section  and paragraph  numbers  in  this paper  are  relative to  the
-working draft document number N2009 from 4/21/2006.
-
-        </p>
-
-        <p>
-
-The  <code>basic_string</code> extractor  in 21.3.7.9,  p1  is clearly
-required  to  behave  as  a   formatted  input  function,  as  is  the
-<code>std::getline()</code> overload for string described in p7.
-
-        </p>
-        <p>
-
-However, the <code>basic_string</code> inserter described in p5 of the
-same section has no such requirement. This has implications on how the
-operator  responds  to  exceptions thrown  from  <code>xsputn()</code>
-(formatted  output functions are  required to  set <code>badbit</code>
-and swallow  the exception unless  <code>badbit</code> is also  set in
-<code>exceptions()</code>; the  string inserter doesn't  have any such
-requirement).
-
-        </p>
-        <p>
-
-I don't  see anything in the  spec for the string  inserter that would
-justify requiring  it to treat  exceptions differently from  all other
-similar operators. (If it did, I think it should be made this explicit
-by saying  that the  operator "does not  behave as a  formatted output
-function" as has been made customary by the adoption of the resolution
-of issue 60).
-
-        </p>
-    
-
-    <p><b>Proposed resolution:</b></p>
-        <p>
-
-I propose to change the Effects clause in 21.3.7.9, p5, as follows:
-
-        </p>
-            <blockquote>
-        <p>
-
-<i>Effects</i>: <del>Begins by constructing a  sentry object k as if k
-were    constructed    by    typename    <code>basic_ostream&lt;charT,
-traits&gt;::sentry   k   (os)</code>.    If  <code>bool(k)</code>   is
-<code>true</code>, </del><ins>Behaves  as a formatted  output function
-(27.6.2.5.1).   After constructing  a  <code>sentry</code> object,  if
-this  object returns <code>true</code>  when converted  to a  value of
-type   <code>bool</code>,   determines   padding   as   described   in
-22.2.2.2.2</ins>,  then inserts the  resulting sequence  of characters
-<code><i>seq</i></code> as if by calling <code>os.rdbuf()->sputn(seq ,
-n)</code>,    where   <code><i>n</i></code>    is   the    larger   of
-<code>os.width()</code>   and   <code>str.size()</code>;  then   calls
-<code>os.width(0)</code>.  <del>If  the  call  to sputn  fails,  calls
-<code>os.setstate(ios_base::failbit)</code>.</del>
-
-        </p>
-            </blockquote>
-        <p>
-
-This proposed  resilution assumes the  resolution of issue  394 (i.e.,
-that   all   formatted   output   functions  are   required   to   set
-<code>ios_base::badbit</code>  in response  to any  kind  of streambuf
-failure),   and   implicitly   assumes   that  a   return   value   of
-<code>sputn(seq,  <i>n</i>)</code>  other  than  <code><i>n</i></code>
-indicates a failure.
-
-        </p>
-    
-
-
-
-<hr>
-<h3><a name="589"></a>589. Requirements on iterators of member template functions of containers</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2006-08-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#536">536</a></p>
-<p><b>Discussion:</b></p>
-<p>
-There appears to be no requirements on the InputIterators used in sequences in 23.1.1 in
-terms of their value_type, and the requirements in 23.1.2 appear to be overly strict
-(requires InputIterator::value_type be the same type as the container's value_type).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.1.1 p3:
-</p>
-
-<blockquote><p>
-In Tables 82 and 83, <tt>X</tt> denotes a sequence class, <tt>a</tt> denotes a
-value of <tt>X</tt>, <tt>i</tt> and <tt>j</tt> denote iterators satisfying input
-iterator requirements <ins>and refer to elements <ins>implicitly
-convertible to</ins> <tt>value_type</tt></ins>, <tt>[i, j)</tt> denotes a valid
-range, <tt>n</tt> denotes a value of <tt>X::size_type</tt>, <tt>p</tt> denotes a
-valid iterator to <tt>a</tt>, <tt>q</tt> denotes a valid dereferenceable
-iterator to <tt>a</tt>, <tt>[q1, q2)</tt> denotes a valid range in <tt>a</tt>,
-and <tt>t</tt> denotes a value of <tt>X::value_type</tt>.
-</p></blockquote>
-
-<p>
-Change 23.1.2 p7:
-</p>
-
-<blockquote><p>
-In Table 84, <tt>X</tt> is an associative container class, <tt>a</tt> is a value
-of <tt>X</tt>, <tt>a_uniq</tt> is a value of <tt>X</tt> when <tt>X</tt> supports
-unique keys, and <tt>a_eq</tt> is a value of <tt>X</tt> when <tt>X</tt> supports
-multiple keys, <tt>i</tt> and <tt>j</tt> satisfy input iterator requirements and
-refer to elements <del>of</del> <ins>implicitly convertible to</ins>
-<tt>value_type</tt>, <tt>[i, j)</tt> is a valid range, <tt>p</tt> is a valid
-iterator to <tt>a</tt>, <tt>q</tt> is a valid dereferenceable iterator to
-<tt>a</tt>, <tt>[q1, q2)</tt> is a valid range in <tt>a</tt>, <tt>t</tt> is a
-value of <tt>X::value_type</tt>, <tt>k</tt> is a value of <tt>X::key_type</tt>
-and <tt>c</tt> is a value of type <tt>X::key_compare</tt>.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Concepts will probably come in and rewrite this section anyway.  But just in case it is
-easy to fix this up as a safety net and as a clear statement of intent.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="593"></a>593. __STDC_CONSTANT_MACROS</h3>
-<p><b>Section:</b> 18.4 [cstdint], TR1 8.22 [tr.c99.cstdint] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2006-08-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cstdint">issues</a> in [cstdint].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Clause 18.3 of the current Working Paper (N2009) deals with the new C++ headers
-&lt;cstdint&gt; and &lt;stdint.h&gt;.  These are of course based on the C99 header
-&lt;stdint.h&gt;, and were part of TR1.
-</p>
-
-<p>
-Per 18.3.1/1, these headers define a number of macros and function macros. 
-While the WP does not mention __STDC_CONSTANT_MACROS in this context, C99
-footnotes do mention __STDC_CONSTANT_MACROS.  Further, 18.3.1/2 states that "The
-header defines all ... macros the same as C99 subclause 7.18."
-</p>
-
-<p>
-Therefore, if I wish to have the above-referenced macros and function macros
-defined, must I #define __STDC_CONSTANT_MACROS before I #include &lt;cstdint&gt;, or
-does the C++ header define these macros/function macros unconditionally?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-To put this issue to rest for C++0X, I propose the following addition to 
-18.3.1/2 of the Working Paper N2009:
-</p>
-
-<blockquote><p>
-[Note: The macros defined by &lt;cstdint&gt; are provided unconditionally: in
-particular, the symbols __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
-(mentioned in C99 footnotes 219, 220, and 222) play no role in C++. --end note]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="594"></a>594. Disadvantages of defining <tt>Swappable</tt> in terms of <tt>CopyConstructible</tt> and <tt>Assignable</tt></h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2006-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-It seems undesirable to define the <tt>Swappable</tt> requirement in terms of
-<tt>CopyConstructible</tt> and <tt>Assignable</tt> requirements. And likewise, once the
-<tt>MoveConstructible</tt> and <tt>MoveAssignable</tt> requirements (N1860) have made it
-into the Working Draft, it seems undesirable to define the <tt>Swappable</tt>
-requirement in terms of those requirements. Instead, it appears
-preferable to have the <tt>Swappable</tt> requirement defined exclusively in
-terms of the existence of an appropriate swap function.
-</p>
-
-<p>
-Section 20.1.4 [lib.swappable] of the current Working Draft (N2009)
-says:
-</p>
-
-<blockquote><p>
-The Swappable requirement is met by satisfying one or more of the
-following conditions:</p>
-<ul>
-<li>
-T is Swappable if T satisfies the CopyConstructible requirements
-(20.1.3) and the Assignable requirements (23.1);
-</li>
-<li>
-T is Swappable if a namespace scope function named swap exists in the
-same namespace as the definition of T, such that the expression
-swap(t,u) is valid and has the semantics described in Table 33.
-</li>
-</ul>
-</blockquote>
-
-<p>
-I can think of three disadvantages of this definition:
-</p>
-
-<ol>
-<li>
-<p>
-If a client's type T satisfies the first condition (T is both
-CopyConstructible and Assignable), the client cannot stop T from
-satisfying the Swappable requirement without stopping T from
-satisfying the first condition.
-</p>
-<p>
-A client might want to stop T from satisfying the Swappable
-requirement, because swapping by means of copy construction and
-assignment might throw an exception, and she might find a throwing
-swap unacceptable for her type. On the other hand, she might not feel
-the need to fully implement her own swap function for this type. In
-this case she would want to be able to simply prevent algorithms that
-would swap objects of type T from being used, e.g., by declaring a
-swap function for T, and leaving this function purposely undefined.
-This would trigger a link error, if an attempt would be made to use
-such an algorithm for this type. For most standard library
-implementations, this practice would indeed have the effect of
-stopping T from satisfying the Swappable requirement.
-</p>
-</li>
-<li>
-<p>
-A client's type T that does not satisfy the first condition can not be
-made Swappable by providing a specialization of std::swap for T.
-</p>
-<p>
-While I'm aware about the fact that people have mixed feelings about
-providing a specialization of std::swap, it is well-defined to do so.
-It sounds rather counter-intuitive to say that T is not Swappable, if
-it has a valid and semantically correct specialization of std::swap.
-Also in practice, providing such a specialization will have the same
-effect as satisfying the Swappable requirement.
-</p>
-</li>
-<li>
-<p>
-For a client's type T that satisfies both conditions of the Swappable
-requirement, it is not specified which of the two conditions prevails.
-After reading section 20.1.4 [lib.swappable], one might wonder whether
-objects of T will be swapped by doing copy construction and
-assignments, or by calling the swap function of T.
-</p>
-<p>
-I'm aware that the intention of the Draft is to prefer calling the
-swap function of T over doing copy construction and assignments. Still
-in my opinion, it would be better to make this clear in the wording of
-the definition of Swappable. 
-</p>
-</li>
-</ol>
-
-<p>
-I would like to have the Swappable requirement defined in such a way
-that the following code fragment will correctly swap two objects of a
-type T, if and only if T is Swappable:
-</p>
-
-<pre>
-   using std::swap;
-   swap(t, u);  // t and u are of type T.
-</pre>
-
-<p>
-This is also the way Scott Meyers recommends calling a swap function,
-in Effective C++, Third Edition, item 25.
-</p>
-
-<p>
-Most aspects of this issue have been dealt with in a discussion on
-comp.std.c++ about the Swappable requirement, from 13 September to 4
-October 2006, including valuable input by David Abrahams, Pete Becker,
-Greg Herlihy, Howard Hinnant and others.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Recommend <del>NAD</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2774.pdf">N2774</a>.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved to Open.  Waiting for non-concepts draft.
-</p></blockquote>
-
-<p><i>[
-2009-11-08 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-This issue is very closely related to <a href="lwg-defects.html#742">742</a>.
-</p></blockquote>
-
-<p><i>[
-2010-02-03 Sean Hunt adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-While reading N3000, I independently came across Issue 594. Having seen that
-it's an issue under discussion, I think the proposed wording needs fixing to
-something more like "...function call swap(t,u) that includes std::swap in its
-overload set is valid...", because "...is valid within the namespace std..."
-does not allow other libraries to simply use the Swappable requirement by
-referring to the standard's definition, since they cannot actually perform any
-calls within std.
-</p>
-
-<p>
-This wording I suggested would also make overloads visible in the same scope as
-the `using std::swap` valid for Swappable requirements; a more complex wording
-limiting the non-ADL overload set to std::swap might be required.
-</p>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Editorial.  Rationale added.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by N3048.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change section 20.1.4 [lib.swappable] as follows:
-</p>
-<blockquote><p>
-The Swappable requirement is met by satisfying
-<del>one or more of the following conditions:</del>
-<ins>the following condition:</ins></p>
-<ul>
-
-<li>
-<del>T is Swappable if T satisfies the CopyConstructible requirements
-(20.1.3) and the Assignable requirements (23.1);</del>
-</li>
-<li>
-<del>
-T is Swappable if a namespace scope function named swap exists in the
-same namespace as the definition of T, such that the expression
-swap(t,u) is valid and has the semantics described in Table 33.
-</del>
-T is Swappable if an unqualified function call swap(t,u) is valid
-within the namespace std, and has the semantics described in Table 33.
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="595"></a>595. TR1&#47;C++0x: <tt>fabs(complex&lt;T&gt;)</tt> redundant &#47; wrongly specified</h3>
-<p><b>Section:</b> 26.4.7 [complex.value.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Stefan Gro&szlig;e Pawig <b>Opened:</b> 2006-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.value.ops">issues</a> in [complex.value.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-TR1 introduced, in the C compatibility chapter, the function
-<tt>fabs(complex&lt;T&gt;)</tt>:
-</p>
-<blockquote><pre>
------ SNIP -----
-8.1.1 Synopsis                                [tr.c99.cmplx.syn]
-
-  namespace std {
-  namespace tr1 {
-[...]
-  template&lt;class T&gt; complex&lt;T&gt; fabs(const complex&lt;T&gt;&amp; x);
-  } // namespace tr1
-  } // namespace std
-
-[...]
-
-8.1.8 Function fabs                          [tr.c99.cmplx.fabs]
-
-1 Effects: Behaves the same as C99 function cabs, defined in
-  subclause 7.3.8.1.
------ SNIP -----
-</pre></blockquote>
-
-<p>
-The current C++0X draft document (n2009.pdf) adopted this
-definition in chapter 26.3.1 (under the comment // 26.3.7 values)
-and 26.3.7/7.
-</p>
-<p>
-But in C99 (ISO/IEC 9899:1999 as well as the 9899:TC2 draft document
-n1124), the referenced subclause reads
-</p>
-
-<blockquote><pre>
------ SNIP -----
-7.3.8.1 The cabs functions
-
-  Synopsis
-
-1 #include &lt;complex.h&gt;
-  double cabs(double complex z);
-  float cabsf(float complex z);
-  long double cabsl(long double z);
-
-  Description
-
-2 The cabs functions compute the complex absolute value (also called
-  norm, modulus, or magnitude) of z.
-
-  Returns
-
-3 The cabs functions return the complex absolute value.
------ SNIP -----
-</pre></blockquote>
-
-<p>
-Note that the return type of the cabs*() functions is not a complex
-type.  Thus, they are equivalent to the already well established
-  template&lt;class T&gt; T abs(const complex&lt;T&gt;&amp; x);
-(26.2.7/2 in ISO/IEC 14882:1998, 26.3.7/2 in the current draft
-document n2009.pdf).
-</p>
-<p>
-So either the return value of fabs() is specified wrongly, or fabs()
-does not behave the same as C99's cabs*().
-</p>
-<p>
-<b>Possible Resolutions</b>
-</p>
-<p>
-This depends on the intention behind the introduction of fabs().
-</p>
-<p>
-If the intention was to provide a /complex/ valued function that
-calculates the magnitude of its argument, this should be
-explicitly specified.  In TR1, the categorization under "C
-compatibility" is definitely wrong, since C99 does not provide
-such a complex valued function.
-</p>
-<p>
-Also, it remains questionable if such a complex valued function
-is really needed, since complex&lt;T&gt; supports construction and
-assignment from real valued arguments.  There is no difference
-in observable behaviour between
-</p>
-<blockquote><pre>
-  complex&lt;double&gt; x, y;
-  y = fabs(x);
-  complex&lt;double&gt; z(fabs(x));
-</pre></blockquote>
-<p>
-and
-</p>
-<blockquote><pre>
-  complex&lt;double&gt; x, y;
-  y = abs(x);
-  complex&lt;double&gt; z(abs(x));
-</pre></blockquote>
-<p>
-If on the other hand the intention was to provide the intended
-functionality of C99, fabs() should be either declared deprecated
-or (for C++0X) removed from the standard, since the functionality
-is already provided by the corresponding overloads of abs().
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Bill believes that <tt>abs()</tt> is a suitable overload. We should remove <tt>fabs()</tt>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change the synopsis in 26.4.1 [complex.syn]:
-</p>
-
-<blockquote><pre>
-<del>template&lt;class T&gt; complex&lt;T&gt; fabs(const complex&lt;T&gt;&amp;);</del>
-</pre></blockquote>
-
-<p>
-Remove 26.4.7 [complex.value.ops], p7:
-</p>
-
-<blockquote>
-<pre>
-<del>template&lt;class T&gt; complex&lt;T&gt; fabs(const complex&lt;T&gt;&amp; <i>x</i>);</del>
-</pre>
-<blockquote>
-<p>
-<del>-7- <i>Effects:</i> Behaves the same as C99 function <tt>cabs</tt>, defined in subclause 7.3.8.1.</del>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007): Change the return type of <tt>fabs(complex)</tt> to <tt>T</tt>. 
-Proposed Disposition: Ready
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="596"></a>596. 27.8.1.3 Table 112 omits "a+" and "a+b" modes</h3>
-<p><b>Section:</b> 27.9.1.4 [filebuf.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2006-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#filebuf.members">issues</a> in [filebuf.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In testing 27.9.1.4 [filebuf.members], Table 112 (in the latest N2009 draft), we invoke  
-</p>
-<blockquote><pre>
-   ostr.open("somename", ios_base::out | ios_base::in | ios_base::app)
-</pre></blockquote>
-<p>
-and we expect the open to fail, because out|in|app is not listed in
-Table 92, and just before the table we see very specific words:
-</p>
-<blockquote><p>
-  If mode is not some combination of flags shown in the table 
-  then the open fails.
-</p></blockquote>
-<p>
-But the corresponding table in the C standard, 7.19.5.3, provides two
-modes "a+" and "a+b", to which the C++ modes out|in|app and
-out|in|app|binary would presumably apply.
-</p>
-<p>
-We would like to argue that the intent of Table 112 was to match the
-semantics of 7.19.5.3 and that the omission of "a+" and "a+b" was
-unintentional.  (Otherwise there would be valid and useful behaviors
-available in C file I/O which are unavailable using C++, for no
-valid functional reason.)
-</p>
-<p>
-We further request that the missing modes be explicitly restored to
-the WP, for inclusion in C++0x.
-</p>
-
-<p><i>[
-Martin adds:
-]</i></p>
-
-
-<p>
-...besides "a+" and "a+b" the C++ table is also missing a row
-for a lone app bit which in at least two current implementation
-as well as in Classic Iostreams corresponds to the C stdio "a"
-mode and has been traditionally documented as implying ios::out.
-Which means the table should also have a row for in|app meaning
-the same thing as "a+" already proposed in the issue.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the table "File open modes" in 27.9.1.4 [filebuf.members]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption> File open modes</caption>
-<tr>
-<th colspan="5"><tt>ios_base</tt> Flag combination</th>
-<th><tt>stdio</tt> equivalent</th>
-</tr>
-<tr>
-<th><tt>binary</tt></th><th><tt>in</tt></th><th><tt>out</tt></th><th><tt>trunc</tt></th><th><tt>app</tt></th><th><tt>&nbsp;</tt></th>
-</tr>
-
-<tr>
-<td>&nbsp;</td> <td>&nbsp;</td> <td><tt>+</tt></td> <td>&nbsp;</td> <td>&nbsp;</td> <td><tt>"w"</tt></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td>&nbsp;</td> <td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>+</tt></td> <td><tt>"a"</tt></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>"a"</tt></ins></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td>&nbsp;</td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>"w"</tt></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td><tt>+</tt></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td><tt>"r"</tt></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td>&nbsp;</td> <td><tt>"r+"</tt></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>"w+"</tt></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>+</tt></ins></td> <td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>"a+"</tt></ins></td>
-</tr>
-<tr>
-<td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td>&nbsp;</td> <td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>"a+"</tt></ins></td>
-</tr>
-
-<tr>
-<td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>+</tt></td> <td>&nbsp;</td> <td>&nbsp;</td> <td><tt>"wb"</tt></td>
-</tr>
-<tr>
-<td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>+</tt></td> <td><tt>"ab"</tt></td>
-</tr>
-<tr>
-<td><ins><tt>+</tt></ins></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>"ab"</tt></ins></td>
-</tr>
-<tr>
-<td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>"wb"</tt></td>
-</tr>
-<tr>
-<td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td><tt>"rb"</tt></td>
-</tr>
-<tr>
-<td><tt>+</tt></td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td>&nbsp;</td> <td><tt>"r+b"</tt></td>
-</tr>
-<tr>
-<td><tt>+</tt></td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td><tt>+</tt></td> <td>&nbsp;</td> <td><tt>"w+b"</tt></td>
-</tr>
-<tr>
-<td><ins><tt>+</tt></ins></td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>+</tt></ins></td> <td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>"a+b"</tt></ins></td>
-</tr>
-<tr>
-<td><ins><tt>+</tt></ins></td> <td><ins><tt>+</tt></ins></td> <td>&nbsp;</td> <td>&nbsp;</td> <td><ins><tt>+</tt></ins></td> <td><ins><tt>"a+b"</tt></ins></td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007) Added proposed wording and moved to Review.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="598"></a>598. Decimal: Conversion to integral should truncate, not round.</h3>
-<p><b>Section:</b> TRDecimal 3.2 [trdec.types.types] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Daniel Krugler <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#trdec.types.types">issues</a> in [trdec.types.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In a private email, Daniel writes:
-</p>
-<blockquote>
-<p>
-I would like to 
-ask, what where the reason for the decision to 
-define the semantics of the integral conversion of the decimal types, namely
-</p>
-<pre>
-"operator long long() const;
-
-     Returns: Returns the result of the 
-conversion of *this to the type long long, as if 
-performed by the expression llrounddXX(*this)."
-</pre>
-<p>
-where XX stands for either 32, 64, or 128, 
-corresponding to the proper decimal type. The 
-exact meaning of llrounddXX is not given in that 
-paper, so I compared it to the corresponding 
-definition given in C99, 2nd edition (ISO 9899), which says in 7.12.9.7 p. 2:
-</p>
-<p>
-"The lround and llround functions round their 
-argument to the nearest integer value,
-rounding halfway cases away from zero, regardless 
-of the current rounding direction. [..]"
-</p>
-<p>
-Now considering the fact that integral conversion 
-of the usual floating-point types ("4.9 
-Floating-integral conversions") has truncation 
-semantic I wonder why this conversion behaviour 
-has not been transferred for the decimal types. 
-</p>
-</blockquote>
-<p>
-Robert comments:
-</p>
-<p>
-Also, there is a further error in the <b>Returns:</b> clause for converting <code>decimal::decimal128</code> to <code>long long</code>.  It currently calls <code>llroundd64</code>, not <code>llroundd128</code>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the <b>Returns:</b> clause in 3.2.2.4 to:
-</p>
-<blockquote><p>
-<b>Returns:</b> Returns the result of the conversion of <code>*this</code> to the type <code>long long</code>, as if performed by the expression <code>llroundd32(*this)</code> <ins>while the decimal rounding direction mode [3.5.2] <code>FE_DEC_TOWARD_ZERO</code> is in effect</ins>.
-</p></blockquote>
-<p>
-Change the <b>Returns:</b> clause in 3.2.3.4 to:
-</p>
-<blockquote><p>
-<b>Returns:</b> Returns the result of the conversion of <code>*this</code> to the type <code>long long</code>, as if performed by the expression <code>llroundd64(*this)</code> <ins>while the decimal rounding direction mode [3.5.2] <code>FE_DEC_TOWARD_ZERO</code> is in effect</ins>.
-</p></blockquote>
-<p>
-Change the <b>Returns:</b> clause in 3.2.4.4 to:
-</p>
-<blockquote><p>
-<b>Returns:</b> Returns the result of the conversion of <code>*this</code> to the type <code>long long</code>, as if performed by the expression <del><code>llroundd64(*this)</code></del> <ins><code>llroundd128(*this)</code> while the decimal rounding direction mode [3.5.2] <code>FE_DEC_TOWARD_ZERO</code> is in effect</ins>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="599"></a>599. Decimal: Say "octets" instead of "bytes."</h3>
-<p><b>Section:</b> TRDecimal 3.1 [trdec.types.encodings] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Daniel Krugler <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Daniel writes in a private email:
-</p>
-
-<blockquote>
-<p>
-- 3.1 'Decimal type encodings' says in its note:
-</p>
-<pre>
-"this implies that 
-sizeof(std::decimal::decimal32) == 4, 
-sizeof(std::decimal::decimal64) == 8, and 
-sizeof(std::decimal::decimal128) == 16."
-</pre>
-<p>
-This is a wrong assertion, because the definition 
-of 'byte' in 1.7 'The C+ + memory model' of ISO 
-14882 (2nd edition) does not specify that a byte 
-must be necessarily 8 bits large, which would be 
-necessary to compare with the specified bit sizes 
-of the types decimal32, decimal64, and decimal128.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 3.1 as follows:
-</p>
-<blockquote>
-<p>
-The three decimal encoding formats defined in IEEE-754R correspond to the three decimal floating types as follows:
-</p>
-<ul>
-<li>
-decimal32 is a <em>decimal32</em> number, which is encoded in four consecutive <del>bytes</del> <ins>octets</ins> (32 bits)
-</li>
-<li>
-decimal64 is a <em>decimal64</em> number, which is encoded in eight consecutive <del>bytes</del> <ins>octets</ins> (64 bits)
-
-</li>
-<li>
-decimal128 is a <em>decimal128</em> number, which is encoded in 16 consecutive <del>bytes</del> <ins>octets</ins> (128 bits)
-</li>
-</ul>
-<p>
-<del>[<i>Note:</i> this implies that <code>sizeof(std::decimal::decimal32) == 4</code>, <code>sizeof(std::decimal::decimal64) == 8</code>, and <code>sizeof(std::decimal::decimal128) == 16</code>.  <i>--end note</i>]</del>
-</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="600"></a>600. Decimal: Wrong parameters for wcstod* functions</h3>
-<p><b>Section:</b> TRDecimal 3.9 [trdec.types.cwchar] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Daniel Krugler <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Daniel writes:
-</p>
-<blockquote><p>
-- 3.9.1 'Additions to &lt;cwchar&gt;' provides wrong 
-signatures to the wcstod32, wcstod64, and 
-wcstod128 functions ([the parameters have type pointer-to-] char instead of wchar_t).
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change "3.9.1 Additions to <code>&lt;cwchar&gt;</code> synopsis" to:
-</p>
-<pre>
-       namespace std {
-       namespace decimal {
-         // 3.9.2 wcstod functions:
-         decimal32  wcstod32  (const <del>char</del> <ins>wchar_t</ins> * nptr, <del>char</del> <ins>wchar_t</ins> ** endptr);
-         decimal64  wcstod64  (const <del>char</del> <ins>wchar_t</ins> * nptr, <del>char</del> <ins>wchar_t</ins> ** endptr);
-         decimal128 wcstod128 (const <del>char</del> <ins>wchar_t</ins> * nptr, <del>char</del> <ins>wchar_t</ins> ** endptr);
-       }
-       }
-</pre>
-
-
-
-
-<hr>
-<h3><a name="601"></a>601. Decimal: numeric_limits typos</h3>
-<p><b>Section:</b> TRDecimal 3.3 [trdec.types.limits] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Daniel Krugler <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Daniel writes in a private email:
-</p>
-
-<blockquote>
-<p>
-- 3.3 'Additions to header &lt;limits&gt;' contains two 
-errors in the specialisation of numeric_limits&lt;decimal::decimal128&gt;:
-</p>
-<ol>
-<li>The static member max() returns DEC128_MIN, this should be DEC128_MAX.</li>
-<li>The static member digits is assigned to 384,
-this should be 34 (Probably mixed up with the
-max. exponent for decimal::decimal64).</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In "3.3 Additions to header <code>&lt;limits&gt;</code>" change numeric_limits&lt;decimal::decimal128&gt; as follows:
-</p>
-<pre>
-        template&lt;&gt; class numeric_limits&lt;decimal::decimal128&gt; {
-          public:
-            static const bool is_specialized = true;
-
-            static decimal::decimal128 min() throw() { return DEC128_MIN; }
-            static decimal::decimal128 max() throw() { return <del>DEC128_MIN;</del> <ins>DEC128_MAX;</ins> }
-
-            static const int digits       = <del>384</del> <ins>34</ins>;
-            /* ... */
-</pre>
-
-
-
-
-<hr>
-<h3><a name="602"></a>602. Decimal: "generic floating type" not defined.</h3>
-<p><b>Section:</b> TRDecimal 3 [trdec.types] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#trdec.types">issues</a> in [trdec.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The document uses the term "generic floating types," but defines it nowhere.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the first paragraph of "3 Decimal floating-point types" as follows:
-</p>
-<blockquote><p>
-This Technical Report introduces three decimal floating-point types, named
-decimal32, decimal64, and decimal128. The set of values of type decimal32 is a
-subset of the set of values of type decimal64; the set of values of the type
-decimal64 is a subset of the set of values of the type decimal128. Support for
-decimal128 is optional.  <ins>These types supplement the Standard C++ types
-<code>float</code>, <code>double</code>, and <code>long double</code>, which are
-collectively described as the <i>basic floating types</i></ins>.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="603"></a>603. Decimal: Trivially simplifying decimal classes.</h3>
-<p><b>Section:</b> TRDecimal 3 [trdec.types] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#trdec.types">issues</a> in [trdec.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In c++std-lib-17198, Martin writes:</p>
-
-<blockquote><p>
-Each of the three classes proposed in the paper (decimal32, decimal64,
-and decimal128) explicitly declares and specifies the semantics of its
-copy constructor, copy assignment operator, and destructor. Since the
-semantics of all three functions are identical to the trivial versions
-implicitly generated by the compiler in the absence of any declarations
-it is safe to drop them from the spec. This change would make the
-proposed classes consistent with other similar classes already in the
-standard (e.g., std::complex).
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change "3.2.2 Class <code>decimal32</code>" as follows:
-</p>
-<pre>
-      namespace std {
-      namespace decimal {
-        class decimal32 {
-          public:
-            // 3.2.2.1 construct/copy/destroy:
-            decimal32();
-            <del>decimal32(const decimal32 &amp; d32);</del>
-            <del>decimal32 &amp; operator=(const decimal32 &amp; d32);</del>
-            <del>~decimal32();</del>
-            /* ... */
-</pre>
-<p>
-Change "3.2.2.1 construct/copy/destroy" as follows:
-</p>
-<pre>
-        decimal32();
-
-    Effects: Constructs an object of type decimal32 with the value 0;
-
-        <del>decimal32(const decimal32 &amp; d32);</del>
-        <del>decimal32 &amp; operator=(const decimal32 &amp; d32);</del>
-
-    <del>Effects: Copies an object of type decimal32.</del>
-
-        <del>~decimal32();</del>
-
-    <del>Effects: Destroys an object of type decimal32.</del>
-
-</pre>
-<p>
-Change "3.2.3 Class <code>decimal64</code>" as follows:
-</p>
-<pre>
-      namespace std {
-      namespace decimal {
-        class decimal64 {
-          public:
-            // 3.2.3.1 construct/copy/destroy:
-            decimal64();
-            <del>decimal64(const decimal64 &amp; d64);</del>
-            <del>decimal64 &amp; operator=(const decimal64 &amp; d64);</del>
-            <del>~decimal64();</del>
-            /* ... */
-</pre>
-<p>
-Change "3.2.3.1 construct/copy/destroy" as follows:
-</p>
-<pre>
-        decimal64();
-
-    Effects: Constructs an object of type decimal64 with the value 0;
-
-        <del>decimal64(const decimal64 &amp; d64);</del>
-        <del>decimal64 &amp; operator=(const decimal64 &amp; d64);</del>
-
-    <del>Effects: Copies an object of type decimal64.</del>
-
-        <del>~decimal64();</del>
-
-    <del>Effects: Destroys an object of type decimal64.</del>
-
-</pre>
-<p>
-Change "3.2.4 Class <code>decimal128</code>" as follows:
-</p>
-<pre>
-      namespace std {
-      namespace decimal {
-        class decimal128 {
-          public:
-            // 3.2.4.1 construct/copy/destroy:
-            decimal128();
-            <del>decimal128(const decimal128 &amp; d128);</del>
-            <del>decimal128 &amp; operator=(const decimal128 &amp; d128);</del>
-            <del>~decimal128();</del>
-            /* ... */
-</pre>
-<p>
-Change "3.2.4.1 construct/copy/destroy" as follows:
-</p>
-<pre>
-        decimal128();
-
-    Effects: Constructs an object of type decimal128 with the value 0;
-
-        <del>decimal128(const decimal128 &amp; d128);</del>
-        <del>decimal128 &amp; operator=(const decimal128 &amp; d128);</del>
-
-    <del>Effects: Copies an object of type decimal128.</del>
-
-        <del>~decimal128();</del>
-
-    <del>Effects: Destroys an object of type decimal128.</del>
-
-</pre>
-
-
-
-
-<hr>
-<h3><a name="604"></a>604. Decimal: Storing a reference to a facet unsafe.</h3>
-<p><b>Section:</b> TRDecimal 3 [trdec.types] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2006-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#trdec.types">issues</a> in [trdec.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In c++std-lib-17197, Martin writes:
-</p>
-<blockquote><p>
-The extended_num_get and extended_num_put facets are designed
-to store a reference to a num_get or num_put facet which the
-extended facets delegate the parsing and formatting of types
-other than decimal. One form of the extended facet's ctor (the
-default ctor and the size_t overload) obtains the reference
-from the global C++ locale while the other form takes this
-reference as an argument.
-</p></blockquote>
-<blockquote><p>
-The problem with storing a reference to a facet in another
-object (as opposed to storing the locale object in which the
-facet is installed) is that doing so bypasses the reference
-counting mechanism designed to prevent a facet that is still
-being referenced (i.e., one that is still installed in some
-locale) from being destroyed when another locale that contains
-it is destroyed. Separating a facet reference from the locale
-it comes from van make it cumbersome (and in some cases might
-even make it impossible) for programs to prevent invalidating
-the reference. (The danger of this design is highlighted in
-the paper.)
-</p></blockquote>
-<blockquote><p>
-This problem could be easily avoided by having the extended
-facets store a copy of the locale from which they would extract
-the base facet either at construction time or when needed. To
-make it possible, the forms of ctors of the extended facets that
-take a reference to the base facet would need to be changed to
-take a locale argument instead.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-1. Change the <code>extended_num_get</code> synopsis in 3.10.2 as follows:
-</p>
-<pre>
-            extended_num_get(const <del>std::num_get&lt;charT, InputIterator></del> <ins>std::locale</ins> &amp; <i>b</i>, size_t <i>refs</i> = 0);
-
-            /* ... */
-
-            <del>// <i>const std::num_get&lt;charT, InputIterator> &amp; <b>base</b></i>;        <i><b>exposition only</b></i></del>
-            <ins>// <i>std::locale <b>baseloc</b></i>;                                    <i><b>exposition only</b></i></ins>
-</pre>
-<p>
-2. Change the description of the above constructor in 3.10.2.1:
-</p>
-<pre>
-            extended_num_get(const <del>std::num_get&lt;charT, InputIterator></del> <ins>std::locale</ins> &amp; <i>b</i>, size_t <i>refs</i> = 0);
-
-</pre>
-<blockquote>
-<p>
-<b>Effects:</b> Constructs an <code>extended_num_get</code> facet as if by:
-</p>
-<pre>
-       extended_num_get(const <del>std::num_get&lt;charT, InputIterator></del> <ins>std::locale</ins> &amp; <i>b</i>, size_t <i>refs</i> = 0)
-                : facet(<i>refs</i>), <i>base<ins>loc</ins></i>(<i>b</i>)
-                { /* ... */ }
-
-</pre>
-<p>
-<del><b>Notes:</b> Care must be taken by the implementation to ensure that the lifetime of the facet referenced by <i>base</i> exceeds that of the resulting <code>extended_num_get</code> facet.</del>
-</p>
-</blockquote>
-<p>
-3. Change the <b>Returns:</b> clause for <code>do_get(iter_type, iter_type, ios_base &amp;, ios_base::iostate &amp;, bool &amp;) const</code>, <i>et al</i> to
-</p>
-<blockquote><p>
-<b>Returns:</b> <code><del><i>base</i></del> <ins>std::use_facet&lt;std::num_get&lt;charT, InputIterator> >(<i>baseloc</i>)</ins>.get(<i>in</i>, <i>end</i>, <i>str</i>, <i>err</i>, <i>val</i>)</code>. 
-</p></blockquote>
-<p>
-4. Change the <code>extended_num_put</code> synopsis in 3.10.3 as follows:
-</p>
-<pre>
-            extended_num_put(const <del>std::num_put&lt;charT, OutputIterator></del> <ins>std::locale</ins> &amp; <i>b</i>, size_t <i>refs</i> = 0);
-
-            /* ... */
-
-            <del>// <i>const std::num_put&lt;charT, OutputIterator> &amp; <b>base</b></i>;       <i><b>exposition only</b></i></del>
-            <ins>// <i>std::locale <b>baseloc</b></i>;                                    <i><b>exposition only</b></i></ins>
-</pre>
-<p>
-5. Change the description of the above constructor in 3.10.3.1:
-</p>
-<pre>
-            extended_num_put(const <del>std::num_put&lt;charT, OutputIterator></del> <ins>std::locale</ins> &amp; <i>b</i>, size_t <i>refs</i> = 0);
-</pre>
-<blockquote>
-<p>
-<b>Effects:</b> Constructs an <code>extended_num_put</code> facet as if by:
-</p>
-<pre>
-       extended_num_put(const <del>std::num_put&lt;charT, OutputIterator></del> <ins>std::locale</ins> &amp; <i>b</i>, size_t <i>refs</i> = 0)
-                : facet(<i>refs</i>), <i>base<ins>loc</ins></i>(<i>b</i>)
-                { /* ... */ }
-
-</pre>
-<p>
-<del><b>Notes:</b> Care must be taken by the implementation to ensure that the lifetime of the facet referenced by <i>base</i> exceeds that of the resulting <code>extended_num_put</code> facet.</del>
-</p>
-</blockquote>
-<p>
-6. Change the <b>Returns:</b> clause for <code>do_put(iter_type, ios_base &amp;, char_type, bool &amp;) const</code>, <i>et al</i> to
-</p>
-<blockquote><p>
-<b>Returns:</b> <code><del><i>base</i></del> <ins>std::use_facet&lt;std::num_put&lt;charT, OutputIterator> >(<i>baseloc</i>)</ins>.put(<i>s</i>, <i>f</i>, <i>fill</i>, <i>val</i>)</code>. 
-</p></blockquote>
-
-<p><i>[
-Redmond:  We would prefer to rename "extended" to "decimal".
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="605"></a>605. Decimal: &lt;decfloat.h&gt; doesn't live here anymore.</h3>
-<p><b>Section:</b> TRDecimal 3.4 [trdec.types.cdecfloat] <b>Status:</b> <a href="lwg-active.html#TRDec">TRDec</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2006-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#TRDec">TRDec</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Berlin, WG14 decided to drop the &lt;decfloat.h> header.  The contents of that header have been moved into &lt;float.h>.  For the sake of C compatibility, we should make corresponding changes.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-1. Change the heading of subclause 3.4, "Headers <code>&lt;cdecfloat></code> and <code>&lt;decfloat.h></code>" to "Additions to headers <code>&lt;cfloat></code> and <code>&lt;float.h></code>."
-</p>
-<p>
-2. Change the text of subclause 3.4 as follows:
-</p>
-<blockquote>
-<p>
-<del>The standard C++ headers <code>&lt;cfloat></code> and <code>&lt;float.h></code> define characteristics of the floating-point types <code>float</code>, <code>double</code>, and <code>long double</code>.  Their contents remain unchanged by this Technical Report.</del>
-</p>
-<p>
-<del>Headers <code>&lt;cdecfloat></code> and <code>&lt;decfloat.h></code> define characteristics of the decimal floating-point types <code>decimal32</code>, <code>decimal64</code>, and <code>decimal128</code>.  As well, <code>&lt;decfloat.h></code> defines the convenience typedefs <code>_Decimal32</code>, <code>_Decimal64</code>, and <code>_Decimal128</code>, for compatibilty with the C programming language.</del>
-</p>
-<p>
-<ins>The header <code>&lt;cfloat></code> is described in [tr.c99.cfloat].  The header <code>&lt;float.h></code> is described in [tr.c99.floath]. These headers are extended by this Technical Report to define characteristics of the decimal floating-point types <code>decimal32</code>, <code>decimal64</code>, and <code>decimal128</code>.  As well, <code>&lt;float.h></code> is extended to define the convenience typedefs <code>_Decimal32</code>, <code>_Decimal64</code>, and <code>_Decimal128</code> for compatibility with the C programming language.</ins>
-</p>
-</blockquote>
-<p>
-3. Change the heading of subclause 3.4.1, "Header <code>&lt;cdecfloat></code> synopsis"  to "Additions to header <code>&lt;cfloat></code> synopsis."
-</p>
-<p>
-4. Change the heading of subclause 3.4.2, "Header <code>&lt;decfloat.h></code> synopsis" to "Additions to header <code>&lt;float.h></code> synopsis."
-</p>
-<p>
-5. Change the contents of 3.4.2 as follows:
-</p>
-<pre>
-      <del>#include &lt;cdecfloat></del>
-
-      // <i>C-compatibility convenience typedefs:</i>
-
-      typedef std::decimal::decimal32  _Decimal32;
-      typedef std::decimal::decimal64  _Decimal64;
-      typedef std::decimal::decimal128 _Decimal128;
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="607"></a>607. Concern about short seed vectors</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Charles Karney <b>Opened:</b> 2006-10-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Short seed vectors of 32-bit quantities all result in different states. However
-this is not true of seed vectors of 16-bit (or smaller) quantities.  For example
-these two seeds
-</p>
-
-<blockquote><pre>
-unsigned short seed = {1, 2, 3};
-unsigned short seed = {1, 2, 3, 0};
-</pre></blockquote>
-
-<p>
-both pack to
-</p>
-
-<blockquote><pre>
-unsigned seed = {0x20001, 0x3};
-</pre></blockquote>
-
-<p>
-yielding the same state.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="608"></a>608. Unclear seed_seq construction details</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Charles Karney <b>Opened:</b> 2006-10-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 26.4.7.1 [rand.util.seedseq] /6, the order of packing the inputs into b and the
-treatment of signed quantities is unclear. Better to spell it out.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="609"></a>609. missing static const</h3>
-<p><b>Section:</b> 26.5.4.3 [rand.adapt.ibits], TR1 5.1 [tr.rand] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Walter E. Brown <b>Opened:</b> 2006-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In preparing N2111, an error on my part resulted in the omission of the
-following line from the template synopsis in the cited section:
-</p>
-
-<blockquote><pre>
-static const size_t word_size = w;
-</pre></blockquote>
-
-<p>
-(This same constant is found, for example, in 26.4.3.3 [rand.eng.sub].)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the above declaration as the first line after the comment in [rand.adapt.ibits] p4:
-</p>
-
-<blockquote><pre>
-// engine characteristics
-<ins>static const size_t word_size = w;</ins>
-</pre></blockquote>
-
-<p>
-and accept my apologies for the oversight.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="610"></a>610. Suggested non-normative note for C++0x</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con], TR1 3.7.2.1 [tr.func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Scott Meyers <b>Opened:</b> 2006-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-My suggestion is that implementers of both tr1::function and its 
-official C++0x successor be explicitly encouraged (but not required) to 
-optimize for the cases mentioned above, i.e., function pointers and 
-small function objects.  They could do this by using a small internal 
-buffer akin to the buffer used by implementations of the small string 
-optimization.  (That would make this the small functor optimization -- 
-SFO :-})  The form of this encouragement could be a note in the standard 
-akin to footnote 214 of the current standard.
-</p>
-
-<p>
-Dave Abrahams notes:
-</p>
-
-<p>
-"shall not throw exceptions" should really be "nothing," both to be more
-grammatical and to be consistent with existing wording in the standard.
-</p>
-
-<p>
-Doug Gregor comments: I think this is a good idea. Currently, implementations of
-tr1::function are required to have non-throwing constructors and assignment
-operators when the target function object is a function pointer or a
-reference_wrapper. The common case, however, is for a tr1::function to store
-either an empty function object or a member pointer + an object pointer.
-</p>
-<p>
-The function implementation in the upcoming Boost 1.34.0 uses the
-"SFO", so that the function objects for typical bind expressions like
-</p>
-<blockquote><pre>
-bind(&amp;X::f, this, _1, _2, _3)
-</pre></blockquote>
-
-<p>
-do not require heap allocation when stored in a boost::function. I
-believe Dinkumware's implementation also performs this optimization.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Revise 20.5.14.2.1 p6 [func.wrap.func.con] to add a note as follows:
-</p>
-
-<blockquote>
-<p>
-<i>Throws:</i> shall not throw exceptions if <tt>f</tt>'s target is a function
-pointer or a function object passed via <tt>reference_wrapper</tt>. Otherwise,
-may throw <tt>bad_alloc</tt> or any exception thrown by the copy constructor of
-the stored function object.
-</p>
-<p>
-<ins><i>Note:</i> Implementations are encouraged to avoid the use of dynamically
-allocated memory for "small" function objects, e.g., where <tt>f</tt>'s target
-is an object holding only a pointer or reference to an object and a member
-function pointer (a "bound member function").</ins>
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="611"></a>611. Standard library templates and incomplete types</h3>
-<p><b>Section:</b> 17.6.4.8 [res.on.functions] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nicola Musatti <b>Opened:</b> 2006-11-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.functions">issues</a> in [res.on.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the latest available draft standard 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2134.pdf">N2134</a>)
-&sect; 17.4.3.6 [res.on.functions] states:
-</p>
-
-<blockquote>
-<p>
--1- In certain cases (replacement functions, handler functions, operations on
-types used to instantiate standard library template components), the C++
-Standard Library depends on components supplied by a C++ program. If these
-components do not meet their requirements, the Standard places no requirements
-on the implementation.
-</p>
-
-<p>
--2- In particular, the effects are undefined in the following cases:
-</p>
-<p>
-[...]
-</p>
-<ul>
-<li>if an incomplete type (3.9) is used as a template argument when
-instantiating a template component. </li>
-</ul>
-</blockquote>
-
-<p>
-This is contradicted by &sect; 20.6.6.2/2 [util.smartptr.shared] which
-states:
-</p>
-
-<blockquote>
-<p>
-[...]
-</p>
-
-<p>
-The template parameter <tt>T</tt> of <tt>shared_ptr</tt> may be an incomplete type.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify the last bullet of &sect; 17.4.3.6/2 [res.on.functions] to allow for
-exceptions:
-</p>
-
-<blockquote>
-<ul>
-<li>if an incomplete type (3.9) is used as a template argument when
-instantiating a template component<ins>, unless specifically allowed for the
-component</ins>. </li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="612"></a>612. numeric_limits::is_modulo insufficiently defined</h3>
-<p><b>Section:</b> 18.3.2.4 [numeric.limits.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Chris Jefferson <b>Opened:</b> 2006-11-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.limits.members">issues</a> in [numeric.limits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-18.2.1.2 55 states that "A type is modulo if it is possible to add two
-positive numbers together and have a result that wraps around to a
-third number that is less".
-This seems insufficient for the following reasons:
-</p>
-
-<ol>
-<li>Doesn't define what that value received is.</li>
-<li>Doesn't state the result is repeatable</li>
-<li> Doesn't require that doing addition, subtraction and other
-operations on all values is defined behaviour.</li>
-</ol>
-
-<p><i>[
-Batavia: Related to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2144.pdf">N2144</a>.
-Pete: is there an ISO definition of modulo?  Underflow on signed behavior is undefined.
-]</i></p>
-
-
-<p><i>[
-Bellevue:  accept resolution, move to ready status.
-Does this mandate that is_modulo be true on platforms for which int
-happens to b modulo? A: the standard already seems to require that.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Suggest 18.3.2.4 [numeric.limits.members], paragraph 57 is amended to:
-</p>
-
-<blockquote><p>
-A type is modulo if<ins>,</ins> <del>it is possible to add two positive numbers
-and have a result that wraps around to a third number that is less.</del>
-<ins>given any operation involving +,- or * on values of that type whose value
-would fall outside the range <tt>[min(), max()]</tt>, then the value returned
-differs from the true value by an integer multiple of <tt>(max() - min() +
-1)</tt>.</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="613"></a>613. max_digits10 missing from numeric_limits</h3>
-<p><b>Section:</b> 18.3.2.7 [numeric.special] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2006-11-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numeric.special">issues</a> in [numeric.special].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 18.3.2.7 [numeric.special] starts out by saying that "All members shall be provided 
-for all specializations."
-</p>
-<p>
-Then it goes on to show specializations for float and bool, where one member 
-is missing (max_digits10).
-</p>
-
-<p>
-Maarten Kronenburg adds:
-</p>
-
-<p>
-I agree, just adding the comment that the exact number of decimal digits
-is digits * ln(radix) / ln(10), where probably this real number is
-rounded downward for digits10, and rounded upward for max_digits10
-(when radix=10, then digits10=max_digits10).
-Why not add this exact definition also to the standard, so the user
-knows what these numbers exactly mean.
-</p>
-
-<p>
-Howard adds:
-</p>
-
-<p>
-For reference, here are the correct formulas from
-<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1822.pdf">N1822</a>:
-</p>
-
-<blockquote><pre>
-digits10 = floor((digits-1) * log10(2))
-max_digits10 = ceil((1 + digits) * log10(2))
-</pre></blockquote>
-
-<p>
-We are also missing a statement regarding for what specializations this member has meaning.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change and add after 18.3.2.4 [numeric.limits.members], p11:
-</p>
-
-<blockquote>
-<pre>static const int max_digits10;</pre>
-<blockquote>
-<p>
--11- Number of base 10 digits required to ensure that values which
-differ <del>by only one epsilon</del> are always differentiated.
-</p>
-<p><ins>
--12- Meaningful for all floating point types.
-</ins></p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 18.3.2.7 [numeric.special], p2:
-</p>
-
-<blockquote><pre>
-template&lt;&gt; class numeric_limits&lt;float&gt; { 
-public: 
-  static const bool is_specialized = true; 
-  ...
-  static const int digits10 = 6;
-  <ins>static const int max_digits10 = 9</ins>;
-  ...
-</pre></blockquote>
-
-<p>
-Change 18.3.2.7 [numeric.special], p3:
-</p>
-
-<blockquote><pre>
-template&lt;&gt; class numeric_limits&lt;bool&gt; { 
-public: 
-  static const bool is_specialized = true; 
-  ...
-  static const int digits10 = 0;
-  <ins>static const int max_digits10 = 0</ins>;
-  ...
-</pre></blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="616"></a>616. missing 'typename' in ctype_byname</h3>
-<p><b>Section:</b> 22.4.1.2 [locale.ctype.byname] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2006-12-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.ctype.byname">issues</a> in [locale.ctype.byname].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 22.2.1.2 defines the ctype_byname class template. It contains the 
-line
-</p>
-
-<blockquote><pre>
-typedef ctype&lt;charT&gt;::mask   mask;
-</pre></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-as this is a dependent type, it should obviously be
-</p>
-
-<blockquote><pre>
-typedef <ins>typename</ins> ctype&lt;charT&gt;::mask   mask;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="618"></a>618. valarray::cshift() effects on empty array</h3>
-<p><b>Section:</b> 26.6.2.8 [valarray.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 2007-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I would respectfully request an issue be opened with the intention to
-clarify the wording for <tt>size() == 0</tt> for <tt>cshift</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.6.2.8 [valarray.members], paragraph 10:
-</p>
-
-<blockquote>
-
-<pre>
-valarray&lt;T&gt; cshift(int <i>n</i>) const;
-</pre>
-
-<blockquote>
-<p>
-This function returns an object of class <tt>valarray&lt;T&gt;</tt>, of
-length <tt>size()</tt>, <del>each of whose elements <tt>I</tt> is
-<tt>(*this)[(I + n ) % size()]</tt>. Thus, if element zero is taken as
-the leftmost element, a positive value of <i>n</i> shifts the elements
-circularly left <i>n</i> places.</del> <ins>that is a circular shift of <tt>*this</tt>. If
-element zero is taken as the leftmost element, a non-negative value of
-<i>n</i> shifts the elements circularly left <i>n</i> places and a
-negative value of <i>n</i> shifts the elements circularly right
--<i>n</i> places.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-We do not believe that there is any real ambiguity about what happens
-when <tt>size() == 0</tt>, but we do believe that spelling this out as a C++
-expression causes more trouble that it solves. The expression is
-certainly wrong when <tt>n &lt; 0</tt>, since the sign of % with negative arguments
-is implementation defined.
-</p>
-
-
-<p><i>[
-Kona (2007) Changed proposed wording, added rationale and set to Review.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="619"></a>619. Longjmp wording problem</h3>
-<p><b>Section:</b> 18.10 [support.runtime] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2007-01-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.runtime">active issues</a> in [support.runtime].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.runtime">issues</a> in [support.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The wording for <tt>longjmp</tt> is confusing.
-</p>
-<p>
-18.10 [support.runtime] -4- Other runtime support
-</p>
-<blockquote><p>
-The function signature <tt>longjmp(jmp_buf jbuf, int val)</tt> has more restricted
-behavior in this International Standard.  If any automatic objects would
-be destroyed by a thrown exception transferring control to another
-(destination) point in the program, then a call to <tt>longjmp(jbuf, val)</tt> that
-the throw point that transfers control to the same (destination) point has
-undefined behavior.
-</p></blockquote>
-<p>
-Someone at Google thinks that should say "then a call to <tt>longjmp(jbuf, val)</tt>
-*at* the throw point that transfers control".
-</p>
-<p>
-Bill Gibbons thinks it should say something like "If any automatic objects
-would be destroyed by an exception thrown at the point of the longjmp and
-caught only at the point of the setjmp, the behavior is undefined."
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In general, accept Bill Gibbons' recommendation,
-but add "call" to indicate that the undefined behavior
-comes from the dynamic call, not from its presence in the code.
-In 18.10 [support.runtime] paragraph 4, change
-</p>
-
-<blockquote><p>
-The function signature <tt>longjmp(jmp_buf jbuf, int val)</tt> has more
-restricted behavior in this International Standard.  <del>If any automatic
-objects would be destroyed by a thrown exception transferring control to another
-(destination) point in the program, then a call to <tt>longjmp(jbuf, val)</tt>
-that the throw point that transfers control to the same (destination) point has
-undefined behavior.</del> <ins>A <tt>setjmp</tt>/<tt>longjmp</tt> call pair has
-undefined behavior if replacing the <tt>setjmp</tt> and <tt>longjmp</tt> by
-<tt>catch</tt> and <tt>throw</tt> would destroy any automatic objects.</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="620"></a>620. valid uses of empty valarrays</h3>
-<p><b>Section:</b> 26.6.2.2 [valarray.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cons">issues</a> in [valarray.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The <i>Effects</i>  clause for the  default <code>valarray</code> ctor
-suggests  that  it  is possible  to  increase  the  size of  an  empty
-<code>valarray</code>  object   by  calling  other   non-const  member
-functions of the class besides <code>resize()</code>. However, such an
-interpretation would  be contradicted by  the requirement on  the copy
-assignment  operator  (and  apparently   also  that  on  the  computed
-assignments)  that the  assigned arrays  be  the same  size.  See  the
-reflector discussion starting with c++std-lib-17871.
-
-        </p>
-        <p>
-
-In  addition,  <i>Footnote</i> 280  uses  some questionable  normative
-language.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Reword the <i>Effects</i> clause and <i>Footnote 280</i> as follows (26.6.2.2 [valarray.cons]):
-
-        </p>
-        <blockquote>
-            <p>
-
-<code>valarray();</code>
-
-            </p>
-            <p>
-
-<i>Effects</i>:      Constructs      an      object      of      class
-<code>valarray&lt;T&gt;</code>,<sup>279)</sup>    which    has    zero
-length<del> until it is passed into a library function as a modifiable
-lvalue or through a non-constant this pointer</del>.<sup>280)</sup>
-
-            </p>
-            <p>
-
-<ins><i>Postcondition</i>: <code>size() == 0</code>.</ins>
-
-            </p>
-            <p>
-
-<i>Footnote  280</i>:  This default  constructor  is essential,  since
-arrays  of  <code>valarray</code>  <del>are  likely to  prove  useful.
-There  shall also  be  a way  to change  the  size of  an array  after
-initialization;  this  is  supplied  by the  semantics</del>  <ins>may be
-useful.   The  length  of  an  empty  array  can  be  increased  after
-initialization  by  means</ins>  of the  <code>resize()</code>  member
-function.
-
-            </p>
-        </blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="621"></a>621. non-const copy assignment operators of helper arrays</h3>
-<p><b>Section:</b> 26.6 [numarray] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numarray">issues</a> in [numarray].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The computed and  "fill" assignment operators of <code>valarray</code>
-helper     array     class    templates     (<code>slice_array</code>,
-<code>gslice_array</code>,         <code>mask_array</code>,        and
-<code>indirect_array</code>) are const  member functions of each class
-template     (the     latter    by     the     resolution    of  <a href="lwg-defects.html#123">123</a>
-since  they have reference  semantics and thus do  not affect
-the state of  the object on which they are  called.  However, the copy
-assignment  operators  of  these  class  templates,  which  also  have
-reference semantics,  are non-const.   The absence of  constness opens
-the door to speculation about whether they really are intended to have
-reference semantics (existing implementations vary widely).
-
-        </p>
-
-<p>
-Pre-Kona, Martin adds:
-</p>
-
-<p>
-I realized that adding the const qualifier to the
-functions as I suggested would break the const correctness of the
-classes. A few possible solutions come to mind:
-</p>
-
-<ol>
-<li>Add the const qualifier to the return types of these functions.</li>
-<li>Change the return type of all the functions to void to match
-the signatures of all the other assignment operators these classes
-define.</li>
-<li>Prohibit the copy assignment of these classes by declaring the
-copy assignment operators private (as is done and documented by
-some implementations).</li>
-</ol>
-
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Declare  the  copy  assignment  operators  of all  four  helper  array
-class templates const.
-
-        </p>
-        <p>
-
-Specifically,  make the following edits:
-
-        </p>
-        <p>
-
-Change     the    signature     in     26.6.5 [template.slice.array]    and
-26.6.5.2 [slice.arr.assign] as follows:
-
-        </p>
-        <blockquote><pre>
-
-<code><ins>const</ins> slice_array&amp; operator= (const slice_array&amp;)<ins> const</ins>;</code>
-
-        </pre></blockquote>
-        <p>
-
-Change     the     signature     in    26.6.7 [template.gslice.array]     and
-26.6.7.2 [gslice.array.assign] as follows:
-
-        </p>
-        <blockquote><pre>
-
-<code><ins>const</ins> gslice_array&amp; operator= (const gslice_array&amp;)<ins> const</ins>;</code>
-
-        </pre></blockquote>
-        <p>
-
-Change the  signature in 26.6.8 [template.mask.array]  and 26.6.8.2 [mask.array.assign] as
-follows:
-
-        </p>
-        <blockquote><pre>
-
-<code><ins>const</ins> mask_array&amp; operator= (const mask_array&amp;)<ins> const</ins>;</code>
-
-        </pre></blockquote>
-        <p>
-
-Change     the     signature     in    26.6.9 [template.indirect.array] and
-26.6.9.2 [indirect.array.assign] as follows:
-
-        </p>
-        <blockquote><pre>
-
-<code><ins>const</ins> indirect_array&amp; operator= (const indirect_array&amp;)<ins> const</ins>;</code>
-
-        </pre></blockquote>
-
-
-<p><i>[
-Kona (2007) Added const qualification to the return types and set to Ready.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="622"></a>622. behavior of <code>filebuf</code> dtor and <code>close</code> on error</h3>
-<p><b>Section:</b> 27.9.1.17 [fstream.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-<code>basic_filebuf</code>  dtor is  specified to  have  the following
-straightforward effects:
-
-        </p>
-        <blockquote><p>
-
-<i>Effects</i>:       Destroys      an      object       of      class
-<code>basic_filebuf</code>. Calls <code>close()</code>.
-
-        </p></blockquote>
-        <p>
-
-<code>close()</code> does a lot of potentially complicated processing,
-including calling <code>overflow()</code> to write out the termination
-sequence  (to   bring  the  output  sequence  to   its  initial  shift
-state). Since  any of the  functions called during the  processing can
-throw an exception, what should the  effects of an exception be on the
-dtor? Should the  dtor catch and swallow it or  should it propagate it
-to the caller?  The text doesn't  seem to provide any guidance in this
-regard  other  than  the  general  restriction on  throwing  (but  not
-propagating)  exceptions  from   destructors  of  library  classes  in
-17.6.5.12 [res.on.exception.handling].
-
-        </p>
-        <p>
-
-Further,  the last thing  <code>close()</code> is  specified to  do is
-call <code>fclose()</code> to close the <code>FILE</code> pointer. The
-last sentence of the <i>Effects</i> clause reads:
-
-        </p>
-        <blockquote><p>
-
-...   If    any   of    the   calls   to    <code>overflow</code>   or
-<code>std::fclose</code> fails then <code>close</code> fails.
-
-        </p></blockquote>
-        <p>
-
-This  suggests that  <code>close()</code>  might be  required to  call
-<code>fclose()</code>   if  and  only   if  none   of  the   calls  to
-<code>overflow()</code> fails, and avoid closing the <code>FILE</code>
-otherwise. This  way, if  <code>overflow()</code> failed to  flush out
-the data, the caller  would have  the opportunity to  try to  flush it
-again (perhaps  after trying  to deal with  whatever problem  may have
-caused the failure), rather than losing it outright.
-
-        </p>
-        <p>
-
-On the other hand,  the function's <i>Postcondition</i> specifies that
-<code>is_open() ==  false</code>, which  suggests that it  should call
-<code>fclose()</code>       unconditionally.       However,      since
-<i>Postcondition</i> clauses  are specified for many  functions in the
-standard,  including constructors  where they  obviously  cannot apply
-after an  exception, it's not clear  whether this <i>Postcondition</i>
-clause is intended to apply even after an exception.
-
-        </p>
-        <p>
-
-It  might  be worth  noting  that  the  traditional behavior  (Classic
-Iostreams  <code>fstream::close()</code> and  C <code>fclose()</code>)
-is  to  close  the  <code>FILE</code> unconditionally,  regardless  of
-errors.
-
-        </p>
-
-<p><i>[
-See <a href="lwg-closed.html#397">397</a> and <a href="lwg-closed.html#418">418</a> for related issues.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-After discussing this  on the reflector (see the  thread starting with
-c++std-lib-17650) we propose that <code>close()</code> be clarified to
-match the traditional behavior, that is to close the <code>FILE</code>
-unconditionally,  even after  errors or  exceptions.  In  addition, we
-propose the dtor description be amended so as to explicitly require it
-to catch and swallow any exceptions thrown by <code>close()</code>.
-
-        </p>
-        <p>
-
-Specifically,   we   propose   to   make  the   following   edits   in
-27.9.1.4 [filebuf.members]:
-
-        </p>
-        <blockquote>
-            <pre>
-
-<code>basic_filebuf&lt;charT,traits&gt;* close();</code>
-
-            </pre>
-            <p>
-
-<i>Effects</i>:  If <code>is_open()  == false</code>,  returns  a null
-pointer.        If      a       put      area       exists,      calls
-<code>overflow(traits::eof())</code> to flush  characters. If the last
-virtual   member  function   called  on   <code>*this</code>  (between
-<code>underflow</code>,  <code>overflow</code>,  <code>seekoff</code>,
-and   <code>seekpos</code>)  was   <code>overflow</code>   then  calls
-<code>a_codecvt.unshift</code> (possibly several times) to determine a
-termination   sequence,    inserts   those   characters    and   calls
-<code>overflow(traits::eof())</code>  again.  Finally<ins>, regardless
-of whether  any of the preceding  calls fails or  throws an exception,
-the  function</ins> <del>it</del>  closes   the  file   ("as   if"  by   calling
-<code>std::fclose(file)</code>).<sup>334)</sup>  If any  of  the calls
-<ins>made    by   the    function</ins><del>to   <code>overflow</code>
-or</del><ins>,  including  </ins><code>std::fclose</code><ins>, </ins>
-fails then <code>close</code> fails<ins>  by returning a null pointer.
-If one of these calls throws an exception, the exception is caught and
-rethrown after closing the file.</ins>
-
-            </p>
-        </blockquote>
-        <p>
-
-And to make the following edits in 27.9.1.2 [filebuf.cons].
-
-        </p>
-        <blockquote>
-            <pre>
-
-<code>virtual ~basic_filebuf();</code>
-
-            </pre>
-            <p>
-
-<i>Effects</i>:       Destroys      an      object       of      class
-<code>basic_filebuf&lt;charT,traits&gt;</code>.                   Calls
-<code>close()</code>.    <ins>If  an   exception  occurs   during  the
-destruction of the object, including the call to <code>close()</code>,
-the     exception    is     caught    but     not     rethrown    (see
-17.6.5.12 [res.on.exception.handling]).</ins>
-
-            </p>
-        </blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="623"></a>623. <code>pubimbue</code> forbidden to call <code>imbue</code></h3>
-<p><b>Section:</b> 27.2.1 [iostream.limits.imbue] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-27.2.1 [iostream.limits.imbue]  specifies  that  "no  function  described  in
-clause 27 except  for <code>ios_base::imbue</code> causes any instance
-of                   <code>basic_ios::imbue</code>                  or
-<code>basic_streambuf::imbue</code> to be called."
-
-        </p>
-        <p>
-
-That      contradicts      the      <i>Effects</i>     clause      for
-<code>basic_streambuf::pubimbue()</code>  which requires  the function
-to do just that: call <code>basic_streambuf::imbue()</code>.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-To    fix   this,    rephrase    the   sentence    above   to    allow
-<code>pubimbue</code> to do what  it was designed to do. Specifically.
-change 27.2.1 [iostream.limits.imbue], p1 to read:
-
-        </p>
-        <blockquote><p>
-
-No     function    described     in    clause     27     except    for
-<code>ios_base::imbue</code>  <ins>and <code>basic_filebuf::pubimbue</code></ins>
-causes    any    instance    of    <code>basic_ios::imbue</code>    or
-<code>basic_streambuf::imbue</code> to be called. ...
-
-        </p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="624"></a>624. <code>valarray</code> assignment and arrays of unequal length</h3>
-<p><b>Section:</b> 26.6.2.3 [valarray.assign] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.assign">issues</a> in [valarray.assign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-The behavior of the  <code>valarray</code> copy assignment operator is
-defined only when both sides have  the same number of elements and the
-spec is explicit about assignments of arrays of unequal lengths having
-undefined behavior.
-
-        </p>
-        <p>
-
-However, the generalized  subscripting assignment operators overloaded
-on <code>slice_array</code>  et al (26.6.2.3 [valarray.assign])  don't have any
-such restriction, leading  the reader to believe that  the behavior of
-these  overloads is  well defined  regardless  of the  lengths of  the
-arguments.
-
-        </p>
-        <p>
-
-For example,  based on  the reading  of the spec  the behavior  of the
-snippet below can be expected to be well-defined:
-
-        </p>
-        <pre>
-    const std::slice from_0_to_3 (0, 3, 1);   // refers to elements 0, 1, 2
-    const std::valarray&lt;int&gt; a (1, 3);        // a = { 1, 1, 1 }
-    std::valarray&lt;int&gt;       b (2, 4);        // b = { 2, 2, 2, 2 }
-
-    b = a [from_0_to_3];
-        </pre>
-        <p>
-
-In practice, <code>b</code> may end up being <code>{ 1, 1, 1 }</code>,
-<code>{  1,  1, 1,  2  }</code>,  or  anything else,  indicating  that
-existing implementations vary.
-
-        </p>
-
-<p>
-Quoting from Section 3.4, Assignment operators, of Al Vermeulen's
-Proposal for Standard C++ Array Classes (see c++std-lib-704;
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1993/N0308.asc">N0308</a>):
-</p>
-<blockquote><p>
-  ...if the size of the array on the right hand side of the equal
-  sign differs from the size of the array on the left, a run time
-  error occurs. How this error is handled is implementation
-  dependent; for compilers which support it, throwing an exception
-  would be reasonable.
-</p></blockquote>
-
-<p>
-And see more history in
-<a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/1993/N0280.pdf">N0280</a>.
-</p>
-
-        <p>
-
-It has  been argued in  discussions on the committee's  reflector that
-the semantics of all <code>valarray</code> assignment operators should
-be permitted to be undefined unless  the  length  of the arrays  being
-assigned is the same as the length of the one being assigned from. See
-the thread starting at c++std-lib-17786.
-
-        </p>
-        <p>
-
-In order  to reflect  such views, the  standard must specify  that the
-size of the  array referred to by the argument  of the assignment must
-match the size of the array  under assignment, for example by adding a
-<i>Requires</i> clause to 26.6.2.3 [valarray.assign] as follows:
-
-        </p>
-        <blockquote><p>
-
-<i>Requires</i>: The length of the  array to which the argument refers
-equals <code>size()</code>.
-
-        </p></blockquote>
-
-        <p>
-
-Note that it's  far from clear that such leeway  is necessary in order
-to implement <code>valarray</code> efficiently.
-
-        </p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert new paragraph into 26.6.2.3 [valarray.assign]:
-</p>
-
-<blockquote>
-<pre>
-valarray&lt;T&gt;&amp; operator=(const slice_array&lt;T&gt;&amp;); 
-valarray&lt;T&gt;&amp; operator=(const gslice_array&lt;T&gt;&amp;); 
-valarray&lt;T&gt;&amp; operator=(const mask_array&lt;T&gt;&amp;); 
-valarray&lt;T&gt;&amp; operator=(const indirect_array&lt;T&gt;&amp;);
-</pre>
-<blockquote>
-<p><ins>
-<i>Requires</i>: The length of the  array to which the argument refers
-equals <code>size()</code>.
-</ins></p>
-<p>
-These operators allow the results of a generalized subscripting operation to be assigned directly to a <tt>valarray</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="625"></a>625. Mixed up <i>Effects</i> and <i>Returns</i> clauses</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#895">895</a></p>
-<p><b>Discussion:</b></p>
- <p>
-
-Many member functions of <code>basic_string</code> are overloaded,
-with some of the overloads taking a <code>string</code> argument,
-others <code>value_type*</code>, others <code>size_type</code>, and
-others still <code>iterators</code>. Often, the requirements on one of
-the overloads are expressed in the form of <i>Effects</i>,
-<i>Throws</i>, and in the Working Paper
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2134.pdf">N2134</a>)
-also <i>Remark</i> clauses, while those on the rest of the overloads
-via a reference to this overload and using a <i>Returns</i> clause.
-</p>
-
-<p>
-The difference between the two forms of specification is that per
-17.5.1.4 [structure.specifications], p3, an <i>Effects</i> clause specifies
-<i>"actions performed by the functions,"</i> i.e., its observable
-effects, while a <i>Returns</i> clause is <i>"a description of the
-return value(s) of a function"</i> that does not impose any
-requirements on the function's observable effects.
-</p>
-
-<p>
-Since only <i>Notes</i> are explicitly defined to be informative and
-all other paragraphs are explicitly defined to be normative, like
-<i>Effects</i> and <i>Returns</i>, the new <i>Remark</i> clauses also
-impose normative requirements.
-</p>
-
-<p>
-So by this strict reading of the standard there are some member
-functions of <code>basic_string</code> that are required to throw an
-exception under some conditions or use specific traits members while
-many other otherwise equivalent overloads, while obliged to return the
-same values, aren't required to follow the exact same requirements
-with regards to the observable effects.
-</p>
-
-<p>
-Here's an example of this problem that was precipitated by the change
-from informative Notes to normative <i>Remark</i>s (presumably made to
-address <a href="lwg-closed.html#424">424</a>):
-</p>
-
-<p>
-In the Working Paper, <code>find(string, size_type)</code> contains a
-<i>Remark</i> clause (which is just a <i>Note</i> in the current
-standard) requiring it to use <code>traits::eq()</code>.
-</p>
-
-<p>
-<code>find(const charT *s, size_type pos)</code> is specified to
-return <code>find(string(s), pos)</code> by a <i>Returns</i> clause
-and so it is not required to use <code>traits::eq()</code>. However,
-the Working Paper has replaced the original informative <i>Note</i>
-about the function using <code>traits::length()</code> with a
-normative requirement in the form of a <i>Remark</i>. Calling
-<code>traits::length()</code> may be suboptimal, for example when the
-argument is a very long array whose initial substring doesn't appear
-anywhere in <code>*this</code>.
-</p>
-
-<p>
-Here's another similar example, one that existed even prior to the
-introduction of <i>Remark</i>s:
-</p>
-
-<p>
-<code> insert(size_type pos, string, size_type, size_type)</code> is
-required to throw <code>out_of_range</code> if <code>pos >
-size()</code>.
-</p>
-
-<p>
-<code>insert(size_type pos, string str)</code> is specified to return
-<code>insert(pos, str, 0, npos)</code> by a <i>Returns</i> clause and
-so its effects when <code>pos > size()</code> are strictly speaking
-unspecified.
-</p>
-
-<p>
-I believe a careful review of the current <i>Effects</i> and
-<i>Returns</i> clauses is needed in order to identify all such
-problematic cases. In addition, a review of the Working Paper should
-be done to make sure that the newly introduced normative <i>Remark</i>
-clauses do not impose any undesirable normative requirements in place
-of the original informative <i>Notes</i>.
-</p>
-
-<p><i>[
-Batavia: Alan and Pete to work.
-]</i></p>
-
-
-<p><i>[
-Bellevue: Marked as NAD Editorial.
-]</i></p>
-
-
-<p><i>[
-Post-Sophia Antipolis:
-Martin indicates there is still work to be done on this issue.
-Reopened.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Tom proposes we say that, unless specified otherwise,
-it is always the caller's responsibility to verify that supplied arguments
-meet the called function's requirements.
-If further semantics are specified
-(e.g., that the function throws under certain conditions),
-then it is up to the implementer to check those conditions.
-Alan feels strongly that our current use of Requires in this context
-is confusing, especially now that <tt>requires</tt> is a new keyword.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively NAD.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open.  Martin will work on proposed wording.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to NAD Editorial, solved by revision to N3021.
-</p></blockquote>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by revision to N3021.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="628"></a>628. Inconsistent definition of basic_regex constructor</h3>
-<p><b>Section:</b> 28.8 [re.regex] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex">issues</a> in [re.regex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 28.8 [re.regex] lists a constructor
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator&gt;
-basic_regex(InputIterator first, InputIterator last,
-                       flag_type f = regex_constants::ECMAScript);
-</pre></blockquote>
-
-<p>
-However, in section 28.8.2 [re.regex.construct], this constructor takes a 
-pair of <tt>ForwardIterator</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 28.8.2 [re.regex.construct]:
-</p>
-
-<blockquote><pre>
-template &lt;class <del>ForwardIterator</del> <ins>InputIterator</ins>&gt;
-  basic_regex(<del>ForwardIterator</del> <ins>InputIterator</ins> first, <del>ForwardIterator</del> <ins>InputIterator</ins> last, 
-              flag_type f = regex_constants::ECMAScript);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="629"></a>629. <tt>complex&lt;T&gt;</tt> insertion and locale dependence</h3>
-<p><b>Section:</b> 26.4.6 [complex.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 2007-01-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.ops">issues</a> in [complex.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-is there an issue opened for (0,3) as complex number with
-the French local?  With the English local, the above parses as an
-imaginery complex number.  With the French locale it parses as a
-real complex number.
-</p>
-
-<p>
-Further notes&#47;ideas from the lib-reflector, messages 17982-17984:
-</p>
-
-<blockquote>
-<p>
-Add additional entries in <tt>num_punct</tt> to cover the complex separator (French would be ';').
-</p>
-<p>
-Insert a space before the comma, which should eliminate the ambiguity.
-</p>
-<p>
-Solve the problem for ordered sequences in general, perhaps with a
-dedicated facet.  Then complex should use that solution.
-</p>
-</blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-After much discussion, we agreed on the following: Add a footnote:
-</p>
-<p>
-[In a locale in which comma is being used as a decimal point character,
-inserting "showbase" into the output stream forces all outputs to show
-an explicit decimal point character; then all inserted complex sequences
-will extract unambiguously.]
-</p>
-<p>
-And move this to READY status.
-</p>
-</blockquote>
-
-<p><i>[
-Pre-Sophia Antipolis, Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Changed "showbase" to "showpoint" and changed from Ready to Review.
-</p></blockquote>
-
-<p><i>[
-Post-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-I neglected to pull this issue from the formal motions page after the "showbase" to "showpoint" change.
-In Sophia Antipolis this change was reviewed by the LWG and the issue was set to Ready.  We subsequently
-voted the footnote into the WP with "showbase".
-</p>
-<p>
-I'm changing from WP back to Ready to pick up the "showbase" to "showpoint" change.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a footnote to 26.4.6 [complex.ops] p16:
-</p>
-
-<blockquote><p>
-[In a locale in which comma is being used as a decimal point character,
-inserting <tt>showpoint</tt> into the output stream forces all outputs to show
-an explicit decimal point character; then all inserted complex sequences
-will extract unambiguously.]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="630"></a>630. arrays of <tt>valarray</tt></h3>
-<p><b>Section:</b> 26.6.2.2 [valarray.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-01-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cons">issues</a> in [valarray.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-        <p>
-
-Section 26.2 [numeric.requirements], p1     suggests     that     a
-<code>valarray</code>  specialization on  a  type <code>T</code>  that
-satisfies  the requirements enumerated  in the  paragraph is  itself a
-valid  type   on  which  <code>valarray</code>   may  be  instantiated
-(Footnote       269        makes       this       clear).        I.e.,
-<code>valarray&lt;valarray&lt;T&gt;  &gt;</code> is  valid as  long as
-<code>T</code>   is   valid.    However,  since   implementations   of
-<code>valarray</code> are permitted to initialize storage allocated by
-the class by  invoking the default ctor of  <code>T</code> followed by
-the    copy    assignment    operator,   such    implementations    of
-<code>valarray</code>   wouldn't  work  with   (perhaps  user-defined)
-specializations of <code>valarray</code> whose assignment operator had
-undefined behavior when the size of its argument didn't match the size
-of <code>*this</code>.  By <i>"wouldn't work"</i> I mean that it would
-be  impossible  to resize  such  an array  of  arrays  by calling  the
-<code>resize()</code> member  function on it if the  function used the
-copy  assignment operator  after constructing  all elements  using the
-default  ctor (e.g.,  by invoking  <code>new  value_type[N]</code>) to
-obtain default-initialized storage) as it's permitted to do.
-
-        </p>
-        <p>
-
-Stated      more     generally,      the      problem     is      that
-<code>valarray&lt;valarray&lt;T&gt;  &gt;::resize(size_t)</code> isn't
-required or  guaranteed to have well-defined semantics  for every type
-<code>T</code>     that      satisfies     all     requirements     in
-26.2 [numeric.requirements].
-
-        </p>
-        <p>
-
-I  believe  this  problem  was  introduced  by  the  adoption  of  the
-resolution                outlined                in                <a
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1996/N0857.asc">N0857</a>,
-<i>Assignment  of  valarrays</i>,  from  1996.   The  copy  assignment
-operator  of  the original  numerical  array  classes  proposed in  <a
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1993/N0280.pdf">N0280</a>,
-as      well       as      the      one       proposed      in      <a
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/1993/N0308.asc">N0308</a>
-(both  from 1993), had  well-defined semantics  for arrays  of unequal
-size (the  latter explicitly  only when <code>*this</code>  was empty;
-assignment of non empty arrays of unequal size was a runtime error).
-
-        </p>
-        <p>
-
-The  justification for  the  change given  in  N0857 was the "loss  of
-performance [deemed]  only significant  for very simple  operations on
-small arrays or for architectures with very few registers."
-
-        </p>
-        <p>
-
-Since tiny  arrays on a  limited subset of hardware  architectures are
-likely  to  be  an   exceedingly  rare  case  (despite  the  continued
-popularity of  x86) I  propose to revert  the resolution and  make the
-behavior    of   all   <code>valarray</code>    assignment   operators
-well-defined even  for non-conformal  arrays (i.e., arrays  of unequal
-size).   I have implemented  this change  and measured  no significant
-degradation  in performance in  the common  case (non-empty  arrays of
-equal size).  I  have measured a 50% (and in  some cases even greater)
-speedup  in the  case of  assignments to  empty arrays  versus calling
-<code>resize()</code>  first followed  by  an invocation  of the  copy
-assignment operator.
-
-        </p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-If no proposed wording by June meeting, this issue should be closed NAD.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Move resolution 1 to Ready.
-</p>
-<p>
-Howard: second resolution has been commented out (made invisible).
-Can be brought back on demand.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-        <p>
-
-Change 26.6.2.3 [valarray.assign], p1 as follows:
-
-        </p>
-        <blockquote>
-            <p>
-                <code>
-
-valarray&lt;T&gt;&amp; operator=(const valarray&lt;T&gt;&amp;<ins> x</ins>);
-
-                </code>
-            </p>
-            <p>
-
--1- Each element of the <code>*this</code> array is assigned the value
-of  the  corresponding  element   of  the  argument  array.   <del>The
-resulting behavior is undefined if </del><ins>When </ins>the length of
-the  argument  array  is  not   equal  to  the  length  of  the  *this
-array<del>.</del><ins>  resizes  <code>*this</code>  to make  the  two
-arrays     the      same     length,     as      if     by     calling
-<code>resize(x.size())</code>, before performing the assignment.</ins>
-
-            </p>
-        </blockquote>
-        <p>
-
-And  add a new  paragraph just  below paragraph  1 with  the following
-text:
-
-        </p>
-        <blockquote>
-            <p>
-
-<ins>-2- <i>Postcondition</i>: <code>size() == x.size()</code>.</ins>
-
-            </p>
-        </blockquote>
-        <p>
-
-Also add the following paragraph to 26.6.2.3 [valarray.assign], immediately after p4:
-
-        </p>
-        <blockquote>
-            <p>
-
-<ins>-?- When the length,  <i><code>N</code></i> of the array referred
-to by the  argument is not equal to  the length of <code>*this</code>,
-the  operator resizes <code>*this</code>  to make  the two  arrays the
-same  length, as if  by calling  <code>resize(<i>N</i>)</code>, before
-performing the assignment.</ins>
-
-            </p>
-        </blockquote>
-
-<p><i>[
-pre-Sophia Antipolis, Martin adds the following compromise wording, but
-prefers the original proposed resolution:
-]</i></p>
-
-
-
-
-
-
-<p><i>[
-Kona (2007): Gaby to propose wording for an alternative resolution in
-which you can assign to a <tt>valarray</tt> of size 0, but not to any other
-<tt>valarray</tt> whose size is unequal to the right hand side of the assignment.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="634"></a>634. <tt>allocator.address()</tt> doesn't work for types overloading <tt>operator&amp;</tt></h3>
-<p><b>Section:</b> 20.7.9.1 [allocator.members] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.members">issues</a> in [allocator.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#350">350</a></p>
-<p><b>Discussion:</b></p>
-
-<p>
-20.7.9.1 [allocator.members] says:
-</p>
-<blockquote>
-<pre>pointer address(reference <i>x</i>) const;</pre>
-<blockquote>
-<p>
--1- <i>Returns:</i> <tt>&amp;<i>x</i></tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-20.7.9.1 [allocator.members] defines <tt>CopyConstructible</tt> which currently not
-only defines the semantics of copy construction, but also restricts what an overloaded
-<tt>operator&amp;</tt> may do.  I believe proposals are in the works (such as concepts
-and rvalue reference) to decouple these two requirements.  Indeed it is not evident
-that we should disallow overloading <tt>operator&amp;</tt> to return something other
-than the address of <tt>*this</tt>.
-</p>
-
-<p>
-An example of when you want to overload <tt>operator&amp;</tt> to return something
-other than the object's address is proxy references such as <tt>vector&lt;bool&gt;</tt>
-(or its replacement, currently code-named <tt>bit_vector</tt>).  Taking the address of
-such a proxy reference should logically yield a proxy pointer, which when dereferenced,
-yields a copy of the original proxy reference again.
-</p>
-
-<p>
-On the other hand, some code truly needs the address of an object, and not a proxy
-(typically for determining the identity of an object compared to a reference object).
-<a href="http://www.boost.org">boost</a> has long recognized this dilemma and solved it with 
-<a href="http://www.boost.org/libs/utility/utility.htm#addressof"><tt>boost::addressof</tt></a>.
-It appears to me that this would be useful functionality for the default allocator.  Adopting
-this definition for <tt>allocator::address</tt> would free the standard of requiring
-anything special from types which overload <tt>operator&amp;</tt>.  Issue <a href="lwg-closed.html#580">580</a>
-is expected to make use of <tt>allocator::address</tt> mandatory for containers.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.7.9.1 [allocator.members]:
-</p>
-
-<blockquote>
-<pre>pointer address(reference <i>x</i>) const;</pre>
-<blockquote>
-<p>
--1- <i>Returns:</i> <del><tt>&amp;<i>x</i></tt>.</del> <ins>The actual address of object referenced by <i>x</i>,
-even in the presence of an overloaded <tt>operator&amp;</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>const_pointer address(address(const_reference <i>x</i>) const;</pre>
-<blockquote>
-<p>
--2- <i>Returns:</i> <del><tt>&amp;<i>x</i></tt>.</del> <ins>The actual address of object referenced by <i>x</i>,
-even in the presence of an overloaded <tt>operator&amp;</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-post Oxford:  This would be rendered NAD Editorial by acceptance of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2257.html">N2257</a>.
-]</i></p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2387 for this issue which
-was subsequently split out into a separate paper N2436 for the purposes of voting.
-The resolution in N2436 addresses this issue.  The LWG voted to accelerate this
-issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="635"></a>635. domain of <tt>allocator::address</tt></h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-02-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The table of allocator requirements in 17.6.3.5 [allocator.requirements] describes
-<tt>allocator::address</tt> as:
-</p>
-<blockquote><pre>
-a.address(r)
-a.address(s)
-</pre></blockquote>
-<p>
-where <tt>r</tt> and <tt>s</tt> are described as:
-</p>
-<blockquote><p>
-a value of type <tt>X::reference</tt> obtained by the expression <tt>*p</tt>. 
-</p></blockquote>
-
-<p>
-and <tt>p</tt> is 
-</p>
-
-<blockquote><p>
-a value of type <tt>X::pointer</tt>, obtained by calling <tt>a1.allocate</tt>, 
-where <tt>a1 == a</tt>
-</p></blockquote>
-
-<p>
-This all implies that to get the address of some value of type <tt>T</tt> that
-value must have been allocated by this allocator or a copy of it.
-</p>
-
-<p>
-However sometimes container code needs to compare the address of an external value of
-type <tt>T</tt> with an internal value.  For example <tt>list::remove(const T&amp; t)</tt>
-may want to compare the address of the external value <tt>t</tt> with that of a value
-stored within the list.  Similarly <tt>vector</tt> or <tt>deque insert</tt> may
-want to make similar comparisons (to check for self-referencing calls).
-</p>
-
-<p>
-Mandating that <tt>allocator::address</tt> can only be called for values which the
-allocator allocated seems overly restrictive.
-</p>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Pablo recommends NAD Editorial, solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2768.pdf">N2768</a>.
-</p></blockquote>
-
-<p><i>[
-2009-04-28 Pablo adds:
-]</i></p>
-
-
-<blockquote><p>
-Tentatively-ready NAD Editorial as fixed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2768.pdf">N2768</a>.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Fixed by N2768.
-</p></blockquote>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.3.5 [allocator.requirements]:
-</p>
-
-<blockquote>
-<p>
-<tt>r</tt> : a value of type <tt>X::reference</tt> <del>obtained by the expression *p</del>.
-</p>
-<p>
-<tt>s</tt> : a value of type <tt>X::const_reference</tt> <del>obtained by the 
-expression <tt>*q</tt> or by conversion from a value <tt>r</tt></del>.
-</p>
-</blockquote>
-
-<p><i>[
-post Oxford:  This would be rendered NAD Editorial by acceptance of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2257.html">N2257</a>.
-]</i></p>
-
-
-<p><i>[
-Kona (2007):  This issue is section 8 of N2387.  There was some discussion of it but
-no resolution to this issue was recorded.  Moved to Open.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="638"></a>638. <tt>deque</tt> end invalidation during erase</h3>
-<p><b>Section:</b> 23.3.3.4 [deque.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Steve LoBasso <b>Opened:</b> 2007-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.modifiers">issues</a> in [deque.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard states at 23.3.3.4 [deque.modifiers]/4:
-</p>
-<blockquote><pre>
-deque erase(...)
-</pre>
- <p>
-<i>Effects:</i> ... An erase at either end of the deque invalidates only
-the iterators and the references to the erased elements.
-</p>
-</blockquote>
-<p>
-This does not state that iterators to end will be invalidated.
-It needs to be amended in such a way as to account for end invalidation.
-</p>
-<p>
-Something like:
-</p>
-<blockquote><p>
-Any time the last element is erased, iterators to end are invalidated.
-</p></blockquote>
-
-<p>
-This would handle situations like:
-</p>
-<blockquote><pre>
-erase(begin(), end())
-erase(end() - 1)
-pop_back()
-resize(n, ...) where n &lt; size()
-pop_front() with size() == 1
-
-</pre></blockquote>
-
-<p><i>[
-Post Kona, Steve LoBasso notes:
-]</i></p>
-
-
-<blockquote><p>
-My only issue with the proposed resolution is that it might not be clear
-that <tt>pop_front()</tt> [where <tt>size() == 1</tt>] can invalidate past-the-end
-iterators.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.3.3.4 [deque.modifiers], p4:
-</p>
-
-<blockquote>
-<pre>
-iterator erase(const_iterator position); 
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<blockquote>
-<p>
--4- <i>Effects:</i> An erase in the middle of the <tt>deque</tt>
-invalidates all the iterators and references to elements of the
-<tt>deque</tt> <ins>and the past-the-end iterator</ins>. An erase at
-either end of the <tt>deque</tt> invalidates only the iterators and the
-references to the erased elements<ins>, except that erasing at the end
-also invalidates the past-the-end iterator</ins>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007): Proposed wording added and moved to Review.
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Note that there is existing code that relies on iterators not being
-invalidated, but there are also existing implementations that do
-invalidate iterators. Thus, such code is not portable in any case. There
-is a <tt>pop_front()</tt> note, which should possibly be a separate issue. Mike
-Spertus to evaluate and, if need be, file an issue.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="640"></a>640. 27.6.2.5.2 does not handle <tt>(unsigned) long long</tt></h3>
-<p><b>Section:</b> 27.7.3.6.2 [ostream.inserters.arithmetic] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ostream.inserters.arithmetic">issues</a> in [ostream.inserters.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The arithmetic inserters are described in 27.7.3.6.2 [ostream.inserters.arithmetic].
-Although the section starts with a listing of the inserters including
-the new ones:
-</p>
-
-<blockquote><pre>
-operator&lt;&lt;(long long val );
-operator&lt;&lt;(unsigned long long val );
-</pre></blockquote>
-
-<p>
-the text in paragraph 1, which describes the corresponding effects
-of the inserters, depending on the actual type of val, does not
-handle the types <tt>long long</tt> and <tt>unsigned long long</tt>.
-</p>
-
-<p><i>[
-Alisdair: In addition to the (unsigned) long long problem, that whole paragraph
-misses any reference to extended integral types supplied by the
-implementation - one of the additions by core a couple of working papers
-back.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.7.3.6.2 [ostream.inserters.arithmetic]/1 change the third sentence
-</p>
-
-<blockquote><p>
-When val is of type <tt>bool</tt>, <tt>long</tt>, <tt>unsigned
-long</tt>, <ins>long long, unsigned long long,</ins> <tt>double</tt>,
-<tt>long double</tt>, or <tt>const void*</tt>, the formatting conversion
-occurs as if it performed the following code fragment:
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="643"></a>643. Impossible "as if" clauses</h3>
-<p><b>Section:</b> 27.9.1.1 [filebuf], 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current standard 14882:2003(E) as well as N2134 have the
-following
-defects:
-</p>
-
-<p>
-27.9.1.1 [filebuf]/5 says:
-</p>
-
-<blockquote>
-<p>
-In order to support file I/O and multibyte/wide character conversion, conversions are performed using members of a 
-facet, referred to as <tt><i>a_codecvt</i></tt> in following sections, obtained "as if" by
-</p>
-<blockquote><pre>
-codecvt&lt;charT,char,typename traits::state_type&gt; <i>a_codecvt</i> =
-  use_facet&lt;codecvt&lt;charT,char,typename traits::state_type&gt; &gt;(getloc());
-</pre></blockquote>
-</blockquote>
-
-<p>
-<tt>use_facet</tt> returns a <tt>const facet</tt> reference and no facet is
-copyconstructible, so the codecvt construction should fail to compile.
-</p>
-
-<p>
-A similar issue arises in 22.4.2.2.2 [facet.num.put.virtuals]/15 for <tt>num_punct</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.9.1.1 [filebuf]/5 change the "as if" code
-</p>
-
-<blockquote><pre>
-<ins>const </ins>codecvt&lt;charT,char,typename traits::state_type&gt;<ins>&amp;</ins> <i>a_codecvt</i> =
-  use_facet&lt;codecvt&lt;charT,char,typename traits::state_type&gt; &gt;(getloc());
-</pre></blockquote>
-
-<p>
-In 22.4.2.2.2 [facet.num.put.virtuals]/15 (This is para 5 in N2134) change
-</p>
-
-<blockquote>
-<p>
-A local variable <tt><i>punct</i></tt> is initialized via
-</p>
-<blockquote><pre>
-<ins>const </ins>numpunct&lt;charT&gt;<ins>&amp;</ins> <i>punct</i> = use_facet&lt; numpunct&lt;charT&gt; &gt;(<i>str</i>.getloc() )<ins>;</ins>
-</pre></blockquote>
-</blockquote>
-
-<p>
-(Please note also the additional provided trailing semicolon)
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="646"></a>646. const incorrect match_result members</h3>
-<p><b>Section:</b> 28.10.5 [re.results.form] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.10.5 [re.results.form] (root and para 3) in N2134 defines the two function template
-members format as non-const functions, although they are declared
-as const in 28.10 [re.results]/3.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the missing <tt>const</tt> specifier to both <tt>format</tt> overloads described
-in section 28.10.5 [re.results.form].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="650"></a>650. regex_token_iterator and const correctness</h3>
-<p><b>Section:</b> 28.12.2 [re.tokiter] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.tokiter">issues</a> in [re.tokiter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Both the class definition of regex_token_iterator (28.12.2 [re.tokiter]/6) and the latter member specifications (28.12.2.2 [re.tokiter.comp]/1+2) declare both comparison operators as
-non-const functions. Furtheron, both dereference operators are
-unexpectedly also declared as non-const in 28.12.2 [re.tokiter]/6
-as well as in (28.12.2.3 [re.tokiter.deref]/1+2).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-1) In (28.12.2 [re.tokiter]/6) change the current declarations
-</p>
-
-<blockquote><pre>
-bool operator==(const regex_token_iterator&amp;) <ins>const</ins>;
-bool operator!=(const regex_token_iterator&amp;) <ins>const</ins>;
-const value_type&amp; operator*() <ins>const</ins>;
-const value_type* operator-&gt;() <ins>const</ins>;
-</pre></blockquote>
-
-<p>
-2) In 28.12.2.2 [re.tokiter.comp] change the following declarations
-</p>
-
-<blockquote><pre>
-bool operator==(const regex_token_iterator&amp; right) <ins>const</ins>;
-bool operator!=(const regex_token_iterator&amp; right) <ins>const</ins>;
-</pre></blockquote>
-
-<p>
-3) In 28.12.2.3 [re.tokiter.deref] change the following declarations
-</p>
-
-<blockquote><pre>
-const value_type&amp; operator*() <ins>const</ins>;
-const value_type* operator-&gt;() <ins>const</ins>;
-</pre></blockquote>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2409 for this issue (which
-is to adopt the proposed wording in this issue).
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="651"></a>651. Missing preconditions for regex_token_iterator c'tors</h3>
-<p><b>Section:</b> 28.12.2.1 [re.tokiter.cnstr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.tokiter.cnstr">issues</a> in [re.tokiter.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The text provided in 28.12.2.1 [re.tokiter.cnstr]/2+3 describes
-the effects of the three non-default constructors of class
-template regex_token_iterator but is does not clarify which values
-are legal values for submatch/submatches. This becomes
-an issue, if one takes 28.12.2 [re.tokiter]/9 into account, which explains
-the notion of a "current match" by saying:
-</p>
-
-<blockquote><p>
-The <i>current match</i> is <tt>(*position).prefix()</tt> if <tt>subs[N]
-== -1</tt>, or <tt>(*position)[subs[N]]</tt> for any other value of
-<tt>subs[N]</tt>.
-</p></blockquote>
-
-<p>
-It's not clear to me, whether other negative values except -1
-are legal arguments or not - it seems they are not.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following precondition paragraph just before the current
-28.12.2.1 [re.tokiter.cnstr]/2:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> Each of the initialization values of <tt>subs</tt> must be <tt>&gt;= -1</tt>.
-</p></blockquote>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2409 for this issue (which
-is to adopt the proposed wording in this issue).
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="652"></a>652. regex_iterator and const correctness</h3>
-<p><b>Section:</b> 28.12.1 [re.regiter] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Both the class definition of regex_iterator (28.12.1 [re.regiter]/1) and the latter member specification (28.12.1.2 [re.regiter.comp]/1+2) declare both comparison operators as
-non-const functions. Furtheron, both dereference operators are
-unexpectedly also declared as non-const in 28.12.1 [re.regiter]/1
-as well as in (28.12.1.3 [re.regiter.deref]/1+2).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-1) In (28.12.1 [re.regiter]/1) change the current declarations
-</p>
-
-<blockquote><pre>
-bool operator==(const regex_iterator&amp;) <ins>const</ins>;
-bool operator!=(const regex_iterator&amp;) <ins>const</ins>;
-const value_type&amp; operator*() <ins>const</ins>;
-const value_type* operator-&gt;() <ins>const</ins>;
-</pre></blockquote>
-
-<p>
-2) In 28.12.1.3 [re.regiter.deref] change the following declarations
-</p>
-
-<blockquote><pre>
-const value_type&amp; operator*() <ins>const</ins>;
-const value_type* operator-&gt;() <ins>const</ins>;
-</pre></blockquote>
-
-<p>
-3) In 28.12.1.2 [re.regiter.comp] change the following declarations
-</p>
-
-<blockquote><pre>
-bool operator==(const regex_iterator&amp; right) <ins>const</ins>;
-bool operator!=(const regex_iterator&amp; right) <ins>const</ins>;
-</pre></blockquote>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2409 for this issue (which
-is to adopt the proposed wording in this issue).
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="654"></a>654. Missing IO roundtrip for random number engines</h3>
-<p><b>Section:</b> 26.5.1.4 [rand.req.eng] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.eng">issues</a> in [rand.req.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 98 and para 5 in 26.5.1.4 [rand.req.eng] specify
-the IO insertion and extraction semantic of random
-number engines. It can be shown, v.i., that the specification
-of the extractor cannot guarantee to fulfill the requirement
-from para 5:
-</p>
-
-<blockquote><p>
-If a textual representation written via os &lt;&lt; x was
-subsequently read via is &gt;&gt; v, then x == v provided that
-there have been no intervening invocations of x or of v.
-</p></blockquote>
-
-<p>
-The problem is, that the extraction process described in
-table 98 misses to specify that it will initially set the
-if.fmtflags to ios_base::dec, see table 104:
-</p>
-
-<blockquote><p>
-dec: converts integer input or generates integer output
-in decimal base
-</p></blockquote>
-
-<p>
-Proof: The following small program demonstrates the violation
-of requirements (exception safety not fulfilled):
-</p>
-
-<blockquote><pre>
-#include &lt;cassert&gt;
-#include &lt;ostream&gt;
-#include &lt;iostream&gt;
-#include &lt;iomanip&gt;
-#include &lt;sstream&gt;
-
-class RanNumEngine {
-  int state;
-public:
-  RanNumEngine() : state(42) {}
-
-  bool operator==(RanNumEngine other) const {
-      return state == other.state;
-  }
-
-  template &lt;typename Ch, typename Tr&gt;
-  friend std::basic_ostream&lt;Ch, Tr&gt;&amp; operator&lt;&lt;(std::basic_ostream&lt;Ch, Tr&gt;&amp; os, RanNumEngine engine) {
-    Ch old = os.fill(os.widen(' ')); // Sets space character
-    std::ios_base::fmtflags f = os.flags();
-    os &lt;&lt; std::dec &lt;&lt; std::left &lt;&lt; engine.state; // Adds ios_base::dec|ios_base::left
-    os.fill(old); // Undo
-    os.flags(f);
-    return os;
-  }
-
-  template &lt;typename Ch, typename Tr&gt;
-  friend std::basic_istream&lt;Ch, Tr&gt;&amp; operator&gt;&gt;(std::basic_istream&lt;Ch, Tr&gt;&amp; is, RanNumEngine&amp; engine) {
-       // Uncomment only for the fix.
-
-    //std::ios_base::fmtflags f = is.flags();
-    //is &gt;&gt; std::dec;
-    is &gt;&gt; engine.state;
-    //is.flags(f);
-    return is;
-  }
-};
-
-int main() {
-    std::stringstream s;
-    s &lt;&lt; std::setfill('#'); // No problem
-        s &lt;&lt; std::oct; // Yikes!
-        // Here starts para 5 requirements:
-    RanNumEngine x;
-    s &lt;&lt; x;
-    RanNumEngine v;
-    s &gt;&gt; v;
-    assert(x == v); // Fails: 42 == 34
-}
-</pre></blockquote>
-
-<p>
-A second, minor issue seems to be, that the insertion
-description from table 98 unnecessarily requires the
-addition of ios_base::fixed (which only influences floating-point
-numbers). Its not entirely clear to me whether the proposed
-standard does require that the state of random number engines
-is stored in integral types or not, but I have the impression
-that this is the indent, see e.g. p. 3
-</p>
-
-<blockquote><p>
-The specification of each random number engine defines the
-size of its state in multiples of the size of its result_type.
-</p></blockquote>
-
-<p>
-If other types than integrals are supported, then I wonder why
-no requirements are specified for the precision of the stream.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="655"></a>655. Signature of generate_canonical not useful</h3>
-<p><b>Section:</b> 26.5.7.2 [rand.util.canonical] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.canonical">issues</a> in [rand.util.canonical].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 26.5.2 [rand.synopsis] we have the declaration
-</p>
-
-<blockquote><pre>
-template&lt;class RealType, class UniformRandomNumberGenerator,
-  size_t bits&gt;
-result_type generate_canonical(UniformRandomNumberGenerator&amp; g);
-</pre></blockquote>
-
-<p>
-Besides the "result_type" issue (already recognized by Bo Persson
-at Sun, 11 Feb 2007 05:26:47 GMT in this group) it's clear, that
-the template parameter order is not reasonably choosen: Obviously
-one always needs to specify all three parameters, although usually
-only two are required, namely the result type RealType and the
-wanted bits, because UniformRandomNumberGenerator can usually
-be deduced.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="658"></a>658. Two unspecified function comparators in [function.objects]</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The header <tt>&lt;functional&gt;</tt> synopsis in 20.9 [function.objects]
-contains the following two free comparison operator templates
-for the <tt>function</tt> class template
-</p>
-
-<blockquote><pre>
-template&lt;class Function1, class Function2&gt;
-void operator==(const function&lt;Function1&gt;&amp;, const function&lt;Function2&gt;&amp;);
-template&lt;class Function1, class Function2&gt;
-void operator!=(const function&lt;Function1&gt;&amp;, const function&lt;Function2&gt;&amp;);
-</pre></blockquote>
-
-<p>
-which are nowhere described. I assume that they are relicts before the
-corresponding two private and undefined member templates in the function
-template (see 20.9.12.2 [func.wrap.func] and  [func.wrap.func.undef]) have been introduced. The original free
-function templates should be removed, because using an undefined entity
-would lead to an ODR violation of the user.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the above mentioned two function templates from
-the header <tt>&lt;functional&gt;</tt> synopsis (20.9 [function.objects])
-</p>
-
-<blockquote><pre>
-<del>template&lt;class Function1, class Function2&gt;
-void operator==(const function&lt;Function1&gt;&amp;, const function&lt;Function2&gt;&amp;);
-template&lt;class Function1, class Function2&gt;
-void operator!=(const function&lt;Function1&gt;&amp;, const function&lt;Function2&gt;&amp;);</del>
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p><p>
-Fixed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2292.html">N2292</a>
-Standard Library Applications for Deleted Functions.
-</p>
-
-
-
-
-<hr>
-<h3><a name="659"></a>659. <tt>istreambuf_iterator</tt> should have an <tt>operator-&gt;()</tt></h3>
-<p><b>Section:</b> 24.6.3 [istreambuf.iterator] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2007-03-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istreambuf.iterator">issues</a> in [istreambuf.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Greg Herlihy has clearly demonstrated that a user defined input
-iterator should have an <tt>operator-&gt;()</tt>, even if its
-value type is a built-in type (comp.std.c++, "Re: Should any iterator
-have an <tt>operator-&gt;()</tt> in C++0x?", March 2007).  And as Howard
-Hinnant remarked in the same thread that the input iterator
-<tt>istreambuf_iterator</tt> doesn't have one, this must be a
-defect!
-</p>
-<p>
-Based on Greg's example, the following code demonstrates the issue:
-</p><pre>
- #include &lt;iostream&gt; 
- #include &lt;fstream&gt;
- #include &lt;streambuf&gt; 
-
- typedef char C;
- int main ()
- {
-   std::ifstream s("filename", std::ios::in);
-   std::istreambuf_iterator&lt;char&gt; i(s);
-
-   (*i).~C();  // This is well-formed...
-   i-&gt;~C();  // ... so this should be supported!
- }
-</pre>
-<p>
-Of course, <tt>operator-&gt;</tt> is also needed when the <tt>value_type</tt> of
-<tt>istreambuf_iterator</tt> is a class.
-</p>
-<p>
-The <tt>operator-&gt;</tt> could be implemented in various ways.  For instance,
-by storing the current value inside the iterator, and returning its
-address.  Or by returning a proxy, like <tt>operator_arrow_proxy</tt>, from
-<a href="http://www.boost.org/boost/iterator/iterator_facade.hpp">http://www.boost.org/boost/iterator/iterator_facade.hpp</a>
-</p>
-<p>
-I hope that the resolution of this issue will contribute to getting a
-clear and consistent definition of iterator concepts.
-</p>
-
-<p><i>[
-Kona (2007): The proposed resolution is inconsistent because the return
-type of <tt>istreambuf_iterator::operator-&gt;()</tt> is specified to be <tt>pointer</tt>,
-but the proposed text also states that "<tt>operator-&gt;</tt> may return a proxy."
-]</i></p>
-
-
-<p><i>[
-Niels Dekker (mailed to Howard Hinnant):
-]</i></p>
-
-<blockquote>
-<p>
-The proposed resolution does
-not seem inconsistent to me. <tt>istreambuf_iterator::operator-&gt;()</tt> should
-have <tt>istreambuf_iterator::pointer</tt> as return type, and this return type
-may in fact be a proxy.
-</p>
-<p>
-AFAIK, the resolution of <a href="lwg-defects.html#445">445</a> ("<tt>iterator_traits::reference</tt>
-unspecified for some iterator categories") implies that for any iterator
-class <tt>Iter</tt>, the return type of <tt>operator-&gt;()</tt> is <tt>Iter::pointer</tt>, by
-definition.  I don't think <tt>Iter::pointer</tt> needs to be a raw pointer.
-</p>
-<p>
-Still I wouldn't mind if the text "<tt>operator-&gt;</tt> may return a proxy" would
-be removed from the resolution. I think it's up to the library
-implementation, how to implement <tt>istreambuf_iterator::operator-&gt;()</tt>.  As
-longs as it behaves as expected: <tt>i-&gt;m</tt> should have the same effect as
-<tt>(*i).m</tt>. Even for an explicit destructor call, <tt>i-&gt;~C()</tt>.  The main issue
-is just: <tt>istreambuf_iterator</tt> should have an <tt>operator-&gt;()</tt>!
-</p>
-</blockquote>
-
-<p><i>[
-2009-04-30 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Note that <tt>operator-&gt;</tt> is now a requirement in the <tt>InputIterator</tt> concept, so
-this issue cannot be ignored or existing valid programs will break when
-compiled with an 0x library.
-</p></blockquote>
-
-<p><i>[
-2009-05-29 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I agree with the observation that in principle the type 'pointer' may be a
-proxy, and the words highlighting this are redundant.
-</p>
-<p>
-However, in the current draught <tt>pointer</tt> is required to be exactly '<tt>charT *</tt>'
-by the derivation from <tt>std::iterator</tt>.  At a minimum, the 4th parameter of
-this base class template should become unspecified.  That permits the
-introduction of a proxy as a nested class in some further undocumented (not
-even exposition-only) base.
-</p>
-<p>
-It also permits the <tt>istream_iterator</tt> approach where the cached value is
-stored in the iterator itself, and the iterator serves as its own proxy for
-post-increment <tt>operator++</tt> - removing the need for the existing
-exposition-only nested class <tt>proxy</tt>.
-</p>
-<p>
-Note that the current <tt>proxy</tt> class also has exactly the right properties to
-serve as the pointer <tt>proxy</tt> too.  This is likely to be a common case where an
-<tt>InputIterator</tt> does not hold internal state but delegates to another class.
-</p>
-<p>
-Proposed Resolution:
-</p>
-<p>
-In addition to the current proposal:
-</p>
-<p>
-24.6.3 [istreambuf.iterator]
-</p>
-<blockquote><pre>
-template&lt;class charT, class traits = char_traits&lt;charT&gt; &gt;
-class istreambuf_iterator
-  : public iterator&lt;input_iterator_tag, charT,
-                    typename traits::off_type, <del>charT*</del> <ins><i>unspecified</i></ins>, charT&gt; {
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Move the additional part into the proposed resolution, and wrap the
-descriptive text in a Note.
-</p>
-<p><i>[Howard: done.]</i></p>
-
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the synopsis in 24.6.3 [istreambuf.iterator]:
-</p>
-
-<blockquote><pre>
-charT operator*() const;
-<ins>pointer operator-&gt;() const;</ins>
-istreambuf_iterator&lt;charT,traits&gt;&amp; operator++();
-</pre></blockquote>
-
-<p>
-24.6.3 [istreambuf.iterator]
-</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits = char_traits&lt;charT&gt; &gt;
-class istreambuf_iterator
-  : public iterator&lt;input_iterator_tag, charT,
-                    typename traits::off_type, <del>charT*</del> <ins><i>unspecified</i></ins>, charT&gt; {
-</pre></blockquote>
-
-<p>
-Change 24.6.3 [istreambuf.iterator], p1:
-</p>
-
-<blockquote><p>
-The class template <tt>istreambuf_iterator</tt> reads successive
-characters from the <tt>streambuf</tt> for which it was constructed.
-<tt>operator*</tt> provides access to the current input character, if
-any. <ins>[<i>Note:</i> <tt>operator-&gt;</tt> may return a proxy. &mdash;
-<i>end note</i>]</ins> Each time
-<tt>operator++</tt> is evaluated, the iterator advances to the next
-input character. If the end of stream is reached
-(<tt>streambuf_type::sgetc()</tt> returns <tt>traits::eof()</tt>), the
-iterator becomes equal to the end of stream iterator value. The default
-constructor <tt>istreambuf_iterator()</tt> and the constructor
-<tt>istreambuf_iterator(0)</tt> both construct an end of stream iterator
-object suitable for use as an end-of-range.
-</p></blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="660"></a>660. Missing Bitwise Operations</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2007-04-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Section 20.9 [function.objects] provides <em>function objects</em> for some unary and binary 
-operations, but others are missing. In a LWG reflector discussion, beginning 
-with c++std-lib-18078, pros and cons of adding some of the missing operations 
-were discussed. Bjarne Stroustrup commented &quot;Why standardize what isn't used? 
-Yes, I see the chicken and egg problems here, but it would be nice to see a 
-couple of genuine uses before making additions.&quot;</p>
-<p>A number of libraries, including Rogue Wave, GNU, Adobe ASL, and Boost, have 
-already added these functions, either publicly or for internal use. For example, 
-Doug Gregor commented: &quot;Boost will also add ... (|, &amp;, ^) in 1.35.0, because we 
-need those <em>function objects</em> to represent various parallel 
-collective operations (reductions, prefix reductions, etc.) in the new Message 
-Passing Interface (MPI) library.&quot;</p>
-<p>Because the bitwise operators have the strongest use cases, the proposed 
-resolution is limited to them.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>To 20.9 [function.objects], Function objects, paragraph 2, add to the header 
-&lt;functional&gt; synopsis:</p>
-<blockquote>
-  <pre>template &lt;class T&gt; struct bit_and;
-template &lt;class T&gt; struct bit_or;
-template &lt;class T&gt; struct bit_xor;</pre>
-</blockquote>
-<p>At a location in clause 20 to be determined by the Project Editor, add:</p>
-<blockquote>
-  <p>The library provides basic function object classes for all of the bitwise 
-  operators in the language ([expr.bit.and], [expr.or], [exp.xor]).</p>
-  <pre>template &lt;class T&gt; struct bit_and : binary_function&lt;T,T,T&gt; {
-  T operator()(const T&amp; x , const T&amp; y ) const;
-};</pre>
-  <blockquote>
-    <p><code>operator()</code> returns<code> x &amp; y</code> .</p>
-  </blockquote>
-  <pre>template &lt;class T&gt; struct bit_or : binary_function&lt;T,T,T&gt; {
-  T operator()(const T&amp; x , const T&amp; y ) const;
-};</pre>
-  <blockquote>
-    <p><code>operator()</code> returns <code>x | y</code> .</p>
-  </blockquote>
-  <pre>template &lt;class T&gt; struct bit_xor : binary_function&lt;T,T,T&gt; {
-  T operator()(const T&amp; x , const T&amp; y ) const;
-};</pre>
-  <blockquote>
-    <p><code>operator()</code> returns <code>x ^ y</code> .</p>
-  </blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="661"></a>661. New 27.6.1.2.2 changes make special extractions useless</h3>
-<p><b>Section:</b> 27.7.2.2.2 [istream.formatted.arithmetic] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-04-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.arithmetic">issues</a> in [istream.formatted.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-To the more drastic changes of 27.7.2.2.2 [istream.formatted.arithmetic] in the current draft N2134 belong
-the explicit description of the extraction of the types short and int in
-terms of as-if code fragments.
-</p>
-
-<ol>
-<li>
-The corresponding as-if extractions in paragraph 2 and 3 will never
-result in a change of the operator&gt;&gt; argument val, because the
-contents of the local variable lval is in no case written into val.
-Furtheron both fragments need a currently missing parentheses in the
-beginning of the if-statement to be valid C++.
-</li>
-<li>
-I would like to ask whether the omission of a similar explicit
-extraction of unsigned short and unsigned int in terms of long -
-compared to their corresponding new insertions, as described in 27.7.3.6.2 [ostream.inserters.arithmetic], is a deliberate decision or an
-oversight.
-</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 27.7.2.2.2 [istream.formatted.arithmetic]/2 change the current as-if code fragment
-</p>
-<blockquote><pre>
-typedef num_get&lt;charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-iostate err = 0;
-long lval;
-use_facet&lt;numget&gt;(loc).get(*this, 0, *this, err, lval );
-if (err == 0) <ins>{</ins>
-  <del>&amp;&amp;</del> <ins>if</ins> (lval &lt; numeric_limits&lt;short&gt;::min() || numeric_limits&lt;short&gt;::max() &lt; lval)<del>)</del>
-      err = ios_base::failbit;
-  <ins>else
-    val = static_cast&lt;short&gt;(lval);
-}</ins>
-setstate(err);
-</pre></blockquote>
-
-<p>
-Similarily in 27.7.2.2.2 [istream.formatted.arithmetic]/3 change the current as-if fragment
-</p>
-
-<blockquote><pre>
-typedef num_get&lt;charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-iostate err = 0;
-long lval;
-use_facet&lt;numget&gt;(loc).get(*this, 0, *this, err, lval );
-if (err == 0) <ins>{</ins>
-  <del>&amp;&amp;</del> <ins>if</ins> (lval &lt; numeric_limits&lt;int&gt;::min() || numeric_limits&lt;int&gt;::max() &lt; lval)<del>)</del>
-      err = ios_base::failbit;
-  <ins>else
-    val = static_cast&lt;int&gt;(lval);
-}</ins>
-setstate(err);
-</pre></blockquote>
-</li>
-<li>
----
-</li>
-</ol>
-
-
-<p><i>[
-Kona (2007): Note to the editor: the name lval in the call to <tt>use_facet</tt>
-is incorrectly italicized in the code fragments corresponding to
-<tt>operator&gt;&gt;(short &amp;)</tt> and <tt>operator &gt;&gt;(int &amp;)</tt>. Also, val -- which appears
-twice on the line with the <tt>static_cast</tt> in the proposed resolution --
-should be italicized. Also, in response to part two of the issue: this
-is deliberate.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="664"></a>664. <tt>do_unshift</tt> for <tt>codecvt&lt;char, char, mbstate_t&gt;</tt></h3>
-<p><b>Section:</b> 22.4.1.4.2 [locale.codecvt.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.virtuals">issues</a> in [locale.codecvt.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.1.4.2 [locale.codecvt.virtuals], para 7 says (regarding <tt>do_unshift</tt>):
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Places characters starting at to that should be appended to
-terminate a sequence when the current <tt>stateT</tt> is given by
-<tt><i>state</i></tt>.<sup>237)</sup> Stores no more than <tt>(<i>to_limit</i> -
-<i>to</i>)</tt> destination elements, and leaves the <tt><i>to_next</i></tt>
-pointer pointing one beyond the last element successfully stored.
-<em><tt>codecvt&lt;char, char, mbstate_t&gt;</tt> stores no characters.</em>
-</p></blockquote>
-
-<p>
-The following objection has been raised:
-</p>
-
-<blockquote><p>
-Since the C++ Standard permits a nontrivial conversion for the required
-instantiations of <tt>codecvt</tt>, it is overly restrictive to say that
-<tt>do_unshift</tt> must store no characters and return <tt>noconv</tt>.
-</p></blockquote>
-
-<p>
-[Plum ref _222152Y50]
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.4.1.4.2 [locale.codecvt.virtuals], p7:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> Places characters starting at <i>to</i> that should be
-appended to terminate a sequence when the current <tt>stateT</tt> is
-given by state.<sup>237)</sup> Stores no more than (<i>to_limit -to</i>)
-destination elements, and leaves the <i>to_next</i> pointer pointing one
-beyond the last element successfully stored. <del><tt>codecvt&lt;char, char,
-mbstate_t&gt;</tt> stores no characters.</del>
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="665"></a>665. <tt>do_unshift</tt> return value</h3>
-<p><b>Section:</b> 22.4.1.4.2 [locale.codecvt.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.codecvt.virtuals">issues</a> in [locale.codecvt.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.1.4.2 [locale.codecvt.virtuals], para 8 says:
-</p>
-
-<blockquote><p>
-<tt>codecvt&lt;char,char,mbstate_t&gt;</tt>, returns <tt>noconv</tt>.
-</p></blockquote>
-
-<p>
-The following objection has been raised:
-</p>
-
-<blockquote><p>
-Despite what the C++ Standard 
-says, <tt>unshift</tt> can't always return <tt>noconv</tt> for the default facets, since 
-they can be nontrivial. At least one implementation does whatever the 
-C functions do.
-</p></blockquote>
-
-<p>
-[Plum ref _222152Y62]
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.4.1.4.2 [locale.codecvt.virtuals], p8:
-</p>
-
-<blockquote>
-<p><i>Returns:</i> An enumeration value, as summarized in Table 76:</p>
-<p>...</p>
-<p>
-<del><tt>codecvt&lt;char,char,mbstate_t&gt;</tt>, returns <tt>noconv</tt>.</del>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="666"></a>666. <tt>moneypunct::do_curr_symbol()</tt></h3>
-<p><b>Section:</b> 22.4.6.3.2 [locale.moneypunct.virtuals] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2007-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.moneypunct.virtuals">issues</a> in [locale.moneypunct.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-22.4.6.3.2 [locale.moneypunct.virtuals], para 4 footnote 257 says
-</p>
-
-<blockquote><p>
-<sup>257)</sup> For international 
-specializations (second template parameter <tt>true</tt>) this is always four 
-characters long, usually three letters and a space.
-</p></blockquote>
-
-<p>
-The following objection has been raised:
-</p>
-
-<blockquote><p>
-The international currency 
-symbol is whatever the underlying locale says it is, not necessarily 
-four characters long.
-</p></blockquote>
-
-<p>
-[Plum ref _222632Y41]
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change footnote 253 in 22.4.6.3.2 [locale.moneypunct.virtuals]:
-</p>
-
-<blockquote>
-<p>
-<sup>253)</sup> For international specializations (second template
-parameter <tt>true</tt>) this is <del>always</del> <ins>typically</ins>
-four characters long, usually three letters and a space.
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="671"></a>671. precision of <tt>hexfloat</tt></h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> John Salmon <b>Opened:</b> 2007-04-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I am trying to understand how TR1 supports hex float (%a) output.
-</p>
-<p>
-As far as I can tell, it does so via the following:
-</p>
-<p>
-8.15 Additions to header <tt>&lt;locale&gt;</tt> [tr.c99.locale]
-</p>
-<p>
-In subclause 22.4.2.2.2 [facet.num.put.virtuals], Table 58 Floating-point conversions, after
-the line:<br/>
-<tt>floatfield == ios_base::scientific %E</tt>
-</p>
-<p>
-add the two lines:
-</p>
-<blockquote><pre>
-floatfield == ios_base::fixed | ios_base::scientific &amp;&amp; !uppercase %a
-floatfield == ios_base::fixed | ios_base::scientific %A 2
-</pre></blockquote>
-<p>
-[Note: The additional requirements on print and scan functions, later
-in this clause, ensure that the print functions generate hexadecimal
-floating-point fields with a %a or %A conversion specifier, and that
-the scan functions match hexadecimal floating-point fields with a %g
-conversion specifier.  end note]
-</p>
-<p>
-Following the thread, in 22.4.2.2.2 [facet.num.put.virtuals], we find:
-</p>
-<p>
-For conversion from a floating-point type, if <tt>(flags &amp; fixed) != 0</tt> or
-if <tt>str.precision() &gt; 0</tt>, then <tt>str.precision()</tt> is specified in the
-conversion specification.
-</p>
-<p>
-This would seem to imply that when <tt>floatfield == fixed|scientific</tt>, the
-precision of the conversion specifier is to be taken from
-<tt>str.precision()</tt>.  Is this really what's intended?  I sincerely hope
-that I'm either missing something or this is an oversight.  Please
-tell me that the committee did not intend to mandate that hex floats
-(and doubles) should by default be printed as if by %.6a.
-</p>
-
-<p><i>[
-Howard: I think the fundamental issue we overlooked was that with %f,
-%e, %g, the default precision was always 6.  With %a the default
-precision is not 6, it is infinity.  So for the first time, we need to
-distinguish between the default value of precision, and the precision
-value 6.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Leave this open for Robert and Daniel to work on.
-</p>
-<p>
-Straw poll: Disposition?
-</p>
-<ul>
-<li>Default is %.6a (i.e. NAD): 2</li>
-<li>Always %a (no precision): 6</li>
-<li>precision(-1) == %a: 3</li>
-</ul>
-<p>
-Daniel and Robert have direction to write up wording for the "always %a" solution.
-</p>
-
-<p><i>[
-2009-07-15 Robert provided wording.
-]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.4.2.2.2 [facet.num.put.virtuals], Stage 1, under p5 (near the end
-of Stage 1):
-</p>
-
-<blockquote><p>
-For conversion from a floating-point type, <tt>str.precision()</tt> is specified
-<ins>as precision</ins> in the conversion specification
-<ins>if <tt>floatfield != (ios_base::fixed | ios_base::scientific)</tt>, else no
-precision is specified</ins>.
-</p></blockquote>
-
-
-
-<p><i>[
-Kona (2007): Robert volunteers to propose wording.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="672"></a>672. Swappable requirements need updating</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current <tt>Swappable</tt> is:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 37: <tt>Swappable</tt> requirements <b>[swappable]</b></caption>
-<tr><th>expression</th><th>return type</th><th>post-condition</th></tr>
-<tr><td><tt>swap(s,t)</tt></td><td><tt>void</tt></td><td><tt>t</tt> has the value originally held by <tt>u</tt>, and <tt>u</tt> has the value originally 
-held by <tt>t</tt></td></tr>
-<tr><td colspan="3">
-<p>
-The Swappable requirement is met by satisfying one or more of the following conditions:
-</p>
-<ul>
-<li>
-<tt>T</tt> is Swappable if <tt>T</tt> satisfies the <tt>CopyConstructible</tt> requirements (Table 34) 
-and the <tt>CopyAssignable</tt> requirements (Table 36);
-</li>
-<li>
-<tt>T</tt> is Swappable if a namespace scope function named <tt>swap</tt> exists in the same 
-namespace as the definition of <tt>T</tt>, such that the expression <tt>swap(t,u)</tt> is valid 
-and has the semantics described in this table.
-</li>
-</ul>
-</td></tr>
-</table>
-</blockquote>
-
-<p>
-With the passage of rvalue reference into the language, <tt>Swappable</tt> needs to be updated to
-require only <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.  This is a minimum.
-</p>
-
-<p>
-Additionally we may want to support proxy references such that the following code is acceptable:
-</p>
-
-<blockquote><pre>
-namespace Mine {
-
-template &lt;class T&gt;
-struct proxy {...};
-
-template &lt;class T&gt;
-struct proxied_iterator
-{
-   typedef T value_type;
-   typedef proxy&lt;T&gt; reference;
-   reference operator*() const;
-   ...
-};
-
-struct A
-{
-   // heavy type, has an optimized swap, maybe isn't even copyable or movable, just swappable
-   void swap(A&amp;);
-   ...
-};
-
-void swap(A&amp;, A&amp;);
-void swap(proxy&lt;A&gt;, A&amp;);
-void swap(A&amp;, proxy&lt;A&gt;);
-void swap(proxy&lt;A&gt;, proxy&lt;A&gt;);
-
-}  // Mine
-
-...
-
-Mine::proxied_iterator&lt;Mine::A&gt; i(...)
-Mine::A a;
-swap(*i1, a);
-</pre></blockquote>
-
-<p>
-I.e. here is a call to <tt>swap</tt> which the user enables swapping between a proxy to a class and the class
-itself.  We do not need to anything in terms of implementation except not block their way with overly
-constrained concepts.  That is, the <tt>Swappable</tt> concept should be expanded to allow swapping
-between two different types for the case that one is binding to a user-defined <tt>swap</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 17.6.3.1 [utility.arg.requirements]:
-</p>
-
-<blockquote>
-
-<p>
--1- The template definitions in the C++ Standard Library refer to various
-named requirements whose details are set out in tables 31-38. In these
-tables, <tt>T</tt> is a type to be supplied by a C++ program
-instantiating a template; <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are
-values of type <tt>const T</tt>; <tt>s</tt> and <tt>t</tt> are modifiable
-lvalues of type <tt>T</tt>; <tt>u</tt> is a value of type (possibly
-<tt>const</tt>) <tt>T</tt>; and <tt>rv</tt> is a non-<tt>const</tt>
-rvalue of type <tt>T</tt>.
-</p>
-
-<table border="1">
-<caption>Table 37: <tt>Swappable</tt> requirements <b>[swappable]</b></caption>
-<tr><th>expression</th><th>return type</th><th>post-condition</th></tr>
-<tr><td><tt>swap(s,t)</tt></td><td><tt>void</tt></td>
-<td><tt>t</tt> has the value originally
-held by <tt>u</tt>, and
-<tt>u</tt> has the value originally held
-by <tt>t</tt></td></tr>
-<tr><td colspan="3">
-<p>
-The <tt>Swappable</tt> requirement is met by satisfying one or more of the following conditions:
-</p>
-<ul>
-<li>
-<tt>T</tt> is <tt>Swappable</tt> if <tt>T</tt> satisfies the
-<del><tt>CopyConstructible</tt></del> <ins>MoveConstructible</ins>
-requirements (Table <del>34</del> <ins>33</ins>) and the <del><tt>CopyAssignable</tt></del> <ins>MoveAssignable</ins>
-requirements (Table <del>36</del> <ins>35</ins>);
-</li>
-<li>
-<tt>T</tt> is <tt>Swappable</tt> if a namespace scope function named
-<tt>swap</tt> exists in the same namespace as the definition of
-<tt>T</tt>, such that the expression
-<tt>swap(t,u)</tt> is valid and has the
-semantics described in this table.
-</li>
-</ul>
-</td></tr>
-</table>
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007): We like the change to the <tt>Swappable</tt> requirements to use
-move semantics. The issue relating to the support of proxies is
-separable from the one relating to move semantics, and it's bigger than
-just swap. We'd like to address only the move semantics changes under
-this issue, and open a separated issue (<a href="lwg-defects.html#742">742</a>) to handle proxies. Also, there
-may be a third issue, in that the current definition of <tt>Swappable</tt> does
-not permit rvalues to be operands to a swap operation, and Howard's
-proposed resolution would allow the right-most operand to be an rvalue,
-but it would not allow the left-most operand to be an rvalue (some swap
-functions in the library have been overloaded to permit left operands to
-swap to be rvalues).
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="673"></a>673. <tt>unique_ptr</tt> update</h3>
-<p><b>Section:</b> 20.8.1 [unique.ptr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr">issues</a> in [unique.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Since the publication of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html">N1856</a>
-there have been a few small but significant advances which should be included into
-<tt>unique_ptr</tt>.  There exists a
-<a href="http://home.roadrunner.com/~hinnant/unique_ptr.hpp">example implementation</a>
-for all of these changes.
-</p>
-
-<ul>
-
-<li>
-<p>
-Even though <tt>unique_ptr&lt;void&gt;</tt> is not a valid use case (unlike for <tt>shared_ptr&lt;void&gt;</tt>),
-unexpected cases to crop up which require the instantiation of the interface of <tt>unique_ptr&lt;void&gt;</tt>
-even if it is never used.  For example see <a href="lwg-defects.html#541">541</a> for how this accidently happened to <tt>auto_ptr</tt>.  
-I believe the most robust way to protect <tt>unique_ptr</tt> against this
-type of failure is to augment the return type of <tt>unique_ptr&lt;T&gt;:operator*()</tt> with
-<tt>add_lvalue_reference&lt;T&gt;::type</tt>.  This means that given an instantiated <tt>unique_ptr&lt;void&gt;</tt>
-the act of dereferencing it will simply return <tt>void</tt> instead of causing a compile time failure.
-This is simpler than creating a <tt>unique_ptr&lt;void&gt;</tt> specialization which isn't robust in the
-face of <tt><i>cv-</i></tt>qualified <tt>void</tt> types.
-</p>
-
-<p>
-This resolution also supports instantiations such as <tt>unique_ptr&lt;void, free_deleter&gt;</tt>
-which could be very useful to the client.
-</p>
-
-</li>
-
-<li>
-<p>
-Efforts have been made to better support containers and smart pointers in shared
-memory contexts.  One of the key hurdles in such support is not assuming that a
-pointer type is actually a <tt>T*</tt>.  This can easily be accomplished
-for <tt>unique_ptr</tt> by having the deleter define the pointer type:
-<tt>D::pointer</tt>.  Furthermore this type can easily be defaulted to
-<tt>T*</tt> should the deleter <tt>D</tt> choose not to define a pointer
-type (example implementation
-<a href="http://home.roadrunner.com/~hinnant/unique_ptr.hpp">here</a>).
-This change has no run time overhead.  It has no interface overhead on
-authors of custom delter types.  It simply allows (but not requires)
-authors of custom deleter types to define a smart pointer for the
-storage type of <tt>unique_ptr</tt> if they find such functionality
-useful.  <tt>std::default_delete</tt> is an example of a deleter which
-defaults <tt>pointer</tt> to <tt>T*</tt> by simply ignoring this issue
-and not including a <tt>pointer typedef</tt>.
-</p>
-</li>
-
-<li>
-<p>
-When the deleter type is a function pointer then it is unsafe to construct
-a <tt>unique_ptr</tt> without specifying the function pointer in the constructor.
-This case is easy to check for with a <tt>static_assert</tt> assuring that the
-deleter is not a pointer type in those constructors which do not accept deleters.
-</p>
-
-<blockquote><pre>
-unique_ptr&lt;A, void(*)(void*)&gt; p(new A);  // error, no function given to delete the pointer!
-</pre></blockquote>
-
-</li>
-
-</ul>
-
-<p><i>[
-Kona (2007): We don't like the solution given to the first bullet in
-light of concepts. The second bullet solves the problem of supporting
-fancy pointers for one library component only. The full LWG needs to
-decide whether to solve the problem of supporting fancy pointers
-piecemeal, or whether a paper addressing the whole library is needed. We
-think that the third bullet is correct.
-]</i></p>
-
-
-<p><i>[
-Post Kona: Howard adds example user code related to the first bullet:
-]</i></p>
-
-
-<blockquote>
-<pre>
-void legacy_code(void*, std::size_t);
-
-void foo(std::size_t N)
-{
-    std::unique_ptr&lt;void, void(*)(void*)&gt; ptr(std::malloc(N), std::free);
-    legacy_code(ptr.get(), N);
-}   // unique_ptr used for exception safety purposes
-</pre>
-</blockquote>
-
-<p>
-I.e. <tt>unique_ptr&lt;void&gt;</tt> <i>is</i> a useful tool that we don't want
-to disable with concepts.  The only part of <tt>unique_ptr&lt;void&gt;</tt> we
-want to disable (with concepts or by other means) are the two member functions:
-</p>
-
-<blockquote><pre>
-T&amp; operator*() const;
-T* operator-&gt;() const;
-</pre></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[
-I am grateful for the generous aid of Peter Dimov and Ion Gazta&ntilde;aga in helping formulate and review
-the proposed resolutions below.
-]</i></p>
-
-
-<ul>
-<li>
-
-<p>
-Change 20.8.1.2 [unique.ptr.single]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class D = default_delete&lt;T&gt;&gt; class unique_ptr {
-   ...
-   <del>T&amp;</del> <ins>typename add_lvalue_reference&lt;T&gt;::type</ins> operator*() const;
-   ...
-};
-</pre></blockquote>
-
-<p>
-Change 20.8.1.2.4 [unique.ptr.single.observers]:
-</p>
-
-<blockquote><pre>
-<del>T&amp;</del> <ins>typename add_lvalue_reference&lt;T&gt;::type</ins> operator*() const;
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.1.2 [unique.ptr.single]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class D = default_delete&lt;T&gt;&gt; class unique_ptr {
-public:
-  <ins>typedef <i>implementation (see description below)</i> pointer;</ins>
-   ...
-   explicit unique_ptr(<del>T*</del> <ins>pointer</ins> p);
-   ...
-   unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined (see description below)</i> d);
-   unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined (see description below)</i> d);
-   ...
-   <del>T*</del> <ins>pointer</ins> operator-&gt;() const;
-   <del>T*</del> <ins>pointer</ins> get() const;
-   ...
-   <del>T*</del> <ins>pointer</ins> release();
-   void reset(<del>T*</del> <ins>pointer</ins> p = <del>0</del> <ins>pointer()</ins>);
-};
-</pre></blockquote>
-
-<p>
-<ins>
--3- If the type <tt>remove_reference&lt;D&gt;::type::pointer</tt>
-exists, then <tt>unique_ptr&lt;T, D&gt;::pointer</tt> is a typedef to
-<tt>remove_reference&lt;D&gt;::type::pointer</tt>.  Otherwise
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt> is a typedef to <tt>T*</tt>.
-The type <tt>unique_ptr&lt;T, D&gt;::pointer</tt> shall be <tt>CopyConstructible</tt>
-and <tt>CopyAssignable</tt>.
-</ins>
-</p>
-
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor]:
-</p>
-
-<blockquote><pre>
-unique_ptr(<del>T*</del> <ins>pointer</ins> p);
-...
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined</i> d); 
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined</i> d); 
-...
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, const A&amp; d);
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, A&amp;&amp; d);
-...
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, A&amp; d); 
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, A&amp;&amp; d);
-...
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, const A&amp; d); 
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, const A&amp;&amp; d);
-...
-</pre></blockquote>
-
-<p>
--23- <i>Requires:</i> If <tt>D</tt> is not a reference type,
-construction of the deleter <tt>D</tt> from an rvalue of type <tt>E</tt>
-<del>must</del> <ins>shall</ins> be well formed and not throw an exception. If <tt>D</tt> is a
-reference type, then <tt>E</tt> <del>must</del> <ins>shall</ins> be the same type as <tt>D</tt>
-(diagnostic required). <del><tt>U*</tt></del> <ins><tt>unique_ptr&lt;U,E&gt;::pointer</tt></ins>
-<del>must</del> <ins>shall</ins> be implicitly convertible to <del><tt>T*</tt></del>
-<ins>pointer</ins>.
-</p>
-
-<p>
--25- <i>Postconditions:</i> <tt>get() == value u.get()</tt> had before
-the construction, modulo any required offset adjustments resulting from
-the cast from <del><tt>U*</tt></del>
-<ins><tt>unique_ptr&lt;U,E&gt;::pointer</tt></ins> to <del><tt>T*</tt></del>
-<ins>pointer</ins>. <tt>get_deleter()</tt> returns a reference to the
-internally stored deleter which was constructed from
-<tt>u.get_deleter()</tt>.
-</p>
-
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn]:
-</p>
-
-<blockquote>
-<p>
--8- <i>Requires:</i> Assignment of the deleter <tt>D</tt> from an rvalue
-<tt>D</tt> <del>must</del> <ins>shall</ins> not throw an exception. <del><tt>U*</tt></del>
-<ins><tt>unique_ptr&lt;U,E&gt;::pointer</tt></ins> <del>must</del> <ins>shall</ins> be implicitly
-convertible to <del><tt>T*</tt></del> <ins>pointer</ins>.
-</p>
-</blockquote>
-
-<p>
-Change 20.8.1.2.4 [unique.ptr.single.observers]:
-</p>
-
-<blockquote>
-<pre><del>T*</del> <ins>pointer</ins> operator->() const;</pre>
-<p>...</p>
-<pre><del>T*</del> <ins>pointer</ins> get() const;</pre>
-</blockquote>
-
-<p>
-Change 20.8.1.2.5 [unique.ptr.single.modifiers]:
-</p>
-
-<blockquote>
-<pre><del>T*</del> <ins>pointer</ins> release();</pre>
-<p>...</p>
-<pre>void reset(<del>T*</del> <ins>pointer</ins> p = <del>0</del> <ins>pointer()</ins>);</pre>
-</blockquote>
-
-<p>
-Change 20.8.1.3 [unique.ptr.runtime]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class D&gt; class unique_ptr&lt;T[], D&gt; {
-public:
-  <ins>typedef <i>implementation</i> pointer;</ins>
-   ...
-   explicit unique_ptr(<del>T*</del> <ins>pointer</ins> p);
-   ...
-   unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined</i> d);
-   unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined</i> d);
-   ...
-   <del>T*</del> <ins>pointer</ins> get() const;
-   ...
-   <del>T*</del> <ins>pointer</ins> release();
-   void reset(<del>T*</del> <ins>pointer</ins> p = <del>0</del> <ins>pointer()</ins>);
-};
-</pre></blockquote>
-
-<p>
-Change 20.8.1.3.1 [unique.ptr.runtime.ctor]:
-</p>
-
-<blockquote>
-<pre>
-unique_ptr(<del>T*</del> <ins>pointer</ins> p);
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined</i> d);
-unique_ptr(<del>T*</del> <ins>pointer</ins> p, <i>implementation defined</i> d);
-</pre>
-
-<p>
-These constructors behave the same as in the primary template except
-that they do not accept pointer types which are convertible to
-<del><tt>T*</tt></del> <ins><tt>pointer</tt></ins>. [<i>Note:</i> One
-implementation technique is to create private templated overloads of
-these members. <i>-- end note</i>]
-</p>
-</blockquote>
-
-<p>
-Change 20.8.1.3.4 [unique.ptr.runtime.modifiers]:
-</p>
-
-<blockquote>
-<pre>
-void reset(<del>T*</del> <ins>pointer</ins> p = <del>0</del> <ins>pointer()</ins>);
-</pre>
-
-<p>
--1- <i>Requires:</i> Does not accept pointer types which are convertible
-to <del><tt>T*</tt></del> <ins><tt>pointer</tt></ins> (diagnostic
-required). [<i>Note:</i> One implementation technique is to create a private
-templated overload. <i>-- end note</i>]
-</p>
-</blockquote>
-
-</li>
-
-<li>
-
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor]:
-</p>
-
-<blockquote>
-<pre>unique_ptr();</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>D</tt> <del>must</del> <ins>shall</ins> be default constructible, and that
-construction <del>must</del> <ins>shall</ins> not throw an exception. <tt>D</tt> <del>must</del> <ins>shall</ins> not be a
-reference type <ins>or pointer type (diagnostic required)</ins>.
-</p>
-</blockquote>
-<pre>unique_ptr(<del>T*</del> <ins>pointer</ins> p);</pre>
-<blockquote>
-<p>
-<i>Requires:</i>  The expression <tt>D()(p)</tt> <del>must</del> <ins>shall</ins> be well formed.
-The default constructor of <tt>D</tt> <del>must</del> <ins>shall</ins> not throw an exception.
-<tt>D</tt> <del>must</del> <ins>shall</ins> not be a reference type <ins>or pointer type (diagnostic
-required)</ins>.
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-</ul>
-
-
-
-
-
-
-<hr>
-<h3><a name="674"></a>674. <tt>shared_ptr</tt> interface changes for consistency with N1856</h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-05-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html">N1856</a> does not propose
-any changes to <tt>shared_ptr</tt>. It needs to be updated to use a rvalue reference where appropriate
-and to interoperate with <tt>unique_ptr</tt> as it does with <tt>auto_ptr</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 20.8.2.2 [util.smartptr.shared] as follows:
-</p>
-
-<blockquote>
-<pre>template&lt;class Y&gt; explicit shared_ptr(auto_ptr&lt;Y&gt;<del>&amp;</del><ins>&amp;&amp;</ins> r);
-<ins>template&lt;class Y, class D&gt; explicit shared_ptr(const unique_ptr&lt;Y,D&gt;&amp; r) = delete;
-template&lt;class Y, class D&gt; explicit shared_ptr(unique_ptr&lt;Y,D&gt;&amp;&amp; r);</ins>
-...
-template&lt;class Y&gt; shared_ptr&amp; operator=(auto_ptr&lt;Y&gt;<del>&amp;</del><ins>&amp;&amp;</ins> r);
-<ins>template&lt;class Y, class D&gt; shared_ptr&amp; operator=(const unique_ptr&lt;Y,D&gt;&amp; r) = delete;
-template&lt;class Y, class D&gt; shared_ptr&amp; operator=(unique_ptr&lt;Y,D&gt;&amp;&amp; r);</ins></pre>
-</blockquote>
-
-<p>
-Change 20.8.2.2.1 [util.smartptr.shared.const] as follows:
-</p>
-
-<blockquote>
-<pre><ins>template&lt;class Y&gt; shared_ptr(auto_ptr&lt;Y&gt;<del>&amp;</del><ins>&amp;&amp;</ins> r);</ins></pre>
-</blockquote>
-
-<p>
-Add to 20.8.2.2.1 [util.smartptr.shared.const]:
-</p>
-
-<blockquote>
-<pre><ins>template&lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r);</ins></pre>
-<blockquote>
-
-<p><ins>
-<i>Effects:</i> Equivalent to <tt>shared_ptr( r.release(), r.get_deleter() )</tt> when <tt>D</tt> is
-          not a reference type, <tt>shared_ptr( r.release(), ref( r.get_deleter() ) )</tt>
-          otherwise.
-</ins></p>
-
-<p><ins>
-<i>Exception safety:</i> If an exception is thrown, the constructor has no effect.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 20.8.2.2.3 [util.smartptr.shared.assign] as follows:
-</p>
-
-<blockquote>
-<pre>template&lt;class Y&gt; shared_ptr&amp; operator=(auto_ptr&lt;Y&gt;<del>&amp;</del><ins>&amp;&amp;</ins> r);</pre>
-</blockquote>
-
-<p>
-Add to 20.8.2.2.3 [util.smartptr.shared.assign]:
-</p>
-
-<blockquote>
-<pre><ins>template&lt;class Y, class D&gt; shared_ptr&amp; operator=(unique_ptr&lt;Y,D&gt;&amp;&amp; r);</ins></pre>
-
-<blockquote>
-<p><ins>
--4- <i>Effects:</i> Equivalent to <tt>shared_ptr(std::move(r)).swap(*this)</tt>.
-</ins></p>
-<p><ins>
--5- <i>Returns:</i> <tt>*this</tt>.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-
-
-<p><i>[
-Kona (2007): We may need to open an issue (<a href="lwg-defects.html#743">743</a>) to deal with the question of
-whether <tt>shared_ptr</tt> needs an rvalue <tt>swap</tt>.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="675"></a>675. Move assignment of containers</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-James Hopkin pointed out to me that if <tt>vector&lt;T&gt;</tt> move assignment is O(1)
-(just a <tt>swap</tt>) then containers such as <tt>vector&lt;shared_ptr&lt;ostream&gt;&gt;</tt> might have
-the wrong semantics under move assignment when the source is not truly an rvalue, but a
-moved-from lvalue (destructors could run late).
-</p>
-
-<blockquote><pre>
-<tt>vector&lt;shared_ptr&lt;ostream&gt;&gt;</tt> v1;
-<tt>vector&lt;shared_ptr&lt;ostream&gt;&gt;</tt> v2;
-...
-v1 = v2;               // #1
-v1 = std::move(v2);    // #2
-</pre></blockquote>
-
-<p>
-Move semantics means not caring what happens to the source (<tt>v2</tt> in this example).
-It doesn't mean not caring what happens to the target (<tt>v1</tt>).  In the above example
-both assignments should have the same effect on <tt>v1</tt>.  Any non-shared <tt>ostream</tt>'s
-<tt>v1</tt> owns before the assignment should be closed, whether <tt>v1</tt> is undergoing
-copy assignment or move assignment.
-</p>
-
-<p>
-This implies that the semantics of move assignment of a generic container should be
-<tt>clear, swap</tt> instead of just swap.  An alternative which could achieve the same
-effect would be to move assign each element.  In either case, the complexity of move
-assignment needs to be relaxed to <tt>O(v1.size())</tt>.
-</p>
-
-<p>
-The performance hit of this change is not nearly as drastic as it sounds. 
-In practice, the target of a move assignment has always just been move constructed
-or move assigned <i>from</i>.  Therefore under <tt>clear, swap</tt> semantics (in
-this common use case) we are still achieving O(1) complexity.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.2 [container.requirements]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 89: Container requirements</caption>
-<tr>
-<th>expression</th><th>return type</th><th>operational semantics</th>
-<th>assertion/note pre/post-condition</th><th>complexity</th>
-</tr>
-<tr>
-<td><tt>a = rv;</tt></td><td><tt>X&amp;</tt></td>
-<td>All existing elements of <tt>a</tt> are either move assigned or destructed</td>
-<td><tt>a</tt> shall be equal to the 
-value that <tt>rv</tt> had 
-before this construction
-</td>
-<td><del>(Note C)</del> <ins>linear</ins></td>
-</tr>
-</table>
-
-<p>
-Notes: the algorithms <tt>swap()</tt>, <tt>equal()</tt> and
-<tt>lexicographical_compare()</tt> are defined in clause 25. Those
-entries marked "(Note A)" should have constant complexity. Those entries
-marked "(Note B)" have constant complexity unless
-<tt>allocator_propagate_never&lt;X::allocator_type&gt;::value</tt> is
-<tt>true</tt>, in which case they have linear complexity.
-<del>Those entries
-marked "(Note C)" have constant complexity if <tt>a.get_allocator() ==
-rv.get_allocator()</tt> or if either
-<tt>allocator_propagate_on_move_assignment&lt;X::allocator_type&gt;::value</tt>
-is <tt>true</tt> or
-<tt>allocator_propagate_on_copy_assignment&lt;X::allocator_type&gt;::value</tt>
-is <tt>true</tt> and linear complexity otherwise.</del>
-</p>
-</blockquote>
-
-
-
-<p><i>[
-post Bellevue Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue was voted to WP in Bellevue, but accidently got stepped on by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a>
-which was voted to WP simulataneously.  Moving back to Open for the purpose of getting
-the wording right.  The intent of this issue and N2525 are not in conflict.
-</p>
-</blockquote>
-
-<p><i>[
-post Sophia Antipolis Howard updated proposed wording:
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="676"></a>676. Moving the unordered containers</h3>
-<p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Move semantics are missing from the <tt>unordered</tt> containers.  The proposed
-resolution below adds move-support consistent with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1858.html">N1858</a>
-and the current working draft.
-</p>
-
-<p>
-The current proposed resolution simply lists the requirements for each function.
-These might better be hoisted into the requirements table for unordered associative containers.
-Futhermore a mild reorganization of the container requirements could well be in order.
-This defect report is purposefully ignoring these larger issues and just focusing
-on getting the unordered containers "moved".
-</p>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10-17 Removed rvalue-swaps from wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Review. Alisdair will review proposed wording.
-</p></blockquote>
-
-<p><i>[
-2009-10-29 Daniel updates wording.
-]</i></p>
-
-
-<p><i>[
-2010-01-26 Alisdair updates wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Howard updates wording to reference the unordered container
-requirements table (modified by <a href="lwg-defects.html#704">704</a>) as much as possible.
-]</i></p>
-
-
-<p><i>[
-Voted to WP in Bellevue.
-]</i></p>
-
-
-<p><i>[
-post Bellevue, Pete notes:
-]</i></p>
-
-
-<blockquote>
-<p>
-Please remind people who are reviewing issues to check that the text
-modifications match the current draft. Issue 676, for example, adds two
-overloads for unordered_map::insert taking a hint. One takes a
-const_iterator and returns a const_iterator, and the other takes an
-iterator and returns an iterator. This was correct at the time the issue
-was written, but was changed in Toronto so there is only one hint
-overload, taking a const_iterator and returning an iterator.
-</p>
-<p>
-This issue is not ready. In addition to the relatively minor signature
-problem I mentioned earlier, it puts requirements in the wrong places.
-Instead of duplicating requirements throughout the template
-specifications, it should put them in the front matter that talks about
-requirements for unordered containers in general. This presentation
-problem is editorial, but I'm not willing to do the extensive rewrite
-that it requires. Please put it back into Open status.
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-24 Pete moved to Open:
-]</i></p>
-
-
-<blockquote><p>
-The descriptions of the semantics of the added <tt>insert</tt> functions belong
-in the requirements table. That's where the rest of the <tt>insert</tt>
-functions are.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Move issue 676 to Ready for Pittsburgh. Nico to send Howard an issue for
-the broader problem.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2776.pdf">N2776</a>.
-</p></blockquote>
-
-<p><i>[
-Rationale is obsolete.
-]</i></p>
-
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><b><tt>unordered_map</tt></b></p>
-
-<p>
-Change 23.5.4 [unord.map]:
-</p>
-
-<blockquote><pre>
-class unordered_map
-{
-    ...
-    unordered_map(const unordered_map&amp;);
-    <ins>unordered_map(unordered_map&amp;&amp;);</ins>
-    unordered_map(const Allocator&amp;);
-    unordered_map(const unordered_map&amp;, const Allocator&amp;);
-    unordered_map(unordered_map&amp;&amp;, const Allocator&amp;);
-    ...
-    unordered_map&amp; operator=(const unordered_map&amp;);
-    <ins>unordered_map&amp; operator=(unordered_map&amp;&amp;);</ins>
-    ...
-    // modifiers
-    ...
-    <del>std::</del>pair&lt;iterator, bool&gt; insert(const value_type&amp; obj); 
-    <ins>template &lt;class P&gt; pair&lt;iterator, bool&gt; insert(P&amp;&amp; obj);</ins>
-    iterator       insert(const_iterator hint, const value_type&amp; obj);
-    <ins>template &lt;class P&gt; iterator       insert(const_iterator hint, P&amp;&amp; obj);</ins>
-    ...
-    mapped_type&amp; operator[](const key_type&amp; k);
-    <ins>mapped_type&amp; operator[](key_type&amp;&amp; k);</ins>
-    ...
-};
-
-</pre></blockquote>
-
-<p>
-Add to 23.5.4.3 [unord.map.elem]:
-</p>
-
-<blockquote>
-
-<pre>mapped_type&amp; operator[](const key_type&amp; k);</pre>
-
-<blockquote>
-<p>...</p>
-<p><ins>
-<i>Requires:</i> <tt>key_type</tt> shall be <tt>CopyConstructible</tt>
-and <tt>mapped_type</tt> shall be <tt>DefaultConstructible</tt>.
-</ins></p>
-
-<p><ins>
-<i>Complexity:</i> Average case <tt>O(1)</tt>, worst case <tt>O(size())</tt>.
-</ins></p>
-
-</blockquote>
-
-<pre><ins>mapped_type&amp; operator[](key_type&amp;&amp; k);</ins></pre>
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> <tt>key_type</tt> shall be <tt>MoveConstructible</tt> and
-<tt>mapped_type</tt> shall be <tt>DefaultConstructible</tt>.
-</ins></p>
-
-<p><ins>
-<i>Effects:</i> If the <tt>unordered_map</tt> does not already contain an
-element whose key is equivalent to <tt>k</tt> , inserts the value
-<tt>value_type(std::move(k), mapped_type())</tt>.
-</ins></p>
-
-<p><ins>
-<i>Returns:</i> A reference to <tt>x.second</tt>, where <tt>x</tt> is the
-(unique) element whose key is equivalent to <tt>k</tt>.
-</ins></p>
-
-<p><ins>
-<i>Complexity:</i> Average case <tt>O(1)</tt>, worst case <tt>O(size())</tt>.
-</ins></p>
-
-</blockquote>
-
-</blockquote>
-
-<p>
-Add new section [unord.map.modifiers]:
-</p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class P&gt;
-  pair&lt;iterator, bool&gt; insert(P&amp;&amp; x);</ins>
-</pre>
-
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>value_type</tt> is constructible from
-<tt>std::forward&lt;P&gt;(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Effects:</i>  Inserts <tt>x</tt> converted to <tt>value_type</tt> if and only
-if there is no element in the container with key equivalent to the key of
-<tt>value_type(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Returns:</i> The <tt>bool</tt> component of the returned
-<tt>pair</tt> indicates whether the insertion takes place, and the iterator
-component points to the element with key equivalent to the key of
-<tt>value_type(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Complexity:</i> Average case <tt>O(1)</tt>, worst case <tt>O(size())</tt>.
-</ins></p>
-
-<p><ins>
-<i>Remarks:</i> <tt>P</tt> shall be implicitly convertible to
-<tt>value_type</tt>, else this signature shall not participate in overload
-resolution.
-</ins></p>
-
-</blockquote>
-
-
-<pre>
-<ins>template &lt;class P&gt;
-  iterator insert(const_iterator hint, P&amp;&amp; x);</ins>
-</pre>
-
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>value_type</tt> is constructible from
-<tt>std::forward&lt;P&gt;(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Effects:</i>  Inserts <tt>x</tt> converted to <tt>value_type</tt> if and only
-if there is no element in the container with key equivalent to the key of
-<tt>value_type(x)</tt>.  The iterator <tt>hint</tt> is a hint pointing to where
-the search should start. Implementations are permitted to ignore the hint.
-</ins></p>
-
-<p><ins>
-<i>Returns:</i> An iterator pointing to the element with key equivalent to the
-key of <tt>value_type(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Complexity:</i> Average case <tt>O(1)</tt>, worst case <tt>O(size())</tt>.
-</ins></p>
-
-<p><ins>
-<i>Remarks:</i> <tt>P</tt> shall be implicitly convertible to
-<tt>value_type</tt>, else this signature shall not participate in overload
-resolution.
-</ins></p>
-
-</blockquote>
-
-</blockquote>
-
-<p><b><tt>unordered_multimap</tt></b></p>
-
-<p>
-Change 23.5.5 [unord.multimap]:
-</p>
-
-<blockquote><pre>
-class unordered_multimap
-{
-    ...
-    unordered_multimap(const unordered_multimap&amp;);
-    <ins>unordered_multimap(unordered_multimap&amp;&amp;);</ins>
-    unordered_multimap(const Allocator&amp;);
-    unordered_multimap(const unordered_multimap&amp;, const Allocator&amp;);
-    unordered_multimap(unordered_multimap&amp;&amp;, const Allocator&amp;);
-    ...
-    unordered_multimap&amp; operator=(const unordered_multimap&amp;);
-    <ins>unordered_multimap&amp; operator=(unordered_multimap&amp;&amp;);</ins>
-    ...
-    // modifiers
-    ...
-    iterator insert(const value_type&amp; obj); 
-    <ins>template &lt;class P&gt; iterator insert(P&amp;&amp; obj);</ins>
-    iterator       insert(const_iterator hint, const value_type&amp; obj);
-    <ins>template &lt;class P&gt; iterator       insert(const_iterator hint, P&amp;&amp; obj);</ins>
-    ...
-};
-
-</pre></blockquote>
-
-<p>
-Add new section [unord.multimap.modifiers]:
-</p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class P&gt;
-  iterator insert(P&amp;&amp; x);</ins>
-</pre>
-
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>value_type</tt> is constructible from
-<tt>std::forward&lt;P&gt;(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Effects:</i>  Inserts <tt>x</tt> converted to <tt>value_type</tt>.
-</ins></p>
-
-<p><ins>
-<i>Returns:</i> An iterator pointing to the element with key equivalent to the
-key of <tt>value_type(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Complexity:</i> Average case <tt>O(1)</tt>, worst case <tt>O(size())</tt>.
-</ins></p>
-
-<p><ins>
-<i>Remarks:</i> <tt>P</tt> shall be implicitly convertible to
-<tt>value_type</tt>, else this signature shall not participate in overload
-resolution.
-</ins></p>
-
-</blockquote>
-
-<pre>
-<ins>template &lt;class P&gt;
-  iterator insert(const_iterator hint, P&amp;&amp; x);</ins>
-</pre>
-
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>value_type</tt> is constructible from
-<tt>std::forward&lt;P&gt;(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Effects:</i>  Inserts <tt>x</tt> converted to <tt>value_type</tt> if and only
-if there is no element in the container with key equivalent to the key of
-<tt>value_type(x)</tt>.  The iterator <tt>hint</tt> is a hint pointing to where
-the search should start. Implementations are permitted to ignore the hint.
-</ins></p>
-
-<p><ins>
-<i>Returns:</i> An iterator pointing to the element with key equivalent to the
-key of <tt>value_type(x)</tt>.
-</ins></p>
-
-<p><ins>
-<i>Complexity:</i> Average case <tt>O(1)</tt>, worst case <tt>O(size())</tt>.
-</ins></p>
-
-<p><ins>
-<i>Remarks:</i> <tt>P</tt> shall be implicitly convertible to
-<tt>value_type</tt>, else this signature shall not participate in overload
-resolution.
-</ins></p>
-
-</blockquote>
-
-</blockquote>
-
-<p><b><tt>unordered_set</tt></b></p>
-
-<p>
-Change 23.5.6 [unord.set]:
-</p>
-
-<blockquote><pre>
-class unordered_set
-{
-    ...
-    unordered_set(const unordered_set&amp;);
-    <ins>unordered_set(unordered_set&amp;&amp;);</ins>
-    unordered_set(const Allocator&amp;);
-    unordered_set(const unordered_set&amp;, const Allocator&amp;);
-    unordered_set(unordered_set&amp;&amp;, const Allocator&amp;);
-    ...
-    unordered_set&amp; operator=(const unordered_set&amp;);
-    <ins>unordered_set&amp; operator=(unordered_set&amp;&amp;);</ins>
-    ...
-    // modifiers 
-    ...
-    <del>std::</del>pair&lt;iterator, bool&gt; insert(const value_type&amp; obj); 
-    <ins>pair&lt;iterator, bool&gt; insert(value_type&amp;&amp; obj);</ins>
-    iterator       insert(const_iterator hint, const value_type&amp; obj);
-    <ins>iterator       insert(const_iterator hint, value_type&amp;&amp; obj);</ins>
-    ...
-};
-</pre></blockquote>
-
-<p><b><tt>unordered_multiset</tt></b></p>
-
-<p>
-Change 23.5.7 [unord.multiset]:
-</p>
-
-<blockquote><pre>
-class unordered_multiset
-{
-    ...
-    unordered_multiset(const unordered_multiset&amp;);
-    <ins>unordered_multiset(unordered_multiset&amp;&amp;);</ins>
-    unordered_multiset(const Allocator&amp;);
-    unordered_multiset(const unordered_multiset&amp;, const Allocator&amp;);
-    unordered_multiset(unordered_multiset&amp;&amp;, const Allocator&amp;);
-    ...
-    unordered_multiset&amp; operator=(const unordered_multiset&amp;);
-    <ins>unordered_multiset&amp; operator=(unordered_multiset&amp;&amp;);</ins>
-    ...
-    // modifiers
-    ...
-    iterator insert(const value_type&amp; obj); 
-    <ins>iterator insert(value_type&amp;&amp; obj);</ins>
-    iterator       insert(const_iterator hint, const value_type&amp; obj);
-    <ins>iterator       insert(const_iterator hint, value_type&amp;&amp; obj);</ins>
-    ...
-};
-
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="677"></a>677. Weaknesses in seed_seq::randomize [rand.util.seedseq]</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Charles Karney <b>Opened:</b> 2007-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>seed_seq::randomize</tt> provides a mechanism for initializing random number
-engines which ideally would yield "distant" states when given "close"
-seeds.  The algorithm for <tt>seed_seq::randomize</tt> given in the current
-Working Draft for C++,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2284.pdf">N2284</a>
-(2007-05-08), has 3 weaknesses
-</p>
-
-<ol>
-<li>
-<p> Collisions in state.  Because of the way the state is initialized,
-    seeds of different lengths may result in the same state.  The
-    current version of seed_seq has the following properties:</p>
-<ul>
-<li>  For a given <tt>s &lt;= n</tt>, each of the 2^(32s) seed vectors results in a
-      distinct state.</li>
-</ul>
-<p>
-    The proposed algorithm (below) has the considerably stronger
-    properties:</p>
-<ul>
-<li>   All of the <tt>(2^(32n)-1)/(2^32-1)</tt> seed vectors of lengths <tt>s &lt; n</tt>
-      result in distinct states.
-</li>
-<li>  All of the <tt>2^(32n)</tt> seed vectors of length <tt>s == n</tt> result in
-      distinct states.
-</li>
-</ul>
-</li>
-<li>
-<p> Poor mixing of <tt>v'</tt>s entropy into the state.  Consider <tt>v.size() == n</tt>
-    and hold <tt>v[n/2]</tt> thru <tt>v[n-1]</tt> fixed while varying <tt>v[0]</tt> thru <tt>v[n/2-1]</tt>,
-    a total of <tt>2^(16n)</tt> possibilities.  Because of the simple recursion
-    used in <tt>seed_seq</tt>, <tt>begin[n/2]</tt> thru <tt>begin[n-1]</tt> can take on only 2^64
-    possible states.</p>
-
-<p> The proposed algorithm uses a more complex recursion which results
-    in much better mixing.</p>
-</li>
-<li> <tt>seed_seq::randomize</tt> is undefined for <tt>v.size() == 0</tt>.  The proposed
-    algorithm remedies this.
-</li>
-</ol>
-<p>
-The current algorithm for <tt>seed_seq::randomize</tt> is adapted by me from the
-initialization procedure for the Mersenne Twister by Makoto Matsumoto
-and Takuji Nishimura.  The weakness (2) given above was communicated to
-me by Matsumoto last year.
-</p>
-<p>
-The proposed replacement for <tt>seed_seq::randomize</tt> is due to Mutsuo Saito,
-a student of Matsumoto, and is given in the implementation of the
-SIMD-oriented Fast Mersenne Twister random number generator SFMT.
-<a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html">http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html</a>
-<a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/SFMT-src-1.2.tar.gz">http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/SFMT-src-1.2.tar.gz</a>
-</p>
-<p>
-See
-Mutsuo Saito,
-An Application of Finite Field: Design and Implementation of 128-bit
-Instruction-Based Fast Pseudorandom Number Generator,
-Master's Thesis, Dept. of Math., Hiroshima University (Feb. 2007)
-<a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/M062821.pdf">http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/M062821.pdf</a>
-</p>
-<p>
-One change has been made here, namely to treat the case of small <tt>n</tt>
-(setting <tt>t = (n-1)/2</tt> for <tt>n &lt; 7</tt>).
-</p>
-<p>
-Since <tt>seed_seq</tt> was introduced relatively recently there is little cost
-in making this incompatible improvement to it.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="678"></a>678. Changes for [rand.req.eng]</h3>
-<p><b>Section:</b> 26.5.1.4 [rand.req.eng] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Charles Karney <b>Opened:</b> 2007-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.req.eng">issues</a> in [rand.req.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 26.5.1.4 [rand.req.eng] Random number engine requirements:
-</p>
-
-<p>
-This change follows naturally from the proposed change to
-<tt>seed_seq::randomize</tt> in <a href="lwg-defects.html#677">677</a>.
-</p>
-
-<p>
-In table 104 the description of <tt>X(q)</tt> contains a special treatment of
-the case <tt>q.size() == 0</tt>.  This is undesirable for 4 reasons:
-</p>
-
-<ol>
-<li>It replicates the functionality provided by <tt>X()</tt>.</li>
-<li>It leads to the possibility of a collision in the state provided
-    by some other <tt>X(q)</tt> with <tt>q.size() &gt; 0</tt>.</li>
-<li>It is inconsistent with the description of the <tt>X(q)</tt> in
-paragraphs 26.5.3.1 [rand.eng.lcong] p5, 26.5.3.2 [rand.eng.mers] p8, and 26.5.3.3 [rand.eng.sub] p10 where
-there is no special treatment of <tt>q.size() == 0</tt>.</li>
-<li>The proposed replacement for <tt>seed_seq::randomize</tt> given above
-    allows for the case <tt>q.size() == 0</tt>.</li>
-</ol>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="679"></a>679. resize parameter by value</h3>
-<p><b>Section:</b> 23.3 [sequences] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-06-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequences">issues</a> in [sequences].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The C++98 standard specifies that one member function alone of the containers
-passes its parameter (<tt>T</tt>) by value instead of by const reference:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, T c = T());
-</pre></blockquote>
-
-<p>
-This fact has been discussed / debated repeatedly over the years, the first time
-being even before C++98 was ratified.  The rationale for passing this parameter by
-value has been:
-</p>
-
-<blockquote>
-<p>
-So that self referencing statements are guaranteed to work, for example:
-</p>
-<blockquote><pre>
-v.resize(v.size() + 1, v[0]);
-</pre></blockquote>
-</blockquote>
-
-<p>
-However this rationale is not convincing as the signature for <tt>push_back</tt> is:
-</p>
-
-<blockquote><pre>
-void push_back(const T&amp; x);
-</pre></blockquote>
-
-<p>
-And <tt>push_back</tt> has similar semantics to <tt>resize</tt> (append).
-And <tt>push_back</tt> must also work in the self referencing case:
-</p>
-
-<blockquote><pre>
-v.push_back(v[0]);  // must work
-</pre></blockquote>
-
-<p>
-The problem with passing <tt>T</tt> by value is that it can be significantly more
-expensive than passing by reference.  The converse is also true, however when it is
-true it is usually far less dramatic (e.g. for scalar types).
-</p>
-
-<p>
-Even with move semantics available, passing this parameter by value can be expensive.
-Consider for example <tt>vector&lt;vector&lt;int&gt;&gt;</tt>:
-</p>
-
-<blockquote><pre>
-std::vector&lt;int&gt; x(1000);
-std::vector&lt;std::vector&lt;int&gt;&gt; v;
-...
-v.resize(v.size()+1, x);
-</pre></blockquote>
-
-<p>
-In the pass-by-value case, <tt>x</tt> is copied once to the parameter of
-<tt>resize</tt>.  And then internally, since the code can not know at compile
-time by how much <tt>resize</tt> is growing the <tt>vector</tt>, <tt>x</tt> is
-usually copied (not moved) a second time from <tt>resize</tt>'s parameter into its proper place
-within the <tt>vector</tt>.
-</p>
-
-<p>
-With pass-by-const-reference, the <tt>x</tt> in the above example need be copied
-only once.  In this case, <tt>x</tt> has an expensive copy constructor and so any
-copies that can be saved represents a significant savings.
-</p>
-
-<p>
-If we can be efficient for <tt>push_back</tt>, we should be efficient for <tt>resize</tt>
-as well.  The resize taking a reference parameter has been coded and shipped in the
-CodeWarrior library with no reports of problems which I am aware of.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.3.3 [deque], p2:
-</p>
-
-<blockquote><pre>
-class deque {
-   ...
-   void resize(size_type sz, <ins>const </ins>T<ins>&amp;</ins> c);
-</pre></blockquote>
-
-<p>
-Change 23.3.3.3 [deque.capacity], p3:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, <ins>const </ins>T<ins>&amp;</ins> c);
-</pre></blockquote>
-
-<p>
-Change 23.3.5 [list], p2:
-</p>
-
-<blockquote><pre>
-class list {
-   ...
-   void resize(size_type sz, <ins>const </ins>T<ins>&amp;</ins> c);
-</pre></blockquote>
-
-<p>
-Change 23.3.5.3 [list.capacity], p3:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, <ins>const </ins>T<ins>&amp;</ins> c);
-</pre></blockquote>
-
-<p>
-Change 23.3.6 [vector], p2:
-</p>
-
-<blockquote><pre>
-class vector {
-   ...
-   void resize(size_type sz, <ins>const </ins>T<ins>&amp;</ins> c);
-</pre></blockquote>
-
-<p>
-Change 23.3.6.3 [vector.capacity], p11:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, <ins>const </ins>T<ins>&amp;</ins> c);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="680"></a>680. move_iterator operator-&gt; return</h3>
-<p><b>Section:</b> 24.5.3.1 [move.iterator] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-06-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#move.iterator">issues</a> in [move.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>move_iterator</tt>'s <tt>operator-&gt;</tt> return type <tt>pointer</tt>
-does not consistently match the type which is returned in the description
-in 24.5.3.3.5 [move.iter.op.ref].
-</p>
-
-<blockquote><pre>
-template &lt;class Iterator&gt;
-class move_iterator {
-public:
-    ...
-    typedef typename iterator_traits&lt;Iterator&gt;::pointer pointer;
-    ...
-    pointer operator-&gt;() const {return current;}
-    ...
-private: 
-    Iterator current; // exposition only
-};
-</pre></blockquote>
-
-
-<p>
-There are two possible fixes.
-</p>
-
-<ol>
-<li><tt>pointer operator-&gt;() const {return &amp;*current;}</tt></li>
-<li><tt>typedef Iterator pointer;</tt></li>
-</ol>
-
-<p>
-The first solution is the one chosen by <tt>reverse_iterator</tt>.  A potential
-disadvantage of this is it may not work well with iterators which return a
-proxy on dereference and that proxy has overloaded <tt>operator&amp;()</tt>.  Proxy
-references often need to overloaad <tt>operator&amp;()</tt> to return a proxy
-pointer.  That proxy pointer may or may not be the same type as the iterator's
-<tt>pointer</tt> type.
-</p>
-
-<p>
-By simply returning the <tt>Iterator</tt> and taking advantage of the fact that
-the language forwards calls to <tt>operator-&gt;</tt> automatically until it
-finds a non-class type, the second solution avoids the issue of an overloaded
-<tt>operator&amp;()</tt> entirely.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 24.5.3.1 [move.iterator]:
-</p>
-
-<blockquote><pre>
-typedef <del>typename iterator_traits&lt;</del>Iterator<del>&gt;::pointer</del> pointer;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="681"></a>681. Operator functions impossible to compare are defined in [re.submatch.op]</h3>
-<p><b>Section:</b> 28.9.2 [re.submatch.op] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Nozomu Katoo <b>Opened:</b> 2007-05-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.submatch.op">issues</a> in [re.submatch.op].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 28.9.2 [re.submatch.op] of N2284, 
-operator functions numbered 31-42 seem impossible to compare. E.g.: 
-</p>
-
-<blockquote>
-<pre>
-template &lt;class BiIter&gt;
-   bool operator==(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-                    const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre>
-<blockquote>
-<p>
--31- <i>Returns:</i> <tt>lhs == rhs.str()</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-When <tt>char*</tt> is used as <tt>BiIter</tt>, <tt>iterator_traits&lt;BiIter&gt;::value_type</tt> would be 
-<tt>char</tt>, so that <tt>lhs == rhs.str()</tt> ends up comparing a <tt>char</tt> value and an object 
-of <tt>std::basic_string&lt;char&gt;</tt>.  However, the behaviour of comparison between 
-these two types is not defined in 21.4.8 [string.nonmembers] of N2284.
- This applies when <tt>wchar_t*</tt> is used as <tt>BiIter</tt>. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2409.pdf">N2409</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2409 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="682"></a>682. basic_regex ctor takes InputIterator or ForwardIterator?</h3>
-<p><b>Section:</b> 28.8.2 [re.regex.construct] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Eric Niebler <b>Opened:</b> 2007-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex.construct">issues</a> in [re.regex.construct].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Looking at N2284, 28.8 [re.regex], p3 <tt>basic_regex</tt> class template synopsis shows this 
-constructor: 
-</p>
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-     basic_regex(InputIterator first, InputIterator last, 
-                 flag_type f = regex_constants::ECMAScript);
-</pre></blockquote>
-
-<p>
-In 28.8.2 [re.regex.construct], p15, the constructor appears with this signature: 
-</p>
-
-<blockquote><pre>
-template &lt;class ForwardIterator&gt;
-     basic_regex(ForwardIterator first, ForwardIterator last, 
-                 flag_type f = regex_constants::ECMAScript);
-</pre></blockquote>
-
-<p>
-<tt>ForwardIterator</tt> is probably correct, so the synopsis is wrong.
-</p>
-
-<p><i>[
-John adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think either could be implemented?  Although an input iterator would 
-probably require an internal copy of the string being made.
-</p>
-<p>
-I have no strong feelings either way, although I think my original intent 
-was <tt>InputIterator</tt>. 
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2409.pdf">N2409</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2409 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="685"></a>685. reverse_iterator/move_iterator difference has invalid signatures</h3>
-<p><b>Section:</b> 24.5.1.3.19 [reverse.iter.opdiff], 24.5.3.3.14 [move.iter.nonmember] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-06-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In C++03 the difference between two <tt>reverse_iterators</tt>
-</p>
-<blockquote><pre>
-ri1 - ri2
-</pre></blockquote>
-<p>
-is possible to compute only if both iterators have the same base 
-iterator. The result type is the <tt>difference_type</tt> of the base iterator. 
-</p>
-<p>
-In the current draft, the operator is defined as 24.5.1.3.19 [reverse.iter.opdiff] 
-</p>
-<blockquote><pre>
-template&lt;class Iterator1, class Iterator2&gt; 
-typename reverse_iterator&lt;Iterator&gt;::difference_type 
-   operator-(const reverse_iterator&lt;Iterator1&gt;&amp; x, 
-                    const reverse_iterator&lt;Iterator2&gt;&amp; y);
-</pre></blockquote>
-<p>
-The return type is the same as the C++03 one, based on the no longer 
-present <tt>Iterator</tt> template parameter. 
-</p>
-<p>
-Besides being slightly invalid, should this operator work only when 
-<tt>Iterator1</tt> and <tt>Iterator2</tt> has the same <tt>difference_type</tt>? Or should the 
-implementation choose one of them? Which one? 
-</p>
-<p>
-The same problem now also appears in <tt>operator-()</tt> for <tt>move_iterator</tt>
-24.5.3.3.14 [move.iter.nonmember]. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 24.5.1.1 [reverse.iterator]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Iterator1, class Iterator2&gt; 
-  <del>typename reverse_iterator&lt;Iterator&gt;::difference_type</del> <ins>auto</ins> operator-( 
-    const reverse_iterator&lt;Iterator1&gt;&amp; x, 
-    const reverse_iterator&lt;Iterator2&gt;&amp; y)<ins> -&gt; decltype(y.current - x.current)</ins>;
-</pre>
-</blockquote>
-
-<p>
-Change 24.5.1.3.19 [reverse.iter.opdiff]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Iterator1, class Iterator2&gt; 
-  <del>typename reverse_iterator&lt;Iterator&gt;::difference_type</del> <ins>auto</ins> operator-( 
-    const reverse_iterator&lt;Iterator1&gt;&amp; x, 
-    const reverse_iterator&lt;Iterator2&gt;&amp; y)<ins> -&gt; decltype(y.current - x.current)</ins>;
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>y.current - x.current</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-<p>
-Change the synopsis in 24.5.3.1 [move.iterator]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Iterator1, class Iterator2&gt; 
-  <del>typename move_iterator&lt;Iterator&gt;::difference_type</del> <ins>auto</ins> operator-( 
-    const move_iterator&lt;Iterator1&gt;&amp; x, 
-    const move_iterator&lt;Iterator2&gt;&amp; y)<ins> -&gt; decltype(x.base() - y.base())</ins>;
-</pre>
-</blockquote>
-
-<p>
-Change 24.5.3.3.14 [move.iter.nonmember]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Iterator1, class Iterator2&gt; 
-  <del>typename move_iterator&lt;Iterator&gt;::difference_type</del> <ins>auto</ins> operator-( 
-    const move_iterator&lt;Iterator1&gt;&amp; x, 
-    const move_iterator&lt;Iterator2&gt;&amp; y)<ins> -&gt; decltype(x.base() - y.base())</ins>;
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>x.base() - y.base()</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Pre Bellevue:  This issue needs to wait until the <tt>auto -&gt; return</tt> language feature
-goes in.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="687"></a>687. shared_ptr conversion constructor not constrained</h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const], 20.8.2.3.1 [util.smartptr.weak.const] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-05-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Since all conversions from <tt>shared_ptr&lt;T&gt;</tt> to <tt>shared_ptr&lt;U&gt;</tt> have the same
-rank regardless of the relationship between <tt>T</tt> and <tt>U</tt>, reasonable user
-code that works with raw pointers fails with <tt>shared_ptr</tt>:
-</p>
-
-<blockquote><pre>
-void f( shared_ptr&lt;void> );
-void f( shared_ptr&lt;int&gt; );
-
-int main()
-{
-  f( shared_ptr&lt;double&gt;() ); // ambiguous
-}
-</pre></blockquote>
-
-<p>
-Now that we officially have <tt>enable_if</tt>, we can constrain the constructor
-and the corresponding assignment operator to only participate in the
-overload resolution when the pointer types are compatible.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.8.2.2.1 [util.smartptr.shared.const], change:
-</p>
-
-<blockquote><p>
--14- <i>Requires:</i> <del>For the second constructor</del> <ins>The
-second constructor shall not participate in the overload resolution
-unless</ins> <tt>Y*</tt> <del>shall be</del> <ins>is implicitly</ins> convertible
-to <tt>T*</tt>.
-</p></blockquote>
-
-<p>
-In 20.8.2.3.1 [util.smartptr.weak.const], change:
-</p>
-
-<blockquote>
-<pre>
-<del>template&lt;class Y&gt; weak_ptr(shared_ptr&lt;Y&gt; const&amp; r);</del>
-<del>weak_ptr(weak_ptr const&amp; r);</del>
-<del>template&lt;class Y&gt; weak_ptr(weak_ptr&lt;Y&gt; const&amp; r);</del>
-<ins>weak_ptr(weak_ptr const&amp; r);</ins>
-<ins>template&lt;class Y&gt; weak_ptr(weak_ptr&lt;Y&gt; const&amp; r);</ins>
-<ins>template&lt;class Y&gt; weak_ptr(shared_ptr&lt;Y&gt; const&amp; r);</ins>
-</pre>
-<blockquote><p>
--4- <i>Requires:</i> <del>For</del> <del>t</del><ins>T</ins>he second and
-third constructors<del>,</del> <ins>shall not participate in the
-overload resolution unless</ins> <tt>Y*</tt> <del>shall be</del>
-<ins>is implicitly</ins> convertible to <tt>T*</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="688"></a>688. reference_wrapper, cref unsafe, allow binding to rvalues</h3>
-<p><b>Section:</b> 20.9.4.1 [refwrap.const] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-05-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#refwrap.const">issues</a> in [refwrap.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A <tt>reference_wrapper</tt> can be constructed from an rvalue, either by using
-the constructor, or via <tt>cref</tt> (and <tt>ref</tt> in some corner cases). This leads
-to a dangling reference being stored into the <tt>reference_wrapper</tt> object.
-Now that we have a mechanism to detect an rvalue, we can fix them to
-disallow this source of undefined behavior.
-</p>
-
-<p>
-Also please see the thread starting at c++std-lib-17398 for some good discussion on this subject.
-</p>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Now that <tt>ref/cref</tt> are constained that <tt>T</tt> must be an <tt>ObjectType</tt>, I do not
-believe there is any risk of binding <tt>ref</tt> to a temporary (which would rely on
-deducing <tt>T</tt> to be an rvalue reference type)
-</p>
-<p>
-However, the problem for <tt>cref</tt> remains, so I recommend retaining that deleted
-overload.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-10 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Without:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; void ref(const T&amp;&amp; t) = delete;
-</pre></blockquote>
-<p>
-I believe this program will compile:
-</p>
-
-<blockquote><pre>
-#include &lt;functional&gt;
-
-struct A {};
-
-const A source() {return A();}
-
-int main()
-{
-   std::reference_wrapper&lt;const A&gt; r = std::ref(source());
-}
-</pre></blockquote>
-<p>
-I.e. in:
-</p>
-<blockquote><pre>
-template &lt;ObjectType T&gt; reference_wrapper&lt;T&gt; ref(T&amp; t);
-</pre></blockquote>
-
-<p>
-this:
-</p>
-
-<blockquote><pre>
-ref(source())
-</pre></blockquote>
-<p>
-deduces <tt>T</tt> as <tt>const A</tt>, and so:
-</p>
-
-<blockquote><pre>
-ref(const A&amp; t)
-</pre></blockquote>
-
-<p>
-will bind to a temporary (tested with a pre-concepts rvalue-ref enabled compiler).
-</p>
-<p>
-Therefore I think we still need the ref-protection.  I respectfully disagree with Alisdair's
-comment and am in favor of the proposed wording as it stands.  Also, CWG 606
-(noted below) has now been "favorably" resolved.
-</p>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.9 [function.objects], add the following two signatures to the synopsis:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; void ref(const T&amp;&amp; t) = delete;
-template &lt;class T&gt; void cref(const T&amp;&amp; t) = delete;
-</pre></blockquote>
-
-
-
-<p><i>[
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2292.html">N2292</a>
-addresses the first part of the resolution but not the second.
-]</i></p>
-
-
-<p><i>[
-Bellevue:  Doug noticed problems with the current wording.
-]</i></p>
-
-
-<p><i>[
-post Bellevue:  Howard and Peter provided revised wording.
-]</i></p>
-
-
-<p><i>[
-This resolution depends on a "favorable" resolution of CWG 606:  that is,
-the "special deduction rule" is disabled with the const T&amp;&amp; pattern.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="689"></a>689. reference_wrapper constructor overly constrained</h3>
-<p><b>Section:</b> 20.9.4.1 [refwrap.const] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-05-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#refwrap.const">issues</a> in [refwrap.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The constructor of <tt>reference_wrapper</tt> is currently <tt>explicit</tt>. The primary
-motivation behind this is the safety problem with respect to rvalues,
-which is addressed by the proposed resolution of the previous issue.
-Therefore we should consider relaxing the requirements on the
-constructor since requests for the implicit conversion keep resurfacing.
-</p>
-<p>
-Also please see the thread starting at c++std-lib-17398 for some good discussion on this subject.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the <tt>explicit</tt> from the constructor of <tt>reference_wrapper</tt>. If the
-proposed resolution of the previous issue is accepted, remove the
-<tt>explicit</tt> from the <tt>T&amp;&amp;</tt> constructor as well to keep them in sync.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="691"></a>691. const_local_iterator cbegin, cend missing from TR1</h3>
-<p><b>Section:</b> 23.5 [unord], TR1 6.3 [tr.hash] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz <b>Opened:</b> 2007-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The last version of TR1 does not include the following member
-functions
-for unordered containers:
-</p>
-
-<blockquote><pre>
-const_local_iterator cbegin(size_type n) const;
-const_local_iterator cend(size_type n) const;
-</pre></blockquote>
-
-<p>
-which looks like an oversight to me. I've checked th TR1 issues lists
-and the latest working draft of the C++0x std (N2284) and haven't
-found any mention to these menfuns or to their absence.
-</p>
-<p>
-Is this really an oversight, or am I missing something?
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following two rows to table 93 (unordered associative container
-requirements) in section 23.2.5 [unord.req]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Unordered associative container requirements (in addition to container)</caption>
-<tr>
-<th>expression</th> <th>return type</th> <th>assertion/note pre/post-condition</th> <th>complexity</th>
-</tr>
-<tr>
-<td><ins><tt>b.cbegin(n)</tt></ins></td> <td><ins><tt>const_local_iterator</tt></ins></td> <td><ins><tt>n</tt> shall be in the range <tt>[0, bucket_count())</tt>. Note: <tt>[b.cbegin(n), b.cend(n))</tt> is a valid range containing all of the elements in the <tt>n</tt><sup><i>th</i></sup> bucket.</ins></td> <td><ins>Constant</ins></td> 
-</tr>
-<tr>
-<td><ins><tt>b.cend(n)</tt></ins></td> <td><ins><tt>const_local_iterator</tt></ins></td> <td><ins><tt>n</tt> shall be in the range <tt>[0, bucket_count())</tt>.</ins></td> <td><ins>Constant</ins></td> 
-</tr>
-</table>
-</blockquote>
-
-<p>
-Add to the synopsis in 23.5.4 [unord.map]:
-</p>
-
-<blockquote><pre>
-<ins>const_local_iterator cbegin(size_type n) const;
-const_local_iterator cend(size_type n) const;</ins>
-</pre></blockquote>
-
-<p>
-Add to the synopsis in 23.5.5 [unord.multimap]:
-</p>
-
-<blockquote><pre>
-<ins>const_local_iterator cbegin(size_type n) const;
-const_local_iterator cend(size_type n) const;</ins>
-</pre></blockquote>
-
-<p>
-Add to the synopsis in 23.5.6 [unord.set]:
-</p>
-
-<blockquote><pre>
-<ins>const_local_iterator cbegin(size_type n) const;
-const_local_iterator cend(size_type n) const;</ins>
-</pre></blockquote>
-
-<p>
-Add to the synopsis in 23.5.7 [unord.multiset]:
-</p>
-
-<blockquote><pre>
-<ins>const_local_iterator cbegin(size_type n) const;
-const_local_iterator cend(size_type n) const;</ins>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="692"></a>692. <code>get_money</code> and <code>put_money</code> should be formatted I/O functions</h3>
-<p><b>Section:</b> 27.7.5 [ext.manip] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ext.manip">issues</a> in [ext.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In a private email Bill Plauger notes:
-</p>
-<blockquote><p>
-I  believe that  the function  that  implements <code>get_money</code>
-[from <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2072.html">N2072</a>]
-should behave  as a  formatted input function,  and the  function that
-implements <code>put_money</code> should  behave as a formatted output
-function. This  has implications regarding the  skipping of whitespace
-and the handling of errors, among other things.
-</p>
-<p>
-The words  don't say that  right now and  I'm far from  convinced that
-such a change is editorial.
-</p></blockquote>
-<p>
-Martin's response:
-</p>
-<blockquote><p>
-I agree that the manipulators should handle exceptions the same way as
-formatted I&#47;O functions do. The text in N2072 assumes so but the
-<i>Returns</i> clause explicitly omits exception handling for the sake
-of brevity. The spec should be clarified to that effect.
-</p>
-<p>
-As for dealing  with whitespace, I also agree it  would make sense for
-the extractors  and inserters involving the new  manipulators to treat
-it the same way as formatted I&#47;O.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add  a new  paragraph immediately  above  p4 of 27.7.5 [ext.manip] with  the
-following text:
-</p>
-<blockquote><p>
-<i>Effects</i>:  The   expression  <code><i>in</i> &gt;&gt; get_money(mon, intl)</code>
-described below behaves as a formatted input function (as
-described in 27.7.2.2.1 [istream.formatted.reqmts]).
-</p></blockquote>
-<p>
-Also change p4 of 27.7.5 [ext.manip] as follows:
-</p>
-<blockquote><p>
-<i>Returns</i>: An object <code>s</code> of unspecified type such that
-if <code>in</code> is  an object of type <code>basic_istream&lt;charT,
-traits&gt;</code>    then    the    expression   <code><i>in</i> &gt;&gt; 
-get_money(mon, intl)</code> behaves as <ins>a formatted input function
-that    calls    </ins><code>f(in, mon, intl)</code><del>    were
-called</del>. The function <code>f</code> can be defined as...
-</p></blockquote>
-
-
-<p><i>[
-post Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-We recommend moving immediately to Review. We've looked at the issue and
-have a consensus that the proposed resolution is correct, but want an
-iostream expert to sign off. Alisdair has taken the action item to putt
-this up on the reflector for possible movement by Howard to Tenatively
-Ready.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="693"></a>693. <code>std::bitset::all()</code> missing</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The  <code>bitset</code> class template  provides the  member function
-<code>any()</code> to determine whether an  object of the type has any
-bits  set, and  the member  function <code>none()</code>  to determine
-whether all of an object's  bits are clear. However, the template does
-not   provide  a   corresponding  function   to  discover   whether  a
-<code>bitset</code>  object  has  all  its  bits  set.   While  it  is
-possible,  even easy,  to  obtain this  information  by comparing  the
-result of <code>count()</code>  with the result of <code>size()</code>
-for  equality  (i.e.,  via  <code>b.count()  ==  b.size()</code>)  the
-operation  is   less  efficient   than  a  member   function  designed
-specifically  for that purpose  could be.   (<code>count()</code> must
-count  all non-zero bits  in a  <code>bitset</code> a  word at  a time
-while <code>all()</code> could stop counting as soon as it encountered
-the first word with a zero bit).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a declaration of the new  member function <code>all()</code> to the
-defintion of the <code>bitset</code> template in 20.6 [template.bitset], p1,
-right above the declaration of <code>any()</code> as shown below:
-</p>
-
-<blockquote><pre>
-bool operator!=(const bitset&lt;N&gt;&amp; rhs) const;
-bool test(size_t pos) const;
-<ins>bool all() const;</ins>
-bool any() const;
-bool none() const;
-</pre></blockquote>
-
-<p>
-Add a description of the new member function to the end of 20.6.2 [bitset.members] with the following text:
-</p>
-<blockquote><p>
-<code>bool all() const;</code>
-</p>
-<blockquote><p>
-<i>Returns</i>: <code>count() == size()</code>.
-</p></blockquote>
-</blockquote>
-
-<p>
-In  addition,   change  the  description   of  <code>any()</code>  and
-<code>none()</code>   for  consistency   with   <code>all()</code>  as
-follows:
-</p>
-<blockquote><p>
-<code>bool any() const;</code>
-</p>
-<blockquote>
-<p>
-<i>Returns</i>: <del><code>true</code> if any bit in <code>*this</code>
-is one</del><ins><code>count() != 0</code></ins>.
-</p>
-</blockquote>
-<p>
-<code>bool none() const;</code>
-</p>
-<blockquote>
-<p>
-<i>Returns</i>: <del><code>true</code> if no bit in <code>*this</code>
-is one</del><ins><code>count() == 0</code></ins>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="694"></a>694. <code>std::bitset</code> and <code>long long</code></h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Objects of the  <code>bitset</code> class template specializations can
-be constructed from  and explicitly converted to values  of the widest
-C++ integer  type, <code>unsigned long</code>.   With the introduction
-of  <code>long long</code> into  the language  the template  should be
-enhanced to make it possible  to interoperate with values of this type
-as well, or  perhaps <code>uintmax_t</code>.  See c++std-lib-18274 for
-a brief discussion in support of this change.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-For simplicity,  instead of  adding overloads for  <code>unsigned long
-long</code> and dealing with possible ambiguities in the spec, replace
-the <code>bitset</code> ctor  that takes an <code>unsigned long</code>
-argument  with  one  taking  <code>unsigned long  long</code>  in  the
-definition  of the  template as  shown below.   (The  standard permits
-implementations  to add  overloads on  other integer  types  or employ
-template tricks to  achieve the same effect provided  they don't cause
-ambiguities or changes in behavior.)
-</p>
-<blockquote>
-<pre>
-// [bitset.cons] constructors:
-bitset();
-bitset(unsigned <ins>long</ins> long val);
-template&lt;class charT, class traits, class Allocator&gt;
-explicit bitset(
-                const basic_string&lt;charT,traits,Allocator&gt;&amp; str,
-                typename basic_string&lt;charT,traits,Allocator&gt;::size_type pos = 0,
-                typename basic_string&lt;charT,traits,Allocator&gt;::size_type n =
-                    basic_string&lt;charT,traits,Allocator&gt;::npos);
-</pre>
-</blockquote>
-<p>
-Make a corresponding change in 20.6.1 [bitset.cons], p2:
-</p>
-<blockquote>
-<p>
-<code>bitset(unsigned <ins>long</ins> long val);</code>
-</p>
-<blockquote><p>
-<i>Effects</i>:  Constructs   an  object  of   class  bitset&lt;N&gt;,
-initializing  the  first <code><i>M</i></code>  bit  positions to  the
-corresponding      bit     values      in     <code><i>val</i></code>.
-<code><i>M</i></code> is the  smaller of <code><i>N</i></code> and the
-number of bits in  the value representation (section [basic.types]) of
-<code>unsigned  <ins> long</ins> long</code>.   If  <code><i>M</i> &lt;
-<i>N</i></code>  <ins>is  <code>true</code></ins>,  the remaining  bit
-positions are initialized to zero.
-</p></blockquote>
-</blockquote>
-
-<p>
-Additionally, introduce a new member function <code>to_ullong()</code>
-to make  it possible to  convert <code>bitset</code> to values  of the
-new  type. Add  the following  declaration  to the  definition of  the
-template, immediate  after the declaration  of <code>to_ulong()</code>
-in 20.6 [template.bitset], p1, as shown below:
-</p>
-<blockquote>
-<pre>
-// element access:
-bool operator[](size_t pos) const; // for b[i];
-reference operator[](size_t pos); // for b[i];
-unsigned long to_ulong() const;
-<ins>unsigned long long to_ullong() const;</ins>
-template &lt;class charT, class traits, class Allocator&gt;
-basic_string&lt;charT, traits, Allocator&gt; to_string() const;
-</pre>
-</blockquote>
-<p>
-And add a description of  the new member function to 20.6.2 [bitset.members],
-below  the  description of  the  existing <code>to_ulong()</code>  (if
-possible), with the following text:
-</p>
-<blockquote>
-<p>
-<code>unsigned long long to_ullong() const;</code>
-</p>
-<blockquote><p>
-<i>Throws</i>:  <code>overflow_error</code>   if  the  integral  value
-<code><i>x</i></code> corresponding to  the bits in <code>*this</code>
-cannot be represented as type <code>unsigned long long</code>.
-</p></blockquote>
-<blockquote><p>
-<i>Returns:</i> <code><i>x</i></code>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="695"></a>695. ctype&lt;char&gt;::classic_table() not accessible</h3>
-<p><b>Section:</b> 22.4.1.3 [facet.ctype.special] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The   <code>ctype&lt;char&gt;::classic_table()</code>   static  member
-function    returns    a    pointer    to   an    array    of    const
-<code>ctype_base::mask</code>    objects    (enums)   that    contains
-<code>ctype&lt;char&gt;::table_size</code>    elements.    The   table
-describes the properties of the character set in the "C" locale (i.e.,
-whether a  character at an index  given by its value  is alpha, digit,
-punct,   etc.),   and   is    typically   used   to   initialize   the
-<code>ctype&lt;char&gt;</code>  facet in the  classic "C"  locale (the
-protected      <code>ctype&lt;char&gt;</code>      member     function
-<code>table()</code>    then    returns     the    same    value    as
-<code>classic_table()</code>).
-</p>
-<p>
-However, while <code>ctype&lt;char&gt;::table_size</code> (the size of
-the   table)    is   a   public    static   const   member    of   the
-<code>ctype&lt;char&gt;</code>           specialization,           the
-<code>classic_table()</code> static member function is protected. That
-makes getting at the classic  data less than convenient (i.e., one has
-to create  a whole derived class just  to get at the  masks array). It
-makes  little sense  to expose  the size  of the  table in  the public
-interface while making the table itself protected, especially when the
-table is a constant object.
-</p>
-<p>
-The  same argument  can be  made for  the non-static  protected member
-function <code>table()</code>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Make     the    <code>ctype&lt;char&gt;::classic_table()</code>    and
-<code>ctype&lt;char&gt;::table()</code>  member  functions  public  by
-moving their declarations into the public section of the definition of
-specialization in 22.4.1.3 [facet.ctype.special] as shown below:
-</p>
-<blockquote>
-<pre>
-  static locale::id id;
-  static const size_t table_size = IMPLEMENTATION_DEFINED;
-<del>protected:</del>
-  const mask* table() const throw();
-  static const mask* classic_table() throw();
-<ins>protected:</ins>
-
-~ctype(); // virtual
-virtual char do_toupper(char c) const;
-</pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="696"></a>696. <code>istream::operator&gt;&gt;(int&amp;)</code> broken</h3>
-<p><b>Section:</b> 27.7.2.2.2 [istream.formatted.arithmetic] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.formatted.arithmetic">issues</a> in [istream.formatted.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From message c++std-lib-17897:
-</p>
-<p>
-The code shown in 27.7.2.2.2 [istream.formatted.arithmetic] as the "as if"
-implementation of the two arithmetic extractors that don't have a
-corresponding <code>num_get</code> interface (i.e., the
-<code>short</code> and <code>int</code> overloads) is subtly buggy in
-how it deals with <code>EOF</code>, overflow, and other similar
-conditions (in addition to containing a few typos).
-</p>
-<p>
-One problem is that if <code>num_get::get()</code> reaches the EOF
-after reading in an otherwise valid value that exceeds the limits of
-the narrower type (but not <code>LONG_MIN</code> or
-<code>LONG_MAX</code>), it will set <code><i>err</i></code> to
-<code>eofbit</code>. Because of the if condition testing for
-<code>(<i>err</i> == 0)</code>, the extractor won't set
-<code>failbit</code> (and presumably, return a bogus value to the
-caller).
-</p>
-<p>
-Another problem with the code is that it never actually sets the
-argument to the extracted value. It can't happen after the call to
-<code>setstate()</code> since the function may throw, so we need to
-show when and how it's done (we can't just punt as say: "it happens
-afterwards"). However, it turns out that showing how it's done isn't
-quite so easy since the argument is normally left unchanged by the
-facet on error except when the error is due to a misplaced thousands
-separator, which causes <code>failbit</code> to be set but doesn't
-prevent the facet from storing the value.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We believe this part of the Standard has been recently adjusted
-and that this issue was addressed during that rewrite.
-</p>
-<p>
-Move to NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-28 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I've moved this issue from Tentatively NAD to Open.
-</p>
-
-<p>
-The current wording of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>
-in 22.4.2.1.2 [facet.num.get.virtuals] p3, stage 3 appears to indicate that
-in parsing arithmetic types, the value is always set, but sometimes in addition
-to setting <tt>failbit</tt>.
-</p>
-
-<ul>
-<li>
-If there is a range error, the value is set to min or max, else
-</li>
-<li>
-if there is a conversion error, the value is set to 0, else
-</li>
-<li>
-if there is a grouping error, the value is set to whatever it would be if grouping were ignored, else
-</li>
-<li>
-the value is set to its error-free result.
-</li>
-</ul>
-
-<p>
-However there is a contradictory sentence in 22.4.2.1.2 [facet.num.get.virtuals] p1.
-</p>
-
-<p>
-27.7.2.2.2 [istream.formatted.arithmetic] should mimic the behavior of 22.4.2.1.2 [facet.num.get.virtuals]
-(whatever we decide that behavior is) for
-<tt>int</tt> and <tt>short</tt>, and currently does not.  I believe that the
-correct code fragment should look like:
-</p>
-
-<blockquote><pre>
-typedef num_get&lt;charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-iostate err = ios_base::goodbit;
-long lval;
-use_facet&lt;numget&gt;(loc).get(*this, 0, *this, err, lval);
-if (lval &lt; numeric_limits&lt;int&gt;::min())
-{
-  err |= ios_base::failbit;
-  val = numeric_limits&lt;int&gt;::min();
-}
-else if (lval &gt; numeric_limits&lt;int&gt;::max())
-{
-  err |= ios_base::failbit;
-  val = numeric_limits&lt;int&gt;::max();
-}
-else
-  val = static_cast&lt;int&gt;(lval);
-setstate(err);
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.4.2.1.2 [facet.num.get.virtuals], p1:
-</p>
-
-<blockquote><p>
--1- <i>Effects:</i> Reads characters from <tt>in</tt>, interpreting them
-according to <tt>str.flags()</tt>, <tt>use_facet&lt;ctype&lt;charT&gt;
-&gt;(loc)</tt>, and <tt>use_facet&lt; numpunct&lt;charT&gt;
-&gt;(loc)</tt>, where <tt>loc</tt> is <tt>str.getloc()</tt>. <del>If an error
-occurs, <tt>val</tt> is unchanged; otherwise it is set to the resulting value.</del>
-</p></blockquote>
-
-<p>
-Change 27.7.2.2.2 [istream.formatted.arithmetic], p2 and p3:
-</p>
-
-<blockquote>
-<pre>
-operator>>(short&amp; val);
-</pre>
-<blockquote>
-<p>
--2- The conversion occurs as if performed by the following code fragment (using the same notation as for 
-the preceding code fragment):
-</p>
-
-<blockquote><pre>
-typedef num_get&lt;charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-iostate err = ios<del>tate</del><ins>_base</ins>::goodbit;
-long lval;
-use_facet&lt;numget&gt;(loc).get(*this, 0, *this, err, lval);
-<del>if (err != 0)
-  ;
-else if (lval &lt; numeric_limits&lt;short&gt;::min()
-  || numeric_limits&lt;short&gt;::max() &lt; lval)
-     err = ios_base::failbit;</del>
-<ins>if (lval &lt; numeric_limits&lt;short&gt;::min())
-{
-  err |= ios_base::failbit;
-  val = numeric_limits&lt;short&gt;::min();
-}
-else if (lval &gt; numeric_limits&lt;short&gt;::max())
-{
-  err |= ios_base::failbit;
-  val = numeric_limits&lt;short&gt;::max();
-}</ins>
-else
-  val = static_cast&lt;short&gt;(lval);
-setstate(err);
-</pre></blockquote>
-
-</blockquote>
-
-<pre>
-operator>>(int&amp; val);
-</pre>
-<blockquote>
-<p>
--3- The conversion occurs as if performed by the following code fragment (using the same notation as for 
-the preceding code fragment):
-</p>
-
-<blockquote><pre>
-typedef num_get&lt;charT,istreambuf_iterator&lt;charT,traits&gt; &gt; numget;
-iostate err = ios<del>tate</del><ins>_base</ins>::goodbit;
-long lval;
-use_facet&lt;numget&gt;(loc).get(*this, 0, *this, err, lval);
-<del>if (err != 0)
-  ;
-else if (lval &lt; numeric_limits&lt;int&gt;::min()
-  || numeric_limits&lt;int&gt;::max() &lt; lval)
-     err = ios_base::failbit;</del>
-<ins>if (lval &lt; numeric_limits&lt;int&gt;::min())
-{
-  err |= ios_base::failbit;
-  val = numeric_limits&lt;int&gt;::min();
-}
-else if (lval &gt; numeric_limits&lt;int&gt;::max())
-{
-  err |= ios_base::failbit;
-  val = numeric_limits&lt;int&gt;::max();
-}</ins>
-else
-  val = static_cast&lt;int&gt;(lval);
-setstate(err);
-</pre></blockquote>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="697"></a>697. New <tt>&lt;system_error&gt;</tt> header leads to name clashes</h3>
-<p><b>Section:</b> 19.5 [syserr] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-06-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr">issues</a> in [syserr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The most recent state of 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2241.html">N2241</a>
-as well as the current draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2284.pdf">N2284</a>
-(section 19.5 [syserr], p.2) proposes a
-new
-enumeration type <tt>posix_errno</tt> immediatly in the namespace <tt>std</tt>. One of
-the enumerators has the name <tt>invalid_argument</tt>, or fully qualified:
-<tt>std::invalid_argument</tt>. This name clashes with the exception type
-<tt>std::invalid_argument</tt>, see 19.2 [std.exceptions]/p.3. This clash makes
-e.g. the following snippet invalid:
-</p>
-
-<blockquote><pre>
-#include &lt;system_error&gt;
-#include &lt;stdexcept&gt;
-
-void foo() { throw std::invalid_argument("Don't call us - we call you!"); }
-</pre></blockquote>
-
-<p>
-I propose that this enumeration type (and probably the remaining parts
-of
-<tt>&lt;system_error&gt;</tt> as well) should be moved into one additional inner
-namespace, e.g. <tt>sys</tt> or <tt>system</tt> to reduce foreseeable future clashes
-due
-to the great number of members that <tt>std::posix_errno</tt> already contains
-(Btw.: Why has the already proposed <tt>std::sys</tt> sub-namespace from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2066.html">N2066</a>
-been rejected?). A further clash <em>candidate</em> seems to be
-<tt>std::protocol_error</tt>
-(a reasonable name for an exception related to a std network library,
-I guess).
-</p>
-
-<p>
-Another possible resolution would rely on the proposed strongly typed
-enums,
-as described in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2213.pdf">N2213</a>.
-But maybe the forbidden implicit conversion to integral types would
-make
-these enumerators less attractive in this special case?
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Fixed by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2422.htm#Issue7">issue 7 of N2422</a>.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="698"></a>698. <tt>system_error</tt> needs <tt>const char*</tt> constructors</h3>
-<p><b>Section:</b> 19.5.6.1 [syserr.syserr.overview] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-06-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 19.5.6.1 [syserr.syserr.overview] we have the class definition of
-<tt>std::system_error</tt>. In contrast to all exception classes, which
-are constructible with a <tt>what_arg string</tt> (see 19.2 [std.exceptions],
-or <tt>ios_base::failure</tt> in 27.5.3.1.1 [ios::failure]), only overloads with with
-<tt>const string&amp;</tt> are possible. For consistency with the re-designed
-remaining exception classes this class should also provide
-c'tors which accept a const <tt>char* what_arg</tt> string.
-</p>
-<p>
-Please note that this proposed addition makes sense even
-considering the given implementation hint for <tt>what()</tt>, because
-<tt>what_arg</tt> is required to be set as <tt>what_arg</tt> of the base class
-<tt>runtime_error</tt>, which now has the additional c'tor overload
-accepting a <tt>const char*</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This proposed wording assumes issue <a href="lwg-closed.html#832">832</a> has been accepted and applied to the working paper.
-</p>
-
-<p>
-Change 19.5.6.1 [syserr.syserr.overview] Class system_error overview, as indicated:
-</p>
-
-<blockquote><pre>
-public:
-  system_error(error_code ec, const string&amp; what_arg);
-  <ins>system_error(error_code ec, const char* what_arg);</ins>
-  system_error(error_code ec);
-  system_error(int ev, const error_category* ecat,
-      const string&amp; what_arg);
-  <ins>system_error(int ev, const error_category* ecat,
-      const char* what_arg);</ins>
-  system_error(int ev, const error_category* ecat);
-</pre></blockquote>
-
-<p>
-To 19.5.6.2 [syserr.syserr.members] Class system_error members add:
-</p>
-
-<blockquote>
-<pre>
-system_error(error_code ec, const char* what_arg);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of class <tt>system_error</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>code() == ec</tt> and <tt>strcmp(runtime_error::what(), what_arg) == 0</tt>.
-</p>
-</blockquote>
-
-<pre>
-system_error(int ev, const error_category* ecat, const char* what_arg);
-</pre>
-
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of class <tt>system_error</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>code() == error_code(ev, ecat)</tt> and <tt>strcmp(runtime_error::what(), what_arg) == 0</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="699"></a>699. N2111 changes min/max</h3>
-<p><b>Section:</b> 26.5 [rand] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2007-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand">issues</a> in [rand].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2111.pdf">N2111</a>
-changes <tt>min/max</tt> in several places in random from member
-functions to static data members. I believe this introduces
-a needless backward compatibility problem between C++0X and
-TR1. I'd like us to find new names for the static data members,
-or perhaps change <tt>min/max</tt> to <tt>constexpr</tt>s in C++0X.
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="700"></a>700. N1856 defines struct <tt>identity</tt></h3>
-<p><b>Section:</b> 20.2.4 [forward] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2007-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward">issues</a> in [forward].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1856.html">N1856</a>
-defines struct <tt>identity</tt> in <tt>&lt;utility&gt;</tt> which clashes with
-the traditional definition of struct <tt>identity</tt> in <tt>&lt;functional&gt;</tt>
-(not standard, but a common extension from old STL). Be nice
-if we could avoid this name clash for backward compatibility.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.2.4 [forward]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class T&gt; struct identity
-{
-    typedef T type;
-    <ins>const T&amp; operator()(const T&amp; x) const;</ins>
-};
-</pre>
-<blockquote>
-<pre>
-<ins>const T&amp; operator()(const T&amp; x) const;</ins>
-</pre>
-<blockquote>
-<p>
-<ins><i>Returns:</i> <tt>x</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="703"></a>703. <tt>map::at()</tt> need a complexity specification</h3>
-<p><b>Section:</b> 23.4.4.3 [map.access] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2007-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.access">issues</a> in [map.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>map::at()</tt> need a complexity specification.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following to the specification of <tt>map::at()</tt>, 23.4.4.3 [map.access]:
-</p>
-<blockquote>
-<p>
-<i>Complexity:</i> logarithmic.
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="704"></a>704. <tt>MoveAssignable</tt> requirement for container value type overly strict</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-05-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The move-related changes inadvertently overwrote the intent of <a href="lwg-defects.html#276">276</a>.
-Issue <a href="lwg-defects.html#276">276</a> removed the requirement of <tt>CopyAssignable</tt> from
-most of the member functions of node-based containers.  But the move-related changes
-unnecessarily introduced the <tt>MoveAssignable</tt> requirement for those members which used to
-require <tt>CopyAssignable</tt>.
-</p>
-
-<p>
-We also discussed (c++std-lib-18722) the possibility of dropping <tt>MoveAssignable</tt>
-from some of the sequence requirements.  Additionally the <i>in-place</i> construction
-work may further reduce requirements.  For purposes of an easy reference, here are the
-minimum sequence requirements as I currently understand them.  Those items in requirements
-table in the working draft which do not appear below have been purposefully omitted for
-brevity as they do not have any requirements of this nature.  Some items which do not
-have any requirements of this nature are included below just to confirm that they were
-not omitted by mistake.
-</p>
-
-<table border="1">
-<caption>Container Requirements</caption>
-<tr><td><tt>X u(a)</tt></td><td><tt>value_type</tt> must be <tt>CopyConstructible</tt></td></tr>
-<tr><td><tt>X u(rv)</tt></td><td><tt>array</tt> requires <tt>value_type</tt> to be <tt>CopyConstructible</tt></td></tr>
-<tr><td><tt>a = u</tt></td><td>Sequences require <tt>value_type</tt> to be <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt>.
-                               Associative containers require <tt>value_type</tt> to be <tt>CopyConstructible</tt>.</td></tr>
-<tr><td><tt>a = rv</tt></td><td><tt>array</tt> requires <tt>value_type</tt> to be <tt>CopyAssignable</tt>.
-                                Sequences containers with <tt>propagate_on_container_move_assignment == false</tt> allocators require <tt>value_type</tt> to be <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.
-                                Associative containers with <tt>propagate_on_container_move_assignment == false</tt> allocators require <tt>value_type</tt> to be <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>swap(a,u)</tt></td><td><tt>array</tt> requires <tt>value_type</tt> to be <tt>Swappable</tt>.</td></tr>
-</table>
-
-<p>
-</p>
-
-<table border="1">
-<caption>Sequence Requirements</caption>
-<tr><td><tt>X(n)</tt></td><td><tt>value_type</tt> must be <tt>DefaultConstructible</tt></td></tr>
-<tr><td><tt>X(n, t)</tt></td><td><tt>value_type</tt> must be <tt>CopyConstructible</tt></td></tr>
-<tr><td><tt>X(i, j)</tt></td><td>Sequences require <tt>value_type</tt> to be constructible from <tt>*i</tt>.  Additionally if input_iterators
-                                 are used, <tt>vector</tt> and <tt>deque</tt> require <tt>MoveContructible</tt> and <tt>MoveAssignable</tt>.</td></tr>
-<tr><td><tt>a.insert(p, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
-                                        The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>CopyAssignable</tt>.</td></tr>
-<tr><td><tt>a.insert(p, rv)</tt></td><td>The <tt>value_type</tt> must be <tt>MoveConstructible</tt>.
-                                        The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>MoveAssignable</tt>.</td></tr>
-<tr><td><tt>a.insert(p, n, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.
-                                        The sequences <tt>vector</tt> and <tt>deque</tt> also require the <tt>value_type</tt> to be <tt>CopyAssignable</tt>.</td></tr>
-<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>.
-                                        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.
-                                        If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.
-                                        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>
-<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>
-<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>
-<tr><td><tt>a.clear()</tt></td><td></td></tr>
-<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>.
-                                        If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.</td></tr>
-<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>
-<tr><td><tt>a.resize(n)</tt></td><td>The <tt>value_type</tt> must be <tt>DefaultConstructible</tt>.
-                                     The sequence <tt>vector</tt> also requires the <tt>value_type</tt> to be <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>a.resize(n, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-</table>
-
-<p>
-</p>
-
-<table border="1">
-<caption>Optional Sequence Requirements</caption>
-<tr><td><tt>a.front()</tt></td><td></td></tr>
-<tr><td><tt>a.back()</tt></td><td></td></tr>
-<tr><td><tt>a.push_front(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<tr><td><tt>a.push_front(rv)</tt></td><td>The <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>a.push_back(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<tr><td><tt>a.push_back(rv)</tt></td><td>The <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>a.pop_front()</tt></td><td></td></tr>
-<tr><td><tt>a.pop_back()</tt></td><td></td></tr>
-<tr><td><tt>a[n]</tt></td><td></td></tr>
-<tr><td><tt>a.at[n]</tt></td><td></td></tr>
-</table>
-
-<p>
-</p>
-
-<table border="1">
-<caption>Associative Container Requirements</caption>
-<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>.
-                                 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>a_uniq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<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>
-<tr><td><tt>a_eq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<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>
-<tr><td><tt>a.insert(p, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<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>
-<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>.
-                                        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>
-</table>
-
-<p>
-</p>
-
-<table border="1">
-<caption>Unordered Associative Container Requirements</caption>
-<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>.
-                                 If the iterators return an rvalue the <tt>value_type</tt> must be <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>a_uniq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<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>
-<tr><td><tt>a_eq.insert(t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<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>
-<tr><td><tt>a.insert(p, t)</tt></td><td>The <tt>value_type</tt> must be <tt>CopyConstructible</tt>.</td></tr>
-<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>
-<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>.
-                                        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>
-</table>
-
-<p>
-</p>
-
-<table border="1">
-<caption>Miscellaneous Requirements</caption>
-<tr><td><tt>map[lvalue-key]</tt></td><td>The <tt>key_type</tt> must be <tt>CopyConstructible</tt>.
-                                         The <tt>mapped_type</tt> must be <tt>DefaultConstructible</tt> and <tt>MoveConstructible</tt>.</td></tr>
-<tr><td><tt>map[rvalue-key]</tt></td><td>The <tt>key_type</tt> must be <tt>MoveConstructible</tt>.
-                                         The <tt>mapped_type</tt> must be <tt>DefaultConstructible</tt> and <tt>MoveConstructible</tt>.</td></tr>
-</table>
-
-<p><i>[
-Kona (2007): Howard and Alan to update requirements table in issue with emplace signatures.
-]</i></p>
-
-
-<p><i>[
-Bellevue: This should be handled as part of the concepts work.
-]</i></p>
-
-
-<p><i>[
-2009-07-20 Reopened by Howard:
-]</i></p>
-
-
-<blockquote>
-<p>
-This is one of the issues that was "solved by concepts" and is now no longer solved.
-</p>
-
-<p>
-In a nutshell, concepts adopted the "minimum requirements" philosophy outlined
-in the discussion of this issue, and enforced it.  My strong suggestion is that
-we translate the concepts specification into documentation for the containers.
-</p>
-
-<p>
-What this means for vendors is that they will have to implement container members
-being careful to only use those characteristics of a type that the concepts specification
-formally allowed.  Note that I <em>am not</em> talking about <tt>enable_if</tt>'ing
-everything.  I am simply suggesting that (for example) we tell the vendor he can't call <tt>T's</tt>
-copy constructor or move constructor within the <tt>emplace</tt> member function, etc.
-</p>
-
-<p>
-What this means for customers is that they will be able to use types within C++03
-containers which are sometimes not CopyConstructible, and sometimes not even
-MoveConstructible, etc.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open. Howard to provide wording.
-</p></blockquote>
-
-<p><i>[
-2010-02-06 Howard provides wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-08 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Howard opened.  I neglected to reduce the requirements on value_type
-for the insert function of the ordered and unordered associative containers when
-the argument is an rvalue.  Fixed it.
-]</i></p>
-
-
-<p><i>[
-2010-02-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-03-08 Nico opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-I took the task to see whether <a href="lwg-defects.html#868">868</a> is covered by 704
-already.
-However, by doing that I have the impression that
-704 is a big mistake.
-</p>
-
-<p>
-Take e.g. the second change of <a href="lwg-defects.html#868">868</a>:
-</p>
-
-<blockquote>
-<p>
-Change 23.3.3.2 [deque.cons] para 5:
-</p>
-<blockquote><p>
-<i>Effects:</i> Constructs a <tt>deque</tt> with <tt>n</tt> default constructed
-elements.
-</p></blockquote>
-<p>
-where "default constructed" should be replaced by "value-initialized".
-This is the constructor out of a number of elements:
-</p>
-<blockquote><pre>
-ContType c(num)
-</pre></blockquote>
-
-<p>
-704 says:
-</p>
-
-<blockquote>
-<p>
-Remove the entire section 23.3.3.2 [deque.cons].
-</p>
-<blockquote><p>
-[ This section is already specified by the requirements tables. ]
-</p></blockquote>
-</blockquote>
-
-<p>
-BUT, there is no requirement table that lists this constructor at all,
-which means that we would lose the entire specification of this function
-!!!
-</p>
-
-<p>
-In fact, I found with further investigation, if we follow
-704 to remove 23.3.2.1 we
-</p>
-<ul>
-<li>
-have no semantics for
-  <tt>ContType c(num)</tt>
-</li>
-<li>
-have no complexity and no allocator specification for
-  <tt>ContType c(num,val)</tt>
-</li>
-<li>
-have no semantics for
-  <tt>ContType c(num,val,alloc)</tt>
-</li>
-<li>
-- have no complexity and no allocator specification for
-  <tt>ContType c(beg,end)</tt>
-</li>
-<li>
-- have no semantics for
-  <tt>ContType c(beg,end,alloc)</tt>
-</li>
-<li>
-- have different wording (which might or might not give
- the same guarantees) for the <tt>assign</tt> functions
-</li>
-</ul>
-
-<p>
-because all these guarantees are given in the removed
-section but nowhere else (as far as I saw).
-</p>
-<p>
-Looks to me that 704 need a significant review before we
-take that change, because chances are high that there
-are similar flaws in other proposed changes there
-(provided I am not missing anything).
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-Removed the parts from the proposed wording that removed existing sections,
-and set to Ready for Pittsburgh.
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2776.pdf">N2776</a>.
-</p></blockquote>
-
-<p>
-This rationale is obsolete. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
- 
-<p>
-Change 23.2.1 [container.requirements.general]/4:
-</p>
-
-<blockquote><p>
-4 In Tables 91 and 92, <tt>X</tt> denotes a container class containing objects
-of type <tt>T</tt>, <tt>a</tt> and <tt>b</tt> denote values of type <tt>X</tt>,
-<tt>u</tt> denotes an identifier, <tt>r</tt> denotes <del>an lvalue or a const
-rvalue</del> <ins>a non-const value</ins> of type <tt>X</tt>, and <tt>rv</tt>
-denotes a non-const rvalue of type <tt>X</tt>.
-</p></blockquote>
-
-<p>
-Change the following rows in Table 91 &mdash; Container requirements
-23.2.1 [container.requirements.general]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 91 &mdash; Container requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>X::value_type</tt></td>
-<td><tt>T</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> is <tt>Destructible</tt>.</ins></td>
-<td>compile time</td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Change 23.2.1 [container.requirements.general]/10:
-</p>
-
-<blockquote>
-<p>
-Unless otherwise specified (see 23.2.4.1, 23.2.5.1, 23.3.2.3, and 23.3.6.4) all
-container types defined in this Clause meet the following additional
-requirements:
-</p>
-
-<ul>
-<li>
-<p>&hellip;</p>
-</li>
-
-<li><p>
-no <tt>erase()</tt>, <ins><tt>clear()</tt>,</ins> <tt>pop_back()</tt> or
-<tt>pop_front()</tt> function throws an exception.
-</p></li>
-
-<li>
-<p>&hellip;</p>
-</li>
-</ul>
-
-</blockquote>
-
-<p>
-Insert a new paragraph prior to 23.2.1 [container.requirements.general]/14:
-</p>
-
-<blockquote>
-<p><ins>
-The descriptions of the requirements of the type <tt>T</tt> in this section
-use the terms <tt>CopyConstructible</tt>, <tt>MoveConstructible</tt>, <i>constructible
-from <tt>*i</tt></i>, and <i>constructible from <tt>args</tt></i>.  These terms
-are equivalent to the following expression using the appropriate arguments:
-</ins></p>
-
-<blockquote><pre><ins>
-allocator_traits&lt;allocator_type&gt;::construct(x.get_allocator(), q, args...);
-</ins></pre></blockquote>
-
-<p><ins>
-where <tt>x</tt> is a non-const lvalue of some container type <tt>X</tt> and
-<tt>q</tt> has type <tt>X::value_type*</tt>.
-</ins></p>
-
-<p><ins>
-[<i>Example:</i> The container is going to move construct a <tt>T</tt>, so will
-call:
-</ins></p>
-
-<blockquote><pre><ins>
-allocator_traits&lt;allocator_type&gt;::construct(get_allocator(), q, std::move(t));
-</ins></pre></blockquote>
-
-<p><ins>
-The default implementation of construct will call:
-</ins></p>
-
-<blockquote><pre><ins>
-::new (q) T(std::forward&lt;T&gt;(t)); // where forward is the same as move here, cast to rvalue
-</ins></pre></blockquote>
-
-<p><ins>
-But the allocator author may override the above definition of <tt>construct</tt>
-and do the construction of <tt>T</tt> by some other means. &mdash; <i>end
-example</i>]
-</ins></p>
-
-<p>
-14 ...
-</p>
-</blockquote>
-
-<p>
-Add to 23.2.1 [container.requirements.general]/14:
-</p>
-
-<blockquote><p>
-14 In Table 93, <tt>X</tt> denotes an allocator-aware container class with a
-<tt>value_type</tt> of <tt>T</tt> using allocator of type <tt>A</tt>, <tt>u</tt>
-denotes a variable, <ins><tt>a</tt> and <tt>b</tt> denote non-const lvalues of
-type <tt>X</tt>,</ins> <tt>t</tt> denotes an lvalue or a const rvalue of type
-<tt>X</tt>, <tt>rv</tt> denotes a non-const rvalue of type <tt>X</tt>,
-<tt>m</tt> is a value of type <tt>A</tt>, and <tt>Q</tt> is an allocator type.
-</p></blockquote>
-
-<p>
-Change or add the following rows in Table 93 &mdash; Allocator-aware container
-requirements in 23.2.1 [container.requirements.general]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 93 &mdash; Allocator-aware container requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>X(t, m)<br/>X u(t, m);</tt></td>
-<td></td>
-<td><ins><i>Requires:</i> <tt>T</tt> is <tt>CopyConstructible</tt>.</ins><br/>
-post: <tt>u == t</tt>,<br/>
-<tt>get_allocator() == m</tt></td>
-<td>linear</td>
-</tr>
-
-<tr>
-<td><tt>X(rv, m)<br/>X u(rv, m);</tt></td>
-<td></td>
-<td><ins><i>Requires:</i> <tt>T</tt> is <tt>MoveConstructible</tt>.</ins><br/>
-post: <tt>u</tt> shall have the same elements, or copies of the elements, that
-<tt>rv</tt> had before this construction,<br/>
-<tt>get_allocator() == m</tt></td>
-<td>constant if <tt>m == rv.get_allocator()</tt>, otherwise linear</td>
-</tr>
-
-<tr>
-<td><ins><tt>a = t</tt></ins></td>
-<td><ins><tt>X&amp;</tt></ins></td>
-<td><ins><i>Requires:</i> <tt>T</tt> is <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt><br/>
-post: <tt>a == t</tt>.</ins></td>
-<td><ins>linear</ins></td>
-</tr>
-
-<tr>
-<td><ins><tt>a = rv</tt></ins></td>
-<td><ins><tt>X&amp;</tt></ins></td>
-<td><ins><i>Requires:</i> If <tt>allocator_traits&lt; allocator_type &gt;
-::propagate_on_container_move_assignment ::value</tt> is <tt>false</tt>,
-<tt>T</tt> is <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.<br/>
-All existing elements of <tt>a</tt> are either move assigned
-<ins>to</ins> or destroyed.<br/>
-<tt>a</tt> shall be equal to the value that <tt>rv</tt> had before this
-assignment</ins></td>
-<td><ins>linear</ins></td>
-</tr>
-
-<tr>
-<td><ins><tt>a.swap(b);</tt></ins></td>
-<td><ins><tt>void</tt></ins></td>
-<td><ins>exchanges the contents of <tt>a</tt> and <tt>b</tt></ins></td>
-<td><ins>constant</ins></td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Change the following rows in Table 94 &mdash; Sequence container requirements
-(in addition to container) in 23.2.3 [sequence.reqmts]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 94 &mdash; Sequence container requirements (in addition to
-container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-</tr>
-
-<tr>
-<td><tt>X(i, j)<br/>X a(i, j)</tt></td>
-<td></td>
-<td><i>Requires:</i> <del>If the iterator's dereference operation returns an
-lvalue or a const rvalue, <tt>T</tt> shall be <tt>CopyConstructible</tt>.</del>
-<ins><tt>T</tt> shall be constructible from <tt>*i</tt>.</ins><br/>
-<ins>If the iterator does not meet the forward iterator requirements (24.2.5 [forward.iterators]), then <tt>vector</tt> also requires <tt>T</tt> to
-be <tt>MoveConstructible</tt>.</ins><br/>
-Each iterator in the range <tt>[i,j)</tt> shall be dereferenced exactly
-once.<br/>
-post: <tt>size() ==</tt> distance between <tt>i</tt> and <tt>j</tt><br/>
-Constructs a sequence container equal to the range <tt>[i, j)</tt></td>
-</tr>
-
-<tr>
-<td><tt>a = il;</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> is <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt>.</ins><br/>
-<del><tt>a = X(il);</tt></del><br/>
-<ins>Assigns the range <tt>[il.begin(), il.end())</tt> into <tt>a</tt>.  All
-existing elements of <tt>a</tt> are either assigned or destroyed.</ins><br/>
-<del>r</del><ins>R</ins>eturn<ins>s</ins> <tt>*this;</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.emplace(p, args);</tt></td>
-<td><tt>iterator</tt></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T,
-Args&gt;</tt>.</del> <ins><tt>T</tt> is constructible from <tt>args</tt>. 
-<tt>vector</tt> and <tt>deque</tt> also require <tt>T</tt> to be
-<tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.</ins> Inserts an object
-of type <tt>T</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> <ins>before <tt>p</tt></ins>.</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(p, t);</tt></td>
-<td><tt>iterator</tt></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, Args&gt;</tt> and
-<tt>T</tt> shall be <tt>CopyAssignable</tt>.</del> <ins><tt>T</tt> shall be
-<tt>CopyConstructible</tt>. <tt>vector</tt> and <tt>deque</tt> also require
-<tt>T</tt> to be <tt>CopyAssignable</tt>.</ins> Inserts a copy <tt>t</tt> before
-<tt>p</tt>.</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(p, rv);</tt></td>
-<td><tt>iterator</tt></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T,
-T&amp;&amp;&gt;</tt> and <tt>T</tt> shall be <tt>MoveAssignable</tt>.</del>
-<ins><tt>T</tt> shall be <tt>MoveConstructible</tt>. <tt>vector</tt> and
-<tt>deque</tt> also require <tt>T</tt> to be <tt>MoveAssignable</tt>.</ins>
-Inserts a copy <tt>rv</tt> before <tt>p</tt>.</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(p, i, j)</tt></td>
-<td><tt>iterator</tt></td>
-<td><i>Requires:</i> <del>If the iterator's dereference operation returns an
-lvalue or a const rvalue, <tt>T</tt> shall be <tt>CopyConstructible</tt>.</del>
-<ins><tt>T</tt> shall be constructible from <tt>*i</tt>.</ins><br/> <ins>If the
-iterator does not meet the forward iterator requirements (24.2.5 [forward.iterators]), then <tt>vector</tt> also requires <tt>T</tt> to
-be <tt>MoveConstructible</tt> and  <tt>MoveAssignable</tt>.</ins><br/> Each
-iterator in the range <tt>[i,j)</tt> shall be dereferenced exactly once.<br/>
-pre: <tt>i</tt> and <tt>j</tt> are not iterators into <tt>a</tt>.<br/> Inserts
-copies of elements in <tt>[i, j)</tt> before <tt>p</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.erase(q);</tt></td>
-<td><tt>iterator</tt></td>
-<td><i>Requires:</i> <del><tt>T</tt> and <tt>T</tt> shall be
-<tt>MoveAssignable</tt>.</del> <ins><tt>vector</tt> and <tt>deque</tt> require
-<tt>T</tt> to be <tt>MoveAssignable</tt>.</ins> Erases the element pointed to by
-<tt>q</tt>.</td>
-</tr>
-
-<tr>
-<td><tt>a.erase(q1, q2);</tt></td>
-<td><tt>iterator</tt></td>
-<td><i>Requires:</i> <del><tt>T</tt> and <tt>T</tt> shall be
-<tt>MoveAssignable</tt>.</del> <ins><tt>vector</tt> and <tt>deque</tt> require
-<tt>T</tt> to be <tt>MoveAssignable</tt>.</ins> Erases the elements in the range
-<tt>[q1, q2)</tt>.</td>
-</tr>
-
-<tr>
-<td><tt>a.clear();</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>erase(begin(), end())</tt></del><br/>
-<ins>Destroys all elements in <tt>a</tt>. <ins>Invalidates all references,
-pointers, and iterators referring to the elements of <tt>a</tt> and may
-invalidate the past-the-end iterator.</ins><br/></ins>
-post: <tt><del>size() == 0</del> <ins>a.empty() == true</ins></tt></td>
-</tr>
-
-<tr>
-<td><tt>a.assign(i, j)</tt></td>
-<td><tt>void</tt></td>
-<td><i>Requires:</i> <del>If the iterator's dereference operation returns an
-lvalue or a const rvalue, <tt>T</tt> shall be <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt>.</del>
-<ins><tt>T</tt> shall be constructible and assignable from <tt>*i</tt>.  If the
-iterator does not meet the forward iterator requirements (24.2.5 [forward.iterators]), then <tt>vector</tt> also requires <tt>T</tt> to
-be <tt>MoveConstructible</tt>.</ins><br/>
-Each iterator in the range <tt>[i,j)</tt> shall be dereferenced exactly
-once.<br/>
-pre: <tt>i</tt>, <tt>j</tt> are not iterators into <tt>a</tt>.<br/>
-Replaces elements in <tt>a</tt> with a copy of <tt>[i, j)</tt>.</td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Change the following rows in Table 95 &mdash; Optional sequence container operations
-in 23.2.3 [sequence.reqmts]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 95 &mdash; Optional sequence container operations</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Container</th>
-</tr>
-
-<tr>
-<td><tt>a.emplace_front(args)</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.emplace(a.begin(), std::forward&lt;Args&gt;(args)...)</tt></del><br/>
-<ins>Prepends an object of type <tt>T</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt>.</ins><br/>
-<i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, Args&gt;</tt></del>
-<ins><tt>T</tt> shall be constructible from <tt>args</tt>.</ins></td>
-<td><tt>list</tt>, <tt>deque</tt>, <tt>forward_list</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.emplace_back(args)</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.emplace(a.end(), std::forward&lt;Args&gt;(args)...)</tt></del><br/>
-<ins>Appends an object of type <tt>T</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt>.</ins><br/>
-<i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, Args&gt;</tt></del>
-<ins><tt>T</tt> shall be constructible from <tt>args</tt>. <tt>vector</tt> also
-requires <tt>T</tt> to be <tt>MoveConstructible</tt>.</ins></td>
-<td><tt>list</tt>, <tt>deque</tt>, <tt>vector</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.push_front(t)</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.insert(a.begin(), t)</tt></del><br/>
-<ins>Prepends a copy of <tt>t</tt>.</ins><br/>
-<i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, T&gt;</tt> and
-<tt>T</tt> shall be <tt>CopyAssignable</tt>.</del>
-<ins><tt>T</tt> shall be <tt>CopyConstructible</tt>.</ins></td>
-<td><tt>list</tt>, <tt>deque</tt>, <tt>forward_list</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.push_front(rv)</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.insert(a.begin(), t)</tt></del><br/>
-<ins>Prepends a copy of <tt>rv</tt>.</ins><br/>
-<i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, T&amp;&amp;&gt;</tt> and
-<tt>T</tt> shall be <tt>MoveAssignable</tt>.</del>
-<ins><tt>T</tt> shall be <tt>MoveConstructible</tt>.</ins></td>
-<td><tt>list</tt>, <tt>deque</tt>, <tt>forward_list</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.push_back(t)</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.insert(a.end(), t)</tt></del><br/>
-<ins>Appends a copy of <tt>t</tt>.</ins><br/>
-<i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, T&gt;</tt> and
-<tt>T</tt> shall be <tt>CopyAssignable</tt>.</del>
-<ins><tt>T</tt> shall be <tt>CopyConstructible</tt>.</ins></td>
-<td><tt>vector</tt>, <tt>list</tt>, <tt>deque</tt>, <tt>basic_string</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.push_back(rv)</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.insert(a.end(), t)</tt></del><br/>
-<ins>Appends a copy of <tt>rv</tt>.</ins><br/>
-<i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, T, T&amp;&amp;&gt;</tt> and
-<tt>T</tt> shall be <tt>MoveAssignable</tt>.</del>
-<ins><tt>T</tt> shall be <tt>MoveConstructible</tt>.</ins></td>
-<td><tt>vector</tt>, <tt>list</tt>, <tt>deque</tt>, <tt>basic_string</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.pop_front()</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>a.erase(a.begin())</tt></del><br/>
-<ins>Destroys the first element.</ins><br/>
-<ins><i>Requires:</i> <tt>a.empty()</tt> shall be <tt>false</tt>.</ins></td>
-<td><tt>list</tt>, <tt>deque</tt>, <tt>forward_list</tt></td>
-</tr>
-
-<tr>
-<td><tt>a.pop_back()</tt></td>
-<td><tt>void</tt></td>
-<td><del><tt>{ iterator tmp = a.end();<br/>--tmp;<br/>a.erase(tmp); }</tt></del><br/>
-<ins>Destroys the last element.</ins><br/>
-<ins><i>Requires:</i> <tt>a.empty()</tt> shall be <tt>false</tt>.</ins></td>
-<td><tt>vector</tt>, <tt>list</tt>, <tt>deque</tt>, <tt>basic_string</tt></td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Insert a new paragraph prior to 23.2.4 [associative.reqmts]/7, and
-edit paragraph 7:
-</p>
-
-<blockquote>
-<p><ins>
-The associative containers meet all of the requirements of Allocator-aware
-containers (23.2.1 [container.requirements.general]), except for the
-containers <tt>map</tt> and <tt>multimap</tt>, the requirements placed on
-<tt>value_type</tt> in Table 93 apply instead directly to <tt>key_type</tt> and
-<tt>mapped_type</tt>. [<i>Note:</i> For example <tt>key_type</tt> and
-<tt>mapped_type</tt> are sometimes required to be <tt>CopyAssignable</tt> even
-though the <tt>value_type</tt> (<tt>pair&lt;const key_type,
-mapped_type&gt;</tt>) is not <tt>CopyAssignable</tt>. &mdash; <i>end note</i>]
-</ins></p>
-
-<p>
-7 In Table 96, <tt>X</tt> denotes an associative container class, a denotes a
-value of <tt>X</tt>, <tt>a_uniq</tt> denotes a value of <tt>X</tt> when
-<tt>X</tt> supports unique keys, <tt>a_eq</tt> denotes a value of <tt>X</tt>
-when <tt>X</tt> supports multiple keys, <tt>u</tt> denotes an identifier,
-<del><tt>r</tt> denotes an lvalue or a const rvalue of type <tt>X</tt>,
-<tt>rv</tt> denotes a non-const rvalue of type <tt>X</tt>,</del> <tt>i</tt> and
-<tt>j</tt> satisfy input iterator requirements and refer to elements implicitly
-convertible to <tt>value_type</tt>, <tt>[i,j)</tt> denotes a valid range,
-<tt>p</tt> denotes a valid const iterator to <tt>a</tt>, <tt>q</tt> denotes a
-valid dereferenceable const iterator to <tt>a</tt>, <tt>[q1, q2)</tt> denotes a
-valid range of const iterators in <tt>a</tt>, <tt>il</tt> designates an object
-of type <tt>initializer_list&lt;value_type&gt;</tt>, <tt>t</tt> denotes a value
-of <tt>X::value_type</tt>, <tt>k</tt> denotes a value of <tt>X::key_type</tt>
-and <tt>c</tt> denotes a value of type <tt>X::key_compare</tt>. <tt>A</tt>
-denotes the storage allocator used by <tt>X</tt>, if any, or
-<tt>std::allocator&lt;X::value_type&gt;</tt> otherwise, and <tt>m</tt> denotes
-an allocator of a type convertible to <tt>A</tt>. </p>
-</blockquote>
-
-<p>
-Change or add the following rows in Table 96 &mdash; Associative container
-requirements (in addition to container) in 23.2.4 [associative.reqmts]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 96 &mdash; Associative container requirements (in addition to
-container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>X::key_type</tt></td>
-<td><tt>Key</tt></td>
-<td><ins><i>Requires:</i></ins> <tt>Key</tt> is <del><tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt></del> <ins><tt>Destructible</tt></ins></td>
-<td>compile time</td>
-</tr>
-
-<tr>
-<td><ins><tt>X::mapped_type</tt> (<tt>map</tt> and <tt>multimap</tt> only)</ins></td>
-<td><ins><tt>T</tt></ins></td>
-<td><ins><i>Requires:</i> <tt>T</tt> is <tt>Destructible</tt></ins></td>
-<td><ins>compile time</ins></td>
-</tr>
-
-<tr>
-<td><tt>X(c)<br/>X a(c);</tt></td>
-<td></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, key_compare,
-key_compare&gt;</tt></del>.<br/>
-<ins><tt>key_compare</tt> is <tt>CopyConstructible</tt>.</ins><br/>
-Constructs an empty container.<br/>
-Uses a copy of <tt>c</tt> as a comparison object.</td>
-<td>constant</td>
-</tr>
-
-<tr>
-<td><tt>X()<br/>X a;</tt></td>
-<td></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, key_compare,
-key_compare&gt;</tt></del>.<br/>
-<ins><tt>key_compare</tt> is <tt>DefaultConstructible</tt>.</ins><br/>
-Constructs an empty container.<br/>
-Uses <tt>Compare()</tt> as a comparison object.</td>
-<td>constant</td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, c)<br/>X a(i, j, c);</tt></td>
-<td></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, key_compare,
-key_compare&gt;</tt></del>.<br/>
-<ins><tt>key_compare</tt> is <tt>CopyConstructible</tt>. <tt>value_type</tt>
-shall be constructible from <tt>*i</tt>.</ins><br/>
-Constructs an empty container ans inserts elements from the range <tt>[i,
-j)</tt> into it; uses <tt>c</tt> as a comparison object.</td>
-<td><tt>N</tt> log <tt>N</tt> in general (<tt>N</tt> is the distance from
-<tt>i</tt> to <tt>j</tt>); linear if <tt>[i, j)</tt> is sorted with
-<tt>value_comp()</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(i, j)<br/>X a(i, j);</tt></td>
-<td></td>
-<td><i>Requires:</i> <del><tt>ConstructibleAsElement&lt;A, key_compare,
-key_compare&gt;</tt></del>.<br/> <ins><tt>value_type</tt> shall be constructible
-from <tt>*i</tt>. <tt>key_compare</tt> is
-<tt>DefaultConstructible</tt>.</ins><br/> Same as above, but uses
-<tt>Compare()</tt> as a comparison object.</td>
-<td>same as above</td>
-</tr>
-
-<tr>
-<td><tt>a = il</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><del><tt>a = X(il);<br/>
-return *this;</tt></del><br/>
-<ins><i>Requires:</i> <tt>T</tt> is <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt>.</ins><br/>
-<ins>Assigns the range <tt>[il.begin(), il.end())</tt> into <tt>a</tt>.  All
-existing elements of <tt>a</tt> are either assigned or destroyed.</ins></td>
-<td><del>Same as <tt><tt>a = X(il)</tt></tt>.</del>
-<ins><tt>N</tt> log <tt>N</tt> in general (<tt>N</tt> is 
-<tt>il.size()</tt> added to the existing size of <tt>a</tt>); linear if
-<tt>[il.begin(), il.end())</tt> is sorted with <tt>value_comp()</tt></ins></td>
-</tr>
-
-<tr>
-<td><tt>a_uniq.emplace(args)</tt></td>
-<td><tt>pair&lt;iterator, bool&gt;</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be constructible from
-<tt>args</tt></ins><br/>
-inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> if and only if there is no element in
-the container with key equivalent to the key of <tt>t</tt>. The <tt>bool</tt>
-component of the returned pair is true if and only if the insertion takes place,
-and the iterator component of the pair points to the element with key equivalent
-to the key of <tt>t</tt>.</td>
-<td>logarithmic</td>
-</tr>
-
-<tr>
-<td><tt>a_eq.emplace(args)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be constructible from
-<tt>args</tt></ins><br/>
-inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> and returns the iterator pointing to
-the newly inserted element.</td>
-<td>logarithmic</td>
-</tr>
-
-<tr>
-<td><tt>a_uniq.insert(t)</tt></td>
-<td><tt>pair&lt;iterator, bool&gt;</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt> if
-<tt>t</tt> is a non-const rvalue expression, else <tt>T</tt> shall be
-<tt>CopyConstructible</tt>.</ins><br/>
-inserts <tt>t</tt> if and only if there is no element in the container with key
-equivalent to the key of <tt>t</tt>. The <tt>bool</tt> component of the returned
-pair is true if and only if the insertion takes place, and the iterator
-component of the pair points to the element with key equivalent to the key of
-<tt>t</tt>.</td>
-<td>logarithmic</td>
-</tr>
-
-<tr>
-<td><tt>a_eq.insert(t)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt> if
-<tt>t</tt> is a non-const rvalue expression, else <tt>T</tt> shall be
-<tt>CopyConstructible</tt>.</ins><br/>
-inserts <tt>t</tt> and returns the iterator pointing to the newly inserted
-element. If a range containing elements equivalent to <tt>t</tt> exists in
-<tt>a_eq</tt>, <tt>t</tt> is inserted at the end of that range.</td>
-<td>logarithmic</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(p, t)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt> if
-<tt>t</tt> is a non-const rvalue expression, else <tt>T</tt> shall be
-<tt>CopyConstructible</tt>.</ins><br/>
-inserts <tt>t</tt> if and only if there is no element with key equivalent to the
-key of <tt>t</tt> in containers with unique keys; always inserts <tt>t</tt> in
-containers with equivalent keys; always returns the iterator pointing to the
-element with key equivalent to the key of <tt>t</tt>. <tt>t</tt> is inserted as
-close as possible to the position just prior to <tt>p</tt>.</td>
-<td>logarithmic in general, but amortized constant if <tt>t</tt> is inserted
-right before <tt>p</tt>.</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(i, j)</tt></td>
-<td><tt>void</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be
-constructible from <tt>*i</tt>.</ins><br/>
-pre: <tt>i</tt>, <tt>j</tt> are not iterators into <tt>a</tt>. inserts each
-element from the range <tt>[i,j)</tt> if and only if there is no element with
-key equivalent to the key of that element in containers with unique keys; always
-inserts that element in containers with equivalent keys.</td>
-<td>N log(size() + N ) (N is the distance from i to j)</td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Insert a new paragraph prior to 23.2.5 [unord.req]/9:
-</p>
-
-<blockquote>
-<p><ins>
-The unordered associative containers meet all of the requirements of
-Allocator-aware containers (23.2.1 [container.requirements.general]),
-except for the containers <tt>unordered_map</tt> and <tt>unordered_multimap</tt>,
-the requirements placed on <tt>value_type</tt> in Table 93 apply instead
-directly to <tt>key_type</tt> and <tt>mapped_type</tt>. [<i>Note:</i> For
-example <tt>key_type</tt> and <tt>mapped_type</tt> are sometimes required to be
-<tt>CopyAssignable</tt> even though the <tt>value_type</tt> (<tt>pair&lt;const
-key_type, mapped_type&gt;</tt>) is not <tt>CopyAssignable</tt>. &mdash; <i>end
-note</i>]
-</ins></p>
-
-<p>
-9 ...
-</p>
-</blockquote>
-
-<p>
-Change or add the following rows in Table 98 &mdash; Unordered associative
-container requirements (in addition to container) in 23.2.5 [unord.req]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 98 &mdash; Unordered associative
-container requirements (in addition to container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>X::key_type</tt></td>
-<td><tt>Key</tt></td>
-<td><ins><i>Requires:</i></ins> <tt>Key</tt> shall be <del><tt>CopyAssignable</tt> and
-<tt>CopyConstructible</tt></del> <ins><tt>Destructible</tt></ins></td>
-<td>compile time</td>
-</tr>
-
-<tr>
-<td><ins><tt>X::mapped_type</tt> (<tt>unordered_map</tt> and
-<tt>unordered_multimap</tt> only)</ins></td>
-<td><ins><tt>T</tt></ins></td>
-<td><ins><i>Requires:</i><tt>T</tt> is <tt>Destructible</tt></ins></td>
-<td><ins>compile time</ins></td>
-</tr>
-
-<tr>
-<td><tt>X(n, hf, eq)<br/>X a(n, hf, eq)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>hasher</tt>  and <tt>key_equal</tt> are
-<tt>CopyConstructible</tt>.</ins> Constructs an empty container with at least
-<tt>n</tt> buckets, using <tt>hf</tt> as the hash function and <tt>eq</tt> as
-the key equality predicate. </td>
-<td><tt>O(N)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(n, hf)<br/>X a(n, hf)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>hasher</tt> is <tt>CopyConstructible</tt> and 
-<tt>key_equal</tt> is <tt>DefaultConstructible</tt>.</ins> Constructs an empty
-container with at least <tt>n</tt> buckets, using <tt>hf</tt> as the hash
-function and <tt>key_equal()</tt> as the key equality predicate.</td>
-<td><tt>O(N)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(n)<br/>X a(n)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>hasher</tt>  and <tt>key_equal</tt> are
-<tt>DefaultConstructible</tt>.</ins> Constructs an empty container with at least
-<tt>n</tt> buckets, using <tt>hasher()</tt> as the hash function and <tt>key_equal()</tt> as
-the key equality predicate. </td>
-<td><tt>O(N)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X()<br/>X a</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>hasher</tt>  and <tt>key_equal</tt> are
-<tt>DefaultConstructible</tt>.</ins> Constructs an empty container an unspecified number of buckets,
-using <tt>hasher()</tt> as the hash function and <tt>key_equal()</tt> as
-the key equality predicate. </td>
-<td>constant</td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, n, hf, eq)<br/>X a(i, j, n, hf, eq)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>value_type</tt> is constructible from
-<tt>*i</tt>. <tt>hasher</tt>  and <tt>key_equal</tt> are
-<tt>CopyConstructible</tt>.</ins><br/>
-Constructs an empty container with at least <tt>n</tt> buckets, using
-<tt>hf</tt> as the hash function and <tt>eq</tt> as the key equality predicate,
-and inserts elements from <tt>[i, j)</tt> into it.</td>
-<td>Average case <tt>O(N)</tt> (<tt>N</tt> is <tt>distance(i, j)</tt>), worst
-case <tt>O(N<sup>2</sup>)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, n, hf)<br/>X a(i, j, n, hf)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>value_type</tt> is constructible from <tt>*i</tt>.
-<tt>hasher</tt> is <tt>CopyConstructible</tt> and <tt>key_equal</tt> is
-<tt>DefaultConstructible</tt>.</ins><br/> Constructs an empty container with at
-least <tt>n</tt> buckets, using <tt>hf</tt> as the hash function and
-<tt>key_equal()</tt> as the key equality predicate, and inserts elements from
-<tt>[i, j)</tt> into it.</td>
-<td>Average case <tt>O(N)</tt> (<tt>N</tt> is <tt>distance(i, j)</tt>), worst
-case <tt>O(N<sup>2</sup>)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(i, j, n)<br/>X a(i, j, n)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>value_type</tt> is constructible from <tt>*i</tt>.
-<tt>hasher</tt> and <tt>key_equal</tt> are
-<tt>DefaultConstructible</tt>.</ins><br/> Constructs an empty container with at
-least <tt>n</tt> buckets, using <tt>hasher()</tt> as the hash function and
-<tt>key_equal()</tt> as the key equality predicate, and inserts elements from
-<tt>[i, j)</tt> into it.</td>
-<td>Average case <tt>O(N)</tt> (<tt>N</tt> is <tt>distance(i, j)</tt>), worst
-case <tt>O(N<sup>2</sup>)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(i, j)<br/>X a(i, j)</tt></td>
-<td><tt>X</tt></td>
-<td><ins><i>Requires:</i> <tt>value_type</tt> is constructible from <tt>*i</tt>.
-<tt>hasher</tt> and <tt>key_equal</tt> are
-<tt>DefaultConstructible</tt>.</ins><br/> Constructs an empty container with an
-unspecified number of buckets, using <tt>hasher()</tt> as the hash function and
-<tt>key_equal()</tt> as the key equality predicate, and inserts elements from
-<tt>[i, j)</tt> into it.</td>
-<td>Average case <tt>O(N)</tt> (<tt>N</tt> is <tt>distance(i, j)</tt>), worst
-case <tt>O(N<sup>2</sup>)</tt></td>
-</tr>
-
-<tr>
-<td><tt>X(b)<br/>X a(b)</tt></td>
-<td><tt>X</tt></td>
-<td>Copy constructor. In addition to the <del>contained elements</del>
-<ins>requirements of Table 93 (23.2.1 [container.requirements.general])</ins>, copies the hash function,
-predicate, and maximum load factor.</td>
-<td>Average case linear in <tt>b.size()</tt>, worst case quadratic.</td>
-</tr>
-
-<tr>
-<td><tt>a = b</tt></td>
-<td><tt>X&amp;</tt></td>
-<td>Copy assignment operator. In addition to the <del>contained elements</del>
-<ins>requirements of Table 93 (23.2.1 [container.requirements.general])</ins>, copies the hash function,
-predicate, and maximum load factor.</td>
-<td>Average case linear in <tt>b.size()</tt>, worst case quadratic.</td>
-</tr>
-
-<tr>
-<td><tt>a = il</tt></td>
-<td><tt>X&amp;</tt></td>
-<td><del><tt>a = X(il); return *this;</tt></del><br/>
-<ins><i>Requires:</i> <tt>T</tt> is <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt>.</ins><br/>
-<ins>Assigns the range <tt>[il.begin(), il.end())</tt> into <tt>a</tt>.  All
-existing elements of <tt>a</tt> are either assigned or destroyed.</ins></td>
-<td>Average case linear in <tt>il.size()</tt>, worst case quadratic.</td>
-</tr>
-
-<tr>
-<td><tt>a_uniq.emplace(args)</tt></td>
-<td><tt>pair&lt;iterator, bool&gt;</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be constructible from
-<tt>args</tt></ins><br/>
-inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> if and only if there is no element in
-the container with key equivalent to the key of <tt>t</tt>. The <tt>bool</tt>
-component of the returned pair is true if and only if the insertion takes place,
-and the iterator component of the pair points to the element with key equivalent
-to the key of <tt>t</tt>.</td>
-<td>Average case O(1), worst case O(<tt>a_uniq.size()</tt>).</td>
-</tr>
-
-<tr>
-<td><tt>a_eq.emplace(args)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be constructible from
-<tt>args</tt></ins><br/>
-inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> and returns the iterator pointing to
-the newly inserted element.</td>
-<td>Average case O(1), worst case O(<tt>a_eq.size()</tt>).</td>
-</tr>
-
-<tr>
-<td><tt>a.emplace_hint(p, args)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be constructible from
-<tt>args</tt></ins><br/>
-equivalent to <tt>a.emplace( std::forward&lt;Args&gt;(args)...)</tt>. Return
-value is an iterator pointing to the element with the key equivalent to the
-newly inserted element. The <tt>const_iterator p</tt> is a hint pointing to
-where the search should start. Implementations are permitted to ignore the
-hint.</td>
-<td>Average case O(1), worst case O(<tt>a.size()</tt>).</td>
-</tr>
-
-<tr>
-<td><tt>a_uniq.insert(t)</tt></td>
-<td><tt>pair&lt;iterator, bool&gt;</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt> if
-<tt>t</tt> is a non-const rvalue expression, else <tt>T</tt> shall be
-<tt>CopyConstructible</tt>.</ins><br/>
-Inserts <tt>t</tt> if and only if there is no element in the container with key
-equivalent to the key of <tt>t</tt>. The <tt>bool</tt> component of the returned
-pair indicates whether the insertion takes place, and the iterator component
-points to the element with key equivalent to the key of <tt>t</tt>.</td>
-<td>Average case O(1), worst case O(<tt>a_uniq.size()</tt>).</td>
-</tr>
-
-<tr>
-<td><tt>a_eq.insert(t)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt> if
-<tt>t</tt> is a non-const rvalue expression, else <tt>T</tt> shall be
-<tt>CopyConstructible</tt>.</ins><br/>
-Inserts <tt>t</tt>, and returns an iterator pointing to the newly inserted
-element.</td>
-<td>Average case O(1), worst case O(<tt>a_uniq.size()</tt>).</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(q, t)</tt></td>
-<td><tt>iterator</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt> if
-<tt>t</tt> is a non-const rvalue expression, else <tt>T</tt> shall be
-<tt>CopyConstructible</tt>.</ins><br/>
-Equivalent to <tt>a.insert(t)</tt>. Return value is an iterator pointing to the
-element with the key equivalent to that of <tt>t</tt>. The iterator <tt>q</tt>
-is a hint pointing to where the search should start. Implementations are
-permitted to ignore the hint.</td>
-<td>Average case O(1), worst case O(<tt>a_uniq.size()</tt>).</td>
-</tr>
-
-<tr>
-<td><tt>a.insert(i, j)</tt></td>
-<td><tt>void</tt></td>
-<td><ins><i>Requires:</i> <tt>T</tt> shall be
-constructible from <tt>*i</tt>.</ins><br/>
-Pre: <tt>i</tt> and <tt>j</tt> are not iterators in <tt>a</tt>. Equivalent to
-<tt>a.insert(t)</tt> for each element in <tt>[i,j)</tt>.</td>
-<td>Average case O(<tt>N</tt>), where <tt>N</tt> is <tt>distance(i, j)</tt>.
-Worst case O(<tt>N * a.size()</tt>).</td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Change 23.3.4 [forwardlist]/2:
-</p>
-
-<blockquote><p>
-2 A <tt>forward_list</tt> satisfies all of the requirements of a container
-(table 91), except that the <tt>size()</tt> member function is not provided.
-<ins>A <tt>forward_list</tt> also satisfies all of the requirements of an
-allocator-aware container (table 93).  And <tt>forward_list</tt> provides the
-<tt>assign</tt> member functions as specified in Table 94, Sequence container
-requirements, and several of the optional sequence container requirements (Table
-95).</ins>
-Descriptions are provided here only for operations on <tt>forward_list</tt> that
-are not described in that table or for operations where there is additional
-semantic information.
-</p></blockquote>
-
-<p>
-Add a new paragraph after 23.3.4.5 [forwardlist.modifiers]/23:
-</p>
-
-<blockquote><pre>
-void clear();
-</pre>
-
-<blockquote>
-<p>
-23 <i>Effects:</i> Erases all elements in the range <tt>[begin(),end())</tt>.
-</p>
-<p><ins>
-<i>Remarks:</i> Does not invalidate past-the-end iterators.
-</ins></p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 23.3.6.3 [vector.capacity]/13:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, const T&amp; c);
-</pre>
-<blockquote><p>
-13 <i>Requires:</i> <ins><tt>T</tt> shall be <tt>CopyConstructible</tt>.</ins>
-If <tt>value_type</tt> has a move constructor, that constructor shall not throw
-any exceptions.
-</p></blockquote>
-</blockquote>
-
-<p>
-In 23.5.6 [unord.set] and 23.5.7 [unord.multiset] substitute
-"<tt>Key</tt>" for "<tt>Value</tt>".
-</p>
-
-<blockquote>
-<p><i>[
-The above substitution is normative as it ties into the requirements table.
-]</i></p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="705"></a>705. type-trait <tt>decay</tt> incompletely specified</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2007-07-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current working draft has a type-trait <tt>decay</tt> in 20.10.7.6 [meta.trans.other].
-</p>
-
-<p>
-Its use is to turn C++03 pass-by-value parameters into efficient C++0x
-pass-by-rvalue-reference parameters. However, the current definition
-introduces an incompatible change where the cv-qualification of the
-parameter type is retained. The deduced type should loose such
-cv-qualification, as pass-by-value does.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.10.7.6 [meta.trans.other] change the last sentence:
-</p>
-
-<blockquote><p>
-Otherwise the  member typedef <tt>type</tt> equals <tt><ins>remove_cv&lt;</ins>U<ins>&gt;::type</ins></tt>.
-</p></blockquote>
-
-<p>
-In 20.4.2.4 [tuple.creation]/1 change:
-</p>
-
-<blockquote><p>
-<del>where each <tt>Vi</tt> in <tt>VTypes</tt> is <tt>X&amp;</tt> if, for the
-corresponding type <tt>Ti</tt> in <tt>Types</tt>,
-<tt>remove_cv&lt;remove_reference&lt;Ti&gt;::type&gt;::type</tt> equals
-<tt>reference_wrapper&lt;X&gt;</tt>, otherwise <tt>Vi</tt> is
-<tt>decay&lt;Ti&gt;::type</tt>.</del>
-<ins>Let <tt>Ui</tt> be <tt>decay&lt;Ti&gt;::type</tt> for each
-<tt>Ti</tt> in <tt>Types</tt>. Then each <tt>Vi</tt> in <tt>VTypes</tt>
-is <tt>X&amp;</tt> if <tt>Ui</tt> equals
-<tt>reference_wrapper&lt;X&gt;</tt>, otherwise <tt>Vi</tt> is
-<tt>Ui</tt>.</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="706"></a>706. <tt>make_pair()</tt> should behave as <tt>make_tuple()</tt> wrt. <tt>reference_wrapper()</tt></h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2007-07-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current draft has <tt>make_pair()</tt> in 20.3 [pairs]/16
-and <tt>make_tuple()</tt> in 20.4.2.4 [tuple.creation].
-<tt>make_tuple()</tt> detects the presence of
-<tt>reference_wrapper&lt;X&gt;</tt> arguments and "unwraps" the reference in
-such cases. <tt>make_pair()</tt> would OTOH create a
-<tt>reference_wrapper&lt;X&gt;</tt> member. I suggest that the two
-functions are made to behave similar in this respect to minimize
-confusion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.2 [utility] change the synopsis for make_pair() to read
-</p>
-
-<blockquote><pre>
-template &lt;class T1, class T2&gt;
-  pair&lt;<del>typename decay&lt;T1&gt;::type</del> <ins>V1</ins>, <del>typename decay&lt;T2&gt;::type</del> <ins>V2</ins>&gt; make_pair(T1&amp;&amp;, T2&amp;&amp;);
-</pre></blockquote>
-
-<p>
-In 20.3 [pairs]/16 change the declaration to match the above synopsis.
-Then change the 20.3 [pairs]/17 to:
-</p>
-
-<blockquote>
-<p>
-<i>Returns:</i> <tt>pair&lt;<del>typename decay&lt;T1&gt;::type</del> <ins>V1</ins>,<del>typename decay&lt;T2&gt;::type</del> <ins>V2</ins>&gt;(forward&lt;T1&gt;(x),forward&lt;T2&gt;(y))</tt> <ins>where <tt>V1</tt> and
-<tt>V2</tt> are determined as follows: Let <tt>Ui</tt> be
-<tt>decay&lt;Ti&gt;::type</tt> for each <tt>Ti</tt>. Then each
-<tt>Vi</tt> is <tt>X&amp;</tt> if <tt>Ui</tt> equals
-<tt>reference_wrapper&lt;X&gt;</tt>, otherwise <tt>Vi</tt> is
-<tt>Ui</tt>.</ins>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="709"></a>709. <tt>char_traits::not_eof</tt> has wrong signature</h3>
-<p><b>Section:</b> 21.2.3 [char.traits.specializations] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2007-08-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#char.traits.specializations">issues</a> in [char.traits.specializations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The changes made for <tt>constexpr</tt> in 21.2.3 [char.traits.specializations] have 
-not only changed the <tt>not_eof</tt> function from pass by const reference to 
-pass by value, it has also changed the parameter type from <tt>int_type</tt> to 
-<tt>char_type</tt>.
-</p>
-<p>
-This doesn't work for type <tt>char</tt>, and is inconsistent with the 
-requirements in Table 56, Traits requirements, 21.2.1 [char.traits.require].
-</p>
-
-<p>
-Pete adds:
-</p>
-
-<blockquote><p>
-For what it's worth, that may not have been an intentional change. 
-N2349, which detailed the changes for adding constant expressions to 
-the library, has strikeout bars through the <tt>const</tt> and the <tt>&amp;</tt> that 
-surround the <tt>char_type</tt> argument, but none through <tt>char_type</tt> itself. 
-So the intention may have been just to change to pass by value, with 
-text incorrectly copied from the standard.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the signature in 21.2.3.1 [char.traits.specializations.char],
-21.2.3.2 [char.traits.specializations.char16_t], 21.2.3.3 [char.traits.specializations.char32_t],
-and 21.2.3.4 [char.traits.specializations.wchar.t] to
-</p>
-
-<blockquote><pre>
-static constexpr int_type not_eof(<del>char_type</del> <ins>int_type</ins> c);
-</pre></blockquote>
-
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Resolution: NAD editorial - up to Pete's judgment
-</p></blockquote>
-
-<p><i>[
-Post Sophia Antipolis
-]</i></p>
-
-
-<blockquote><p>
-Moved from Pending NAD Editorial to Review.  The proposed wording appears to be correct but non-editorial.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="710"></a>710. Missing postconditions</h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-08-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A discussion on
-<a href="http://groups.google.com/group/comp.std.c++/browse_frm/thread/8e89dceb35cd7971">comp.std.c++</a>
-has identified a contradiction in the <tt>shared_ptr</tt> specification.
-The <tt>shared_ptr</tt> move constructor and the cast functions are
-missing postconditions for the <tt>get()</tt> accessor.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Move to "ready", adopting the first (Peter's) proposed resolution.
-</p>
-<p>
-Note to the project editor: there is an editorial issue here. The
-wording for the postconditions of the casts is slightly awkward, and the
-editor should consider rewording "If w is the return value...", e. g. as
-"For a return value w...".
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.8.2.2.1 [util.smartptr.shared.const]:
-</p>
-
-<blockquote>
-<pre>
-shared_ptr(shared_ptr&amp;&amp; r);
-template&lt;class Y&gt; shared_ptr(shared_ptr&lt;Y&gt;&amp;&amp; r);
-</pre>
-<blockquote>
-<p>
-<i>Postconditions:</i>  <tt>*this</tt> shall contain the old value of <tt>r</tt>. <tt>r</tt>
-shall be empty. <ins><tt>r.get() == 0</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Add to 20.8.2.2.9 [util.smartptr.shared.cast]:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class T, class U&gt; shared_ptr&lt;T&gt; static_pointer_cast(shared_ptr&lt;U&gt; const&amp; r);
-</pre>
-<blockquote>
-<p>
-<ins><i>Postconditions:</i> If <tt>w</tt> is the return value,
-<tt>w.get() == static_cast&lt;T*&gt;(r.get()) &amp;&amp; w.use_count() == r.use_count()</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-template&lt;class T, class U&gt; shared_ptr&lt;T&gt; dynamic_pointer_cast(shared_ptr&lt;U&gt; const&amp; r);
-</pre>
-<blockquote>
-<p>
-<ins><i>Postconditions:</i> If <tt>w</tt> is the return value, <tt>w.get() == dynamic_cast&lt;T*&gt;(r.get())</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-template&lt;class T, class U&gt; shared_ptr&lt;T&gt; const_pointer_cast(shared_ptr&lt;U&gt; const&amp; r);
-</pre>
-<blockquote>
-<p>
-<ins><i>Postconditions:</i> If <tt>w</tt> is the return value,
-<tt>w.get() == const_cast&lt;T*&gt;(r.get()) &amp;&amp; w.use_count() == r.use_count()</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Alberto Ganesh Barbati has written an
-<a href="http://barbati.net/c++/shared_ptr.pdf">alternative proposal</a>
-where he suggests (among other things) that the casts be respecified in terms of
-the aliasing constructor as follows:
-</p>
-
-<p>
-Change 20.8.2.2.9 [util.smartptr.shared.cast]:
-</p>
-
-<blockquote>
-<p>
--2- <i>Returns:</i> <del>If <tt>r</tt> is empty, an <tt>empty
-shared_ptr&lt;T&gt;;</tt> otherwise, a <tt>shared_ptr&lt;T&gt;</tt>
-object that stores <tt>static_cast&lt;T*&gt;(r.get())</tt> and shares ownership with
-<tt>r</tt>.</del> <ins><tt>shared_ptr&lt;T&gt;(r, static_cast&lt;T*&gt;(r.get())</tt>.</ins>
-</p>
-</blockquote>
-
-<blockquote>
-<p>
--6- <i>Returns:</i>
-</p>
-<ul>
-<li><del>When <tt>dynamic_cast&lt;T*&gt;(r.get())</tt> returns a nonzero value,
-a <tt>shared_ptr&lt;T&gt;</tt> object that stores a copy 
-of it and <i>shares ownership</i> with <tt>r</tt>;</del></li>
-<li><del>Otherwise, an <i>empty</i> <tt>shared_ptr&lt;T&gt;</tt> object.</del></li>
-<li><ins>If <tt>p = dynamic_cast&lt;T*&gt;(r.get())</tt> is a non-null pointer, <tt>shared_ptr&lt;T&gt;(r, p);</tt></ins></li>
-<li><ins>Otherwise, <tt>shared_ptr&lt;T&gt;()</tt>.</ins></li>
-</ul>
-</blockquote>
-
-<blockquote>
-<p>
--10- <i>Returns:</i> <del>If <tt>r</tt> is empty, an <tt>empty
-shared_ptr&lt;T&gt;;</tt> otherwise, a <tt>shared_ptr&lt;T&gt;</tt>
-object that stores <tt>const_cast&lt;T*&gt;(r.get())</tt> and shares ownership with
-<tt>r</tt>.</del> <ins><tt>shared_ptr&lt;T&gt;(r, const_cast&lt;T*&gt;(r.get())</tt>.</ins>
-</p>
-</blockquote>
-
-<p>
-This takes care of the missing postconditions for the casts by bringing
-in the aliasing constructor postcondition "by reference".
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="711"></a>711. Contradiction in empty <tt>shared_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2.5 [util.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2007-08-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.obs">issues</a> in [util.smartptr.shared.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A discussion on
-<a href="http://groups.google.com/group/comp.std.c++/browse_frm/thread/8e89dceb35cd7971">comp.std.c++</a>
-has identified a contradiction in the <tt>shared_ptr</tt> specification.
-The note:
-</p>
-
-<blockquote><p>
-[ <i>Note:</i> this constructor allows creation of an empty shared_ptr instance with a non-NULL stored pointer.
--end note ]
-</p></blockquote>
-
-<p>
-after the aliasing constructor
-</p>
-
-<blockquote><pre>
-template&lt;class Y&gt; shared_ptr(shared_ptr&lt;Y&gt; const&amp; r, T *p);
-</pre></blockquote>
-
-<p>
-reflects the intent of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2351.htm">N2351</a>
-to, well, allow the creation of an empty <tt>shared_ptr</tt>
-with a non-NULL stored pointer.
-</p>
-
-<p>
-This is contradicted by the second sentence in the Returns clause of 20.8.2.2.5 [util.smartptr.shared.obs]:
-</p>
-
-<blockquote>
-<pre>
-T* get() const;
-</pre>
-<blockquote><p>
-<i>Returns:</i> the stored pointer. Returns a null pointer if <tt>*this</tt> is empty.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Adopt option 1 and move to review, not ready.
-</p>
-<p>
-There was a lot of confusion about what an empty <tt>shared_ptr</tt> is (the term
-isn't defined anywhere), and whether we have a good mental model for how
-one behaves. We think it might be possible to deduce what the definition
-should be, but the words just aren't there. We need to open an issue on
-the use of this undefined term. (The resolution of that issue might
-affect the resolution of issue <a href="lwg-defects.html#711">711</a>.)
-</p>
-<p>
-The LWG is getting more uncomfortable with the aliasing proposal (N2351)
-now that we realize some of its implications, and we need to keep an eye
-on it, but there isn't support for removing this feature at this time.
-</p>
-</blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-We heard from Peter Dimov, who explained his reason for preferring solution 1.
-</p>
-<p>
-Because it doesn't seem to add anything. It simply makes the behavior
-for p = 0 undefined. For programmers who don't create empty pointers
-with p = 0, there is no difference. Those who do insist on creating them
-presumably have a good reason, and it costs nothing for us to define the
-behavior in this case.
-</p>
-<p>
-The aliasing constructor is sharp enough as it is, so "protecting" users
-doesn't make much sense in this particular case.
-</p>
-<p>
-> Do you have a use case for r being empty and r being non-null? 
-</p>
-<p>
-I have received a few requests for it from "performance-conscious"
-people (you should be familiar with this mindset) who don't like the
-overhead of allocating and maintaining a control block when a null
-deleter is used to approximate a raw pointer. It is obviously an "at
-your own risk", low-level feature; essentially a raw pointer behind a
-shared_ptr facade.
-</p>
-<p>
-We could not agree upon a resolution to the issue; some of us thought
-that Peter's description above is supporting an undesirable behavior.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-We favor option 1, move to Ready.
-</p>
-<p><i>[
-Howard:  Option 2 commented out for clarity, and can be brought back.
-]</i></p>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In keeping the N2351 spirit and obviously my preference, change 20.8.2.2.5 [util.smartptr.shared.obs]:
-</p>
-
-<blockquote>
-<pre>
-T* get() const;
-</pre>
-<blockquote><p>
-<i>Returns:</i> the stored pointer. <del>Returns a null pointer if <tt>*this</tt> is empty.</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="712"></a>712. <tt>seed_seq::size</tt> no longer useful</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Marc Paterno <b>Opened:</b> 2007-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-One of the motivations for incorporating <tt>seed_seq::size()</tt>
-was to simplify the wording
-in other parts of 26.5 [rand].
-As a side effect of resolving related issues,
-all such references
-to <tt>seed_seq::size()</tt> will have been excised.
-More importantly,
-the present specification is contradictory,
-as "The number of 32-bit units the object can deliver"
-is not the same as "the result of <tt>v.size()</tt>."
-</p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2391.pdf">N2391</a> and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>
-for some further discussion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adopt the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2423.pdf">N2423</a>.
-</p>
-
-
-<p><i>[
-Kona (2007): The LWG adopted the proposed resolution of N2423 for this issue.
-The LWG voted to accelerate this issue to Ready status to be voted into the WP at Kona.
-]</i></p>
-
-
-
-
-
-<hr>
-<h3><a name="713"></a>713. <tt>sort()</tt> complexity is too lax</h3>
-<p><b>Section:</b> 25.4.1.1 [sort] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2007-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The complexity of <tt>sort()</tt> is specified as "Approximately <tt>N
-log(N)</tt> (where <tt>N == last - first</tt> ) comparisons on the
-average", with no worst case complicity specified. The intention was to
-allow a median-of-three quicksort implementation, which is usually <tt>O(N
-log N)</tt> but can be quadratic for pathological inputs. However, there is
-no longer any reason to allow implementers the freedom to have a
-worst-cast-quadratic sort algorithm. Implementers who want to use
-quicksort can use a variant like David Musser's "Introsort" (Software
-Practice and Experience 27:983-993, 1997), which is guaranteed to be <tt>O(N
-log N)</tt> in the worst case without incurring additional overhead in the
-average case. Most C++ library implementers already do this, and there
-is no reason not to guarantee it in the standard.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 25.4.1.1 [sort], change the complexity to "O(N log N)", and remove footnote 266:
-</p>
-
-<blockquote>
-<p>
-<i>Complexity:</i> <del>Approximately</del> <ins>O(</ins><i>N</i> log(<i>N</i>)<ins>)</ins> (where <i>N</i> == <i>last</i> - <i>first</i> )
-comparisons<del> on the average</del>.<del><sup>266)</sup></del>
-</p>
-<p>
-<del><sup>266)</sup>
-If the worst case behavior is important <tt>stable_sort()</tt> (25.3.1.2) or <tt>partial_sort()</tt>
-(25.3.1.3) should be used.</del>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="714"></a>714. <tt>search_n</tt> complexity is too lax</h3>
-<p><b>Section:</b> 25.2.13 [alg.search] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2007-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.search">issues</a> in [alg.search].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The complexity for <tt>search_n</tt> (25.2.13 [alg.search] par 7) is specified as "At most
-(last - first ) * count applications of the corresponding predicate if
-count is positive, or 0 otherwise." This is unnecessarily pessimistic.
-Regardless of the value of count, there is no reason to examine any
-element in the range more than once.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the complexity to "At most (last - first) applications of the corresponding predicate".
-</p>
-
-<blockquote>
-<pre>
-template&lt;class ForwardIterator, class Size, class T&gt; 
-  ForwardIterator 
-    search_n(ForwardIterator first , ForwardIterator last , Size count , 
-             const T&amp; value ); 
-
-template&lt;class ForwardIterator, class Size, class T, 
-         class BinaryPredicate&gt; 
-  ForwardIterator 
-    search_n(ForwardIterator first , ForwardIterator last , Size count , 
-             const T&amp; value , BinaryPredicate pred );
-</pre>
-<blockquote>
-<p>
-<i>Complexity:</i> At most <tt>(last - first ) <del>* count</del></tt> applications of the corresponding predicate
-<del>if <tt>count</tt> is positive, or 0 otherwise</del>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="715"></a>715. <tt>minmax_element</tt> complexity is too lax</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2007-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The complexity for <tt>minmax_element</tt> (25.4.7 [alg.min.max] par 16) says "At most <tt>max(2 *
-(last - first ) - 2, 0)</tt> applications of the corresponding comparisons",
-i.e. the worst case complexity is no better than calling <tt>min_element</tt> and
-<tt>max_element</tt> separately. This is gratuitously inefficient. There is a
-well known technique that does better: see section 9.1 of CLRS
-(Introduction to Algorithms, by Cormen, Leiserson, Rivest, and Stein).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25.4.7 [alg.min.max] to:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class ForwardIterator&gt; 
-  pair&lt;ForwardIterator, ForwardIterator&gt; 
-    minmax_element(ForwardIterator first , ForwardIterator last); 
-template&lt;class ForwardIterator, class Compare&gt; 
-  pair&lt;ForwardIterator, ForwardIterator&gt; 
-    minmax_element(ForwardIterator first , ForwardIterator last , Compare comp);
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>make_pair(m, M)</tt>, where <tt>m</tt> is
-<del><tt>min_element(first, last)</tt> or <tt>min_element(first, last,
-comp)</tt></del> <ins>the first iterator in <tt>[first,
-last)</tt> such that no iterator in the range refers to a smaller element,</ins> and
-<ins>where</ins> <tt>M</tt> is <del><tt>max_element(first, last)</tt> or
-<tt>max_element(first, last, comp)</tt></del> <ins>the last iterator
-in <tt>[first, last)</tt> such that no iterator in the range refers to a larger element</ins>.
-</p>
-<p>
-<i>Complexity:</i> At most <del><tt>max(2 * (last - first ) - 2, 0)</tt></del>
-<ins><tt>max(&lfloor;(3/2) (N-1)&rfloor;, 0)</tt></ins> applications of the
-corresponding <del>comparisons</del> <ins>predicate, where <tt>N</tt> is <tt>distance(first, last)</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="716"></a>716. Production in [re.grammar] not actually modified</h3>
-<p><b>Section:</b> 28.13 [re.grammar] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2007-08-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.grammar">issues</a> in [re.grammar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-TR1 7.13 [tr.re.grammar]/3 and C++0x WP 28.13 [re.grammar]/3 say:
-</p>
-
-<blockquote>
-<p>
-The following productions within the ECMAScript grammar are modified as follows:
-</p>
-
-<blockquote><pre>
-CharacterClass ::
-[ [lookahead &notin; {^}] ClassRanges ]
-[ ^ ClassRanges ]
-</pre></blockquote>
-
-</blockquote>
-
-<p>
-This definition for <tt>CharacterClass</tt> appears to be exactly identical to that in ECMA-262.
-</p>
-
-<p>
-Was an actual modification intended here and accidentally omitted, or was this production accidentally included?
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree that what is specified is identical to what ECMA-262 specifies.
-Pete would like to take a bit of time to assess whether we had intended,
-but failed, to make a change.
-It would also be useful to hear from John Maddock on the issue.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove this mention of the CharacterClass production.
-</p>
-
-<blockquote><pre>
-<del>CharacterClass ::
-[ [lookahead &notin; {^}] ClassRanges ]
-[ ^ ClassRanges ]</del>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="719"></a>719. <tt>std::is_literal</tt> type traits should be provided</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#750">750</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Since the inclusion of <tt>constexpr</tt> in the standard draft N2369 we have
-a new type category "literal", which is defined in 3.9 [basic.types]/p.11:
-</p>
-
-<blockquote>
-<p>
--11- A type is a <i>literal</i> type if it is:
-</p>
-<ul>
-<li>a scalar type; or</li>
-<li><p>a class type (clause 9) with</p>
-<ul>
-<li>a trivial copy constructor,</li>
-<li>a trivial destructor,</li>
-<li>at least one constexpr constructor other than the copy constructor,</li>
-<li>no virtual base classes, and</li>
-<li>all non-static data members and base classes of literal types; or</li>
-</ul>
-</li>
-<li>an array of literal type.</li>
-</ul>
-</blockquote>
-
-<p>
-I strongly suggest that the standard provides a type traits for
-literal types in 20.10.4.3 [meta.unary.prop] for several reasons:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>To keep the traits in sync with existing types.</li>
-<li>I see many reasons for programmers to use this trait in template
-   code to provide optimized template definitions for these types,
-   see below.</li>
-<li>A user-provided definition of this trait is practically impossible
-to write portably.</li>
-</ol>
-
-<p>
-The special problem of reason (c) is that I don't see currently a
-way to portably test the condition for literal class types:
-</p>
-
-<blockquote>
-<ul>
-<li>at least one constexpr constructor other than the copy constructor,</li>
-</ul>
-</blockquote>
-
-<p><i>[
-Alisdair is considering preparing a paper listing a number of missing
-type traits, and feels that it might be useful to handle them all
-together rather than piecemeal. This would affect issue 719 and 750.
-These two issues should move to OPEN pending AM paper on type traits.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Beman, Daniel, and Alisdair will work on a paper proposing new type traits.
-</p></blockquote>
-
-<p><i>[
-Addressed in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2947.html">N2947</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.htm">N2984</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.10.2 [meta.type.synop] in the group "type properties",
-just below the line
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct is_pod;
-</pre></blockquote>
-
-<p>
-add a new one:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct is_literal;
-</pre></blockquote>
-
-<p>
-In 20.10.4.3 [meta.unary.prop], table Type Property Predicates, just
-below the line for the <tt>is_pod</tt> property add a new line:
-</p>
-
-<table border="1">
-<tr>
-<th>Template</th><th>Condition</th><th>Preconditions</th>
-</tr>
-<tr>
-<td><tt>template &lt;class T&gt; struct is_literal;</tt></td>
-<td><tt>T</tt> is a literal type (3.9)</td>
-<td><tt>T</tt> shall be a complete type, an
-array of unknown bound, or
-(possibly cv-qualified) <tt>void</tt>.</td>
-</tr>
-</table>
-
-
-
-
-
-
-<hr>
-<h3><a name="720"></a>720. Omissions in constexpr usages</h3>
-<p><b>Section:</b> 23.3.2 [array], 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol>
-<li>
-The member function <tt>bool array&lt;T,N&gt;::empty() const</tt> should be a
-<tt>constexpr</tt> because this is easily to proof and to implement following it's operational
-semantics defined by Table 87 (Container requirements) which says: <tt>a.size() == 0</tt>.
-</li>
-<li>
-The member function <tt>bool bitset&lt;N&gt;::test() const</tt> must be a
-<tt>constexpr</tt> (otherwise it would violate the specification of <tt>constexpr
-bitset&lt;N&gt;::operator[](size_t) const</tt>, because it's return clause delegates to <tt>test()</tt>).
-</li>
-<li>
-I wonder how the constructor <tt>bitset&lt;N&gt;::bitset(unsigned long)</tt> can
-be declared as a <tt>constexpr</tt>. Current implementations usually have no such <tt>bitset</tt>
-c'tor which would fulfill the requirements of a <tt>constexpr</tt> c'tor because they have a
-non-empty c'tor body that typically contains for-loops or <tt>memcpy</tt> to compute the
-initialisation. What have I overlooked here?
-</li>
-</ol>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-We handle this as two parts
-</p>
-<ol>
-<li>
-The proposed resolution is correct; move to ready.
-</li>
-<li>
-The issue points out a real problem, but the issue is larger than just
-this solution. We believe a paper is needed, applying the full new
-features of C++ (including extensible literals) to update <tt>std::bitset</tt>.
-We note that we do not consider this new work, and that is should be
-handled by the Library Working Group.
-</li>
-</ol>
-<p>
-In order to have a consistent working paper, Alisdair and Daniel produced a new wording for the resolution.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>In the class template definition of 23.3.2 [array]/p. 3 change</p>
-<blockquote><pre>
-<ins>constexpr</ins> bool empty() const;
-</pre></blockquote>
-</li>
-
-<li>
-<p>In the class template definition of 20.6 [template.bitset]/p. 1 change</p>
-<blockquote><pre>
-<ins>constexpr</ins> bool test(size_t pos ) const;
-</pre></blockquote>
-
-<p>
-and in 20.6.2 [bitset.members] change
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> bool test(size_t pos ) const;
-</pre></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="722"></a>722. Missing [c.math] functions <tt>nanf</tt> and <tt>nanl</tt></h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the listing of 26.8 [c.math], table 108: Header <tt>&lt;cmath&gt;</tt> synopsis I miss
-the following C99 functions (from 7.12.11.2):
-</p>
-
-<blockquote><pre>
-float nanf(const char *tagp);
-long double nanl(const char *tagp);
-</pre></blockquote>
-
-<p>
-(Note: These functions cannot be overloaded and they are also not
-listed anywhere else)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 26.8 [c.math], table 108, section "Functions", add <tt>nanf</tt> and <tt>nanl</tt>
-just after the existing entry <tt>nan</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="723"></a>723. <tt>basic_regex</tt> should be moveable</h3>
-<p><b>Section:</b> 28.8 [re.regex] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex">issues</a> in [re.regex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 316</b></p>
-
-<p>
-According to the current state of the standard draft, the class
-template <tt>basic_regex</tt>, as described in 28.8 [re.regex]/3, is
-neither <tt>MoveConstructible</tt> nor <tt>MoveAssignable</tt>.
-IMO it should be, because typical regex state machines tend
-to have a rather large data quantum and I have seen several
-use cases, where a factory function returns regex values,
-which would take advantage of moveabilities.
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Needs wording for the semantics, the idea is agreed upon.
-</p></blockquote>
-
-<p><i>[
-Post Summit Daniel updated wording to reflect new "swap rules".
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In the class definition of <tt>basic_regex</tt>, just below 28.8 [re.regex]/3,
-perform the following changes:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-Just after <tt>basic_regex(const basic_regex&amp;);</tt> insert:
-</p>
-
-<blockquote><pre>
-basic_regex(basic_regex&amp;&amp;);
-</pre></blockquote>
-</li>
-<li>
-<p>
-Just after <tt>basic_regex&amp; operator=(const basic_regex&amp;);</tt> insert:
-</p>
-<blockquote><pre>
-basic_regex&amp; operator=(basic_regex&amp;&amp;);
-</pre></blockquote>
-</li>
-<li>
-<p>
-Just after <tt>basic_regex&amp; assign(const basic_regex&amp; that);</tt> insert:
-</p>
-<blockquote><pre>
-basic_regex&amp; assign(basic_regex&amp;&amp; that);
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 28.8.2 [re.regex.construct], just after p.11 add the following
-new member definition:
-</p>
-<blockquote><pre>
-basic_regex(basic_regex&amp;&amp; e);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Move-constructs a <tt>basic_regex</tt> instance from <tt>e</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>flags()</tt> and <tt>mark_count()</tt> return <tt>e.flags()</tt> and
-<tt>e.mark_count()</tt>, respectively,
-that <tt>e</tt> had before construction, leaving
-<tt>e</tt> in a valid state with an unspecified value.
-</p>
-<p>
-<i>Throws:</i> nothing.
-</p>
-</blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-Also in 28.8.2 [re.regex.construct], just after p.18 add the
-following new member definition:
-</p>
-
-<blockquote><pre>
-basic_regex&amp; operator=(basic_regex&amp;&amp; e);
-</pre>
-<blockquote><p>
-<i>Effects:</i> Returns the result of <tt>assign(std::move(e))</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-In 28.8.3 [re.regex.assign], just after p. 2 add the following new
-member definition:
-</p>
-<blockquote><pre>
-basic_regex&amp; assign(basic_regex&amp;&amp; rhs);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Move-assigns a <tt>basic_regex</tt> instance from <tt>rhs</tt> and returns <tt>*this</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>flags()</tt> and <tt>mark_count()</tt> return <tt>rhs.flags()</tt>
-and <tt>rhs.mark_count()</tt>, respectively, that
-<tt>rhs</tt> had before assignment, leaving <tt>rhs</tt>
-in a valid state with an unspecified value.
-</p>
-<p>
-<i>Throws:</i> nothing.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="724"></a>724. <tt>DefaultConstructible</tt> is not defined</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2007-09-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>DefaultConstructible</tt> requirement is referenced in
-several places in the August 2007 working draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2369.pdf">N2369</a>,
-but is not defined anywhere.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Walking into the default&#47;value-initialization mess...
-</p>
-<p>
-Why two lines? Because we need both expressions to be valid.
-</p>
-<p>
-AJM not sure what the phrase "default constructed" means. This is
-unfortunate, as the phrase is already used 24 times in the library!
-</p>
-<p>
-Example: <tt>const int</tt> would not accept first line, but will accept the second.
-</p>
-<p>
-This is an issue that must be solved by concepts, but we might need to solve it independantly first.
-</p>
-<p>
-It seems that the requirements are the syntax in the proposed first
-column is valid, but not clear what semantics we need.
-</p>
-<p>
-A table where there is no post-condition seems odd, but appears to sum up our position best.
-</p>
-<p>
-At a minimum an object is declared and is destructible.
-</p>
-<p>
-Move to open, as no-one happy to produce wording on the fly.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-08-17 Daniel adds "[defaultconstructible]" to table title.  <a href="lwg-closed.html#408">408</a>
-depends upon this issue.
-]</i></p>
-
-
-<p><i>[
-2009-08-18 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Looking at the proposed table in this issue, it really needs two rows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 33: <tt>DefaultConstructible</tt> requirements [defaultconstructible]</caption>
-<tr>
-<th>expression</th><th>post-condition</th>
-</tr>
-
-<tr>
-<td><tt>T t;</tt></td><td><tt>t</tt> is default-initialized.</td>
-</tr>
-
-<tr>
-<td><tt>T{}</tt></td><td>Object of type <tt>T</tt> is value-initialized.</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Note I am using the new brace-initialization syntax that is unambiguous
-in all use cases (no most vexing parse.)
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-03 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The suggested definition <tt>T{}</tt> describing it as
-value-initialization is wrong, because it belongs to list-initialization
-which would - as the current rules are - always prefer a
-initializer-list constructor over a default-constructor. I don't
-consider this as an appropriate definition of
-<tt>DefaultConstructible</tt>. My primary suggestion is to ask core,
-whether the special case <tt>T{}</tt> (which also easily leads to
-ambiguity situations for more than one initializer-list in a class)
-would always prefer a default-constructor - if any - before considering
-an initializer-list constructor or to provide another syntax form to
-prefer value-initialization over list-initialization. If that fails I
-would fall back to suggest to use the expression <tt>T()</tt> instead of
-<tt>T{}</tt> with all it's disadvantages for the meaning of the
-expression
-</p>
-
-<blockquote><pre>
-T t();
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open. Core is looking to make Alisdair's proposed
-resolution correct.
-</p></blockquote>
-
-<p><i>[
-2010-01-24 At Alisdair's request, moved his proposal into the proposed wording
-section.  The old wording is preserved here:
-]</i></p>
-
-
-<blockquote>
-<p>
-In section 17.6.3.1 [utility.arg.requirements], before table 33, add the
-following table:
-</p>
-
-<p style='text-align:center'>Table 33: <tt>DefaultConstructible</tt> 
-requirements [defaultconstructible]</p>
-
-<table border='0' cellspacing='0' cellpadding='0'
- style='border-collapse:collapse'>
- <tr>
-  <td>
-  <p style='text-align:center'>expression</p>
-  </td>
-  <td>
-  <p style='text-align:center'>post-condition</p>
-  </td>
- </tr>
- <tr>
-  <td>
-  <p><tt>T t;</tt><br/>
-  <tt>T()</tt></p>
-  </td>
-  <td>
-  <p><tt>T</tt> is <i>default constructed.</i></p>
-  </td>
- </tr>
-</table>
-
-</blockquote>
-
-<p><i>[
-2010-02-04: Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-<blockquote><p>
-We believe concepts will solve this problem
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2774.pdf">N2774</a>).
-</p></blockquote>
-
-<p><i>[
-Rationale is obsolete.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section 17.6.3.1 [utility.arg.requirements], before table 33, add the
-following table:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 33: <tt>DefaultConstructible</tt> requirements [defaultconstructible]</caption>
-<tr>
-<th>expression</th><th>post-condition</th>
-</tr>
-
-<tr>
-<td><tt>T t;</tt></td><td>Object <tt>t</tt> is default-initialized.</td>
-</tr>
-
-<tr>
-<td><tt>T u{};</tt></td><td>Object <tt>u</tt> is value-initialized.</td>
-</tr>
-
-<tr>
-<td><tt>T()<br/>T{}</tt></td><td>A temporary object of type <tt>T</tt> is value-initialized.</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="727"></a>727. <tt>regex_replace()</tt> doesn't accept <tt>basic_string</tt>s with custom traits and allocators</h3>
-<p><b>Section:</b> 28.11.4 [re.alg.replace] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2007-09-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.alg.replace">issues</a> in [re.alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>regex_match()</tt> and <tt>regex_search()</tt> take <tt>const basic_string&lt;charT, ST,
-SA&gt;&amp;</tt>.  <tt>regex_replace()</tt> takes <tt>const basic_string&lt;charT&gt;&amp;</tt>.  This prevents
-<tt>regex_replace()</tt> from accepting <tt>basic_string</tt>s with custom traits and
-allocators.
-</p>
-
-<p>
-Overloads of <tt>regex_replace()</tt> taking <tt>basic_string</tt> should be additionally
-templated on <tt>class ST, class SA</tt> and take <tt>const basic_string&lt;charT, ST,
-SA&gt;&amp;</tt>.  Consistency with <tt>regex_match()</tt> and <tt>regex_search()</tt> would place
-<tt>class ST, class SA</tt> as the first template arguments; compatibility with
-existing code using TR1 and giving explicit template arguments to
-<tt>regex_replace()</tt> would place <tt>class ST, class SA</tt> as the last template
-arguments.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Bill comments, "We need to look at the depth of this change."
-</p>
-<p>
-Pete remarks that we are here dealing with a convenience function
-that saves a user from calling the iterato-based overload.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Howard to ask Stephan Lavavej to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-07-17 Stephan provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-07-25 Daniel tweaks both this issue and <a href="lwg-closed.html#726">726</a>.
-]</i></p>
-
-
-<blockquote>
-<p>
-One relevant part of the proposed resolution below suggests
-to add a new overload of the format member function in the
-<tt>match_results</tt> class template that accepts two character pointers
-defining the <tt>begin</tt> and <tt>end</tt> of a format range. A more general
-approach could have proposed a pair of iterators instead, but
-the used pair of char pointers reflects existing practice. If the
-committee strongly favors an iterator-based signature, this
-could be simply changed. I think that the minimum requirement
-should be a <tt>BidirectionalIterator</tt>, but current implementations
-take advantage (at least partially) of the <tt>RandomAccessIterator</tt>
-sub interface of the char pointers.
-</p>
-
-<p><b>Suggested Resolution:</b></p>
-
-<p><i>[Moved into the proposed resloution]</i></p>
-
-
-
-</blockquote>
-
-<p><i>[
-2009-07-30 Stephan agrees with Daniel's wording.  Howard places Daniel's wording
-in the Proposed Resolution.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Review. Chair is anxious to move this to Ready in Pittsburgh.
-</p></blockquote>
-
-<p><i>[
-2010-01-27 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Change 28.4 [re.syn] as indicated:
-</p>
-
-<blockquote><pre>
-// 28.11.4, function template regex_replace:
-template &lt;class OutputIterator, class BidirectionalIterator,
-          class traits, class charT<ins>, class ST, class SA</ins>&gt;
-  OutputIterator
-  regex_replace(OutputIterator out,
-                BidirectionalIterator first, BidirectionalIterator last,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const basic_string&lt;charT<ins>, ST, SA</ins>&gt;&amp; fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-
-<ins>
-template &lt;class OutputIterator, class BidirectionalIterator,
-          class traits, class charT&gt;
-  OutputIterator
-  regex_replace(OutputIterator out,
-                BidirectionalIterator first, BidirectionalIterator last,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const charT* fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins>
-
-template &lt;class traits, class charT<ins>, class ST, class SA,
-          class FST, class FSA</ins>&gt;
-  basic_string&lt;charT<ins>, ST, SA</ins>&gt;
-  regex_replace(const basic_string&lt;charT<ins>, ST, SA</ins>&gt;&amp; s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const basic_string&lt;charT<ins>, FST, FSA</ins>&gt;&amp; fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-
-<ins>
-template &lt;class traits, class charT, class ST, class SA&gt;
-  basic_string&lt;charT, ST, SA&gt;
-  regex_replace(const basic_string&lt;charT, ST, SA&gt;&amp; s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const charT* fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins>
-
-<ins>
-template &lt;class traits, class charT, class ST, class SA&gt;
-  basic_string&lt;charT&gt;
-  regex_replace(const charT* s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const basic_string&lt;charT, ST, SA&gt;&amp; fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins>
-
-<ins>
-template &lt;class traits, class charT&gt;
-  basic_string&lt;charT&gt;
-  regex_replace(const charT* s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const charT* fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 28.10 [re.results]&#47;3, class template <tt>match_results</tt> as
-indicated:
-</p>
-
-<blockquote><pre>
-<ins>
-template &lt;class OutputIter&gt;
-  OutputIter
-  format(OutputIter out,
-         const char_type* fmt_first, const char_type* fmt_last,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-</ins>
-
-template &lt;class OutputIter<ins>, class ST, class SA</ins>&gt;
-  OutputIter
-  format(OutputIter out,
-         const <del>string_type</del><ins>basic_string&lt;char_type, ST, SA&gt;</ins>&amp; fmt,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-
-<ins>template &lt;class ST, class SA&gt;</ins>
-  <del>string_type</del><ins>basic_string&lt;char_type, ST, SA&gt;</ins>
-  format(const <del>string_type</del><ins>basic_string&lt;char_type, ST, SA&gt;</ins>&amp; fmt,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-
-<ins>
-string_type
-format(const char_type* fmt,
-       regex_constants::match_flag_type flags =
-         regex_constants::format_default) const;
-</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Insert at the very beginning of 28.10.5 [re.results.form] the following:
-</p>
-
-<blockquote><pre>
-<ins>
-template &lt;class OutputIter&gt;
-  OutputIter
-  format(OutputIter out,
-         const char_type* fmt_first, const char_type* fmt_last,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-</ins>
-</pre>
-<blockquote>
-
-<p><ins>
-1 <i>Requires:</i> The type <tt>OutputIter</tt> shall satisfy the requirements for an
-Output Iterator (24.2.4 [output.iterators]).
-</ins></p>
-
-<p><ins>
-2 <i>Effects:</i> Copies the character sequence <tt>[fmt_first,fmt_last)</tt> to
-<tt>OutputIter out</tt>. Replaces each format specifier or escape sequence in
-the copied range with either the character(s) it represents or the sequence of
-characters within <tt>*this</tt> to which it refers.  The bitmasks specified in
-<tt>flags</tt> determine which format specifiers and escape sequences are
-recognized.
-</ins></p>
-
-<p><ins>
-3 <i>Returns:</i> <tt>out</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 28.10.5 [re.results.form], before p. 1 until p. 3 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class OutputIter<ins>, class ST, class SA</ins>&gt;
-  OutputIter
-  format(OutputIter out,
-         const <del>string_type</del><ins>basic_string&lt;char_type, ST, SA&gt;</ins>&amp; fmt,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-</pre>
-
-<blockquote>
-<p>
-<del>1 <i>Requires:</i> The type <tt>OutputIter</tt> shall satisfy the requirements for
-an Output Iterator (24.2.3).</del>
-</p>
-
-<p>
-2 <i>Effects:</i> <del>Copies the character sequence
-<tt>[fmt.begin(),fmt.end())</tt> to <tt>OutputIter out</tt>. Replaces each
-format specifier or escape sequence in <tt>fmt</tt> with either the character(s)
-it represents or the sequence of characters within <tt>*this</tt> to which it
-refers. The bitmasks specified in <tt>flags</tt> determines what format
-specifiers and escape sequences are recognized</del> <ins>Equivalent to
-<tt>return format(out, fmt.data(), fmt.data() + fmt.size(), flags)</tt></ins>.
-</p>
-
-<p>
-<del>3 <i>Returns:</i> <tt>out</tt>.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 28.10.5 [re.results.form], before p. 4 until p. 4 as indicated:
-</p>
-
-<blockquote><pre>
-<ins>template &lt;class ST, class SA&gt;</ins>
-  <del>string_type</del><ins>basic_string&lt;char_type, ST, SA&gt;</ins>
-  format(const <del>string_type</del><ins>basic_string&lt;char_type, ST, SA&gt;</ins>&amp; fmt,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-</pre>
-
-<blockquote>
-<p>
-<i>Effects:</i> <del>Returns a copy of the string <tt>fmt</tt>. Replaces each format
-specifier or escape sequence
-in <tt>fmt</tt> with either the character(s) it represents or the sequence of
-characters within <tt>*this</tt> to which
-it refers. The bitmasks specified in flags determines what format
-specifiers and escape sequences are
-recognized.</del> <ins>Constructs an empty string <tt>result</tt> of type
-<tt>basic_string&lt;char_type, ST, SA&gt;</tt>,
-and calls <tt>format(back_inserter(result), fmt, flags)</tt>.</ins>
-</p>
-
-<p>
-<ins><i>Returns:</i> <tt>result</tt></ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-At the end of 28.10.5 [re.results.form] insert as indicated:
-</p>
-
-<blockquote><pre>
-<ins>
-string_type
-  format(const char_type* fmt,
-         regex_constants::match_flag_type flags =
-           regex_constants::format_default) const;
-</ins></pre>
-
-<blockquote>
-<p>
-<ins><i>Effects:</i> Constructs an empty string <tt>result</tt> of type <tt>string_type</tt>, and calls
-<tt>format(back_inserter(result), fmt, fmt +
-char_traits&lt;char_type&gt;::length(fmt), flags)</tt>.</ins>
-</p>
-<p>
-<ins><i>Returns:</i> <tt>result</tt></ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 28.11.4 [re.alg.replace] before p. 1 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class OutputIterator, class BidirectionalIterator,
-          class traits, class charT<ins>, class ST, class SA</ins>&gt;
-  OutputIterator
-  regex_replace(OutputIterator out,
-                BidirectionalIterator first, BidirectionalIterator last,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const basic_string&lt;charT<ins>, ST, SA</ins>&gt;&amp; fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-
-<ins>
-template &lt;class OutputIterator, class BidirectionalIterator,
-          class traits, class charT&gt;
-  OutputIterator
-  regex_replace(OutputIterator out,
-                BidirectionalIterator first, BidirectionalIterator last,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const charT* fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins></pre>
-
-<blockquote><p>
-<i>Effects:</i> [..]. If any matches are found then, for each such match, if <tt>!(flags &amp;
- regex_constants::format_no_copy)</tt> calls <tt>std::copy(m.prefix().first,
-m.prefix().second,
- out)</tt>, and then calls <tt>m.format(out, fmt, flags)</tt> <ins>for the first
-form of the function
- and <tt>m.format(out, fmt, fmt + char_traits&lt;charT&gt;::length(fmt), flags)</tt>
-for the second
- form</ins>. [..].
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 28.11.4 [re.alg.replace] before p. 3 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class traits, class charT<ins>, class ST, class SA,
-          class FST, class FSA</ins>&gt;
-  basic_string&lt;charT<ins>, ST, SA</ins>&gt;
-  regex_replace(const basic_string&lt;charT<ins>, ST, SA</ins>&gt;&amp; s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const basic_string&lt;charT<ins>, FST, FSA</ins>&gt;&amp; fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-
-<ins>
-template &lt;class traits, class charT, class ST, class SA&gt;
-  basic_string&lt;charT, ST, SA&gt;
-  regex_replace(const basic_string&lt;charT, ST, SA&gt;&amp; s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const charT* fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins></pre>
-
-<blockquote><p>
-<i>Effects:</i> Constructs an empty string <tt>result</tt> of type <tt>basic_string&lt;charT<ins>,
-ST, SA</ins>&gt;</tt>, calls <tt>regex_replace(back_inserter(result), s.begin(), s.end(),
-e, fmt, flags)</tt>, and then returns <tt>result</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-At the end of 28.11.4 [re.alg.replace] add the following new prototype description:
-</p>
-
-<blockquote><pre>
-<ins>
-template &lt;class traits, class charT, class ST, class SA&gt;
-  basic_string&lt;charT&gt;
-  regex_replace(const charT* s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const basic_string&lt;charT, ST, SA&gt;&amp; fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins>
-
-<ins>
-template &lt;class traits, class charT&gt;
-  basic_string&lt;charT&gt;
-  regex_replace(const charT* s,
-                const basic_regex&lt;charT, traits&gt;&amp; e,
-                const charT* fmt,
-                regex_constants::match_flag_type flags =
-                  regex_constants::match_default);
-</ins></pre>
-
-<blockquote><p>
-<ins>
-<i>Effects:</i> Constructs an empty string <tt>result</tt> of type <tt>basic_string&lt;charT&gt;</tt>,
-calls <tt>regex_replace(back_inserter(result), s, s +
-char_traits&lt;charT&gt;::length(s),
-e, fmt, flags)</tt>, and then returns <tt>result</tt>.
-</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="728"></a>728. Problem in [rand.eng.mers]&#47;6</h3>
-<p><b>Section:</b> 26.5.3.2 [rand.eng.mers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng.mers">issues</a> in [rand.eng.mers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>mersenne_twister_engine</tt> is required to use a seeding method that is given 
-as an algorithm parameterized over the number of bits <tt>W</tt>. I doubt whether the given generalization 
-of an algorithm that was originally developed only for unsigned 32-bit integers is appropriate 
-for other bit widths. For instance, <tt>W</tt> could be theoretically 16 and <tt>UIntType</tt> a 16-bit integer, in 
-which case the given multiplier would not fit into the <tt>UIntType</tt>. Moreover, T. Nishimura and M. 
-Matsumoto have chosen a dif ferent multiplier for their 64 bit Mersenne Twister
-[<a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/mt19937-64.c">reference</a>].
-</p>
-
-<p>
-I see two possible resolutions: 
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>Restrict the parameter <tt>W</tt> of the <tt>mersenne_twister_template</tt> to values of 32 or 64 and use the 
-multiplier from [the above reference] for the 64-bit case (my preference)</li>
-<li>Interpret the state array for any <tt>W</tt> as a 32-bit array of appropriate length (and a specified byte 
-order) and always employ the 32-bit algorithm for seeding
-</li>
-</ol>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for further discussion.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Stephan Tolksdorf has additional comments on N2424. He comments: "there
-is a typo in the required behaviour for mt19937_64: It should be the
-10000th (not 100000th) invocation whose value is given, and the value
-should be 9981545732273789042 (not 14002232017267485025)." These values
-need checking.
-</p>
-<p>
-Take the proposed recommendation in N2424 and move to REVIEW.
-</p>
-</blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-I support the proposed resolution in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>,
-but there is a typo in the
-required behaviour for <tt>mt19937_64</tt>: It should be the 10000<sup>th</sup> (not
-100000<sup>th</sup>) invocation whose value is given, and the value should be
-9981545732273789042 (not 14002232017267485025). The change to para. 8
-proposed by Charles Karney should also be included in the proposed
-wording.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Note the main part of the issue is resolved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="732"></a>732. Defect in [rand.dist.samp.genpdf]</h3>
-<p><b>Section:</b> X [rand.dist.samp.genpdf] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.genpdf">issues</a> in [rand.dist.samp.genpdf].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#795">795</a></p>
-<p><b>Discussion:</b></p>
-<p>
-X [rand.dist.samp.genpdf] describes the interface for a distribution template that is 
-meant to simulate random numbers from any general distribution given only the density and the 
-support of the distribution. I'm not aware of any general purpose algorithm that would be capable 
-of correctly and efficiently implementing the described functionality. From what I know, this is 
-essentially an unsolved research problem. Existing algorithms either require more knowledge 
-about the distribution and the problem domain or work only under very limited circumstances. 
-Even the state of the art special purpose library UNU.RAN does not solve the problem in full 
-generality, and in any case, testing and customer support for such a library feature would be a 
-nightmare.
-</p>
-
-<p>
-<b>Possible resolution:</b> For these reasons, I propose to delete section X [rand.dist.samp.genpdf].
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Disagreement persists.
-</p>
-<p>
-Objection to this issue is that this function takes a general functor.
-The general approach would be to normalize this function, integrate it,
-and take the inverse of the integral, which is not possible in general.
-An example function is sin(1+n*x) &mdash; for any spatial frequency that the
-implementor chooses, there is a value of n that renders that choice
-arbitrarily erroneous.
-</p>
-<p>
-Correction: The formula above should instead read 1+sin(n*x).
-</p>
-<p>
-Objector proposes the following possible compromise positions:
-</p>
-<ul>
-<li>
-rand.dist.samp.genpdf takes an number of points so that implementor need not guess.
-</li>
-<li>
-replace rand.disk.samp.genpdf with an extension to either or both of the discrete 
-functions to take arguments that take a functor and number of points in place of 
-the list of probabilities. Reference issues 793 and 794.
-</li>
-</ul>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2813.pdf">N2813</a>
-for the proposed resolution.
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> 
-"Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-<hr>
-<h3><a name="734"></a>734. Unnecessary restriction in [rand.dist.norm.chisq]</h3>
-<p><b>Section:</b> 26.5.8.5.3 [rand.dist.norm.chisq] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2007-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>chi_squared_distribution</tt>, <tt>fisher_f_distribution</tt> and <tt>student_t_distribution</tt>
-have parameters for the "degrees of freedom" <tt>n</tt> and <tt>m</tt> that are specified as integers. For the 
-following two reasons this is an unnecessary restriction: First, in many applications such as 
-Bayesian inference or Monte Carlo simulations it is more convenient to treat the respective param- 
-eters as continuous variables. Second, the standard non-naive algorithms (i.e. 
-O(1) algorithms) for simulating from these distributions work with floating-point parameters anyway (all 
-three distributions could be easily implemented using the Gamma distribution, for instance).
-</p>
-
-<p>
-Similar arguments could in principle be made for the parameters <tt>t</tt> and <tt>k</tt> of the discrete 
-<tt>binomial_distribution</tt> and <tt>negative_binomial_distribution</tt>, though in both cases continuous
-parameters are less frequently used in practice and in case of the <tt>binomial_distribution</tt>
-the implementation would be significantly complicated by a non-discrete parameter (in most 
-implementations one would need an approximation of the log-gamma function instead of just the 
-log-factorial function).
-</p>
-
-<p>
-<b>Possible resolution:</b> For these reasons, I propose to change the type of the respective parameters 
-to double.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-In N2424. Not wildly enthusiastic, not really felt necessary. Less
-frequently used in practice. Not terribly bad either. Move to OPEN.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Marc Paterno: The generalizations were explicitly left out when designing the facility. It's harder to test.
-</p>
-<p>
-Marc Paterno: Ask implementers whether floating-point is a significant burden.
-</p>
-<p>
-Alisdair: It's neater to do it now, do ask Bill Plauger.
-</p>
-<p>
-Disposition: move to review with the option for "NAD" if it's not straightforward to implement; unanimous consent.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2424.pdf">N2424</a>
-for the proposed resolution.
-</p>
-
-<p><i>[
-Stephan Tolksdorf adds pre-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-In 26.5.8.5.3 [rand.dist.norm.chisq]:
-</p>
-
-<blockquote>
-<p>
-Delete ", where <tt>n</tt> is a positive integer" in the first paragraph.
-</p>
-
-<p>
-Replace both occurrences of "<tt>explicit chi_squared_distribution(int n = 1);</tt>"
-with "<tt>explicit chi_squared_distribution(RealType n = 1);</tt>".
-</p>
-
-<p>
-Replace both occurrences of "<tt>int n() const;</tt>" with "<tt>RealType n() const;</tt>".
-</p>
-
-</blockquote>
-
-<p>
-In 26.5.8.5.5 [rand.dist.norm.f]:
-</p>
-<blockquote>
-<p>
-Delete ", where <tt>m</tt> and <tt>n</tt> are positive integers" in the first paragraph.
-</p>
-
-<p>
-Replace both occurrences of
-</p>
-<blockquote><pre>
-explicit fisher_f_distribution(int m = 1, int n = 1);
-</pre></blockquote>
-<p>
-with
-</p>
-<blockquote><pre>
-explicit fisher_f_distribution(RealType m = 1, RealType n = 1);
-</pre></blockquote>
-
-<p>
-Replace both occurrences of "<tt>int m() const;" with "RealType m() const;</tt>".
-</p>
-
-<p>
-Replace both occurrences of "<tt>int n() const;" with "RealType n() const;</tt>".
-</p>
-</blockquote>
-
-<p>
-In 26.5.8.5.6 [rand.dist.norm.t]:
-</p>
-
-<blockquote>
-<p>
-Delete ", where <tt>n</tt> is a positive integer" in the first paragraph.
-</p>
-
-<p>
-Replace both occurrences of "<tt>explicit student_t_distribution(int n = 1);</tt>"
-with "<tt>explicit student_t_distribution(RealType n = 1);</tt>".
-</p>
-
-<p>
-Replace both occurrences of "<tt>int n() const;</tt>" with "<tt>RealType n() const;</tt>".
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="740"></a>740. Please remove <tt>*_ptr&lt;T[N]&gt;</tt></h3>
-<p><b>Section:</b> 20.8.1 [unique.ptr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2007-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr">issues</a> in [unique.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Please don't provide <tt>*_ptr&lt;T[N]&gt;</tt>. It doesn't enable any useful
-bounds-checking (e.g., you could imagine that doing <tt>op++</tt> on a
-<tt>shared_ptr&lt;T[N]&gt;</tt> yields a <tt>shared_ptr&lt;T[N-1]&gt;</tt>, but that promising path
-immediately falters on <tt>op--</tt> which can't reliably dereference because we
-don't know the lower bound). Also, most buffers you'd want to point to
-don't have a compile-time known size.
-</p>
-
-<p>
-To enable any bounds-checking would require run-time information, with
-the usual triplet: base (lower bound), current offset, and max offset
-(upper  bound). And I can sympathize with the point of view that you
-wouldn't want to require this on <tt>*_ptr</tt> itself. But please let's not
-follow the <tt>&lt;T[N]&gt;</tt> path, especially not with additional functions to
-query the bounds etc., because this sets wrong user expectations by
-embarking on a path that doesn't go all the way to bounds checking as it
-seems to imply.
-</p>
-
-<p>
-If bounds checking is desired, consider a <tt>checked_*_ptr</tt> instead (e.g.,
-<tt>checked_shared_ptr</tt>). And make the interfaces otherwise identical so that
-user code could easily <tt>#define/typedef</tt> between prepending <tt>checked_</tt> on
-debug builds and not doing so on release builds (for example).
-</p>
-
-<p>
-Note that some may object that <tt>checked_*_ptr</tt> may seem to make the smart
-pointer more like <tt>vector</tt>, and we don't want two ways to spell <tt>vector</tt>. I
-don't agree, but if that were true that would be another reason to
-remove <tt>*_ptr&lt;T[N]&gt;</tt> which equally makes the smart pointer more like
-<tt>std::array.</tt> :-)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Suggestion that fixed-size array instantiations are going to fail at compile time anyway (if we remove specialization) due to pointer decay, at least that appears to be result from available compilers.
-</p>
-<p>
-So concerns about about requiring static_assert seem unfounded.
-</p>
-<p>
-After a little more experimentation with compiler, it appears that fixed size arrays would only work at all if we supply these explicit specialization. So removing them appears less breaking than originally thought.
-</p>
-<p>
-straw poll unanimous move to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis under 20.8.1 [unique.ptr] p2:
-</p>
-
-<blockquote><pre>
-...
-template&lt;class T&gt; struct default_delete; 
-template&lt;class T&gt; struct default_delete&lt;T[]&gt;; 
-<del>template&lt;class T, size_t N&gt; struct default_delete&lt;T[N]&gt;;</del>
-
-template&lt;class T, class D = default_delete&lt;T&gt;&gt; class unique_ptr; 
-template&lt;class T, class D&gt; class unique_ptr&lt;T[], D&gt;; 
-<del>template&lt;class T, class D, size_t N&gt; class unique_ptr&lt;T[N], D&gt;;</del>
-...
-</pre></blockquote>
-
-<p>
-Remove the entire section  [unique.ptr.dltr.dflt2] <b><tt>default_delete&lt;T[N]&gt;</tt></b>.
-</p>
-
-<p>
-Remove the entire section  [unique.ptr.compiletime] <b><tt>unique_ptr</tt> for array objects with a compile time length</b>
-and its subsections:  [unique.ptr.compiletime.dtor],  [unique.ptr.compiletime.observers],
- [unique.ptr.compiletime.modifiers].
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="742"></a>742. Enabling <tt>swap</tt> for proxy iterators</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This issue was split from <a href="lwg-defects.html#672">672</a>. <a href="lwg-defects.html#672">672</a> now just
-deals with changing the requirements of <tt>T</tt> in the <tt>Swappable</tt>
-requirement from <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt> to
-<tt>MoveConstructible</tt> and <tt>MoveAssignable</tt>.
-</p>
-
-<p>
-This issue seeks to widen the <tt>Swappable</tt> requirement to support proxy iterators.  Here
-is example code:
-</p>
-
-<blockquote><pre>
-namespace Mine {
-
-template &lt;class T&gt;
-struct proxy {...};
-
-template &lt;class T&gt;
-struct proxied_iterator
-{
-   typedef T value_type;
-   typedef proxy&lt;T&gt; reference;
-   reference operator*() const;
-   ...
-};
-
-struct A
-{
-   // heavy type, has an optimized swap, maybe isn't even copyable or movable, just swappable
-   void swap(A&amp;);
-   ...
-};
-
-void swap(A&amp;, A&amp;);
-void swap(proxy&lt;A&gt;, A&amp;);
-void swap(A&amp;, proxy&lt;A&gt;);
-void swap(proxy&lt;A&gt;, proxy&lt;A&gt;);
-
-}  // Mine
-
-...
-
-Mine::proxied_iterator&lt;Mine::A&gt; i(...)
-Mine::A a;
-<b>swap(*i1, a);</b>
-</pre></blockquote>
-
-<p>
-The key point to note in the above code is that in the call to <tt>swap</tt>, <tt>*i1</tt>
-and <tt>a</tt> are different types (currently types can only be <tt>Swappable</tt> with the
-same type).  A secondary point is that to support proxies, one must be able to pass rvalues
-to <tt>swap</tt>.  But note that I am not stating that the general purpose <tt>std::swap</tt>
-should accept rvalues!  Only that overloaded <tt>swap</tt>s, as in the example above, be allowed
-to take rvalues.
-</p>
-
-<p>
-That is, no standard library code needs to change.  We simply need to have a more flexible
-definition of <tt>Swappable</tt>.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-While we believe Concepts work will define a swappable concept, we
-should still resolve this issue if possible to give guidance to the
-Concepts work.
-</p>
-<p>
-Would an ambiguous swap function in two namespaces found by ADL break
-this wording? Suggest that the phrase "valid expression" means such a
-pair of types would still not be swappable.
-</p>
-<p>
-Motivation is proxy-iterators, but facility is considerably more
-general. Are we happy going so far?
-</p>
-<p>
-We think this wording is probably correct and probably an improvement on
-what's there in the WP. On the other hand, what's already there in the
-WP is awfully complicated. Why do we need the two bullet points? They're
-too implementation-centric. They don't add anything to the semantics of
-what swap() means, which is there in the post-condition. What's wrong
-with saying that types are swappable if you can call swap() and it
-satisfies the semantics of swapping?
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as Open. Dave to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-11-08 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Updated wording to sync with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>.
-Also this issue is very closely related to <a href="lwg-defects.html#594">594</a>.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by N3048.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.3.1 [utility.arg.requirements]:
-</p>
-
-<blockquote>
-
-<p>
--1- The template definitions in the C++ Standard Library refer to various
-named requirements whose details are set out in tables 31-38. In these
-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
-instantiating a template; <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are
-values of type <tt>const T</tt>; <tt>s</tt> and <tt>t</tt> are modifiable
-lvalues of type <tt>T</tt>; <tt>u</tt> is a value of type (possibly
-<tt>const</tt>) <tt>T</tt>; <del>and</del> <tt>rv</tt> is a non-<tt>const</tt>
-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>.
-</p>
-
-<table border="1">
-<caption>Table 37: <tt>Swappable</tt> requirements <b>[swappable]</b></caption>
-<tr><th>expression</th><th>Return type</th><th>Post-condition</th></tr>
-<tr><td><tt>swap(<del>s</del><ins>w</ins>,<del>t</del><ins>v</ins>)</tt></td><td><tt>void</tt></td>
-<td><del><tt>t</tt></del><ins><tt>w</tt></ins> has the value originally
-held by <del><tt>u</tt></del><ins><tt>v</tt></ins>, and
-<del><tt>u</tt></del><ins><tt>v</tt></ins> has the value originally held
-by <del><tt>t</tt></del><ins><tt>w</tt></ins></td></tr>
-<tr><td colspan="3">
-<p>
-The <tt>Swappable</tt> requirement is met by satisfying one or more of the following conditions:
-</p>
-<ul>
-<li>
-<tt>T</tt> is <tt>Swappable</tt> if <ins><tt>T</tt> and <tt>V</tt> are
-the same type and </ins> <tt>T</tt> satisfies the
-<tt>MoveConstructible</tt> requirements (Table 
-33) and the 
-<tt>MoveAssignable</tt> requirements (Table 
-35);
-</li>
-<li>
-<tt>T</tt> is <tt>Swappable</tt> <ins>with <tt>V</tt></ins> if a namespace scope function named
-<tt>swap</tt> exists in the same namespace as the definition of
-<tt>T</tt> <ins>or <tt>V</tt></ins>, such that the expression
-<tt>swap(<del>s</del><ins>w</ins>,<del>t</del> <ins>v</ins>)</tt> is valid and has the
-semantics described in this table.
-</li>
-<li>
-<tt>T</tt> is <tt>Swappable</tt> if <tt>T</tt> is an array type whose
-element type is <tt>Swappable</tt>.
-</li>
-</ul>
-</td></tr>
-</table>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2758.pdf">N2758</a>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="743"></a>743. rvalue <tt>swap</tt> for <tt>shared_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2.8 [util.smartptr.shared.spec] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When the LWG looked at <a href="lwg-defects.html#674">674</a> in Kona the following note was made:
-</p>
-
-<blockquote><p>
-We may need to open an issue to deal with the question of
-whether <tt>shared_ptr</tt> needs an rvalue <tt>swap</tt>.
-</p></blockquote>
-
-<p>
-This issue was opened in response to that note.
-</p>
-
-<p>
-I believe allowing rvalue <tt>shared_ptr</tt>s to <tt>swap</tt> is both
-appropriate, and consistent with how other library components are currently specified.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Concern that the three signatures for swap is needlessly complicated,
-but this issue merely brings shared_ptr into equal complexity with the
-rest of the library. Will open a new issue for concern about triplicate
-signatures.
-</p>
-<p>
-Adopt issue as written.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 20.8.2.2 [util.smartptr.shared]:
-</p>
-
-<blockquote><pre>
-void swap(shared_ptr&amp;<ins>&amp;</ins> r);
-...
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp; b);
-<ins>template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp;&amp; a, shared_ptr&lt;T&gt;&amp; b);
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp;&amp; b);</ins>
-</pre></blockquote>
-
-<p>
-Change 20.8.2.2.4 [util.smartptr.shared.mod]:
-</p>
-
-<blockquote><pre>
-void swap(shared_ptr&amp;<ins>&amp;</ins> r);
-</pre></blockquote>
-
-<p>
-Change 20.8.2.2.8 [util.smartptr.shared.spec]:
-</p>
-
-<blockquote><pre>
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp; b);
-<ins>template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp;&amp; a, shared_ptr&lt;T&gt;&amp; b);
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp;&amp; b);</ins>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="744"></a>744. What is the lifetime of an exception pointed to by an <tt>exception_ptr</tt>?</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Without some lifetime guarantee, it is hard to know how this type can be
-used.  Very specifically, I don't see how the current wording would
-guarantee and <tt>exception_ptr</tt> caught at the end of one thread could be safely
-stored and rethrown in another thread - the original motivation for this
-API.
-</p>
-<p>
-(Peter Dimov agreed it should be clearer, maybe a non-normative note to
-explain?)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Agree the issue is real.
-</p>
-<p>
-Intent is lifetime is similar to a shared_ptr (and we might even want to
-consider explicitly saying that it is a shared_ptr&lt; unspecified type &gt;).
-</p>
-<p>
-We expect that most implementations will use shared_ptr, and the
-standard should be clear that the exception_ptr type is intended to be
-something whose semantics are smart-pointer-like so that the user does
-not need to worry about lifetime management. We still need someone to
-draught those words - suggest emailing Peter Dimov.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.8.5 [propagation]/7:
-</p>
-
-<blockquote><p>
--7- Returns: An <tt>exception_ptr</tt> object that refers to the currently
-handled exception or a copy of the currently handled exception, or a
-null <tt>exception_ptr</tt> object if no exception is being handled.
-<ins>The referenced object remains valid at least as long as there is an
-<tt>exception_ptr</tt> that refers to it.</ins>
-If the function needs to allocate memory and the attempt
-fails, it returns an <tt>exception_ptr</tt> object that refers to an instance of
-<tt>bad_alloc</tt>. It is unspecified whether the return values of two successive
-calls to <tt>current_exception</tt> refer to the same exception object. [<i>Note:</i>
-that is, it is unspecified whether <tt>current_exception</tt> creates a new copy
-each time it is called. <i>--end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="746"></a>746. <tt>current_exception</tt> may fail with <tt>bad_alloc</tt></h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I understand that the attempt to copy an exception may run out of memory,
-but I believe this is the only part of the standard that mandates failure
-with specifically <tt>bad_alloc</tt>, as opposed to allowing an
-implementation-defined type derived from <tt>bad_alloc</tt>.  For instance, the Core
-language for a failed new expression is:
-</p>
-<blockquote>
-<p>
-Any other allocation function that fails to allocate storage shall indicate
-failure only by throwing an exception of a type that would match a handler
-(15.3) of type <tt>std::bad_alloc</tt> (18.5.2.1).
-</p>
-</blockquote>
-<p>
-I think we should allow similar freedom here (or add a blanket
-compatible-exception freedom paragraph in 17)
-</p>
-<p>
-I prefer the clause 17 approach myself, and maybe clean up any outstanding
-wording that could also rely on it.
-</p>
-<p>
-Although filed against a specific case, this issue is a problem throughout
-the library. 
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Is issue bigger than library?
-</p>
-<p>
-No - Core are already very clear about their wording, which is inspiration for the issue.
-</p>
-<p>
-While not sold on the original 18.7.5 use case, the generalised 17.4.4.8 wording is the real issue.
-</p>
-<p>
-Accept the broad view and move to ready
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following exemption clause to 17.6.5.12 [res.on.exception.handling]:
-</p>
-
-<blockquote><p>
-A function may throw a type not listed in its <i>Throws</i> clause so long as it is
-derived from a class named in the <i>Throws</i> clause, and would be caught by an
-exception handler for the base type.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="749"></a>749. Currently <tt>has_nothrow_copy_constructor&lt;T&gt;::value</tt> is true if <tt>T</tt> has 'a' nothrow copy constructor.</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2007-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Unfortunately a class can have multiple copy constructors, and I believe to
-be useful this trait should only return true is ALL copy constructors are
-no-throw.
-</p>
-<p>
-For instance:
-</p>
-<blockquote>
-<pre>
-struct awkward {
- awkward( const awkward &amp; ) throw() {}
- awkward( awkward &amp; ) { throw "oops"; } };
-</pre>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.10.4.3 [meta.unary.prop]:
-</p>
-
-<blockquote>
-<pre>has_trivial_copy_constructor</pre>
-<blockquote><p>
-<tt>T</tt> is a trivial type (3.9) or a reference type or a class type <del>with a trivial copy constructor</del>
-<ins>where all copy constructors are trivial</ins> (12.8).
-</p></blockquote>
-</blockquote>
-
-<blockquote>
-<pre>has_trivial_assign</pre>
-<blockquote><p>
-<tt>T</tt> is neither <tt>const</tt> nor a reference type, and <tt>T</tt> is a trivial type (3.9)
-or a class type <del>with a trivial copy assignment operator</del> <ins>where all copy assignment operators are trivial</ins> (12.8).
-</p></blockquote>
-</blockquote>
-
-<blockquote>
-<pre>has_nothrow_copy_constructor</pre>
-<blockquote><p>
-<tt>has_trivial_copy_constructor&lt;T&gt;::value</tt> is <tt>true</tt> or <tt>T</tt> is a class type <del>with
-a</del> <ins>where all</ins> copy constructor<ins>s</ins> <del>that is</del> <ins>are</ins> 
-known not to throw any exceptions or <tt>T</tt> is an
-array of such a class type
-</p></blockquote>
-</blockquote>
-
-<blockquote>
-<pre>has_nothrow_assign</pre>
-<blockquote><p>
-<tt>T</tt> is neither <tt>const</tt> nor a reference type, and
-<tt>has_trivial_assign&lt;T&gt;::value</tt> is <tt>true</tt> or <tt>T</tt> is a class type <del>with a</del>
-<ins>where all</ins> copy
-assignment operator<ins>s</ins> tak<ins>e</ins><del>ing</del> an lvalue of type <tt>T</tt> that is known not to
-throw any exceptions or <tt>T</tt> is an array of such a class type.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="752"></a>752. Allocator complexity requirement</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2007-10-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Did LWG recently discuss 17.6.3.5 [allocator.requirements]-2, which states that "All the operations
-on the allocators are expected to be amortized constant time."?
-</p>
-<p>
-As I think I pointed out earlier, this is currently fiction for
-<tt>allocate()</tt> if it has to obtain memory from the OS, and it's unclear to
-me how to interpret this for <tt>construct()</tt> and <tt>destroy()</tt> if they deal with
-large objects.  Would it be controversial to officially let these take
-time linear in the size of the object, as they already do in real life?
-</p>
-<p>
-<tt>Allocate()</tt> more blatantly takes time proportional to the size of the
-object if you mix in GC.  But it's not really a new problem, and I think
-we'd be confusing things by leaving the bogus requirements there.  The
-current requirement on <tt>allocate()</tt> is generally not important anyway,
-since it takes O(size) to construct objects in the resulting space.
-There are real performance issues here, but they're all concerned with
-the constants, not the asymptotic complexity.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.3.5 [allocator.requirements]/2:
-</p>
-
-<blockquote>
-<p>
--2- Table 39 describes the requirements on types manipulated through
-allocators. <del>All the operations on the allocators are expected to be
-amortized constant time.</del> Table 40 describes the
-requirements on allocator types.
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="753"></a>753. Move constructor in draft</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Yechezkel Mett <b>Opened:</b> 2007-10-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The draft standard n2369 uses the term <i>move constructor</i> in a few
-places, but doesn't seem to define it.
-</p>
-
-<p>
-<tt>MoveConstructible</tt> requirements are defined in Table 33 in 17.6.3.1 [utility.arg.requirements] as
-follows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption><tt>MoveConstructible</tt> requirements</caption>
-<tr>
-<th>expression</th> <th>post-condition</th>
-</tr>
-<tr>
-<td><tt>T t = rv</tt></td> <td><tt>t</tt> is equivalent to the value of <tt>rv</tt> before the construction</td>
-</tr>
-<tr>
-<td colspan="2">[<i>Note:</i> There is no requirement on the value of <tt>rv</tt> after the
-construction. <i>-- end note</i>]</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-(where <tt>rv</tt> is a non-const rvalue of type <tt>T</tt>).
-</p>
-
-<p>
-So I assume the move constructor is the constructor that would be used
-in filling the above requirement.
-</p>
-
-<p>
-For <tt>vector::reserve</tt>, <tt>vector::resize</tt> and the <tt>vector</tt> modifiers given in
-23.3.6.5 [vector.modifiers] we have
-</p>
-
-<blockquote><p>
-<i>Requires:</i> If <tt>value_type</tt> has a move constructor, that constructor shall
-not throw any exceptions.
-</p></blockquote>
-
-<p>
-Firstly "If <tt>value_type</tt> has a move constructor" is superfluous; every
-type which can be put into a <tt>vector</tt> has a move constructor (a copy
-constructor is also a move constructor). Secondly it means that for
-any <tt>value_type</tt> which has a throwing copy constructor and no other move
-constructor these functions cannot be used -- which I think will come
-as a shock to people who have been using such types in <tt>vector</tt> until
-now!
-</p>
-
-<p>
-I can see two ways to correct this. The simpler, which is presumably
-what was intended, is to say "If <tt>value_type</tt> has a move constructor and
-no copy constructor, the move constructor shall not throw any
-exceptions" or "If <tt>value_type</tt> has a move constructor which changes the
-value of its parameter,".
-</p>
-
-<p>
-The other alternative is add to <tt>MoveConstructible</tt> the requirement that
-the expression does not throw. This would mean that not every type
-that satisfies the <tt>CopyConstructible</tt> requirements also satisfies the
-<tt>MoveConstructible</tt> requirements. It would mean changing requirements in
-various places in the draft to allow either <tt>MoveConstructible</tt> or
-<tt>CopyConstructible</tt>, but I think the result would be clearer and
-possibly more concise too.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add new defintions to 17.3 [definitions]:
-</p>
-
-<blockquote>
-<p>
-<b>move constructor</b>
-</p>
-<p>
-a constructor which accepts only rvalue arguments of that type, and modifies the rvalue as a
-side effect during the construction.
-</p>
-<p>
-<b>move assignment operator</b>
-</p>
-<p>
-an assignment operator which accepts only rvalue arguments of that type, and modifies the rvalue as a
-side effect during the assignment.
-</p>
-<p>
-<b>move assignment</b>
-</p>
-<p>
-use of the move assignment operator.
-</p>
-</blockquote>
-
-<p><i>[
-Howard adds post-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Unfortunately I believe the wording recommended by the LWG in Bellevue is incorrect.  <tt>reserve</tt> et. al. 
-will use a move constructor if one is available, else it will use a copy constructor.  A type may have both.  
-If the move constructor is used, it must not throw.  If the copy constructor is used, it can throw.  The 
-sentence in the proposed wording is correct without the recommended insertion.  The Bellevue LWG recommended 
-moving this issue to Ready.  I am unfortunately pulling it back to Open.  But I'm drafting wording to atone 
-for this egregious action. :-)
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="755"></a>755. <tt>std::vector</tt> and <tt>std:string</tt> lack explicit shrink-to-fit operations</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity], 21.4.4 [string.capacity] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2007-10-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A <tt>std::vector</tt> can be shrunk-to-fit via the swap idiom:
-</p>
-
-<blockquote><pre>
-vector&lt;int&gt; v;
-...
-v.swap(vector&lt;int&gt;(v));  // shrink to fit
-</pre>
-<blockquote><p>
-or:
-</p></blockquote>
-<pre>
-vector&lt;int&gt;(v).swap(v);  // shrink to fit
-</pre>
-<blockquote><p>
-or:
-</p></blockquote>
-<pre>
-swap(v, vector&lt;int&gt;(v));  // shrink to fit
-</pre>
-</blockquote>
-
-<p>
-A non-binding request for shrink-to-fit can be made to a <tt>std::string</tt> via:
-</p>
-
-<blockquote><pre>
-string s;
-...
-s.reserve(0);
-</pre></blockquote>
-
-<p>
-Neither of these is at all obvious to beginners, and even some
-experienced C++ programmers are not aware that shrink-to-fit is
-trivially available.
-</p>
-<p>
-Lack of explicit functions to perform these commonly requested
-operations makes vector and string less usable for non-experts. Because
-the idioms are somewhat obscure, code readability is impaired. It is
-also unfortunate that two similar vector-like containers use different
-syntax for the same operation.
-</p>
-<p>
-The proposed resolution addresses these concerns. The proposed function
-takes no arguments to keep the solution simple and focused.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-To Class template basic_string 21.4 [basic.string] synopsis,
-Class template vector 23.3.6 [vector] synopsis, and Class
-vector&lt;bool&gt; 23.3.7 [vector.bool] synopsis, add:
-</p>
-
-<blockquote><pre>    
-void shrink_to_fit();
-</pre></blockquote>
-
-<p>
-To basic_string capacity 21.4.4 [string.capacity] and vector
-capacity 23.3.6.3 [vector.capacity], add:
-</p>
-
-<blockquote>
-<pre>
-void shrink_to_fit();
-</pre>
-<blockquote><p>
-<i>Remarks:</i> <tt>shrink_to_fit</tt> is a non-binding request to reduce
-<tt>capacity()</tt> to <tt>size()</tt>. [<i>Note:</i> The request is non-binding to
-allow latitude for implementation-specific optimizations.
-&mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-<a href="lwg-defects.html#850">850</a> has been added to deal with this issue with respect to <tt>deque</tt>.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="756"></a>756. Container adaptors push</h3>
-<p><b>Section:</b> 23.6 [container.adaptors] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2007-10-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-After n2369 we have a single <tt>push_back</tt> overload in the sequence containers,
-of the "emplace" type. At variance with that, still in n2461, we have
-two separate overloads, the C++03 one + one taking an rvalue reference
-in the container adaptors. Therefore, simply from a consistency point of
-view, I was wondering whether the container adaptors should be aligned
-with the specifications of the sequence container themselves: thus have
-a single <tt>push</tt> along the lines:
-</p>
-
-<blockquote><pre>
-template&lt;typename... _Args&gt;
-void
-push(_Args&amp;&amp;... __args)
-  { c.push_back(std::forward&lt;_Args&gt;(__args)...); }
-</pre></blockquote>
-
-<p><i>[
-Related to <a href="lwg-defects.html#767">767</a>
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.6.3.1 [queue.defn]:
-</p>
-
-<blockquote><pre>
-<del>void push(const value_type&amp; x) { c.push_back(x); }</del>
-<del>void push(value_type&amp;&amp; x) { c.push_back(std::move(x)); }</del>
-<ins>template&lt;class... Args&gt; void push(Args&amp;&amp;... args) { c.push_back(std::forward&lt;Args&gt;(args)...); }</ins>
-</pre></blockquote>
-
-<p>
-Change 23.6.4 [priority.queue]:
-</p>
-
-<blockquote><pre>
-<del>void push(const value_type&amp; x) { c.push_back(x); }</del>
-<del>void push(value_type&amp;&amp; x) { c.push_back(std::move(x)); }</del>
-<ins>template&lt;class... Args&gt; void push(Args&amp;&amp;... args) { c.push_back(std::forward&lt;Args&gt;(args)...); }</ins>
-</pre></blockquote>
-
-<p>
-Change 23.6.4.3 [priqueue.members]:
-</p>
-
-<blockquote>
-<pre>
-<del>void push(const value_type&amp; x);</del>
-</pre>
-<blockquote>
-<p>
-<del><i>Effects:</i></del>
-</p>
-<blockquote><pre>
-<del>c.push_back(x);</del>
-<del>push_heap(c.begin(), c.end(), comp);</del>
-</pre></blockquote>
-</blockquote>
-
-<pre>
-<ins>template&lt;class... Args&gt;</ins> void push(<del>value_type</del> <ins>Args</ins>&amp;&amp;<ins>...</ins> <del>x</del> <ins>args</ins>);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i>
-</p>
-<blockquote><pre>
-c.push_back(std::<del>move</del><ins>forward&lt;Args&gt;</ins>(<del>x</del> <ins>args</ins>)<ins>...</ins>);
-push_heap(c.begin(), c.end(), comp);
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-<p>
-Change 23.6.5.2 [stack.defn]:
-</p>
-
-<blockquote><pre>
-<del>void push(const value_type&amp; x) { c.push_back(x); }</del>
-<del>void push(value_type&amp;&amp; x) { c.push_back(std::move(x)); }</del>
-<ins>template&lt;class... Args&gt; void push(Args&amp;&amp;... args) { c.push_back(std::forward&lt;Args&gt;(args)...); }</ins>
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2680.pdf">N2680 Proposed Wording for Placement Insert (Revision 1)</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="758"></a>758. <tt>shared_ptr</tt> and <tt>nullptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2007-10-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following program:
-</p>
-
-<blockquote><pre>
-int main() {
-   shared_ptr&lt;int&gt; p(nullptr); 
-   return 0;
-}
-</pre></blockquote>
-
-<p>
-This program will fail to compile because <tt>shared_ptr</tt> uses the following 
-template constructor to construct itself from pointers:
-</p>
-
-<blockquote><pre>
-template &lt;class Y&gt; shared_ptr(Y *);
-</pre></blockquote>
-
-<p>
-According
-to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf">N2431</a>,
-the conversion from <tt>nullptr_t</tt> to <tt>Y *</tt> is not
-deducible, so the above constructor will not be found.  There are similar problems with the
-constructors that take a pointer and a <tt>deleter</tt> or a
-pointer, a <tt>deleter</tt> and an allocator, as well as the
-corresponding forms of <tt>reset()</tt>. Note that <a
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2435.htm">N2435</a>
-will solve this problem for constructing from just <tt>nullptr</tt>, but not for constructors that use
-<tt>deleters</tt> or allocators or for <tt>reset()</tt>.
-</p>
-
-<p>
-In the case of the functions that take deleters, there is the additional
-question of what argument should be passed to the deleter when it is
-eventually called.  There are two reasonable possibilities: <tt>nullptr</tt> or
-<tt>static_cast&lt;T *&gt;(0)</tt>, where <tt>T</tt> is the template argument of the
-<tt>shared_ptr</tt>.  It is not immediately clear which of these is better.  If
-<tt>D::operator()</tt> is a template function similar to <tt>shared_ptr</tt>'s
-constructor, then <tt>d(static_cast&lt;T*&gt;(0))</tt> will compile and <tt>d(nullptr)</tt>
-will not.  On the other hand, if <tt>D::operator()()</tt> takes a parameter that
-is a pointer to some type other that <tt>T</tt> (for instance <tt>U*</tt> where <tt>U</tt> derives
-from <tt>T</tt>) then <tt>d(nullptr)</tt> will compile and <tt>d(static_cast&lt;T *&gt;(0))</tt> may not.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-The general idea is right, we need to be able to pass a nullptr to a
-shared_ptr, but there are a few borderline editorial issues here. (For
-example, the single-argument nullptr_t constructor in the class synopsis
-isn't marked explicit, but it is marked explicit in the proposed wording
-for 20.6.6.2.1. There is a missing empty parenthesis in the form that
-takes a nullptr_t, a deleter, and an allocator.)
-</p>
-<p>
-More seriously: this issue says that a shared_ptr constructed from a
-nullptr is empty. Since "empty" is undefined, it's hard to know whether
-that's right. This issue is pending on handling that term better.
-</p>
-<p>
-Peter suggests definition of empty should be "does not own anything"
-</p>
-<p>
-Is there an editorial issue that post-conditions should refer to get() =
-nullptr, rather than get() = 0?
-</p>
-<p>
-No strong feeling towards accept or NAD, but prefer to make a decision than leave it open.
-</p>
-<p>
-Seems there are no technical merits between NAD and Ready, comes down to
-"Do we intentially want to allow/disallow null pointers with these
-functions". Staw Poll - support null pointers 5 - No null pointers 0
-</p>
-<p>
-Move to Ready, modulo editorial comments
-</p>
-</blockquote>
-
-<p><i>[
-post Bellevue Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The following wording changes are less intrusive:
-</p>
-
-<p>
-In 20.8.2.2.1 [util.smartptr.shared.const], add:
-</p>
-
-<blockquote><pre>
-shared_ptr(nullptr_t);
-</pre></blockquote>
-
-<p>
-after:
-</p>
-
-<blockquote><pre>
-shared_ptr();
-</pre></blockquote>
-
-<p>
-(Absence of explicit intentional.)
-</p>
-
-<p>
-<tt>px.reset( nullptr )</tt> seems a somewhat contrived way to write <tt>px.reset()</tt>, so
-I'm not convinced of its utility.
-</p>
-<p>
-It's similarly not clear to me whether the deleter constructors need to be
-extended to take <tt>nullptr</tt>, but if they need to:
-</p>
-<p>
-Add
-</p>
-
-<blockquote><pre>
-template&lt;class D&gt; shared_ptr(nullptr_t p, D d);
-template&lt;class D, class A&gt; shared_ptr(nullptr_t p, D d, A a);
-</pre></blockquote>
-
-<p>
-after
-</p>
-
-<blockquote><pre>
-template&lt;class Y, class D&gt; shared_ptr(Y* p, D d);
-template&lt;class Y, class D, class A&gt; shared_ptr(Y* p, D d, A a);
-</pre></blockquote>
-
-<p>
-Note that this changes the semantics of the new constructors such that they
-consistently call <tt>d(p)</tt> instead of <tt>d((T*)0)</tt> when <tt>p</tt> is <tt>nullptr</tt>.
-</p>
-<p>
-The ability to be able to pass <tt>0/NULL</tt> to a function that takes a <tt>shared_ptr</tt>
-has repeatedly been requested by users, but the other additions that the
-proposed resolution makes are not supported by real world demand or
-motivating examples.
-</p>
-<p>
-It might be useful to split the obvious and non-controversial <tt>nullptr_t</tt>
-constructor into a separate issue. Waiting for "empty" to be clarified is
-unnecessary; this is effectively an alias for the default constructor.
-</p>
-</blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-We want to remove the reset functions from the proposed resolution.
-</p>
-<p>
-The remaining proposed resolution text (addressing the constructors) are wanted.
-</p>
-<p>
-Disposition: move to review. The review should check the wording in the then-current working draft.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.8.2.2 [util.smartptr.shared] p4, add to the definition/synopsis
-of <tt>shared_ptr</tt>:
-</p>
-
-<blockquote><pre>
-template&lt;class D&gt; shared_ptr(nullptr_t p, D d);
-template&lt;class D, class A&gt; shared_ptr(nullptr_t p, D d, A a);
-</pre></blockquote>
-
-<p>
-after
-</p>
-
-<blockquote><pre>
-template&lt;class Y, class D&gt; shared_ptr(Y* p, D d);
-template&lt;class Y, class D, class A&gt; shared_ptr(Y* p, D d, A a);
-</pre></blockquote>
-
-<p>
-In 20.8.2.2.1 [util.smartptr.shared.const] add:
-</p>
-
-<blockquote><pre>
-template&lt;class D&gt; shared_ptr(nullptr_t p, D d);
-template&lt;class D, class A&gt; shared_ptr(nullptr_t p, D d, A a);
-</pre></blockquote>
-
-<p>
-after
-</p>
-
-<blockquote><pre>
-template&lt;class Y, class D&gt; shared_ptr(Y* p, D d);
-template&lt;class Y, class D, class A&gt; shared_ptr(Y* p, D d, A a);
-</pre></blockquote>
-
-<p>
-(reusing the following paragraphs 20.8.2.2.1 [util.smartptr.shared.const]/9-13 that speak of p.)
-</p>
-
-<p>
-In 20.8.2.2.1 [util.smartptr.shared.const]/10,  change
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Constructs a <tt>shared_ptr</tt> object that <i>owns</i> the
-<del>pointer</del> <ins>object</ins> <tt>p</tt> and the deleter <tt>d</tt>. The second 
-constructor shall use a copy of <tt>a</tt> to allocate memory for internal use.
-</p></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-"pointer" is changed to "object" to handle the fact that <tt>nullptr_t</tt> isn't a pointer.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="759"></a>759. A reference is not an object</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2007-11-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.2 [container.requirements] says:
-</p>
-
-<blockquote><p>
--12- Objects passed to member functions of a container as rvalue references shall not be elements of that container. No 
-diagnostic required.
-</p></blockquote>
-
-<p>
-A reference is not an object, but this sentence appears to claim so.
-</p>
-
-<p>
-What is probably meant here:
-</p>
-<blockquote><p>
-An object bound to an rvalue
-reference parameter of a member function of a container shall not be
-an element of that container; no diagnostic required.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.2 [container.requirements]:
-</p>
-
-<blockquote><p>
--12- <del>Objects passed to member functions of a container as rvalue references shall not be elements</del>
-<ins>An object bound to an rvalue
-reference parameter of a member function of a container shall not be
-an element</ins>
-of that container<del>.</del><ins>;</ins> <del>N</del><ins>n</ins>o 
-diagnostic required.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="761"></a>761. <tt>unordered_map</tt> needs an <tt>at()</tt> member function</h3>
-<p><b>Section:</b> 23.5.4.3 [unord.map.elem] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2007-11-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The new member function <tt>at()</tt> was recently added to <tt>std::map()</tt>.  It acts 
-like <tt>operator[]()</tt>, except it throws an exception when the input key is 
-not found.  It is useful when the <tt>map</tt> is <tt>const</tt>, the <tt>value_type</tt> of the 
-key doesn't have  a default constructor, it is an error if the key is 
-not found, or the user wants to avoid accidentally adding an element to 
-the map.  For exactly these same reasons, <tt>at()</tt> would be equally useful 
-in <tt>std::unordered_map</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following functions to the definition of <tt>unordered_map</tt> under "lookup" (23.5.4 [unord.map]):
-</p>
-
-<blockquote><pre>
-mapped_type&amp; at(const key_type&amp; k);
-const mapped_type &amp;at(const key_type &amp;k) const;
-</pre></blockquote>
-
-<p>
-Add the following definitions to 23.5.4.3 [unord.map.elem]:
-</p>
-
-<blockquote>
-<pre>
-mapped_type&amp; at(const key_type&amp; k);
-const mapped_type &amp;at(const key_type &amp;k) const;
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> A reference to <tt>x.second</tt>, where <tt>x</tt> is the (unique) element 
-whose key is equivalent to <tt>k</tt>.
-</p>
-<p>
-<i>Throws:</i> An exception object of type <tt>out_of_range</tt> if no such element 
-is present.
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Bellevue:  Editorial note: the "(unique)" differs from map.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="762"></a>762. <tt>std::unique_ptr</tt> requires complete type?</h3>
-<p><b>Section:</b> 20.8.1 [unique.ptr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-11-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr">issues</a> in [unique.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In contrast to the proposed <tt>std::shared_ptr</tt>, <tt>std::unique_ptr</tt>
-does currently not support incomplete types, because it
-gives no explicit grant - thus instantiating <tt>unique_ptr</tt> with
-an incomplete pointee type <tt>T</tt> automatically belongs to
-undefined behaviour according to 17.6.4.8 [res.on.functions]&#47;2, last
-bullet. This is an unnecessary restriction and prevents
-many well-established patterns - like the bridge pattern - for <tt>std::unique_ptr</tt>.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. The LWG is comfortable with the intent of allowing
-incomplete types and making <tt>unique_ptr</tt> more like <tt>shared_ptr</tt>, but we are
-not comfortable with the wording. The specification for <tt>unique_ptr</tt>
-should be more like that of <tt>shared_ptr</tt>. We need to know, for individual
-member functions, which ones require their types to be complete. The
-<tt>shared_ptr</tt> specification is careful to say that for each function, and
-we need the same level of care here. We also aren't comfortable with the
-"part of the operational semantic" language; it's not used elsewhere in
-the standard, and it's not clear what it means. We need a volunteer to
-produce new wording.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-The proposed changes in the following revision refers to the current state of
-N2521 including the assumption that  [unique.ptr.compiletime] will be removed
-according to the current state of <a href="lwg-defects.html#740">740</a>.
-</p>
-<p>
-The specialization <tt>unique_ptr&lt;T[]&gt;</tt> has some more restrictive constraints on
-type-completeness on <tt>T</tt> than <tt>unique_ptr&lt;T&gt;</tt>. The following proposed wordings
-try to cope with that. If the committee sees less usefulness on relaxed
-constraints on <tt>unique_ptr&lt;T[]&gt;</tt>, the alternative would be to stop this relaxation
-e.g. by adding one further bullet to 20.8.1.3 [unique.ptr.runtime]&#47;1:
-"<tt>T</tt> shall be a complete type, if used as template argument of
-<tt>unique_ptr&lt;T[], D&gt;</tt>
-</p>
-<p>
-This issue has some overlap with <a href="lwg-defects.html#673">673</a>, but it seems not to cause any
-problems with this one,
-because <a href="lwg-defects.html#673">673</a> adds only optional requirements on <tt>D</tt> that do not conflict
-with the here discussed
-ones, provided that <tt>D::pointer</tt>'s operations (including default
-construction, copy construction/assignment,
-and pointer conversion) are specified <em>not</em> to throw, otherwise this
-would have impact on the
-current specification of <tt>unique_ptr</tt>.
-</p>
-
-<ol>
-<li>
-<p>
-In 20.8.1 [unique.ptr]&#47;2 add as the last sentence to the existing para:
-</p>
-
-<blockquote><p>
-The <tt>unique_ptr</tt> provides a semantics of strict ownership. A
-<tt>unique_ptr</tt> owns the object it holds a pointer to. A
-<tt>unique_ptr</tt> is not <tt>CopyConstructible</tt>, nor
-<tt>CopyAssignable</tt>, however it is <tt>MoveConstructible</tt> and
-<tt>MoveAssignable</tt>. <ins>The template parameter <tt>T</tt> of
-<tt>unique_ptr</tt> may be an incomplete type.</ins> [ <i>Note:</i> The
-uses of <tt>unique_ptr</tt> include providing exception safety for
-dynamically allcoated memory, passing ownership of dynamically allocated
-memory to a function, and returning dynamically allocated memory from a
-function. -- <i>end note</i> ]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-20.8.1.2.1 [unique.ptr.single.ctor]&#47;1: No changes necessary.
-</p>
-
-<blockquote>
-<p><i>[
-N.B.: We only need the requirement that <tt>D</tt> is <tt>DefaultConstructible</tt>.
-The current wording says just this.
-]</i></p>
-
-</blockquote>
-</li>
-
-<li>
-<p>
-In 20.8.1.2.1 [unique.ptr.single.ctor]&#47;5 change the requires clause to say:
-</p>
-
-<blockquote>
-<p>
-<i>Requires:</i> <del>The expression <tt>D()(p)</tt> shall be well formed. The default constructor
-of <tt>D</tt> shall not throw an exception.</del>
-<del><tt>D</tt> must not be a reference type.</del>
-<ins>
-<tt>D</tt> shall be default constructible, and that construction
-shall not throw an exception.
-</ins>
-</p>
-<p><i>[
-N.B.: There is no need that the expression <tt>D()(p)</tt> is well-formed at
-this point. I assume that the current wording is based on the
-corresponding <tt>shared_ptr</tt> wording. In case of <tt>shared_ptr</tt> this
-requirement is necessary, because the corresponding c'tor *can* fail
-and must invoke delete <tt>p/d(p)</tt> in this case. <tt>Unique_ptr</tt> is simpler in
-this regard. The *only* functions that must insist on well-formedness
-and well-definedness of the expression <tt>get_deleter()(get())</tt> are (1)
-the destructor and (2) <tt>reset</tt>. The reasoning for the wording change to
-explicitly require <tt>DefaultConstructible</tt> of <tt>D</tt> is to guarantee that
-invocation of
-<tt>D</tt>'s default c'tor is both well-formed and well-defined. Note also that
-we do *not* need the
-requirement that <tt>T</tt> must be complete, also in contrast to <tt>shared_ptr</tt>.
-<tt>Shared_ptr</tt> needs this, because it's c'tor is a template c'tor which
-potentially requires <tt>Convertible&lt;Y*, X*&gt;</tt>, which
-again requires Completeness of <tt>Y</tt>, if <tt>!SameType&lt;X, Y&gt;</tt>
-]</i></p>
-
-</blockquote>
-</li>
-
-<li>
-<p>
-Merge 20.8.1.2.1 [unique.ptr.single.ctor]&#47;12+13 thereby removing the sentence
-of 12, but transferring the "requires" to 13:
-</p>
-
-<blockquote>
-<p>
-<i>Requires:</i> If <tt>D</tt> is not an lvalue-reference type then[..]
-</p>
-<p><i>[
-N.B.: For the same reasons as for (3), there is no need that <tt>d(p)</tt> is
-well-formed/well-defined at this point. The current wording guarantees
-all what we need, namely that the initialization of both the <tt>T*</tt>
-pointer and the <tt>D</tt> deleter are well-formed and well-defined.
-]</i></p>
-
-</blockquote>
-</li>
-
-<li>
-20.8.1.2.1 [unique.ptr.single.ctor]&#47;17: No changes necessary.
-</li>
-<li>
-<p>20.8.1.2.1 [unique.ptr.single.ctor]&#47;21:</p>
-
-<blockquote><p>
-<i>Requires:</i> If <tt>D</tt> is not a reference type, construction of
-the deleter <tt>D</tt> from an rvalue of type <tt>E</tt> shall be well
-formed and shall not throw an exception. If <tt>D</tt> is a reference
-type, then <tt>E</tt> shall be the same type as <tt>D</tt> (diagnostic
-required). <tt>U*</tt> shall be implicitly convertible to <tt>T*</tt>.
-<ins>[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt>
-be complete types. <i>-- end note</i>]</ins>
-</p></blockquote>
-
-<p><i>[
-N.B.: The current wording of 21 already implicitly guarantees that <tt>U</tt>
-is completely defined, because it requires that <tt>Convertible&lt;U*, T*&gt;</tt> is
-true. If the committee wishes this explicit requirement can be added,
-e.g. "<tt>U</tt> shall be a complete type."
-]</i></p>
-
-</li>
-
-<li>
-<p>
-20.8.1.2.2 [unique.ptr.single.dtor]: Just before p1 add a new paragraph:
-</p>
-<blockquote>
-<p>
-<i>Requires:</i> The expression <tt>get_deleter()(get())</tt> shall be well-formed,
-shall have well-defined behavior, and shall not throw exceptions.
-<ins>[<i>Note:</i> The use of <tt>default_delete</tt> requires <tt>T</tt> to
-be a complete type. <i>-- end note</i>]</ins>
-</p>
-<p><i>[
-N.B.: This requirement ensures that the whole responsibility on
-type-completeness of <tt>T</tt> is delegated to this expression.
-]</i></p>
-
-</blockquote>
-</li>
-
-<li>
-<p>
-20.8.1.2.3 [unique.ptr.single.asgn]&#47;1: No changes necessary, except the
-current editorial issue, that "must shall" has to be changed to
-"shall", but this change is not a special part of this resolution.
-</p>
-
-<p><i>[
-N.B. The current wording is sufficient, because we can delegate all
-further requirements on the requirements of the effects clause
-]</i></p>
-
-</li>
-
-<li>
-<p>
-20.8.1.2.3 [unique.ptr.single.asgn]&#47;6:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> Assignment of the deleter <tt>D</tt> from an rvalue
-<tt>D</tt> shall not throw an exception. <tt>U*</tt> shall be implicitly
-convertible to <tt>T*</tt>.
-<ins>[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt>
-be complete types. <i>-- end note</i>]</ins>
-</p></blockquote>
-
-<p><i>[
-N.B.: The current wording of p. 6 already implicitly guarantees that
-<tt>U</tt> is completely defined, because it requires that <tt>Convertible&lt;U*, T*&gt;</tt>
-is true, see (6)+(8).
-]</i></p>
-
-</li>
-
-<li>
-<p>
-20.8.1.2.3 [unique.ptr.single.asgn]&#47;11: No changes necessary.
-</p>
-<p><i>[
-N.B.: Delegation to requirements of effects clause is sufficient.
-]</i></p>
-
-</li>
-
-<li>
-<p>
-20.8.1.2.4 [unique.ptr.single.observers]&#47;1+4+7+9+11:
-</p>
-
-<blockquote>
-<pre>T* operator-&gt;() const;</pre>
-<blockquote><p>
-<ins><i>Note:</i> Use typically requires <tt>T</tt> shall be complete. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-20.8.1.2.5 [unique.ptr.single.modifiers]&#47;1: No changes necessary.
-</li>
-
-<li>
-<p>
-20.8.1.2.5 [unique.ptr.single.modifiers]&#47;4: Just before p. 4 add a new paragraph:
-</p>
-<blockquote><p>
-<i>Requires:</i> The expression <tt>get_deleter()(get())</tt> shall be well-formed,
-shall have well-defined behavior, and shall not throw exceptions.
-</p></blockquote>
-</li>
-
-<li>
-20.8.1.2.5 [unique.ptr.single.modifiers]&#47;7: No changes necessary.
-</li>
-
-<li>
-<p>
-20.8.1.3 [unique.ptr.runtime]: Add one additional bullet on paragraph 1:
-</p>
-
-<blockquote>
-<p>
-A specialization for array types is provided with a slightly altered interface.
-</p>
-
-<ul>
-<li>
-...
-</li>
-<li>
-<ins><tt>T</tt> shall be a complete type.</ins>
-</li>
-</ul>
-</blockquote>
-</li>
-</ol>
-
-<p><i>[
-post Bellevue: Daniel provided revised wording.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="765"></a>765. More on iterator validity</h3>
-<p><b>Section:</b> X [iterator.concepts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2007-12-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.concepts">issues</a> in [iterator.concepts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-       <p>
-
-Issue <a href="lwg-defects.html#278">278</a>
-defines the meaning of the term "invalid iterator" as one that may be
-singular.
-
-       </p>
-       <p>
-
-Consider the following code:
-
-       </p>
-       <pre>
-   std::deque&lt;int&gt; x, y;
-   std::deque&lt;int&gt;::iterator i = x.end(), j = y.end();
-   x.swap(y);
-       </pre>
-       <p>
-
-Given that <code>swap()</code> is required not to invalidate iterators
-and using the definition above, what should be the expected result of
-comparing <code>i</code> and <code>j</code> to <code>x.end()</code>
-and <code>y.end()</code>, respectively, after the <code>swap()</code>?
-
-       </p>
-       <p>
-
-I.e., is the expression below required to evaluate
-to <code>true</code>?
-
-       </p>
-       <pre>
-   i == y.end() &amp;&amp; j == x.end()
-       </pre>
-       <p>
-
-(There are at least two implementations where the expression
-returns <code>false</code>.)
-
-       </p>
-       <p>
-
-More generally, is the definition introduced in issue <a href="lwg-defects.html#278">278</a> meant to
-make any guarantees about whether iterators actually point to the same
-elements or be associated with the same containers after a
-non-invalidating operation as they did before?
-
-       </p>
-       <p>
-
-Here's a motivating example intended to demonstrate the importance of
-the question:
-
-       </p>
-       <pre>
-   Container x, y ({ 1, 2});   // pseudocode to initialize y with { 1, 2 }
-   Container::iterator i = y.begin() + 1;
-   Container::iterator j = y.end();
-   std::swap(x, y);
-   std::find(i, j, 3);
-       </pre>
-       <p>
-
-<code>swap()</code> guarantees that <code>i</code> and <code>j</code>
-continue to be valid. Unless the spec says that even though they are
-valid they may no longer denote a valid range the code above must be
-well-defined. Expert opinions on this differ as does the behavior of
-popular implementations for some standard <code>Containers</code>.
-
-       </p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Pablo: add a note to the last bullet of paragraph 11 of 23.1.1 clarifying that 
-the <tt>end()</tt> iterator doesn't refer to an element and that it can therefore be invalidated.
-</p>
-<p>
-Proposed wording:
-</p>
-<blockquote><p>
-[<i>Note:</i> The <tt>end()</tt> iterator does not refer to any element and can
-therefore be invalidated. <i>-- end note</i>]
-</p></blockquote>
-<p>
-Howard will add this proposed wording to the issue and then move it to Review.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence: suggestion: "Note: The <tt>end()</tt> iterator does not refer to any element"
-</p>
-<p>
-Walter: "Note: The <tt>end()</tt> iterator can nevertheless be invalidated,
-because it does not refer to any element."
-</p>
-<p>
-Nick: "The <tt>end()</tt> iterator does not refer to any element. It is therefore
-subject to being invalidated."
-</p>
-<p>
-Consensus: go with Nick
-</p>
-<p>
-With that update, Recommend Tentatively Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 23.2.1 [container.requirements.general], p11:
-</p>
-
-<blockquote>
-<p>
-Unless otherwise specified (see 23.1.4.1, 23.1.5.1, 23.2.2.3, and
-23.2.6.4) all container types defined in this Clause meet the following
-additional requirements:
-</p>
-<ul>
-<li>...</li>
-<li>
-no <tt>swap()</tt> function invalidates any references, pointers, or
-iterators referring to the elements of the containers being swapped.
-<ins>[<i>Note:</i> The <tt>end()</tt> iterator does not refer to any element. 
-It is therefore subject to being invalidated. &mdash; <i>end note</i>]</ins>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="766"></a>766. Inconsistent exception guarantees between ordered and unordered associative containers</h3>
-<p><b>Section:</b> 23.2 [container.requirements], 23.2.5.1 [unord.req.except] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Ion Gazta&ntilde;aga <b>Opened:</b> 2007-12-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.2 [container.requirements]p10 states:
-</p>
-
-<blockquote>
-<p>
-Unless otherwise specified (see 23.2.2.3 and 23.2.5.4) all container types defined in this clause meet the following
-additional requirements:
-</p>
-<ul>
-
-<li>[...]</li>
-
-<li>no <tt>erase()</tt>, <tt>pop_back()</tt> or <tt>pop_front()</tt> function throws an exception.</li>
-
-</ul>
-</blockquote>
-
-<p>
-23.3.3.4 [deque.modifiers] and 23.3.6.5 [vector.modifiers] offer
-additional guarantees for <tt>deque</tt>/<tt>vector insert()</tt> and
-<tt>erase()</tt> members. However, 23.2 [container.requirements] p10 
-does not mention 23.2.5.1 [unord.req.except] that specifies exception 
-safety guarantees for unordered containers. In addition,  
-23.2.5.1 [unord.req.except] p1 offers the following guaratee for
-<tt>erase()</tt>:
-</p>
-
-<blockquote><p>
-No <tt>erase()</tt> function throws an exception unless that exception
-is thrown by the container's Hash or Pred object (if any).
-</p></blockquote>
-
-<p>
-Summary:
-</p>
-
-<p>
-According to 23.2 [container.requirements] p10 no
-<tt>erase()</tt> function should throw an exception unless otherwise
-specified. Although does not explicitly mention 23.2.5.1 [unord.req.except], this section offers additional guarantees
-for unordered containers, allowing <tt>erase()</tt> to throw if
-predicate or hash function throws.
-</p>
-
-<p>
-In contrast, associative containers have no exception safety guarantees
-section so no <tt>erase()</tt> function should throw, <em>including
-<tt>erase(k)</tt></em> that needs to use the predicate function to
-perform its work. This means that the predicate of an associative
-container is not allowed to throw.
-</p>
-
-<p>
-So:
-</p>
-
-<ol>
-<li>
-<tt>erase(k)</tt> for associative containers is not allowed to throw. On
-the other hand, <tt>erase(k)</tt> for unordered associative containers
-is allowed to throw.
-</li>
-<li>
-<tt>erase(q)</tt> for associative containers is not allowed to throw. On
-the other hand, <tt>erase(q)</tt> for unordered associative containers
-is allowed to throw if it uses the hash or predicate.
-</li>
-<li>
-To fulfill 1), predicates of associative containers are not allowed to throw.
-Predicates of unordered associative containers are allowed to throw.
-</li>
-<li>
-2) breaks a widely used programming pattern (flyweight pattern) for
-unordered containers, where objects are registered in a global map in
-their constructors and unregistered in their destructors. If <tt>erase(q)</tt> is
-allowed to throw, the destructor of the object would need to rethrow the
-exception or swallow it, leaving the object registered.
-</li>
-</ol>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Create a new sub-section of 23.2.4 [associative.reqmts] (perhaps 
-[associative.req.except]) titled "Exception safety guarantees".
-</p>
-
-<blockquote>
-<p>
-1 For associative containers, no <tt>clear()</tt> function throws an exception.
-<tt>erase(k)</tt> does not throw an exception unless that exception is thrown by
-the container's Pred object (if any).
-</p>
-
-<p>
-2 For associative containers, if an exception is thrown by any operation
-from within an <tt>insert()</tt> function inserting a single element, the
-<tt>insert()</tt> function has no effect.
-</p>
-
-<p>
-3 For associative containers, no <tt>swap</tt> function throws an exception
-unless that exception is thrown by the copy constructor or copy
-assignment operator of the container's Pred object (if any).
-</p>
-</blockquote>
-
-<p>
-Change 23.2.5.1 [unord.req.except]p1:
-</p>
-
-<blockquote><p>
-For unordered associative containers, no <tt>clear()</tt> function
-throws an exception. <del>No</del> <tt>erase(<ins>k</ins>)</tt>
-<del>function</del> <ins>does not</ins> throw<del>s</del> an exception
-unless that exception is thrown by the container's Hash or Pred object
-(if any).
-</p></blockquote>
-
-<p>
-Change 23.2 [container.requirements] p10 to add references to new sections:
-</p>
-
-<blockquote><p>
-Unless otherwise specified (see [deque.modifiers]<ins>,</ins>
-<del>and</del> [vector.modifiers]<ins>, [associative.req.except],
-[unord.req.except]</ins>) all container types defined in this clause meet
-the following additional requirements:
-</p></blockquote>
-
-<p>
-Change 23.2 [container.requirements] p10 referring to <tt>swap</tt>:
-</p>
-
-<blockquote>
-<ul>
-<li>
-no <tt>swap()</tt> function throws an exception<del> unless that exception is thrown
-by the copy constructor or assignment operator of the container's
-Compare object (if any; see [associative.reqmts])</del>.
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="767"></a>767. Forwarding and backward compatibility</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Sylvain Pion <b>Opened:</b> 2007-12-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Playing with g++'s C++0X mode, I noticed that the following code, which used to compile:
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt;
-
-int main()
-{
-    std::vector&lt;char *&gt; v;
-    v.push_back(0);
-}
-</pre></blockquote>
-
-<p>
-now fails with the following error message:
-</p>
-
-<blockquote><p>
-.../include/c++/4.3.0/ext/new_allocator.h: In member function 'void __gnu_cxx::new_allocator&lt;_Tp&gt;::construct(_Tp*, _Args&amp;&amp; ...) [with _Args = int, _Tp = char*]':
-.../include/c++/4.3.0/bits/stl_vector.h:707:   instantiated from 'void std::vector&lt;_Tp, _Alloc&gt;::push_back(_Args&amp;&amp; ...) [with _Args = int, _Tp = char*, _Alloc = std::allocator&lt;char*&gt;]'
-test.cpp:6:   instantiated from here
-.../include/c++/4.3.0/ext/new_allocator.h:114: error: invalid conversion from 'int' to 'char*'
-</p></blockquote>
-
-<p>
-As far as I know, g++ follows the current draft here.
-</p>
-<p>
-Does the committee really intend to break compatibility for such cases?
-</p>
-
-<p><i>[
-Sylvain adds: 
-]</i></p>
-
-
-<blockquote>
-<p>
-I just noticed that <tt>std::pair</tt> has the same issue.
-The following now fails with GCC's -std=c++0x mode:
-</p>
-
-<blockquote><pre>
-#include &lt;utility&gt;
-
-int main()
-{
-   std::pair&lt;char *, char *&gt; p (0,0);
-}
-</pre></blockquote>
-
-<p>
-I have not made any general audit for such problems elsewhere.
-</p>
-</blockquote>
-
-<p><i>[
-Related to <a href="lwg-defects.html#756">756</a>
-]</i></p>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Motivation is to handle the old-style int-zero-valued <tt>NULL</tt> pointers.
-Problem: this solution requires concepts in some cases, which some users
-will be slow to adopt. Some discussion of alternatives involving
-prohibiting variadic forms and additional library-implementation
-complexity.
-</p>
-<p>
-Discussion of "perfect world" solutions, the only such solution put
-forward being to retroactively prohibit use of the integer zero for a
-<tt>NULL</tt> pointer. This approach was deemed unacceptable given the large
-bodies of pre-existing code that do use integer zero for a <tt>NULL</tt> pointer.
-</p>
-<p>
-Another approach is to change the member names. Yet another approach is
-to forbid the extension in absence of concepts.
-</p>
-<p>
-Resolution: These issues (<a href="lwg-defects.html#756">756</a>, <a href="lwg-defects.html#767">767</a>, <a href="lwg-active.html#760">760</a>, 
-<a href="lwg-closed.html#763">763</a>) will be subsumed into a paper to be produced by Alan Talbot 
-in time for review at the 2008 meeting in France. Once this paper is produced, 
-these issues will be moved to <del>NAD</del><ins>Resolved</ins>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following rows to Table 90 "Optional sequence container operations", 23.2.3 [sequence.reqmts]:
-</p>
-
-<blockquote>
-<table border="1">
-<tr>
-<th>expression</th> <th>return type</th> <th>assertion/note<br/>pre-/post-condition</th> <th>container</th>
-</tr>
-
-<tr>
-<td>
-<tt>a.push_front(t)</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-<tt>a.insert(a.begin(), t)</tt><br/>
-<i>Requires:</i> <tt>T</tt> shall be <tt>CopyConstructible</tt>.
-</td>
-<td>
-<tt>list, deque</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.push_front(rv)</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-<tt>a.insert(a.begin(), rv)</tt><br/>
-<i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt>.
-</td>
-<td>
-<tt>list, deque</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.push_back(t)</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-<tt>a.insert(a.end(), t)</tt><br/>
-<i>Requires:</i> <tt>T</tt> shall be <tt>CopyConstructible</tt>.
-</td>
-<td>
-<tt>list, deque, vector, basic_string</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.push_back(rv)</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-<tt>a.insert(a.end(), rv)</tt><br/>
-<i>Requires:</i> <tt>T</tt> shall be <tt>MoveConstructible</tt>.
-</td>
-<td>
-<tt>list, deque, vector, basic_string</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-Change the synopsis in 23.3.3 [deque]:
-</p>
-
-<blockquote><pre>
-<ins>void push_front(const T&amp; x);</ins>
-<ins>void push_front(T&amp;&amp; x);</ins>
-<ins>void push_back(const T&amp; x);</ins>
-<ins>void push_back(T&amp;&amp; x);</ins>
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_front(Args&amp;&amp;... args);
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_back(Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-Change 23.3.3.4 [deque.modifiers]:
-</p>
-
-<blockquote><pre>
-<ins>void push_front(const T&amp; x);</ins>
-<ins>void push_front(T&amp;&amp; x);</ins>
-<ins>void push_back(const T&amp; x);</ins>
-<ins>void push_back(T&amp;&amp; x);</ins>
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_front(Args&amp;&amp;... args);
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_back(Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-Change the synopsis in 23.3.5 [list]:
-</p>
-
-<blockquote><pre>
-<ins>void push_front(const T&amp; x);</ins>
-<ins>void push_front(T&amp;&amp; x);</ins>
-<ins>void push_back(const T&amp; x);</ins>
-<ins>void push_back(T&amp;&amp; x);</ins>
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_front(Args&amp;&amp;... args);
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_back(Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-Change 23.3.5.4 [list.modifiers]:
-</p>
-
-<blockquote><pre>
-<ins>void push_front(const T&amp; x);</ins>
-<ins>void push_front(T&amp;&amp; x);</ins>
-<ins>void push_back(const T&amp; x);</ins>
-<ins>void push_back(T&amp;&amp; x);</ins>
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_front(Args&amp;&amp;... args);
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_back(Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-Change the synopsis in 23.3.6 [vector]:
-</p>
-
-<blockquote><pre>
-<ins>void push_back(const T&amp; x);</ins>
-<ins>void push_back(T&amp;&amp; x);</ins>
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_back(Args&amp;&amp;... args);
-</pre></blockquote>
-
-<p>
-Change 23.3.6.5 [vector.modifiers]:
-</p>
-
-<blockquote><pre>
-<ins>void push_back(const T&amp; x);</ins>
-<ins>void push_back(T&amp;&amp; x);</ins>
-template &lt;class... Args&gt; <ins>requires Constructible&lt;T, Args&amp;&amp;...&gt;</ins> void push_back(Args&amp;&amp;... args);
-</pre></blockquote>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2680.pdf">N2680 Proposed Wording for Placement Insert (Revision 1)</a>.
-</p>
-
-<p>
-If there is still an issue with pair, Howard should submit another issue.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="768"></a>768. Typos in [atomics]?</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2007-12-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-in the latest publicly available draft, paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">N2641</a>,
-in section 29.5 [atomics.types.generic], the following specialization of the template
-<tt>atomic&lt;&gt;</tt> is provided for pointers:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct atomic&lt;T*&gt; : atomic_address { 
-  T* fetch_add(ptrdiff_t, memory_order = memory_order_seq_cst) volatile; 
-  T* fetch_sub(ptrdiff_t, memory_order = memory_order_seq_cst) volatile; 
-
-  atomic() = default; 
-  constexpr explicit atomic(T); 
-  atomic(const atomic&amp;) = delete; 
-  atomic&amp; operator=(const atomic&amp;) = delete; 
-
-  T* operator=(T*) volatile; 
-  T* operator++(int) volatile; 
-  T* operator--(int) volatile; 
-  T* operator++() volatile; 
-  T* operator--() volatile; 
-  T* operator+=(ptrdiff_t) volatile;
-  T* operator-=(ptrdiff_t) volatile; 
-};
-</pre></blockquote>
-
-<p>
-First of all, there is a typo in the non-default constructor which
-should take a <tt>T*</tt> rather than a <tt>T</tt>.
-</p>
-
-<p>
-As you can see, the specialization redefine and therefore hide a few
-methods from the base class <tt>atomic_address</tt>, namely <tt>fetch_add</tt>, <tt>fetch_sub</tt>,
-<tt>operator=</tt>, <tt>operator+=</tt> and <tt>operator-=</tt>. That's good, but... what happened
-to the other methods, in particular these ones:
-</p>
-
-<blockquote><pre>
-void store(T*, memory_order = memory_order_seq_cst) volatile;
-T* load( memory_order = memory_order_seq_cst ) volatile;
-T* swap( T*, memory_order = memory_order_seq_cst ) volatile;
-bool compare_swap( T*&amp;, T*, memory_order, memory_order ) volatile;
-bool compare_swap( T*&amp;, T*, memory_order = memory_order_seq_cst ) volatile;
-</pre></blockquote>
-
-<p>
-By reading paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html">N2427 "C++ Atomic Types and Operations"</a>,
-I see that the
-definition of the specialization <tt>atomic&lt;T*&gt;</tt> matches the one in the
-draft, but in the example implementation the methods <tt>load()</tt>, <tt>swap()</tt>
-and <tt>compare_swap()</tt> are indeed present.
-</p>
-
-<p>
-Strangely, the example implementation does not redefine the method
-<tt>store()</tt>. It's true that a <tt>T*</tt> is always convertible to <tt>void*</tt>, but not
-hiding the <tt>void*</tt> signature from the base class makes the class
-error-prone to say the least: it lets you assign pointers of any type to
-a <tt>T*</tt>, without any hint from the compiler.
-</p>
-
-<p>
-Is there a true intent to remove them from the specialization or are
-they just missing from the definition because of a mistake?
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed revisions are accepted.
-</p>
-<p>
-Further discussion: why is the ctor labeled "constexpr"? Lawrence said
-this permits the object to be statically initialized, and that's
-important because otherwise there would be a race condition on
-initialization.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 29.5 [atomics.types.generic]:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct atomic&lt;T*&gt; : atomic_address { 
-  <ins>void store(T*, memory_order = memory_order_seq_cst) volatile;</ins>
-  <ins>T* load( memory_order = memory_order_seq_cst ) volatile;</ins>
-  <ins>T* swap( T*, memory_order = memory_order_seq_cst ) volatile;</ins>
-  <ins>bool compare_swap( T*&amp;, T*, memory_order, memory_order ) volatile;</ins>
-  <ins>bool compare_swap( T*&amp;, T*, memory_order = memory_order_seq_cst ) volatile;</ins>
-
-  T* fetch_add(ptrdiff_t, memory_order = memory_order_seq_cst) volatile; 
-  T* fetch_sub(ptrdiff_t, memory_order = memory_order_seq_cst) volatile; 
-
-  atomic() = default; 
-  constexpr explicit atomic(T<ins>*</ins>); 
-  atomic(const atomic&amp;) = delete; 
-  atomic&amp; operator=(const atomic&amp;) = delete; 
-
-  T* operator=(T*) volatile; 
-  T* operator++(int) volatile; 
-  T* operator--(int) volatile; 
-  T* operator++() volatile; 
-  T* operator--() volatile; 
-  T* operator+=(ptrdiff_t) volatile;
-  T* operator-=(ptrdiff_t) volatile; 
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="769"></a>769. std::function should use nullptr_t instead of "unspecified-null-pointer-type"</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N2461 already replaced in 20.9.12.2 [func.wrap.func] it's originally proposed
-(implicit) conversion operator to "unspecified-bool-type" by the new
-explicit bool conversion, but the inverse conversion should also
-use the new <tt>std::nullptr_t</tt> type instead of "unspecified-null-pointer-
-type".
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In 20.9 [function.objects], header <tt>&lt;functional&gt;</tt> synopsis replace:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-  bool operator==(const function&lt;R(ArgTypes...)&gt;&amp;, <del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-template&lt;class R, class... ArgTypes&gt;
-  bool operator==(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins> , const function&lt;R(ArgTypes...)&gt;&amp;);
-template&lt;class R, class... ArgTypes&gt;
-  bool operator!=(const function&lt;R(ArgTypes...)&gt;&amp;, <del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-template&lt;class R, class... ArgTypes&gt;
-  bool operator!=(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins> , const function&lt;R(ArgTypes...)&gt;&amp;);
-</pre></blockquote>
-
-<p>
-In the class function synopsis of 20.9.12.2 [func.wrap.func] replace
-</p>
-
-<blockquote><pre>
-function(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-...
-function&amp; operator=(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-</pre></blockquote>
-
-<p>
-In 20.9.12.2 [func.wrap.func], "Null pointer comparisons" replace:
-</p>
-
-<blockquote><pre>
-template &lt;class R, class... ArgTypes&gt;
-  bool operator==(const function&lt;R(ArgTypes...)&gt;&amp;, <del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-template &lt;class R, class... ArgTypes&gt;
-  bool operator==(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins> , const function&lt;R(ArgTypes...)&gt;&amp;);
-template &lt;class R, class... ArgTypes&gt;
-  bool operator!=(const function&lt;R(ArgTypes...)&gt;&amp;, <del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-template &lt;class R, class... ArgTypes&gt;
-  bool operator!=(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins> , const function&lt;R(ArgTypes...)&gt;&amp;);
-</pre></blockquote>
-
-<p>
-In 20.9.12.2.1 [func.wrap.func.con], replace
-</p>
-
-<blockquote><pre>
-function(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-...
-function&amp; operator=(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-</pre></blockquote>
-
-<p>
-In 20.9.12.2.6 [func.wrap.func.nullptr], replace
-</p>
-
-<blockquote><pre>
-template &lt;class R, class... ArgTypes&gt;
-  bool operator==(const function&lt;R(ArgTypes...)&gt;&amp; f, <del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-template &lt;class R, class... ArgTypes&gt;
-  bool operator==(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins> , const function&lt;R(ArgTypes...)&gt;&amp; f);
-</pre></blockquote>
-
-<p>
-and replace
-</p>
-
-<blockquote><pre>
-template &lt;class R, class... ArgTypes&gt;
-  bool operator!=(const function&lt;R(ArgTypes...)&gt;&amp; f, <del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins>);
-template &lt;class R, class... ArgTypes&gt;
-  bool operator!=(<del>unspecified-null-pointer-type</del> <ins>nullptr_t</ins> , const function&lt;R(ArgTypes...)&gt;&amp; f);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="770"></a>770. std::function should use rvalue swap</h3>
-<p><b>Section:</b> 20.9.12 [func.wrap] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is expected that typical implementations of <tt>std::function</tt> will
-use dynamic memory allocations at least under given conditions,
-so it seems appropriate to change the current lvalue swappabilty of
-this class to rvalue swappability.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.9 [function.objects], header <tt>&lt;functional&gt;</tt> synopsis, just below of
-</p>
-
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-<ins>template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;&amp;);</ins>
-</pre></blockquote>
-
-<p>
-In 20.9.12.2 [func.wrap.func] class <tt>function</tt> definition, change
-</p>
-
-<blockquote><pre>
-void swap(function&amp;<ins>&amp;</ins>);
-</pre></blockquote>
-
-<p>
-In 20.9.12.2 [func.wrap.func], just below of
-</p>
-
-<blockquote><pre>
-template &lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-<ins>template &lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;&amp;, function&lt;R(ArgTypes...)&gt;&amp;);
-template &lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;, function&lt;R(ArgTypes...)&gt;&amp;&amp;);</ins>
-</pre></blockquote>
-
-<p>
-In 20.9.12.2.2 [func.wrap.func.mod] change
-</p>
-
-<blockquote><pre>
-void swap(function&amp;<ins>&amp;</ins> other);
-</pre></blockquote>
-
-<p>
-In 20.9.12.2.7 [func.wrap.func.alg] add the two overloads
-</p>
-
-<blockquote><pre>
-<ins>template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp;&amp; f1, function&lt;R(ArgTypes...)&gt;&amp; f2);
-template&lt;class R, class... ArgTypes&gt;
-  void swap(function&lt;R(ArgTypes...)&gt;&amp; f1, function&lt;R(ArgTypes...)&gt;&amp;&amp; f2);</ins>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="771"></a>771. Impossible throws clause in [string.conversions]</h3>
-<p><b>Section:</b> 21.5 [string.conversions] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.conversions">issues</a> in [string.conversions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The new <tt>to_string</tt> and <tt>to_wstring</tt> functions described in 21.5 [string.conversions]
-have throws clauses (paragraphs 8 and 16) which say:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> nothing
-</p></blockquote>
-
-<p>
-Since all overloads return either a <tt>std::string</tt> or a <tt>std::wstring</tt> by value
-this throws clause is impossible to realize in general, since the <tt>basic_string</tt>
-constructors can fail due to out-of-memory conditions. Either these throws
-clauses should be removed or should be more detailled like:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> Nothing if the string construction throws nothing
-</p></blockquote>
-
-<p>
-Further there is an editorial issue in p. 14: All three <tt>to_wstring</tt>
-overloads return a <tt>string</tt>, which should be <tt>wstring</tt> instead (The
-header <tt>&lt;string&gt;</tt> synopsis of 21.3 [string.classes] is correct in this
-regard).
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 21.5 [string.conversions], remove the paragraphs 8 and 16.
-</p>
-
-<blockquote>
-<pre>
-string to_string(long long val); 
-string to_string(unsigned long long val); 
-string to_string(long double val); 
-</pre>
-<blockquote><p>
-<del><i>Throws:</i> nothing</del>
-</p></blockquote>
-</blockquote>
-
-<blockquote>
-<pre>
-<ins>w</ins>string to_wstring(long long val); 
-<ins>w</ins>string to_wstring(unsigned long long val); 
-<ins>w</ins>string to_wstring(long double val); 
-</pre>
-<blockquote><p>
-<del><i>Throws:</i> nothing</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="772"></a>772. Impossible return clause in [string.conversions]</h3>
-<p><b>Section:</b> 21.5 [string.conversions] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.conversions">issues</a> in [string.conversions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The return clause 21.5 [string.conversions] paragraph 15 of the new <tt>to_wstring</tt>
-overloads says:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> each function returns a <tt>wstring</tt> object holding the character
-representation of the value of its argument that would be generated by
-calling <tt>wsprintf(buf, fmt, val)</tt> with a format specifier of <tt>L"%lld"</tt>, <tt>L"%ulld"</tt>,
-or <tt>L"%f"</tt>, respectively.
-</p></blockquote>
-
-<p>
-Problem is: There does not exist any <tt>wsprintf</tt> function in C99 (I checked
-the 2nd edition of ISO 9899, and the first and the second corrigenda from
-2001-09-01 and 2004-11-15). What probably meant here is the function
-<tt>swprintf</tt> from <tt>&lt;wchar.h&gt;&#47;&lt;cwchar&gt;</tt>, but this has the non-equivalent
-declaration:
-</p>
-
-<blockquote><pre>
-int swprintf(wchar_t * restrict s, size_t n,
-const wchar_t * restrict format, ...);
-</pre></blockquote>
-
-<p>
-therefore the paragraph needs to mention the <tt>size_t</tt> parameter <tt>n</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the current wording of 21.5 [string.conversions] p. 15 to:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <del>e</del><ins>E</ins>ach function returns a
-<tt>wstring</tt> object holding the character representation of the
-value of its argument that would be generated by calling
-<tt><del>ws</del><ins>sw</ins>printf(buf, <ins>bufsz,</ins> fmt,
-val)</tt> with a format specifier <ins><tt>fmt</tt></ins> of <tt>L"%lld"</tt>,
-<tt>L"%ulld"</tt>, or <tt>L"%f"</tt>, respectively<ins>, where <tt>buf</tt>
-designates an internal character buffer of sufficient size <tt>bufsz</tt></ins>.
-</p></blockquote>
-
-<p>
-[Hint to the editor: The resolution also adds to mention the name of
-the format specifier "fmt"]
-</p>
-
-<p>
-I also would like to remark that the current wording of it's equivalent
-paragraph 7 should also mention the meaning of <tt>buf</tt> and <tt>fmt</tt>.
-</p>
-
-<p>
-Change the current wording of 21.5 [string.conversions] p. 7 to:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <del>e</del><ins>E</ins>ach function returns a string object holding the
-character representation of the value of its argument that would be
-generated by calling <tt>sprintf(buf, fmt, val)</tt> with a format specifier <ins><tt>fmt</tt></ins> of
-<tt>"%lld"</tt>, <tt>"%ulld"</tt>, or <tt>"%f"</tt>, respectively<ins>, where <tt>buf</tt> designates an internal
-character buffer of sufficient size</ins>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="774"></a>774. Member <tt>swap</tt> undefined for most containers</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-01-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It appears most containers declare but do not define a member-swap
-function.
-</p>
-
-<p>
-This is unfortunate, as all overload the <tt>swap</tt> algorithm to call the
-member-swap function!
-(required for <tt>swappable</tt> guarantees [Table 37] and Container Requirements
-[Table 87])
-</p>
-
-<p>
-Note in particular that Table 87 gives semantics of <tt>a.swap(b)</tt> as <tt>swap(a,b)</tt>,
-yet for all containers we define <tt>swap(a,b)</tt> to call <tt>a.swap(b)</tt> - a circular
-definition.
-</p>
-
-<p>
-A quick survey of clause 23 shows that the following containers provide a
-definition for member-swap:
-</p>
-
-<blockquote><pre>
-array
-queue
-stack
-vector
-</pre></blockquote>
-
-<p>
-Whereas the following declare it, but do not define the semantics:
-</p>
-
-<blockquote><pre>
-deque
-list
-map
-multimap
-multiset
-priority_queue
-set
-unordered_map
-unordered_multi_map
-unordered_multi_set
-unordered_set
-</pre></blockquote>
-
-<p>
-Suggested resolution:
-</p>
-<blockquote><p>
-Provide a definition for each of the affected containers...
-</p></blockquote>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open and ask Alisdair to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Daniel to provide wording.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2590.pdf">N2590</a>
-is no longer applicable.
-</p></blockquote>
-
-<p><i>[
-2009-07-28 Daniel provided wording.
-]</i></p>
-
-
-<blockquote>
-<ol>
-<li>
-It assumes that the proposed resolution for <a href="lwg-defects.html#883">883</a> is applied,
-which breaks the circularity of definition between member
-<tt>swap</tt> and free <tt>swap</tt>.
-</li>
-
-<li>
-It uses the notation of the pre-concept allocator trait
-<tt>allocator_propagation_map</tt>, which might be renamed after the
-next refactoring phase of generalized allocators.
-</li>
-
-<li>
-It requires that compare objects, key equal functions and
-hash functions in containers are swapped via unqualified free
-<tt>swap</tt> according to <a href="lwg-defects.html#594">594</a>.
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-09-30 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-The outcome of this issue should be considered with the outcome of 
-<a href="lwg-defects.html#1198">1198</a> both in style and in content (e.g. bullet 9 suggests to
-define the semantic of <tt>void priority_queue::swap(priority_queue&amp;)</tt> 
-in terms of the member <tt>swap</tt> of the container).
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Looked at, but took no action on as it overlaps too much with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-Waiting for a new draft WP.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as open. Pablo to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-10-26 Pablo updated wording.  Here is the wording he replaced:
-]</i></p>
-
-
-<blockquote class="note">
-<ol>
-<li>
-<p>
-Add a new Throws clause just after X [allocator.propagation.map]/5:
-</p>
-
-<blockquote><pre>
-static void swap(Alloc&amp; a, Alloc&amp; b);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> [..]
-</p>
-
-<p>
-<ins><i>Throws:</i> Nothing.</ins>
-</p>
-</blockquote>
-</blockquote>
-<p><i>[
-This exception requirement is added, such that it's combination with the
-general container requirements of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-[container.requirements.general]/9
-make it unambiguously clear that the following descriptions of "swaps the
-allocators" have the following meaning: (a) This swap is done by calling
-<tt>allocator_propagation_map&lt;allocator_type&gt;::swap</tt> and (b) This allocator
-swap does never propagate an exception
-]</i></p>
-
-</li>
-
-<li>
-<p>
-Change 23.2.4.1 [associative.reqmts.except]/3 as indicated:
-</p>
-
-<blockquote><p>
-For associative containers, no <tt>swap</tt> function throws an exception unless that
-exception is thrown by the <del>copy constructor or copy assignment
-operator</del>
-<ins><tt>swap</tt></ins> of the container's <tt>Pred</tt> object<ins>s</ins><del> (if any)</del>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 23.2.5.1 [unord.req.except]/3 as indicated:
-</p>
-
-<blockquote><p>
-For unordered associative containers, no <tt>swap</tt> function throws an
-exception unless
-that exception is thrown by the <del>copy constructor or copy
-assignment operator</del>
-<ins><tt>swap</tt></ins> of the container's <tt>Hash</tt> or <tt>Pred</tt> object<ins>s,
-respectively</ins><del> (if any)</del>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Insert a new paragraph just after 23.3 [sequences]/1:
-</p>
-
-<blockquote><p>
-<ins>In addition to being available via inclusion of the <tt>&lt;algorithm&gt;</tt> header,
-the <tt>swap</tt> function templates in 25.3.3 [alg.swap] are also available when the
-header <tt>&lt;queue&gt;</tt> is included.</ins>
-</p></blockquote>
-
-<p><i>[
-There is a new issue in process that will suggest a minimum header for <tt>swap</tt>
-and <tt>move</tt>. If this one is provided, this text can be removed and the header
-dependency should be added to <tt>&lt;queue&gt;</tt>
-]</i></p>
-
-
-</li>
-
-<li>
-<p>
-Add one further clause at the end of 23.3.2.3 [array.special]:
-</p>
-<p><i>[This part is added, because otherwise <tt>array::swap</tt> would otherwise
-contradict the
-general contract of 23.2.1 [container.requirements.general] p. 10 b. 5]</i></p>
-
-
-<blockquote><p>
-<ins><i>Throws:</i> Nothing, unless one of the element-wise <tt>swap</tt> calls throws
-an exception.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.3.3 [deque], class template <tt>deque</tt> synopsis change as indicated:
-</p>
-<blockquote><pre>
-void swap(deque<del>&lt;T,Alloc&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-At the end of 23.3.3.4 [deque.modifiers] add as indicated:
-</p>
-
-<blockquote><pre>
-<ins>void swap(deque&amp; x);</ins>
-</pre>
-<blockquote>
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>.</ins>
-</p>
-<p>
-<ins><i>Complexity:</i> Constant time.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.3.4 [forwardlist], class template <tt>forward_list</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(forward_list<del>&lt;T,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-At the end of 23.3.4.5 [forwardlist.modifiers] add as indicated:
-</p>
-
-<blockquote><pre>
-<ins>void swap(forward_list&amp; x);</ins>
-</pre>
-<blockquote>
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>.</ins>
-</p>
-<p>
-<ins><i>Complexity:</i> Constant time.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.3.5 [list], class template <tt>list</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(list<del>&lt;T,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-At the end of 23.3.5.4 [list.modifiers] add as indicated:
-</p>
-
-<blockquote><pre>
-<ins>void swap(list&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>.</ins>
-</p>
-
-<p>
-<ins><i>Complexity:</i> Constant time.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-At the end of 23.6.4.3 [priqueue.members] add a new prototype description:
-</p>
-
-<blockquote><pre>
-<ins>void swap(priority_queue&amp; q);</ins>
-</pre>
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Compare</tt> shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p><i>[
-This requirement is added to ensure that even a user defined <tt>swap</tt>
-which is found by ADL for <tt>Compare</tt> satisfies the <tt>Swappable</tt> requirements
-]</i></p>
-
-
-<p>
-<ins><i>Effects:</i> <tt>this-&gt;c.swap(q.c); swap(this-&gt;comp, q.comp);</tt></ins>
-</p>
-<p>
-<ins><i>Throws:</i> What and if <tt>c.swap(q.c)</tt> and <tt>swap(comp, q.comp)</tt> throws.</ins>
-</p>
-</blockquote>
-</blockquote>
-<p><i>[
-This part is added, because otherwise <tt>priority_queue::swap</tt> would otherwise
-contradict the general contract of 23.2.1 [container.requirements.general] p. 10 b. 5
-]</i></p>
-
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.3.6 [vector], class template <tt>vector</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(vector<del>&lt;T,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.6.3 [vector.capacity] p. 8 as indicated:
-</p>
-
-<blockquote><pre>
-void swap(vector<del>&lt;T,Allocator&gt;</del>&amp; x);
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> Exchanges the contents and <tt>capacity()</tt> <ins>and swaps the
-allocators</ins> of <tt>*this</tt> with that of <tt>x</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-Insert a new paragraph just before 23.4 [associative]/1:
-</p>
-
-<blockquote><p>
-<ins>In addition to being available via inclusion of the <tt>&lt;algorithm&gt;</tt> header,
-the <tt>swap</tt> function templates in 25.3.3 [alg.swap] are also available when any of the
-headers <tt>&lt;map&gt;</tt> or <tt>&lt;set&gt;</tt> are included.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.4.4 [map], class template <tt>map</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(map<del>&lt;Key,T,Compare,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-At the end of 23.4.4.4 [map.modifiers] add as indicated:
-</p>
-
-<blockquote><pre>
-<ins>void swap(map&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p><i>[
-This requirement is added to ensure that even a user defined <tt>swap</tt>
-which is found by ADL for <tt>Compare</tt> satisfies the <tt>Swappable</tt>
-requirements
-]</i></p>
-
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
-of <tt>*this</tt> and <tt>x</tt>.</ins>
-</p>
-
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.4.5 [multimap], class template <tt>multimap</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(multimap<del>&lt;Key,T,Compare,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-At the end of 23.4.5.3 [multimap.modifiers] add as indicated:
-</p>
-
-<blockquote><pre>
-<ins>void swap(multimap&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
-of <tt>*this</tt> and <tt>x</tt>.</ins>
-</p>
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.4.6 [set], class template <tt>set</tt> synopsis change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(set<del>&lt;Key,Compare,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-After section 23.4.6.2 [set.cons] add a new section <ins><tt>set</tt> modifiers
- [set.modifiers]</ins>
-and add the following paragraphs:
-</p>
-
-<blockquote><pre>
-<ins>void swap(set&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
-of <tt>*this</tt> and <tt>x</tt>.</ins>
-</p>
-
-<p>
-<ins>Complexity: Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-In 23.4.7 [multiset], class template <tt>multiset</tt> synosis, change as indicated:
-</p>
-
-<blockquote><pre>
-void swap(multiset<del>&lt;Key,Compare,Allocator&gt;</del>&amp;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-After section 23.4.7.2 [multiset.cons] add a new section <ins><tt>multiset</tt> modifiers
- [multiset.modifiers]</ins> and add the following paragraphs:
-</p>
-
-<blockquote><pre>
-<ins>void swap(multiset&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> Compare shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and swaps the allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the comparison objects
-of <tt>*this</tt> and <tt>x</tt>.</ins>
-</p>
-
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-Insert a new paragraph just before 23.5 [unord] p. 1:
-</p>
-
-<blockquote><p>
-<ins>In addition to being available via inclusion of the <tt>&lt;algorithm&gt;</tt> header,
-the <tt>swap</tt> function templates in 25.3.3 [alg.swap] are also available when any of the
-headers <tt>&lt;unordered_map&gt;</tt> or <tt>&lt;unordered_set&gt;</tt> are included.</ins>
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-After section 23.5.4.3 [unord.map.elem] add a new section <ins>unordered_map
-modifiers 23.5.4.4 [unord.map.modifiers]</ins> and add the following paragraphs:
-</p>
-
-<blockquote><pre>
-<ins>void swap(unordered_map&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p><i>[
-This requirement is added to ensure that even a user defined <tt>swap</tt>
-which is found by ADL for <tt>Hash</tt> and <tt>Pred</tt> satisfies the <tt>Swappable</tt>
-requirements
-]</i></p>
-
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the allocators of <tt>*this</tt> 
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
-and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt>.</ins>
-</p>
-
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-After section 23.5.5.2 [unord.multimap.cnstr] add a new section
-<ins>unordered_multimap
-modifiers 23.5.5.3 [unord.multimap.modifiers]</ins> and add the following paragraphs:
-</p>
-
-<blockquote><pre>
-<ins>void swap(unordered_multimap&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
-allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
-and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt></ins>
-</p>
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-After section 23.5.6.2 [unord.set.cnstr] add a new section
-<ins>unordered_set modifiers
- [unord.set.modifiers]</ins> and add the following paragraphs:
-</p>
-
-<blockquote><pre>
-<ins>void swap(unordered_set&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
-allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
-and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt></ins>
-</p>
-
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-After section 23.5.7.2 [unord.multiset.cnstr] add a new section
-<ins>unordered_multiset
-modifiers  [unord.multiset.modifiers]</ins> and add the following paragraphs:
-</p>
-
-<blockquote><pre>
-<ins>void swap(unordered_multiset&amp; x);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Hash</tt> and <tt>Pred</tt> shall satisfy the <tt>Swappable</tt> requirements
-( [swappable]).</ins>
-</p>
-
-<p>
-<ins><i>Effects:</i> Exchanges the contents and hash policy and swaps the
-allocators of <tt>*this</tt>
-with that of <tt>x</tt>, followed by an unqualified <tt>swap</tt> of the <tt>Pred</tt> objects
-and an unqualified <tt>swap</tt> of the <tt>Hash</tt> objects of <tt>*this</tt> and <tt>x</tt></ins>
-</p>
-<p>
-<ins><i>Complexity:</i> Constant time</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-</blockquote>
-
-<p><i>[
-2009-10-30 Pablo and Daniel updated wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Ready for Pittsburgh.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[
-This resolution is based on the September 2009 WP,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>,
-except that it assumes that
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>
-and issues <a href="lwg-defects.html#883">883</a> and <a href="lwg-closed.html#1232">1232</a> have already been applied.  Note in
-particular that Table 91 in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>
-is refered to as Table 90 because
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>
-removed the old Table 90.  This resolution also addresses issue <a href="lwg-defects.html#431">431</a>.
-]</i></p>
-
-<p>
-In 23.2.1 [container.requirements.general], replace the a.swap(b) row in table 90,
-"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 WP):
-</p>
-<blockquote>
-<table border="1">
-  <tr>
-    <td><code>a.swap(b)</code></td>
-    <td><code>void</code></td>
-    <td>&nbsp;&nbsp;&nbsp;</td>
-    <td><code><del>swap(a,b)</del><ins>Exchange the contents of <tt>a</tt> and <tt>b</tt>.</ins></code></td>
-    <td>(Note A)</td>
-  </tr>
-  <tr>
-    <td><ins><code>swap(a,b)</code></ins></td>
-    <td><ins><code>void</code></ins></td>
-    <td><code>&nbsp;&nbsp;&nbsp;</code></td>
-    <td><ins><code>a.swap(b)</code></ins></td>
-    <td><ins>(Note A)</ins></td>
-  </tr>
-</table>
-</blockquote>
-<p>
-Modify the notes immediately following Table 90 in
-23.2.1 [container.requirements.general] as follows (The wording below is after the
-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 A and B into one.):
-</p>
-<blockquote><p>
-Notes: the algorithms<del> swap(),</del> equal() and lexicographical_compare()
-are defined in Clause 25.  Those entries marked "(Note A)" or "(Note B)"
-<del>should</del> have <ins>linear complexity for array and</ins> constant
-complexity <ins>for all other standard containers</ins>.
-</p></blockquote>
-<p>
-In 23.2.1 [container.requirements.general], before paragraph 8, add:
-</p>
-<blockquote><p><ins>
-The expression <code>a.swap(b)</code>, for containers <code>a</code>
-and <code>b</code> of a standard container type other than <code>array</code>,
-exchanges the values of <code>a</code> and <code>b</code> without invoking any
-move, copy, or swap operations on the individual container elements.
-Any <code>Compare</code>, <code>Pred</code>, or <code>Hash</code> function
-objects belonging to <code>a</code> and <code>b</code> shall be
-<code>swappable</code> and are exchanged by unqualified calls
-to non-member <code>swap</code>.  If
-<code>allocator_traits&lt;allocator_type&gt;::propagate_on_container_swap::value
-== true</code>, then the allocators of <code>a</code> and <code>b</code> are
-also exchanged using an unqualified call to non-member <code>swap</code>.
-Otherwise, the behavior is undefined unless <code>a.get_allocator() ==
-b.get_allocator()</code>.  Each iterator refering to an element in one
-container before the swap shall refer to the same element in the other
-container after the swap.  It is unspecified whether an iterator with
-value <code>a.end()</code> before the swap will have
-value <code>b.end()</code> after the swap.  In addition to being available via
-inclusion of the <code>&lt;utility&gt;</code> header, the <code>swap</code>
-function template in 25.3.3 [alg.swap] is also available within the definition of
-every standard container's <code>swap</code> function.
-</ins></p></blockquote>
-<p><i>[
-Note to the editor: Paragraph 2 starts with a sentence fragment,
-clearly from an editing or source-control error.
-]</i></p>
-
-<p>
-Modify 23.2.4.1 [associative.reqmts.except] as follows:
-</p>
-<blockquote>
-<p>
-<b>23.2.4.1 Exception safety guarantees 23.2.4.1 [associative.reqmts.except]</b>
-</p>
-<p>
-For associative containers, no <code>clear()</code> function throws an
-exception. <code>erase(k)</code> does not throw an exception unless that
-exception is thrown by the
-container's <code><del>Pred</del><ins>Compare</ins></code> object (if any).
-</p>
-<p>
-For associative containers, if an exception is thrown by any operation from
-within an <code>insert()</code> function inserting a single element,
-the <code>insert()</code> function has no effect.
-</p>
-<p>
-For associative containers, no <code>swap</code> function throws an exception
-unless that exception is thrown by the <del>copy constructor
-or copy assignment operator</del><ins>swap</ins> of the
-container's <code><del>Pred</del><ins>Compare</ins></code> object (if any).
-</p></blockquote>
-<p>
-Modify 23.2.5.1 [unord.req.except], paragraph 3 as follows:
-</p>
-<blockquote><p>
-For unordered associative containers, no <code>swap</code> function throws an
-exception unless that exception is thrown by the <del>copy constructor or copy
-assignment operator</del><ins>swap</ins> of the container's <code>Hash</code>
-or <code>Pred</code> object (if any).
-</p></blockquote>
-<p>
-Modify section 23.3.2.3 [array.special]:
-</p>
-<blockquote>
-<p>
-<b>array specialized algorithms 23.3.2.3 [array.special]</b>
-</p>
-<p>
-<code>template &lt;class T, size_t N&gt; void swap(array&lt;T,N&gt;&amp; x,array&lt;T,N&gt;&amp; y);</code>
-</p>
-<blockquote>
-<p>
-<i>Effects:</i> <code><del>swap_ranges(x.begin(), x.end(), y.begin() );</del><ins>x.swap(y);</ins></code>
-</p>
-</blockquote>
-</blockquote>
-<p>
-Add a new section after 23.3.2.6 [array.fill] (Note to the editor: array::fill make use
-of a concept requirement that must be removed or changed to text.):
-</p>
-<blockquote>
-<p>
-<ins><b>array::swap [array.swap]</b></ins>
-</p>
-<p>
-<ins><code>void swap(array&amp; y);</code></ins>
-</p>
-<blockquote>
-<p><ins>
-<i>Effects:</i> <code>swap_ranges(this-&gt;begin(), this-&gt;end(), y.begin() );</code>
-</ins></p>
-<p><ins>
-<i>Throws:</i> Nothing unless one of the element-wise swap calls throws an
-exception.
-</ins></p>
-<p><ins>
-[<i>Note</i>: Unlike other containers' <code>swap</code> functions,
-<code>array::swap</code> takes linear, not constant, time, may exit via an
-exception, and does not cause iterators to become associated with the other
-container. &mdash; <i>end note</i>]
-</ins></p>
-</blockquote>
-</blockquote>
-
-<p>
-Insert a new paragraph just after 23.6 [container.adaptors]/1:
-</p>
-<blockquote><p><ins>
-For container adaptors, no <code>swap</code> function throws an exception
-unless that exception is thrown by the swap of the
-adaptor's <code>Container</code> or <code>Compare</code> object (if any).
-</ins></p></blockquote>
-
-
-
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="775"></a>775. Tuple indexing should be unsigned?</h3>
-<p><b>Section:</b> 20.4.2.5 [tuple.helper] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-01-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.helper">issues</a> in [tuple.helper].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The tuple element access API identifies the element in the sequence
-using signed integers, and then goes on to enforce the requirement that
-I be &gt;= 0.  There is a much easier way to do this - declare I as
-<tt>unsigned</tt>.
-</p>
-<p>
-In fact the proposal is to use <code>std::size_t</code>, matching the 
-type used in the <tt>tuple_size</tt> API.
-</p>
-<p>
-A second suggestion is that it is hard to imagine an API that deduces
-and index at compile time and returns a reference throwing an exception.
-Add a specific <em>Throws:</em> Nothing paragraph to each element
-access API.
-</p>
-<p>
-In addition to <code>tuple</code>, update the API applies to
-<code>pair</code> and <code>array</code>, and should be updated
-accordingly.
-</p>
-
-<p>
-A third observation is that the return type of the <code>get</code>
-functions for <code>std::pair</code> is pseudo-code, but it is not
-clearly marked as such.  There is actually no need for pseudo-code as
-the return type can be specified precisely with a call to
-<code>tuple_element</code>.  This is already done for
-<code>std::tuple</code>, and <code>std::array</code> does not have a
-problem as all elements are of type <code>T</code>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Update header &lt;utility&gt; synopsis in 20.2 [utility]
-</p>
-<pre>
-<em>// 20.2.3, tuple-like access to pair:</em>
-template &lt;class T&gt; class tuple_size;
-template &lt;<del>int</del><ins>size_t</ins> I, class T&gt; class tuple_element;
-
-template &lt;class T1, class T2&gt; struct tuple_size&lt;std::pair&lt;T1, T2&gt; &gt;;
-template &lt;class T1, class T2&gt; struct tuple_element&lt;0, std::pair&lt;T1, T2&gt; &gt;;
-template &lt;class T1, class T2&gt; struct tuple_element&lt;1, std::pair&lt;T1, T2&gt; &gt;;
-
-template&lt;<del>int</del><ins>size_t</ins> I, class T1, class T2&gt;
-  <del>P</del><ins>typename tuple_element&lt;I, std::pair&lt;T1, T2&gt; &gt;::type </ins>&amp; get(std::pair&lt;T1, T2&gt;&amp;);
-template&lt;<del>int</del><ins>size_t</ins> I, class T1, class T2&gt;
-  const <del>P</del><ins>typename tuple_element&lt;I, std::pair&lt;T1, T2&gt; &gt;::type </ins>&amp; get(const std::pair&lt;T1, T2&gt;&amp;);
-</pre>
-<p>
-Update <strong>20.3 [pairs] Pairs</strong>
-</p>
-<pre>
-template&lt;<del>int</del><ins>size_t</ins> I, class T1, class T2&gt;
-  <del>P</del><ins>typename tuple_element&lt;I, std::pair&lt;T1, T2&gt; &gt;::type </ins>&amp; get(pair&lt;T1, T2&gt;&amp;);
-template&lt;<del>int</del><ins>size_t</ins> I, class T1, class T2&gt;
-  const <del>P</del><ins>typename tuple_element&lt;I, std::pair&lt;T1, T2&gt; &gt;::type </ins>&amp; get(const pair&lt;T1, T2&gt;&amp;);
-</pre>
-<p>
-<del>24 <em>Return type:</em> If <code>I == 0</code> then <code>P</code> is <code>T1</code>, if <code>I == 1</code> then <code>P</code> is <code>T2</code>, and otherwise the program is ill-formed.</del>
-</p>
-<p>
-25 <em>Returns:</em> If <code>I == 0</code> returns <code>p.first</code>, <del>otherwise</del> <ins>if <code>I == 1</code></ins> returns <code>p.second</code><ins>, and otherwise the program is ill-formed</ins>.
-</p>
-<p>
-<ins><em>Throws:</em> Nothing.</ins>
-</p>
-
-
-<p>
-Update header &lt;tuple&gt; synopsis in 20.4 [tuple] with a APIs as below:
-</p>
-<pre>
-template &lt;<del>int</del><ins>size_t</ins> I, class T&gt; class tuple_element; <em>// undefined</em>
-template &lt;<del>int</del><ins>size_t</ins> I, class... Types> class tuple_element&lt;I, tuple&lt;Types...> >;
-
-<em>// 20.3.1.4, element access:</em>
-template &lt;<del>int</del><ins>size_t</ins> I, class... Types&gt;
-  typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type&amp; get(tuple&lt;Types...&gt;&amp;);
-template &lt;<del>int</del><ins>size_t</ins> I, class ... types&gt;
-  typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type const&amp; get(const tuple&lt;Types...&gt;&amp;);
-</pre>
-
-<p>
-Update <strong>20.4.2.5 [tuple.helper] Tuple helper classes</strong>
-</p>
-<pre>template &lt;<del>int</del><ins>size_t</ins> I, class... Types&gt;
-class tuple_element&lt;I, tuple&lt;Types...&gt; &gt; {
-public:
-  typedef TI type;
-};</pre>
-<p>
-1 <em>Requires:</em> <code><del>0 &lt;= I and </del>I &lt; sizeof...(Types)</code>. The program is ill-formed if <code>I</code> is out of bounds.
-</p>
-<p>
-2 <em>Type:</em> <code>TI</code> is the type of the <code>I</code>th element of <code>Types</code>, where indexing is zero-based.
-</p>
-<p>
-Update <strong>20.4.2.6 [tuple.elem] Element access</strong>
-</p>
-<pre>
-template &lt;<del>int</del><ins>size_t</ins> I, class... types &gt;
-typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type&amp; get(tuple&lt;Types...&gt;&amp; t);
-</pre>
-<p>
-1 <em>Requires:</em> <code><del>0 &lt;= I and </del>I &lt; sizeof...(Types)</code>. The program is ill-formed if <code>I</code> is out of bounds.
-<p/>
-2 <em>Returns:</em> A reference to the <code>I</code>th element of <code>t</code>, where indexing is zero-based.
-</p>
-<ins><em>Throws:</em> Nothing.</ins>
-<pre>
-template &lt;<del>int</del><ins>size_t</ins> I, class... types&gt;
-typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type const&amp; get(const tuple&lt;Types...&gt;&amp; t);
-</pre>
-<p>
-3 <em>Requires:</em> <code><del>0 &lt;= I and </del>I &lt; sizeof...(Types)</code>. The program is ill-formed if <code>I</code> is out of bounds.
-</p>
-<p>
-4 <em>Returns:</em> A const reference to the <code>I</code>th element of <code>t</code>, where indexing is zero-based.
-</p>
-<p>
-<ins><em>Throws:</em> Nothing.</ins>
-</p>
-
-
-<p>
-Update header &lt;array&gt; synopsis in 20.2 [utility]
-</p>
-<pre>
-template &lt;class T&gt; class tuple_size; <em>// forward declaration</em>
-template &lt;<del>int</del><ins>size_t</ins> I, class T> class tuple_element; <em>// forward declaration</em>
-template &lt;class T, size_t N&gt;
-  struct tuple_size&lt;array&lt;T, N&gt; &gt;;
-template &lt;<del>int</del><ins>size_t</ins> I, class T, size_t N&gt;
-  struct tuple_element&lt;I, array&lt;T, N&gt; &gt;;
-template &lt;<del>int</del><ins>size_t</ins> I, class T, size_t N&gt;
-  T&amp; get(array&lt;T, N&gt;&amp;);
-template &lt;<del>int</del><ins>size_t</ins> I, class T, size_t N&gt;
-  const T&amp; get(const array&lt;T, N&gt;&amp;);
-</pre>
-
-<p>
-Update <strong>23.3.2.9 [array.tuple] Tuple interface to class template array</strong>
-</p>
-<pre>
-tuple_element&lt;<ins>size_t </ins>I, array&lt;T, N&gt; &gt;::type
-</pre>
-<p>
-3 <em>Requires:</em> <code><del>0 &lt;= </del>I &lt; N.</code> The program is ill-formed if <code>I</code> is out of bounds.
-</p>
-<p>
-4 <em>Value:</em> The type <code>T</code>.
-</p>
-<pre>
-template &lt;<del>int</del><ins>size_t</ins> I, class T, size_t N&gt; T&amp; get(array&lt;T, N&gt;&amp; a);
-</pre>
-<p>
-5 <em>Requires:</em> <code><del>0 &lt;= </del>I &lt; N</code>. The program is ill-formed if <code>I</code> is out of bounds.
-</p>
-<p>
-<em>Returns:</em> A reference to the <code>I</code>th element of <code>a</code>, where indexing is zero-based.
-</p>
-<p>
-<ins><em>Throws:</em> Nothing.</ins>
-</p>
-<pre>
-template &lt;<del>int</del><ins>size_t</ins> I, class T, size_t N&gt; const T&amp; get(const array&lt;T, N&gt;&amp; a);
-</pre>
-<p>
-6 <em>Requires:</em> <code><del>0 &lt;= </del>I &lt; N</code>. The program is ill-formed if <code>I</code> is out of bounds.
-</p>
-<p>
-7 <em>Returns:</em> A const reference to the <code>I</code>th element of <code>a</code>, where indexing is zero-based.
-</p>
-<p>
-<ins><em>Throws:</em> Nothing.</ins>
-</p>
-
-
-<p><i>[
-Bellevue: Note also that the phrase "The program is ill-formed if I is
-out of bounds" in the requires clauses are probably unnecessary, and
-could be removed at the editor's discretion. Also std:: qualification
-for pair is also unnecessary.
-]</i></p>
-
-
-
-
-<hr>
-<h3><a name="776"></a>776. Undescribed <tt>assign</tt> function of <tt>std::array</tt></h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class template array synopsis in 23.3.2 [array] p. 3 declares a member
-function
-</p>
-
-<blockquote><pre>
-void assign(const T&amp; u);
-</pre></blockquote>
-
-<p>
-which's semantic is no-where described. Since this signature is
-not part of the container requirements, such a semantic cannot
-be derived by those.
-</p>
-
-<p>
-I found only one reference to this function in the issue list,
-<a href="lwg-closed.html#588">588</a> where the question is raised:
-</p>
-
-<blockquote><p>
-what's the effect of calling <tt>assign(T&amp;)</tt> on a zero-sized array?
-</p></blockquote>
-
-<p>
-which does not answer the basic question of this issue.
-</p>
-
-<p>
-If this function shall be part of the <tt>std::array</tt>, it's probable
-semantic should correspond to that of <tt>boost::array</tt>, but of
-course such wording must be added.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Just after the section 23.3.2.5 [array.data] add the following new section:
-</p>
-
-<p>
-23.2.1.5 array::fill [array.fill]
-</p>
-
-<blockquote>
-<pre>
-void fill(const T&amp; u);
-</pre>
-
-<p>
-1: <i>Effects:</i> <tt>fill_n(begin(), N, u)</tt>
-</p>
-</blockquote>
-
-<p>
-[N.B: I wonder, why class <tt>array</tt> does not have a "modifiers"
-section. If it had, then <tt>assign</tt> would naturally belong to it]
-</p>
-
-<p>
-Change the synopsis in 23.3.2 [array]/3:
-</p>
-
-<blockquote><pre>
-template &lt;class T, size_t N&gt;
-struct array { 
-  ...
-  void <del>assign</del> <ins>fill</ins>(const T&amp; u);
-  ...
-</pre></blockquote>
-
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Suggest substituting "fill" instead of "assign".
-</p>
-<p>
-Set state to Review given substitution of "fill" for "assign".
-</p>
-</blockquote>
-
-
-
-
-<hr>
-<h3><a name="777"></a>777. Atomics Library Issue</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-01-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The load functions are defined as
-</p>
-
-<blockquote><pre>
-C atomic_load(volatile A* object);
-C atomic_load_explicit(volatile A* object, memory_order);
-C A::load(memory_order order = memory_order_seq_cst) volatile;
-</pre></blockquote>
-
-<p>
-which prevents their use in <tt>const</tt> contexts.
-</p>
-
-<p><i>[
-post Bellevue Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Issue <a href="lwg-defects.html#777">777</a> suggests making <tt>atomic_load</tt> operate on <tt>const</tt> objects. There is a
-subtle point here. Atomic loads do not generally write to the object, except
-potentially for the <tt>memory_order_seq_cst</tt> constraint. Depending on the
-architecture, a dummy write with the same value may be required to be issued
-by the atomic load to maintain sequential consistency. This, in turn, may
-make the following code:
-</p>
-
-<blockquote><pre>
-const atomic_int x{};
-
-int main()
-{
-  x.load();
-}
-</pre></blockquote>
-
-<p>
-dump core under a straightforward implementation that puts const objects in
-a read-only section.
-</p>
-<p>
-There are ways to sidestep the problem, but it needs to be considered.
-</p>
-<p>
-The tradeoff is between making the data member of the atomic types
-mutable and requiring the user to explicitly mark atomic members as
-mutable, as is already the case with mutexes.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the <tt>const</tt> qualifier to <tt>*object</tt> and <tt>*this</tt>.
-</p>
-
-<blockquote><pre>
-C atomic_load(<ins>const</ins> volatile A* object);
-C atomic_load_explicit(<ins>const</ins> volatile A* object, memory_order);
-C A::load(memory_order order = memory_order_seq_cst) <ins>const</ins> volatile;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="778"></a>778. std::bitset does not have any constructor taking a string literal</h3>
-<p><b>Section:</b> 20.6.1 [bitset.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2008-01-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.cons">issues</a> in [bitset.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#116">116</a></p>
-<p><b>Discussion:</b></p>
-<p>
-A small issue with <tt>std::bitset</tt>: it does not have any constructor
-taking a string literal, which is clumsy and looks like an oversigt when
-we tried to enable uniform use of <tt>string</tt> and <tt>const char*</tt> in the library.
-</p>
-
-<p>
-Suggestion: Add
-</p>
-
-<blockquote><pre>
-explicit bitset( const char* str );
-</pre></blockquote>
-
-<p>
-to std::bitset.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to synopsis in 20.6 [template.bitset]
-</p>
-
-<blockquote><pre>
-explicit bitset( const char* str );
-</pre></blockquote>
-
-<p>
-Add to synopsis in 20.6.1 [bitset.cons]
-</p>
-
-<blockquote><pre>
-explicit bitset( const char* str );
-</pre>
-<p>
-<i>Effects:</i> Constructs a <tt>bitset</tt> as if <tt>bitset(string(str))</tt>.
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="779"></a>779. Resolution of #283 incomplete</h3>
-<p><b>Section:</b> 25.3.8 [alg.remove] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.remove">issues</a> in [alg.remove].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The resolution of <a href="lwg-defects.html#283">283</a> did not resolve similar necessary changes for algorithm
-<tt>remove_copy[_if]</tt>, which seems to be an oversight.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 25.3.8 [alg.remove] p.6, replace the N2461 requires clause with:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <del>Type <tt>T</tt> is <tt>EqualityComparable</tt> (31).</del> The ranges <tt>[first,last)</tt>
-and <tt>[result,result + (last - first))</tt> shall not overlap. <ins>The expression <tt>*result = *first</tt> shall be
-valid.</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="780"></a>780. <tt>std::merge()</tt> specification incorrect&#47;insufficient</h3>
-<p><b>Section:</b> 25.4.4 [alg.merge] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Though issue <a href="lwg-defects.html#283">283</a> has fixed many open issues, it seems that some are still open:
-</p>
-
-<p>
-Both 25.3.4 [lib.alg.merge] in 14882:2003 and 25.4.4 [alg.merge] in N2461
-have no Requires element and the Effects element contains some requirements,
-which is probably editorial. Worse is that:
-</p>
-
-<ul>
-<li>
-no assignment requirements are specified (neither implicit nor explicit).
-</li>
-
-<li>
-the effects clause just speaks of "merges", which is badly worded
-near to a circular definition.
-</li>
-
-<li>
-p. 2 mentions a range <tt>[first, last)</tt>, which is not defined by the
-function arguments or otherwise.
-</li>
-
-<li>
-p. 2 says "according to the ordering defined by comp" which is both
-incomplete (because
-this excludes the first variant with &lt;) and redundant (because the
-following subordinate
-clause mentions comp again)
-</li>
-</ul>
-
-<p><i>[
-Post Summit Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Suggest:
-</p>
-<blockquote><p>
-(where <tt>last</tt> is equal to <tt>next(result, distance(first1, last1) +
-distance(first2, last2))</tt>, such that resulting range will be sorted in
-non-decreasing order; that is, for every iterator <tt>i</tt> in <tt>[result,last)</tt> other
-than <tt>result</tt>, the condition <tt>*i &lt; *prev(i)</tt> or, respectively, <tt>comp(*i,
-*prev(i))</tt> will be <tt>false</tt>.
-</p></blockquote>
-
-<p>
-Note that this might still not be technically accurate in the case of
-<tt>InputIterators</tt>, depending on other resolutions working their way through the
-system (<a href="lwg-defects.html#1011">1011</a>).
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-If we want to use <tt>prev</tt> and <tt>next</tt> here (Note: <tt>merge</tt>
-is sufficiently satisfied with <tt>InputIterator</tt>) we should instead <em>add</em> more to
-25 [algorithms] p. 6, but I can currently not propose any good wording for this.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete points out the existing wording in [algorithms] p. 4
-that permits the use of + in algorithm specifications.
-</p>
-<p>
-Alisdair points out that that wording may not apply to input iterators.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2009-08-23 Daniel reopens:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed wording must be rephrased, because the part
-</p>
-
-<blockquote><p>
-for every iterator <tt>i</tt> in <tt>[result,last)</tt> other than <tt>result</tt>, the condition
-<tt>*i &lt; *(i - 1)</tt> or, respectively, <tt>comp(*i, *(i - 1))</tt> will be <tt>false</tt>"
-</p></blockquote>
-
-<p>
-isn't meaningful, because the range <tt>[result,last)</tt> is that of a pure
-<tt>OutputIterator</tt>, which is not <em>readable</em> in general.
-</p>
-
-<p><i>[Howard:  Proposed wording updated by Daniel, status moved from Ready to Review.]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-Matt has some different words to propose.  Those words have been moved into
-the proposed wording section, and the original proposed wording now appears
-here:
-</p>
-<blockquote>
-<p>
-In 25.4.4 [alg.merge] replace p.1+ 2:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> <del>Merges</del><ins>Copies all the elements of the</ins>
-two sorted ranges
-<tt>[first1,last1)</tt> and <tt>[first2,last2)</tt> into the range <tt>[result,result +
-(last1 - first1) + (last2 - first2))</tt>
-<ins>, such that resulting range will be sorted in non-decreasing
-order; that is for every
-pair of iterators <tt>i</tt> and <tt>j</tt> of either input ranges, where <tt>*i</tt> was copied
-to the output range
-before <tt>*j</tt> was copied to the output range, the condition <tt>*j &lt; *i</tt> or,
-respectively, <tt>comp(*j, *i)</tt>
-will be <tt>false</tt>.</ins>
-</p>
-
-<p>
-<ins><i>Requires:</i></ins>The resulting range shall not overlap with either
-of the original ranges.
-<del>The list will be sorted in non-decreasing order according to the
-ordering defined by
-<tt>comp</tt>; that is, for every iterator <tt>i</tt> in <tt>[first,last)</tt> other than <tt>first</tt>,
-the condition <tt>*i &lt; *(i - 1)</tt> or
-<tt>comp(*i, *(i - 1))</tt> will be <tt>false</tt>.</del>
-</p>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-02-10 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 25.4.4 [alg.merge] 1 and 2:
-</p>
-
-<blockquote>
-<p>1 <del>
-<i>Effects:</i> Merges two sorted ranges <tt>[first1,last1)</tt> and
-<tt>[first2,last2)</tt> into the range <tt>[result, result + (last1 -
-first1) + (last2 - first2))</tt>.
-</del></p>
-<p><ins>
-<i>Effects:</i> Copies all the elements of the two ranges
-<tt>[first1,last1)</tt> and <tt>[first2,last2)</tt> into the range
-<tt>[result, result_last)</tt>, where <tt>result_last</tt> is <tt>result
-+ (last1 - first1) + (last2 - first2)</tt>, such that the resulting
-range satisfies <tt>is_sorted(result, result_last)</tt> or
-<tt>is_sorted(result, result_last, comp)</tt>, respectively.
-</ins></p>
-
-<p>
-2 <ins><i>Requires:</i></ins> <ins>The ranges <tt>[first1,last1)</tt> and
-<tt>[first2,last2)</tt> shall be sorted with respect to <tt>operator&lt;</tt> or
-<tt>comp</tt>.</ins> The resulting range shall not overlap with either of the
-original ranges.  <del>The list will be sorted in non-decreasing order according
-to the ordering defined by <tt>comp</tt>; that is, for every iterator <tt>i</tt>
-in <tt>[first,last)</tt> other than <tt>first</tt>, the condition <tt>*i &lt;
-*(i - 1)</tt> or <tt>comp(*i, *(i - 1))</tt> will be <tt>false</tt>.</del>
-</p>
-
-</blockquote>
-
-<p>
-Change 25.4.4 [alg.merge] p. 6+7 as indicated <i>[This ensures harmonization
-between <tt>inplace_merge</tt> and <tt>merge</tt>]</i>
-</p>
-
-<blockquote>
-<p>
-6 <i>Effects:</i> Merges two <del>sorted</del> consecutive ranges
-<tt>[first,middle)</tt> and <tt>[middle,last)</tt>, putting the result of the
-merge into the range <tt>[first,last)</tt>. The resulting range will be in
-non-decreasing order; that is, for every iterator <tt>i</tt> in
-<tt>[first,last)</tt> other than <tt>first</tt>, the condition <tt>*i &lt; *(i -
-1)</tt> or, respectively, <tt>comp(*i, *(i - 1))</tt> will be false.
-</p>
-
-<p>
-7 <i>Requires:</i> <ins>The ranges <tt>[first,middle)</tt> and
-<tt>[middle,last)</tt> shall be sorted with respect to <tt>operator&lt;</tt> or
-<tt>comp</tt>.</ins> The type of <tt>*first</tt> shall satisfy the
-<tt>Swappable</tt> requirements (37), the <tt>MoveConstructible</tt>
-requirements (Table 33), and the the <tt>MoveAssignable</tt> requirements (Table
-35).
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="781"></a>781. <tt>std::complex</tt> should add missing C99 functions</h3>
-<p><b>Section:</b> 26.4.7 [complex.value.ops] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.value.ops">issues</a> in [complex.value.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A comparision of the N2461 header <tt>&lt;complex&gt;</tt> synopsis ([complex.syn])
-with the C99 standard (ISO 9899, 2nd edition and the two corrigenda) show
-some complex functions that are missing in C++. These are:
-</p>
-
-<ol>
-<li>
-7.3.9.4: (required elements of the C99 library)<br/>
-The <tt>cproj</tt> functions
-</li>
-<li>
-7.26.1: (optional elements of the C99 library)<br/>
-<pre>
-cerf    cerfc    cexp2
-cexpm1  clog10   clog1p
-clog2   clgamma  ctgamma
-</pre>
-</li>
-</ol>
-
-<p>
-I propose that at least the required <tt>cproj</tt> overloads are provided as equivalent
-C++ functions. This addition is easy to do in one sentence (delegation to C99
-function).
-</p>
-
-<p>
-Please note also that the current entry <tt>polar</tt>
-in 26.4.9 [cmplx.over] p. 1
-should be removed from the mentioned overload list. It does not make sense to require that a
-function already expecting <em>scalar</em> arguments
-should cast these arguments into corresponding
-<tt>complex&lt;T&gt;</tt> arguments, which are not accepted by
-this function.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 26.4.1 [complex.syn] add just between the declaration of <tt>conj</tt> and <tt>fabs</tt>:
-</p>
-
-<blockquote><pre>
-template&lt;class T&gt; complex&lt;T&gt; conj(const complex&lt;T&gt;&amp;);
-<ins>template&lt;class T&gt; complex&lt;T&gt; proj(const complex&lt;T&gt;&amp;);</ins>
-template&lt;class T&gt; complex&lt;T&gt; fabs(const complex&lt;T&gt;&amp;);
-</pre></blockquote>
-
-<p>
-In 26.4.7 [complex.value.ops] just after p.6 (return clause of <tt>conj</tt>) add:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class T&gt; complex&lt;T&gt; proj(const complex&lt;T&gt;&amp; x);
-</pre>
-<blockquote><p>
-<i>Effects:</i> Behaves the same as C99 function <tt>cproj</tt>, defined in
-subclause 7.3.9.4."
-</p></blockquote>
-</blockquote>
-
-<p>
-In 26.4.9 [cmplx.over] p. 1, add one further entry <tt>proj</tt> to
-the overload list.
-</p>
-
-<blockquote>
-<p>
-The following function templates shall have additional overloads:
-</p>
-<blockquote><pre>
-arg           norm 
-conj          <del>polar</del> <ins>proj</ins>
-imag          real
-</pre></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="782"></a>782. Extended <tt>seed_seq</tt> constructor is useless</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-01-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Part of the resolution of n2423, issue 8 was the proposal to
-extend the <tt>seed_seq</tt> constructor accepting an input range
-as follows (which is now part of N2461):
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator,
-size_t u = numeric_limits&lt;iterator_traits&lt;InputIterator&gt;::value_type&gt;::digits&gt;
-seed_seq(InputIterator begin, InputIterator end);
-</pre></blockquote>
-
-<p>
-First, the expression <tt>iterator_traits&lt;InputIterator&gt;::value_type</tt>
-is invalid due to missing <tt>typename</tt> keyword, which is easy to
-fix.
-</p>
-
-<p>
-Second (and worse), while the language now supports default
-template arguments of function templates, this customization
-point via the second <tt>size_t</tt> template parameter is of no advantage,
-because <tt>u</tt> can never be deduced, and worse - because it is a
-constructor function template - it can also never be explicitly
-provided (14.8.1 [temp.arg.explicit]/7).
-</p>
-
-<p>
-The question arises, which advantages result from a compile-time
-knowledge of <tt>u</tt> versus a run time knowledge? If run time knowledge
-suffices, this parameter should be provided as normal function
-default argument [Resolution marked (A)], if compile-time knowledge
-is important, this could be done via a tagging template or more
-user-friendly via a standardized helper generator function
-(<tt>make_seed_seq</tt>), which allows this [Resolution marked (B)].
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-Fermilab does not have a strong opinion. Would prefer to go with
-solution A. Bill agrees that solution A is a lot simpler and does the
-job.
-</p>
-<p>
-Proposed Resolution: Accept Solution A.
-</p>
-</blockquote>
-
-<p>
-Issue <a href="lwg-defects.html#803">803</a> claims to make this issue moot.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-In 26.5.7.1 [rand.util.seedseq]/2, class <tt>seed_seq</tt> synopsis replace:
-</p>
-
-<blockquote><pre>
-class seed_seq 
-{ 
-public:
-   ...
-   template&lt;class InputIterator<del>,
-      size_t u = numeric_limits&lt;iterator_traits&lt;InputIterator&gt;::value_type&gt;::digits</del>&gt;
-          seed_seq(InputIterator begin, InputIterator end<ins>,
-          size_t u = numeric_limits&lt;typename iterator_traits&lt;InputIterator&gt;::value_type&gt;::digits</ins>);
-   ...
-};
-</pre></blockquote>
-
-<p>
-and do a similar replacement in the member description between
-p.3 and p.4.
-</p>
-</li>
-
-<li>
-<p>
-In 26.5.7.1 [rand.util.seedseq]/2, class <tt>seed_seq</tt> synopsis <em>and</em> in the
-member description between p.3 and p.4 replace:
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator<del>,
-  size_t u = numeric_limits&lt;iterator_traits&lt;InputIterator&gt;::value_type&gt;::digits</del>&gt;
-      seed_seq(InputIterator begin, InputIterator end);
-<ins>template&lt;class InputIterator, size_t u&gt;
-seed_seq(InputIterator begin, InputIterator end, <i>implementation-defined</i> s);</ins>
-</pre></blockquote>
-
-<p>
-In 26.5.2 [rand.synopsis], header <tt>&lt;random&gt;</tt> synopsis, immediately after the
-class <tt>seed_seq</tt> declaration <em>and</em> in 26.5.7.1 [rand.util.seedseq]/2, immediately
-after the class <tt>seed_seq</tt> definition add:
-</p>
-
-<blockquote><pre>
-template&lt;size_t u, class InputIterator&gt;
-  seed_seq make_seed_seq(InputIterator begin, InputIterator end);
-</pre></blockquote>
-
-<p>
-In 26.5.7.1 [rand.util.seedseq], just before p.5 insert two paragraphs:
-</p>
-
-<blockquote>
-<p>
-The first constructor behaves as if it would provide an
-integral constant expression <tt>u</tt> of type <tt>size_t</tt> of value
-<tt>numeric_limits&lt;typename iterator_traits&lt;InputIterator&gt;::value_type&gt;::digits</tt>.
-</p>
-<p>
-The second constructor uses an implementation-defined mechanism
-to provide an integral constant expression <tt>u</tt> of type <tt>size_t</tt> and
-is called by the function <tt>make_seed_seq</tt>.
-</p>
-</blockquote>
-
-<p>
-In 26.5.7.1 [rand.util.seedseq], just after the last paragraph add:
-</p>
-
-<blockquote>
-<pre>
-template&lt;size_t u, class InputIterator&gt;
-   seed_seq make_seed_seq(InputIterator begin, InputIterator end);
-</pre>
-<blockquote>
-<p>
-where <tt>u</tt> is used to construct an object <tt>s</tt> of implementation-defined type.
-</p>
-<p>
-<i>Returns:</i> <tt>seed_seq(begin, end, s)</tt>;
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="783"></a>783. <tt>thread::id</tt> reuse</h3>
-<p><b>Section:</b> 30.3.1.1 [thread.thread.id] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2008-02-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.id">issues</a> in [thread.thread.id].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current working paper 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2497.html">N2497</a>,
-integrated just before Bellevue) is
-not completely clear whether a given <tt>thread::id</tt> value may be reused once
-a thread has exited and has been joined or detached.  Posix allows
-thread ids (<tt>pthread_t</tt> values) to be reused in this case.  Although it is
-not completely clear whether this originally was the right decision, it
-is clearly the established practice, and we believe it was always the
-intent of the C++ threads API to follow Posix and allow this.  Howard
-Hinnant's example implementation implicitly relies on allowing reuse
-of ids, since it uses Posix thread ids directly.
-</p>
-
-<p>
-It is important to be clear on this point, since it the reuse of thread
-ids often requires extra care in client code, which would not be
-necessary if thread ids were unique across all time.  For example, a
-hash table indexed by thread id may have to be careful not to associate
-data values from an old thread with a new one that happens to reuse the
-id.  Simply removing the old entry after joining a thread may not be
-sufficient, if it creates a visible window between the join and removal
-during which a new thread with the same id could have been created and
-added to the table.
-</p>
-
-<p><i>[
-post Bellevue Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-There is a real issue with <tt>thread::id</tt> reuse, but I urge the LWG to
-reconsider fixing this by disallowing reuse, rather than explicitly allowing
-it. Dealing with thread id reuse is an incredibly painful exercise that
-would just force the world to reimplement a non-conflicting <tt>thread::id</tt> over
-and over.
-</p>
-<p>
-In addition, it would be nice if a <tt>thread::id</tt> could be manipulated
-atomically in a lock-free manner, as motivated by the recursive lock
-example:
-</p>
-
-<p>
-<a href="http://www.decadent.org.uk/pipermail/cpp-threads/2006-August/001091.html">http://www.decadent.org.uk/pipermail/cpp-threads/2006-August/001091.html</a>
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a sentence to 30.3.1.1 [thread.thread.id]/p1:
-</p>
-
-<blockquote>
-<p>
-An object of type <code>thread::id</code> provides
-a unique identifier for each thread of execution
-and a single distinct value for all thread objects
-that do not represent a thread of execution ([thread.threads.class]).
-Each thread of execution has a <code>thread::id</code>
-that is not equal to the <code>thread::id</code>
-of other threads of execution
-and that is not equal to
-the <code>thread::id</code> of <code>std::thread</code> objects
-that do not represent threads of execution.
-<ins>The library may reuse the value of a <code>thread::id</code> of a
-terminated thread that can no longer be joined.</ins>
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="786"></a>786. Thread library timed waits, UTC and monotonic clocks</h3>
-<p><b>Section:</b> 20.12 [time] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Christopher Kohlhoff, Jeff Garland <b>Opened:</b> 2008-02-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time">issues</a> in [time].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The draft C++0x thread library requires that the time points of type
-<tt>system_time</tt> and returned by <tt>get_system_time()</tt> represent Coordinated
-Universal Time (UTC) (section  [datetime.system]). This can lead to
-surprising behavior when a library user performs a duration-based wait,
-such as <tt>condition_variable::timed_wait()</tt>. A complete explanation of the
-problem may be found in the
-<a href="http://pubs.opengroup.org/onlinepubs/009695399/xrat/xsh_chap02.html#tag_03_02_08_19">Rationale for the Monotonic Clock</a>
-section in POSIX, but in summary:
-</p>
-
-<ul>
-<li>
-Operations such as <tt>condition_variable::timed_wait()</tt> (and its POSIX
-equivalent, <tt>pthread_cond_timedwait()</tt>) are specified using absolute times
-to address the problem of spurious wakeups.
-</li>
-
-<li>
-The typical use of the timed wait operations is to perform a relative
-wait. This may be achieved by first calculating an absolute time as the
-sum of the current time and the desired duration. In fact, the C++0x
-thread library includes duration-based overloads of
-<tt>condition_variable::timed_wait()</tt> that behave as if by calling the
-corresponding absolute time overload with a time point value of
-<tt>get_system_time() + rel_time</tt>.
-</li>
-
-<li>
-A UTC clock may be affected by changes to the system time, such as
-synchronization with an external source, leap seconds, or manual changes
-to the clock.
-</li>
-
-<li>
-Should the clock change during a timed wait operation, the actual
-duration of the wait will not be the expected length. For example, a
-user may intend a timed wait of one second duration but, due to an
-adjustment of the system clock backwards by a minute, the wait instead
-takes 61 seconds.
-</li>
-</ul>
-
-<p>
-POSIX solves the problem by introducing a new monotonic clock, which is
-unaffected by changes to the system time. When a condition variable is
-initialized, the user may specify whether the monotonic clock is to be
-used. (It is worth noting that on POSIX systems it is not possible to
-use <tt>condition_variable::native_handle()</tt> to access this facility, since
-the desired clock type must be specified during construction of the
-condition variable object.)
-</p>
-
-<p>
-In the context of the C++0x thread library, there are added dimensions
-to the problem due to the need to support platforms other than POSIX:
-</p>
-
-<ul>
-<li>
-Some environments (such as embedded systems) do not have a UTC clock, but do have a monotonic clock.
-</li>
-
-<li>
-Some environments do not have a monotonic clock, but do have a UTC clock.
-</li>
-
-<li>
-The Microsoft Windows API's synchronization functions use relative
-timeouts based on an implied monotonic clock. A program that switches
-from the Windows API to the C++0x thread library will now find itself
-susceptible to clock changes.
-</li>
-</ul>
-
-<p>
-One possible minimal solution:
-</p>
-
-<ul>
-<li>
-Strike normative references to UTC and an epoch based on 1970-01-01.
-</li>
-
-<li>
-Make the semantics of <tt>system_time</tt> and <tt>get_system_time()</tt>
-implementation-defined (i.e standard library implementors may choose the
-appropriate underlying clock based on the capabilities of the target
-platform).
-</li>
-
-<li>
-Add a non-normative note encouraging use of a monotonic clock.
-</li>
-
-<li>
-Remove <tt>system_time::seconds_since_epoch()</tt>.
-</li>
-
-<li>
-Change the constructor <tt>explicit system_time(time_t secs, nanoseconds ns
-= 0)</tt> to <tt>explicit system_time(nanoseconds ns)</tt>.
-</li>
-</ul>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-<p><b>Rationale:</b></p><p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661: A Foundation to Sleep On</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="787"></a>787. complexity of <tt>binary_search</tt></h3>
-<p><b>Section:</b> 25.4.3.4 [binary.search] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-09-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 25.4.3.4 [binary.search] p. 3 the complexity of <tt>binary_search</tt> is described as
-</p>
-
-<blockquote><p>
-At most <tt>log(last - first) + 2</tt> comparisons.
-</p></blockquote>
-
-<p>
-This should be precised and brought in line with the nomenclature used for
-<tt>lower_bound</tt>, <tt>upper_bound</tt>, and <tt>equal_range</tt>.
-</p>
-
-<p>
-All existing libraries I'm aware of, delegate to
-<tt>lower_bound</tt> (+ one further comparison). Since
-issue <a href="lwg-defects.html#384">384</a> has now WP status, the resolution of #787 should
-be brought in-line with <a href="lwg-defects.html#384">384</a> by changing the <tt>+ 2</tt>
-to <tt>+ O(1)</tt>.
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-Alisdair prefers to apply an upper bound instead of O(1), but that would
-require fixing for <tt>lower_bound</tt>, <tt>upper_bound</tt> etc. as well. If he really
-cares about it, he'll send an issue to Howard.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25.4.3.4 [binary.search]/3
-</p>
-
-<blockquote><p>
-<i>Complexity:</i> At most <tt>log<ins><sub>2</sub></ins>(last - first) + <del>2</del> <ins><i>O</i>(1)</ins></tt> comparisons.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="788"></a>788. Ambiguity in [istream.iterator]</h3>
-<p><b>Section:</b> 24.6.1 [istream.iterator] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-02-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator">issues</a> in [istream.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 287</b></p>
-
-<blockquote>
-<p>
-It is not clear what the initial state of an <tt>istream_iterator</tt> should be. Is
-_value_ initialized by reading the stream, or default&#47;value initialized? If
-it is initialized by reading the stream, what happens if the initialization
-is deferred until first dereference, when ideally the iterator value should
-have been that of an end-of-stream iterator which is not safely
-dereferencable?
-</p>
-
-<p>
-Recommendation: Specify _value_ is initialized by reading the stream, or
-the iterator takes on the end-of-stream value if the stream is empty.
-</p>
-</blockquote>
-
-<p>
-The description of how an istream_iterator object becomes an
-end-of-stream iterator is a) ambiguous and b) out of date WRT
-issue <a href="lwg-defects.html#468">468</a>:
-</p>
-
-<blockquote><p>
-<tt>istream_iterator</tt> reads (using <tt>operator&gt;&gt;</tt>) successive elements from the
-input stream for which it was constructed. After it is constructed, and
-every time <tt>++</tt> is used, the iterator reads and stores a value of <tt>T</tt>. If
-the end of stream is reached (<tt>operator void*()</tt> on the stream returns
-<tt>false</tt>), the iterator becomes equal to the <i>end-of-stream</i> iterator value.
-The constructor with no arguments <tt>istream_iterator()</tt> always constructs
-an end of stream input iterator object, which is the only legitimate
-iterator to be used for the end condition. The result of <tt>operator*</tt> on an
-end of stream is not defined. For any other iterator value a <tt>const T&amp;</tt> is
-returned. The result of <tt>operator-&gt;</tt> on an end of stream is not defined.
-For any other iterator value a <tt>const T*</tt> is returned. It is impossible to
-store things into istream iterators. The main peculiarity of the istream
-iterators is the fact that <tt>++</tt> operators are not equality preserving,
-that is, <tt>i == j</tt> does not guarantee at all that <tt>++i == ++j</tt>. Every time <tt>++</tt>
-is used a new value is read.
-</p></blockquote>
-
-<p>
-<tt>istream::operator void*()</tt> returns null if <tt>istream::fail()</tt> is <tt>true</tt>,
-otherwise non-null. <tt>istream::fail()</tt> returns <tt>true</tt> if <tt>failbit</tt> or
-<tt>badbit</tt> is set in <tt>rdstate()</tt>. Reaching the end of stream doesn't
-necessarily imply that <tt>failbit</tt> or <tt>badbit</tt> is set (e.g., after
-extracting an <tt>int</tt> from <tt>stringstream("123")</tt> the stream object will
-have reached the end of stream but <tt>fail()</tt> is <tt>false</tt> and <tt>operator
-void*()</tt> will return a non-null value).
-</p>
-
-<p>
-Also I would prefer to be explicit about calling <tt>fail()</tt> here
-(there is no <tt>operator void*()</tt> anymore.)
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Moved from Ready to Open for the purposes of using this issue to address NB UK 287.
-Martin to handle.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-This improves the wording.
-</p>
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.6.1 [istream.iterator]/1:
-</p>
-
-<blockquote><p>
-<tt>istream_iterator</tt> reads (using <tt>operator&gt;&gt;</tt>) successive elements from the
-input stream for which it was constructed. After it is constructed, and
-every time <tt>++</tt> is used, the iterator reads and stores a value of <tt>T</tt>. If
-<del>the end of stream is reached</del> <ins>the iterator fails to read and store a value of <tt>T</tt></ins>
-(<tt><del>operator void*()</del> <ins>fail()</ins></tt> on the stream returns
-<tt><del>false</del> <ins>true</ins></tt>), the iterator becomes equal to the <i>end-of-stream</i> iterator value.
-The constructor with no arguments <tt>istream_iterator()</tt> always constructs
-an end of stream input iterator object, which is the only legitimate
-iterator to be used for the end condition. The result of <tt>operator*</tt> on an
-end of stream is not defined. For any other iterator value a <tt>const T&amp;</tt> is
-returned. The result of <tt>operator-&gt;</tt> on an end of stream is not defined.
-For any other iterator value a <tt>const T*</tt> is returned. It is impossible to
-store things into istream iterators. The main peculiarity of the istream
-iterators is the fact that <tt>++</tt> operators are not equality preserving,
-that is, <tt>i == j</tt> does not guarantee at all that <tt>++i == ++j</tt>. Every time <tt>++</tt>
-is used a new value is read.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="789"></a>789. <tt>xor_combine_engine(result_type)</tt> should be explicit</h3>
-<p><b>Section:</b> X [rand.adapt.xor] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.adapt.xor">issues</a> in [rand.adapt.xor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>xor_combine_engine(result_type)</tt> should be <tt>explicit</tt>. (Obvious oversight.)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Non-controversial. Bill is right, but Fermilab believes that this is
-easy to use badly and hard to use right, and so it should be removed
-entirely. Got into TR1 by well defined route, do we have permission to
-remove stuff? Should probably check with Jens, as it is believed he is
-the originator. Broad consensus that this is not a robust engine
-adapter.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove xor_combine_engine from synopsis of 26.5.2 [rand.synopsis].
-</p>
-<p>
-Remove X [rand.adapt.xor] <tt>xor_combine_engine</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="792"></a>792. <tt>piecewise_constant_distribution</tt> is undefined for a range with just one endpoint</h3>
-<p><b>Section:</b> 26.5.8.6.2 [rand.dist.samp.pconst] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.pconst">issues</a> in [rand.dist.samp.pconst].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>piecewise_constant_distribution</tt> is undefined for a range with just one
-endpoint. (Probably should be the same as an empty range.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.5.8.6.2 [rand.dist.samp.pconst] paragraph 3b:
-</p>
-
-<blockquote><p>
-b) If <tt>firstB == lastB</tt> <ins>or the sequence <tt>w</tt> has the length zero</ins>,
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="793"></a>793. <tt>discrete_distribution</tt> missing constructor</h3>
-<p><b>Section:</b> 26.5.8.6.1 [rand.dist.samp.discrete] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.discrete">issues</a> in [rand.dist.samp.discrete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>discrete_distribution</tt> should have a constructor like:
-</p>
-
-<blockquote><pre>
-template&lt;class _Fn&gt;
-  discrete_distribution(result_type _Count, double _Low, double _High,
-                        _Fn&amp; _Func);
-</pre></blockquote>
-
-<p>
-(Makes it easier to fill a histogram with function values over a range.)
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-How do you specify the function so that it does not return negative
-values? If you do it is a bad construction. This requirement is already
-there. Where in each bin does one evaluate the function? In the middle.
-Need to revisit tomorrow.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Bill is not requesting this.
-</p>
-<p>
-Marc Paterno: <tt>_Fn</tt> cannot return negative values at the points where the
-function is sampled. It is sampled in the middle of each bin. <tt>_Fn</tt> cannot
-return 0 everywhere it is sampled.
-</p>
-<p>
-Jens: lambda expressions are rvalues
-</p>
-<p>
-Add a library issue to provide an
-<tt>initializer_list&lt;double&gt;</tt> constructor for
-<tt>discrete_distribution</tt>.
-</p>
-<p>
-Marc Paterno: dislikes reference for <tt>_Fn</tt> parameter. Make it pass-by-value (to use lambda),
-use <tt>std::ref</tt> to wrap giant-state function objects.
-</p>
-<p>
-Daniel: See <tt>random_shuffle</tt>, pass-by-rvalue-reference.
-</p>
-<p>
-Daniel to draft wording.
-</p>
-</blockquote>
-
-<p><i>[
-Pre San Francisco, Daniel provided wording:
-]</i></p>
-
-
-<blockquote><p>
-The here proposed changes of the WP refer to the current state of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2691.pdf">N2691</a>.
-During the Sophia Antipolis meeting two different proposals came up
-regarding the functor argument type, either by value or by rvalue-reference.
-For consistence with existing conventions (state-free algorithms and the
-<tt>general_pdf_distribution</tt> c'tor signature) the author decided to propose a
-function argument that is provided by value. If severe concerns exists that
-stateful functions would be of dominant relevance, it should be possible to
-replace the two occurrences of <tt>Func</tt> by <tt>Func&amp;&amp;</tt> in this proposal as part
-of an editorial process.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><b>Non-concept version of the proposed resolution</b></p>
-
-<ol>
-<li>
-<p>
-In 26.5.8.6.1 [rand.dist.samp.discrete]/1, class <tt>discrete_distribution</tt>, just
-<em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit discrete_distribution(const param_type&amp; parm);
-</pre></blockquote>
-
-<p>
-insert:
-</p>
-
-
-<blockquote><pre>
-template&lt;typename Func&gt;
-discrete_distribution(result_type nf, double xmin, double xmax, Func fw);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 insert a series of new paragraphs as part of the
-new member description::
-</p>
-<blockquote><pre>
-template&lt;typename Func&gt;
-discrete_distribution(result_type nf, double xmin, double xmax, Func fw);
-</pre>
-
-<p>
-<i>Complexity:</i> Exactly nf invocations of fw.
-</p>
-<p>
-<i>Requires:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-fw shall be callable with one argument of type double, and shall
-return values of a type convertible to double;</li>
-
-<li>If nf &gt; 0, the relation <tt><i>x</i><sub><i>min</i></sub></tt> &lt; <tt><i>x</i><sub><i>max</i></sub></tt> shall hold, and for all sample values
-<tt><i>x</i><sub><i>k</i></sub></tt>, fw(<tt><i>x</i><sub><i>k</i></sub></tt>) shall return a weight value <tt><i>w</i><sub><i>k</i></sub></tt> that is non-negative, non-NaN,
-and non-infinity;</li>
-
-<li>The following relations shall hold: nf &ge; 0, and 0 &lt; S = <tt><i>w</i><sub><i>0</i></sub></tt>+. . .+<tt><i>w<sub>n-1</sub></i></tt>.</li>
-
-</ol>
-
-<p>
-<i>Effects:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>If nf == 0, sets n = 1 and lets the sequence w have length n = 1 and
-   consist of the single value <tt><i>w</i><sub><i>0</i></sub></tt> = 1.</li>
-
-<li>
-<p>Otherwise, sets n = nf, deltax = (<tt><i>x</i><sub><i>max</i></sub></tt> - <tt><i>x</i><sub><i>min</i></sub></tt>)/n 
-and <tt><i>x</i><sub><i>cent</i></sub></tt> = <tt><i>x</i><sub><i>min</i></sub></tt> + 0.5 * deltax.</p>
-<p>
-For each k = 0, . . . ,n-1, calculates:</p>
-<p>
-<tt><i>x</i><sub><i>k</i></sub></tt> = <tt><i>x</i><sub><i>cent</i></sub></tt> + k * deltax
-<tt><i>w</i><sub><i>k</i></sub></tt> = fw(<tt><i>x</i><sub><i>k</i></sub></tt>)
-</p>
-</li>
-<li>
-<p>Constructs a discrete_distribution object with probabilities:</p>
-<blockquote><p>
-<tt><i>p</i><sub><i>k</i></sub></tt> = <tt><i>w</i><sub><i>k</i></sub></tt>/S  for k = 0, . . . , n-1.
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-</li>
-</ol>
-
-<p><b>Concept version of the proposed resolution</b></p>
-
-
-<ol>
-<li>
-<p>
-In 26.5.8.6.1 [rand.dist.samp.discrete]/1, class <tt>discrete_distribution</tt>, just
-<em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit discrete_distribution(const param_type&amp; parm);
-</pre></blockquote>
-
-<p>
-insert:
-</p>
-
-
-<blockquote><pre>
-template&lt;Callable&lt;auto, double&gt; Func&gt;
- requires Convertible&lt;Func::result_type, double&gt;
-discrete_distribution(result_type nf, double xmin, double xmax, Func fw);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 insert a series of new paragraphs as part of the
-new member description::
-</p>
-<blockquote><pre>
-template&lt;Callable&lt;auto, double&gt; Func&gt;
- requires Convertible&lt;Func::result_type, double&gt;
-discrete_distribution(result_type nf, double xmin, double xmax, Func fw);
-</pre>
-
-<p>
-<i>Complexity:</i> Exactly nf invocations of fw.
-</p>
-<p>
-<i>Requires:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>If nf &gt; 0, the relation <tt><i>x</i><sub><i>min</i></sub></tt> &lt; <tt><i>x</i><sub><i>max</i></sub></tt> shall hold, and for all sample values
-<tt><i>x</i><sub><i>k</i></sub></tt>, fw(<tt><i>x</i><sub><i>k</i></sub></tt>) shall return a weight value <tt><i>w</i><sub><i>k</i></sub></tt> that is non-negative, non-NaN,
-and non-infinity;</li>
-
-<li>The following relations shall hold: nf &ge; 0, and 0 &lt; S = <tt><i>w</i><sub><i>0</i></sub></tt>+. . .+<tt><i>w<sub>n-1</sub></i></tt>.</li>
-
-</ol>
-
-<p>
-<i>Effects:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>If nf == 0, sets n = 1 and lets the sequence w have length n = 1 and
-   consist of the single value <tt><i>w</i><sub><i>0</i></sub></tt> = 1.</li>
-
-<li>
-<p>Otherwise, sets n = nf, deltax = (<tt><i>x</i><sub><i>max</i></sub></tt> - <tt><i>x</i><sub><i>min</i></sub></tt>)/n 
-and <tt><i>x</i><sub><i>cent</i></sub></tt> = <tt><i>x</i><sub><i>min</i></sub></tt> + 0.5 * deltax.
-<p/>
-For each k = 0, . . . ,n-1, calculates:
-<p/>
-<tt><i>x</i><sub><i>k</i></sub></tt> = <tt><i>x</i><sub><i>cent</i></sub></tt> + k * deltax
-<tt><i>w</i><sub><i>k</i></sub></tt> = fw(<tt><i>x</i><sub><i>k</i></sub></tt>)
-</p>
-</li>
-<li>
-<p>Constructs a discrete_distribution object with probabilities:</p>
-<blockquote><p>
-<tt><i>p</i><sub><i>k</i></sub></tt> = <tt><i>w</i><sub><i>k</i></sub></tt>/S  for k = 0, . . . , n-1.
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-</li>
-</ol>
-
-
-
-<p><b>Rationale:</b></p><p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> "Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="794"></a>794. <tt>piecewise_constant_distribution</tt> missing constructor</h3>
-<p><b>Section:</b> 26.5.8.6.2 [rand.dist.samp.pconst] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2008-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.pconst">issues</a> in [rand.dist.samp.pconst].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>piecewise_constant_distribution</tt> should have a constructor like:
-</p>
-
-<blockquote><pre>
-template&lt;class _Fn&gt;
-   piecewise_constant_distribution(size_t _Count,
-            _Ty _Low, _Ty _High, _Fn&amp; _Func);
-</pre></blockquote>
-
-<p>
-(Makes it easier to fill a histogram with function values over a range.
-The two (reference <a href="lwg-defects.html#793">793</a>) make a sensible replacement for
-<tt>general_pdf_distribution</tt>.)
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Marc: uses variable width of bins and weight for each bin. This is not
-giving enough flexibility to control both variables.
-</p>
-<p>
-Add a library issue to provide an constructor taking an
-<tt>initializer_list&lt;double&gt;</tt> and <tt>_Fn</tt> for <tt>piecewise_constant_distribution</tt>.
-</p>
-<p>
-Daniel to draft wording.
-</p>
-</blockquote>
-
-<p><i>[
-Pre San Francisco, Daniel provided wording.
-]</i></p>
-
-
-<blockquote><p>
-The here proposed changes of the WP refer to the current state of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2691.pdf">N2691</a>.
-For reasons explained in <a href="lwg-defects.html#793">793</a>, the author decided to propose a function
-argument that is provided by value. The issue proposes a c'tor signature,
-that does not take advantage of the full flexibility of
-<tt>piecewise_constant_distribution</tt>,
-because it restricts on a constant bin width, but the use-case seems to
-be popular enough to justify it's introduction.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><b>Non-concept version of the proposed resolution</b></p>
-
-<ol>
-<li>
-<p>
-In 26.5.8.6.2 [rand.dist.samp.pconst]/1, class <tt>piecewise_constant_distribution</tt>,
-just <em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit piecewise_constant_distribution(const param_type&amp; parm);
-</pre></blockquote>
-<p>
-insert:
-</p>
-<blockquote><pre>
-template&lt;typename Func&gt;
-piecewise_constant_distribution(size_t nf, RealType xmin, RealType xmax, Func fw);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 insert a new sequence of paragraphs nominated
-below as [p5_1], [p5_2],
-[p5_3], and [p5_4] as part of the new member description:
-</p>
-
-<blockquote><pre>
-template&lt;typename Func&gt;
-piecewise_constant_distribution(size_t nf, RealType xmin, RealType xmax, Func fw);
-</pre>
-<blockquote>
-<p>
-[p5_1] <i>Complexity:</i> Exactly <tt>nf</tt> invocations of <tt>fw</tt>.
-</p>
-<p>
-[p5_2] <i>Requires:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li><tt>fw</tt> shall be callable with one argument of type <tt>RealType</tt>, and shall
-return values of a type convertible to double;
-</li>
-<li>
-For all sample values <tt><i>x<sub>k</sub></i></tt> defined below, fw(<tt><i>x<sub>k</sub></i></tt>) shall return a weight
-value <tt><i>w<sub>k</sub></i></tt> that is non-negative, non-NaN, and non-infinity;
-</li>
-<li>
-The following relations shall hold: <tt><i>x<sub>min</sub></i></tt> &lt; <tt><i>x<sub>max</sub></i></tt>, and
-0 &lt; S = <tt><i>w<sub>0</sub></i></tt>+. . .+<tt><i>w<sub>n-1</sub></i></tt>.
-</li>
-</ol>
-<p>
-[p5_3] <i>Effects:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>If nf == 0,</p>
- <ol style="list-style-type:lower-alpha">
- <li>
-sets deltax = <tt><i>x<sub>max</sub></i></tt> - <tt><i>x<sub>min</sub></i></tt>, and</li>
-<li> lets the sequence <tt>w</tt> have length <tt>n = 1</tt> and consist of the single
-    value <tt><i>w<sub>0</sub></i></tt> = 1, and</li>
-<li> lets the sequence <tt>b</tt> have length <tt>n+1</tt> with <tt><i>b<sub>0</sub></i></tt> = <tt><i>x<sub>min</sub></i></tt> and 
-              <tt><i>b<sub>1</sub></i></tt> = <tt><i>x<sub>max</sub></i></tt>
-</li>
-</ol>
-</li>
-<li>
-<p>Otherwise,</p>
-<ol style="list-style-type:lower-alpha">
-<li> sets <tt>n = nf</tt>, <tt>deltax = </tt>(<tt><i>x<sub>max</sub></i></tt> - <tt><i>x<sub>min</sub></i></tt>)/n,
-                 <tt><i>x<sub>cent</sub></i></tt> = <tt><i>x<sub>min</sub></i></tt> + 0.5 * deltax, and
-</li>
-<li><p>lets the sequences <tt>w</tt> and <tt>b</tt> have length <tt>n</tt> and <tt>n+1</tt>, resp. and
-<p/>
-for each k = 0, . . . ,n-1, calculates:
-<p/>
-  <tt><i>dx<sub>k</sub></i></tt> = k * deltax
-  <tt><i>b<sub>k</sub></i></tt> = <tt><i>x<sub>min</sub></i></tt> + <tt><i>dx<sub>k</sub></i></tt>
-  <tt><i>x<sub>k</sub></i></tt> = <tt><i>x<sub>cent</sub></i></tt> + <tt><i>dx<sub>k</sub></i></tt>
-  <tt><i>w<sub>k</sub></i></tt> = fw(<tt><i>x<sub>k</sub></i></tt>),
-</p> 
-<p> and</p>
-</li>
-<li> sets <tt><i>b<sub>n</sub></i></tt> = <tt><i>x<sub>max</sub></i></tt></li>
-</ol>
-</li>
-<li>
-<p>
-Constructs a <tt>piecewise_constant_distribution</tt> object with
-the above computed sequence <tt>b</tt> as the interval boundaries
-and with the probability densities:
-</p>
-<blockquote><p>
-<tt><i>&rho;<sub>k</sub></i></tt> = <tt><i>w<sub>k</sub></i></tt>/(S * deltax)  for k = 0, . . . , n-1.
-</p></blockquote> 
-</li>
-</ol>
-<p>
-[p5_4] [<i>Note:</i> In this context, the subintervals [<tt><i>b<sub>k</sub></i></tt>, <tt><i>b<sub>k+1</sub></i></tt>) are commonly
- known as the <i>bins</i> of a histogram. <i>-- end note</i>]
- </p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-<p><b>Concept version of the proposed resolution</b></p>
-
-<ol>
-<li>
-<p>
-In 26.5.8.6.2 [rand.dist.samp.pconst]/1, class <tt>piecewise_constant_distribution</tt>,
-just <em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit piecewise_constant_distribution(const param_type&amp; parm);
-</pre></blockquote>
-<p>
-insert:
-</p>
-<blockquote><pre>
-template&lt;Callable&lt;auto, RealType&gt; Func&gt;
- requires Convertible&lt;Func::result_type, double&gt;
-piecewise_constant_distribution(size_t nf, RealType xmin, RealType xmax, Func fw);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 insert a new sequence of paragraphs nominated
-below as [p5_1], [p5_2],
-[p5_3], and [p5_4] as part of the new member description:
-</p>
-
-<blockquote><pre>
-template&lt;Callable&lt;auto, RealType&gt; Func&gt;
- requires Convertible&lt;Func::result_type, double&gt;
-piecewise_constant_distribution(size_t nf, RealType xmin, RealType xmax, Func fw);
-</pre>
-<blockquote>
-<p>
-[p5_1] <i>Complexity:</i> Exactly <tt>nf</tt> invocations of <tt>fw</tt>.
-</p>
-<p>
-[p5_2] <i>Requires:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-For all sample values <tt><i>x<sub>k</sub></i></tt> defined below, fw(<tt><i>x<sub>k</sub></i></tt>) shall return a weight
-value <tt><i>w<sub>k</sub></i></tt> that is non-negative, non-NaN, and non-infinity;
-</li>
-<li>
-The following relations shall hold: <tt><i>x<sub>min</sub></i></tt> &lt; <tt><i>x<sub>max</sub></i></tt>, and
-0 &lt; S = <tt><i>w<sub>0</sub></i></tt>+. . .+<tt><i>w<sub>n-1</sub></i></tt>.
-</li>
-</ol>
-<p>
-[p5_3] <i>Effects:</i>
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>If nf == 0,</p>
- <ol style="list-style-type:lower-alpha">
- <li>
-sets deltax = <tt><i>x<sub>max</sub></i></tt> - <tt><i>x<sub>min</sub></i></tt>, and</li>
-<li> lets the sequence <tt>w</tt> have length <tt>n = 1</tt> and consist of the single
-    value <tt><i>w<sub>0</sub></i></tt> = 1, and</li>
-<li> lets the sequence <tt>b</tt> have length <tt>n+1</tt> with <tt><i>b<sub>0</sub></i></tt> = <tt><i>x<sub>min</sub></i></tt> and 
-              <tt><i>b<sub>1</sub></i></tt> = <tt><i>x<sub>max</sub></i></tt>
-</li>
-</ol>
-</li>
-<li>
-<p>Otherwise,</p>
-<ol style="list-style-type:lower-alpha">
-<li> sets <tt>n = nf</tt>, <tt>deltax = </tt>(<tt><i>x<sub>max</sub></i></tt> - <tt><i>x<sub>min</sub></i></tt>)/n,
-                 <tt><i>x<sub>cent</sub></i></tt> = <tt><i>x<sub>min</sub></i></tt> + 0.5 * deltax, and
-</li>
-<li><p>lets the sequences <tt>w</tt> and <tt>b</tt> have length <tt>n</tt> and <tt>n+1</tt>, resp. and
-<p/>
-for each k = 0, . . . ,n-1, calculates:
-  <tt><i>dx<sub>k</sub></i></tt> = k * deltax
-  <tt><i>b<sub>k</sub></i></tt> = <tt><i>x<sub>min</sub></i></tt> + <tt><i>dx<sub>k</sub></i></tt>
-  <tt><i>x<sub>k</sub></i></tt> = <tt><i>x<sub>cent</sub></i></tt> + <tt><i>dx<sub>k</sub></i></tt>
-  <tt><i>w<sub>k</sub></i></tt> = fw(<tt><i>x<sub>k</sub></i></tt>),
-</p> 
-<p> and</p>
-</li>
-<li> sets <tt><i>b<sub>n</sub></i></tt> = <tt><i>x<sub>max</sub></i></tt></li>
-</ol>
-</li>
-<li>
-<p>
-Constructs a <tt>piecewise_constant_distribution</tt> object with
-the above computed sequence <tt>b</tt> as the interval boundaries
-and with the probability densities:
-</p>
-<blockquote><p>
-<tt><i>&rho;<sub>k</sub></i></tt> = <tt><i>w<sub>k</sub></i></tt>/(S * deltax)  for k = 0, . . . , n-1.
-</p></blockquote> 
-</li>
-</ol>
-<p>
-[p5_4] [<i>Note:</i> In this context, the subintervals [<tt><i>b<sub>k</sub></i></tt>, <tt><i>b<sub>k+1</sub></i></tt>) are commonly
- known as the <i>bins</i> of a histogram. <i>-- end note</i>]
- </p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> 
-"Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="798"></a>798. Refactoring of binders lead to interface breakage</h3>
-<p><b>Section:</b> X [depr.lib.binders] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-02-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.lib.binders">issues</a> in [depr.lib.binders].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2521.pdf">N2521</a>
-and its earlier predecessors have moved the old binders from
-[lib.binders] to X [depr.lib.binders] thereby introducing some renaming
-of the template parameter names (<tt>Operation -&gt; Fn</tt>). During this
-renaming process the <em>protected</em> data member <tt>op</tt> was also renamed to
-<tt>fn</tt>, which seems as an unnecessary interface breakage to me - even if
-this user access point is probably rarely used.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change  [depr.lib.binder.1st]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Fn&gt; 
-class binder1st 
-  : public unary_function&lt;typename Fn::second_argument_type, 
-                          typename Fn::result_type&gt; { 
-protected: 
-  Fn <del>fn</del> <ins>op</ins>; 
-  typename Fn::first_argument_type value; 
-public: 
-  binder1st(const Fn&amp; x, 
-            const typename Fn::first_argument_type&amp; y); 
-  typename Fn::result_type 
-    operator()(const typename Fn::second_argument_type&amp; x) const; 
-  typename Fn::result_type 
-    operator()(typename Fn::second_argument_type&amp; x) const; 
-};
-</pre>
-
-<blockquote>
-<p>
--1- The constructor initializes <del><tt>fn</tt></del> <ins><tt>op</tt></ins> with <tt>x</tt> and <tt>value</tt> with <tt>y</tt>.
-</p>
-<p>
--2- <tt>operator()</tt> returns <tt><del>fn</del><ins>op</ins>(value,x)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change  [depr.lib.binder.2nd]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Fn&gt; 
-class binder2nd
-  : public unary_function&lt;typename Fn::first_argument_type, 
-                          typename Fn::result_type&gt; { 
-protected: 
-  Fn <del>fn</del> <ins>op</ins>; 
-  typename Fn::second_argument_type value; 
-public: 
-  binder2nd(const Fn&amp; x, 
-            const typename Fn::second_argument_type&amp; y); 
-  typename Fn::result_type 
-    operator()(const typename Fn::first_argument_type&amp; x) const; 
-  typename Fn::result_type 
-    operator()(typename Fn::first_argument_type&amp; x) const; 
-};
-</pre>
-
-<blockquote>
-<p>
--1- The constructor initializes <del><tt>fn</tt></del> <ins><tt>op</tt></ins> with <tt>x</tt> and <tt>value</tt> with <tt>y</tt>.
-</p>
-<p>
--2- <tt>operator()</tt> returns <tt><del>fn</del><ins>op</ins>(value,x)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="800"></a>800. Issues in 26.4.7.1 [rand.util.seedseq](6)</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Stephan Tolksdorf <b>Opened:</b> 2008-02-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The for-loop in the algorithm specification has <tt>n</tt> iterations, where <tt>n</tt> is
-defined to be <tt>end - begin</tt>, i.e. the number of supplied w-bit quantities.
-Previous versions of this algorithm and the general logic behind it
-suggest that this is an oversight and that in the context of the
-for-loop <tt>n</tt> should be the number of full 32-bit quantities in <tt>b</tt> (rounded
-upwards). If <tt>w</tt> is 64, the current algorithm throws away half of all bits
-in <tt>b</tt>. If <tt>w</tt> is 16, the current algorithm sets half of all elements in <tt>v</tt>
-to 0.
-</p>
-
-<p>
-There are two more minor issues:
-</p>
-
-<ul>
-<li>
-Strictly speaking <tt>end - begin</tt> is not defined since
-<tt>InputIterator</tt> is not required to be a random access iterator.
-</li>
-<li>
-Currently all integral types are allowed as input to the <tt>seed_seq</tt>
-constructor, including <tt>bool</tt>. IMHO allowing <tt>bool</tt>s unnecessarily
-complicates the implementation without any real benefit to the user.
-I'd suggest to exclude <tt>bool</tt>s as input.
-</li>
-</ul>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open: Bill will try to propose a resolution by the next meeting.
-</p></blockquote>
-
-<p><i>[
-post Bellevue:  Bill provided wording.
-]</i></p>
-
-
-<p>
-This issue is made moot if <a href="lwg-defects.html#803">803</a> is accepted.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace 26.5.7.1 [rand.util.seedseq] paragraph 6 with:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> Constructs a <tt>seed_seq</tt> object by effectively concatenating the
-low-order <tt>u</tt> bits of each of the elements of the supplied sequence <tt>[begin,
-end)</tt> in ascending order of significance to make a (possibly very large) unsigned
-binary number <tt>b</tt> having a total of <tt>n</tt> bits, and then carrying out the
-following algorithm:
-</p>
-
-<blockquote><p style="white-space: pre;">
-for( v.clear(); n &gt; 0; n -= 32 )
-   v.push_back(b mod 2<sup>32</sup>), b /= 2<sup>32</sup>;
-</p></blockquote>
-</blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> 
-"Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-<hr>
-<h3><a name="801"></a>801. <tt>tuple</tt> and <tt>pair</tt> trivial members</h3>
-<p><b>Section:</b> 20.4 [tuple] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-02-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple">issues</a> in [tuple].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Classes with trivial special member functions are inherently more
-efficient than classes without such functions.  This efficiency is
-particularly pronounced on modern ABIs that can pass small classes
-in registers.  Examples include value classes such as complex numbers
-and floating-point intervals.  Perhaps more important, though, are
-classes that are simple collections, like <tt>pair</tt> and <tt>tuple</tt>.  When the
-parameter types of these classes are trivial, the <tt>pair</tt>s and <tt>tuple</tt>s
-themselves can be trivial, leading to substantial performance wins.
-</p>
-<p>
-The current working draft make specification of trivial functions
-(where possible) much easer through <tt>default</tt>ed and <tt>delete</tt>d functions.
-As long as the semantics of defaulted and deleted functions match
-the intended semantics, specification of defaulted and deleted
-functions will yield more efficient programs.
-</p>
-<p>
-There are at least two cases where specification of an explicitly
-defaulted function may be desirable.
-</p>
-<p>
-First, the <tt>std::pair</tt> template has a non-trivial default constructor,
-which prevents static initialization of the pair even when the
-types are statically initializable.  Changing the definition to
-</p>
-
-<blockquote><pre>
-pair() = default;
-</pre></blockquote>
-
-<p>
-would enable such initialization.  Unfortunately, the change is
-not semantically neutral in that the current definition effectively
-forces value initialization whereas the change would not value
-initialize in some contexts.
-</p>
-
-<p>
-** Does the committee confirm that forced value initialization
-was the intent?  If not, does the committee wish to change the
-behavior of <tt>std::pair</tt> in C++0x?
-</p>
-<p>
-Second, the same default constructor issue applies to <tt>std::tuple</tt>.
-Furthermore, the <tt>tuple</tt> copy constructor is current non-trivial,
-which effectively prevents passing it in registers.  To enable
-passing <tt>tuples</tt> in registers, the copy constructor should be
-make explicitly <tt>default</tt>ed.  The new declarations are:
-</p>
-
-<blockquote><pre>
-tuple() = default;
-tuple(const tuple&amp;) = default;
-</pre></blockquote>
-
-<p>
-This changes is not implementation neutral.  In particular, it
-prevents implementations based on pointers to the parameter
-types.  It does however, permit implementations using the
-parameter types as bases.
-</p>
-<p>
-** How does the committee wish to trade implementation
-efficiency versus implementation flexibility?
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote>
-<p>
-General agreement; the first half of the issue is NAD.
-</p>
-<p>
-Before voting on the second half, it was agreed that a "Strongly Favor"
-vote meant support for trivial tuples (assuming usual requirements met),
-even at the expense of other desired qualities. A "Weakly Favor" vote
-meant support only if not at the expense of other desired qualities.
-</p>
-<p>
-Concensus: Go forward, but not at expense of other desired qualities.
-</p>
-<p>
-It was agreed to Alisdair should fold this work in with his other
-pair/tuple action items, above, and that issue 801 should be "open", but
-tabled until Alisdair's proposals are disposed of.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This is partly solved by <a href="lwg-defects.html#1117">1117</a>.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Wait for dust to settle from fixing exception safety problem
-with rvalue refs.
-</p></blockquote>
-
-<p><i>[
-2009-07-20 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Basically, this issue is what should we do with the default constructor
-for pairs and tuples of trivial types.  The motivation of the issue was
-to force static initialization rather than dynamic initialization, and
-was rejected in the case of pair as it would change the meaning of
-existing programs.  The advice was "do the best we can" for tuple
-without changing existing meaning.
-</p>
-
-<p>
-Frankfurt seems to simply wait and see the resolution on no-throw move
-constructors, which (I believe) is only tangentially related to this
-issue, but as good as any to defer until Santa Cruz.
-</p>
-
-<p>
-Looking again now, I think constant (static) initialization for pair can
-be salvaged by making the default construct constexpr.  I have a
-clarification from Core that this is intended to work, even if the
-constructor is not trivial/constexpr, so long as no temporaries are
-implied in the process (even if elided).
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as open. Alisdair to provide wording.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-We believe this may be NAD Editorial since both pair and tuple now have
-constexpr default constructors, but we're not sure.
-</p>
-</blockquote>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Daniel believes his pair&#47;tuple paper will resolve this issue. <tt>constexpr</tt> 
-will allow static initialization, and he is already changing the move and copy 
-constructors to be defaulted.
-</p></blockquote>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> 
-should resolve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="803"></a>803. Simplification of <tt>seed_seq::seq_seq</tt></h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Charles Karney <b>Opened:</b> 2008-02-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>seed_seq(InputIterator begin, InputIterator end);</tt> constructs a <tt>seed_seq</tt>
-object repacking the bits of supplied sequence <tt>[begin, end)</tt> into a
-32-bit vector.
-</p>
-<p>
-This repacking triggers several problems:
-</p>
-<ol>
-<li>
-Distinctness of the output of <tt>seed_seq::generate</tt> required the
-introduction of the initial "<tt>if (w &lt; 32) v.push_back(n);</tt>"  (Otherwise
-the unsigned short vectors [1, 0] and [1] generate the same sequence.)
-</li>
-<li>
-Portability demanded the introduction of the template parameter <tt>u</tt>.
-(Otherwise some sequences could not be obtained on computers where no
-integer types are exactly 32-bits wide.)
-</li>
-<li>
-The description and algorithm have become unduly complicated.
-</li>
-</ol>
-<p>
-I propose simplifying this <tt>seed_seq</tt> constructor to be "32-bit only".
-Despite it's being simpler, there is NO loss of functionality (see
-below).
-</p>
-<p>
-Here's how the description would read
-</p>
-<blockquote>
-<p>
-26.5.7.1 [rand.util.seedseq] Class <tt>seed_seq</tt>
-</p>
-
-<blockquote>
-<pre>
-template&lt;class InputIterator&gt;
-  seed_seq(InputIterator begin, InputIterator end);
-</pre>
-<blockquote>
-<p>
-5 <i>Requires:</i> NO CHANGE
-</p>
-<p>
-6 <i>Effects:</i> Constructs a <tt>seed_seq</tt> object by
-</p>
-<blockquote><p style="white-space: pre;">
-for (InputIterator s = begin; s != end; ++s)
-   v.push_back((*s) mod 2<sup>32</sup>);
-</p></blockquote>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p>
-Discussion:
-</p>
-<p>
-The chief virtues here are simplicity, portability, and generality.
-</p>
-<ul>
-<li>
-Simplicity &mdash; compare the above specification with the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">n2461</a> proposal.
-</li>
-<li>
-Portability &mdash; with <tt>iterator_traits&lt;InputIterator&gt;::value_type =
-uint_least32_t</tt> the user is guaranteed to get the same behavior across
-platforms.
-</li>
-<li>
-Generality &mdash; any behavior that the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">n2461</a>
-proposal can achieve can be
-obtained with this simpler proposal (albeit with a shuffling of bits
-in the input sequence).
-</li>
-</ul>
-<p>
-Arguments (and counter-arguments) against making this change (and
-retaining the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">n2461</a>
-behavior) are:
-</p>
-<ul>
-<li>
-<p>
-The user can pass an array of <tt>unsigned char</tt> and <tt>seed_seq</tt> will nicely
- repack it.
-</p>
-<p>
- Response: So what?  Consider the seed string "ABC".  The
- <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">n2461</a>
- proposal results in
-</p>
-<blockquote><pre>
-v = { 0x3, 0x434241 };
-</pre></blockquote>
-<p>
-while the simplified proposal yields
-</p>
-<blockquote><pre>
-v = { 0x41, 0x42, 0x43 };
-</pre></blockquote>
-<p>
-The results produced by <tt>seed_seq::generate</tt> with the two inputs are
-different but nevertheless equivalently "mixed up" and this remains
-true even if the seed string is long.
-</p>
-</li>
-<li>
-<p>
-With long strings (e.g., with bit-length comparable to the number of
- bits in the state), <tt>v</tt> is longer (by a factor of 4) with the simplified
- proposal and <tt>seed_seq::generate</tt> will be slower.
-</p>
-<p>
-Response: It's unlikely that the efficiency of <tt>seed_seq::generate</tt> will
- be a big issue.  If it is, the user is free to repack the seed vector
- before constructing <tt>seed_seq</tt>.
-</p>
-</li>
-<li>
-<p>
-A user can pass an array of 64-bit integers and all the bits will be
- used.
-</p>
-<p>
- Response: Indeed.  However, there are many instances in the 
- <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">n2461</a>
- where integers are silently coerced to a narrower width and this
- should just be a case of the user needing to read the documentation.
- The user can of course get equivalent behavior by repacking his seed
- into 32-bit pieces.  Furthermore, the unportability of the 
- <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf">n2461</a>
- proposal with
-</p>
-<blockquote><pre>
-unsigned long s[] = {1, 2, 3, 4};
-seed_seq q(s, s+4);
-</pre></blockquote>
-<p>
- which typically results in <tt>v = {1, 2, 3, 4}</tt> on 32-bit machines and in
-<tt>v = {1, 0, 2, 0, 3, 0, 4, 0}</tt> on 64-bit machines is a major pitfall for
- unsuspecting users.
-</p>
-</li>
-</ul>
-
-<p>
-Note: this proposal renders moot issues <a href="lwg-defects.html#782">782</a> and <a href="lwg-defects.html#800">800</a>.
-</p>
-
-<p><i>[
-Bellevue:
-]</i></p>
-
-
-<blockquote><p>
-Walter needs to ask Fermilab for guidance. Defer till tomorrow. Bill likes the proposed resolution.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Marc Paterno wants portable behavior between 32bit and 64bit machines;
-we've gone to significant trouble to support portability of engines and
-their values.
-</p>
-<p>
-Jens: the new algorithm looks perfectly portable
-</p>
-<p>
-Marc Paterno to review off-line.
-</p>
-<p>
-Modify the proposed resolution to read "Constructs a seed_seq object by the following algorithm ..."
-</p>
-<p>
-Disposition: move to review; unanimous consent.
-</p>
-<p>
-(moots <a href="lwg-defects.html#782">782</a> and <a href="lwg-defects.html#800">800</a>)
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.5.7.1 [rand.util.seedseq]:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class InputIterator<del>, 
-  size_t u = numeric_limits&lt;iterator_traits&lt;InputIterator&gt;::value_type&gt;::digits</del>&gt;
-  seed_seq(InputIterator begin, InputIterator end);
-</pre>
-<blockquote>
-<p>
--5- <i>Requires:</i> <tt>InputIterator</tt> shall satisfy the requirements of an input iterator (24.1.1)
-such that <tt>iterator_traits&lt;InputIterator&gt;::value_type</tt> shall denote an integral type.
-</p>
-<p>
--6- Constructs a <tt>seed_seq</tt> object by <ins>the following algorithm</ins> <del>rearranging some or all of the bits of the supplied sequence
-<tt>[begin,end)</tt> of w-bit quantities into 32-bit units, as if by the following: </del>
-</p>
-<p>
-<del>First extract the rightmost <tt>u</tt> bits from each of the <tt>n = end
-- begin</tt> elements of the supplied sequence and concatenate all the
-extracted bits to initialize a single (possibly very large) unsigned
-binary number, <tt>b = &sum;<sup>n-1</sup><sub>i=0</sub> (begin[i] 
-mod 2<sup>u</sup>) &middot; 2<sup>w&middot;i</sup></tt> (in which the bits of each <tt>begin[i]</tt>
-are treated as denoting an unsigned quantity). Then carry out 
-the following algorithm:</del>
-</p>
-<blockquote><p style="white-space: pre;"><del>
-v.clear(); 
-if ($w$ &lt; 32) 
-  v.push_back($n$); 
-for( ; $n$ &gt; 0; --$n$) 
-  v.push_back(b mod 2<sup>32</sup>), b /= 2<sup>32</sup>;
-</del></p></blockquote>
-<blockquote>
-<p style="white-space: pre;"><ins>
-for (InputIterator s = begin; s != end; ++s)
-   v.push_back((*s) mod 2<sup>32</sup>);
-</ins></p>
-</blockquote>
-</blockquote>
-</blockquote>
-
-
-<p><b>Rationale:</b></p><p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> 
-"Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-<hr>
-<h3><a name="804"></a>804. Some problems with classes <tt>error_code</tt>/<tt>error_condition</tt></h3>
-<p><b>Section:</b> 19.5 [syserr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-02-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr">issues</a> in [syserr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-19.5.2.1 [syserr.errcode.overview]/1, class <tt>error_code</tt> and
-19.5.3.1 [syserr.errcondition.overview]/, class <tt>error_condition</tt> synopses
-declare an expository data member <tt>cat_</tt>:
-</p>
-<blockquote><pre>
-const error_category&amp; cat_; // exposition only
-</pre></blockquote>
-<p>
-which is used to define the semantics of several members. The decision
-to use a member of reference type lead to several problems:
-</p>
-<ol>
-<li>
-The classes are not <tt>(Copy)Assignable</tt>, which is probably not the intent.
-</li>
-<li>
-The post conditions of all modifiers from
-19.5.2.3 [syserr.errcode.modifiers] and 19.5.3.3 [syserr.errcondition.modifiers], resp.,
-cannot be fulfilled.
-</li>
-</ol>
-<p>
-The simple fix would be to replace the reference by a pointer member.
-</p>
-</li>
-
-<li>
-I would like to give the editorial remark that in both classes the
-constrained <tt>operator=</tt>
-overload (template with <tt>ErrorCodeEnum</tt> argument) makes in invalid
-usage of <tt>std::enable_if</tt>: By using the default value for the second <tt>enable_if</tt>
-parameter the return type would be defined to be <tt>void&amp;</tt> even in otherwise
-valid circumstances - this return type must be explicitly provided (In
-<tt>error_condition</tt> the first declaration uses an explicit value, but of wrong
-type).
-</li>
-
-<li>
-The member function <tt>message</tt> throws clauses (
-19.5.1.2 [syserr.errcat.virtuals]/10, 19.5.2.4 [syserr.errcode.observers]/8, and
-19.5.3.4 [syserr.errcondition.observers]/6) guarantee "throws nothing",
-although
-they return a <tt>std::string</tt> by value, which might throw in out-of-memory
-conditions (see related issue <a href="lwg-defects.html#771">771</a>).
-</li>
-</ol>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Part A: NAD (editorial), cleared by the resolution of issue <a href="lwg-closed.html#832">832</a>.
-</p>
-<p>
-Part B: Technically correct, save for typo. Rendered moot by the concept proposal 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2620.html">N2620</a>) NAD (editorial).
-</p>
-<p>
-Part C: We agree; this is consistent with the resolution of issue <a href="lwg-closed.html#721">721</a>.
-</p>
-<p>
-Howard: please ping Beman, asking him to clear away parts A and B from
-the wording in the proposed resolution, so it is clear to the editor
-what needs to be applied to the working paper.
-</p>
-<p>
-Beman provided updated wording. Since issue <a href="lwg-closed.html#832">832</a> is not going
-forward, the provided wording includes resolution of part A.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Resolution of part A:
-</p>
-<blockquote>
-<p>
-Change 19.5.2.1 [syserr.errcode.overview] Class error_code overview synopsis as indicated:
-</p>
-
-<blockquote><pre>
-private:
-  int val_;                    // exposition only
-  const error_category<del>&amp;</del><ins>*</ins> cat_; // exposition only
-</pre></blockquote>
-
-<p>
-Change 19.5.2.2 [syserr.errcode.constructors] Class error_code constructors as indicated:
-</p>
-
-<blockquote>
-<pre>
-error_code();
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of type <tt>error_code</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>val_ == 0</tt> and <tt>cat_ == <ins>&amp;</ins>system_category</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-<pre>
-error_code(int val, const error_category&amp; cat);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of type <tt>error_code</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == <ins>&amp;</ins>cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 19.5.2.3 [syserr.errcode.modifiers] Class error_code modifiers as indicated:
-</p>
-
-<blockquote>
-<pre>
-void assign(int val, const error_category&amp; cat);
-</pre>
-<blockquote>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == <ins>&amp;</ins>cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 19.5.2.4 [syserr.errcode.observers] Class error_code observers as indicated:
-</p>
-
-<blockquote><pre>
-const error_category&amp; category() const;
-</pre><blockquote>
-<p>
-<i>Returns:</i> <tt><ins>*</ins>cat_</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 19.5.3.1 [syserr.errcondition.overview] Class error_condition overview synopsis as indicated:
-</p>
-
-<blockquote><pre>
-private:
-  int val_;                    // exposition only
-  const error_category<del>&amp;</del><ins>*</ins> cat_; // exposition only
-</pre></blockquote>
-
-<p>
-Change 19.5.3.2 [syserr.errcondition.constructors] Class error_condition constructors as indicated:
-</p>
-<p><i>[
-(If the proposed resolution of issue <a href="lwg-defects.html#805">805</a> has already been applied, the
-name <tt>posix_category</tt> will have been changed to <tt>generic_category</tt>. That has
-no effect on this resolution.)
-]</i></p>
-
-
-<blockquote>
-<pre>
-error_condition();
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of type <tt>error_condition</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>val_ == 0</tt> and <tt>cat_ == <ins>&amp;</ins>posix_category</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-<pre>
-error_condition(int val, const error_category&amp; cat);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of type <tt>error_condition</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == <ins>&amp;</ins>cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 19.5.3.3 [syserr.errcondition.modifiers] Class error_condition modifiers as indicated:
-</p>
-
-<blockquote><pre>
-void assign(int val, const error_category&amp; cat);
-</pre><blockquote>
-<p>
-<i>Postconditions:</i> <tt>val_ == val</tt> and <tt>cat_ == <ins>&amp;</ins>cat</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 19.5.3.4 [syserr.errcondition.observers] Class error_condition observers as indicated:
-</p>
-
-<blockquote><pre>
-const error_category&amp; category() const;
-</pre><blockquote>
-<p>
-<i>Returns:</i> <tt><ins>*</ins>cat_</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p>
-Resolution of part C:
-</p>
-
-<blockquote>
-
-<p>
-In 19.5.1.2 [syserr.errcat.virtuals], remove the throws clause p. 10.
-</p>
-
-<blockquote>
-<pre>
-virtual string message(int ev) const = 0;
-</pre>
-
-<blockquote>
-<p>
-<i>Returns:</i> A string that describes the error condition denoted by <tt>ev</tt>.
-</p>
-<p>
-<del><i>Throws:</i> Nothing.</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-In 19.5.2.4 [syserr.errcode.observers], remove the throws clause p. 8.
-</p>
-
-<blockquote>
-<pre>
-string message() const;
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>category().message(value())</tt>.
-</p>
-<p>
-<del><i>Throws:</i> Nothing.</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-In 19.5.3.4 [syserr.errcondition.observers], remove the throws clause p. 6.
-</p>
-
-<blockquote>
-<pre>
-string message() const;
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>category().message(value())</tt>.
-</p>
-<p>
-<del><i>Throws:</i> Nothing.</del>
-</p>
-</blockquote>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="805"></a>805. <tt>posix_error::posix_errno</tt> concerns</h3>
-<p><b>Section:</b> 19.5 [syserr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2008-02-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr">issues</a> in [syserr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-19.5 [syserr]
-</p>
-
-<blockquote><pre>
-namespace posix_error {
-  enum posix_errno {
-    address_family_not_supported, // EAFNOSUPPORT
-    ...
-</pre></blockquote>
-
-<p>
-should rather use the new scoped-enum facility (7.2 [dcl.enum]),
-which would avoid the necessity for a new <tt>posix_error</tt>
-namespace, if I understand correctly.
-</p>
-
-<p><i>[
-Further discussion:
-]</i></p>
-
-
-<blockquote>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2347.pdf">N2347</a>,
-Strongly Typed Enums, since renamed Scoped Enums.
-</p>
-<p>
-Alberto Ganesh Barbati also raised this issue in private email, and also proposed the scoped-enum solution.
-</p>
-<p>
-Nick Stoughton asked in Bellevue that <tt>posix_error</tt> and <tt>posix_errno</tt> not be used as names. The LWG agreed.
-</p>
-<p>
-The wording for the Proposed resolution was provided by Beman Dawes.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change System error support 19.5 [syserr] as indicated:
-</p>
-
-<blockquote><pre>
-<del>namespace posix_error {</del>
-  enum <del>posix_errno</del> <ins>class errc</ins> {
-    address_family_not_supported, // EAFNOSUPPORT
-    ...
-    wrong_protocol_type, // EPROTOTYPE
-  };
-<del>} // namespace posix_error</del>
-
-template &lt;&gt; struct is_error_condition_enum&lt;<del>posix_error::posix_errno</del> <ins>errc</ins>&gt;
-  : public true_type {}
-
-<del>namespace posix_error {</del>
-  error_code make_error_code(<del>posix_errno</del> <ins>errc</ins> e);
-  error_condition make_error_condition(<del>posix_errno</del> <ins>errc</ins> e);
-<del>} // namespace posix_error</del>
-</pre></blockquote>
-
-<p>
-Change System error support 19.5 [syserr] :
-</p>
-
-<blockquote><p>
-<del>The <tt>is_error_code_enum</tt> and <tt>is_error_condition_enum</tt> templates may be
-specialized for user-defined types to indicate that such a type is
-eligible for class <tt>error_code</tt> and class <tt>error_condition</tt> automatic
-conversions, respectively.</del>
-</p></blockquote>
-
-<p>
-Change System error support 19.5 [syserr] and its subsections:
-</p>
-
-<blockquote>
-<ul>
-<li>
-remove all occurrences of <tt>posix_error::</tt>
-</li>
-<li>
-change all instances of <tt>posix_errno</tt> to <tt>errc</tt>
-</li>
-<li>
-change all instances of <tt>posix_category</tt> to <tt>generic_category</tt>
-</li>
-<li>
-change all instances of <tt>get_posix_category</tt> to <tt>get_generic_category</tt>
-</li>
-</ul>
-</blockquote>
-
-<p>
-Change Error category objects 19.5.1.5 [syserr.errcat.objects], paragraph 2:
-</p>
-
-<blockquote><p>
-<i>Remarks:</i> The object's <tt>default_error_condition</tt> and equivalent virtual
-functions shall behave as specified for the class <tt>error_category</tt>. The
-object's name virtual function shall return a pointer to the string
-<del>"POSIX"</del> <ins>"generic"</ins>.
-</p></blockquote>
-
-<p>
-Change 19.5.2.5 [syserr.errcode.nonmembers] Class <tt>error_code</tt> non-member functions as indicated:
-</p>
-
-<blockquote>
-<pre>
-error_code make_error_code(<del>posix_errno</del> <ins>errc</ins> e);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>error_code(<ins>static_cast&lt;int&gt;(</ins>e<ins>)</ins>, <del>posix</del><ins>generic</ins>_category)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 19.5.3.5 [syserr.errcondition.nonmembers] Class <tt>error_condition</tt> non-member functions as indicated:
-</p>
-
-<blockquote>
-<pre>
-error_condition make_error_condition(<del>posix_errno</del> <ins>errc</ins> e);
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>error_condition(<ins>static_cast&lt;int&gt;(</ins>e<ins>)</ins>, <del>posix</del><ins>generic</ins>_category)</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<table border="1">
-<tr>
-<th colspan="2">Names Considered</th>
-</tr>
-
-<tr>
-<td><tt>portable</tt></td>
-<td>
-Too non-specific. Did not wish to reserve such a common word in
-namespace std. Not quite the right meaning, either.
-</td>
-</tr>
-
-<tr>
-<td><tt>portable_error</tt></td>
-<td>
-Too long. Explicit qualification is always required for scoped enums, so
-a short name is desirable. Not quite the right meaning, either. May be
-misleading because <tt>*_error</tt> in the std lib is usually an exception class
-name.
-</td>
-</tr>
-
-<tr>
-<td><tt>std_error</tt></td>
-<td>
-Fairly short, yet explicit. But in fully qualified names like
-<tt>std::std_error::not_enough_memory</tt>, the std_ would be unfortunate. Not
-quite the right meaning, either. May be misleading because <tt>*_error</tt> in
-the std lib is usually an exception class name.
-</td>
-</tr>
-
-<tr>
-<td><tt>generic</tt></td>
-<td>
-Short enough. The category could be <tt>generic_category</tt>. Fully qualified
-names like <tt>std::generic::not_enough_memory</tt> read well. Reserving in
-namespace std seems dicey.
-</td>
-</tr>
-
-<tr>
-<td><tt>generic_error</tt></td>
-<td>
-Longish. The category could be <tt>generic_category</tt>. Fully qualified names
-like <tt>std::generic_error::not_enough_memory</tt> read well. Misleading because
-<tt>*_error</tt> in the std lib is usually an exception class name.
-</td>
-</tr>
-
-<tr>
-<td><tt>generic_err</tt></td>
-<td>
-A bit less longish. The category could be <tt>generic_category</tt>. Fully
-qualified names like <tt>std::generic_err::not_enough_memory</tt> read well.
-</td>
-</tr>
-
-<tr>
-<td><tt>gen_err</tt></td>
-<td>
-Shorter still. The category could be <tt>generic_category</tt>. Fully qualified
-names like <tt>std::gen_err::not_enough_memory</tt> read well.
-</td>
-</tr>
-
-<tr>
-<td><tt>generr</tt></td>
-<td>
-Shorter still. The category could be <tt>generic_category</tt>. Fully qualified
-names like <tt>std::generr::not_enough_memory</tt> read well.
-</td>
-</tr>
-
-<tr>
-<td><tt>error</tt></td>
-<td>
-Shorter still. The category could be <tt>generic_category</tt>. Fully qualified
-names like <tt>std::error::not_enough_memory</tt> read well. Do we want to use
-this general a name?
-</td>
-</tr>
-
-<tr>
-<td><tt>err</tt></td>
-<td>
-Shorter still. The category could be <tt>generic_category</tt>. Fully qualified
-names like <tt>std::err::not_enough_memory</tt> read well. Although alone it
-looks odd as a name, given the existing <tt>errno</tt> and <tt>namespace std</tt> names,
-it seems fairly intuitive.
-Problem: <tt>err</tt> is used throughout the standard library as an argument name
-and in examples as a variable name; it seems too confusing to add yet
-another use of the name.
-</td>
-</tr>
-
-<tr>
-<td><tt>errc</tt></td>
-<td>
-Short enough. The "c" stands for "constant". The category could be
-<tt>generic_category</tt>. Fully qualified names like
-<tt>std::errc::not_enough_memory</tt> read well. Although alone it looks odd as a
-name, given the existing <tt>errno</tt> and <tt>namespace std</tt> names, it seems fairly
-intuitive. There are no uses of <tt>errc</tt> in the current C++ standard.
-</td>
-</tr>
-</table>
-
-
-
-
-
-<hr>
-<h3><a name="806"></a>806. <tt>unique_ptr::reset</tt> effects incorrect, too permissive</h3>
-<p><b>Section:</b> 20.8.1.2.5 [unique.ptr.single.modifiers] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.modifiers">issues</a> in [unique.ptr.single.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>void unique_ptr::reset(T* p = 0)</tt> is currently specified as:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> If <tt>p == get()</tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt>.
-</p></blockquote>
-
-<p>
-There are two problems with this. One, if <tt>get() == 0</tt> and <tt>p != 0</tt>, the
-deleter is called with a <tt>NULL</tt> pointer, and this is probably not what's
-intended (the destructor avoids calling the deleter with 0.)
-</p>
-
-<p>
-Two, the special check for <tt>get() == p</tt> is generally not needed and such a
-situation usually indicates an error in the client code, which is being
-masked. As a data point, <tt>boost::shared_ptr</tt> was changed to assert on such
-self-resets in 2001 and there were no complaints.
-</p>
-
-<p>
-One might think that self-resets are necessary for <tt>operator=</tt> to work; it's specified to perform
-</p>
-
-<blockquote><pre>
-reset( u.release() );
-</pre></blockquote>
-
-<p>
-and the self-assignment
-</p>
-
-<blockquote><pre>
-p = move(p);
-</pre></blockquote>
-
-<p>
-might appear to result in a self-reset. But it doesn't; the <tt>release()</tt> is
-performed first, zeroing the stored pointer. In other words, <tt>p.reset(
-q.release() )</tt> works even when <tt>p</tt> and <tt>q</tt> are the same <tt>unique_ptr</tt>, and there
-is no need to special-case <tt>p.reset( q.get() )</tt> to work in a similar
-scenario, as it definitely doesn't when <tt>p</tt> and <tt>q</tt> are separate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 20.8.1.2.5 [unique.ptr.single.modifiers]:
-</p>
-
-<blockquote>
-<pre>
-void reset(T* p = 0);
-</pre>
-<blockquote><p>
--4- <i>Effects:</i> If <tt><del>p ==</del> get()<ins> == 0</ins></tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 20.8.1.3.4 [unique.ptr.runtime.modifiers]:
-</p>
-
-<blockquote>
-<pre>
-void reset(T* p = 0);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
--2- <i>Effects:</i> If <tt><del>p ==</del> get()<ins> == 0</ins></tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="807"></a>807. <tt>tuple</tt> construction should not fail unless its element's construction fails</h3>
-<p><b>Section:</b> 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.cnstr">active issues</a> in [tuple.cnstr].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.cnstr">issues</a> in [tuple.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="lwg-defects.html#527">527</a> Added a throws clause to <tt>bind</tt> constructors.  I believe the same throws clause
-should be added to <tt>tuple</tt> except it ought to take into account move constructors as well.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.4.2.1 [tuple.cnstr]:
-</p>
-
-<blockquote>
-<p>
-For each <tt>tuple</tt> constructor and assignment operator, an exception is thrown only if the construction
-or assignment of one of the types in <tt>Types</tt> throws an exception.
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="808"></a>808. [forward] incorrect redundant specification</h3>
-<p><b>Section:</b> 20.2.4 [forward] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2008-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward">issues</a> in [forward].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-p4 (forward) says:
-</p>
-<blockquote><p>
-<i>Return type:</i> If <tt>T</tt> is an lvalue-reference type, an lvalue; otherwise, an rvalue.
-</p></blockquote>
-
-<p>
-First of all, lvalue-ness and rvalue-ness are properties of an expression,
-not of a type (see 3.10 [basic.lval]).  Thus, the phrasing "Return type" is wrong.
-Second, the phrase says exactly what the core language wording says for
-folding references in 14.3.1 [temp.arg.type]/p4  and for function return values
-in 5.2.2 [expr.call]/p10.  (If we feel the wording should be retained, it should
-at most be a note with cross-references to those sections.)
-</p>
-<p>
-The prose after the example talks about "forwarding as an <tt>int&amp;</tt> (an lvalue)" etc.
-In my opinion, this is a category error:  "<tt>int&amp;</tt>" is a type, "lvalue" is a
-property of an expression, orthogonal to its type.  (Btw, expressions cannot
-have reference type, ever.)
-</p>
-<p>
-Similar with move:
-</p>
-<blockquote><p>
-Return type: an rvalue.
-</p></blockquote>
-<p>
-is just wrong and also redundant.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.2.4 [forward] as indicated:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class T&gt; T&amp;&amp; forward(typename identity&lt;T&gt;::type&amp;&amp; t);
-</pre>
-
-<blockquote>
-<p>...</p>
-<p>
-<del><i>Return type:</i> If <tt>T</tt> is an lvalue-reference type, an lvalue; otherwise, an rvalue.</del>
-</p>
-<p>...</p>
-<p>
--7- In the first call to <tt>factory</tt>, <tt>A1</tt> is deduced as <tt>int</tt>, so 2 is forwarded to <tt>A</tt>'s constructor
-as <del>an <tt>int&amp;&amp;</tt> (</del>an rvalue<del>)</del>. In the second call to factory, <tt>A1</tt> is deduced
-as <tt>int&amp;</tt>, so <tt>i</tt> is forwarded to <tt>A</tt>'s constructor as <del>an <tt>int&amp;</tt> (</del>an lvalue<del>)</del>.
-In both cases, <tt>A2</tt> is deduced as double, so 1.414 is forwarded to <tt>A</tt>'s constructor as
-<del><tt>double&amp;&amp;</tt> (</del>an rvalue<del>)</del>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class T&gt; typename remove_reference&lt;T&gt;::type&amp;&amp; move(T&amp;&amp; t);
-</pre>
-
-<blockquote>
-<p>...</p>
-<p>
-<del><i>Return type:</i>  an rvalue.</del>
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="809"></a>809. <tt>std::swap</tt> should be overloaded for array types</h3>
-<p><b>Section:</b> 25.3.3 [alg.swap] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2008-02-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.swap">issues</a> in [alg.swap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For the sake of generic programming, the header <code>&lt;algorithm&gt;</code> should provide an
-overload of <code>std::swap</code> for array types:
-</p><pre>
-template&lt;class T, size_t N&gt; void swap(T (&amp;a)[N], T (&amp;b)[N]);
-</pre>
-
-<p>
-It became apparent to me that this overload is missing, when I considered how to write a swap
-function for a generic wrapper class template.
-(Actually I was thinking of Boost's <a href="http://www.boost.org/libs/utility/value_init.htm">value_initialized</a>.)
-Please look at the following template, <code>W</code>, and suppose that is intended to be a very
-<em>generic</em> wrapper:
-</p>
-<pre>
-template&lt;class T&gt; class W {
-public:
-  T data;
-};
-</pre>
-<p>
-Clearly <code>W&lt;T&gt;</code> is <em>CopyConstructible and CopyAssignable</em>, and therefore
-<em>Swappable</em>, whenever <code>T</code> is <em>CopyConstructible and CopyAssignable</em>.
-Moreover, <code>W&lt;T&gt;</code> is <em>also</em> Swappable when <code>T</code> is an array type
-whose element type is CopyConstructible and CopyAssignable.
-Still it is recommended to add a <em>custom</em> swap function template to such a class template,
-for the sake of efficiency and exception safety.
-(E.g., <em>Scott Meyers, Effective C++, Third Edition, item 25: Consider support for a non-throwing
-swap</em>.)
-This function template is typically written as follows:
-</p>
-<pre>
-template&lt;class T&gt; void swap(W&lt;T&gt;&amp; x, W&lt;T&gt;&amp; y) {
-  using std::swap;
-  swap(x.data, y.data);
-}
-</pre>
-<p>
-Unfortunately, this will introduce an undesirable inconsistency, when <code>T</code> is an array.
-For instance, <code>W&lt;std::string[8]&gt;</code> is Swappable, but the current Standard does not
-allow calling the custom swap function that was especially written for <code>W</code>!
-</p>
-<pre>
-W&lt;std::string[8]&gt; w1, w2;  // Two objects of a Swappable type.
-std::swap(w1, w2);  // Well-defined, but inefficient.
-using std::swap;
-swap(w1, w2);  // Ill-formed, just because ADL finds W's swap function!!!
-</pre>
-<p>
-<code>W</code>'s <code>swap</code> function would try to call <code>std::swap</code> for an array,
-<code>std::string[8]</code>, which is not supported by the Standard Library.
-This issue is easily solved by providing an overload of <code>std::swap</code> for array types.
-This swap function should be implemented in terms of swapping the elements of the arrays, so that
-it would be non-throwing for arrays whose element types have a non-throwing swap.
-</p>
-
-<p>
-Note that such an overload of <code>std::swap</code> should also support <em>multi-dimensional</em>
-arrays. Fortunately that isn't really an issue, because it would do so <i>automatically</i>, by
-means of recursion.
-</p>
-
-<p>
-For your information, there was a discussion on this issue at comp.lang.c++.moderated: <a
-href="http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/9341ebd3635c9c74">[Standard
-Library] Shouldn't std::swap be overloaded for C-style arrays?</a>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add an extra condition to the definition of Swappable requirements [swappable] in 17.6.3.1 [utility.arg.requirements]:
-</p>
-<blockquote><p>
-- <tt>T</tt> is <tt>Swappable</tt> if <tt>T</tt> is an array type whose element type is <tt>Swappable</tt>.
-</p></blockquote>
-<p>
-Add the following to 25.3.3 [alg.swap]:
-</p>
-<blockquote>
-<pre>
-template&lt;class T, size_t N&gt; void swap(T (&amp;a)[N], T (&amp;b)[N]);
-</pre>
-<blockquote><p>
-<i>Requires:</i> Type <code>T</code> shall be <tt>Swappable</tt>.
-</p></blockquote>
-<blockquote><p>
-<i>Effects:</i> <code>swap_ranges(a, a + N, b);</code>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="810"></a>810. Missing traits dependencies in operational semantics of extended manipulators</h3>
-<p><b>Section:</b> 27.7.5 [ext.manip] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-03-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ext.manip">issues</a> in [ext.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The recent draft (as well as the original proposal n2072) uses an
-operational semantic
-for <tt>get_money</tt> ([ext.manip]/4) and <tt>put_money</tt> ([ext.manip]/6), which uses
-</p>
-
-<blockquote><pre>
-istreambuf_iterator&lt;charT&gt;
-</pre></blockquote>
-
-<p>
-and
-</p>
-
-<blockquote><pre>
-ostreambuf_iterator&lt;charT&gt;
-</pre></blockquote>
-
-<p>
-resp, instead of the iterator instances, with explicitly provided
-traits argument (The operational semantic defined by <tt>f</tt> is also traits
-dependent). This is an obvious oversight because both <tt>*stream_buf</tt>
-c'tors expect a <tt>basic_streambuf&lt;charT,traits&gt;</tt> as argument.
-</p>
-<p>
-The same problem occurs within the <tt>get_time</tt> and <tt>put_time</tt> semantic 
-where additional to the problem we
-have an editorial issue in <tt>get_time</tt> (<tt>streambuf_iterator</tt> instead of
-<tt>istreambuf_iterator</tt>).
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-This appears to be an issue of presentation.
-</p>
-<p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 27.7.5 [ext.manip]/4 within function <tt>f</tt> replace the first line
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits, class moneyT&gt; 
-void f(basic_ios&lt;charT, traits&gt;&amp; str, moneyT&amp; mon, bool intl) { 
-   typedef istreambuf_iterator&lt;charT<ins>, traits</ins>&gt; Iter;
-   ...
-</pre></blockquote>
-
-<p>
-In 27.7.5 [ext.manip]/5 remove the first template <tt>charT</tt> parameter:
-</p>
-
-<blockquote><pre>
-template &lt;<del>class charT, </del>class moneyT&gt; unspecified put_money(const moneyT&amp; mon, bool intl = false<ins>)</ins>;
-</pre></blockquote>
-
-<p>
-In 27.7.5 [ext.manip]/6 within function <tt>f</tt> replace the first line
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits, class moneyT&gt; 
-void f(basic_ios&lt;charT, traits&gt;&amp; str, const moneyT&amp; mon, bool intl) { 
-  typedef ostreambuf_iterator&lt;charT<ins>, traits</ins>&gt; Iter;
-  ...
-</pre></blockquote>
-
-<p>
-In 27.7.5 [ext.manip]/8 within function <tt>f</tt> replace the first line
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits&gt; 
-void f(basic_ios&lt;charT, traits&gt;&amp; str, struct tm *tmb, const charT *fmt) { 
-  typedef <ins>i</ins>streambuf_iterator&lt;charT<ins>, traits</ins>&gt; Iter;
-  ...
-</pre></blockquote>
-
-<p>
-In 27.7.5 [ext.manip]/10 within function <tt>f</tt> replace the first line
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits&gt; 
-void f(basic_ios&lt;charT, traits&gt;&amp; str, const struct tm *tmb, const charT *fmt) { 
-  typedef ostreambuf_iterator&lt;charT<ins>, traits</ins>&gt; Iter;
-  ...
-</pre></blockquote>
-
-<p>
-In 27.7 [iostream.format], Header <tt>&lt;iomanip&gt;</tt> synopsis change:
-</p>
-
-<blockquote><pre>
-template &lt;<del>class charT, </del>class moneyT&gt; T8 put_money(const moneyT&amp; mon, bool intl = false);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="811"></a>811. <tt>pair</tt> of pointers no longer works with literal 0</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2008-03-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote><pre>
-#include &lt;utility&gt;
-
-int main()
-{
-   std::pair&lt;char *, char *&gt; p (0,0);
-}
-</pre></blockquote>
-
-<p>
-I just got a bug report about that, because it's valid C++03, but not
-C++0x. The important realization, for me, is that the emplace
-proposal---which made <tt>push_back</tt> variadic, causing the <tt>push_back(0)</tt>
-issue---didn't cause this break in backward compatibility. The break
-actually happened when we added this pair constructor as part of adding
-rvalue references into the language, long before variadic templates or
-emplace came along:
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair(U&amp;&amp; x, V&amp;&amp; y);
-</pre></blockquote>
-
-<p>
-Now, concepts will address this issue by constraining that <tt>pair</tt>
-constructor to only <tt>U</tt>'s and <tt>V</tt>'s that can properly construct "first" and
-"second", e.g. (from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2322.pdf">N2322</a>):
-</p>
-
-<blockquote><pre>
-template&lt;class U , class V &gt;
-requires Constructible&lt;T1, U&amp;&amp;&gt; &amp;&amp; Constructible&lt;T2, V&amp;&amp;&gt;
-pair(U&amp;&amp; x , V&amp;&amp; y );
-</pre></blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Suggested to resolve using pass-by-value for that case.
-</p>
-<p>
-Side question: Should pair interoperate with tuples? Can construct a
-tuple of a pair, but not a pair from a two-element tuple.
-</p>
-<p>
-Related to <a href="lwg-defects.html#885">885</a>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as open. Howard to provide wording.
-</p></blockquote>
-
-<p><i>[
-2010-02-06 Howard provided wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>.
-</p></blockquote>
-
-<p><i>[
-The rationale is obsolete.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a paragraph to 20.3 [pairs]:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class U, class V&gt; pair(U&amp;&amp; x, V&amp;&amp; y);
-</pre>
-<blockquote>
-<p>
-6 <i>Effects:</i> The constructor initializes <tt>first</tt> with
-<tt>std::forward&lt;U&gt;(x)</tt> and second with
-<tt>std::forward&lt;V&gt;(y)</tt>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> <tt>U</tt> shall be implicitly convertible to
-<tt>first_type</tt> and <tt>V</tt> shall be implicitly convertible to
-<tt>second_type</tt>, else this constructor shall not participate in overload
-resolution.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="813"></a>813. "empty" undefined for <tt>shared_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2008-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Several places in 20.8.2.2 [util.smartptr.shared] refer to an "empty" <tt>shared_ptr</tt>.
-However, that term is nowhere defined. The closest thing we have to a
-definition is that the default constructor creates an empty <tt>shared_ptr</tt>
-and that a copy of a default-constructed <tt>shared_ptr</tt> is empty. Are any
-other <tt>shared_ptr</tt>s empty? For example, is <tt>shared_ptr((T*) 0)</tt> empty? What
-are the properties of an empty <tt>shared_ptr</tt>? We should either clarify this
-term or stop using it.
-</p>
-<p>
-One reason it's not good enough to leave this term up to the reader's
-intuition is that, in light of
-<a href="http://www.open-std.org/JTC1/sc22/WG21/docs/papers/2007/n2351.htm">N2351</a>
-and issue <a href="lwg-defects.html#711">711</a>, most readers'
-intuitive understanding is likely to be wrong. Intuitively one might
-expect that an empty <tt>shared_ptr</tt> is one that doesn't store a pointer,
-but, whatever the definition is, that isn't it.
-</p>
-
-<p><i>[
-Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Or, what is an "empty" <tt>shared_ptr</tt>?
-</p>
-
-<ul>
-<li>
-<p>
-Are any other <tt>shared_ptrs</tt> empty?
-</p>
-<p>
-Yes. Whether a given <tt>shared_ptr</tt> instance is empty or not is (*)
-completely specified by the last mutating operation on that instance.
-Give me an example and I'll tell you whether the <tt>shared_ptr</tt> is empty or
-not.
-</p>
-<blockquote><p>
-(*) If it isn't, this is a legitimate defect.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-For example, is <tt>shared_ptr((T*) 0)</tt> empty?
-</p>
-<p>
-No. If it were empty, it would have a <tt>use_count()</tt> of 0, whereas it is
-specified to have an <tt>use_count()</tt> of 1.
-</p>
-</li>
-
-<li>
-<p>
-What are the properties of an empty <tt>shared_ptr</tt>?
-</p>
-<p>
-The properties of an empty <tt>shared_ptr</tt> can be derived from the
-specification. One example is that its destructor is a no-op. Another is
-that its <tt>use_count()</tt> returns 0. I can enumerate the full list if you
-really like.
-</p>
-</li>
-
-<li>
-<p>
-We should either clarify this term or stop using it.
-</p>
-<p>
-I don't agree with the imperative tone
-</p>
-<p>
-A clarification would be either a no-op - if it doesn't contradict the
-existing wording - or a big mistake if it does.
-</p>
-<p>
-I agree that a clarification that is formally a no-op may add value.
-</p>
-</li>
-
-<li>
-<p>
-However, that term is nowhere defined.
-</p>
-<p>
-Terms can be useful without a definition. Consider the following
-simplistic example. We have a type <tt>X</tt> with the following operations
-defined:
-</p>
-<blockquote><pre>
-X x;
-X x2(x);
-X f(X x);
-X g(X x1, X x2);
-</pre></blockquote>
-<p>
-A default-constructed value is green.<br/>
-A copy has the same color as the original.<br/>
-<tt>f(x)</tt> returns a red value if the argument is green, a green value otherwise.<br/>
-<tt>g(x1,x2)</tt> returns a green value if the arguments are of the same color, a red value otherwise.
-</p>
-
-<p>
-Given these definitions, you can determine the color of every instance
-of type <tt>X</tt>, even if you have absolutely no idea what green and red mean.
-</p>
-
-<p>
-Green and red are "nowhere defined" and completely defined at the same time.
-</p>
-</li>
-</ul>
-
-<p>
-Alisdair's wording is fine.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Append the following sentance to 20.8.2.2 [util.smartptr.shared]
-</p>
-<blockquote><p>
-The <code>shared_ptr</code> class template stores a pointer, usually obtained
-via <code>new</code>. <code>shared_ptr</code> implements semantics of
-shared ownership; the last remaining owner of the pointer is responsible for
-destroying the object, or otherwise releasing  the resources associated with
-the stored pointer. <ins>A <code>shared_ptr</code> object that does not own
-a pointer is said to be <i>empty</i>.</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="814"></a>814. <tt>vector&lt;bool&gt;::swap(reference, reference)</tt> not defined</h3>
-<p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-03-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>vector&lt;bool&gt;::swap(reference, reference)</tt> has no definition.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open. Alisdair to provide a resolution.
-</p></blockquote>
-
-<p><i>[
-Post Summit Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Just after 23.3.7 [vector.bool]/5 add the following prototype and description:
-</p>
-
-<blockquote>
-<p>
-<ins>static void swap(reference x, reference y);</ins>
-</p>
-<blockquote>
-<p>
-<ins>-6- <i>Effects:</i> Exchanges the contents of <tt>x</tt> and <tt>y</tt> as-if</ins> by:
-</p>
-<blockquote><pre><ins>
-bool b = x;
-x = y;
-y = b;
-</ins></pre></blockquote>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="815"></a>815. <tt>std::function</tt> and <tt>reference_closure</tt> do not use perfect forwarding</h3>
-<p><b>Section:</b> 20.9.12.2.4 [func.wrap.func.inv] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-03-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.inv">issues</a> in [func.wrap.func.inv].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>std::function</tt> and <tt>reference_closure</tt> should use "perfect forwarding" as
-described in the rvalue core proposal.
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote><p>
-According to Doug Gregor, as far as <tt>std::function</tt> is concerned, perfect
-forwarding can not be obtained because of type erasure. Not everyone
-agreed with this diagnosis of forwarding.
-</p></blockquote>
-
-<p><i>[
-2009-05-01 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Sebastian Gesemann brought to my attention that the <tt>CopyConstructible</tt>
-requirement on <tt>function</tt>'s <tt>ArgTypes...</tt> is an unnecessary
-restriction.
-</p>
-
-<blockquote><pre>
-template&lt;Returnable R, <b>CopyConstructible</b>... ArgTypes&gt;
-class function&lt;R(ArgTypes...)&gt;
-...
-</pre></blockquote>
-
-<p>
-On further investigation, this complaint seemed to be the same
-issue as this one.  I believe the reason <tt>CopyConstructible</tt> was put
-on <tt>ArgTypes</tt> in the first place was because of the nature of the
-<i>invoke</i> member:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class ...ArgTypes&gt;
-R
-function&lt;R(ArgTypes...)&gt;::operator()(ArgTypes... arg) const
-{
-    if (f_ == 0)
-        throw bad_function_call();
-    return (*f_)(arg...);
-}
-</pre></blockquote>
-
-<p>
-However now with rvalue-refs, "by value" no longer implies <tt>CopyConstructible</tt>
-(as Sebastian correctly points out).  If rvalue arguments are supplied, <tt>MoveConstructible</tt>
-is sufficient.  Furthermore, the constraint need not be applied in <tt>function</tt>
-if I understand correctly.  Rather the client must apply the proper constraints
-at the call site.  Therefore, at the very least, I recommend that <tt>CopyConstructible</tt>
-be removed from the template class <tt>function</tt>.
-</p>
-
-<p>
-Furthermore we need to mandate that the <i>invoker</i> is coded as:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class ...ArgTypes&gt;
-R
-function&lt;R(ArgTypes...)&gt;::operator()(ArgTypes... arg) const
-{
-    if (f_ == 0)
-        throw bad_function_call();
-    return (*f_)(<b>std::forward&lt;ArgTypes&gt;(</b>arg<b>)</b>...);
-}
-</pre></blockquote>
-
-<p>
-Note that <tt>ArgTypes&amp;&amp;</tt> (the "perfect forwarding signature") is not 
-appropriate here as this is not a deduced context for <tt>ArgTypes</tt>.  Instead
-the client's arguments must implicitly convert to the non-deduced <tt>ArgType</tt>
-type.  Catching these arguments by value makes sense to enable decay.
-</p>
-
-<p>
-Next <tt>forward</tt> is used to move the <tt>ArgTypes</tt> as efficiently as
-possible, and also with minimum requirements (not <tt>CopyConstructible</tt>)
-to the type-erased functor.  For object types, this will be a <tt>move</tt>.  For
-reference type <tt>ArgTypes</tt>, this will be a copy.  The end result <em>must</em> be
-that the following is a valid program:
-</p>
-
-<blockquote><pre>
-#include &lt;functional&gt;
-#include &lt;memory&gt;
-#include &lt;cassert&gt;
-
-std::unique_ptr&lt;int&gt;
-f(std::unique_ptr&lt;int&gt; p, int&amp; i)
-{
-    ++i;
-    return std::move(p);
-}
-
-int main()
-{
-    int i = 2;
-    std::function&lt;std::unique_ptr&lt;int&gt;(std::unique_ptr&lt;int&gt;,
-                                       int&amp;&gt; g(f);
-    std::unique_ptr&lt;int&gt; p = g(std::unique_ptr&lt;int&gt;(new int(1)), i);
-    assert(*p == 1);
-    assert(i == 3);
-}
-</pre></blockquote>
-
-<p><i>[
-Tested in pre-concepts rvalue-ref-enabled compiler.
-]</i></p>
-
-
-<p>
-In the example above, the first <tt>ArgType</tt> is <tt>unique_ptr&lt;int&gt;</tt>
-and the second <tt>ArgType</tt> is <tt>int&amp;</tt>.  Both <em>must</em> work!
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-05-27 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-in the 2009-05-01 comment of above mentioned issue Howard
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-Recommends to replace the <tt>CopyConstructible</tt> requirement by a
-<tt>MoveConstructible</tt> requirement
-</li>
-<li>
-Says: "Furthermore, the constraint need not be applied in <tt>function</tt> if I
-understand correctly. Rather the client must apply the proper constraints
-at the call site"
-</li>
-</ol>
-<p>
-I'm fine with (a), but I think comment (b) is incorrect, at least in the
-sense I read these sentences. Let's look at Howard's example code:
-</p>
-
-<blockquote><pre>
-function&lt;R(ArgTypes...)&gt;::operator()(ArgTypes... arg) const
-{
-   if (f_ == 0)
-       throw bad_function_call();
-   return (*f_)(std::forward&lt;ArgTypes&gt;(arg)...);
-}
-</pre></blockquote>
-
-<p>
-In the constrained scope of this <tt>operator()</tt> overload the expression
-"<tt>(*f_)(std::forward&lt;ArgTypes&gt;(arg)...)</tt>" must be valid. How can it
-do so, if <tt>ArgTypes</tt> aren't at least <tt>MoveConstructible</tt>?
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Leave this open and wait until concepts are removed from the Working
-Draft so that we know how to write the proposed resolution in terms of
-diffs to otherwise stable text.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as open. Howard to provide wording. Howard welcomes any help.
-</p></blockquote>
-
-<p><i>[
-2009-12-12 Jonathan Wakely adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-20.9.12.2 [func.wrap.func] says
-</p>
-
-<blockquote><p>
-2  A function object <tt>f</tt> of type <tt>F</tt> is Callable for argument
-types <tt>T1, T2, ..., TN</tt> in <tt>ArgTypes</tt> and a return type
-<tt>R</tt>, if, given lvalues <tt>t1, t2, ..., tN</tt> of types <tt>T1, T2, ...,
-TN</tt>, respectively, <tt>INVOKE (f, t1, t2, ..., tN)</tt> is well formed
-(20.7.2) and, if <tt>R</tt> is not <tt>void</tt>, convertible to <tt>R</tt>.
-</p></blockquote>
-
-<p>
-N.B. lvalues, which means you can't use <tt>function&lt;R(T&amp;&amp;)&gt;</tt>
-or <tt>function&lt;R(unique_ptr&lt;T&gt;)&gt;</tt>
-</p>
-
-<p>
-I recently implemented rvalue arguments in GCC's <tt>std::function</tt>, all
-that was needed was to use <tt>std::forward&lt;ArgTypes&gt;</tt> in a few
-places. The example in issue 815 works.
-</p>
-
-<p>
-I think 815 could be resolved by removing the requirement that the target
-function be callable with lvalues.  Saying <tt>ArgTypes</tt> need to be
-<tt>CopyConstructible</tt> is wrong, and IMHO saying <tt>MoveConstructible</tt>
-is unnecessary, since the by-value signature implies that already, but if it is
-needed it should only be on <tt>operator()</tt>, not the whole class (you could
-in theory instantiate <tt>std::function&lt;R(noncopyable)&gt;</tt> as long as
-you don't invoke the call operator.)
-</p>
-
-<p>
-I think defining invocation in terms of <tt>INVOKE</tt> already implies perfect
-forwarding, so we don't need to say explicitly that <tt>std::forward</tt> should
-be used (N.B. the types that are forwarded are those in <tt>ArgTypes</tt>, which
-can differ from the actual parameter types of the target function.  The actual
-parameter types have gone via type erasure, but that's not a problem - IMHO
-forwarding the arguments as <tt>ArgTypes</tt> is the right thing to do anyway.)
-</p>
-
-<p>
-Is it sufficient to simply replace "lvalues" with "values"? or do we need to say
-something like "lvalues when <tt>Ti</tt> is an lvalue-reference and rvalues
-otherwise"?  I prefer the former, so I propose the following resolution for 815:
-</p>
-
-<p>
-Edit 20.9.12.2 [func.wrap.func] paragraph 2:
-</p>
-
-<blockquote><p>
-2  A function object <tt>f</tt> of type <tt>F</tt> is Callable for argument
-types <tt>T1, T2, ..., TN</tt> in <tt>ArgTypes</tt> and a return type
-<tt>R</tt>, if, given <del>l</del>values <tt>t1, t2, ..., tN</tt> of types
-<tt>T1, T2, ..., TN</tt>, respectively, <tt>INVOKE (f, t1, t2, ..., tN)</tt> is
-well formed (20.7.2) and, if <tt>R</tt> is not <tt>void</tt>, convertible to
-<tt>R</tt>.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-12-12 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-I don't like the reduction to "values" and prefer the alternative solution
-suggested using "lvalues when Ti is an lvalue-reference and rvalues otherwise".
-The reason why I dislike the shorter version is based on different usages of
-"values" as part of defining the semantics of requirement tables via
-expressions. E.g. 17.6.3.1 [utility.arg.requirements]/1 says "<tt>a</tt>,
-<tt>b</tt>, and <tt>c</tt> are values of type <tt>const T;</tt>" or similar in
-23.2.1 [container.requirements.general]/4 or /14 etc. My current reading
-of all these parts is that <em>both</em> rvalues and lvalues are required to be
-supported, but this interpretation would violate the intention of the suggested
-fix of #815, if I correctly understand Jonathan's rationale.
-</p></blockquote>
-
-<p><i>[
-2009-12-12 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<blockquote><p>
-"lvalues when Ti is an lvalue-reference and rvalues otherwise"
-</p></blockquote>
-<p>
-doesn't quite work here because the <tt>Ti</tt> aren't deduced.  They are
-specified by the <tt>function</tt> type.  <tt>Ti</tt> might be <tt>const
-int&amp;</tt> (an lvalue reference) and a valid <tt>ti</tt> might be <tt>2</tt>
-(a non-const rvalue).  I've taken another stab at the wording using
-"expressions" and "bindable to".
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-09 Wording updated by Jonathan, Ganesh and Daniel.
-]</i></p>
-
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Daniel opens to improve wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-11 This issue is now addressed by <a href="lwg-defects.html#870">870</a>.
-]</i></p>
-
-
-<p><i>[
-2010-02-12 Moved to Tentatively NAD Editorial after 5 positive votes on
-c++std-lib.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Addressed by <a href="lwg-defects.html#870">870</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Edit 20.9.12.2 [func.wrap.func] paragraph 2:
-</p>
-
-<blockquote>
-<p>
-2  A function object <tt>f</tt> of type <tt>F</tt> is Callable for argument
-types <del><tt>T1, T2, ..., TN</tt> in</del> <tt>ArgTypes</tt> and <del>a</del>
-return type <tt>R</tt><del>,</del> if<del>, given lvalues <tt>t1, t2, ...,
-tN</tt> of types <tt>T1, T2, ..., TN</tt>, respectively,</del> <ins>the
-expression</ins> <tt><i>INVOKE</i>(f, <ins>declval&lt;ArgTypes&gt;()...,
-R</ins><del>t1, t2, ..., tN</del>)</tt><ins>, considered as an unevaluated
-operand (5 [expr]),</ins> is well formed (20.7.2)<del> and, if
-<tt>R</tt> is not <tt>void</tt>, convertible to <tt>R</tt></del>.
-</p>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<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>
-<p><b>Section:</b> 20.9.10.3 [func.bind.bind] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2008-02-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Library Issue <a href="lwg-defects.html#527">527</a> notes that <tt>bind(f, t1, ..., tN)</tt>
-should be nofail when <tt>f, t1, ..., tN</tt> have nofail copy ctors.
-</p>
-<p>
-However, no guarantees are provided for the copy ctor of the functor
-returned by <tt>bind()</tt>.  (It's guaranteed to have a copy ctor, which can
-throw implementation-defined exceptions: <tt>bind()</tt> returns a forwarding
-call wrapper, TR1 3.6.3/2.  A forwarding call wrapper is a call wrapper,
-TR1 3.3/4.  Every call wrapper shall be CopyConstructible, TR1 3.3/4.
-Everything without an exception-specification may throw
-implementation-defined exceptions unless otherwise specified, C++03
-17.4.4.8/3.)
-</p>
-<p>
-Should the nofail guarantee requested by Library Issue <a href="lwg-defects.html#527">527</a> be extended
-to cover both calling <tt>bind()</tt> and copying the returned functor?
-</p>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-<tt>tuple</tt> construction should probably have a similar guarantee.
-</p></blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Howard to provide wording.
-</p></blockquote>
-
-<p><i>[
-Post Summit, Anthony provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Part of all of this issue appears to be rendered moot
-by the proposed resolution to issue <a href="lwg-defects.html#817">817</a> (q.v.).
-We recommend the issues be considered simultaneously
-(or possibly even merged)
-to ensure there is no overlap.
-Move to Open, and likewise for issue <a href="lwg-defects.html#817">817</a>.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Related to <a href="lwg-defects.html#817">817</a> (see below). Leave Open.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready. Decoupling from issue <a href="lwg-defects.html#817">817</a>.
-</p></blockquote>
-
-<p><i>[
-2010-02-11 Moved from Ready to Tentatively NAD Editorial, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-This issue is solved as proposed by <a href="lwg-defects.html#817">817</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new sentence to the end of paragraphs 2 and 4 of 20.9.10.3 [func.bind.bind]:
-</p>
-
-<blockquote>
-<p>
--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,
-..., uM)</tt> shall be <tt><i>INVOKE</i>(f, v1, v2, ..., vN, Callable&lt;F cv,V1, V2, ..., VN&gt;::result_type)</tt>, where <i>cv</i>
-represents the <i>cv</i>-qualifiers of <tt>g</tt> and the values and types of the bound arguments
-<tt>v1, v2, ..., vN</tt> are determined as specified below.
-<ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
-exception if and only if the corresponding constructor of <tt>F</tt> or any of the types
-in <tt>BoundArgs...</tt> throw an exception.</ins>
-</p>
-<p>...</p>
-<p>
--5- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a nested type <tt>result_type</tt> defined as a synonym
-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
-values and types of the bound arguments <tt>v1, v2, ..., vN</tt> are determined as specified below.
-<ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
-exception if and only if the corresponding constructor of <tt>F</tt> or any of the types
-in <tt>BoundArgs...</tt> throw an exception.</ins>
-</p>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="817"></a>817. <tt>bind</tt> needs to be moved</h3>
-<p><b>Section:</b> 20.9.10.3 [func.bind.bind] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-03-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US 72, JP 38 and DE 21</b></p>
-
-<p>
-The functor returned by <tt>bind()</tt> should have a move constructor that
-requires only move construction of its contained functor and bound arguments.
-That way move-only functors can be passed to objects such as <tt>thread</tt>.
-</p>
-<p>
-This issue is related to issue <a href="lwg-defects.html#816">816</a>.
-</p>
-
-<p>
-US 72:
-</p>
-
-<blockquote><p>
-<tt>bind</tt> should support move-only functors and bound arguments.
-</p></blockquote>
-
-<p>
-JP 38:
-</p>
-
-<blockquote>
-<p>
-add the move requirement for bind's return type.
-</p>
-<p>
-For example, assume following <tt>th1</tt> and <tt>th2</tt>,
-</p>
-
-<blockquote><pre>
-void f(vector&lt;int&gt; v) { }
-
-vector&lt;int&gt; v{ ... };
-thread th1([v]{ f(v); });
-thread th2(bind(f, v));
-</pre></blockquote>
-
-<p>
-When function object are set to thread, <tt>v</tt> is moved to <tt>th1</tt>'s lambda
-expression in a Move Constructor of lambda expression because <tt>th1</tt>'s lambda
-expression has a Move Constructor. But <tt>bind</tt> of <tt>th2</tt>'s
-return type doesn't have the requirement of Move, so it may not
-moved but copied.
-</p>
-<p>
-Add the requirement of move to get rid of this useless copy.
-</p>
-<p>
-And also, add the <tt>MoveConstructible</tt> as well as <tt>CopyConstructible</tt>.
-</p>
-</blockquote>
-
-<p>
-DE 21
-</p>
-
-<blockquote><p>
-The specification for bind claims twice that "the values and types for
-the bound arguments v1, v2, ..., vN are determined as specified below".
-No such specification appears to exist.
-</p></blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Howard to provide wording.
-</p></blockquote>
-
-<p><i>[
-Post Summit Alisdair and Howard provided wording.
-]</i></p>
-
-
-<blockquote>
-<p>
-Several issues are being combined in this resolution.  They are all touching the
-same words so this is an attempt to keep one issue from stepping on another, and
-a place to see the complete solution in one place.
-</p>
-
-<ol>
-<li>
-<tt>bind</tt> needs to be "moved".
-</li>
-<li>
-20.9.10.3 [func.bind.bind]/p3, p6 and p7 were accidently removed from N2798.
-</li>
-<li>
-Issue <a href="lwg-defects.html#929">929</a> argues for a way to pass by &amp;&amp; for
-efficiency but retain the decaying behavior of pass by value for the
-<tt>thread</tt> constructor.  That same solution is applicable here.
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We were going to recommend moving this issue to Tentatively Ready
-until we noticed potential overlap with issue 816 (q.v.).
-</p>
-<p>
-Move to Open,
-and recommend both issues be considered together
-(and possibly merged).
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution uses concepts. Leave Open.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as Open. Howard to provide deconceptified wording.
-</p></blockquote>
-
-<p><i>[
-2009-11-07 Howard updates wording.
-]</i></p>
-
-
-<p><i>[
-2009-11-15 Further updates by Peter, Chris and Daniel.
-]</i></p>
-
-
-<p><i>[
-Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9 [function.objects] p2:
-</p>
-
-<blockquote><pre>
-template&lt;class F<del>n</del>, class... <del>Types</del> <ins>BoundArgs</ins>&gt;
-  <i>unspecified</i> bind(F<del>n</del><ins>&amp;&amp;</ins>, <del>Types</del> <ins>BoundArgs&amp;&amp;</ins>...);
-template&lt;class R, class F<del>n</del>, class... <del>Types</del> <ins>BoundArgs</ins>&gt;
-  <i>unspecified</i> bind(F<del>n</del><ins>&amp;&amp;</ins>, <del>Types</del> <ins>BoundArgs&amp;&amp;</ins>...);
-</pre></blockquote>
-
-<p>
-Change 20.9.2 [func.require]:
-</p>
-
-<blockquote>
-<p>
-4 Every call wrapper (20.9.1 [func.def]) shall be
-<tt><del>Copy</del><ins>Move</ins>Constructible</tt>. A <i>simple call
-wrapper</i> is a call wrapper that is <ins><tt>CopyConstructible</tt> and</ins>
-<tt>CopyAssignable</tt> and whose copy constructor<ins>, move constructor</ins> and assignment operator do not
-throw exceptions. A <i>forwarding call wrapper</i> is a call wrapper that can be
-called with an argument list. [<i>Note:</i> in a typical implementation
-forwarding call wrappers have an overloaded function call operator of the form
-</p>
-<blockquote><pre>
-template&lt;class... <del>ArgTypes</del><ins>UnBoundsArgs</ins>&gt;
-R operator()(<del>ArgTypes</del><ins>UnBoundsArgs</ins>&amp;&amp;... <ins>unbound_</ins>args) cv-qual;
-</pre></blockquote>
-<p>
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<p>
-Change 20.9.10.3 [func.bind.bind]:
-</p>
-
-<blockquote>
-<p><ins>
-Within this clause:
-</ins></p>
-
-<ul>
-<li><ins>
-Let <tt>FD</tt> be a synonym for the type <tt>decay&lt;F&gt;::type</tt>.
-</ins></li>
-<li><ins>
-Let <tt>fd</tt> be an lvalue of type <tt>FD</tt> constructed from
-<tt>std::forward&lt;F&gt;(f)</tt>.
-</ins></li>
-<li><ins>
-Let <tt>Ti</tt> be a synonym for the i<sup><i>th</i></sup> type in the
-template parameter pack <tt>BoundArgs</tt>.
-</ins></li>
-<li><ins>
-Let <tt>TiD</tt> be a synonym for the type <tt>decay&lt;Ti&gt;::type</tt>.
-</ins></li>
-<li><ins>
-Let <tt>ti</tt> be the i<sup><i>th</i></sup> argument in the function parameter
-pack <tt>bound_args</tt>.
-</ins></li>
-<li><ins>
-Let <tt>tid</tt> be an lvalue of type <tt>TiD</tt> constructed from
-<tt>std::forward&lt;Ti&gt;(ti)</tt>.
-</ins></li>
-<li><ins>
-Let <tt>Uj</tt> be the j<sup><i>th</i></sup> deduced type of the <tt>UnBoundArgs&amp;&amp;...</tt>
-parameter of the <tt>operator()</tt> of the forwarding call wrapper.
-</ins></li>
-<li><ins>
-Let <tt>uj</tt> be the j<sup><i>th</i></sup> argument associated with <tt>Uj</tt>.
-</ins></li>
-</ul>
-
-<pre>
-template&lt;class F, class... BoundArgs&gt;
-  <i>unspecified</i> bind(F<ins>&amp;&amp;</ins> f, BoundArgs<ins>&amp;&amp;</ins>... bound_args);
-</pre>
-
-<blockquote>
-<p>
--1- <i>Requires:</i>
-<ins><tt>is_constructible&lt;FD, F&gt;::value</tt>
-shall be <tt>true</tt>.</ins>
-<ins>For each <tt>Ti</tt> in <tt>BoundArgs</tt>,
-<tt>is_constructible&lt;TiD, Ti&gt;::value</tt> shall be
-<tt>true</tt></ins>.
-<del><tt>F</tt> and each <tt>Ti</tt> in
-<tt>BoundArgs</tt> shall be CopyConstructible.</del>
-<tt><i>INVOKE</i>(f<ins>d</ins>, w1, w2, ..., wN)</tt> (20.9.2 [func.require]) shall be a valid expression for some values
-<i>w1, w2, ..., wN</i>, where <tt>N == sizeof...(bound_args)</tt>.
-</p>
-<p>
--2- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a weak
-result type (20.9.2 [func.require]). The effect of <tt>g(u1, u2,
-..., uM)</tt> shall be <tt><i>INVOKE</i>(f<ins>d</ins>, v1, v2, ..., vN,
-result_of&lt;F<ins>D</ins> <i>cv</i> (V1, V2, ..., VN)&gt;::type)</tt>, where
-<i>cv</i> represents the <i>cv</i>-qualifiers of <tt>g</tt> and the
-values and types of the bound arguments <tt>v1, v2, ..., vN</tt> are
-determined as specified below.
-<ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
-exception if and only if the corresponding constructor of <tt>FD</tt> or of any of the types
-<tt>TiD</tt> throws an exception.</ins>
-</p>
-<p>
--3- <i>Throws:</i> Nothing unless the <del>copy</del>
-construct<ins>ion</ins><del>or</del> of
-<tt><del>F</del><ins>fd</ins></tt> or of one of the <ins>values
-<tt>tid</tt></ins> <del>types in the <tt>BoundArgs...</tt> pack
-expansion</del> throws an exception.
-</p>
-<p>
-<ins>
-<i>Remarks:</i> The <i>unspecified</i> return type shall satisfy the
-requirements of <tt>MoveConstructible</tt>.  If all of <tt>FD</tt> and
-<tt>TiD</tt> satisfy the requirements of <tt>CopyConstructible</tt> then
-the <i>unspecified</i> return type shall satisfy the requirements of
-<tt>CopyConstructible</tt>. [<i>Note:</i> This implies that all of
-<tt>FD</tt> and <tt>TiD</tt> shall be <tt>MoveConstructible</tt> &mdash;
-<i>end note</i>]
-</ins>
-</p>
-</blockquote>
-
-<pre>
-template&lt;class R, class F, class... BoundArgs&gt;
-  <i>unspecified</i> bind(F<ins>&amp;&amp;</ins> f, BoundArgs<ins>&amp;&amp;</ins>... bound_args);
-</pre>
-
-<blockquote>
-<p>
--4- <i>Requires:</i>
-<ins><tt>is_constructible&lt;FD, F&gt;::value</tt>
-shall be <tt>true</tt>.</ins>
-<ins>For each <tt>Ti</tt> in <tt>BoundArgs</tt>,
-<tt>is_constructible&lt;TiD, Ti&gt;::value</tt> shall be
-<tt>true</tt></ins>.
-<del><tt>F</tt> and each <tt>Ti</tt> in
-<tt>BoundArgs</tt> shall be CopyConstructible.</del>
-<tt><i>INVOKE</i>(f<ins>d</ins>, w1,
-w2, ..., wN)</tt> shall be a valid expression for some values <i>w1, w2,
-..., wN</i>, where <tt>N == sizeof...(bound_args)</tt>.
-</p>
-<p>
--5- <i>Returns:</i> A forwarding call wrapper <tt>g</tt> with a nested
-type <tt>result_type</tt> defined as a synonym for <tt>R</tt>. The
-effect of <tt>g(u1, u2, ..., uM)</tt> shall be <tt><i>INVOKE</i>(f<ins>d</ins>, v1,
-v2, ..., vN, R)</tt>, where the values and types of the bound arguments
-<tt>v1, v2, ..., vN</tt> are determined as specified below.
-<ins>The copy constructor and move constructor of the forwarding call wrapper shall throw an
-exception if and only if the corresponding constructor of <tt>FD</tt> or of any of the types
-<tt>TiD</tt> throws an exception.</ins>
-</p>
-<p>
--6- <i>Throws:</i> Nothing unless the <del>copy</del>
-construct<ins>ion</ins><del>or</del> of
-<tt><del>F</del><ins>fd</ins></tt> or of one of the <ins>values
-<tt>tid</tt></ins> <del>types in the <tt>BoundArgs...</tt> pack
-expansion</del> throws an exception.
-</p>
-<p>
-<ins>
-<i>Remarks:</i> The <i>unspecified</i> return type shall satisfy the
-requirements of <tt>MoveConstructible</tt>.  If all of <tt>FD</tt> and
-<tt>TiD</tt> satisfy the requirements of <tt>CopyConstructible</tt> then
-the <i>unspecified</i> return type shall satisfy the requirements of
-<tt>CopyConstructible</tt>. [<i>Note:</i> This implies that all of
-<tt>FD</tt> and <tt>TiD</tt> shall be <tt>MoveConstructible</tt> &mdash;
-<i>end note</i>]
-</ins>
-</p>
-</blockquote>
-
-<p>
--7- The values of the <i>bound arguments</i> <tt>v1, v2, ..., vN</tt> and
-their corresponding types <tt>V1, V2, ..., VN</tt> depend on the type<ins>s
-<tt>TiD</tt> derived from</ins>
-<del>of the corresponding argument <tt>ti</tt> in <tt>bound_args</tt> of type
-<tt>Ti</tt> in <tt>BoundArgs</tt> in</del>
-the call to <tt>bind</tt> and the
-<i>cv</i>-qualifiers <i>cv</i> of the call wrapper <tt>g</tt> as
-follows:
-</p>
-
-<ul>
-<li>
-if <tt><del>ti</del> <ins>TiD</ins></tt> is <del>of type</del>
-<tt>reference_wrapper&lt;T&gt;</tt> the argument is
-<tt>ti<ins>d</ins>.get()</tt> and its type <tt>Vi</tt> is <tt>T&amp;</tt>;
-</li>
-<li>
-if the value of
-<tt><del>std::</del>is_bind_expression&lt;Ti<ins>D</ins>&gt;::value</tt> is
-<tt>true</tt> the argument is <tt>ti<ins>d</ins>(<ins>std::forward&lt;Uj&gt;(uj)...</ins> <del>u1, u2, ..., uM</del>)</tt>
-and its type <tt>Vi</tt> is <tt>result_of&lt;Ti<ins>D</ins> <i>cv</i>
-(<ins>Uj...</ins> <del>U1&amp;, U2&amp;, ..., UM&amp;</del>)&gt;::type</tt>;
-</li>
-<li>
-if the value <tt>j</tt> of
-<tt><del>std::</del>is_placeholder&lt;Ti<ins>D</ins>&gt;::value</tt> is not zero
-the argument is <tt>std::forward&lt;Uj&gt;(uj)</tt> and its type
-<tt>Vi</tt> is <tt>Uj&amp;&amp;</tt>;
-</li>
-<li>
-otherwise the value is <tt>ti<ins>d</ins></tt> and its type <tt>Vi</tt>
-is <tt>Ti<ins>D</ins> <i>cv</i> &amp;</tt>.
-</li>
-</ul>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="818"></a>818. wording for memory ordering</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2008-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-29.3 [atomics.order] p1 says in the table that
-</p>
-
-<blockquote>
-<table border="1">
-<tr>
-<th>Element</th><th>Meaning</th>
-</tr>
-<tr>
-<td><tt>memory_order_acq_rel</tt></td>
-<td>the operation has both acquire and release semantics</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-To my naked eye, that seems to imply that even an atomic read has both
-acquire and release semantics.
-</p>
-
-<p>
-Then, p1 says in the table:
-</p>
-
-<blockquote>
-<table border="1">
-<tr>
-<th>Element</th><th>Meaning</th>
-</tr>
-<tr>
-<td><tt>memory_order_seq_cst</tt></td>
-<td>the operation has both acquire and release semantics,
-    and, in addition, has sequentially-consistent operation ordering</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-So that seems to be "the same thing" as <tt>memory_order_acq_rel</tt>, with additional
-constraints.
-</p>
-
-<p>
-I'm then reading p2, where it says:
-</p>
-
-<blockquote><p>
-The <tt>memory_order_seq_cst</tt> operations that load a value are acquire operations
-on the affected locations. The <tt>memory_order_seq_cst</tt> operations that store a value
-are release operations on the affected locations.
-</p></blockquote>
-
-<p>
-That seems to imply that atomic reads only have acquire semantics.  If that
-is intended, does this also apply to <tt>memory_order_acq_rel</tt> and the individual
-load/store operations as well?
-</p>
-
-<p>
-Also, the table in p1 contains phrases with "thus" that seem to indicate
-consequences of normative wording in 1.10 [intro.multithread].  That shouldn't be in
-normative text, for the fear of redundant or inconsistent specification with
-the other normative text.
-</p>
-
-<p>
-Double-check 29.6 [atomics.types.operations] that each
-operation clearly says whether it's a load or a store operation, or
-both.  (It could be clearer, IMO.  Solution not in current proposed resolution.)
-</p>
-
-<p>
-29.3 [atomics.order] p2:  What's a "consistent execution"?  It's not defined in
-1.10 [intro.multithread], it's just used in notes there.
-</p>
-
-<p>
-And why does 29.6 [atomics.types.operations] p9 for "load" say:
-</p>
-
-
-<blockquote><p>
-<i>Requires:</i> The order argument shall not be <tt>memory_order_acquire</tt>
-nor <tt>memory_order_acq_rel</tt>.
-</p></blockquote>
-
-<p>
-(Since this is exactly the same restriction as for "store", it seems to be a typo.)
-</p>
-
-<p>
-And then: 29.6 [atomics.types.operations] p12:
-</p>
-
-<blockquote><p>
-These operations are read-modify-write operations in the sense of the
-"synchronizes with" definition (1.10 [intro.multithread]), so both such an operation and the
-evaluation that produced the input value synchronize with any evaluation
-that reads the updated value.
-</p></blockquote>
-
-<p>
-This is redundant with 1.10 [intro.multithread], see above for the reasoning.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Boehm: "I don't think that this changes anything terribly substantive,
-but it improves the text."
-</p>
-<p>
-Note that "Rephrase the table in as [sic] follows..." should read
-"Replace the table in [atomics.order] with the following...."
-</p>
-<p>
-The proposed resolution needs more work. Crowl volunteered to address
-all of the atomics issues in one paper.
-</p>
-
-<p>
-This issue is addressed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2783.htm">N2783</a>.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-edit 29.3 [atomics.order], paragraph 1 as follows.
-</p>
-
-<blockquote>
-<p>
-The enumeration <code>memory_order</code>
-specifies the detailed regular (non-atomic) memory synchronization order
-as defined in <del>Clause 1.7</del> <ins>section 1.10</ins>
-and may provide for operation ordering.
-Its enumerated values and their meanings are as follows:
-</p>
-<blockquote>
-<dl>
-<dt><ins>For <code>memory_order_relaxed</code>,</ins></dt>
-<dd><ins>no operation orders memory.</ins></dd>
-<dt><ins>For <code>memory_order_release</code>,
-<code>memory_order_acq_rel</code>,
-and <code>memory_order_seq_cst</code>,</ins></dt>
-<dd><ins>a store operation performs a release operation
-on the affected memory location.</ins></dd>
-<dt><ins>For <code>memory_order_consume</code>,</ins></dt>
-<dd><ins>a load operation performs a consume operation
-on the affected memory location.</ins></dd>
-<dt><ins>For <code>memory_order_acquire</code>,
-<code>memory_order_acq_rel</code>,
-and <code>memory_order_seq_cst</code>,</ins></dt>
-<dd><ins>a load operation performs an acquire operation
-on the affected memory location.</ins></dd>
-</dl>
-</blockquote>
-</blockquote>
-
-<p>
-remove table 136 in 29.3 [atomics.order].
-</p>
-
-<blockquote>
-<table border="1">
-<caption><del>Table 136 &mdash; memory_order effects</del></caption>
-<tr><th><del>Element</del></th><th><del>Meaning</del></th></tr>
-<tr><td valign="top"><del><code>memory_order_relaxed</code></del></td>
-<td valign="top"><del>the operation does not order memory</del></td></tr>
-<tr><td valign="top"><del><code>memory_order_release</code></del></td>
-<td valign="top"><del>the operation
-performs a release operation on the affected memory location,
-thus making regular memory writes visible to other threads
-through the atomic variable to which it is applied</del></td></tr>
-<tr><td valign="top"><del><code>memory_order_acquire</code></del></td>
-<td valign="top"><del>the operation
-performs an acquire operation on the affected memory location,
-thus making regular memory writes in other threads
-released through the atomic variable to which it is applied
-visible to the current thread</del></td></tr>
-<tr><td valign="top"><del><code>memory_order_consume</code></del></td>
-<td valign="top"><del>the operation
-performs a consume operation on the affected memory location,
-thus making regular memory writes in other threads
-released through the atomic variable to which it is applied
-visible to the regular memory reads
-that are dependencies of this consume operation.</del></td></tr>
-<tr><td valign="top"><del><code>memory_order_acq_rel</code></del></td>
-<td valign="top"><del>the operation has both acquire and release semantics</del></td></tr>
-<tr><td valign="top"><del><code>memory_order_seq_cst</code></del></td>
-<td valign="top"><del>the operation has both acquire and release semantics,
-and, in addition, has sequentially-consistent operation ordering</del></td></tr>
-</table>
-</blockquote>
-
-<p>
-edit 29.3 [atomics.order], paragraph 2 as follows.
-</p>
-
-<blockquote>
-<p>
-<del>The <code>memory_order_seq_cst</code> operations that load a value
-are acquire operations on the affected locations.
-The <code>memory_order_seq_cst</code> operations that store a value
-are release operations on the affected locations.
-In addition, in a consistent execution,
-there</del> <ins>There</ins> <del>must be</del> <ins>is</ins>
-a single total order <var>S</var>
-on all <code>memory_order_seq_cst</code> operations,
-consistent with the happens before order
-and modification orders for all affected locations,
-such that each <code>memory_order_seq_cst</code> operation
-observes either the last preceding modification
-according to this order <var>S</var>,
-or the result of an operation that is not <code>memory_order_seq_cst</code>.
-[<i>Note:</i>
-Although it is not explicitly required that <var>S</var> include locks,
-it can always be extended to an order
-that does include lock and unlock operations,
-since the ordering between those
-is already included in the happens before ordering.
-&mdash;<i>end note</i>]
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="819"></a>819. rethrow_if_nested</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-03-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Looking at the wording I submitted for <tt>rethrow_if_nested</tt>, I don't think I
-got it quite right.
-</p>
-
-<p>
-The current wording says:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class E&gt; void rethrow_if_nested(const E&amp; e);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Calls <tt>e.rethrow_nested()</tt> only if <tt>e</tt>
-is publicly derived from <tt>nested_exception</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-This is trying to be a bit subtle, by requiring <tt>e</tt> (not <tt>E</tt>) to be publicly
-derived from <tt>nested_exception</tt> the idea is that a <tt>dynamic_cast</tt> would be
-required to be sure.  Unfortunately, if <tt>e</tt> is dynamically but not statically
-derived from <tt>nested_exception</tt>, <tt>e.rethrow_nested()</tt> is ill-formed.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Alisdair was volunteered to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as Open. Alisdair to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-11-09 Alisdair provided wording.
-]</i></p>
-
-
-<p><i>[
-2010-03-10 Dietmar updated wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.8.6 [except.nested], p8:
-</p>
-
-<blockquote><pre>
-template &lt;class E&gt; void rethrow_if_nested(const E&amp; e);
-</pre>
-<blockquote><p>
--8- <i>Effects:</i> <del>Calls <tt>e.rethrow_nested()</tt>
-o</del><ins>O</ins>nly if <ins>the dynamic type of</ins> <tt>e</tt> is
-publicly <ins>and unambiguously</ins> derived from
-<tt>nested_exception</tt> <ins>this calls
-<tt>dynamic_cast&lt;const nested_exception&amp;&gt;(e).rethrow_nested()</tt></ins>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="820"></a>820. <tt>current_exception()</tt>'s interaction with throwing copy ctors</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2008-03-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As of N2521, the Working Paper appears to be silent about what
-<tt>current_exception()</tt> should do if it tries to copy the currently handled
-exception and its copy constructor throws.  18.8.5 [propagation]/7 says "If the
-function needs to allocate memory and the attempt fails, it returns an
-<tt>exception_ptr</tt> object that refers to an instance of <tt>bad_alloc</tt>.", but
-doesn't say anything about what should happen if memory allocation
-succeeds but the actual copying fails.
-</p>
-
-<p>
-I see three alternatives: (1) return an <tt>exception_ptr</tt> object that refers
-to an instance of some fixed exception type, (2) return an <tt>exception_ptr</tt>
-object that refers to an instance of the copy ctor's thrown exception
-(but if that has a throwing copy ctor, an infinite loop can occur), or
-(3) call <tt>terminate()</tt>.
-</p>
-
-<p>
-I believe that <tt>terminate()</tt> is the most reasonable course of action, but
-before we go implement that, I wanted to raise this issue.
-</p>
-
-<p><i>[
-Peter's summary:
-]</i></p>
-
-
-<blockquote>
-<p>
-The current practice is to not have throwing copy constructors in
-exception classes, because this can lead to <tt>terminate()</tt> as described in
-15.5.1 [except.terminate]. Thus calling <tt>terminate()</tt> in this situation seems
-consistent and does not introduce any new problems.
-</p>
-
-<p>
-However, the resolution of core issue 475 may relax this requirement:
-</p>
-
-<blockquote><p>
-The CWG agreed with the position that <tt>std::uncaught_exception()</tt> should
-return <tt>false</tt> during the copy to the exception object and that <tt>std::terminate()</tt>
-should not be called if that constructor exits with an exception.
-</p></blockquote>
-
-<p>
-Since throwing copy constructors will no longer call <tt>terminate()</tt>, option
-(3) doesn't seem reasonable as it is deemed too drastic a response in a
-recoverable situation.
-</p>
-
-<p>
-Option (2) cannot be adopted by itself, because a potential infinite
-recursion will need to be terminated by one of the other options.
-</p>
-
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following paragraph after 18.8.5 [propagation]/7:
-</p>
-
-<blockquote>
-<p>
-<i>Returns (continued):</i> If the attempt to copy the current exception
-object throws an exception, the function returns an <tt>exception_ptr</tt> that
-refers to the thrown exception or, if this is not possible, to an
-instance of <tt>bad_exception</tt>.
-</p>
-<p>
-[<i>Note:</i> The copy constructor of the thrown exception may also fail, so
-the implementation is allowed to substitute a <tt>bad_exception</tt> to avoid
-infinite recursion. <i>-- end note.</i>]
-</p>
-</blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Pete: there may be an implied assumption in the proposed wording that
-current_exception() copies the existing exception object; the
-implementation may not actually do that.
-</p>
-<p>
-Pete will make the required editorial tweaks to rectify this.
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="821"></a>821. Minor cleanup : <tt>unique_ptr</tt></h3>
-<p><b>Section:</b> 20.8.1.3.4 [unique.ptr.runtime.modifiers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-03-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.runtime.modifiers">issues</a> in [unique.ptr.runtime.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Reading resolution of LWG issue <a href="lwg-defects.html#673">673</a> I noticed the following:
-</p>
-
-<blockquote>
-<pre>
-void reset(<del>T*</del> <ins>pointer</ins> p = <del>0</del> <ins>pointer()</ins>);
-</pre>
-
-<p>
--1- <i>Requires:</i> Does not accept pointer types which are convertible
-to <del><tt>T*</tt></del> <ins><tt>pointer</tt></ins> (diagnostic
-required). [<i>Note:</i> One implementation technique is to create a private
-templated overload. <i>-- end note</i>]
-</p>
-</blockquote>
-
-<p>
-This could be cleaned up by mandating the overload as a public deleted
-function.  In addition, we should probably overload <tt>reset</tt> on <tt>nullptr_t</tt>
-to be a stronger match than the deleted overload. Words...
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to class template definition in 20.8.1.3 [unique.ptr.runtime]
-</p>
-
-<blockquote>
-<pre>
-// modifiers 
-pointer release(); 
-void reset(pointer p = pointer()); 
-<ins>void reset( nullptr_t );</ins>
-<ins>template&lt; typename U &gt; void reset( U ) = delete;</ins>
-void swap(unique_ptr&amp;&amp; u);
-</pre>
-</blockquote>
-
-<p>
-Update 20.8.1.3.4 [unique.ptr.runtime.modifiers]
-</p>
-
-<blockquote>
-<pre>
-void reset(pointer p = pointer());
-<ins>void reset(nullptr_t);</ins>
-</pre>
-
-<p>
-<del>-1- <i>Requires:</i> Does not accept pointer types which are convertible
-to <tt>pointer</tt> (diagnostic
-required). [<i>Note:</i> One implementation technique is to create a private
-templated overload. <i>-- end note</i>]</del>
-</p>
-<p>
-<i>Effects:</i> If <tt>get() == nullptr</tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt>. 
-</p>
-<p>...</p>
-</blockquote>
-
-<p><i>[
-Note this wording incorporates resolutions for <a href="lwg-defects.html#806">806</a> (New) and <a href="lwg-defects.html#673">673</a> (Ready).
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="823"></a>823. <tt>identity&lt;void&gt;</tt> seems broken</h3>
-<p><b>Section:</b> 20.2.4 [forward] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Walter Brown <b>Opened:</b> 2008-04-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward">issues</a> in [forward].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N2588 seems to have added an <tt>operator()</tt> member function to the
-<tt>identity&lt;&gt;</tt> helper in 20.2.4 [forward].  I believe this change makes it no
-longer possible to instantiate <tt>identity&lt;void&gt;</tt>, as it would require
-forming a reference-to-<tt>void</tt> type as this <tt>operator()</tt>'s parameter type.
-</p>
-
-<p>
-Suggested resolution:  Specialize <tt>identity&lt;void&gt;</tt> so as not to require
-the member function's presence.
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Jens: suggests to add a requires clause to avoid specializing on <tt>void</tt>.
-</p>
-<p>
-Alisdair: also consider cv-qualified <tt>void</tt>.
-</p>
-<p>
-Alberto provided proposed wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-30 Daniel reopens:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue became closed, because the <tt>ReferentType</tt> requirement
-fixed the problem - this is no longer the case. In retrospective it seems
-to be that the root of current issues around <tt>std::identity</tt> (823, <a href="lwg-defects.html#700">700</a>,
-<a href="lwg-defects.html#939">939</a>)
-is that it was standardized as something very different (an unconditional
-type mapper) than traditional usage indicated (a function object that should
-derive from <tt>std::unary_function)</tt>, as the SGI definition does. This issue could
-be solved, if <tt>std::identity</tt> is removed (one proposal of <a href="lwg-defects.html#939">939</a>), but until this
-has been decided, this issue should remain open. An alternative for
-removing it, would be, to do the following:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-Let <tt>identity</tt> stay as a <em>real</em> function object, which would
-now properly
-derive from <tt>unary_function</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct identity : unary_function&lt;T, T&gt; {
-  const T&amp; operator()(const T&amp;) const;
-};
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Invent (if needed) a generic type wrapper (corresponding to concept
-<tt>IdentityOf</tt>),
-e.g. <tt>identity_of</tt>, and move it's prototype description back to 20.2.4 [forward]:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct identity_of {
-  typedef T type;
-};
-</pre></blockquote>
-
-<p>
-and adapt the <tt>std::forward</tt> signature to use <tt>identity_of</tt>
-instead of <tt>identity</tt>.
-</p>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as <del>NAD Editorial</del><ins>Resolved</ins>, fixed by <a href="lwg-defects.html#939">939</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change definition of <tt>identity</tt> in 20.2.4 [forward], paragraph 2, to:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;  struct identity {
-    typedef T type;
-
-    <ins>requires ReferentType&lt;T&gt;</ins>
-      const T&amp; operator()(const T&amp; x) const;
-  };
-</pre></blockquote>
-<p>...</p>
-<blockquote><pre>
-  <ins>requires ReferentType&lt;T&gt;</ins>
-    const T&amp; operator()(const T&amp; x) const;
-</pre></blockquote>
-
-
-<p><b>Rationale:</b></p>
-<p>
-The point here is to able to write <tt>T&amp;</tt> given <tt>T</tt> and <tt>ReferentType</tt> is
-precisely the concept that guarantees so, according to N2677
-(Foundational concepts). Because of this, it seems preferable than an
-explicit check for <tt>cv void</tt> using <tt>SameType/remove_cv</tt> as it was suggested
-in Sophia. In particular, Daniel remarked that there may be types other
-than <tt>cv void</tt> which aren't referent types (<tt>int[]</tt>, perhaps?).
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="824"></a>824. rvalue ref issue with <tt>basic_string</tt> inserter</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-04-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the current working paper, the <tt>&lt;string&gt;</tt> header synopsis at the end of
-21.3 [string.classes] lists a single <tt>operator&lt;&lt;</tt> overload
-for <tt>basic_string</tt>.
-</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
- basic_ostream&lt;charT, traits&gt;&amp;
-   operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp;&amp; os,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-</pre></blockquote>
-
-<p>
-The definition in 21.4.8.9 [string.io] lists two:
-</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
- basic_ostream&lt;charT, traits&gt;&amp;
-   operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp; os,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-
-template&lt;class charT, class traits, class Allocator&gt;
- basic_ostream&lt;charT, traits&gt;&amp;
-   operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp;&amp; os,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-</pre></blockquote>
-
-<p>
-I believe the synopsis in 21.3 [string.classes] is correct, and the first of the two
-signatures in 21.4.8.9 [string.io] should be deleted.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Delete the first of the two signatures in 21.4.8.9 [string.io]:
-</p>
-
-<blockquote><pre>
-<del>template&lt;class charT, class traits, class Allocator&gt;
- basic_ostream&lt;charT, traits&gt;&amp;
-   operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp; os,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; str);</del>
-
-template&lt;class charT, class traits, class Allocator&gt;
- basic_ostream&lt;charT, traits&gt;&amp;
-   operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp;&amp; os,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="825"></a>825. Missing rvalues reference stream insert&#47;extract operators?</h3>
-<p><b>Section:</b> 19.5.2.1 [syserr.errcode.overview], 20.8.2.2.11 [util.smartptr.shared.io], 22.4.8 [facets.examples], 20.6.4 [bitset.operators], 26.4.6 [complex.ops], 27.6 [stream.buffers], 28.9 [re.submatch] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-04-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 220</b></p>
-
-<p>
-Should the following use rvalues references to stream in insert/extract operators?
-</p>
-
-<ul>
-<li>19.5.2.1 [syserr.errcode.overview]</li>
-<li>20.8.2.2.11 [util.smartptr.shared.io]</li>
-<li>22.4.8 [facets.examples]</li>
-<li>20.6.4 [bitset.operators]</li>
-<li>26.4.6 [complex.ops]</li>
-<li>Doubled signatures in 27.6 [stream.buffers] for character inserters
-(ref 27.7.3.6.4 [ostream.inserters.character])
-+ definition 27.7.3.6.4 [ostream.inserters.character]</li>
-<li>28.9 [re.submatch]</li>
-</ul>
-
-<p><i>[
-Sophia Antipolis
-]</i></p>
-
-
-<blockquote><p>
-Agree with the idea in the issue, Alisdair to provide wording.
-</p></blockquote>
-
-<p><i>[
-Daniel adds 2009-02-14:
-]</i></p>
-
-
-<blockquote><p>
-The proposal given in the paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2831.html">N2831</a>
-apparently resolves this issue.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-The cited paper is an earlier version of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>,
-which changed the rvalue reference binding rules.
-That paper includes generic templates
-<tt>operator&lt;&lt;</tt> and <tt>operator&gt;&gt;</tt>
-that adapt rvalue streams.
-</p>
-<p>
-We therefore agree with Daniel's observation. Move to <del>NAD Editorial</del><ins>Resolved</ins>.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="827"></a>827. <tt>constexpr shared_ptr::shared_ptr()?</tt></h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-04-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Would anyone object to making the default constructor of <tt>shared_ptr</tt> (and
-<tt>weak_ptr</tt> and <tt>enable_shared_from_this</tt>) <tt>constexpr</tt>? This would enable
-static initialization for <tt>shared_ptr</tt> variables, eliminating another
-unfair advantage of raw pointers.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-It's not clear to us that you can initialize a pointer with the literal
-0 in a constant expression. We need to ask CWG to make sure this works.
-Bjarne has been appointed to do this.
-</p>
-<p>
-Core got back to us and assured as that <tt>nullptr</tt> would do the job
-nicely here.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-01 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I don't believe that <tt>constexpr</tt> will buy anything in this case.
-<tt>shared_ptr/weak_ptr/enable_shared_from_this</tt> cannot be literal types as they
-have a non-trivial copy constructor.  As they do not produce literal types,
-then the <tt>constexpr</tt> default constructor will <em>not</em> guarantee constant
-initialization, and so not buy the hoped for optimization.
-</p>
-<p>
-I recommend referring this back to Core to see if we can get static
-initialization for types with <tt>constexpr</tt> constructors, even if they are not
-literal types.  Otherwise this should be closed as NAD.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-26 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-If Alisdair's 2009-05-01 comment is correct, wouldn't that also make
-<tt>constexpr mutex()</tt> useless, because this class has a non-trivial
-destructor? (<a href="lwg-defects.html#828">828</a>)
-</p></blockquote>
-
-<p><i>[
-2009-07-21 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The feedback from core is that this and similar uses of <tt>constexpr</tt>
-constructors to force static initialization should be supported.  If
-there are any problems with this in the working draught, we should file
-core issues.
-</p>
-
-<p>
-Recommend we declare the default constructor <tt>constexpr</tt> as the issue suggests
-(proposed wording added).
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">N2994</a>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.2.2 [util.smartptr.shared] and 20.8.2.2.1 [util.smartptr.shared.const]:
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> shared_ptr();
-</pre></blockquote>
-
-<p>
-Change 20.8.2.3 [util.smartptr.weak] and 20.8.2.3.1 [util.smartptr.weak.const]:
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> weak_ptr();
-</pre></blockquote>
-
-<p>
-Change 20.8.2.5 [util.smartptr.enab] (2 places):
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> enable_shared_from_this();
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="828"></a>828. Static initialization for <tt>std::mutex</tt>?</h3>
-<p><b>Section:</b> 30.4.1.2.1 [thread.mutex.class] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-04-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.class">issues</a> in [thread.mutex.class].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-[Note: I'm assuming here that 3.6.2 [basic.start.init]/1 will be fixed.]
-</p>
-<p>
-Currently <tt>std::mutex</tt> doesn't support static initialization. This is a
-regression with respect to <tt>pthread_mutex_t</tt>, which does. I believe that
-we should strive to eliminate such regressions in expressive power where
-possible, both to ease migration and to not provide incentives to (or
-force) people to forego the C++ primitives in favor of pthreads.
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-We believe this is implementable on POSIX, because the initializer-list
-feature and the constexpr feature make this work. Double-check core
-language about static initialization for this case. Ask core for a core
-issue about order of destruction of statically-initialized objects wrt.
-dynamically-initialized objects (should come afterwards). Check
-non-POSIX systems for implementability.
-</p>
-<p>
-If ubiquitous implementability cannot be assured, plan B is to introduce
-another constructor, make this constexpr, which is
-conditionally-supported. To avoid ambiguities, this new constructor needs
-to have an additional parameter.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Jens: constant initialization seems to be ok core-language wise
-</p>
-<p>
-Consensus: Defer to threading experts, in particular a Microsoft platform expert.
-</p>
-<p>
-Lawrence to send e-mail to Herb Sutter, Jonathan Caves, Anthony Wiliams,
-Paul McKenney, Martin Tasker, Hans Boehm, Bill Plauger, Pete Becker,
-Peter Dimov to alert them of this issue.
-</p>
-<p>
-Lawrence: What about header file shared with C? The initialization syntax is different in C and C++.
-</p>
-<p>
-Recommend Keep in Review
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Keep in Review status pending feedback from members of the Concurrency subgroup.
-</p></blockquote>
-
-<p><i>[
-See related comments from Alisdair and Daniel in <a href="lwg-defects.html#827">827</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">N2994</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.4.1.2.1 [thread.mutex.class]:
-</p>
-
-<blockquote><pre>
-class mutex {
-public:
-  <ins>constexpr</ins> mutex();
-  ...
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="829"></a>829. current_exception wording unclear about exception type</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2008-04-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Consider this code:</p>
-
-<blockquote>
-<pre>exception_ptr xp;</pre>
-<pre>try {do_something(); }
-
-catch (const runtime_error&amp; ) {xp = current_exception();}
-
-...
-
-rethrow_exception(xp);</pre>
-</blockquote>
-
-<p>
-Say <code>do_something()</code> throws an exception object of type <code>
-range_error</code>. What is the type of the exception object thrown by <code>
-rethrow_exception(xp)</code> above? It must have a type of <code>range_error</code>; 
-if it were of type <code>runtime_error</code> it still isn't possible to 
-propagate an exception and the exception_ptr/current_exception/rethrow_exception 
-machinery serves no useful purpose.
-</p>
-
-<p>
-Unfortunately, the current wording does not explicitly say that. Different 
-people read the current wording and come to different conclusions. While it may 
-be possible to deduce the correct type from the current wording, it would be 
-much clearer to come right out and explicitly say what the type of the referred 
-to exception is.
-</p>
-
-<p><i>[
-Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I don't like the proposed resolution of 829. The normative text is
-unambiguous that the <tt>exception_ptr</tt> refers to the <em>currently handled
-exception</em>. This term has a standard meaning, see 15.3 [except.handle]/8; this is the
-exception that <tt>throw;</tt> would rethrow, see 15.1 [except.throw]/7.
-</p>
-<p>
-A better way to address this is to simply add the non-normative example
-in question as a clarification. The term <i>currently handled exception</i>
-should be italicized and cross-referenced. A [<i>Note:</i> the currently
-handled exception is the exception that a throw expression without an
-operand (15.1 [except.throw]/7) would rethrow. <i>--end note</i>] is also an option.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-After 18.8.5 [propagation] , paragraph 7, add the indicated text:
-</p>
-
-<blockquote>
-<pre>exception_ptr current_exception();</pre>
-
-<blockquote>
-<p>
-<i>Returns:</i> <code>exception_ptr</code> object that refers 
-to the currently handled exception <ins>(15.3 [except.handle])</ins> or a copy of the currently handled 
-exception, or a null <code>exception_ptr</code> object if no exception is being handled. If 
-the function needs to allocate memory and the attempt fails, it returns an
-<code>exception_ptr</code> object that refers to an instance of <code>bad_alloc</code>. 
-It is unspecified whether the return values of two successive calls to
-<code>current_exception</code> refer to the same exception object. 
-[<i>Note:</i> that is, it 
-is unspecified whether <code>current_exception</code>
-creates a new copy each time it is called.
-<i>-- end note</i>]
-</p>
-
-<p>
-<i>Throws:</i> nothing.
-</p>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="834"></a>834. <tt>unique_ptr::pointer</tt> requirements underspecified</h3>
-<p><b>Section:</b> 20.8.1.2 [unique.ptr.single] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-05-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#673">673</a> (including recent updates by <a href="lwg-defects.html#821">821</a>) proposes a useful
-extension point for <tt>unique_ptr</tt> by granting support for an optional
-<tt>deleter_type::pointer</tt> to act as pointer-like replacement for <tt>element_type*</tt>
-(In the following: <tt>pointer</tt>).
-</p>
-<p>
-Unfortunately no requirements are specified for the type <tt>pointer</tt> which has
-impact on at least two key features of <tt>unique_ptr</tt>:
-</p>
-
-<ol>
-<li>Operational fail-safety.</li>
-<li>(Well-)Definedness of expressions.</li>
-</ol>
-
-<p>
-The <tt>unique_ptr</tt> specification makes great efforts to require that essentially <em>all</em>
-operations cannot throw and therefore adds proper wording to the affected
-operations of the deleter as well. If user-provided <tt>pointer</tt>-emulating types
-("smart pointers") will be allowed, either <em>all</em> throw-nothing clauses have to
-be replaced by weaker "An exception is thrown only if <tt>pointer</tt>'s {op} throws
-an exception"-clauses or it has to be said explicitly that all used
-operations of <tt>pointer</tt> are required <em>not</em> to throw. I understand the main 
-focus of <tt>unique_ptr</tt> to be as near as possible to the advantages of native pointers which cannot
-fail and thus strongly favor the second choice. Also, the alternative position
-would make it much harder to write safe and simple template code for
-<tt>unique_ptr</tt>. Additionally, I assume that a general statement need to be given
-that all of the expressions of <tt>pointer</tt> used to define semantics are required to
-be well-formed and well-defined (also as back-end for <a href="lwg-defects.html#762">762</a>).
-</p>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard: We maybe need a core concept <tt>PointerLike</tt>, but we don't need the
-arithmetic (see <tt>shared_ptr</tt> vs. <tt>vector&lt;T&gt;::iterator</tt>.
-</p>
-<p>
-Howard will go through and enumerate the individual requirements wrt. <tt>pointer</tt> for each member function.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2009-10-15 Alisdair pulls from Ready:
-]</i></p>
-
-
-<blockquote>
-<p>
-I hate to pull an issue out of Ready status, but I don't think 834 is
-fully baked yet.
-</p>
-
-<p>
-For reference the proposed resolution is to add the following words:
-</p>
-
-<blockquote><p>
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt>'s operations shall be
-well-formed, shall have well defined behavior, and shall not throw
-exceptions.
-</p></blockquote>
-
-<p>
-This leaves me with a big question : which operations?
-</p>
-
-<p>
-Are all pointer operations required to be nothrow, including operations
-that have nothing to do with interactions with <tt>unique_ptr</tt>?  This was
-much simpler with concepts where we could point to operations within a
-certain concept, and so nail down the interactions.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-15 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-I volunteer to prepare a more fine-grained solution, but I would like
-to ask for feedback that helps me doing so. If this question is asked
-early in the meeting I might be able to fix it within the week, but I
-cannot promise that now.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave in open. Daniel to provide wording as already suggested.
-</p></blockquote>
-
-<p><i>[
-2009-12-22 Daniel provided wording and rationale.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-The here proposed resolution has considerable overlap with the requirements that
-are used in the allocator requirements.
-</p>
-
-<p>
-This might be a convincing argument to isolate the common subset into one
-requirement. The reason I did not do that is basically because we might find out
-that they are either over-constraining or under-constraining at this late point
-of specification. Note also that as a result of the idea of a general
-requirement set I added the requirement:
-</p>
-
-<blockquote><p>
-A default-initialized object may have a singular value
-</p></blockquote>
-
-<p>
-even though this does not play a relevant role for <tt>unique_ptr</tt>.
-</p>
-
-<p>
-One further characteristics of the resolution is that availability of relational
-operators of <tt>unique_ptr&lt;T, D&gt;::pointer</tt> is not part of the basic
-requirements, which is in sync with the allocator requirements on pointer-like
-(this means that <tt>unique_ptr</tt> can hold a <tt>void_pointer</tt> or
-<tt>const_void_pointer</tt>).
-</p>
-
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-
-<li>
-<p>
-Change 20.8.1.2 [unique.ptr.single] p. 1 as indicated: <i>[The intent is to
-replace the coupling between <tt>T*</tt> and the deleter's <tt>operator()</tt>
-by a coupling between <tt>unique_ptr&lt;T, D&gt;::pointer</tt> and this
-<tt>operator()</tt>]</i>
-</p>
-
-<blockquote><p>
-1 - The default type for the template parameter <tt>D</tt> is
-<tt>default_delete</tt>. A client-supplied template argument <tt>D</tt> shall be
-a function pointer or functor for which, given a value <tt>d</tt> of type
-<tt>D</tt> and a <del>pointer</del> <ins>value</ins> <tt>ptr</tt> of type
-<tt><del>T*</del> <ins>unique_ptr&lt;T, D&gt;::pointer</ins></tt>, the
-expression <tt>d(ptr)</tt> is valid and has the effect of deallocating the
-pointer as appropriate for that deleter. <tt>D</tt> may also be an
-lvalue-reference to a deleter.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2 [unique.ptr.single] p. 3 as indicated:
-</p>
-
-<blockquote>
-<p>
-3 - If the type <tt>remove_reference&lt;D&gt;::type::pointer</tt> exists, then
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt> shall be a synonym for
-<tt>remove_reference&lt;D&gt;::type::pointer</tt>. Otherwise
-<tt>unique_ptr&lt;T, D&gt;::pointer</tt> shall be a synonym for <tt>T*</tt>. The
-type <tt>unique_ptr&lt;T, D&gt;::pointer</tt> shall <del>be</del> <ins>satisfy
-the requirements of <tt>EqualityComparable</tt>,
-<tt>DefaultConstructible</tt>,</ins> <tt>CopyConstructible</tt> <del>(Table 34)
-and</del><ins>,</ins> <tt>CopyAssignable</tt> <del>(Table 36)</del><ins>,
-<tt>Swappable</tt>, and <tt>Destructible</tt> (17.6.3.1 [utility.arg.requirements]). A default-initialized object may have a
-singular value.  A value-initialized object produces the null value of the type.
-The null value shall be equivalent only to itself. An object of this type can be
-copy-initialized with a value of type <tt>nullptr_t</tt>, compared for equality
-with a value of type <tt>nullptr_t</tt>, and assigned a value of type
-<tt>nullptr_t</tt>. The effect shall be as if a value-initialized object had
-been used in place of the null pointer constant. An object <tt>p</tt> of this
-type can be contextually converted to <tt>bool</tt>. The effect shall be as if
-<tt>p != nullptr</tt> had been evaluated in place of <tt>p</tt>. No operation on
-this type which is part of the above mentioned requirements shall exit via an
-exception.
-</ins>
-</p>
-<p><ins>
-[<i>Note:</i> Given an allocator type <tt>X</tt> (17.6.3.5 [allocator.requirements]), the types <tt>X::pointer</tt>,
-<tt>X::const_pointer</tt>, <tt>X::void_pointer</tt>, and
-<tt>X::const_void_pointer</tt> may be used as <tt>unique_ptr&lt;T,
-D&gt;::pointer</tt> &mdash; <i>end note</i>]
-</ins></p>
-
-<p><ins>
-In addition to being available via inclusion of the <tt>&lt;utility&gt;</tt>
-header, the <tt>swap</tt> function template in 20.2.2 [utility.swap] is
-also available within the definition of <tt>unique_ptr</tt>'s <tt>swap</tt>
-function.
-</ins></p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor] p. 2+3 as indicated: <i>[The first
-change ensures that we explicitly say, how the stored pointer is initialized.
-This is important for a <tt>constexpr</tt> function, because this may make a
-difference for user-defined pointer-like types]</i>
-</p>
-
-<blockquote><pre>
-constexpr unique_ptr();
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-2 - <i>Effects:</i> Constructs a <tt>unique_ptr</tt> which owns nothing<ins>,
-value-initializing the stored pointer</ins>.
-</p>
-
-<p>
-3 - <i>Postconditions:</i> <tt>get() == <del>0</del> <ins>nullptr</ins></tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor] p. 6+7 as indicated: <i>[This is a
-step-by-fix to ensure consistency to the changes of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2976.html">N2976</a>]</i>
-</p>
-
-<blockquote><pre>
-unique_ptr(pointer p);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-6 - <i>Effects:</i> Constructs a <tt>unique_ptr</tt> which owns <tt>p</tt><ins>,
-initializing the stored pointer with <tt>p</tt></ins>.
-</p>
-
-<p>
-7 - <i>Postconditions:</i> <tt>get() == p</tt>. <tt>get_deleter()</tt> returns a
-reference to a <del>default constructed</del> <ins>value-initialized</ins>
-deleter <tt>D</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Insert a new effects clause in 20.8.1.2.1 [unique.ptr.single.ctor] just
-before p. 14: <i>[The intent is to fix the current lack of specification in
-which way the stored pointer is initialized]</i>
-</p>
-
-<blockquote><pre>
-unique_ptr(pointer p, <i><del>implementation-defined</del> <ins>see below</ins></i> d1);
-unique_ptr(pointer p, <i><del>implementation-defined</del> <ins>see below</ins></i> d2);
-</pre>
-<blockquote>
-<p>...</p>
-<p><ins>
-<i>Effects:</i> Constructs a <tt>unique_ptr</tt> which owns <tt>p</tt>,
-initializing the stored pointer with <tt>p</tt> and the initializing the deleter
-as described above.
-</ins></p>
-
-<p>
-14 - <i>Postconditions:</i> <tt>get() == p</tt>. <tt>get_deleter()</tt> returns a
-reference to the internally stored deleter. If <tt>D</tt> is a reference type
-then <tt>get_deleter()</tt> returns a reference to the lvalue <tt>d</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor] p. 18+22 as indicated: <i>[The intent
-is to clarify that the moved-from source must contain a null pointer, there is
-no other choice left]</i>
-</p>
-
-<blockquote><pre>
-unique_ptr(unique_ptr&amp;&amp; u);
-</pre>
-<blockquote>
-<p>
-[..]
-</p>
-
-<p>
-18 - <i>Postconditions:</i> <tt>get() == value u.get()</tt> had before the
-construction<ins> and <tt>u.get() == nullptr</tt></ins>. <tt>get_deleter()</tt>
-returns a reference to the internally stored deleter which was constructed from
-<tt>u.get_deleter()</tt>. If <tt>D</tt> is a reference type then
-<tt>get_deleter()</tt> and <tt>u.get_deleter()</tt> both reference the same
-lvalue deleter.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class U, class E&gt; unique_ptr(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-
-<p>
-[..]
-</p>
-
-<p>
-22 - <i>Postconditions:</i> <tt>get() == value u.get()</tt> had before the
-construction, modulo any required offset adjustments resulting from the cast
-from <tt>unique_ptr&lt;U, E&gt;::pointer</tt> to <tt>pointer</tt><ins> and
-<tt>u.get() == nullptr</tt></ins>. <tt>get_deleter()</tt> returns a reference to
-the internally stored deleter which was constructed from
-<tt>u.get_deleter()</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor] p. 20 as indicated: <i>[With the
-possibility of user-defined pointer-like types the implication does only exist,
-if those are built-in pointers. Note that this change should also be applied
-with the acceptance of <a href="lwg-defects.html#950">950</a>]</i>
-</p>
-
-<blockquote><pre>
-template &lt;class U, class E&gt; unique_ptr(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-<blockquote><p>
-20 - <i>Requires:</i> If <tt>D</tt> is not a reference type, construction of the
-deleter <tt>D</tt> from an rvalue of type <tt>E</tt> shall be well formed and
-shall not throw an exception. If <tt>D</tt> is a reference type, then <tt>E</tt>
-shall be the same type as <tt>D</tt> (diagnostic required). <tt>unique_ptr&lt;U,
-E&gt;::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>.
-<del>[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt> are
-complete types. &mdash; <i>end note</i>]</del>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.2 [unique.ptr.single.dtor] p. 2 as indicated:
-</p>
-
-<blockquote><pre>
-~unique_ptr();
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-2 - <i>Effects:</i> If <tt>get() == <del>0</del> <ins>nullptr</ins></tt> there
-are no effects. Otherwise <tt>get_deleter()(get())</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn] p. 3+8 as indicated: <i>[The intent is to
-clarify that the moved-from source must contain a null pointer, there
-is no other choice left]</i>
-</p>
-
-<blockquote><pre>
-unique_ptr&amp; operator=(unique_ptr&amp;&amp; u);
-</pre>
-<blockquote>
-<p>[..]</p>
-<p>
-3 - <i>Postconditions:</i> This <tt>unique_ptr</tt> now owns the pointer which <tt>u</tt>
-owned, and <tt>u</tt> no longer owns it<ins>, <tt>u.get() == nullptr</tt></ins>.
-[<i>Note:</i> If <tt>D</tt> is a reference type, then the referenced lvalue deleters
-are move assigned. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>[..]</p>
-
-<p>
-8 - <i>Postconditions:</i> This <tt>unique_ptr</tt> now owns the pointer which
-<tt>u</tt> owned, and <tt>u</tt> no longer owns it<ins>, <tt>u.get() ==
-nullptr</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn] p. 6 as indicated: <i>[With the
-possibility of user-defined pointer-like types the implication does only exist,
-if those are built-in pointers. Note that this change should also be applied
-with the acceptance of <a href="lwg-defects.html#950">950</a>]</i>
-</p>
-
-<blockquote><pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-<blockquote>
-<p>[..]</p>
-<p>
-6 - <i>Requires:</i> Assignment of the deleter <tt>D</tt> from an rvalue
-<tt>D</tt> shall not throw an exception. <tt>unique_ptr&lt;U,
-E&gt;::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>.
-<del>[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt> are
-complete types. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn] before p. 11 and p. 12 as
-indicated: <i>[The first change is a simple typo fix]</i>
-</p>
-
-<blockquote><pre>
-unique_ptr&amp; operator=(nullptr_t<del>}</del><ins>)</ins>;
-</pre>
-
-<blockquote>
-<p>
-11 - <i>Effects:</i> <tt>reset()</tt>.
-</p>
-
-<p>
-12 - <i>Postcondition:</i> <tt>get() == <del>0</del> <ins>nullptr</ins></tt>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.4 [unique.ptr.single.observers] p. 1+4+12 as indicated:
-</p>
-
-<blockquote><pre>
-typename add_lvalue_reference&lt;T&gt;::type operator*() const;
-</pre>
-<blockquote>
-<p>
-1 - <i>Requires:</i> <tt>get() != <del>0</del> <ins>nullptr</ins></tt>. <ins>The
-variable definition <tt>add_lvalue_reference&lt;T&gt;::type t = *get()</tt>
-shall be well formed, shall have well-defined behavior, and shall not exit via
-an exception.</ins>
-</p>
-<p>
-[..]
-</p>
-
-</blockquote>
-
-<pre>
-pointer operator-&gt;() const;
-</pre>
-
-<blockquote>
-<p>
-4 - <i>Requires:</i> <tt>get() != <del>0</del> <ins>nullptr</ins></tt>.
-</p>
-
-<p>
-[..]
-</p>
-
-</blockquote>
-
-<pre>
-explicit operator bool() const;
-</pre>
-
-<blockquote><p>
-12 - <i>Returns:</i> <tt>get() != <del>0</del><ins>nullptr</ins></tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.5 [unique.ptr.single.modifiers] p. 1 as indicated:
-</p>
-
-<blockquote><pre>
-pointer release();
-</pre>
-
-<blockquote><p>
-1 - <i>Postcondition:</i> <tt>get() == <del>0</del> <ins>nullptr</ins></tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.5 [unique.ptr.single.modifiers] p. 9 as indicated: <i>[The
-intent is to ensure that potentially user-defined swaps are used. A side-step
-fix and harmonization with the specification of the the deleter is realized.
-Please note the additional requirement in bullet 2 of this proposed resolution
-regarding the availability of the generic <tt>swap</tt> templates within the
-member <tt>swap</tt> function.]</i>
-</p>
-
-<blockquote><pre>
-void swap(unique_ptr&amp; u);
-</pre>
-
-<blockquote>
-<p>
-8 - <i>Requires:</i> The deleter <tt>D</tt> shall be <tt>Swappable</tt> and
-shall not throw an exception under <tt>swap</tt>.
-</p>
-
-<p>
-9 - <i>Effects:</i> The stored pointers of <tt><ins>*</ins>this</tt> and
-<tt>u</tt> are exchanged <ins>by an unqualified call to non-member
-<tt>swap</tt></ins>. The stored deleters are <del><tt>swap</tt>'d
-(unqualified)</del> <ins>exchanged by an unqualified call to non-member
-<tt>swap</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.3.3 [unique.ptr.runtime.observers] p. 1 as indicated:
-</p>
-
-<blockquote><pre>
-T&amp; operator[](size_t i) const;
-</pre>
-<blockquote><p>
-<i>Requires:</i> <tt>i &lt;</tt> the size of the array to which the stored
-pointer points. <ins>The variable definition <tt>T&amp; t = get()[i]</tt> shall
-be well formed, shall have well-defined behavior, and shall not exit via an
-exception.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.3.4 [unique.ptr.runtime.modifiers] p. 1 as indicated:
-</p>
-
-<blockquote><pre>
-void reset(pointer p = pointer());
-void reset(nullptr_t p);
-</pre>
-
-<blockquote><p>
-1 - <i>Effects:</i> If <tt>get() == <del>0</del> <ins>nullptr</ins></tt> there
-are no effects. Otherwise <tt>get_deleter()(get())</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.5 [unique.ptr.special] as indicated: <i>[We don't add the
-relational operators to the basic requirement set, therefore we need special
-handling here]</i>
-</p>
-
-<blockquote>
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator==(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> The variable definition <tt>bool b = x.get() == y.get();</tt> shall be 
-well formed, shall have well-defined behavior, and shall not exit via an exception.</ins>
-</p>
-
-<p>
-2 - <i>Returns:</i> <tt>x.get() == y.get()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator!=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>Requires: The variable definition <tt>bool b = x.get() != y.get();</tt>
-shall be well formed, shall have well-defined behavior, and shall not exit via
-an exception.</ins>
-</p>
-
-<p>
-3 - <i>Returns:</i> <tt>x.get() != y.get()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>Requires: The variable definition <tt>bool b = x.get() &lt; y.get()</tt>;
-shall be well formed, shall have well-defined behavior, and shall not exit via
-an exception.</ins>
-</p>
-
-<p>
-4 - <i>Returns:</i> <tt>x.get() &lt; y.get()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>Requires: The variable definition <tt>bool b = x.get() &lt;= y.get();</tt>
-shall be well formed, shall have well-defined behavior, and shall not exit via
-an exception.</ins>
-</p>
-
-<p>
-5 - <i>Returns:</i> <tt>x.get() &lt;= y.get()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>Requires: The variable definition <tt>bool b = x.get() &gt; y.get();</tt>
-shall be well formed, shall have well-defined behavior, and shall not exit via
-an exception.</ins>
-</p>
-
-<p>
-6 - <i>Returns:</i> <tt>x.get() &gt; y.get()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>Requires: The variable definition <tt>bool b = x.get() &gt;= y.get();</tt>
-shall be well formed, shall have well-defined behavior, and shall not exit via
-an exception.</ins>
-</p>
-
-<p>
-7 - <i>Returns:</i> <tt>x.get() &gt;= y.get()</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="835"></a>835. Tying two streams together (correction to DR 581)</h3>
-<p><b>Section:</b> 27.5.5.3 [basic.ios.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-       <p>
-
-The fix for
-issue <a href="lwg-defects.html#581">581</a>,
-now integrated into the working paper, overlooks a couple of minor
-problems.
-
-       </p>
-       <p>
-
-First, being an unformatted function once again, <code>flush()</code>
-is required to create a sentry object whose constructor must, among
-other things, flush the tied stream. When two streams are tied
-together, either directly or through another intermediate stream
-object, flushing one will also cause a call to <code>flush()</code> on
-the other tied stream(s) and vice versa, ad infinitum. The program
-below demonstrates the problem.
-
-       </p>
-       <p>
-
-Second, as Bo Persson notes in his
-comp.lang.c++.moderated <a href="http://groups.google.com/group/comp.lang.c++.moderated/tree/browse_frm/thread/f2187794e9cc036d/305df31dc583054a">post</a>,
-for streams with the <code>unitbuf</code> flag set such
-as <code>std::stderr</code>, the destructor of the sentry object will
-again call <code>flush()</code>. This seems to create an infinite
-recursion for <code>std::cerr &lt;&lt; std::flush;</code>
-
-       </p>
-       <blockquote>
-           <pre>
-#include &lt;iostream&gt;
-
-int main ()
-{
-   std::cout.tie (&amp;std::cerr);
-   std::cerr.tie (&amp;std::cout);
-   std::cout &lt;&lt; "cout\n";
-   std::cerr &lt;&lt; "cerr\n";
-} 
-</pre>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Review.
-</p></blockquote>
-
-<p><i>[
-2009-05-26 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think that the most recently suggested change in
-27.7.3.4 [ostream::sentry] need some further word-smithing. As
-written, it would make the behavior undefined, if under
-conditions when <tt>pubsync()</tt> should be called, but when
-in this scenario <tt>os.rdbuf()</tt> returns 0.
-</p>
-<p>
-This case is explicitly handled in <tt>flush()</tt> and needs to be
-taken care of. My suggested fix is:
-</p>
-
-<blockquote><p>
-If <tt>((os.flags() &amp; ios_base::unitbuf) &amp;&amp; !uncaught_exception()</tt>
-<ins><tt>&amp;&amp; os.rdbuf() != 0</tt></ins>) is true, calls <del><tt>os.flush()</tt></del>
-<ins><tt>os.rdbuf()-&gt;pubsync()</tt></ins>.
-</p></blockquote>
-
-<p>
-Two secondary questions are:
-</p>
-
-<ol>
-<li>
-Should <tt>pubsync()</tt> be invoked in any case or shouldn't a
-base requirement for this trial be that <tt>os.good() == true</tt>
-as required in the original <tt>flush()</tt> case?
-</li>
-<li>
-Since <tt>uncaught_exception()</tt> is explicitly tested, shouldn't
-a return value of -1 of <tt>pubsync()</tt> produce <tt>setstate(badbit)</tt>
-(which may throw <tt>ios_base::failure</tt>)?
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Daniel volunteered to modify the proposed resolution to address his two questions.
-</p>
-<p>
-Move back to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-26 Daniel provided wording.  Moved to Review.
-]</i></p>
-
-
-<p><i>[
-2009-10-13 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This proposed wording is written to match the outcome
-of <a href="lwg-closed.html#397">397</a>.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open. Martin to propose updated wording that will also resolve
-issue <a href="lwg-closed.html#397">397</a> consistently.
-</p></blockquote>
-
-<p><i>[
-2010-02-15 Martin provided wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Just before 27.5.5.3 [basic.ios.members] p. 2 insert a new paragraph:
-</p>
-
-<blockquote><p>
-<ins><i>Requires:</i> If <tt>(tiestr != 0)</tt> is <tt>true</tt>,
-<tt>tiestr</tt> must not be reachable by traversing the linked list of tied
-stream objects starting from <tt>tiestr-&gt;tie()</tt>.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 27.7.3.4 [ostream::sentry] p. 4 as indicated:
-</p>
-
-<blockquote><p>
-If <tt>((os.flags() &amp; ios_base::unitbuf) &amp;&amp; !uncaught_exception()
-<ins>&amp;&amp; os.good()</ins>)</tt> is <tt>true</tt>, calls
-<del><tt>os.flush()</tt></del> <ins><tt>os.rdbuf()-&gt;pubsync()</tt>. If that
-function returns -1 sets <tt>badbit</tt> in <tt>os.rdstate()</tt> without
-propagating an exception</ins>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add after 27.7.3.4 [ostream::sentry] p17, the following paragraph:
-</p>
-
-<blockquote><p>
-<ins><i>Throws:</i> Nothing.</ins>
-</p></blockquote>
-
-</li>
-
-</ol>
-
-
-   
-
-
-
-<hr>
-<h3><a name="836"></a>836. 
-       Effects of <code>money_base::space</code> and
-       <code>money_base::none</code> on <code>money_get</code>
-   </h3>
-<p><b>Section:</b> 22.4.6.1.2 [locale.money.get.virtuals] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#locale.money.get.virtuals">issues</a> in [locale.money.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#670">670</a></p>
-<p><b>Discussion:</b></p>
-
-       <p>
-
-In paragraph 2, 22.4.6.1.2 [locale.money.get.virtuals] specifies the following:
-
-       </p>
-       <blockquote><p>
-
-Where <code>space</code> or <code>none</code> appears in the format
-pattern, except at the end, optional white space (as recognized
-by <code>ct.is</code>) is consumed after any required space.
-
-       </p></blockquote>
-       <p>
-
-This requirement can be (and has been) interpreted two mutually
-exclusive ways by different readers. One possible interpretation
-is that:
-
-       </p>
-       <blockquote>
-           <ol>
-               <li>
-
-where <code>money_base::space</code> appears in the format, at least
-one space is required, and
-
-               </li>
-               <li>
-
-where <code>money_base::none</code> appears in the format, space is
-allowed but not required.
-
-               </li>
-           </ol>
-       </blockquote>
-       <p>
-
-The other is that:
-
-       </p>
-       <blockquote><p>
-
-where either <code>money_base::space</code> or <code>money_base::none</code> appears in the format, white space is optional.
-
-       </p></blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Martin will revise the proposed resolution.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-There is a noun missing from the proposed resolution. It's not clear
-that the last sentence would be helpful, even if the word were not
-missing:
-</p>
-<blockquote><p>
-In either case, any required MISSINGWORD followed by all optional whitespace 
-(as recognized by <tt>ct.is()</tt>) is consumed.
-</p></blockquote>
-<p>
-Strike this sentence and move to Review.
-</p>
-
-<p><i>[
-Howard: done.
-]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-   
-
-   <p><b>Proposed resolution:</b></p>
-       <p>
-
-I propose to change the text to make it clear that the first
-interpretation is intended, that is, to make following change to
-22.4.6.1.2 [locale.money.get.virtuals], p. 2:
-
-       </p>
-
-       <blockquote><p>
-
-When <code><ins>money_base::</ins>space</code>
-or <code><ins>money_base::</ins>none</code> appears <ins>as the last
-element </ins>in the format pattern, <del>except at the end, optional
-white space (as recognized by <code>ct.is</code>) is consumed after
-any required space.</del> <ins>no white space is consumed. Otherwise,
-where <code>money_base::space</code> appears in any of the initial
-elements of the format pattern, at least one white space character is
-required. Where <code>money_base::none</code> appears in any of the
-initial elements of the format pattern, white space is allowed but not
-required.</ins>
-If <code>(str.flags() &amp; str.showbase)</code> is <code>false</code>, ...
-
-       </p></blockquote>
-   
-
-
-
-<hr>
-<h3><a name="838"></a>838. 
-   Can an <i>end-of-stream</i> iterator become a <i>non-end-of-stream</i> one?
- </h3>
-<p><b>Section:</b> 24.6.1 [istream.iterator] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator">issues</a> in [istream.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-   <p>
-
-From message c++std-lib-20003...
-
-   </p>
-   <p>
-
-The description of <code>istream_iterator</code> in
-24.6.1 [istream.iterator], p. 1 specifies that objects of the
-class become the <i>end-of-stream</i> (EOS) iterators under the
-following condition (see also issue <a href="lwg-defects.html#788">788</a> another problem
-with this paragraph):
-
-   </p>
-   <blockquote><p>
-
-If the end of stream is reached (<code>operator void*()</code> on the
-stream returns <code>false</code>), the iterator becomes equal to
-the <i>end-of-stream</i> iterator value.
-
-   </p></blockquote>
-   <p>
-
-One possible implementation approach that has been used in practice is
-for the iterator to set its <code>in_stream</code> pointer to 0 when
-it reaches the end of the stream, just like the default ctor does on
-initialization. The problem with this approach is that
-the <i>Effects</i> clause for <code>operator++()</code> says the
-iterator unconditionally extracts the next value from the stream by
-evaluating <code>*in_stream &gt;&gt; value</code>, without checking
-for <code>(in_stream == 0)</code>.
-
-   </p>
-   <p>
-
-Conformance to the requirement outlined in the <i>Effects</i> clause
-can easily be verified in programs by setting <code>eofbit</code>
-or <code>failbit</code> in <code>exceptions()</code> of the associated
-stream and attempting to iterate past the end of the stream: each
-past-the-end access should trigger an exception. This suggests that
-some other, more elaborate technique might be intended.
-
-   </p>
-   <p>
-
-Another approach, one that allows <code>operator++()</code> to attempt
-to extract the value even for EOS iterators (just as long
-as <code>in_stream</code> is non-0) is for the iterator to maintain a
-flag indicating whether it has reached the end of the stream. This
-technique would satisfy the presumed requirement implied by
-the <i>Effects</i> clause mentioned above, but it isn't supported by
-the exposition-only members of the class (no such flag is shown). This
-approach is also found in existing practice.
-
-   </p>
-   <p>
-
-The inconsistency between existing implementations raises the question
-of whether the intent of the specification is that a non-EOS iterator
-that has reached the EOS become a non-EOS one again after the
-stream's <code>eofbit</code> flag has been cleared? That is, are the
-assertions in the program below expected to pass?
-
-   </p>
-   <blockquote>
-     <pre>
-   sstream strm ("1 ");
-   istream_iterator eos;
-   istream_iterator it (strm);
-   int i;
-   i = *it++
-   assert (it == eos);
-   strm.clear ();
-   strm &lt;&lt; "2 3 ";
-   assert (it != eos);
-   i = *++it;
-   assert (3 == i);
-     </pre>
-   </blockquote>
-   <p>
-
-Or is it intended that once an iterator becomes EOS it stays EOS until
-the end of its lifetime?
-
-   </p>
- 
- <p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-We like the direction of the proposed resolution. We're not sure about
-the wording, and we need more time to reflect on it,
-</p>
-<p>
-Move to Open. Detlef to rewrite the proposed resolution in such a way
-that no reference is made to exposition only members of
-<tt>istream_iterator</tt>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
- <p><b>Proposed resolution:</b></p>
-   <p>
-
-The discussion of this issue on the reflector suggests that the intent
-of the standard is for an <code>istreambuf_iterator</code> that has
-reached the EOS to remain in the EOS state until the end of its
-lifetime. Implementations that permit EOS iterators to return to a
-non-EOS state may only do so as an extension, and only as a result of
-calling <code>istream_iterator</code> member functions on EOS
-iterators whose behavior is in this case undefined.
-
-   </p>
-   <p>
-
-To this end we propose to change 24.6.1 [istream.iterator], p1,
-as follows:
-
-   </p>
-   <blockquote><p>
-
-The result of operator-&gt; on an end<ins>-</ins>of<ins>-</ins>stream
-is not defined. For any other iterator value a <code>const T*</code>
-is returned.<ins> Invoking <code>operator++()</code> on
-an <i>end-of-stream</i> iterator is undefined.</ins> It is impossible
-to store things into istream iterators...
-
-   </p></blockquote>
-   <p>
-
-Add pre/postconditions to the member function descriptions of <code>istream_iterator</code> like so:
-
-   </p>
-   <blockquote>
-
-<pre>istream_iterator();</pre>
-<p>
-<i>Effects</i>: Constructs the <i>end-of-stream</i> iterator.<br/>
-<ins><i>Postcondition</i>: <code>in_stream == 0</code>.</ins>
-</p>
-<pre>istream_iterator(istream_type &amp;s);</pre>
-<p>
-<i>Effects</i>: Initializes <code>in_stream</code> with &amp;s. value
-may be initialized during construction or the first time it is
-referenced.<br/>
-<ins><i>Postcondition</i>: <code>in_stream == &amp;s</code>.</ins>
-</p>
-<pre>istream_iterator(const istream_iterator &amp;x);</pre>
-<p>
-<i>Effects</i>: Constructs a copy of <code>x</code>.<br/>
-<ins><i>Postcondition</i>: <code>in_stream == x.in_stream</code>.</ins>
-</p>
-<pre>istream_iterator&amp; operator++();</pre>
-<p>
-<ins><i>Requires</i>: <code>in_stream != 0</code>.</ins><br/>
-<i>Effects</i>: <code>*in_stream &gt;&gt; value</code>.
-</p>
-<pre>istream_iterator&amp; operator++(int);</pre>
-<p>
-<ins><i>Requires</i>: <code>in_stream != 0</code>.</ins><br/>
-<i>Effects</i>:
-</p>
-<blockquote><pre>
-istream_iterator tmp (*this);
-*in_stream &gt;&gt; value;
-return tmp;
-     </pre>
-     </blockquote>
-   </blockquote>
- 
-
-
-
-<hr>
-<h3><a name="842"></a>842. <tt>ConstructibleAsElement</tt> and bit containers</h3>
-<p><b>Section:</b> 23.2 [container.requirements], 23.3.7 [vector.bool], 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.2 [container.requirements] p. 3 says:
-</p>
-
-<blockquote><p>
-Objects stored in these components shall be constructed using
-<tt>construct_element</tt> (20.6.9). For each operation that inserts an
-element of type <tt>T</tt> into a container (<tt>insert</tt>,
-<tt>push_back</tt>, <tt>push_front</tt>, <tt>emplace</tt>, etc.) with
-arguments <tt>args... T</tt> shall be <tt>ConstructibleAsElement</tt>,
-as described in table 88. [<i>Note:</i> If the component is instantiated
-with a scoped allocator of type <tt>A</tt> (i.e., an allocator for which
-<tt>is_scoped_allocator&lt;A&gt;::value</tt> is <tt>true</tt>), then
-<tt>construct_element</tt> may pass an inner allocator argument to
-<tt>T</tt>'s constructor. <i>-- end note</i>]
-</p></blockquote>
-
-<p>
-However <tt>vector&lt;bool, A&gt;</tt> (23.3.7 [vector.bool]) and <tt>bitset&lt;N&gt;</tt> 
-(20.6 [template.bitset]) store bits, not <tt>bool</tt>s, and <tt>bitset&lt;N&gt;</tt>
-does not even have an allocator.  But these containers are governed by this clause.  Clearly this
-is not implementable.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 23.2 [container.requirements] p. 3:
-</p>
-
-<blockquote><p>
-Objects stored in these components shall be constructed using
-<tt>construct_element</tt> (20.6.9)<ins>, unless otherwise specified</ins>.
-For each operation that inserts an
-element of type <tt>T</tt> into a container (<tt>insert</tt>,
-<tt>push_back</tt>, <tt>push_front</tt>, <tt>emplace</tt>, etc.) with
-arguments <tt>args... T</tt> shall be <tt>ConstructibleAsElement</tt>,
-as described in table 88. [<i>Note:</i> If the component is instantiated
-with a scoped allocator of type <tt>A</tt> (i.e., an allocator for which
-<tt>is_scoped_allocator&lt;A&gt;::value</tt> is <tt>true</tt>), then
-<tt>construct_element</tt> may pass an inner allocator argument to
-<tt>T</tt>'s constructor. <i>-- end note</i>]
-</p></blockquote>
-
-<p>
-Change 23.3.7 [vector.bool]/p2:
-</p>
-
-<blockquote><p>
-Unless described below, all operations have the same requirements and semantics as the primary <tt>vector</tt> template, 
-except that operations dealing with the <tt>bool</tt> value type map to bit values in the container storage<ins>,
-and <tt>construct_element</tt> (23.2 [container.requirements]) is not used to construct these values</ins>.
-</p></blockquote>
-
-<p>
-Move 20.6 [template.bitset] to clause 20.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="843"></a>843.  Reference Closure</h3>
-<p><b>Section:</b> X [func.referenceclosure.cons] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-06-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>std::reference_closure</tt> type has a deleted copy assignment operator
-under the theory that references cannot be assigned, and hence the
-assignment of its reference member must necessarily be ill-formed.
-</p>
-<p>
-However, other types, notably <tt>std::reference_wrapper</tt> and <tt>std::function</tt>
-provide for the "copying of references", and thus the current definition
-of <tt>std::reference_closure</tt> seems unnecessarily restrictive.  In particular,
-it should be possible to write generic functions using both <tt>std::function</tt>
-and <tt>std::reference_closure</tt>, but this generality is much harder when
-one such type does not support assignment.
-</p>
-<p>
-The definition of <tt>reference_closure</tt> does not necessarily imply direct
-implementation via reference types.  Indeed, the <tt>reference_closure</tt> is
-best implemented via a frame pointer, for which there is no standard
-type.
-</p>
-<p>
-The semantics of assignment are effectively obtained by use of the
-default destructor and default copy assignment operator via
-</p>
-
-<blockquote><pre>
-x.~reference_closure(); new (x) reference_closure(y);
-</pre></blockquote>
-
-<p>
-So the copy assignment operator generates no significant real burden
-to the implementation.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In  [func.referenceclosure] Class template reference_closure,
-replace the <tt>=delete</tt> in the copy assignment operator in the synopsis
-with <tt>=default</tt>.
-</p>
-
-<blockquote><pre>
-template&lt;class R , class... ArgTypes &gt; 
-  class reference_closure&lt;R (ArgTypes...)&gt; { 
-  public:
-     ...
-     reference_closure&amp; operator=(const reference_closure&amp;) = <del>delete</del> <ins>default</ins>;
-     ...
-</pre></blockquote>
-
-<p>
-In X [func.referenceclosure.cons] Construct, copy, destroy,
-add the member function description
-</p>
-
-<blockquote>
-<pre>
-reference_closure&amp; operator=(const reference_closure&amp; f)
-</pre>
-<blockquote>
-<p>
-<i>Postcondition:</i> <tt>*this</tt> is a copy of <tt>f</tt>.
-</p>
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="844"></a>844. <tt>complex pow</tt> return type is ambiguous</h3>
-<p><b>Section:</b> 26.4.9 [cmplx.over] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cmplx.over">issues</a> in [cmplx.over].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current working draft is in an inconsistent state.
-</p>
-
-<p>
-26.4.8 [complex.transcendentals] says that:
-</p>
-
-<blockquote><p>
-<tt>pow(complex&lt;float&gt;(), int())</tt> returns a <tt>complex&lt;float&gt;</tt>.
-</p></blockquote>
-
-<p>
-26.4.9 [cmplx.over] says that:
-</p>
-
-<blockquote><p>
-<tt>pow(complex&lt;float&gt;(), int())</tt> returns a <tt>complex&lt;double&gt;</tt>.
-</p></blockquote>
-
-<p><i>[
-Sophia Antipolis:
-]</i></p>
-
-
-<blockquote>
-<p>
-Since <tt>int</tt> promotes to <tt>double</tt>, and C99 doesn't have an <tt>int</tt>-based
-overload for <tt>pow</tt>, the C99 result is <tt>complex&lt;double&gt;</tt>, see also C99
-7.22, see also library issue <a href="lwg-defects.html#550">550</a>.
-</p>
-<p>
-Special note: ask P.J. Plauger.
-</p>
-<blockquote><p>
-Looks fine.
-</p></blockquote>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike this <tt>pow</tt> overload in 26.4.1 [complex.syn] and in 26.4.8 [complex.transcendentals]:
-</p>
-
-<blockquote><pre>
-<del>template&lt;class T&gt; complex&lt;T&gt; pow(const complex&lt;T&gt;&amp; x, int y);</del>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="845"></a>845. atomics cannot support aggregate initialization</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The atomic classes (and class templates) are required to support aggregate
-initialization (X [atomics.types.integral] p. 2 &#47; X [atomics.types.address] p. 1)
-yet also have user declared constructors, so cannot be aggregates.
-</p>
-<p>
-This problem might be solved with the introduction of the proposed
-initialization syntax at Antipolis, but the wording above should be altered.
-Either strike the sentence as redundant with new syntax, or refer to 'brace
-initialization'.
-</p>
-
-<p><i>[
-Jens adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Note that
-</p>
-<blockquote><pre>
-atomic_itype a1 = { 5 };
-</pre></blockquote>
-<p>
-would be aggregate-initialization syntax (now coming under the disguise
-of brace initialization), but would be ill-formed, because the corresponding
-constructor for atomic_itype is explicit.  This works, though:
-</p>
-<blockquote><pre>
-atomic_itype a2 { 6 };
-</pre></blockquote>
-
-</blockquote>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-The preferred approach to resolving this is to remove the explicit
-specifiers from the atomic integral type constructors.
-</p>
-<p>
-Lawrence will provide wording.
-</p>
-<p>
-This issue is addressed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2783.htm">N2783</a>.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-within the synopsis in X [atomics.types.integral] edit as follows.
-</p>
-
-<blockquote><pre><code>
-....
-typedef struct atomic_bool {
-....
-  constexpr <del>explicit</del> atomic_bool(bool);
-....
-typedef struct atomic_<var>itype</var> {
-....
-  constexpr <del>explicit</del> atomic_<var>itype</var>(<var>integral</var>);
-....
-</code></pre></blockquote>
-
-<p>
-edit X [atomics.types.integral] paragraph 2 as follows.
-</p>
-
-<blockquote><p>
-The atomic integral types shall have standard layout.
-They shall each have a trivial default constructor,
-a constexpr <del>explicit</del> value constructor,
-a deleted copy constructor,
-a deleted copy assignment operator,
-and a trivial destructor.
-They shall each support aggregate initialization syntax.
-</p></blockquote>
-
-<p>
-within the synopsis of X [atomics.types.address] edit as follows.
-</p>
-
-<blockquote><pre><code>
-....
-typedef struct atomic_address {
-....
-  constexpr <del>explicit</del> atomic_address(void*);
-....
-</code></pre></blockquote>
-
-<p>
-edit X [atomics.types.address] paragraph 1 as follows.
-</p>
-
-<blockquote><p>
-The type <code>atomic_address</code> shall have standard layout.
-It shall have a trivial default constructor,
-a constexpr <del>explicit</del> value constructor,
-a deleted copy constructor,
-a deleted copy assignment operator,
-and a trivial destructor.
-It shall support aggregate initialization syntax.
-</p></blockquote>
-
-<p>
-within the synopsis of 29.5 [atomics.types.generic] edit as follows.
-</p>
-
-<blockquote><pre><code>
-....
-template &lt;class T&gt; struct atomic {
-....
-  constexpr <del>explicit</del> atomic(T);
-....
-template &lt;&gt; struct atomic&lt;<var>integral</var>&gt; : atomic_<var>itype</var> {
-....
-  constexpr <del>explicit</del> atomic(<var>integral</var>);
-....
-template &lt;&gt; struct atomic&lt;T*&gt; : atomic_address {
-....
-  constexpr <del>explicit</del> atomic(T*);
-....
-</code></pre></blockquote>
-
-<p>
-edit 29.5 [atomics.types.generic] paragraph 2 as follows.
-</p>
-
-<blockquote><p>
-Specializations of the <code>atomic</code> template
-shall have a deleted copy constructor,
-a deleted copy assignment operator,
-and a constexpr <del>explicit</del> value constructor.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="846"></a>846. No definition for constructor</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-06-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The atomic classes and class templates (X [atomics.types.integral] &#47;
-X [atomics.types.address]) have a constexpr
-constructor taking a value of the appropriate type for that atomic.
-However, neither clause provides semantics or a definition for this
-constructor.  I'm not sure if the initialization is implied by use of
-constexpr keyword (which restricts the form of a constructor) but even if
-that is the case, I think it is worth spelling out explicitly as the
-inference would be far too subtle in that case.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence will provide wording.
-</p>
-<p>
-This issue is addressed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2783.htm">N2783</a>.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-before the description of ...<code>is_lock_free</code>,
-that is before 29.6 [atomics.types.operations] paragraph 4,
-add the following description.
-</p>
-
-<blockquote>
-<pre><code>
-constexpr <var>A</var>::<var>A</var>(<var>C</var> desired);
-</code></pre>
-<dl>
-<dt><i>Effects:</i></dt>
-<dd>
-Initializes the object with the value <code>desired</code>.
-[<i>Note:</i>
-Construction is not atomic.
-&mdash;<i>end note</i>]
-</dd>
-</dl>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="847"></a>847. string exception safety guarantees</h3>
-<p><b>Section:</b> 21.4.1 [string.require] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Herv&eacute; Br&ouml;nnimann <b>Opened:</b> 2008-06-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.require">issues</a> in [string.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In March, on comp.lang.c++.moderated, I asked what were the
-string exception safety guarantees are, because I cannot see
-*any* in the working paper, and any implementation I know offers
-the strong exception safety guarantee (string unchanged if a
-member throws exception). The closest the current draft comes to
-offering any guarantees is 21.4 [basic.string], para 3:
-</p>
-
-<blockquote><p>
-The class template <tt>basic_string</tt> conforms to the requirements
-for a Sequence Container (23.1.1), for a Reversible Container (23.1),
-and for an Allocator-aware container (91). The iterators supported by
-<tt>basic_string</tt> are random access iterators (24.1.5).
-</p></blockquote>
-
-<p>
-However, the chapter 23 only says, on the topic of exceptions:  23.2 [container.requirements],
-para 10:
-</p>
-
-<blockquote>
-<p>
-Unless otherwise specified (see 23.2.2.3 and 23.2.6.4) all container types defined in this clause meet the following 
-additional requirements:
-</p>
-
-<ul>
-<li>if an exception is thrown by...</li>
-</ul>
-</blockquote>
-
-<p>
-I take it  as saying that this paragraph has *no* implication on
-<tt>std::basic_string</tt>, as <tt>basic_string</tt> isn't defined in Clause 23 and
-this paragraph does not define a *requirement* of Sequence
-nor Reversible Container, just of the models defined in Clause 23.
-In addition, LWG Issue <a href="lwg-closed.html#718">718</a> proposes to remove 23.2 [container.requirements], para 3.
-</p>
-
-<p>
-Finally, the fact that no operation on Traits should throw
-exceptions has no bearing, except to suggest (since the only
-other throws should be allocation, <tt>out_of_range</tt>, or <tt>length_error</tt>)
-that the strong exception guarantee can be achieved.
-</p>
-
-<p>
-The reaction in that group by Niels Dekker, Martin Sebor, and
-Bo Persson, was all that this would be worth an LWG issue.
-</p>
-
-<p>
-A related issue is that <tt>erase()</tt> does not throw.  This should be
-stated somewhere (and again, I don't think that the 23.2 [container.requirements], para 1
-applies here).
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Implementors will study this to confirm that it is actually possible.
-</p></blockquote>
-
-<p><i>[
-Daniel adds 2009-02-14:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2815.html">N2815</a>
-interacts with this issue (the paper does not refer to this issue).
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a blanket statement in 21.4.1 [string.require]:
-</p>
-
-<blockquote>
-<p>
-- if any member function or operator of <tt>basic_string&lt;charT, traits, Allocator&gt;</tt>
-throws, that function or operator has no effect.
-</p>
-<p>
-- no <tt>erase()</tt> or <tt>pop_back()</tt> function throws.
-</p>
-</blockquote>
-
-<p>
-As far as I can tell, this is achieved by any implementation.  If I made a
-mistake and it is not possible to offer this guarantee, then
-either state all the functions for which this is possible
-(certainly at least <tt>operator+=</tt>, <tt>append</tt>, <tt>assign</tt>, and <tt>insert</tt>),
-or add paragraphs to Effects clauses wherever appropriate.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="848"></a>848. Missing <tt>std::hash</tt> specializations for <tt>std::bitset&#47;std::vector&lt;bool&gt;</tt></h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Thorsten Ottosen <b>Opened:</b> 2008-06-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the current working draft, <tt>std::hash&lt;T&gt;</tt> is specialized for builtin
-types and a few other types. Bitsets seems like one that is missing from
-the list, not because it cannot not be done by the user, but because it
-is hard or impossible to write an efficient implementation that works on
-32bit&#47;64bit chunks at a time. For example, <tt>std::bitset</tt> is too much
-encapsulated in this respect.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following to the synopsis in 20.9 [function.objects]/2:
-</p>
-
-<blockquote><pre>
-template&lt;class Allocator&gt; struct hash&lt;std::vector&lt;bool,Allocator&gt;&gt;;
-template&lt;size_t N&gt; struct hash&lt;std::bitset&lt;N&gt;&gt;;
-</pre></blockquote>
-
-<p>
-Modify the last sentence of 20.9.13 [unord.hash]/1 to end with:
-</p>
-
-<blockquote><p>
-... and <tt>std::string</tt>, <tt>std::u16string</tt>, <tt>std::u32string</tt>, <tt>std::wstring</tt>,
-<tt>std::error_code</tt>, <tt>std::thread::id</tt>, <tt>std::bitset</tt>, <tt>and std::vector&lt;bool&gt;</tt>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="850"></a>850. Should <tt>shrink_to_fit</tt> apply to <tt>std::deque</tt>?</h3>
-<p><b>Section:</b> 23.3.3.3 [deque.capacity] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2008-06-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.capacity">issues</a> in [deque.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#755">755</a> added a <tt>shrink_to_fit</tt> function to <tt>std::vector</tt> and <tt>std::string</tt>.
-It did not yet deal with <tt>std::deque</tt>, because of the fundamental
-difference between <tt>std::deque</tt> and the other two container types. The
-need for <tt>std::deque</tt> may seem less evident, because one might think that
-for this container, the overhead is a small map, and some number of
-blocks that's bounded by a small constant.
-</p>
-<p>
-The container overhead can in fact be arbitrarily large (i.e. is not
-necessarily O(N) where N is the number of elements currently held by the
-<tt>deque</tt>).  As Bill Plauger noted in a reflector message, unless the map of
-block pointers is shrunk, it must hold at least maxN&frasl;B pointers where
-maxN is the maximum of N over the lifetime of the <tt>deque</tt> since its
-creation.  This is independent of how the map is implemented
-(<tt>vector</tt>-like circular buffer and all), and maxN bears no relation to N,
-the number of elements it currently holds.
-</p>
-<p>
-Herv&eacute; Br&ouml;nnimann reports a situation where a <tt>deque</tt> of requests grew very
-large due to some temporary backup (the front request hanging), and the
-map of the <tt>deque</tt> grew quite large before getting back to normal.  Just
-to put some color on it, assuming a <tt>deque</tt> with 1K pointer elements in
-steady regime, that held, at some point in its lifetime, maxN=10M
-pointers, with one block holding 128 elements, the spine must be at
-least (maxN &frasl; 128), in that case 100K.   In that case, shrink-to-fit
-would allow to reuse about 100K which would otherwise never be reclaimed
-in the lifetime of the <tt>deque</tt>.
-</p>
-<p>
-An added bonus would be that it <em>allows</em> implementations to hang on to
-empty blocks at the end (but does not care if they do or not).  A
-<tt>shrink_to_fit</tt> would take care of both shrinks, and guarantee that at
-most O(B) space is used in addition to the storage to hold the N
-elements and the N&frasl;B block pointers.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-To class template <tt>deque</tt> 23.3.3 [deque] synopsis, add:
-</p>
-<blockquote><pre>
-void shrink_to_fit();
-</pre></blockquote>
-
-<p>
-To deque capacity 23.3.3.3 [deque.capacity], add:
-</p>
-<blockquote><pre>
-void shrink_to_fit();
-</pre>
-
-<blockquote><p>
-<i>Remarks:</i> <tt>shrink_to_fit</tt> is a non-binding request to reduce memory
-use. [<i>Note:</i> The request is non-binding to allow latitude for
-implementation-specific optimizations. &mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="852"></a>852. unordered containers <tt>begin(n)</tt> mistakenly <tt>const</tt></h3>
-<p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2008-06-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 3 of the four unordered containers the local <tt>begin</tt> member is mistakenly declared <tt>const</tt>:
-</p>
-
-<blockquote><pre>
-local_iterator begin(size_type n) const;
-</pre></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 23.5.4 [unord.map], 23.5.5 [unord.multimap], and 23.5.7 [unord.multiset]:
-</p>
-
-<blockquote><pre>
-local_iterator begin(size_type n)<del> const</del>;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="853"></a>853. <tt>to_string</tt> needs updating with <tt>zero</tt> and <tt>one</tt></h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-06-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#396">396</a> adds defaulted arguments to the <tt>to_string</tt> member, but neglects to update
-the three newer <tt>to_string</tt> overloads.
-</p>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Daniel found problems with the wording and provided fixes.  Moved from Ready
-to Review.
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Alisdair: suggest to not repeat the default arguments in B, C, D
-(definition of to_string members)
-</p>
-<p>
-Walter: This is not really a definition.
-</p>
-<p>
-Consensus: Add note to the editor: Please apply editor's judgement
-whether default arguments should be repeated for B, C, D changes.
-</p>
-<p>
-Recommend Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-09:  See alternative solution in issue <a href="lwg-defects.html#1113">1113</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>replace in 20.6 [template.bitset]/1 (class <tt>bitset</tt>)
-</p>
-<blockquote><pre>
-template &lt;class charT, class traits&gt;
-  basic_string&lt;charT, traits, allocator&lt;charT&gt; &gt;
-  to_string(<ins>charT zero = charT('0'), charT one = charT('1')</ins>) const;
-template &lt;class charT&gt;
-  basic_string&lt;charT, char_traits&lt;charT&gt;, allocator&lt;charT&gt; &gt;
-  to_string(<ins>charT zero = charT('0'), charT one = charT('1')</ins>) const;
-basic_string&lt;char, char_traits&lt;char&gt;, allocator&lt;char&gt; &gt;
-  to_string(<ins>char zero = '0', char one = '1'</ins>) const;
-</pre></blockquote>
-</li>
-<li>
-<p>
-replace in 20.6.2 [bitset.members]/37
-</p>
-<blockquote><pre>
-template &lt;class charT, class traits&gt;
-  basic_string&lt;charT, traits, allocator&lt;charT&gt; &gt;
-  to_string(<ins>charT zero = charT('0'), charT one = charT('1')</ins>) const;
-</pre>
-<blockquote><p>
-37 <i>Returns:</i> <tt>to_string&lt;charT, traits, allocator&lt;charT&gt; &gt;(<ins>zero, one</ins>)</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-replace in 20.6.2 [bitset.members]/38
-</p>
-
-<blockquote><pre>
-template &lt;class charT&gt;
-  basic_string&lt;charT, char_traits&lt;charT&gt;, allocator&lt;charT&gt; &gt;
-  to_string(<ins>charT zero = charT('0'), charT one = charT('1')</ins>) const;
-</pre>
-<blockquote><p>
-38 <i>Returns:</i> <tt>to_string&lt;charT, char_traits&lt;charT&gt;, allocator&lt;charT&gt; &gt;(<ins>zero, one</ins>)</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-replace in 20.6.2 [bitset.members]/39
-</p>
-
-<blockquote><pre>
-basic_string&lt;char, char_traits&lt;char&gt;, allocator&lt;char&gt; &gt;
-  to_string(<ins>char zero = '0', char one = '1'</ins>) const;
-</pre>
-<blockquote><p>
-39 <i>Returns:</i> <tt>to_string&lt;char, char_traits&lt;char&gt;, allocator&lt;char&gt; &gt;(<ins>zero, one</ins>)</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="854"></a>854. <tt>default_delete</tt> converting constructor underspecified</h3>
-<p><b>Section:</b> 20.8.1.1.2 [unique.ptr.dltr.dflt] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-06-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.dltr.dflt">issues</a> in [unique.ptr.dltr.dflt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-No relationship between <tt>U</tt> and <tt>T</tt> in the converting constructor for <tt>default_delete</tt> template.
-</p>
-<p>
-Requirements: <tt>U*</tt> is convertible to <tt>T*</tt> and <tt>has_virtual_destructor&lt;T&gt;</tt>;
-the latter should also become a concept.
-</p>
-<p>
-Rules out cross-casting.
-</p>
-<p>
-The requirements for <tt>unique_ptr</tt> conversions should be the same as those on the deleter.
-</p>
-
-<p><i>[
-Howard adds 2008-11-26:
-]</i></p>
-
-
-<blockquote>
-<p>
-I believe we need to be careful to not outlaw the following use case, and
-I believe the current proposed wording
-(<tt>requires Convertible&lt;U*, T*&gt; &amp;&amp; HasVirtualDestructor&lt;T&gt;</tt>) does so:
-</p>
-
-<blockquote><pre>
-#include &lt;memory&gt;
-
-int main()
-{
-    std::unique_ptr&lt;int&gt; p1(new int(1));
-    std::unique_ptr&lt;const int&gt; p2(move(p1));
-    int i = *p2;
-<span style="color:#C80000">//    *p2 = i;  // should not compile</span>
-}
-</pre></blockquote>
-
-<p>
-I've removed "<tt>&amp;&amp; HasVirtualDestructor&lt;T&gt;</tt>" from the
-<tt>requires</tt> clause in the proposed wording.
-</p>
-
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Alisdair: This issue has to stay in review pending a paper constraining
-<tt>unique_ptr</tt>.
-</p>
-<p>
-Consensus: We agree with the resolution, but <tt>unique_ptr</tt> needs
-to be constrained, too.
-</p>
-<p>
-Recommend Keep in Review.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Keep in Review status for the reasons cited.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed resolution uses concepts. Howard needs to rewrite the
-proposed resolution.
-</p>
-<p>
-Move back to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-26 Howard provided rewritten proposed wording and moved to Review.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add after 20.8.1.1.2 [unique.ptr.dltr.dflt], p1:
-</p>
-
-<blockquote><pre>
-template &lt;class U&gt; default_delete(const default_delete&lt;U&gt;&amp; other);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects:</i> ...
-</p>
-<p><ins>
-<i>Remarks:</i> This constructor shall participate in overload resolution
-if and only if <tt>U*</tt> is implicitly convertible to <tt>T*</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="856"></a>856. Removal of <tt>aligned_union</tt></h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2008-06-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With the arrival of extended unions 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf">N2544</a>),
-there is no
-known use of <tt>aligned_union</tt> that couldn't be handled by
-the "extended unions" core-language facility.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the following signature from 20.10.2 [meta.type.synop]:
-</p>
-<blockquote><pre>
-template &lt;std::size_t Len, class... Types&gt; struct aligned_union;
-</pre></blockquote>
-
-<p>
-Remove the second row from table 51 in 20.10.7.6 [meta.trans.other],
-starting with:
-</p>
-
-<blockquote><pre>
-template &lt;std::size_t Len,
-class... Types&gt;
-struct aligned_union;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="857"></a>857. <tt>condition_variable::time_wait</tt> return <tt>bool</tt> error prone</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2008-06-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The meaning of the <tt>bool</tt> returned by <tt>condition_variable::timed_wait</tt> is so
-obscure that even the class' designer can't deduce it correctly. Several
-people have independently stumbled on this issue.
-</p>
-<p>
-It might be simpler to change the return type to a scoped enum:
-</p>
-<blockquote><pre>
-enum class timeout { not_reached, reached };
-</pre></blockquote>
-
-<p>
-That's the same cost as returning a <tt>bool</tt>, but not subject to mistakes. Your example below would be:
-</p>
-
-<blockquote><pre>
-if (cv.wait_until(lk, time_limit) == timeout::reached )
-  throw time_out();
-</pre></blockquote>
-
-<p><i>[
-Beman to supply exact wording.
-]</i></p>
-
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-There is concern that the enumeration names are just as confusing, if
-not more so, as the bool. You might have awoken because of a signal or a
-spurious wakeup, for example.
-</p>
-<p>
-Group feels that this is a defect that needs fixing.
-</p>
-<p>
-Group prefers returning an enum over a void return.
-</p>
-<p>
-Howard to provide wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-06-14 Beman provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Condition variables 30.5 [thread.condition], Header
-condition_variable synopsis, as indicated:
-</p>
-
-<blockquote><pre>
-namespace std {
-  class condition_variable;
-  class condition_variable_any;
-
-  <ins>enum class cv_status { no_timeout, timeout };</ins>
-}
-</pre></blockquote>
-
-<p>
-Change class <tt>condition_variable</tt> 30.5.1 [thread.condition.condvar] as indicated:
-</p>
-
-<blockquote><pre>
-class condition_variable { 
-public:
-  ...
-  template &lt;class Clock, class Duration&gt;
-    <del>bool</del> <ins>cv_status</ins> wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                    const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-  template &lt;class Clock, class Duration, class Predicate&gt;
-    bool wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                    const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time,
-                    Predicate pred);
-
-  template &lt;class Rep, class Period&gt;
-    <del>bool</del> <ins>cv_status</ins> wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-                  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-  template &lt;class Rep, class Period, class Predicate&gt;
-    bool wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-                  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time,
-                  Predicate pred);
-  ...
-};
-
-...
-
-template &lt;class Clock, class Duration&gt;
-  <del>bool</del> <ins>cv_status</ins> wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                  const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre>
-<blockquote>
-<p>
--15- <i>Precondition:</i> <tt>lock</tt> is locked by the calling thread, and either
-</p>
-<ul>
-<li>
-no other thread is waiting on this <tt>condition_variable</tt> object or
-</li>
-<li>
-<tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt>
-arguments supplied by all concurrently waiting threads (via <tt>wait</tt>,
-<tt>wait_for</tt> or <tt>wait_until</tt>.).
-</li>
-</ul>
-
-<p>
--16- <i>Effects:</i>
-</p>
-
-<ul>
-<li>
-Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</li>
-<li>
-When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock) and returns.
-</li>
-<li>
-The function will unblock when signaled by a call to <tt>notify_one()</tt>,
-a call to <tt>notify_all()</tt>, <del>by 
-the current time exceeding <tt>abs_time</tt></del> <ins>if <tt>Clock::now() &gt;= abs_time</tt></ins>,
-or spuriously.
-</li>
-<li>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be called prior
-to exiting the function scope.
-</li>
-</ul>
-
-<p>
--17- <i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-</p>
-
-<p>
--18- <i>Returns:</i> <del><tt>Clock::now() &lt; abs_time</tt></del>
-<ins><tt>cv_status::timeout</tt> if the function unblocked because <tt>abs_time</tt>
-was reached, otherwise <tt>cv_status::no_timeout</tt></ins>.
-</p>
-
-<p>
--19- <i>Throws:</i> <tt>std::system_error</tt> when the effects or postcondition
-cannot be achieved.
-</p>
-
-<p>
--20- <i>Error conditions:</i>
-</p>
-
-<ul>
-<li>
-<tt>operation_not_permitted</tt> &mdash; if the thread does not own the lock.
-</li>
-<li>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</li>
-</ul>
-</blockquote>
-
-<pre>
-template &lt;class Rep, class Period&gt;
-  <del>bool</del> <ins>cv_status</ins> wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-                const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-
-</pre>
-<blockquote>
-<p>
--21- <i><del>Effects</del> <ins>Returns</ins>:</i>
-</p>
-<blockquote><pre>
-wait_until(lock, chrono::monotonic_clock::now() + rel_time)
-</pre></blockquote>
-<p>
-<del>-22- <i>Returns:</i> <tt>false</tt> if the call is returning because the time
-duration specified by <tt>rel_time</tt> has elapsed, 
-otherwise <tt>true</tt>.</del>
-</p>
-
-<p><i>[
-This part of the wording may conflict with <a href="lwg-defects.html#859">859</a> in detail, but does
-not do so in spirit.  If both issues are accepted, there is a logical merge.
-]</i></p>
-
-</blockquote>
-
-<pre>
-template &lt;class Clock, class Duration, class Predicate&gt; 
-  bool wait_until(unique_lock&lt;mutex&gt;&amp; lock, 
-                  const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time, 
-                  Predicate pred);
-</pre>
-
-<blockquote>
-<p>
--23- <i>Effects:</i>
-</p>
-<blockquote><pre>
-while (!pred()) 
-  if (<del>!</del>wait_until(lock, abs_time) <ins>== cv_status::timeout</ins>) 
-    return pred(); 
-return true;
-</pre></blockquote>
-
-<p>
--24- <i>Returns:</i> <tt>pred()</tt>.
-</p>
-
-<p>
--25- [<i>Note:</i>
-The returned value indicates whether the predicate evaluates to
-<tt>true</tt> regardless of whether the timeout was triggered.
-&mdash; <i>end note</i>].
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change Class condition_variable_any 30.5.2 [thread.condition.condvarany] as indicated:
-</p>
-
-<blockquote><pre>
-class condition_variable_any {
-public:
-  ...
-  template &lt;class Lock, class Clock, class Duration&gt;
-    <del>bool</del> <ins>cv_status</ins> wait_until(Lock&amp; lock,
-                    const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-  template &lt;class Lock, class Clock, class Duration, class Predicate&gt;
-    bool wait_until(Lock&amp; lock,
-                    const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time,
-                    Predicate pred);
-
-  template &lt;class Lock, class Rep, class Period&gt;
-    <del>bool</del> <ins>cv_status</ins> wait_for(Lock&amp; lock,
-                  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-  template &lt;class Lock, class Rep, class Period, class Predicate&gt;
-    bool wait_for(Lock&amp; lock,
-                  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time,
-                  Predicate pred);
-  ...
-};
-
-...
-
-template &lt;class Lock, class Clock, class Duration&gt;
-  <del>bool</del> <ins>cv_status</ins> wait_until(Lock&amp; lock,
-                  const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre>
-
-<blockquote>
-
-<p>
--13- <i>Effects:</i>
-</p>
-
-<ul>
-<li>
-Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</li>
-<li>
-When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock) and returns.
-</li>
-<li>
-The function will unblock when signaled by a call to <tt>notify_one()</tt>,
-a call to <tt>notify_all()</tt>, <del>by 
-the current time exceeding <tt>abs_time</tt></del> <ins>if <tt>Clock::now() &gt;= abs_time</tt></ins>,
-or spuriously.
-</li>
-<li>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be called prior
-to exiting the function scope.
-</li>
-</ul>
-
-<p>
--14- <i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-</p>
-
-<p>
--15- <i>Returns:</i> <del><tt>Clock::now() &lt; abs_time</tt></del>
-<ins><tt>cv_status::timeout</tt> if the function unblocked because <tt>abs_time</tt>
-was reached, otherwise <tt>cv_status::no_timeout</tt></ins>.
-</p>
-
-<p>
--16- <i>Throws:</i> <tt>std::system_error</tt> when the effects or postcondition
-cannot be achieved.
-</p>
-
-<p>
--17- <i>Error conditions:</i>
-</p>
-
-<ul>
-<li>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</li>
-</ul>
-</blockquote>
-
-<pre>
-template &lt;class Lock, class Rep, class Period&gt;
-  <del>bool</del> <ins>cv_status</ins> wait_for(Lock&amp; lock,
-                const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-
-</pre>
-
-<blockquote>
-<p>
--18- <i><del>Effects</del> <ins>Returns</ins>:</i>
-</p>
-<blockquote><pre>
-wait_until(lock, chrono::monotonic_clock::now() + rel_time)
-</pre></blockquote>
-
-<p>
-<del>-19- <i>Returns:</i> <tt>false</tt> if the call is returning because the time
-duration specified by <tt>rel_time</tt> has elapsed, 
-otherwise <tt>true</tt>.</del>
-</p>
-
-<p><i>[
-This part of the wording may conflict with <a href="lwg-defects.html#859">859</a> in detail, but does
-not do so in spirit.  If both issues are accepted, there is a logical merge.
-]</i></p>
-
-
-</blockquote>
-
-<pre>
-template &lt;class Lock, class Clock, class Duration, class Predicate&gt; 
-  bool wait_until(Lock&amp; lock, 
-                  const chrono::time_point&lt;Clock, Duration&gt;&amp; <del>rel_time</del> <ins>abs_time</ins>, 
-                  Predicate pred);
-</pre>
-
-<blockquote>
-<p>
--20- <i>Effects:</i>
-</p>
-<blockquote><pre>
-while (!pred()) 
-  if (<del>!</del>wait_until(lock, abs_time) <ins>== cv_status::timeout</ins>) 
-    return pred(); 
-return true;
-</pre></blockquote>
-
-<p>
--21- <i>Returns:</i> <tt>pred()</tt>.
-</p>
-
-<p>
--22- [<i>Note:</i>
-The returned value indicates whether the predicate evaluates to
-<tt>true</tt> regardless of whether the timeout was triggered.
-&mdash; <i>end note</i>].
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="858"></a>858. Wording for Minimal Support for Garbage Collection</h3>
-<p><b>Section:</b> 20.7.4 [util.dynamic.safety] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Pete Becker  <b>Opened:</b> 2008-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.dynamic.safety">issues</a> in [util.dynamic.safety].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The first sentence of the Effects clause for <tt>undeclare_reachable</tt> seems
-to be missing some words. I can't parse
-</p>
-<blockquote><p>
-... for all non-null <tt>p</tt> referencing the argument is no longer declared reachable...
-</p></blockquote>
-<p>
-I take it the intent is that <tt>undeclare_reachable</tt> should be called only
-when there has been a corresponding call to <tt>declare_reachable</tt>. In
-particular, although the wording seems to allow it, I assume that code
-shouldn't call <tt>declare_reachable</tt> once then call <tt>undeclare_reachable</tt>
-twice.
-</p>
-<p>
-I don't know what "shall be live" in the Requires clause means.
-</p>
-<p>
-In the final Note for <tt>undeclare_reachable</tt>, what does "cannot be
-deallocated" mean? Is this different from "will not be able to collect"?
-</p>
-
-<p>
-For the wording on nesting of <tt>declare_reachable</tt> and
-<tt>undeclare_reachable</tt>, the words for locking and unlocking recursive
-mutexes probably are a good model.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Nick: what does "shall be live" mean?
-</p>
-<p>
-Hans: I can provide an appropriate cross-reference to the Project Editor
-to clarify the intent.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.7.4 [util.dynamic.safety]
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2670.htm">N2670</a>,
-Minimal Support for Garbage Collection)
-</p>
-<p>
-Add at the beginning, before paragraph 39
-</p>
-
-<blockquote><p>
-A complete object is <i>declared reachable</i> while the number of calls
-to <tt>declare_reachable</tt> with an argument referencing the object exceeds the
-number of <tt>undeclare_reachable</tt> calls with pointers to the same complete
-object.
-</p></blockquote>
-
-<p>
-Change paragraph 42 (Requires clause for <tt>undeclare_reachable</tt>)
-</p>
-
-<blockquote><p>
-If <tt>p</tt> is not null, <del><tt>declare_reachable(p)</tt> was previously called</del>
-<ins>the complete object referenced by <tt>p</tt> shall have
-been previously declared reachable</ins>, and shall
-be live <ins>(3.8 [basic.life])</ins> from the time of the call until the last <tt>undeclare_reachable(p)</tt>
-call on the object.
-</p></blockquote>
-
-<p>
-Change the first sentence in paragraph 44 (Effects clause for
-<tt>undeclare_reachable</tt>):
-</p>
-
-<blockquote><p>
-<i>Effects:</i> 
-<del>Once the number of calls to
-<tt>undeclare_reachable(p)</tt> equals the number of calls to
-<tt>declare_reachable(p)</tt>
-for all non-null <tt>p</tt> referencing
-the argument is no longer declared reachable.  When this happens,
-pointers to the object referenced by p may not be subsequently
-dereferenced.</del>
-<ins>
-After a call to <tt>undeclare_reachable(p)</tt>, if <tt>p</tt> is not null and the object <tt>q</tt>
-referenced by <tt>p</tt> is no longer declared reachable, then
-dereferencing any pointer to <tt>q</tt> that is not safely derived
-results in undefined behavior.
-</ins> ...
-</p></blockquote>
-
-<p>
-Change the final note:
-</p>
-<p>
-[<i>Note:</i> It is expected that calls to <tt>declare_reachable(p)</tt>
-will consume a small amount of memory<ins>, in addition to that occupied
-by the referenced object, </ins> until the matching call to
-<tt>undeclare_reachable(p)</tt> is encountered. <del>In addition, the
-referenced object cannot be deallocated during this period, and garbage
-collecting implementations will not be able to collect the object while
-it is declared reachable.</del> Long running programs should arrange
-that calls <ins>for short-lived objects</ins> are matched. <i>--end
-note</i>]
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="859"></a>859. Monotonic Clock is Conditionally Supported?</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2008-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>Related to <a href="lwg-defects.html#958">958</a>, <a href="lwg-closed.html#959">959</a>.</p>
-
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661</a>
-says that there is a class named <tt>monotonic_clock</tt>. It also says that this
-name may be a synonym for <tt>system_clock</tt>, and that it's conditionally
-supported. So the actual requirement is that it can be monotonic or not,
-and you can tell by looking at <tt>is_monotonic</tt>, or it might not exist at
-all (since it's conditionally supported). Okay, maybe too much
-flexibility, but so be it.
-</p>
-<p>
-A problem comes up in the threading specification, where several
-variants of <tt>wait_for</tt> explicitly use <tt>monotonic_clock::now()</tt>. What is the
-meaning of an effects clause that says
-</p>
-
-<blockquote><pre>
-wait_until(lock, chrono::monotonic_clock::now() + rel_time)
-</pre></blockquote>
-
-<p>
-when <tt>monotonic_clock</tt> is not required to exist?
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Nick: maybe instead of saying that <tt>chrono::monotonic_clock</tt> is
-conditionally supported, we could say that it's always there, but not
-necessarily supported..
-</p>
-<p>
-Beman: I'd prefer a typedef that identifies the best clock to use for
-<tt>wait_for</tt> locks.
-</p>
-<p>
-Tom: combine the two concepts; create a duration clock type, but keep
-the is_monotonic test.
-</p>
-<p>
-Howard: if we create a <tt>duration_clock</tt> type, is it a typedef or an
-entirely true type?
-</p>
-<p>
-There was broad preference for a typedef.
-</p>
-<p>
-Move to Open. Howard to provide wording to add a typedef for
-duration_clock and to replace all uses of monotonic_clock in function
-calls and signatures with duration_clock.
-</p>
-</blockquote>
-
-<p><i>[
-Howard notes post-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-After further thought I do not believe that creating a <tt>duration_clock typedef</tt>
-is the best way to proceed.  An implementation may not need to use a
-<tt>time_point</tt> to implement the <tt>wait_for</tt> functions.
-</p>
-
-<p>
-For example, on POSIX systems <tt>sleep_for</tt> can be implemented in terms of
-<tt>nanosleep</tt> which takes only a duration in terms of nanoseconds.  The current
-working paper does not describe <tt>sleep_for</tt> in terms of <tt>sleep_until</tt>.
-And paragraph 2 of 30.2.4 [thread.req.timing] has the words strongly encouraging
-implementations to use monotonic clocks for <tt>sleep_for</tt>:
-</p>
-
-<blockquote><p>
-2 The member functions whose names end in <tt>_for</tt> take an argument that
-specifies a relative time. Implementations should use a monotonic clock to
-measure time for these functions.
-</p></blockquote>
-
-<p>
-I believe the approach taken in describing the effects of <tt>sleep_for</tt>
-and <tt>try_lock_for</tt> is also appropriate for <tt>wait_for</tt>.  I.e. these
-are not described in terms of their <tt>_until</tt> variants.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Beman will send some suggested wording changes to Howard.
-</p>
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-21 Beman added the requested wording changes to <a href="lwg-defects.html#962">962</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.5.1 [thread.condition.condvar], p21-22:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Rep, class Period&gt; 
-  bool wait_for(unique_lock&lt;mutex&gt;&amp; lock, 
-                const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre>
-<blockquote>
-<p><ins>
-<i>Precondition:</i> <tt>lock</tt> is locked by the calling thread, and either
-</ins></p>
-<ul>
-<li><ins>no other thread is waiting on this <tt>condition_variable</tt> object or</ins></li>
-<li><ins><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt>
-arguments supplied by all concurrently waiting threads (via <tt>wait</tt>,
-<tt>wait_for</tt> or <tt>wait_until</tt>).</ins></li>
-</ul>
-<p>
-21 <i>Effects:</i>
-</p>
-<blockquote><pre>
-<del>wait_until(lock, chrono::monotonic_clock::now() + rel_time)</del>
-</pre></blockquote>
-<ul>
-<li><ins>
-Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</ins></li>
-
-<li><ins>
-When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock) and returns.
-</ins></li>
-
-<li><ins>
-The function will unblock when signaled by a call to <tt>notify_one()</tt>, a call
-to <tt>notify_all()</tt>, by 
-the elapsed time <tt>rel_time</tt> passing (30.2.4 [thread.req.timing]),
-or spuriously.
-</ins></li>
-
-<li><ins>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be called 
-prior to exiting the function scope.
-</ins></li>
-</ul>
-
-<p><ins>
-<i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-</ins></p>
-
-
-<p>
-22 <i>Returns:</i> <tt>false</tt> if the call is returning because the time
-duration specified by <tt>rel_time</tt> has elapsed, otherwise <tt>true</tt>.
-</p>
-
-<p><i>[
-This part of the wording may conflict with <a href="lwg-defects.html#857">857</a> in detail, but does
-not do so in spirit.  If both issues are accepted, there is a logical merge.
-]</i></p>
-
-
-<p><ins>
-<i>Throws:</i> <tt>std::system_error</tt> when the effects or postcondition cannot be achieved.
-</ins></p>
-
-<p><ins>
-<i>Error conditions:</i>
-</ins></p>
-
-<ul>
-<li><ins>
-<tt>operation_not_permitted</tt> -- if the thread does not own the lock.
-</ins></li>
-<li><ins>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</ins></li>
-</ul>
-
-</blockquote>
-</blockquote>
-
-<p>
-Change 30.5.1 [thread.condition.condvar], p26-p29:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Rep, class Period, class Predicate&gt; 
-  bool wait_for(unique_lock&lt;mutex&gt;&amp; lock, 
-                const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, 
-                Predicate pred);
-</pre>
-<blockquote>
-<p><ins>
-<i>Precondition:</i> <tt>lock</tt> is locked by the calling thread, and either
-</ins></p>
-<ul>
-<li><ins>no other thread is waiting on this <tt>condition_variable</tt> object or</ins></li>
-<li><ins><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt>
-arguments supplied by all concurrently waiting threads (via <tt>wait</tt>,
-<tt>wait_for</tt> or <tt>wait_until</tt>).</ins></li>
-</ul>
-<p>
-<i>26 Effects:</i>
-</p>
-<blockquote><pre>
-<del>wait_until(lock, chrono::monotonic_clock::now() + rel_time, std::move(pred))</del>
-</pre>
-<ul>
-<li><ins>
-Executes a loop:  Within the loop the function first evaluates <tt>pred()</tt>
-and exits the loop if the result of <tt>pred()</tt> is <tt>true</tt>.
-</ins></li>
-<li><ins>
-Atomically calls <tt>lock.unlock()</tt>
-and blocks on <tt>*this</tt>.
-</ins></li>
-<li><ins>
-When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock).
-</ins></li>
-<li><ins>
-The function will unblock when signaled by a call to <tt>notify_one()</tt>, a
-call to <tt>notify_all()</tt>, by the elapsed time <tt>rel_time</tt> passing (30.1.4
-[thread.req.timing]), or spuriously.
-</ins></li>
-<li><ins>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be called
-prior to exiting the function scope.
-</ins></li>
-<li><ins>
-The loop terminates when <tt>pred()</tt> returns <tt>true</tt> or when the time
-duration specified by <tt>rel_time</tt> has elapsed.
-</ins></li>
-</ul>
-</blockquote>
-
-<p>
-27 [<i>Note:</i> There is no blocking if <tt>pred()</tt> is initially <tt>true</tt>,
-even if the timeout has already expired. <i>-- end note</i>]
-</p>
-
-<p><ins>
-<i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-</ins></p>
-
-<p>
-28 <i>Returns:</i> <tt>pred()</tt>
-</p>
-
-<p>
-29 [<i>Note:</i> The returned value indicates whether the predicate evaluates to
-<tt>true</tt> regardless of whether the timeout was triggered. <i>-- end note</i>]
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>std::system_error</tt> when the effects or postcondition cannot be achieved.
-</ins></p>
-
-<p><ins>
-<i>Error conditions:</i>
-</ins></p>
-
-<ul>
-<li><ins>
-<tt>operation_not_permitted</tt> -- if the thread does not own the lock.
-</ins></li>
-<li><ins>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</ins></li>
-</ul>
-
-</blockquote>
-</blockquote>
-
-<p>
-Change 30.5.2 [thread.condition.condvarany], p18-19:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Lock, class Rep, class Period&gt; 
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre>
-<blockquote>
-<p>
-18 <i>Effects:</i>
-</p>
-<blockquote><pre>
-<del>wait_until(lock, chrono::monotonic_clock::now() + rel_time)</del>
-</pre></blockquote>
-
-<ul>
-<li><ins>
-Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</ins></li>
-
-<li><ins>
-When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock) and returns.
-</ins></li>
-
-<li><ins>
-The function will unblock when signaled by a call to <tt>notify_one()</tt>, a call to
-<tt>notify_all()</tt>, by
-the elapsed time <tt>rel_time</tt> passing (30.2.4 [thread.req.timing]),
-or spuriously.
-</ins></li>
-
-<li><ins>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be called
-prior to exiting the function scope.
-</ins></li>
-</ul>
-
-<p><ins>
-<i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-</ins></p>
-
-<p>
-19 <i>Returns:</i> <tt>false</tt> if the call is returning because the time duration
-specified by <tt>rel_time</tt> has elapsed, otherwise <tt>true</tt>.
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>std::system_error</tt> when the returned value, effects,
-or postcondition cannot be achieved.
-</ins></p>
-
-<p><ins>
-<i>Error conditions:</i>
-</ins></p>
-
-<ul>
-<li><ins>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</ins></li>
-</ul>
-</blockquote>
-</blockquote>
-
-<p>
-Change 30.5.2 [thread.condition.condvarany], p23-p26:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Lock, class Rep, class Period, class Predicate&gt; 
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, Predicate pred);
-</pre>
-<blockquote>
-<p><ins>
-<i>Precondition:</i> <tt>lock</tt> is locked by the calling thread, and either
-</ins></p>
-<ul>
-<li><ins>no other thread is waiting on this <tt>condition_variable</tt> object or</ins></li>
-<li><ins><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt>
-arguments supplied by all concurrently waiting threads (via <tt>wait</tt>,
-<tt>wait_for</tt> or <tt>wait_until</tt>).</ins></li>
-</ul>
-<p>
-<i>23 Effects:</i>
-</p>
-<blockquote><pre>
-<del>wait_until(lock, chrono::monotonic_clock::now() + rel_time, std::move(pred))</del>
-</pre>
-<ul>
-<li><ins>
-Executes a loop:  Within the loop the function first evaluates <tt>pred()</tt>
-and exits the loop if the result of <tt>pred()</tt> is <tt>true</tt>.
-</ins></li>
-<li><ins>
-Atomically calls <tt>lock.unlock()</tt>
-and blocks on <tt>*this</tt>.
-</ins></li>
-<li><ins>
-When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock).
-</ins></li>
-<li><ins>
-The function will unblock when signaled by a call to <tt>notify_one()</tt>, a
-call to <tt>notify_all()</tt>, by the elapsed time <tt>rel_time</tt> passing (30.1.4
-[thread.req.timing]), or spuriously.
-</ins></li>
-<li><ins>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be called
-prior to exiting the function scope.
-</ins></li>
-<li><ins>
-The loop terminates when <tt>pred()</tt> returns <tt>true</tt> or when the time
-duration specified by <tt>rel_time</tt> has elapsed.
-</ins></li>
-</ul>
-</blockquote>
-
-<p>
-24 [<i>Note:</i> There is no blocking if <tt>pred()</tt> is initially <tt>true</tt>,
-even if the timeout has already expired. <i>-- end note</i>]
-</p>
-
-<p><ins>
-<i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-</ins></p>
-
-<p>
-25 <i>Returns:</i> <tt>pred()</tt>
-</p>
-
-<p>
-26 [<i>Note:</i> The returned value indicates whether the predicate evaluates to
-<tt>true</tt> regardless of whether the timeout was triggered. <i>-- end note</i>]
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>std::system_error</tt> when the effects or postcondition cannot be achieved.
-</ins></p>
-
-<p><ins>
-<i>Error conditions:</i>
-</ins></p>
-
-<ul>
-<li><ins>
-<tt>operation_not_permitted</tt> -- if the thread does not own the lock.
-</ins></li>
-<li><ins>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</ins></li>
-</ul>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="860"></a>860. Floating-Point State</h3>
-<p><b>Section:</b> 26 [numerics] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-06-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numerics">issues</a> in [numerics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are a number of functions that affect the floating point state.
-These function need to be thread-safe, but I'm unsure of the right
-approach in the standard, as we inherit them from C.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Nick: I think we already say that these functions do not introduce data
-races; see 17.6.5.6/20
-</p>
-<p>
-Pete: there's more to it than not introducing data races; are these
-states maintained per thread?
-</p>
-<p>
-Howard: 21.5/14 says that strtok and strerror are not required to avoid
-data races, and 20.9/2 says the same about asctime, gmtime, ctime, and
-gmtime.
-</p>
-<p>
-Nick: POSIX has a list of not-safe functions. All other functions are
-implicitly thread safe.
-</p>
-<p>
-Lawrence is to form a group between meetings to attack this issue. Nick
-and Tom volunteered to work with Lawrence.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Hans: Sane oses seem ok. Sensible thing is implementable and makes sense.
-</p>
-<p>
-Nick: Default wording seems to cover this? Hole in POSIX, these
-functions need to be added to list of thread-unsafe functions.
-</p>
-<p>
-Lawrence: Not sufficient, not "thread-safe" per our definition, but
-think of state as a thread-local variable. Need something like "these
-functions only affect state in the current thread."
-</p>
-<p>
-Hans: Suggest the following wording: "The floating point environment is
-maintained per-thread."
-</p>
-<p>
-Walter: Any other examples of state being thread safe that are not
-already covered elsewhere?
-</p>
-<p>
-Have thread unsafe functions paper which needs to be updated. Should
-just fold in 26.3 [cfenv] functions.
-</p>
-<p>
-Recommend Open. Lawrence instead suggests leaving it open until we have
-suitable wording that may or may not include the thread local
-commentary.
-</p>
-</blockquote>
-
-<p><i>[
-2009-09-23 Hans provided wording.
-]</i></p>
-
-
-<blockquote><p>
-If I understand the history correctly, Nick, as the Posix liaison,
-should probably get a veto on this, since I think it came from Posix (?)
-via WG14 and should probably really be addressed there (?).  But I think
-we are basically in agreement that there is no other sane way to do
-this, and hence we don't have to worry too much about stepping on toes. 
-As far as I can tell, this same issue also exists in the latest Posix
-standard (?).
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add at the end of 26.3.1 [cfenv.syn]:
-</p>
-
-<blockquote>
-<p>
-2 The header defines all functions, types, and macros the same as C99 7.6.
-</p>
-
-<p><ins>
-A separate floating point environment shall be maintained for each
-thread.  Each function accesses the environment corresponding to its
-calling thread.
-</ins></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="861"></a>861. Incomplete specification of <tt>EqualityComparable</tt> for <tt>std::forward_list</tt></h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-06-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 89, Container requirements, defines <tt>operator==</tt> in terms of the container
-member function <tt>size()</tt> and the algorithm <tt>std::equal</tt>:
-</p>
-
-<blockquote><p>
-<tt>==</tt> is an equivalence relation. <tt>a.size() == b.size() &amp;&amp;
-equal(a.begin(), a.end(), b.begin()</tt>
-</p></blockquote>
-
-<p>
-The new container <tt>forward_list</tt> does not provide a <tt>size</tt> member function
-by design but does provide <tt>operator==</tt> and <tt>operator!=</tt> without specifying it's semantic.
-</p>
-<p>
-Other parts of the (sequence) container requirements do also depend on
-<tt>size()</tt>, e.g. <tt>empty()</tt>
-or <tt>clear()</tt>, but this issue explicitly attempts to solve the missing
-<tt>EqualityComparable</tt> specification,
-because of the special design choices of <tt>forward_list</tt>.
-</p>
-<p>
-I propose to apply one of the following resolutions, which are described as:
-</p>
-
-<ol style="list-style-type:upper-alpha">
-<li>
-Provide a definition, which is optimal for this special container without
-previous size test. This choice prevents two <tt>O(N)</tt> calls of <tt>std::distance()</tt>
-with the corresponding container ranges and instead uses a special
-<tt>equals</tt> implementation which takes two container ranges instead of 1 1/2.
-</li>
-<li>
-The simple fix where the usual test is adapted such that <tt>size()</tt> is replaced
-by <tt>distance</tt> with corresponding performance disadvantages.
-</li>
-</ol>
-<p>
-Both proposal choices are discussed, the preferred choice of the author is
-to apply (A).
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-There's an Option C: change the requirements table to use distance().
-</p>
-<p>
-LWG found Option C acceptable.
-</p>
-<p>
-Martin will draft the wording for Option C.
-</p>
-</blockquote>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Martin provided wording for Option C.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Other operational semantics (see, for example, Tables 82 and 83) are
-written in terms of a container's size() member. Daniel to update
-proposed resolution C.
-</p>
-<p><i>[
-Howard: Commented out options A and B.
-]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-07-26 Daniel updated proposed resolution C.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark NAD Editorial. Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2986.pdf">N2986</a>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Reopened.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2986.pdf">N2986</a>
-was rejected in full committee on procedural grounds.
-</p></blockquote>
-
-<p><i>[
-2010-01-30 Howard updated Table numbers.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p>
-Option (C):
-</p>
-<blockquote>
-
-<ol>
-<li>
-<p>
-In 23.2.1 [container.requirements.general] change Table 90 -- Container requirements as indicated:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-Change the text in the Assertion/note column in the row for "<tt>X u</tt>;"
-as follows:
-</p>
-
-<blockquote><p>
-post: <tt>u.<del>size() == 0</del><ins>empty() == true</ins></tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Assertion/note column in the row for "<tt>X();</tt>"
-as follows:
-</p>
-
-<blockquote><p>
-<tt>X().<del>size() == 0</del><ins>empty() == true</ins></tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Operational Semantics column in the row for
-"<tt>a == b</tt>" as follows:
-</p>
-<blockquote><p>
-<tt>==</tt> is an equivalence relation.
-<tt><del>a.size()</del><ins>distance(a.begin(), a.end())</ins> ==
-   <del>b.size()</del><ins>distance(b.begin(), b.end())</ins> &amp;&amp;
-equal(a.begin(), a.end(), b.begin())</tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Add text in the Ass./Note/pre-/post-condition column in the row for
-"<tt>a == b</tt>" as follows:
-</p>
-<blockquote><p><ins>
-<i>Requires:</i> <tt>T</tt> is <tt>EqualityComparable</tt>
-</ins></p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Operational Semantics column in the row for
-"<tt>a.size()</tt>" as follows:
-</p>
-
-<blockquote><p>
-<tt><del>a.end() - a.begin()</del><ins>distance(a.begin(), a.end())</ins></tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Operational Semantics column in the row for
-"<tt>a.max_size()</tt>" as follows:
-</p>
-
-<blockquote><p>
-<tt><del>size()</del><ins>distance(begin(), end())</ins></tt> of the largest
-possible container
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Operational Semantics column in the row for
-"<tt>a.empty()</tt>" as follows:
-</p>
-
-<blockquote><p>
-<tt><del>a.size() == 0</del><ins>a.begin() == a.end()</ins></tt>
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-In 23.2.1 [container.requirements.general] change Table 93 &mdash; Allocator-aware container requirements as indicated:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for "<tt>X() &#47;
-X u;</tt>" as follows:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <tt>A</tt> is <tt>DefaultConstructible</tt> post: <tt><del>u.size() ==
-0</del><ins>u.empty() == true</ins></tt>, <tt>get_allocator() == A()</tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for "<tt>X(m) &#47;
-X u(m);</tt>" as follows:
-</p>
-
-<blockquote><p>
-post: <tt><del>u.size() == 0</del><ins>u.empty() == true</ins>,
-get_allocator() == m</tt>
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-In 23.2.3 [sequence.reqmts] change Table 94 &mdash; Sequence container requirements as indicated:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for "<tt>X(n,
-t) &#47; X a(n, t)</tt>" as follows:
-</p>
-
-<blockquote><p>
-post: <tt><del>size()</del><ins>distance(begin(), end())</ins> == n [..]</tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for "<tt>X(i,
-j) &#47; X a(i, j)</tt>" as follows:
-</p>
-
-<blockquote><p>
-[..] post: <del><tt>size() ==</tt> distance between <tt>i</tt> and
-<tt>j</tt></del><ins><tt>distance(begin(), end()) == distance(i, j)</tt></ins> [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for
-"<tt>a.clear()</tt>" as follows:
-</p>
-<blockquote><p>
-<tt><ins>a.</ins>erase(<ins>a.</ins>begin(), <ins>a.</ins>end())</tt> post:
-<tt><del>size() == 0</del><ins>a.empty() == true</ins></tt>
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-In 23.2.4 [associative.reqmts] change Table 96 &mdash; Associative container requirements as indicated:
-</p>
-
-<p><i>[
-Not every occurrence of <tt>size()</tt> was replaced, because all current
-associative containers
-have a <tt>size</tt>. The following changes ensure consistency regarding the
-semantics of "<tt>erase</tt>"
-for all tables and adds some missing objects
-]</i></p>
-
-
-<ol style="list-style-type:lower-alpha">
-
-<li>
-<p>
-Change the text in the Complexity column in the row for <tt>X(i,j,c)&#47;Xa(i,j,c);</tt> 
-as follows:
-</p>
-
-<blockquote><p>
-<tt>N</tt> log <tt>N</tt> in general (<tt>N</tt> <ins><tt> == distance(i,
-j)</tt></ins><del>is the distance from <tt>i</tt> to <tt>j</tt></del>); ...
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-Change the text in the Complexity column in the row for
-"<tt>a.insert(i, j)</tt>" as follows:
-</p>
-<blockquote><p>
-<tt>N log(<ins>a.</ins>size() + N)</tt> <del>(<tt>N</tt> is the distance from <tt>i</tt> to
-<tt>j</tt>)</del><ins> where <tt>N == distance(i, j)</tt></ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Complexity column in the row for
-"<tt>a.erase(k)</tt>" as follows:
-</p>
-<blockquote><p>
-<tt>log(<ins>a.</ins>size()) + <ins>a.</ins>count(k)</tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Complexity column in the row for
-"<tt>a.erase(q1, q2)</tt>" as follows:
-</p>
-
-<blockquote><p>
-<tt>log(<ins>a.</ins>size()) + N</tt> where <tt>N</tt> <del>is the distance from <tt>q1</tt>
-to <tt>q2</tt></del>
-   <ins><tt>== distance(q1, q2)</tt></ins>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for
-"<tt>a.clear()</tt>" as follows:
-</p>
-
-<blockquote><p>
-<tt><ins>a.</ins>erase(a.begin(),a.end())</tt> post: <tt><del>size() ==
-0</del><ins>a.empty() == true</ins></tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Complexity column in the row for "<tt>a.clear()</tt>"
-as follows:
-</p>
-
-<blockquote><p>
-linear in <tt><ins>a.</ins>size()</tt>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change the text in the Complexity column in the row for
-"<tt>a.count(k)</tt>" as follows:
-</p>
-
-<blockquote><p>
-<tt>log(<ins>a.</ins>size()) + <ins>a.</ins>count(k)</tt>
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-In 23.2.5 [unord.req] change Table 98 &mdash; Unordered associative container requirements as indicated:
-</p>
-<p><i>[
-The same rational as for Table 96 applies here
-]</i></p>
-
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-Change the text in the Assertion&#47;note column in the row for
-"<tt>a.clear()</tt>" as follows:
-</p>
-
-<blockquote><p>
-[..] Post: <tt>a.<del>size() == 0</del><ins>empty() == true</ins></tt>
-</p></blockquote>
-</li>
-</ol>
-</li>
-</ol>
-
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="865"></a>865. More algorithms that throw away information</h3>
-<p><b>Section:</b> 25.3.6 [alg.fill], 25.3.7 [alg.generate] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-07-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In regard to library defect <a href="lwg-defects.html#488">488</a> I found some more algorithms which
-unnecessarily throw away information. These are typically algorithms,
-which sequentially write into an <tt>OutputIterator</tt>, but do not return the
-final value of this output iterator. These cases are:
-</p>
-
-<ol>
-<li>
-<pre>template&lt;class OutputIterator, class Size, class T&gt;
-void fill_n(OutputIterator first, Size n, const T&amp; value);</pre></li>
-
-<li>
-<pre>template&lt;class OutputIterator, class Size, class Generator&gt;
-void generate_n(OutputIterator first, Size n, Generator gen);</pre></li>
-</ol>
-<p>
-In both cases the minimum requirements on the iterator are
-<tt>OutputIterator</tt>, which means according to the requirements of
-24.2.4 [output.iterators] p. 2 that only single-pass iterations are guaranteed.
-So, if users of <tt>fill_n</tt> and <tt>generate_n</tt> have <em>only</em> an <tt>OutputIterator</tt>
-available, they have no chance to continue pushing further values
-into it, which seems to be a severe limitation to me.
-</p>
-
-<p><i>[
-Post Summit Daniel "conceptualized" the wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair likes the idea, but has concerns about the specific wording
-about the returns clauses.
-</p>
-<p>
-Alan notes this is a feature request.
-</p>
-<p>
-Bill notes we have made similar changes to other algorithms.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-We have a consensus for moving forward on this issue, but Daniel needs
-to deconceptify it.
-</p></blockquote>
-
-<p><i>[
-2009-07-25 Daniel provided non-concepts wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-Replace the current declaration of <tt>fill_n</tt> in 25 [algorithms]/2, header
-<tt>&lt;algorithm&gt;</tt> synopsis and in 25.3.6 [alg.fill] by
-</p>
-
-<blockquote><pre>
-template&lt;class OutputIterator, class Size, class T&gt;
-  <del>void</del><ins>OutputIterator</ins> fill_n(OutputIterator first, Size n, const T&amp; value);
-</pre></blockquote>
-
-<p>
-Just after the effects clause add a new returns clause saying:
-</p>
-
-<blockquote><p>
-<ins><i>Returns:</i> For <tt>fill_n</tt> and positive <tt>n</tt>, returns <tt>first + n</tt>. Otherwise
-returns <tt>first</tt> for <tt>fill_n</tt>.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Replace the current declaration of <tt>generate_n</tt> in 25 [algorithms]/2,
-header <tt>&lt;algorithm&gt;</tt> synopsis and in 25.3.7 [alg.generate] by
-</p>
-
-<blockquote><pre>
-template&lt;class OutputIterator, class Size, class Generator&gt;
-  <del>void</del><ins>OutputIterator</ins> generate_n(OutputIterator first, Size n, Generator gen);
-</pre></blockquote>
-
-<p>
-Just after the effects clause add a new returns clause saying:
-</p>
-
-<blockquote><p>
-<ins>For <tt>generate_n</tt> and positive <tt>n</tt>, returns <tt>first + n</tt>. Otherwise
-returns <tt>first</tt> for <tt>generate_n</tt>.</ins>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="866"></a>866. Qualification of placement new-expressions</h3>
-<p><b>Section:</b> 20.7.12 [specialized.algorithms], 20.8.2.2.6 [util.smartptr.shared.create] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#specialized.algorithms">issues</a> in [specialized.algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG issue <a href="lwg-defects.html#402">402</a> replaced "<tt>new</tt>" with "<tt>::new</tt>" in the placement
-new-expression in 20.7.9.1 [allocator.members]. I believe the rationale
-given in <a href="lwg-defects.html#402">402</a> applies also to the following other contexts:
-</p>
-<ul>
-<li>
-<p>
-in 20.7.12 [specialized.algorithms], all four algorithms <tt>unitialized_copy</tt>,
-<tt>unitialized_copy_n</tt>, <tt>unitialized_fill</tt> and <tt>unitialized_fill_n</tt> use
-the unqualified placement new-expression in some variation of the form:
-</p>
-<blockquote><pre>
-new  (static_cast&lt;void*&gt;(&amp;*result)) typename  iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-</pre></blockquote>
-</li>
-<li>
-<p>
-in 20.8.2.2.6 [util.smartptr.shared.create] there is a reference to the unqualified placement new-expression:
-</p>
-<blockquote><pre>
-new  (pv)  T(std::forward&lt;Args&gt;(args)...),
-</pre></blockquote>
-</li>
-</ul>
-<p>
-I suggest to add qualification in all those places. As far as I know,
-these are all the remaining places in the whole library that explicitly
-use a placement new-expression. Should other uses come out, they should
-be qualified as well.
-</p>
-<p>
-As an aside, a qualified placement new-expression does not need
-additional requirements to be compiled in a constrained context. By
-adding qualification, the <tt>HasPlacementNew</tt> concept introduced recently in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2677.pdf">N2677 (Foundational Concepts)</a>
-would no longer be needed by library and
-should therefore be removed.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Detlef: If we move this to Ready, it's likely that we'll forget about
-the side comment about the <tt>HasPlacementNew</tt> concept.
-</p></blockquote>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Daniel:  <tt>HasPlacementNew</tt> has been removed from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2774.pdf">N2774 (Foundational Concepts)</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace "<tt>new</tt>" with "<tt>::new</tt>" in:
-</p>
-<ul>
-<li>
-20.7.12.2 [uninitialized.copy], paragraphs 1 and 3
-</li>
-<li>
-20.7.12.3 [uninitialized.fill]  paragraph 1
-</li>
-<li>
-20.7.12.4 [uninitialized.fill.n] paragraph 1
-</li>
-<li>
-20.8.2.2.6 [util.smartptr.shared.create] once in paragraph 1 and twice in paragraph 2.
-</li>
-</ul>
-
-
-
-
-
-
-<hr>
-<h3><a name="868"></a>868. Default construction and value-initialization</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-07-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The term "default constructed" is often used in wording that predates
-the introduction of the concept of value-initialization. In a few such
-places the concept of value-initialization is more correct than the
-current wording (for example when the type involved can be a built-in)
-so a replacement is in order. Two of such places are already covered by
-issue <a href="lwg-closed.html#867">867</a>. This issue deliberately addresses the hopefully
-non-controversial changes in the attempt of being approved more quickly.
-A few other occurrences (for example in <tt>std::tuple</tt>,
-<tt>std::reverse_iterator</tt> and <tt>std::move_iterator</tt>) are left to separate
-issues. For <tt>std::reverse_iterator</tt>, see also issue <a href="lwg-closed.html#408">408</a>. This issue is
-related with issue <a href="lwg-defects.html#724">724</a>.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-The list provided in the proposed resolution is not complete. James
-Dennett will review the library and provide a complete list and will
-double-check the vocabulary.
-</p>
-<p>
-This issue relates to Issue <a href="lwg-defects.html#886">886</a> tuple construction
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed resolution is incomplete.
-</p>
-<p>
-Move to Tentatively NAD Future. Howard will contact Ganesh for wording.
-If wording is forthcoming, Howard will move it back to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-18 Ganesh updated the proposed wording.
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard:  Moved back to Review.  Note that 17.6.3.1 [utility.arg.requirements]
-refers to a section that is not in the current working paper, but does refer to
-a section that we expect to reappear after the de-concepts merge.  This was a
-point of confusion we did not recognize when we reviewed this issue in Frankfurt.
-</p>
-<p>
-Howard:  Ganesh also includes a survey of places in the WP surveyed for changes
-of this nature and purposefully <em>not</em> treated:
-</p>
-
-<blockquote>
-<p>
-Places where changes are <span style="text-decoration:underline">not</span> being
-proposed
-</p>
-<p>
-In the following paragraphs, we are not proposing changes because
-it's not clear whether we actually prefer value-initialization over
-default-initialization (now partially covered by <a href="lwg-defects.html#1012">1012</a>):
-</p>
-<ul>
-    <li><p>20.8.1.2.1 [unique.ptr.single.ctor] para 3 e 7</p></li>
-    <li><p>24.5.1.3.1 [reverse.iter.cons] para 1</p></li>
-    <li><p>24.5.3.3.1 [move.iter.op.const] para 1</p></li>
-</ul>
-<p>In the following paragraphs, the expression "default
-constructed" need not be changed, because the relevant type does
-not depend on a template parameter and has a user-provided
-constructor:</p>
-<ul>
-    <li><p> [func.referenceclosure.invoke] para 12, type:
-    reference_closure</p></li>
-    <li><p>30.3.1.2 [thread.thread.constr] para 30, type: thread</p></li>
-    <li><p>30.3.1.5 [thread.thread.member] para 52, type: thread_id</p></li>
-    <li><p>30.3.2 [thread.thread.this], para 1, type: thread_id</p></li>
-</ul>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-08-18 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I have no objections against the currently suggested changes, but I
-also cross-checked
-with the list regarding intentionally excluded changes, and from this
-I miss the discussion
-of
-</p>
-
-<ol>
-<li>
-<p>
-21.4.1 [string.require] p. 2:
-</p>
-
-<blockquote><p>
-"[..] The <tt>Allocator</tt> object used shall be a copy of the <tt>Allocator></tt>
-object passed to the <tt>basic_string</tt> object's
-constructor or, if the constructor does not take an <tt>Allocator</tt>
-argument, a copy of a default-constructed
-<tt>Allocator</tt> object."
-</p></blockquote>
-</li>
-
-<li>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>,
-26.5.1.4 [rand.req.eng], Table 109, expression "<tt>T()</tt>":
-</p>
-<blockquote><p>
-Pre-&#47;post-condition: "Creates an engine with the same initial state as
-all other default-constructed engines of type <tt>X</tt>."
-</p></blockquote>
-
-<p>
-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.2.1.1 [istream.cons]/3, 
-27.7.3.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>),
-</p>
-<p><i>[
-Candidates for the "the expression "default constructed" need not be
-changed" list
-]</i></p>
-
-
-<p>
-I'm fine, if these would be added to the intentionally exclusion list,
-but mentioning them makes it
-easier for other potential reviewers to decide on the relevance or
-not-relevance of them for this issue.
-</p>
-</li>
-
-<li>
-<p>
-I suggest to remove the reference of  [func.referenceclosure.invoke]
-in the "it's not clear" list, because
-this component does no longer exist.
-</p>
-</li>
-
-<li>
-<p>
-I also suggest to add a short comment that all paragraphs in the
-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.3.2 [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.3.3 [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
-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 17.6.3.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).
-</p>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[
-2009-08-18 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I strongly believe the term "default constructed" should not appear in
-the library clauses unless we very clearly define a meaning for it, and
-I am not sure what that would be.
-</p>
-
-<p>
-In those cases where we do not want to replace "default constructed"
-with "vale initialized" we should be using "default initialized".  If we
-have a term that could mean either, we reduce portability of programs.
-</p>
-
-<p>
-I have not done an exhaustive review to clarify if that is a vendor
-freedom we have reason to support (e.g. value-init in debug,
-default-init in release) so I may yet be convinced that LWG has reason
-to define this new term of art, but generally C++ initialization is
-confusing enough without supporting further ill-defined terms.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to review in order to enable conflict resolution with <a href="lwg-defects.html#704">704</a>.
-</p></blockquote>
-
-<p><i>[
-2010-03-26 Daniel harmonized the wording with the upcoming FCD.
-]</i></p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.3.1 [utility.arg.requirements] para 2:
-</p>
-
-<blockquote><p>
-2 In general, a default constructor is
-not required. Certain container class member function signatures
-specify <del>the default constructor</del><ins><tt>T()</tt></ins>
-as a default argument. <tt>T()</tt> shall be a well-defined expression (8.5)
-if one of those signatures is called using the default argument
-(8.3.6).
-</p></blockquote>
-
-<p>
-Change 23.3.3.2 [deque.cons] para 3:
-</p>
-
-<blockquote><p>
-3 <i>Effects:</i> Constructs a deque with <tt>n</tt>
-<del>default constructed</del><ins>value-initialized</ins>
-elements. 
-</p></blockquote>
-
-<p>
-Change 23.3.3.3 [deque.capacity] para 1:
-</p>
-
-<blockquote><p>
-1 <i>Effects:</i> If <tt>sz &lt; size()</tt>, equivalent
-to <tt>erase(begin() + sz, end());</tt>. If <tt>size() &lt; sz</tt>, 
-appends <tt>sz - size()</tt> <del>default constructed</del><ins>value-initialized</ins>
-elements to the sequence.
-</p></blockquote>
-
-<p>
-Change 23.3.4.2 [forwardlist.cons] para 3:
-</p>
-
-<blockquote><p>
-3 <i>Effects:</i> Constructs a <tt>forward_list</tt> object with <tt>n</tt> 
-<del>default constructed</del><ins>value-initialized</ins> elements.
-</p></blockquote>
-
-<p>
-Change 23.3.4.5 [forwardlist.modifiers] para 22:
-</p>
-
-<blockquote><p>
-22 <i>Effects:</i> [...] For the first signature
-the inserted elements are <del>default
-constructed</del><ins>value-initialized</ins>,
-and for the second signature they are copies of <tt>c</tt>.
-</p></blockquote>
-
-<p>
-Change 23.3.5.2 [list.cons] para 3:
-</p>
-
-<blockquote><p>
-3 <i>Effects:</i> Constructs a <tt>list</tt> with <tt>n</tt> <del>default
-constructed</del><ins>value-initialized</ins>
-elements. 
-</p></blockquote>
-
-<p>
-Change 23.3.5.3 [list.capacity] para 1:
-</p>
-
-<blockquote><p>
-1 <i>Effects:</i> If <tt>sz &lt; size()</tt>, equivalent
-to <tt>list&lt;T&gt;::iterator it = begin(); advance(it, sz); erase(it,
-end());</tt>. If <tt>size() &lt; sz</tt>, <tt>appends sz - size()</tt> 
-<del>default constructed</del><ins>value-initialized</ins> elements to 
-the sequence.
-</p></blockquote>
-
-<p>
-Change 23.3.6.2 [vector.cons] para 3:
-</p>
-
-<blockquote><p>
-3 <i>Effects:</i> Constructs a <tt>vector</tt> with <tt>n</tt>
-<del>default constructed</del><ins>value-initialized</ins>
-elements. 
-</p></blockquote>
-
-<p>
-Change 23.3.6.3 [vector.capacity] para 9:
-</p>
-
-<blockquote><p>
-9 <i>Effects:</i> If <tt>sz &lt; size()</tt>, equivalent
-to <tt>erase(begin() + sz, end());</tt>. If <tt>size() &lt; sz</tt>, appends 
-<tt>sz - size()</tt> <del>default constructed</del><ins>value-initialized</ins>
-elements to the sequence.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="869"></a>869. Bucket (local) iterators and iterating past end</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Sohail Somani <b>Opened:</b> 2008-07-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Is there any language in the current draft specifying the behaviour of the following snippet?
-</p>
-
-<blockquote><pre>
-unordered_set&lt;int&gt; s;
-unordered_set&lt;int&gt;::local_iterator it = s.end(0);
-
-// Iterate past end - the unspecified part
-it++;
-</pre></blockquote>
-
-<p>
-I don't think there is anything about <tt>s.end(n)</tt> being considered an
-iterator for the past-the-end value though (I think) it should be.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-We believe that this is not a substantive change, but the proposed
-change to the wording is clearer than what we have now.
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Table 97 "Unordered associative container requirements" in 23.2.5 [unord.req]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 97: Unordered associative container requirements</caption>
-<tr>
-<th>expression</th><th>return type</th><th>assertion&#47;note pre&#47;post-condition</th><th>complexity</th>
-</tr>
-<tr>
-<td><tt>b.begin(n)</tt></td>
-<td><tt>local_iterator</tt><br/><tt>const_local_iterator</tt> for const <tt>b</tt>.</td>
-<td>Pre: n shall be in the range [0,b.bucket_count()). <del>Note: [b.begin(n), b.end(n)) is a
-valid range containing all of the elements in the n<sup>th</sup> bucket.</del>
-<ins><tt>b.begin(n)</tt> returns an iterator referring to the first element in the bucket.
-If the bucket is empty, then <tt>b.begin(n) == b.end(n)</tt>.</ins></td>
-<td>Constant</td>
-</tr>
-<tr>
-<td><tt>b.end(n)</tt></td>
-<td><tt>local_iterator</tt><br/><tt>const_local_iterator</tt> for const <tt>b</tt>.</td>
-<td>Pre: n shall be in the range <tt>[0, b.bucket_count())</tt>.
-<ins><tt>b.end(n)</tt> returns an iterator which is the past-the-end value for the bucket.</ins></td>
-<td>Constant</td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="870"></a>870. Do unordered containers not support function pointers for predicate&#47;hasher?</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-08-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Good ol' associative containers allow both function pointers and
-function objects as feasible comparators, as described in 
-23.2.4 [associative.reqmts]&#47;2:
-</p>
-
-<blockquote><p>
-Each associative container is parameterized on <tt>Key</tt> and an ordering
-relation <tt>Compare</tt> that induces a strict weak ordering (25.3) on 
-elements of Key. [..]. The object of type <tt>Compare</tt> is called the 
-comparison object of a container. This comparison object may be a pointer to
-function or an object of a type with an appropriate function call operator.[..]
-</p></blockquote>
-
-<p>
-The corresponding wording for unordered containers is not so clear,
-but I read it to disallow function pointers for the hasher and I miss 
-a clear statement for the equality predicate, see
-23.2.5 [unord.req]&#47;3+4+5:
-</p>
-
-<blockquote>
-<p>
-Each unordered associative container is parameterized by <tt>Key</tt>, by a
-function object <tt>Hash</tt> that
-acts as a hash function for values of type <tt>Key</tt>, and by a binary
-predicate <tt>Pred</tt> that induces an
-equivalence relation on values of type <tt>Key</tt>.[..]
-</p>
-<p>
-A hash function is a function object that takes a single argument of
-type <tt>Key</tt> and returns a value of type <tt>std::size_t</tt>.
-</p>
-<p>
-Two values <tt>k1</tt> and <tt>k2</tt> of type <tt>Key</tt> are considered 
-equal if the container's equality function object returns <tt>true</tt> 
-when passed those values.[..]
-</p>
-</blockquote>
-
-<p>
-and table 97 says in the column "assertion...post-condition" for the
-expression <tt>X::hasher</tt>:
-</p>
-
-<blockquote><p>
-<tt>Hash</tt> shall be a unary function object type such that the expression
-<tt>hf(k)</tt> has type <tt>std::size_t</tt>.
-</p></blockquote>
-
-<p>
-Note that 20.9 [function.objects]&#47;1 defines as "Function objects are
-objects with an <tt>operator()</tt> defined.[..]"
-</p>
-<p>
-Does this restriction exist by design or is it an oversight? If an
-oversight, I suggest that to apply
-the following
-</p>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Ask Daniel to provide proposed wording that: makes it explicit that
-function pointers are function objects at the beginning of 
-20.9 [function.objects]; fixes the "requirements" for typedefs in
-20.9.4 [refwrap] to instead state that the function objects
-defined in that clause have these typedefs, but not that these typedefs
-are requirements on function objects; remove the wording that explicitly
-calls out that associative container comparators may be function
-pointers.
-</p></blockquote>
-
-<p><i>[
-2009-12-19 Daniel updates wording and rationale.
-]</i></p>
-
-
-<p><i>[
-2010-02-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-
-<p>
-The below provided wording also affects some part of the library which is
-involved with <em>callable types</em> (20.9.1 [func.def]&#47;3). Reason for
-this is that <em>callable objects</em> do have a lot in common with <em>function
-objects</em>. A simple formula seems to be:
-</p>
-
-<blockquote><p>
-callable objects = function objects + pointers to member
-</p></blockquote>
-
-<p>
-The latter group is excluded from function objects because of the
-expression-based usage of <em>function objects</em> in the algorithm clause,
-which is incompatible with the notation to dereference pointers to member
-without a concept map available in the language.
-</p>
-
-<p>
-This analysis showed some currently existing normative definition differences
-between the above subset of callable objects and function objects which seem to
-be unintended: Backed by the Santa Cruz outcome function objects should include
-both function pointers and "object[s] with an operator() defined". This clearly
-excludes class types with a conversion function to a function pointer or all
-similar conversion function situations described in 13.3 [over.match]&#47;2
-b. 2. In contrast to this, the wording for callable types seems to be less
-constrained (20.9.1 [func.def]/3):
-</p>
-
-<blockquote><p>
-A callable type is a [..] class type whose objects can appear immediately to the
-left of a function call operator.
-</p></blockquote>
-
-<p>
-The rationale given in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1673.html#fn2">N1673</a>
-and a recent private communication with Peter Dimov revealed that the intention
-of this wording was to cover the above mentioned class types with conversion
-functions as well. To me the current wording of callable types can be read
-either way and I suggest to make the intention more explicit by replacing
-</p>
-
-<blockquote><p>
-[..] class type whose objects can appear immediately to the left of a function
-call operator
-</p></blockquote>
-<p>
-by
-</p>
-<blockquote><p>
-[..] class type whose objects can appear as the leftmost subexpression of a
-function call expression 5.2.2 [expr.call].
-</p></blockquote>
-
-<p>
-and to use the same definition for the class type part of <em>function
-objects</em>, because there is no reason to exclude class types with a
-conversion function to e.g. pointer to function from being used in algorithms.
-</p>
-
-<p>
-Now this last term "function objects" itself brings us to a third unsatisfactory
-state: The term is used both for objects (e.g. "Function objects are
-objects[..]" in 20.9 [function.objects]&#47;1) and for types (e.g. "Each
-unordered associative container is parameterized [..] by a function object Hash
-that acts as a hash function [..]" in 23.2.5 [unord.req]&#47;3). This
-impreciseness should be fixed and I suggest to introduce the term <em>function
-object type</em> as the counter part to <em>callable type</em>. This word seems
-to be a quite natural choice, because the library already uses it here and there
-(e.g. "Hash shall be a unary function object type such that the expression
-<tt>hf(k)</tt> has type <tt>std::size_t</tt>." in Table 98, "<tt>X::hasher</tt>"
-or "Requires: <tt>T</tt> shall be a function object type [..]" in 
-20.9.12.2.5 [func.wrap.func.targ]&#47;3).
-</p>
-
-<p>
-Finally I would like to add that part of the issue 870 discussion related to the
-requirements for typedefs in 20.9.4 [refwrap] during the Santa Cruz
-meeting is now handled by the new issue <a href="lwg-defects.html#1290">1290</a>.
-</p>
-
-<p>
-Obsolete rationale:
-</p>
-
-<blockquote>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-This is fixed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2776.pdf">N2776</a>.
-</p></blockquote>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-
-<li>
-<p>
-Change 20.9 [function.objects]&#47;1 as indicated:
-</p>
-
-<blockquote>
-<p>
-1 <del>Function objects are objects with an <tt>operator()</tt>
-defined.</del> <ins>An object type (3.9 [basic.types]) that can be the
-type of the <em>postfix-expression</em> in a function call (5.2.2 [expr.call], 
-13.3.1.1 [over.match.call]) is called a <em>function
-object type</em><sup>*</sup>. A <em>function object</em> is an object of a
-<em>function object type</em>.</ins> In the places where one would expect to
-pass a pointer to a function to an algorithmic template (Clause 25 [algorithms]), 
-the interface is specified to accept <del>an object with
-an <tt>operator()</tt> defined</del><ins>a function object</ins>. This not only
-makes algorithmic templates work with pointers to functions, but also enables
-them to work with arbitrary function objects.
-</p>
-<blockquote><p><ins>
-* Such a type is either a function pointer or a class type which often has a
-member <tt>operator()</tt>, but in some cases it can omit that member and
-provide a conversion to a pointer to function.
-</ins></p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.1 [func.def]&#47;3 as indicated: <i>[The intent is to make the
-commonality of callable types and function object
-types more explicit and to get rid of wording redundancies]</i>
-</p>
-
-<blockquote><p>
-3 A <i>callable type</i> is <del>a pointer to function,</del> a pointer to
-member <del>function, a pointer to member data,</del> or a <del>class type whose
-objects can appear immediately to the left of a function call operator</del>
-<ins><em>function object type</em> (20.9 [function.objects])</ins>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change  [bind]&#47;1 as indicated:
-</p>
-
-<blockquote><p>
-1 The function template <tt>bind</tt> returns an object that binds a
-<del>function</del> <ins>callable</ins> object passed as an argument to
-additional arguments.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.10 [func.bind]&#47;1 as indicated:
-</p>
-
-<blockquote><p>
-1 This subclause describes a uniform mechanism for binding arguments of
-<del>function</del> <ins>callable</ins> objects.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.12 [func.wrap]&#47;1 as indicated:
-</p>
-
-<blockquote><p>
-1 This subclause describes a polymorphic wrapper class that encapsulates
-arbitrary <del>function</del> <ins>callable</ins> objects.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.12.2 [func.wrap.func]&#47;2 as indicated <i>[The reason for this
-change is that 20.9.12.2 [func.wrap.func]&#47;1 clearly says that all callable
-types may be wrapped by <tt>std::function</tt> and current implementations
-indeed do provide support for pointer to members as well. One further suggested
-improvement is to set the below definition of Callable in italics]</i>:
-</p>
-
-<blockquote><p>
-2 A <del>function</del><ins>callable</ins> object <tt>f</tt> of type <tt>F</tt>
-is <del>Callable</del> <ins><em>Callable</em></ins> for argument types
-<del><tt>T1, T2, ..., TN</tt> in</del> <tt>ArgTypes</tt> and <del>a</del> return
-type <tt>R</tt><del>,</del> if<del>, given lvalues <tt>t1, t2, ..., tN</tt> of
-types <tt>T1, T2, ..., TN</tt>, respectively,</del> <ins>the expression</ins>
-<tt><i>INVOKE</i>(f, <ins>declval&lt;ArgTypes&gt;()..., R</ins><del>t1, t2, ...,
-tN</del>)</tt><ins>, considered as an unevaluated operand (5 [expr]),</ins> 
-is well formed (20.7.2)<del> and, if <tt>R</tt> is not <tt>void</tt>, convertible 
-to <tt>R</tt></del>.
-</p></blockquote>
-</li>
-
-
-
-<li>
-<p>
-Change 20.9.12.2.1 [func.wrap.func.con]&#47;7 as indicated:
-</p>
-
-<blockquote><pre>
-function(const function&amp; f);
-template &lt;class A&gt; function(allocator_arg_t, const A&amp; a, const function&amp; f);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-7 <i>Throws:</i> shall not throw exceptions if <tt>f</tt>'s target is a function
-pointer or a <del>function</del> <ins>callable</ins> object passed via
-<tt>reference_wrapper</tt>. Otherwise, may throw <tt>bad_alloc</tt> or any
-exception thrown by the copy constructor of the stored <del>function</del>
-<ins>callable</ins> object. [<i>Note:</i> Implementations are encouraged to
-avoid the use of dynamically allocated memory for small <del>function</del>
-<ins>callable</ins> objects, e.g., where <tt>f</tt>'s target is an object
-holding only a pointer or reference to an object and a member function pointer.
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.12.2.1 [func.wrap.func.con]&#47;11 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function(F f);
-template &lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-11 [..] [<i>Note:</i> implementations are encouraged to avoid the use of dynamically
-allocated memory for small <del>function</del> <ins>callable</ins> objects, for
-example, where <tt>f</tt>'s target is an object holding only a pointer or
-reference to an object and a member function pointer. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.12.2.4 [func.wrap.func.inv]&#47;3 as indicated:
-</p>
-
-<blockquote><pre>
-R operator()(ArgTypes... args) const
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-3 <i>Throws:</i> <tt>bad_function_call</tt> if <tt>!*this</tt>; otherwise, any
-exception thrown by the wrapped <del>function</del> <ins>callable</ins> object.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.12.2.5 [func.wrap.func.targ]&#47;3 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;typename T&gt;       T* target();
-template&lt;typename T&gt; const T* target() const;
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-3 <i>Requires:</i> <tt>T</tt> shall be a <del>function object</del> type that is
-Callable (20.9.12.2 [func.wrap.func]) for parameter types <tt>ArgTypes</tt>
-and return type <tt>R</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.2.4 [associative.reqmts]&#47;2 as indicated: <i>[The suggested
-removal seems harmless, because 25.4 [alg.sorting]1 already clarifies
-that <tt>Compare</tt> is a function object type. Nevertheless it is recommended,
-because the explicit naming of "pointer to function" is misleading]</i>
-</p>
-
-<blockquote><p>
-2 Each associative container is parameterized on <tt>Key</tt> and an ordering
-relation <tt>Compare</tt> that induces a strict weak ordering (25.4 [alg.sorting]) 
-on elements of <tt>Key</tt>. In addition, <tt>map</tt> and <tt>multimap</tt> 
-associate an arbitrary type <tt>T</tt> with the <tt>Key</tt>. The object of type 
-<tt>Compare</tt> is called the comparison object of a container. <del>This 
-comparison object may be a pointer to function or an object of a type with an 
-appropriate function call operator.</del>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 23.2.5 [unord.req]&#47;3 as indicated:
-</p>
-
-<blockquote><p>
-3 Each unordered associative container is parameterized by <tt>Key</tt>, by a
-function object <ins>type</ins> <tt>Hash</tt> that acts as a hash function for
-values of type <tt>Key</tt>, and by a binary predicate <tt>Pred</tt> that
-induces an equivalence relation on values of type Key. [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 25.1 [algorithms.general]&#47;7 as indicated: <i>[The intent is to
-bring this part in sync with 20.9 [function.objects]]</i>
-</p>
-
-<blockquote><p>
-7 The <tt>Predicate</tt> parameter is used whenever an algorithm expects a
-function object <ins>(20.9 [function.objects])</ins> that when applied
-to the result of dereferencing the corresponding iterator returns a value
-testable as <tt>true</tt>. In other words, if an algorithm takes <tt>Predicate
-pred</tt> as its argument and <tt>first</tt> as its iterator argument, it should
-work correctly in the construct <tt>if (pred(*first)){...}</tt>. The function
-object <tt>pred</tt> shall not apply any nonconstant function through the
-dereferenced iterator. <del>This function object may be a pointer to function,
-or an object of a type with an appropriate function call operator.</del>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1.2 [unique.ptr.single]&#47;1 as indicated:
-</p>
-
-<blockquote><p>
-1 The default type for the template parameter <tt>D</tt> is
-<tt>default_delete</tt>. A client-supplied template argument <tt>D</tt> shall be
-a function <del>pointer or functor</del> <ins>object type</ins> for which, given
-a value <tt>d</tt> of type <tt>D</tt> and a pointer <tt>ptr</tt> of type
-<tt>T*</tt>, the expression <tt>d(ptr)</tt> is valid and has the effect of
-deallocating the pointer as appropriate for that deleter. <tt>D</tt> may also be
-an lvalue-reference to a deleter.
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="871"></a>871. Iota's requirements on <tt>T</tt> are too strong</h3>
-<p><b>Section:</b> 26.7.6 [numeric.iota] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-08-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to the recent WP
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2691.pdf">N2691</a>,
-26.7.6 [numeric.iota]/1, the requires clause
-of <tt>std::iota</tt> says:
-</p>
-
-<blockquote><p>
-<tt>T</tt> shall meet the requirements of <tt>CopyConstructible</tt> and <tt>Assignable</tt> types, and
-shall be convertible to <tt>ForwardIterator</tt>'s value type.[..]
-</p></blockquote>
-
-<p>
-Neither <tt>CopyConstructible</tt> nor <tt>Assignable</tt> is needed, instead <tt>MoveConstructible</tt>
-seems to be the correct choice. I guess the current wording resulted as an
-artifact from comparing it with similar numerical algorithms like <tt>accumulate</tt>.
-</p>
-
-<p>
-Note: If this function will be conceptualized, the here proposed
-<tt>MoveConstructible</tt> requirement can be removed, because this 
-is an implied requirement of function arguments, see
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2710.pdf">N2710</a>/[temp.req.impl]/3, last bullet.
-</p>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Issue pulled by author prior to review.
-</p></blockquote>
-
-<p><i>[
-2009-07-30 Daniel reopened:
-]</i></p>
-
-
-<blockquote><p>
-with the absence of concepts, this issue (closed) is valid again and I
-suggest to reopen it.
-I also revised by proposed resolution based on N2723 wording:
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Change 'convertible' to 'assignable', Move To Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the first sentence of 26.7.6 [numeric.iota]/1:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <tt>T</tt> shall <del>meet the requirements of <tt>CopyConstructible</tt> and
-<tt>Assignable</tt> types, and shall</del> be
-assignable to <tt>ForwardIterator</tt>'s value type. [..]
-</p></blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="872"></a>872. <tt>move_iterator::operator[]</tt> has wrong return type</h3>
-<p><b>Section:</b> 24.5.3.3.12 [move.iter.op.index] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2008-08-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>move_iterator</tt>'s <tt>operator[]</tt> is declared as:
-</p>
-
-<blockquote><pre>
-reference operator[](difference_type n) const;
-</pre></blockquote>
-
-<p>
-This has the same problem that <tt>reverse_iterator</tt>'s <tt>operator[]</tt> used to
-have: if the underlying iterator's <tt>operator[]</tt> returns a proxy, the
-implicit conversion to <tt>value_type&amp;&amp;</tt> could end up referencing a temporary
-that has already been destroyed. This is essentially the same issue that
-we dealt with for <tt>reverse_iterator</tt> in DR <a href="lwg-defects.html#386">386</a>.
-</p>
-
-<p><i>[
-2009-07-28 Reopened by Alisdair.  No longer solved by concepts.
-]</i></p>
-
-
-<p><i>[
-2009-08-15 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I recommend closing this as  a duplicate of <a href="lwg-closed.html#1051">1051</a> which addresses
-this issue for both <tt>move_iterator</tt> and <tt>reverse_iterator</tt>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready. Note that if <a href="lwg-closed.html#1051">1051</a> is reopened, it may yield a
-better resolution, but <a href="lwg-closed.html#1051">1051</a> is currently marked NAD.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 24.5.3.1 [move.iterator] and 24.5.3.3.12 [move.iter.op.index], change the declaration of
-<tt>move_iterator</tt>'s <tt>operator[]</tt> to:
-</p>
-
-<blockquote><pre>
-<del>reference</del> <ins><i>unspecified</i></ins> operator[](difference_type n) const;
-</pre></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-NAD Editorial, see
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2777.pdf">N2777</a>.
-</p></blockquote>
-
-
-
-
-<hr>
-<h3><a name="874"></a>874. Missing <tt>initializer_list</tt> constructor for <tt>discrete_distribution</tt></h3>
-<p><b>Section:</b> 26.5.8.6.1 [rand.dist.samp.discrete] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-08-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.discrete">issues</a> in [rand.dist.samp.discrete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the Sophia Antipolis meeting it was decided to separate from <a href="lwg-defects.html#793">793</a> a
-subrequest that adds initializer list support to <tt>discrete_distribution</tt>, specifically,
-the issue proposed to add a c'tor taking a <tt>initializer_list&lt;double&gt;</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 26.5.8.6.1 [rand.dist.samp.discrete] p. 1, class <tt>discrete_distribution</tt>,
-just <em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit discrete_distribution(const param_type&amp; parm);
-</pre></blockquote>
-
-<p>
-insert
-</p>
-
-<blockquote><pre>
-discrete_distribution(initializer_list&lt;double&gt; wl);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 of the same section insert a new
-paragraph as part of the new member description:
-</p>
-
-<blockquote><pre>
-discrete_distribution(initializer_list&lt;double&gt; wl);
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> Same as <tt>discrete_distribution(wl.begin(), wl.end())</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-<p><b>Rationale:</b></p><p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> 
-"Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-<hr>
-<h3><a name="875"></a>875. Missing <tt>initializer_list</tt> constructor for <tt>piecewise_constant_distribution</tt></h3>
-<p><b>Section:</b> 26.5.8.6.2 [rand.dist.samp.pconst] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-08-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.pconst">issues</a> in [rand.dist.samp.pconst].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the Sophia Antipolis meeting it was decided to separate from
-<a href="lwg-defects.html#794">794</a> a subrequest that adds initializer list support to
-<tt>piecewise_constant_distribution</tt>, specifically, the issue proposed
-to add a c'tor taking a <tt>initializer_list&lt;double&gt;</tt> and a <tt>Callable</tt> to evaluate
-weight values. For consistency with the remainder of this class and
-the remainder of the <tt>initializer_list</tt>-aware library the author decided to
-change the list argument type to the template parameter <tt>RealType</tt>
-instead. For the reasoning to use <tt>Func</tt> instead of <tt>Func&amp;&amp;</tt> as c'tor
-function argument see issue <a href="lwg-defects.html#793">793</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><b>Non-concept version of the proposed resolution</b></p>
-
-<ol>
-<li>
-<p>
-In 26.5.8.6.2 [rand.dist.samp.pconst]/1, class <tt>piecewise_constant_distribution</tt>,
-just <em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit piecewise_constant_distribution(const param_type&amp; parm);
-</pre></blockquote>
-
-<p>
-insert
-</p>
-
-<blockquote><pre>
-template&lt;typename Func&gt;
-piecewise_constant_distribution(initializer_list&lt;RealType&gt; bl, Func fw);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 of the same section insert a series of
-new paragraphs nominated below as [p5_1], [p5_2], and [p5_3]
-as part of the new member description:
-</p>
-
-<blockquote><pre>
-template&lt;typename Func&gt;
-piecewise_constant_distribution(initializer_list&lt;RealType&gt; bl, Func fw);
-</pre>
-
-<blockquote>
-
-<p>
-[p5_1] <i>Complexity:</i> Exactly <tt>nf = max(bl.size(), 1) - 1</tt> invocations of <tt>fw</tt>.
-</p>
-
-<p>
-[p5_2] <i>Requires:</i>
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<tt>fw</tt> shall be callable with one argument of type <tt>RealType</tt>, and shall
-   return values of a type convertible to <tt>double</tt>;
-</li>
-<li>
-The relation <tt>0 &lt; S = w<sub>0</sub>+. . .+w<sub>n-1</sub></tt> shall hold. 
-For all sampled values <tt><i>x<sub>k</sub></i></tt> defined below, <tt>fw(<i>x<sub>k</sub></i>)</tt> shall return a weight
-   value <tt><i>w<sub>k</sub></i></tt> that is non-negative, non-NaN, and non-infinity;
-</li>
-<li>
-If <tt>nf &gt; 0</tt> let <tt>b<sub><i>k</i></sub> = *(bl.begin() + k), k = 0, . . . , bl.size()-1</tt> and the
-following relations shall hold for <tt>k = 0, . . . , nf-1: b<sub><i>k</i></sub> &lt; b<sub><i>k+1</i></sub></tt>.
-</li>
-</ol>
-
-<p>
-[p5_3] <i>Effects:</i>
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>If <tt>nf == 0</tt>,</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-lets the sequence <tt>w</tt> have length <tt>n = 1</tt> and consist of the single
-     value <tt>w<sub>0</sub> = 1</tt>, and
-</li>
-<li>
-lets the sequence <tt>b</tt> have length <tt>n+1</tt> with <tt>b<sub>0</sub> = 0</tt> and <tt>b<sub>1</sub> = 1</tt>.
-</li>
-</ol>
-</li>
-
-<li>
-<p>Otherwise,</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-sets <tt>n = nf</tt>, and <tt>[bl.begin(), bl.end())</tt> shall form the sequence <tt>b</tt> of
-length <tt>n+1</tt>, and
-</li>
-<li>
-<p>lets the sequences <tt>w</tt> have length <tt>n</tt> and for each <tt>k = 0, . . . ,n-1</tt>,
-     calculates:</p>
-<blockquote><p style="white-space: pre;">
-x<sub><i>k</i></sub> = 0.5*(b<sub><i>k+1</i></sub> + b<sub><i>k</i></sub>)
-w<sub><i>k</i></sub> = fw(x<sub><i>k</i></sub>)
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-Constructs a <tt>piecewise_constant_distribution</tt> object with
-the above computed sequence <tt>b</tt> as the interval boundaries
-and with the probability densities:
-</p>
-<blockquote><p style="white-space: pre;">
-&rho;<sub><i>k</i></sub> = w<sub><i>k</i></sub>/(S * (b<sub><i>k+1</i></sub> - b<sub><i>k</i></sub>)) for k = 0, . . . , n-1.
-</p></blockquote>
-
-</li>
-</ol>
-
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-<p><b>Concept version of the proposed resolution</b></p>
-
-<ol>
-<li>
-<p>
-In 26.5.8.6.2 [rand.dist.samp.pconst]/1, class <tt>piecewise_constant_distribution</tt>,
-just <em>before</em> the member declaration
-</p>
-
-<blockquote><pre>
-explicit piecewise_constant_distribution(const param_type&amp; parm);
-</pre></blockquote>
-
-<p>
-insert
-</p>
-
-<blockquote><pre>
-template&lt;Callable&lt;auto, RealType&gt; Func&gt;
- requires Convertible&lt;Func::result_type, double&gt;
-piecewise_constant_distribution(initializer_list&lt;RealType&gt; bl, Func fw);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Between p.4 and p.5 of the same section insert a series of
-new paragraphs nominated below as [p5_1], [p5_2], and [p5_3]
-as part of the new member description:
-</p>
-
-<blockquote><pre>
-template&lt;Callable&lt;auto, RealType&gt; Func&gt;
- requires Convertible&lt;Func::result_type, double&gt;
-piecewise_constant_distribution(initializer_list&lt;RealType&gt; bl, Func fw);
-</pre>
-
-<blockquote>
-
-<p>
-[p5_1] <i>Complexity:</i> Exactly <tt>nf = max(bl.size(), 1) - 1</tt> invocations of <tt>fw</tt>.
-</p>
-
-<p>
-[p5_2] <i>Requires:</i>
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-The relation <tt>0 &lt; S = w<sub>0</sub>+. . .+w<sub>n-1</sub></tt> shall hold. 
-For all sampled values <tt><i>x<sub>k</sub></i></tt> defined below, <tt>fw(<i>x<sub>k</sub></i>)</tt> shall return a weight
-   value <tt><i>w<sub>k</sub></i></tt> that is non-negative, non-NaN, and non-infinity;
-</li>
-<li>
-If <tt>nf &gt; 0</tt> let <tt>b<sub><i>k</i></sub> = *(bl.begin() + k), k = 0, . . . , bl.size()-1</tt> and the
-following relations shall hold for <tt>k = 0, . . . , nf-1: b<sub><i>k</i></sub> &lt; b<sub><i>k+1</i></sub></tt>.
-</li>
-</ol>
-
-<p>
-[p5_3] <i>Effects:</i>
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>If <tt>nf == 0</tt>,</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-lets the sequence <tt>w</tt> have length <tt>n = 1</tt> and consist of the single
-     value <tt>w<sub>0</sub> = 1</tt>, and
-</li>
-<li>
-lets the sequence <tt>b</tt> have length <tt>n+1</tt> with <tt>b<sub>0</sub> = 0</tt> and <tt>b<sub>1</sub> = 1</tt>.
-</li>
-</ol>
-</li>
-
-<li>
-<p>Otherwise,</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-sets <tt>n = nf</tt>, and <tt>[bl.begin(), bl.end())</tt> shall form the sequence <tt>b</tt> of
-length <tt>n+1</tt>, and
-</li>
-<li>
-<p>lets the sequences <tt>w</tt> have length <tt>n</tt> and for each <tt>k = 0, . . . ,n-1</tt>,
-     calculates:</p>
-<blockquote><p style="white-space: pre;">
-x<sub><i>k</i></sub> = 0.5*(b<sub><i>k+1</i></sub> + b<sub><i>k</i></sub>)
-w<sub><i>k</i></sub> = fw(x<sub><i>k</i></sub>)
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li>
-<p>
-Constructs a <tt>piecewise_constant_distribution</tt> object with
-the above computed sequence <tt>b</tt> as the interval boundaries
-and with the probability densities:
-</p>
-<blockquote><p style="white-space: pre;">
-&rho;<sub><i>k</i></sub> = w<sub><i>k</i></sub>/(S * (b<sub><i>k+1</i></sub> - b<sub><i>k</i></sub>)) for k = 0, . . . , n-1.
-</p></blockquote>
-
-</li>
-</ol>
-
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">N2836</a> "Wording Tweaks for Concept-enabled Random Number Generation in C++0X".
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="876"></a>876. <tt>basic_string</tt> access operations should give stronger guarantees</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-08-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the Sophia Antipolis meeting it was decided to split-off some
-parts of the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2647.html">n2647</a>
-("Concurrency modifications for <tt>basic_string</tt>")
-proposal into a separate issue, because these weren't actually
-concurrency-related. The here proposed changes refer to the recent
-update document
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2668.htm">n2668</a>
-and attempt to take advantage of the
-stricter structural requirements.
-</p>
-<p>
-Indeed there exists some leeway for more guarantees that would be
-very useful for programmers, especially if interaction with transactionary
-or exception-unaware C API code is important. This would also allow
-compilers to take advantage of more performance optimizations, because
-more functions can have throw() specifications. This proposal uses the
-form of "Throws: Nothing" clauses to reach the same effect, because
-there already exists a different issue in progress to clean-up the current
-existing "schizophrenia" of the standard in this regard.
-</p>
-<p>
-Due to earlier support for copy-on-write, we find the following
-unnecessary limitations for C++0x:
-</p>
-
-<ol>
-<li>
-Missing no-throw guarantees: <tt>data()</tt> and <tt>c_str()</tt> simply return
-a pointer to their guts, which is a non-failure operation. This should
-be spelled out. It is also noteworthy to mention that the same
-guarantees should also be given by the size query functions,
-because the combination of pointer to content and the length is
-typically needed during interaction with low-level API.
-</li>
-<li>
-Missing complexity guarantees: <tt>data()</tt> and <tt>c_str()</tt> simply return
-a pointer to their guts, which is guaranteed O(1). This should be
-spelled out.
-</li>
-<li>
-Missing reading access to the terminating character: Only the
-const overload of <tt>operator[]</tt> allows reading access to the terminator
-char. For more intuitive usage of strings, reading access to this
-position should be extended to the non-const case. In contrast
-to C++03 this reading access should now be homogeneously
-an lvalue access.
-</li>
-</ol>
-
-<p>
-The proposed resolution is split into a main part (A) and a
-secondary part (B) (earlier called "Adjunct Adjunct Proposal").
-(B) extends (A) by also making access to index position
-size() of the at() overloads a no-throw operation. This was
-separated, because this part is theoretically observable in
-specifically designed test programs.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-We oppose part 1 of the issue but hope to address <tt>size()</tt> in
-issue <a href="lwg-active.html#877">877</a>.
-</p>
-<p>
-We do not support part B. 4 of the issue because of the breaking API change.
-</p>
-<p>
-We support part A. 2 of the issue.
-</p>
-<p>
-On support part A. 3 of the issue:
-</p>
-<blockquote><p>
-Pete's broader comment: now that we know that <tt>basic_string</tt> will be a
-block of contiguous memory, we should just rewrite its specification
-with that in mind. The expression of the specification will be simpler
-and probably more correct as a result.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Move proposed resolution A to Ready.
-</p>
-<p><i>[
-Howard: Commented out part B.
-]</i></p>
-
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol style="list-style-type:upper-alpha">
-<li>
-<ol>
-<li>
-<p>In 21.4.4 [string.capacity], just after p. 1 add a new paragraph:
-</p>
-<blockquote><p>
-<i>Throws:</i> Nothing.
-</p></blockquote>
-
-</li>
-<li>
-<p>
-In 21.4.5 [string.access] <em>replace</em> p. 1 by the following <em>4</em> paragraghs:
-</p>
-
-<blockquote>
-<p>
-<i>Requires:</i> <tt>pos &le; size()</tt>.
-</p>
-<p>
-<i>Returns:</i> If <tt>pos &lt; size()</tt>, returns <tt>*(begin() + pos)</tt>. Otherwise, returns
-a reference to a <tt>charT()</tt> that shall not be modified.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-<p>
-<i>Complexity:</i> Constant time.
-</p>
-</blockquote>
-
-</li>
-<li>
-<p>
-In 21.4.7.1 [string.accessors] replace the now <em>common</em> returns
-clause of <tt>c_str()</tt> and <tt>data()</tt> by the following <em>three</em> paragraphs:
-</p>
-<blockquote>
-<p>
-<i>Returns:</i> A pointer <tt>p</tt> such that <tt>p+i == &amp;operator[](i)</tt> for each <tt>i</tt>
-in <tt>[0, size()]</tt>.
-</p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-<p>
-<i>Complexity:</i> Constant time.
-</p>
-</blockquote>
-</li>
-</ol>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="878"></a>878. <tt>forward_list</tt> preconditions</h3>
-<p><b>Section:</b> 23.3.4 [forwardlist] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2008-08-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist">issues</a> in [forwardlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-       <p>
-
-<tt>forward_list</tt> member functions that take
-a <tt>forward_list::iterator</tt> (denoted <tt>position</tt> in the
-function signatures) argument have the following precondition:
-
-       </p>
-       <blockquote><p>
-
-<i>Requires:</i> <tt>position</tt> is dereferenceable or equal
-to <tt>before_begin()</tt>.
-
-       </p></blockquote>
-       <p>
-
-I believe what's actually intended is this:
-
-       </p>
-       <blockquote><p>
-
-<i>Requires:</i> <tt>position</tt> is in the range
-[<tt>before_begin()</tt>, <tt>end()</tt>).
-
-       </p></blockquote>
-       <p>
-
-That is, when it's dereferenceable, <tt>position</tt> must point
-into <tt>*this</tt>, not just any <tt>forward_list</tt> object.
-
-       </p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Robert suggested alternate proposed wording which had large support.
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Walter: "position is before_begin() or a dereferenceable": add "is" after the "or"
-</p>
-<p>
-With that minor update, Recommend Tentatively Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-       <p>
-
-Change the <i>Requires</i> clauses
- [forwardlist] , p21, p24, p26, p29, and,
-23.3.4.6 [forwardlist.ops], p39, p43, p47
-as follows:
-
-       </p>
-       <blockquote><p>
-
-<i>Requires:</i> <tt>position</tt> is <ins><tt>before_begin()</tt> or is a</ins>
-dereferenceable
-<ins>iterator in the range <tt>[begin(), end())</tt></ins>
-<del>or equal to <tt>before_begin()</tt></del>. ...
-
-       </p></blockquote>
-   
-
-
-
-<hr>
-<h3><a name="880"></a>880. Missing atomic exchange parameter</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-08-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#942">942</a></p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>atomic_exchange</tt> and <tt>atomic_exchange_explicit</tt> functions seem to
-be inconsistently missing parameters.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence: Need to write up a list for Pete with details.
-</p>
-<p>
-Detlef: Should not be New, we already talked about in Concurrency group.
-</p>
-<p>
-Recommend Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence will handle all issues relating to atomics in a single paper.
-</p>
-<p>
-LWG will defer discussion on atomics until that paper appears.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-08-17 Handled by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2925.html">N2925</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>. Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the appropriate parameters.  For example,
-</p>
-
-<blockquote><pre>
-bool atomic_exchange(volatile atomic_bool*<ins>, bool</ins>);
-bool atomic_exchange_explicit(volatile atomic_bool*, bool<ins>, memory_order</ins>);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="881"></a>881. <tt>shared_ptr</tt> conversion issue</h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We've changed <tt>shared_ptr&lt;Y&gt;</tt> to not convert to <tt>shared_ptr&lt;T&gt;</tt> when <tt>Y*</tt>
-doesn't convert to <tt>T*</tt> by resolving issue <a href="lwg-defects.html#687">687</a>. This only fixed the
-converting copy constructor though.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2351.htm">N2351</a>
-later added move support, and
-the converting move constructor is not constrained.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-We might be able to move this to NAD, Editorial once shared_ptr is
-conceptualized, but we want to revisit this issue to make sure.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Moved to Ready.
-</p>
-<p>
-This issue now represents the favored format for specifying constrained templates.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-We need to change the Requires clause of the move constructor:
-</p>
-
-<blockquote><pre>
-shared_ptr(shared_ptr&amp;&amp; r); 
-template&lt;class Y&gt; shared_ptr(shared_ptr&lt;Y&gt;&amp;&amp; r); 
-</pre>
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <del>For the second constructor <tt>Y*</tt> shall be
-convertible to <tt>T*</tt>.</del>
-<ins>
-The second constructor shall not participate in overload resolution
-unless <tt>Y*</tt> is convertible to <tt>T*</tt>.
-</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-in order to actually make the example in <a href="lwg-defects.html#687">687</a> compile
-(it now resolves to the move constructor).
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="882"></a>882. <tt>duration</tt> non-member arithmetic requirements</h3>
-<p><b>Section:</b> 20.12.5.5 [time.duration.nonmember] <b>Status:</b> <a href="lwg-active.html#CD1">CD1</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-09-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.nonmember">issues</a> in [time.duration.nonmember].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#CD1">CD1</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661</a>
-specified the following requirements for the non-member <tt>duration</tt>
-arithmetic:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator*(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote><p>
-<i>Requires:</i> Let <tt>CR</tt> represent the <tt>common_type</tt> of <tt>Rep1</tt> and
-<tt>Rep2</tt>.  Both <tt>Rep1</tt> and <tt>Rep2</tt> shall be implicitly convertible
-to CR, diagnostic required.
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator*(const Rep1&amp; s, const duration&lt;Rep2, Period&gt;&amp; d);
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> Let <tt>CR</tt> represent the <tt>common_type</tt> of
-<tt>Rep1</tt> and <tt>Rep2</tt>. Both <tt>Rep1</tt> and <tt>Rep2</tt>
-shall be implicitly convertible to <tt>CR</tt>, diagnostic required.
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator/(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> Let <tt>CR</tt> represent the <tt>common_type</tt> of
-<tt>Rep1</tt> and <tt>Rep2</tt>. Both <tt>Rep1</tt> and <tt>Rep2</tt> shall be
-implicitly convertible to <tt>CR</tt>, and <tt>Rep2</tt> shall not be an
-instantiation of <tt>duration</tt>, diagnostic required.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-During transcription into the working paper, the requirements clauses on these
-three functions was changed to:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <tt>CR(Rep1, Rep2)</tt> shall exist. Diagnostic required.
-</p></blockquote>
-
-<p>
-This is a non editorial change with respect to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661</a>
-as user written representations which are used in <tt>duration</tt> need not be
-implicitly convertible to or from arithmetic types in order to interoperate with
-<tt>duration</tt>s based on arithmetic types.  An explicit conversion will do
-fine for most expressions as long as there exists a <tt>common_type</tt> specialization
-relating the user written representation and the arithmetic type.  For example:
-</p>
-
-<blockquote><pre>
-class saturate
-{
-public:
-  explicit saturate(long long i);
-  ...
-};
-
-namespace std {
-
-template &lt;&gt;
-struct common_type&lt;saturate, long long&gt;
-{
-    typedef saturate type;
-};
-
-template &lt;&gt;
-struct common_type&lt;long long, saturate&gt;
-{
-    typedef saturate type;
-};
-
-}  // std
-
-millisecond ms(3);  // integral-based duration
-duration&lt;saturate, milli&gt; my_ms = ms;  // ok, even with explicit conversions
-my_ms = my_ms + ms;                    // ok, even with explicit conversions
-</pre></blockquote>
-
-<p>
-However, when dealing with multiplication of a duration and its representation,
-implicit convertibility is required between the rhs and the lhs's representation
-for the member <tt>*=</tt> operator:
-</p>
-
-<blockquote><pre>
-template &lt;class Rep, class Period = ratio&lt;1&gt;&gt; 
-class duration { 
-public: 
-   ...
-   duration&amp; operator*=(const rep&amp; rhs);
-   ...
-};
-...
-ms *= 2;               // ok, 2 is implicitly convertible to long long
-my_ms *= saturate(2);  // ok, rhs is lhs's representation
-my_ms *= 2;            // error, 2 is not implicitly convertible to saturate
-</pre></blockquote>
-
-<p>
-The last line does not (and should not) compile.  And we want non-member multiplication
-to have the same behavior as member arithmetic:
-</p>
-
-<blockquote><pre>
-my_ms = my_ms * saturate(2);  // ok, rhs is lhs's representation
-my_ms = my_ms * 2;            // <em>should be</em> error, 2 is not implicitly convertible to saturate
-</pre></blockquote>
-
-<p>
-The requirements clauses of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661</a>
-make the last line an error as expected.  However the latest working draft at
-this time
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>)
-allows the last line to compile.
-</p>
-
-<p>
-All that being said, there does appear to be an error in these requirements clauses
-as specified by 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661</a>.
-</p>
-
-<blockquote><p>
-<i>Requires:</i> ... <em>Both</em> <tt>Rep1</tt> and <tt>Rep2</tt> shall be implicitly convertible
-to CR, diagnostic required.
-</p></blockquote>
-
-<p>
-It is not necessary for both <tt>Rep</tt>s to be <i>implicitly</i> convertible to
-the <tt>CR</tt>.  It is only necessary for the rhs <tt>Rep</tt> to be implicitly
-convertible to the <tt>CR</tt>.  The <tt>Rep</tt> within the <tt>duration</tt>
-should be allowed to only be explicitly convertible to the <tt>CR</tt>.  The
-explicit-conversion-requirement is covered under 20.12.5.7 [time.duration.cast].
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the requirements clauses under 20.12.5.5 [time.duration.nonmember]:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator*(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> <del><tt>CR(Rep1, Rep2)</tt> shall exist.</del>
-<ins><tt>Rep2</tt> shall be implicitly convertible to <tt>CR(Rep1, Rep2)</tt>.</ins>
-Diagnostic required.
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator*(const Rep1&amp; s, const duration&lt;Rep2, Period&gt;&amp; d);
-</pre>
-
-<blockquote><p>
-<i>Require<ins>s</ins><del>d behavior</del>:</i> <del><tt>CR(Rep1, Rep2)</tt> shall exist.</del>
-<ins><tt>Rep1</tt> shall be implicitly convertible to <tt>CR(Rep1, Rep2)</tt>.</ins>
-Diagnostic required.
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator/(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-
-<blockquote><p>
-<i>Requires:</i> <del><tt>CR(Rep1, Rep2)</tt> shall exist</del>
-<ins><tt>Rep2</tt> shall be implicitly convertible to <tt>CR(Rep1, Rep2)</tt></ins>
-and <tt>Rep2</tt> shall not
-be an instantiation of <tt>duration</tt>. Diagnostic required.
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="883"></a>883. swap circular definition</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-09-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Note in particular that Table 90 "Container Requirements" gives
-semantics of <tt>a.swap(b)</tt> as <tt>swap(a,b)</tt>, yet for all
-containers we define <tt>swap(a,b)</tt> to call <tt>a.swap(b)</tt> - a
-circular definition.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Robert to propose a resolution along the lines of "Postcondition: "a = b, b = a" 
-This will be a little tricky for the hash containers, since they don't have 
-<tt>operator==</tt>.
-</p></blockquote>
-
-<p><i>[
-Post Summit Anthony Williams provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready with minor edits (which have been made).
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In table 80 in section 23.2.1 [container.requirements.general],
-replace the postcondition of <tt>a.swap(b)</tt> with the following:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 80 -- Container requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion/note pre-/post-conidtion</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-<td>...</td>
-</tr>
-<tr>
-<td><tt>a.swap(b);</tt></td>
-<td><tt>void</tt></td>
-<td>&nbsp;</td>
-<td><del><tt>swap(a,b)</tt></del>
-<ins>Exchange the contents of <tt>a</tt> and <tt>b</tt>.</ins></td>
-<td>(Note A)</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Remove the reference to swap from the paragraph following the table.
-</p>
-
-<blockquote><p>
-Notes: the algorithms <del><tt>swap()</tt>, </del><tt>equal()</tt> and
-<tt>lexicographical_compare()</tt> are defined in Clause 25. ...
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="884"></a>884. <tt>shared_ptr</tt> swap</h3>
-<p><b>Section:</b> 20.8.2.2.4 [util.smartptr.shared.mod] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote><pre>
-#include &lt;memory&gt;
-#include &lt;cassert&gt;
-
-struct A { };
-struct B : A { };
-
-int main()
-{
-    std::shared_ptr&lt;A&gt; pa(new A);
-    std::shared_ptr&lt;B&gt; pb(new B);
-    std::swap&lt;A&gt;(pa, pb);  // N.B. no argument deduction
-    assert( pa.get() == pb.get() );
-    return 0;
-}
-</pre></blockquote>
-
-<p>
-Is this behaviour correct (I believe it is) and if so, is it
-unavoidable, or not worth worrying about?
-</p>
-
-<p>
-This calls the lvalue/rvalue swap overload for <tt>shared_ptr</tt>:
-</p>
-
-<blockquote><pre>
-template&lt;class T&gt; void swap( shared_ptr&lt;T&gt; &amp; a, shared_ptr&lt;T&gt; &amp;&amp; b );
-</pre></blockquote>
-
-<p>
-silently converting the second argument from <tt>shared_ptr&lt;B&gt;</tt> to
-<tt>shared_ptr&lt;A&gt;</tt> and binding the rvalue ref to the produced temporary.
-</p>
-
-<p>
-This is not, in my opinion, a <tt>shared_ptr</tt> problem; it is a general issue
-with the rvalue swap overloads. Do we want to prevent this code from
-compiling? If so, how?
-</p>
-
-<p>
-Perhaps we should limit rvalue args to swap to those types that would
-benefit from the "swap trick".  Or, since we now have <tt>shrink_to_fit()</tt>, just
-eliminate the rvalue swap overloads altogether.  The original motivation
-was:
-</p>
-
-<blockquote><pre>
-vector&lt;A&gt; v = ...;
-...
-swap(v, vector&lt;A&gt;(v));
-</pre></blockquote>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1690.html#Improved%20swap%20Interface">N1690</a>.
-</p>
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to <del>NAD Editorial</del><ins>Resolved</ins>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Recommend <del>NAD Editorial</del><ins>Resolved</ins>, fixed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="885"></a>885. <tt>pair</tt> assignment</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<blockquote><pre>
-20.2.3 pairs
-Missing assignemnt operator:
-template&lt;class U , class V&gt;
-  requires CopyAssignable&lt;T1, U&gt; &amp;&amp; CopyAssignable&lt;T2, V&gt;
-    pair&amp; operator=(pair&lt;U , V&gt; const &amp; p );
-</pre></blockquote>
-
-<p>
-Well, that's interesting. This assignment operator isn't in the
-current working paper, either. Perhaps we deemed it acceptable to
-build a temporary of type <tt>pair</tt> from <tt>pair&lt;U, V&gt;</tt>, then move-assign
-from that temporary?
-</p>
-<p>
-It sounds more like an issue waiting to be opened, unless you want to plug
-it now.  As written we risk moving from lvalues.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Would be NAD if better ctors fixed it.
-</p>
-<p>
-Related to <a href="lwg-defects.html#811">811</a>.
-</p>
-</blockquote>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote><p>
-Possibly NAD Editorial, solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>.
-</p></blockquote>
-
-<p><i>[
-2009-05-25 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Issue <a href="lwg-defects.html#885">885</a> was something I reported while reviewing the library concepts
-documents ahead of San Francisco.  The missing operator was added as part of
-the paper adopted at that meeting
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2770.pdf">N2770</a>)
-and I can confirm this operator is
-present in the current working paper.  I recommend NAD.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-We agree with the intent, but we need to wait for the dust to settle on concepts.
-</p></blockquote>
-
-<p><i>[
-2010-03-11 Stefanus provided wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to Ready for Pittsburgh.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following declaration 20.3.2 [pairs.pair], before the
-declaration of <tt>pair&amp; operator=(pair&amp;&amp; p);</tt>:
-</p>
- 
-<blockquote><pre>
-template&lt;class U, class V&gt; pair&amp; operator=(const pair&lt;U, V&gt;&amp; p);
-</pre></blockquote>
-
-<p>
-Add the following description to 20.3.2 [pairs.pair] after paragraph 11 (before
-the description of <tt>pair&amp; operator=(pair&amp;&amp; p);)</tt>:
-</p>
- 
-<blockquote><pre>
-template&lt;class U, class V&gt; pair&amp; operator=(const pair&lt;U, V&gt;&amp; p);
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>T1</tt> shall satisfy the requirements of
-<tt>CopyAssignable</tt> from <tt>U</tt>. <tt>T2</tt> shall
-satisfy the requirements of <tt>CopyAssignable</tt> from <tt>V</tt>.
-</p>
-<p>
-<i>Effects:</i> Assigns <tt>p.first</tt> to <tt>first</tt> and 
-<tt>p.second</tt> to <tt>second</tt>.
-</p>
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="886"></a>886. <tt>tuple</tt> construction</h3>
-<p><b>Section:</b> 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.cnstr">active issues</a> in [tuple.cnstr].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.cnstr">issues</a> in [tuple.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.4.2.1 [tuple.cnstr]:
-</p>
-<blockquote><p>
-<i>Effects:</i> Default initializes each element.
-</p></blockquote>
-
-<p>
-Could be clarified to state each "non-trivial" element.  Otherwise
-we have a conflict with Core deinfition of default initialization -
-trivial types do not get initialized (rather than initialization
-having no effect)
-</p>
-
-<p>
-I'm going to punt on this one, because it's not an issue that's
-related to concepts. I suggest bringing it to Howard's attention on
-the reflector.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Text in draft doesn't mean anything, changing to "non-trivial" makes it
-meaningful.
-</p>
-<p>
-We prefer "value initializes". Present implementations use
-value-initialization. Users who don't want value initialization have
-alternatives.
-</p>
-<p>
-Request resolution text from Alisdair.
-</p>
-
-<p>
-This issue relates to Issue <a href="lwg-defects.html#868">868</a> default construction and value-initialization.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-04 Alisdair provided wording and adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Note: This <em>IS</em> a change of semantic from TR1, although one the room agreed
-with during the discussion.  To preserve TR1 semantics, this would have been
-worded:
-</p>
-<blockquote><pre>
-requires DefaultConstructible&lt;Types&gt;... tuple();
-</pre>
-<blockquote><p>
--2-   <i>Effects:</i> Default-initializes each non-trivial element.
-</p></blockquote>
-</blockquote>
-
-
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change p2 in Construction 20.4.2.1 [tuple.cnstr]:
-</p>
-
-<blockquote><pre>
-requires DefaultConstructible&lt;Types&gt;... tuple();
-</pre>
-<blockquote>
-<p>
--2- <i>Effects:</i> <del>Default</del> <ins>Value-</ins>initializes each element.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="888"></a>888. <tt>this_thread::yield</tt> too strong</h3>
-<p><b>Section:</b> 30.3.2 [thread.thread.this] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.this">issues</a> in [thread.thread.this].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I never thought I'd say this, but <tt>this_thread::yield</tt> seems to be too
-strong in specification.  The issue is that some systems distinguish
-between yielding to another thread in the same process and yielding
-to another process.  Given that the C++ standard only talks about
-a single program, one can infer that the specification allows yielding
-only to another thread within the same program.  Posix has no
-facility for that behavior.  Can you please file an issue to weaken
-the wording.  Perhaps "Offers the operating system the opportunity
-to reschedule."
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend move to Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.3.2 [thread.thread.this]/3:
-</p>
-
-<blockquote>
-<pre>
-void this_thread::yield();
-</pre>
-<blockquote><p>
-<i>Effects:</i> Offers the <del>operating system</del> <ins>implementation</ins>
-the opportunity to <ins>re</ins>schedule.
-<del>another thread.</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="889"></a>889. <tt>thread::id</tt> comparisons</h3>
-<p><b>Section:</b> 30.3.1.1 [thread.thread.id] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Lawrence Crowl <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.id">issues</a> in [thread.thread.id].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 324</b></p>
-
-<p>
-The <tt>thread::id</tt> type supports the full set of comparison operators.  This
-is substantially more than is required for the associative containers that
-justified them.  Please place an issue against the threads library.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Would depend on proposed extension to POSIX, or non-standard extension.
-What about hash? POSIX discussing op. POSIX not known to be considering
-support needed for hash, op.
-</p>
-<p>
-Group expresses support for putting ids in both unordered and ordered containers.
-</p>
-</blockquote>
-
-<p><i>[
-post San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard:  It turns out the current working paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-<i>already has</i> <tt>hash&lt;thread::id&gt;</tt>
-(20.9 [function.objects], 20.9.13 [unord.hash]).  We simply
-overlooked it in the meeting.  It is a good thing we voted in favor of it
-(again). :-)
-</p>
-<p>
-Recommend NAD.
-</p>
-
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend to close as NAD. For POSIX, see if we need to add a function to
-convert <tt>pthread_t</tt> to integer.
-</p></blockquote>
-
-<p><i>[
-Post Summit, Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The recommendation for LWG-889/UK-324 is NAD, already specified.
-</p>
-<p>
-It is not clear to me that the specification is complete.
-</p>
-<p>
-In particular, the synopsis of <tt>&lt;functional&gt;</tt> in 
-20.9 [function.objects] does not mention <tt>hash&lt; thread::id&gt;</tt> 
-nor <tt>hash&lt; error_code &gt;</tt>, although their existence is 
-implied by 20.9.13 [unord.hash], p1.
-</p>
-<p>
-I am fairly uncomfortable putting the declaration for the
-<tt>thread_id</tt> specialization into <tt>&lt;functional&gt;</tt> as
-<tt>id</tt> is a nested class inside <tt>std::thread</tt>, so it implies
-that <tt>&lt;functional&gt;</tt> would require the definition of the
-<tt>thread</tt> class template in order to forward declared
-<tt>thread::id</tt> and form this specialization.
-</p>
-<p>
-It seems better to me that the dependency goes the other way around
-(<tt>&lt;thread&gt;</tt> will more typically make use of
-<tt>&lt;functional&gt;</tt> than vice-versa) and the
-<tt>hash&lt;thread::id&gt;</tt> specialization be declared in the
-<tt>&lt;thread&gt;</tt> header.
-</p>
-<p>
-I think <tt>hash&lt;error_code&gt;</tt> could go into either
-<tt>&lt;system_error&gt;</tt> or <tt>&lt;functional&gt;</tt> and have no
-immediate preference either way.  However, it should clearly appear in
-the synopsis of one of these two.
-</p>
-<p>
-Recommend moving 889 back to open, and tying in a reference to UK-324.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Howard observes that <tt>thread::id</tt> need not be a nested class;
-it could be a <tt>typedef</tt> for a more visible type.
-</p></blockquote>
-
-<p><i>[
-2009-05-24 Alisdair adds:
-]</i></p>
-
-<blockquote><p>
-I do not believe this is correct.  <tt>thread::id</tt> is explicitly documents as a
-nested class, rather than as an unspecified typedef analogous to an
-iterator.  If the intent is that this is not implemented as a nested class
-(under the as-if freedoms) then this is a novel form of standardese.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Decided we want to move hash specialization for thread_id to the thread
-header. Alisdair to provide wording.
-</p></blockquote>
-
-<p><i>[
-2009-07-28 Alisdair provided wording, moved to Review.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Add a strike for <tt>hash&lt;thread::id&gt;</tt>. Move to Ready
-</p></blockquote>
-
-<p><i>[
-2009-11-13 The proposed wording of <a href="lwg-defects.html#1182">1182</a> is a superset of the
-wording in this issue.
-]</i></p>
-
-
-<p><i>[
-2010-02-09 Moved from Ready to Open:
-]</i></p>
-
-
-<blockquote>
-<p>
-Issue <a href="lwg-defects.html#1182">1182</a> is not quite a superset of this issue and it is controversial
-whether or not the note:
-</p>
-
-<blockquote><p>
-hash template specialization allows <tt>thread::id</tt> objects to be used as keys in
-unordered containers.
-</p></blockquote>
-
-<p>
-should be added to the WP.
-</p>
-
-
-</blockquote>
-
-<p><i>[
-2010-02-09 Objections to moving this to <del>NAD Editorial</del><ins>Resolved</ins>, addressed by <a href="lwg-defects.html#1182">1182</a> have been removed.  Set to Tentatively <del>NAD Editorial</del><ins>Resolved</ins>.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="lwg-defects.html#1182">1182</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Remove the following prototype from the synopsis in
-20.9 [function.objects]:
-</p>
-
-<blockquote><pre><del>
-template &lt;&gt; struct hash&lt;std::thread::id&gt;;
-</del></pre></blockquote>
-
-<p>
-Add to 30.3 [thread.threads], p1 Header <tt>&lt;thread&gt;</tt> synopsis:
-</p>
-
-<blockquote><pre>
-<ins>template &lt;class T&gt; struct hash;
-template &lt;&gt; struct hash&lt;thread::id&gt;;</ins>
-</pre></blockquote>
-
-<p>
-Add template specialization below class definition in 30.3.1.1 [thread.thread.id]
-</p>
-
-<blockquote><pre>
-<ins>template &lt;&gt;
-struct hash&lt;thread::id&gt; : public unary_function&lt;thread::id, size_t&gt; {
-   size_t operator()(thread::id val) const;
-};</ins>
-</pre></blockquote>
-
-<p>
-Extend note in p2 30.3.1.1 [thread.thread.id] with second sentence:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Relational operators allow <tt>thread::id</tt> objects to be used
-as keys in associative containers.
-<ins><tt>hash</tt> template specialization allows <tt>thread::id</tt> objects to be used as keys
-in unordered containers.</ins>
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-Add new paragraph to end of 30.3.1.1 [thread.thread.id]
-</p>
-
-<blockquote><pre>
-<ins>template &lt;&gt; struct hash&lt;thread::id&gt;;</ins>
-</pre>
-<blockquote><p><ins>
-An explicit specialization of the class template hash (20.9.13 [unord.hash])
-shall be provided for the type <tt>thread::id</tt>.
-</ins></p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="890"></a>890. Improving <tt>&lt;system_error&gt;</tt> initialization</h3>
-<p><b>Section:</b> 19.5.1 [syserr.errcat] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2008-09-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr.errcat">issues</a> in [syserr.errcat].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>static const error_category</tt> objects <tt>generic_category</tt> and
-<tt>system_category</tt> in header <tt>&lt;system_error&gt;</tt> are currently declared:
-</p>
-
-<blockquote><pre>
-const error_category&amp; get_generic_category();
-const error_category&amp; get_system_category();
-
-static const error_category&amp; generic_category = get_generic_category();
-static const error_category&amp; system_category = get_system_category();
-</pre></blockquote>
-
-<p>
-This formulation has several problems:
-</p>
-
-<ul>
-<li>
-Implementation details are exposed, since initialization is specified in
-the interface. This over-constrains implementations without offsetting
-user benefits. The form of initialization specified may be less than
-maximally efficient on some platforms.
-</li>
-<li>
-Use of the objects is more expensive in terms of number of machine level
-instructions. See <i>Implementation experience</i> below.
-</li>
-<li>
-Depending on the compiler, some cost may be incurred by each translation unit
-that includes the header, even if the objects are not used. This is a
-common scenario in user code, since the header is included by other
-standard library headers. It should be mentioned that at least one
-compilers is able to optimize this cost away, however.
-</li>
-</ul>
-
-<p>
-IO streams uses a somewhat different formulation for iostream_category, but 
-still suffer much the same problems.
-</p>
-
-<p>
-The original plan was to eliminate these problems by applying the C++0x
-<tt>constexpr</tt> feature. See LWG issue <a href="lwg-closed.html#832">832</a>. However, that approach turned out
-to be unimplementable, since it would require a <tt>constexpr</tt> object of a
-class with virtual functions, and that is not allowed by the core
-language.
-</p>
-
-<p>
-The proposed resolution was developed as an alternative. It mitigates the above 
-problems by removing initialization from the visible interface, allowing 
-implementations flexibility.
-</p>
-
-<p>
-<b>Implementation experience:</b>
-</p>
-
-<p>
-Prototype implementations of the current WP interface and proposed
-resolution interface were tested with recent Codegear, GCC, Intel, and Microsoft 
-compilers on Windows. The code generated by the Microsoft compiler was studied 
-at length; the WP and proposal versions generated very similar code. For both versions 
-the compiler did make use of static
-initialization; apparently the compiler applied an implicit <tt>constexpr</tt>
-where useful, even in cases where <tt>constexpr</tt> would not be permitted by
-the language!
-</p>
-
-<p>
-<b>Acknowledgements:</b>
-</p>
-
-<p>
-Martin Sebor, Chris Kohlhoff, and John Lakos provided useful ideas and comments on initialization issues.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Martin: prefers not to create more file-scope static objects, and would
-like to see <tt>get_*</tt> functions instead.
-</p>
-</blockquote>
-
-
-<p><i>[Pre-Summit:]</i></p>
-
-<blockquote>
-
-
-<p>
-Beman: The proposed resolution has been reworked to remove the file-scope 
-static objects, per Martin&#39;s suggestions. The <tt>get_</tt> prefix has been 
-eliminated from the function names as no longer necessary and to conform with 
-standard library naming practice.
-</p>
-
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agreement that this is wise and essential, text provided works and has
-been implemented. Seems to be widespread consensus. Move to Tentative Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change 17.6.5.14 [value.error.codes] Value of error codes as indicated:</p>
-<blockquote>
- <p>Certain functions in the C++ standard library report errors via a 
- <tt>std::error_code</tt> (19.4.2.2) object. That object's <tt>category()</tt> member shall 
- return <del>a reference to</del> <code>std::system_category</code><tt><ins><code>()</code></ins></tt> for errors originating from the 
- operating system, or a reference to an implementation-defined error_category 
- object for errors originating elsewhere. The implementation shall define the 
- possible values of value() for each of these error categories. [<i>Example:</i> For 
- operating systems that are based on POSIX, implementations are encouraged to 
- define the <code>std::system_category</code><tt><ins><code>()</code></ins></tt> values as identical to the POSIX <tt>errno</tt> values, 
- with additional values as defined by the operating system's documentation. 
- Implementations for operating systems that are not based on POSIX are 
- encouraged to define values identical to the operating system's values. For 
- errors that do not originate from the operating system, the implementation may 
- provide enums for the associated values --<i>end example</i>]</p>
-</blockquote>
-
-<p>
-Change 19.5.1.1 [syserr.errcat.overview] Class <tt>error_category</tt> overview
-<tt>error_category</tt> synopsis as indicated:
-</p>
-
-<blockquote>
-<pre>
-const error_category&amp; <del>get_</del>generic_category();
-const error_category&amp; <del>get_</del>system_category();
-
-<del>static storage-class-specifier const error_category&amp; generic_category = get_generic_category();
-static storage-class-specifier const error_category&amp; system_category = get_system_category();</del>
-</pre>
-</blockquote>
-
-<p>
-Change 19.5.1.5 [syserr.errcat.objects] Error category objects as indicated:
-</p>
-
-<blockquote>
-<pre>const error_category&amp; <del>get_</del>generic_category();
-</pre>
-
-<blockquote>
-
-<p>
-<i>Returns:</i> A reference to an object of a type derived from class <tt>error_category</tt>.
-</p>
-
-<p>
-<i>Remarks:</i> The object's <tt>default_error_condition</tt> and <tt>equivalent</tt> virtual
-functions shall behave as specified for the class <tt>error_category</tt>. The
-object's <tt>name</tt> virtual function shall return a pointer to the string
-<tt>"GENERIC"</tt>.
-</p>
-</blockquote>
-
-<pre>
-const error_category&amp; <del>get_</del>system_category();
-</pre>
-
-<blockquote>
-<p>
-<i>Returns:</i> A reference to an object of a type derived from class <tt>error_category</tt>.
-</p>
-
-<p>
-<i>Remarks:</i> The object's <tt>equivalent</tt> virtual functions shall behave as
-specified for class <tt>error_category</tt>. The object's <tt>name</tt> virtual function
-shall return a pointer to the string <tt>"system"</tt>. The object's
-<tt>default_error_condition</tt> virtual function shall behave as follows:
-</p>
-<blockquote><p>
-If the argument <tt>ev</tt> corresponds to a POSIX <tt>errno</tt> value <tt>posv</tt>, the function
-shall return <tt>error_condition(posv, generic_category<ins>()</ins>)</tt>. Otherwise, the
-function shall return <tt>error_condition(ev, system_category<ins>()</ins>)</tt>. What
-constitutes correspondence for any given operating system is
-unspecified. [<i>Note:</i> The number of potential system error codes is large
-and unbounded, and some may not correspond to any POSIX <tt>errno</tt> value.
-Thus implementations are given latitude in determining correspondence.
-&mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-</blockquote>
-
-<p>Change 19.5.2.2 [syserr.errcode.constructors] Class <tt>error_code</tt> constructors 
-as indicated:</p>
-<blockquote>
- <pre>error_code();</pre>
- <blockquote>
- <p><i>Effects:</i> Constructs an object of type error_code.</p>
- <p><i>Postconditions:</i> <code>val_ == 0 </code>and <code>cat_ == &amp;system_category</code><tt><ins>()</ins></tt>.</p>
- </blockquote>
-</blockquote>
-<p>Change 19.5.2.3 [syserr.errcode.modifiers] Class <tt>error_code</tt> modifiers as 
-indicated:</p>
-<blockquote>
- <pre>void clear();</pre>
- <blockquote>
- <p>Postconditions: <code>value() == 0</code> and <code>category() == 
- system_category</code><tt><ins>()</ins></tt>.</p>
- </blockquote>
-</blockquote>
-<p>Change 19.5.2.5 [syserr.errcode.nonmembers] Class <tt>error_code</tt> non-member 
-functions as indicated:</p>
-<blockquote>
- <pre>error_code make_error_code(errc e);</pre>
- <blockquote>
- <p><i>Returns:</i> <code>error_code(static_cast&lt;int&gt;(e), generic_category</code><tt><ins>()</ins></tt><code>)</code>.</p>
- </blockquote>
-</blockquote>
-<p>Change 19.5.3.2 [syserr.errcondition.constructors] Class <tt>error_condition</tt> 
-constructors as indicated:</p>
-<blockquote>
- <pre>error_condition();</pre>
- <blockquote>
- <p><i>Effects:</i> Constructs an object of type <code>error_condition</code>.</p>
- <p><i>Postconditions:</i> <code>val_ == 0</code> and <code>cat_ == &amp;generic_category</code><tt><ins>()</ins></tt>.</p>
- </blockquote>
-</blockquote>
-<p>Change 19.5.3.3 [syserr.errcondition.modifiers] Class <tt>error_condition</tt> 
-modifiers as indicated:</p>
-<blockquote>
- <pre>void clear();</pre>
- <blockquote>
- <p><i>Postconditions:</i> <code>value() == 0</code> and <code>category() == 
- generic_category</code><tt><ins>()</ins></tt>.</p>
- </blockquote>
-</blockquote>
-<p>Change 19.5.3.5 [syserr.errcondition.nonmembers] Class <tt>error_condition</tt> 
-non-member functions as indicated:</p>
-<blockquote>
- <pre>error_condition make_error_condition(errc e);</pre>
- <blockquote>
- <p><i>Returns:</i> <tt>error_condition(static_cast&lt;int&gt;(e), generic_category<ins>()</ins>)</tt>.</p>
- </blockquote>
-</blockquote>
- <p>Change 27.5 [iostreams.base] Iostreams base classes, Header <tt>&lt;ios&gt;</tt> 
- synopsis as indicated:</p>
-<blockquote>
- <pre>concept_map ErrorCodeEnum&lt;io_errc&gt; { };
-error_code make_error_code(io_errc e);
-error_condition make_error_condition(io_errc e);
-<del>storage-class-specifier</del> const error_category&amp; iostream_category<ins>()</ins>;</pre>
-</blockquote>
-<p>Change 27.5.3.1.1 [ios::failure] Class ios_base::failure, paragraph 2 as 
-indicated:</p>
-<blockquote>
-<p>When throwing <tt>ios_base::failure</tt> exceptions, implementations should provide 
-values of <tt>ec</tt> that identify the specific reason for the failure. [ <i>Note</i>: Errors 
-arising from the operating system would typically be reported as <tt>
-system_category</tt><tt><ins>()</ins></tt> errors with an error value of the 
-error number reported by the operating system. Errors arising from within the 
-stream library would typically be reported as <tt>error_code(io_errc::stream, 
-iostream_category<ins>()</ins>)</tt>. &mdash; <i>end note</i> ]</p>
-</blockquote>
-<p>Change 27.5.6.5 [error.reporting] Error reporting as indicated:</p>
-<blockquote>
- <pre>error_code make_error_code(io_errc e);</pre>
- <blockquote>
- <p><i>Returns:</i> <code>error_code(static_cast&lt;int&gt;(e), iostream_category</code><ins>()</ins><code>)</code>.</p>
- </blockquote>
- <pre>error_condition make_error_condition(io_errc e);</pre>
- <blockquote>
- <p><i>Returns:</i> <code>error_condition(static_cast&lt;int&gt;(e), 
- iostream_category</code><ins>()</ins><code>)</code>.</p>
- </blockquote>
- <pre><del>storage-class-specifier</del> const error_category&amp; iostream_category<ins>()</ins>;</pre>
- <blockquote>
- <del><p>The implementation shall initialize iostream_category. Its storage-class-specifier 
- may be static or extern. It is unspecified whether initialization is static 
- or dynamic (3.6.2). If initialization is dynamic, it shall occur before 
- completion of the dynamic initialization of the first translation unit 
- dynamically initialized that includes header &lt;system_error&gt;.</p></del>
-<p>
-<ins><i>Returns:</i> A reference to an object of a type derived from class <tt>error_category</tt>.</ins>
-</p>
-<p><i>Remarks:</i> The object's default_error_condition and equivalent virtual functions shall 
-behave as specified for the class error_category. The object's name virtual 
-function shall return a pointer to the string &quot;iostream&quot;.</p>
- </blockquote>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="891"></a>891. <tt>std::thread</tt>, <tt>std::call_once</tt> issue</h3>
-<p><b>Section:</b> 30.3.1.2 [thread.thread.constr], 30.4.4.2 [thread.once.callonce] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I notice that the vararg overloads of <tt>std::thread</tt> and <tt>std::call_once</tt>
-(N2723 30.3.1.2 [thread.thread.constr] and 30.4.4.2 [thread.once.callonce]) are no longer specified in terms of
-<tt>std::bind</tt>; instead, some of the <tt>std::bind</tt> wording has been inlined into
-the specification.
-</p>
-<p>
-There are two problems with this.
-</p>
-<p>
-First, the specification (and implementation) in terms of <tt>std::bind</tt> allows, for example:
-</p>
-
-<blockquote><pre>
-std::thread th( f, 1, std::bind( g ) );
-</pre></blockquote>
-
-<p>
-which executes <tt>f( 1, g() )</tt> in a thread. This can be useful. The
-"inlined" formulation changes it to execute <tt>f( 1, bind(g) )</tt> in a thread.
-</p>
-<p>
-Second, assuming that we don't want the above, the specification has copied the wording
-</p>
-
-<blockquote><p>
-<tt>INVOKE(func, w1, w2, ..., wN)</tt> (20.6.2) shall be a valid
-expression for some values <tt>w1, w2, ..., wN</tt>
-</p></blockquote>
-
-<p>
-but this is not needed since we know that our argument list is args; it should simply be
-</p>
-
-<blockquote><p>
-<tt>INVOKE(func, args...)</tt> (20.6.2) shall be a valid expression
-</p></blockquote>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open.
-</p></blockquote>
-
-<p><i>[
-Post Summit Anthony provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Leave Open. Await decision for thread variadic constructor.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-See proposed wording for <a href="lwg-defects.html#929">929</a> for this, for the formulation
-on how to solve this.  <a href="lwg-defects.html#929">929</a> modifies the thread constructor to
-have "pass by value" behavior with pass by reference efficiency through the use
-of the <tt>decay</tt> trait.  This same formula would be useful for <tt>call_once</tt>.
-</p></blockquote>
-
-<p><i>[
-2010-02-11 Anthony updates wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 postive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify 30.4.4.2 [thread.once.callonce] p1-p2 with the following:
-</p>
-
-<blockquote><pre>
-template&lt;class Callable, class ...Args&gt;
-  void call_once(once_flag&amp; flag, Callable<ins>&amp;&amp;</ins> func, Args&amp;&amp;... args);
-</pre><blockquote>
-
-<p><ins>
-Given a function as follows:
-</ins></p>
-
-<blockquote><pre><ins>
-template&lt;typename T&gt; typename decay&lt;T&gt;::type decay_copy(T&amp;&amp; v)
-   { return std::forward&lt;T&gt;(v); }
-</ins></pre></blockquote>
-
-<p>
-1 <i>Requires:</i> <del>The template parameters</del> <tt>Callable</tt> and each
-<tt>Ti</tt> in <tt>Args</tt> shall <del>be <tt>CopyConstructible</tt> if an
-lvalue and otherwise</del> <ins>satisfy the</ins> <tt>MoveConstructible</tt> 
-<ins>requirements</ins>.
-<tt><i>INVOKE</i>(<ins>decay_copy(std::forward&lt;Callable&gt;(</ins>func<ins>)</ins>,
-<del>w1, w2, ..., wN</del>
-<ins>decay_copy(std::forward&lt;Args&gt;(args))...</ins>)</tt> (20.9.2 [func.require]) 
-shall be a valid expression<del> for some values <tt>w1, w2, ..., wN</tt>, where 
-<tt>N == sizeof...(Args)</tt></del>.
-</p>
-
-<p>
-2 <i>Effects:</i> Calls to <tt>call_once</tt> on the same <tt>once_flag</tt>
-object are serialized. If there has been a prior effective call to
-<tt>call_once</tt> on the same <tt>once_flag</tt> object, the call to
-<tt>call_once</tt> returns without invoking <tt>func</tt>. If there has been no
-prior effective call to <tt>call_once</tt> on the same <tt>once_flag</tt>
-object, <del>the argument <tt>func</tt> (or a copy thereof) is called as if by
-invoking <tt>func(args)</tt></del>
-<ins><tt><i>INVOKE</i>(decay_copy(std::forward&lt;Callable&gt;(func)),
-decay_copy(std::forward&lt;Args&gt;(args))...)</tt> is executed</ins>. The call
-to <tt>call_once</tt> is effective if and only if <del><tt>func(args)</tt></del>
-<ins><tt><i>INVOKE</i>(decay_copy(std::forward&lt;Callable&gt;(func)),
-decay_copy(std::forward&lt;Args&gt;(args))...)</tt></ins> returns without
-throwing an exception. If an exception is thrown it is propagated to the caller.
-</p>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="893"></a>893. <tt>std::mutex</tt> issue</h3>
-<p><b>Section:</b> 30.4.1.2.1 [thread.mutex.class] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.class">issues</a> in [thread.mutex.class].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#905">905</a></p>
-<p><b>Discussion:</b></p>
-<p>
-30.4.1.2.1 [thread.mutex.class]/27 (in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>)
-says that the behavior is undefined if:
-</p>
-<ul>
-<li>a thread that owns a <tt>mutex</tt> object calls <tt>lock()</tt> or
-<tt>try_lock()</tt> on that object</li>
-</ul>
-<p>
-I don't believe that this is right. Calling <tt>lock()</tt> or <tt>try_lock()</tt> on a
-locked <tt>mutex</tt> is well defined in the general case. <tt>try_lock()</tt> is required
-to fail and return <tt>false</tt>. <tt>lock()</tt> is required to either throw an
-exception (and is allowed to do so if it detects deadlock) or to block
-until the <tt>mutex</tt> is free. These general requirements apply regardless of
-the current owner of the <tt>mutex</tt>; they should apply even if it's owned by
-the current thread.
-</p>
-<p>
-Making double <tt>lock()</tt> undefined behavior probably can be justified (even
-though I'd still disagree with the justification), but <tt>try_lock()</tt> on a
-locked <tt>mutex</tt> must fail.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote>
-<p>
-Move to open. Proposed resolution:
-</p>
-<ul>
-<li>
-In 30.4.1 [thread.mutex.requirements] paragraph 12, change the error
-condition for <tt>resource_deadlock_would_occur</tt> to: "if the implementation
-detects that a deadlock would occur"
-</li>
-<li>
-Strike 30.4.1.2.1 [thread.mutex.class] paragraph 3 bullet 2 "a thread that owns a mutex object
-calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object, or"
-</li>
-</ul>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Move to Review. Alisdair to provide note.
-</p></blockquote>
-
-<p><i>[
-2009-07-31 Alisdair provided note.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-<p><i>[
-2009-11-18 Peter Opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-I don't believe that the proposed note:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> a program may deadlock if the thread that owns a <tt>mutex</tt>
-object calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object. If the program can
-detect the deadlock, a <tt>resource_deadlock_would_occur</tt> error condition may
-be observed. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-is entirely correct. "or <tt>try_lock()</tt>" should be removed, because
-<tt>try_lock</tt> is non-blocking and doesn't deadlock; it just returns
-<tt>false</tt> when it fails to lock the mutex.
-</p>
-
-<p><i>[
-Howard: I've set to Open and updated the wording per Peter's suggestion.
-]</i></p>
-
-
-</blockquote>
-
-<p><i>[
-2009-11-18 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 30.4.1 [thread.mutex.requirements] paragraph 12 change:
-</p>
-
-<blockquote>
-<ul>
-<li>...</li>
-<li>
-<tt>resource_deadlock_would_occur</tt> -- if the <del>current thread already owns the mutex and is able 
-to detect it</del> <ins>implementation detects that a deadlock would occur</ins>.
-</li>
-<li>...</li>
-</ul>
-</blockquote>
-
-<p>
-Strike 30.4.1.2.1 [thread.mutex.class] paragraph 3 bullet 2:
-</p>
-<blockquote>
-<p>
--3- The behavior of a program is undefined if:
-</p>
-<ul>
-<li>...</li>
-<li>
-<del>a thread that owns a <tt>mutex</tt> object calls <tt>lock()</tt> or <tt>try_lock()</tt> on that object, or</del>
-</li>
-<li>...</li>
-</ul>
-</blockquote>
-
-<p>
-Add the following note after p3 30.4.1.2.1 [thread.mutex.class]
-</p>
-
-<blockquote><p>
-[<i>Note:</i> a program may deadlock if the thread that owns a <tt>mutex</tt>
-object calls <tt>lock()</tt> on that object. If the implementation can detect the
-deadlock, a <tt>resource_deadlock_would_occur</tt> error condition may be
-observed. &mdash; <i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="894"></a>894. longjmp and destructors</h3>
-<p><b>Section:</b> 18.10 [support.runtime] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Lawrence Crowl, Alisdair Meredith <b>Opened:</b> 2008-09-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.runtime">active issues</a> in [support.runtime].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.runtime">issues</a> in [support.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The interaction between <tt>longjmp</tt> and exceptions seems unnecessarily
-restrictive and not in keeping with existing practice.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Edit paragraph 4 of 18.10 [support.runtime] as follows:
-</p>
-
-<blockquote><p>
-The function signature <tt>longjmp(jmp_buf jbuf, int val)</tt> has more
-restricted behavior in this International Standard. A
-<tt>setjmp/longjmp</tt> call pair has undefined behavior if replacing the
-<tt>setjmp</tt> and <tt>longjmp</tt> by <tt>catch</tt> and
-<tt>throw</tt> would <del>destroy</del>
-<ins>invoke any non-trivial destructors for</ins>
-any automatic objects.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="896"></a>896. Library thread safety issue</h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2008-09-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is unclear whether <tt>shared_ptr</tt> is thread-safe in the sense that
-multiple threads may simultaneously copy a <tt>shared_ptr</tt>.  However this
-is a critical piece of information for the client, and it has significant
-impact on usability for many applications.  (Detlef Vollman thinks it
-is currently clear that it is not thread-safe.  Hans Boehm thinks
-it currently requires thread safety, since the <tt>use_count</tt> is not an
-explicit field, and constructors and assignment take a const reference
-to an existing <tt>shared_ptr</tt>.)
-</p>
-
-<p>
-Pro thread-safety:
-</p>
-<p>
-Many multi-threaded usages are impossible.  A thread-safe version can
-be used to destroy an object when the last thread drops it, something
-that is often required, and for which we have no other easy mechanism.
-</p>
-<p>
-Against thread-safety:
-</p>
-<p>
-The thread-safe version is well-known to be far more expensive, even
-if used by a single thread.  Many applications, including all single-threaded
-ones, do not care.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-Beman: this is a complicated issue, and would like to move this to Open
-and await comment from Peter Dimov; we need very careful and complete
-rationale for any decision we make; let's go slow
-</p>
-<p>
-Detlef: I think that <tt>shared_ptr</tt> should not be thread-safe.
-</p>
-<p>
-Hans: When you create a thread with a lambda, it in some cases makes it
-very difficult for the lambda to reference anything in the heap. It's
-currently ambiguous as to whether you can use a <tt>shared_ptr</tt> to get at an
-object.
-</p>
-<p>
-Leave in Open. Detlef will submit an alternative proposed resolution
-that makes <tt>shared_ptr</tt> explicitly unsafe.
-</p>
-<p>
-A third option is to support both threadsafe and non-safe share_ptrs,
-and to let the programmer decide which behavior they want.
-</p>
-
-<p>
-Beman:  Peter, do you support the PR?
-</p>
-
-<p>
-Peter:
-</p>
-<blockquote>
-<p>
-Yes, I support the proposed resolution, and I certainly oppose any
-attempts to <tt>make shared_ptr</tt> thread-unsafe.
-</p>
-<p>
-I'd mildly prefer if
-</p>
-<blockquote><p>
-[<i>Note:</i> This is true in spite of that fact that such functions often
-modify <tt>use_count()</tt> <i>--end note</i>]
-</p></blockquote>
-<p>
-is changed to
-</p>
-<blockquote><p>
-[<i>Note:</i> This is true in spite of that fact that such functions often
-cause a change in <tt>use_count()</tt> <i>--end note</i>]
-</p></blockquote>
-<p>
-(or something along these lines) to emphasise that <tt>use_count()</tt> is not,
-conceptually, a variable, but a return value.
-</p>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-Vote: Do we want one thread-safe shared pointer or two? If two, one
-would allow concurrent construction and destruction of shared pointers,
-and one would not be thread-safe. If one, then it would be thread-safe.
-</p>
-<p>
-No concensus on that vote.
-</p>
-<p>
-Hans to improve wording in consultation with Pete. Leave Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready. Ask Editor to clear up wording a little when integrating to
-make it clear that the portion after the first comma only applies for
-the presence of data races.
-</p></blockquote>
-
-<p><i>[
-2009-10-24 Hans adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think we need to pull 896 back from ready, unfortunately.  My wording
-doesn't say the right thing.
-</p>
-
-<p>
-I suspect we really want to say something along the lines of:
-</p>
-
-<blockquote><p>
-For purposes of determining the presence of a data race, member
-functions access and modify only the <tt>shared_ptr</tt> and
-<tt>weak_ptr</tt> objects themselves and not objects they refer to.
-Changes in <tt>use_count()</tt> do not reflect modifications that can
-introduce data races.
-</p></blockquote>
-
-<p>
-But I think this needs further discussion by experts to make sure this
-is right.
-</p>
-
-<p>
-Detlef and I agree continue to disagree on the resolution, but I think
-we agree that it would be good to try to expedite this so that it can be
-in CD2, since it's likely to generate NB comments no matter what we do.
-And lack of clarity of intent is probably the worst option.  I think it
-would be good to look at this between meetings.
-</p>
-</blockquote>
-
-<p><i>[
-2010-01-20 Howard:
-]</i></p>
-
-
-<blockquote>
-<p>
-I've moved Hans' suggested wording above into the proposed resolution section
-and preserved the previous wording here:
-</p>
-
-<blockquote>
-<p>
-Make it explicitly thread-safe, in this weak sense, as I believe was intended:
-</p>
-<p>
-Insert in 20.8.2.2 [util.smartptr.shared], before p5:
-</p>
-<blockquote>
-<p>
-For purposes of determining the presence of a data race,
-member functions do not modify <tt>const shared_ptr</tt> and
-const <tt>weak_ptr</tt> arguments, nor any objects they
-refer to.  [<i>Note:</i> This is true in spite of that fact that such functions often
-cause a change in <tt>use_count()</tt> <i>--end note</i>]
-</p>
-</blockquote>
-<p>
-On looking at the text, I'm not sure we need a similar disclaimer
-anywhere else, since nothing else has the problem with the modified
-<tt>use_count()</tt>.  I think Howard arrived at a similar conclusion.
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to Ready for Pittsburgh
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Insert a new paragraph at the end of 20.8.2.2 [util.smartptr.shared]:
-</p>
-
-<blockquote><p>
-For purposes of determining the presence of a data race, member functions access
-and modify only the <tt>shared_ptr</tt> and <tt>weak_ptr</tt> objects themselves
-and not objects they refer to. Changes in <tt>use_count()</tt> do not reflect
-modifications that can introduce data races.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="897"></a>897. Forward_list issues... Part 2</h3>
-<p><b>Section:</b> 23.3.4.5 [forwardlist.modifiers] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-09-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.modifiers">issues</a> in [forwardlist.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This issue was split off from <a href="lwg-closed.html#892">892</a> at the request of the LWG.
-</p>
-
-<p><i>[
-San Francisco:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue is more complicated than it looks.
-</p>
-<p>
-paragraph 47: replace each <tt>(first, last) with (first, last]</tt>
-</p>
-<p>
-add a statement after paragraph 48 that complexity is O(1)
-</p>
-<p>
-remove the complexity statement from the first overload of splice_after
-</p>
-<p>
-We may have the same problems with other modifiers, like erase_after.
-Should it require that all iterators in the range (position, last] be
-dereferenceable?
-</p>
-</blockquote>
-
-<p>
-There are actually 3 issues here:
-</p>
-
-<ol>
-<li>
-<p>
-What value should <tt>erase_after</tt> return?  With <tt>list</tt>, code often
-looks like:
-</p>
-<blockquote><pre>
-for (auto i = l.begin(); i != l.end();)
-{
-    // inspect *i and decide if you want to erase it
-    // ...
-    if (I want to erase *i)
-        i = l.erase(i);
-    else
-        ++i;
-}
-</pre></blockquote>
-<p>
-I.e. the iterator returned from <tt>erase</tt> is useful for setting up the
-logic for operating on the next element.  For <tt>forward_list</tt> this might
-look something like:
-</p>
-<blockquote><pre>
-auto i = fl.before_begin();
-auto ip1 = i;
-for (++ip1; ip1 != fl.end(); ++ip1)
-{
-    // inspect *(i+1) and decide if you want to erase it
-    // ...
-    if (I want to erase *(i+1))
-        i = fl.erase_after(i);
-    else
-        ++i;
-    ip1 = i;
-}
-</pre></blockquote>
-<p>
-In the above example code, it is convenient if <tt>erase_after</tt> returns
-the element <i>prior</i> to the erased element (range) instead of the element
-<i>after</i> the erase element (range).
-</p>
-<p>
-Existing practice:
-</p>
-<ul>
-<li>SGI slist returns an iterator referencing the element <i>after</i> the erased range.</li>
-<li>CodeWarrior slist returns an iterator referencing the element <i>before</i> the erased range.</li>
-</ul>
-<p>
-There is not a strong technical argument for either solution over the other.
-</p>
-</li>
-
-<li>
-<p>
-With all other containers, operations always work on the range
-<tt>[first, last)</tt> and/or <i>prior to</i> the given <tt>position</tt>.
-</p>
-<p>
-With <tt>forward_list</tt>, operations sometimes work on the range
-<tt>(first, last]</tt> and/or <i>after</i> the given <tt>position</tt>.
-</p>
-<p>
-This is simply due to the fact that in order to operate on
-<tt>*first</tt> (with <tt>forward_list</tt>) one needs access to
-<tt>*(first-1)</tt>.  And that's not practical with
-<tt>forward_list</tt>.  So the operating range needs to start with <tt>(first</tt>,
-not <tt>[first</tt> (as the current working paper says). 
-</p>
-<p>
-Additionally, if one is interested in  splicing the range <tt>(first, last)</tt>,
-then (with <tt>forward_list</tt>), one needs practical (constant time) access to
-<tt>*(last-1)</tt> so that one can set the <i>next</i> field in this node to
-the proper value.  As this is not possible with <tt>forward_list</tt>, one must
-specify the last element of interest instead of one past the last element of
-interest.  The syntax for doing this is to pass <tt>(first, last]</tt> instead
-of <tt>(first, last)</tt>.
-</p>
-<p>
-With <tt>erase_after</tt> we have a choice of either erasing the range
-<tt>(first, last]</tt> <em>or</em> <tt>(first, last)</tt>.  Choosing the latter
-enables:
-</p>
-<blockquote><pre>
-x.erase_after(pos, x.end());
-</pre></blockquote>
-
-<p>
-With the former, the above statement is inconvenient or expensive due to the lack
-of constant time access to <tt>x.end()-1</tt>.  However we could introduce:
-</p>
-
-<blockquote><pre>
-iterator erase_to_end(const_iterator position);
-</pre></blockquote>
-
-<p>
-to compensate.
-</p>
-
-<p>
-The advantage of the former (<tt>(first, last]</tt>) for <tt>erase_after</tt>
-is a consistency with <tt>splice_after</tt> which uses <tt>(first, last]</tt>
-as the specified range.  But this either requires the addition of <tt>erase_to_end</tt>
-or giving up such functionality.
-</p>
-
-</li>
-
-<li>
-As stated in the discussion of <a href="lwg-closed.html#892">892</a>, and reienforced by point 2 above,
-a <tt>splice_after</tt> should work on the source range <tt>(first, last]</tt>
-if the operation is to be <i>&#927;</i>(1).  When splicing an entire list <tt>x</tt> the
-algorithm needs <tt>(x.before_begin(), x.end()-1]</tt>.  Unfortunately <tt>x.end()-1</tt>
-is not available in constant time unless we specify that it must be.  In order to
-make <tt>x.end()-1</tt> available in constant time, the implementation would have
-to dedicate a pointer to it.  I believe the design of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2543.htm">N2543</a>
-intended a nominal overhead of <tt>foward_list</tt> of 1 pointer.  Thus splicing
-one <i>entire</i> <tt>forward_list</tt> into another can not be <i>&#927;</i>(1).
-</li>
-</ol>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote>
-<p>
-We may need a new issue to correct splice_after, because it may no
-longer be correct to accept an rvalues as an argument. Merge may be
-affected, too. This might be issue <a href="lwg-defects.html#1133">1133</a>. (Howard: confirmed)
-</p>
-<p>
-Move this to Ready, but the Requires clause of the second form of
-splice_after should say "(first, last)," not "(first, last]" (there are
-three occurrences). There was considerable discussion on this. (Howard: fixed)
-</p>
-<p>
-Alan suggested removing the "foward_last&lt;T. Alloc&gt;&amp;&amp; x"
-parameter from the second form of splice_after, because it is redundant.
-PJP wanted to keep it, because it allows him to check for bad ranges
-(i.e. "Granny knots").
-</p>
-<p>
-We prefer to keep <tt>x</tt>.
-</p>
-<p>
-Beman. Whenever we deviate from the customary half-open range in the
-specification, we should add a non-normative comment to the standard
-explaining the deviation. This clarifies the intention and spares the
-committee much confusion in the future.
-</p>
-<p>
-Alan to write a non-normative comment to explain the use of fully-closed ranges.
-</p>
-<p>
-Move to Ready, with the changes described above. (Howard: awaiting note from Alan)
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>, addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2988.pdf">N2988</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Wording below assumes issue <a href="lwg-defects.html#878">878</a> is accepted, but this issue is
-independent of that issue.
-</p>
-
-<p>
-Change 23.3.4.5 [forwardlist.modifiers]:
-</p>
-
-<blockquote>
-<pre>
-iterator erase_after(const_iterator position);
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> The iterator following <tt>position</tt> is dereferenceable.
-</p>
-<p>
-<i>Effects:</i> Erases the element pointed to by the iterator following <tt>position</tt>.
-</p>
-<p>
-<i>Returns:</i> <del>An iterator pointing to the element following the one that was erased, or <tt>end()</tt> if no such 
-element exists</del>
-<ins>An iterator equal to <tt>position</tt></ins>.
-</p>
-</blockquote>
-
-
-<pre>
-iterator erase_after(const_iterator position, <ins>const_</ins>iterator last);
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> All iterators in the range
-<tt><del>[</del><ins>(</ins>position,last)</tt>
-are dereferenceable.
-</p>
-<p>
-<i>Effects:</i> Erases the elements in the range
-<tt><del>[</del><ins>(</ins>position,last)</tt>.
-</p>
-<p>
-<i>Returns:</i>  <ins>An iterator equal to <tt>position</tt></ins> <del><tt>last</tt></del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 23.3.4.6 [forwardlist.ops]:
-</p>
-
-<blockquote>
-<pre>
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>position</tt> is <tt>before_begin()</tt> or a
-dereferenceable iterator in the range <tt>[begin(), end))</tt>. <tt>&amp;x != this</tt>.
-</p>
-<p>
-<i>Effects:</i> Inserts the contents of <tt>x</tt> after <tt>position</tt>, and
-<tt>x</tt> becomes empty. Pointers and references to 
-the moved elements of <tt>x</tt> now refer to those same elements but as members of <tt>*this</tt>.
-Iterators referring to the moved elements will continue to refer to their elements,
-but they now behave as iterators into <tt>*this</tt>, not into <tt>x</tt>. 
-</p>
-<p>
-<i>Throws:</i> Nothing. 
-</p>
-<p>
-<i>Complexity:</i> <del><i>&#927;</i>(1)</del> <ins><i>&#927;</i>(<tt>distance(x.begin(), x.end())</tt>)</ins>
-</p>
-</blockquote>
-
-<p>...</p>
-
-<pre>
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp;&amp; x, 
-                  const_iterator first, const_iterator last);
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>position</tt> is <tt>before_begin()</tt> or a
-dereferenceable iterator in the range <tt>[begin(), end))</tt>.
-<tt>(first,last)</tt> is a valid range in
-<tt>x</tt>, and all iterators in the range
-<tt>(first,last)</tt> are dereferenceable.
-<tt>position</tt> is not an iterator in the range <tt>(first,last)</tt>.
-</p>
-<p>
-<i>Effects:</i> Inserts elements in the range <tt>(first,last)</tt>
-after <tt>position</tt> and removes the elements from <tt>x</tt>.
-Pointers and references to the moved elements of <tt>x</tt> now refer to
-those same elements but as members of <tt>*this</tt>. Iterators
-referring to the moved elements will continue to refer to their
-elements, but they now behave as iterators into <tt>*this</tt>, not into
-<tt>x</tt>.
-</p>
-<p>
-<ins><i>Complexity:</i> <i>&#927;</i>(1).</ins>
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="898"></a>898. Small contradiction in n2723 to forward to committee</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Arch Robison <b>Opened:</b> 2008-09-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I ran across a small contradiction in working draft n2723. 
-</p>
-<blockquote>
-<p>
-23.3.4 [forwardlist]p2: A <tt>forward_list</tt> satisfies all of the
-requirements of a container (table 90), except that the <tt>size()</tt> member
-function is not provided.
-</p>
-<p>
-23.3.4.6 [forwardlist.ops]p57: <i>Complexity:</i> At most <tt>size() + x.size() - 1</tt>
-comparisons.
-</p>
-</blockquote>
-<p>
-Presumably 23.3.4.6 [forwardlist.ops]p57 needs to be rephrased to not use
-<tt>size()</tt>, or note that it is used there only for sake of notational convenience. 
-</p>
-
-<p><i>[
-2009-03-29 Beman provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>Change 23.3.4.6 [forwardlist.ops],
-forward_list operations, paragraph 19, merge complexity as indicated:
-</i></p>
-<blockquote><p>
-<i>Complexity:</i> At most <tt><del>size() + x.size()</del>
-<ins>distance(begin(), end()) + distance(x.begin(), x.end())</ins> - 1</tt>
-comparisons.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="899"></a>899. Adjusting <tt>shared_ptr</tt> for <tt>nullptr_t</tt></h3>
-<p><b>Section:</b> 20.8.2.2.2 [util.smartptr.shared.dest] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2008-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.dest">issues</a> in [util.smartptr.shared.dest].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-James Dennett, message c++std-lib-22442:
-</p>
-<blockquote><p>
-The wording below addresses one case of this, but opening an
-issue to address the need to sanity check uses of the term "pointer"
-in 20.8.2.2 [util.smartptr.shared] would be a good thing.
-</p></blockquote>
-<p>
-There's one more reference, in <tt>~shared_ptr;</tt> we can apply your suggested change to it, too. That is:
-</p>
-<p>
-Change 20.8.2.2.2 [util.smartptr.shared.dest]/1 second bullet from:
-</p>
-<blockquote><p>
-Otherwise, if *this owns a pointer p and a deleter d, d(p) is called.
-</p></blockquote>
-<p>
-to:
-</p>
-<blockquote><p>
-Otherwise, if *this owns an object p and a deleter d, d(p) is called.
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Review.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Peter Dimov notes the analogous change has already been made
-to "the new <tt>nullptr_t</tt> taking constructors
-in 20.8.2.2.1 [util.smartptr.shared.const] p9-13."
-</p>
-<p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.2.2.2 [util.smartptr.shared.dest] p1 second bullet:
-</p>
-<blockquote>
-<ul>
-<li>...</li>
-<li>
-Otherwise, if <tt>*this</tt> <i>owns</i> <del>a pointer</del>
-<ins>an object</ins> <tt>p</tt> and a
-deleter <tt>d</tt>, <tt>d(p)</tt> is called.
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="900"></a>900. Stream move-assignment</h3>
-<p><b>Section:</b> 27.9.1.8 [ifstream.assign] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2008-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It appears that we have an issue similar to issue <a href="lwg-defects.html#675">675</a> regarding the move-assignment of
-stream types. For example, when assigning to an <tt>std::ifstream</tt>, <tt>ifstream1</tt>, it 
-seems preferable to close the file originally held by <tt>ifstream1</tt>:
-</p>
-
-<blockquote><pre>
-ifstream1 = std::move(ifstream2); 
-</pre></blockquote>
-
-<p>
-The current Draft
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>)
-specifies that the move-assignment of stream types like <tt>ifstream</tt> has the 
-same effect as a swap:
-</p>
-
-<blockquote>
-<p>
-Assign and swap 27.9.1.8 [ifstream.assign]
-</p>
-<pre>
-basic_ifstream&amp; operator=(basic_ifstream&amp;&amp; rhs); 
-</pre>
-<blockquote><p>
-<i>Effects:</i> <tt>swap(rhs)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard agrees with the analysis and the direction proposed.
-</p>
-<p>
-Move to Open pending specific wording to be supplied by Howard.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Howard is going to write wording.
-</p></blockquote>
-
-<p><i>[
-2009-07-26 Howard provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-09-13 Niels adds:
-]</i></p>
-
-
-<blockquote><p>
-Note: The proposed change of 27.9.1.3 [filebuf.assign] p1 depends on the
-resolution of LWG <a href="lwg-defects.html#1204">1204</a>, which allows implementations to assume that
-<tt>*this</tt> and <tt>rhs</tt> refer to different objects.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave as Open.  Too closely related to <a href="lwg-defects.html#911">911</a> to move on at this time.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 27.8.2.2 [stringbuf.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_stringbuf&amp; operator=(basic_stringbuf&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>After the move assignment <tt>*this</tt> reflects the same observable
-state it would have if it had been move constructed from <tt>rhs</tt>
-(27.8.2.1 [stringbuf.cons]).
-</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.8.3.2 [istringstream.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_istringstream&amp; operator=(basic_istringstream&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Move assigns the base and members of <tt>*this</tt> with the respective
-base and members of <tt>rhs</tt>.
-</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.8.4.2 [ostringstream.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_ostringstream&amp; operator=(basic_ostringstream&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Move assigns the base and members of <tt>*this</tt> with the respective
-base and members of <tt>rhs</tt>.
-</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.8.5.2 [stringstream.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_stringstream&amp; operator=(basic_stringstream&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Move assigns the base and members of <tt>*this</tt> with the respective
-base and members of <tt>rhs</tt>.
-</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.9.1.3 [filebuf.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_filebuf&amp; operator=(basic_filebuf&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Begins by calling <tt>this-&gt;close()</tt>.
-After the move assignment <tt>*this</tt> reflects the same observable
-state it would have if it had been move constructed from <tt>rhs</tt>
-(27.9.1.2 [filebuf.cons]).
-</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.9.1.8 [ifstream.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_ifstream&amp; operator=(basic_ifstream&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Move assigns the base and members of <tt>*this</tt> with the respective
-base and members of <tt>rhs</tt>.</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.9.1.12 [ofstream.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_ofstream&amp; operator=(basic_ofstream&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Move assigns the base and members of <tt>*this</tt> with the respective
-base and members of <tt>rhs</tt>.</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.9.1.16 [fstream.assign]/1:
-</p>
-
-<blockquote><pre>
-basic_fstream&amp; operator=(basic_fstream&amp;&amp; rhs);
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del><tt>swap(rhs)</tt>.</del>
-<ins>Move assigns the base and members of <tt>*this</tt> with the respective
-base and members of <tt>rhs</tt>.</ins>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="904"></a>904. <tt>result_of</tt> argument types</h3>
-<p><b>Section:</b> X [func.ret] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2008-09-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.ret">issues</a> in [func.ret].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The WP and TR1 have the same text regarding the argument types of a
-<tt>result_of</tt> expression:
-</p>
-<blockquote><p>
-The values <tt>ti</tt> are lvalues when the corresponding type <tt>Ti</tt> is a
-reference type, and rvalues otherwise.
-</p></blockquote>
-<p>
-I read this to mean that this compiles:
-</p>
-<blockquote><pre>
-typedef int (*func)(int&amp;);
-result_of&lt;func(int&amp;&amp;)&gt;::type i = 0;
-</pre></blockquote>
-<p>
-even though this doesn't:
-</p>
-<blockquote><pre>
-int f(int&amp;);
-f( std::move(0) );
-</pre></blockquote>
-<p>
-Should the text be updated to say "when <tt>Ti</tt> is an lvalue-reference
-type" or am I missing something?
-</p>
-<p>
-I later came up with this self-contained example which won't compile,
-but I think it should:
-</p>
-<blockquote><pre>
-struct X {
-  void operator()(int&amp;);
-  int operator()(int&amp;&amp;);
-} x;
-
-std::result_of&lt; X(int&amp;&amp;) &gt;::type i = x(std::move(0));
-</pre></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change X [func.ret], p1:
-</p>
-
-<blockquote><p>
-... The values <tt>ti</tt> are lvalues 
-when the corresponding type <tt>Ti</tt> is a<ins>n</ins> <ins>lvalue-</ins>reference type,
-and rvalues otherwise. 
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="907"></a>907. Bitset's immutable element retrieval is inconsistently defined</h3>
-<p><b>Section:</b> 20.6.2 [bitset.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.members">issues</a> in [bitset.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current standard 14882::2003(E) as well as the current draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-have in common a contradiction of the operational semantics of member function 
-<tt>test</tt> 20.6.2 [bitset.members] p.56-58 and the immutable
-member <tt>operator[]</tt> overload 20.6.2 [bitset.members] p.64-66 (all references
-are defined in terms of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>):
-</p>
-
-<ol>
-<li><pre>
-bool test(size_t pos) const;
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>pos</tt> is valid
-</p>
-<p>
-<i>Throws:</i> <tt>out_of_range</tt> if <tt>pos</tt> does not correspond
-to a valid bit position.
-</p>
-<p>
-<i>Returns:</i> <tt>true</tt> if the bit at position <tt>pos</tt> in <tt>*this</tt>
-has the value one.
-</p>
-</blockquote>
-</li>
-<li><pre>
-constexpr bool operator[](size_t pos) const;
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>pos</tt> shall be valid.
-</p>
-<p>
-<i>Throws:</i> nothing.
-</p>
-<p>
-<i>Returns:</i> <tt>test(pos)</tt>.
-</p>
-</blockquote>
-</li>
-</ol>
-
-<p>
-Three interpretations:
-</p>
-
-<ol style="list-style-type:upper-alpha">
-<li>
-The <tt>operator[]</tt> overload is indeed allowed to throw an exception
-(via <tt>test()</tt>, if <tt>pos</tt> corresponds to an invalid bit position) which does
-not leave the call frame. In this case this function cannot be a
-<tt>constexpr</tt> function, because <tt>test()</tt> is not, due to
-5.20 [expr.const]/2, last bullet.
-</li>
-<li>
-The intend was not to throw an exception in <tt>test</tt> in case of an
-invalid bit position. There is only little evidence for this interpretation.
-</li>
-<li>
-The intend was that <tt>operator[]</tt> should not throw any exception,
-but that <tt>test</tt> has the contract to do so, if the provided bit position
-is invalid.
-</li>
-</ol>
-
-<p>
-The problem became worse, because issue <a href="lwg-defects.html#720">720</a>
-recently voted into WP argued that member <tt>test</tt> logically must be
-a <tt>constexpr</tt> function, because it was used to define the semantics
-of another <tt>constexpr</tt> function (the <tt>operator[]</tt> overload).
-</p>
-
-<p>
-Three alternatives are proposed, corresponding to the three bullets
-(A), (B), and (C), the author suggests to follow proposal (C).
-</p>
-
-<p><b>
-Proposed alternatives:
-</b></p>
-
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-Remove the <tt>constexpr</tt> specifier in front of <tt>operator[]</tt> overload and
-undo that of member <tt>test</tt> (assuming <a href="lwg-defects.html#720">720</a> is accepted) in both the
-class declaration 20.6 [template.bitset]/1 and in the member description
-before 20.6.2 [bitset.members]/56 and before /64 to read:
-</p>
-<blockquote><pre>
-<del>constexpr</del> bool test(size_t pos) const;
-..
-<del>constexpr</del> bool operator[](size_t pos) const;
-</pre></blockquote>
-
-<p>
-Change the throws clause of p. 65 to read:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> <del>nothing</del>
-<ins><tt>out_of_range</tt> if <tt>pos</tt> does not correspond to a valid bit
-position</ins>.
-</p></blockquote>
-</li>
-<li>
-<p>
-Replace the throws clause p. 57 to read:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> <del><tt>out_of_range</tt> if <tt>pos</tt> does not correspond to a valid bit
-position</del> <ins>nothing</ins>.
-</p></blockquote>
-</li>
-<li>
-<p>
-Undo the addition of the <tt>constexpr</tt> specifier to the <tt>test</tt> member
-function in both class declaration 20.6 [template.bitset]/1 and in the
-member description before 20.6.2 [bitset.members]/56, assuming that <a href="lwg-defects.html#720">720</a>
-was applied.
-</p>
-
-<blockquote><pre>
-<del>constexpr</del> bool test(size_t pos) const;
-</pre></blockquote>
-
-<p>
-Change the returns clause p. 66 to read:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <del><tt>test(pos)</tt></del> <ins><tt>true</tt> if the bit at position <tt>pos</tt> in <tt>*this</tt>
-has the value one, otherwise <tt>false</tt></ins>.
-</p></blockquote>
-</li>
-</ol>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence: proposed resolutions A, B, C are mutually exclusive.
-</p>
-<p>
-Recommend Review with option C.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol style="list-style-type:upper-alpha">
-<li>[&hellip;]</li>
-<li>[&hellip;]</li>
-<li>
-<p>
-Undo the addition of the <tt>constexpr</tt> specifier to the <tt>test</tt> member
-function in both class declaration 20.6 [template.bitset] p.1 and in the
-member description before 20.6.2 [bitset.members] p.56, assuming that <a href="lwg-defects.html#720">720</a>
-was applied.
-</p>
-
-<blockquote><pre>
-<del>constexpr</del> bool test(size_t pos) const;
-</pre></blockquote>
-
-<p>
-Change the returns clause p. 66 to read:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <del><tt>test(pos)</tt></del> <ins><tt>true</tt> if the bit at position <tt>pos</tt> in <tt>*this</tt>
-has the value one, otherwise <tt>false</tt></ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="908"></a>908. Deleted assignment operators for atomic types must be volatile</h3>
-<p><b>Section:</b> X [atomics.types] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2008-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 90</b></p>
-
-<p>
-The deleted copy-assignment operators for the atomic types are not
-marked as volatile in N2723, whereas the assignment operators from the
-associated non-atomic types are. e.g.
-</p>
-<blockquote><pre>
-atomic_bool&amp; operator=(atomic_bool const&amp;) = delete;
-atomic_bool&amp; operator=(bool) volatile;
-</pre></blockquote>
-
-<p>
-This leads to ambiguity when assigning a non-atomic value to a
-non-volatile instance of an atomic type:
-</p>
-<blockquote><pre>
-atomic_bool b;
-b=false;
-</pre></blockquote>
-
-<p>
-Both assignment operators require a standard conversions: the
-copy-assignment operator can use the implicit <tt>atomic_bool(bool)</tt>
-conversion constructor to convert <tt>false</tt> to an instance of
-<tt>atomic_bool</tt>, or <tt>b</tt> can undergo a qualification conversion in order to
-use the assignment from a plain <tt>bool</tt>.
-</p>
-
-<p>
-This is only a problem once issue <a href="lwg-defects.html#845">845</a> is applied.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Move to open. Assign to Lawrence. Related to US 90 comment.
-</p></blockquote>
-
-<p><i>[
-2009-08-17 Handled by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2925.html">N2925</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add volatile qualification to the deleted copy-assignment operator of
-all the atomic types:
-</p>
-
-<blockquote><pre>
-atomic_bool&amp; operator=(atomic_bool const&amp;) <ins>volatile</ins> = delete;
-atomic_itype&amp; operator=(atomic_itype const&amp;) <ins>volatile</ins> = delete;
-</pre></blockquote>
-
-<p>
-etc.
-</p>
-<p>
-This will mean that the deleted copy-assignment operator will require
-<i>two</i> conversions in the above example, and thus be a worse match than
-the assignment from plain <tt>bool</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="909"></a>909. <tt>regex_token_iterator</tt> should use <tt>initializer_list</tt></h3>
-<p><b>Section:</b> 28.12.2 [re.tokiter] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2008-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.tokiter">issues</a> in [re.tokiter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 319</b></p>
-<p>
-Construction of a <tt>regex_token_iterator</tt> (28.12.2 [re.tokiter]/6+) usually
-requires the provision of a sequence of integer values, which
-can currently be done via a <tt>std::vector&lt;int&gt;</tt> or
-a C array of <tt>int</tt>. Since the introduction of <tt>initializer_list</tt> in the
-standard it seems much more reasonable to provide a
-corresponding constructor that accepts an <tt>initializer_list&lt;int&gt;</tt>
-instead. This could be done as a pure addition or one could
-even consider replacement. The author suggests the
-replacement strategy (A), but provides an alternative additive
-proposal (B) as a fall-back, because of the handiness of this
-range type:
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We strongly recommend alternative B of the proposed resolution
-in order that existing code not be broken.
-With that understanding, move to Tentatively Ready.
-</p></blockquote>
-
-<p><b>Original proposed wording:</b></p>
-
-<ol style="list-style-type:upper-alpha">
-<li><br/>
-<ol>
-<li>
-<p>
-In 28.12.2 [re.tokiter]/6 and the list 28.12.2.1 [re.tokiter.cnstr]/10-11 change the
-constructor declaration:
-</p>
-
-<blockquote><pre>
-<del>template &lt;std::size_t N&gt;</del>
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     <del>const int (&amp;submatches)[N]</del> <ins>initializer_list&lt;int&gt; submatches</ins>,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 28.12.2.1 [re.tokiter.cnstr]/12 change the last sentence
-</p>
-
-<blockquote><p>
-The third constructor initializes the member <tt>subs</tt> to hold
-a copy of the sequence of integer values pointed to by the
-iterator range <tt>[<del>&amp;</del>submatches<ins>.begin()</ins>,
-<del>&amp;</del>submatches<ins>.end()</ins> <del>+ N</del>)</tt>.
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-<li><br/>
-<ol>
-<li>
-<p>
-In 28.12.2 [re.tokiter]/6 and the list 28.12.2.1 [re.tokiter.cnstr]/10-11 <em>insert</em> the
-following constructor declaration between the already existing ones
-accepting a <tt>std::vector</tt> and a C array of <tt>int</tt>, resp.:
-</p>
-
-<blockquote><pre>
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     initializer_list&lt;int&gt; submatches,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 28.12.2.1 [re.tokiter.cnstr]/12 change the last sentence
-</p>
-
-<blockquote><p>
-The third <ins>and fourth</ins> constructor initialize<del>s</del> the member <tt>subs</tt>
-to hold a copy of the sequence of integer values pointed to
-by the iterator range <tt>[&amp;submatches,&amp;submatches + N)</tt>
-<ins>and <tt>[submatches.begin(),submatches.end())</tt>, respectively</ins>.
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-</ol>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol style="list-style-type:upper-alpha">
-<li>[&hellip;]</li>
-<li><br/>
-<ol>
-<li>
-<p>
-In 28.12.2 [re.tokiter]/6 and the list 28.12.2.1 [re.tokiter.cnstr]/10-11 <em>insert</em> the
-following constructor declaration between the already existing ones
-accepting a <tt>std::vector</tt> and a C array of <tt>int</tt>, resp.:
-</p>
-
-<blockquote><pre>
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     initializer_list&lt;int&gt; submatches,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 28.12.2.1 [re.tokiter.cnstr]/12 change the last sentence
-</p>
-
-<blockquote><p>
-The third <ins>and fourth</ins> constructor initialize<del>s</del> the member <tt>subs</tt>
-to hold a copy of the sequence of integer values pointed to
-by the iterator range <tt>[&amp;submatches,&amp;submatches + N)</tt>
-<ins>and <tt>[submatches.begin(),submatches.end())</tt>, respectively</ins>.
-</p></blockquote>
-</li>
-</ol>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="911"></a>911. I&#47;O streams and <tt>move&#47;swap</tt> semantic</h3>
-<p><b>Section:</b> 27.7.2 [input.streams], 27.7.3 [output.streams] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2008-09-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class template <tt>basic_istream</tt>, <tt>basic_ostream</tt> and <tt>basic_iostream</tt>
-implements public move constructors, move assignment operators and <tt>swap</tt>
-method and free functions. This might induce both the user and the
-compiler to think that those types are <tt>MoveConstructible</tt>, <tt>MoveAssignable</tt>
-and <tt>Swappable</tt>. However, those class templates fail to fulfill the user
-expectations. For example:
-</p>
-
-<blockquote><pre>
-std::ostream os(std::ofstream("file.txt"));
-assert(os.rdbuf() == 0); // buffer object is not moved to os, file.txt has been closed
-
-std::vector&lt;std::ostream&gt; v;
-v.push_back(std::ofstream("file.txt"));
-v.reserve(100); // causes reallocation
-assert(v[0].rdbuf() == 0); // file.txt has been closed!
-
-std::ostream&amp;&amp; os1 = std::ofstream("file1.txt");
-os1 = std::ofstream("file2.txt");
-os1 &lt;&lt; "hello, world"; // still writes to file1.txt, not to file2.txt!
-
-std::ostream&amp;&amp; os1 = std::ofstream("file1.txt");
-std::ostream&amp;&amp; os2 = std::ofstream("file2.txt");
-std::swap(os1, os2);
-os1 &lt;&lt; "hello, world"; // writes to file1.txt, not to file2.txt!
-</pre></blockquote>
-
-<p>
-This is because the move constructor, the move assignment operator and
-<tt>swap</tt> are all implemented through calls to <tt>std::basic_ios</tt> member
-functions <tt>move()</tt> and <tt>swap()</tt> that do not move nor swap the controlled
-stream buffers. That can't happen because the stream buffers may have
-different types.
-</p>
-
-<p>
-Notice that for <tt>basic_streambuf</tt>, the member function <tt>swap()</tt> is
-protected. I believe that is correct and all of <tt>basic_istream</tt>,
-<tt>basic_ostream</tt>, <tt>basic_iostream</tt> should do the same as the move ctor, move
-assignment operator and swap member function are needed by the derived
-<tt>fstream</tt>s and <tt>stringstream</tt>s template. The free swap functions for
-<tt>basic_(i|o|io)stream</tt> templates should be removed for the same reason.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We note that the rvalue swap functions have already been removed.
-</p>
-<p>
-Bill is unsure about making the affected functions protected;
-he believes they may need to be public.
-</p>
-<p>
-We are also unsure about removing the lvalue swap functions as proposed.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-It's not clear that the use case is compelling.
-</p>
-<p>
-Howard: This needs to be implemented and tested.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-26 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I started out thinking I would recommend NAD for this one.  I've turned around
-to agree with the proposed resolution (which I've updated to the current draft).
-I did not fully understand Ganesh's rationale, and attempt to describe my
-improved understanding below.
-</p>
-
-<p>
-The move constructor, move assignment operator, and swap function are different
-for <tt>basic_istream</tt>, <tt>basic_ostream</tt> and <tt>basic_iostream</tt>
-than other classes.  A timely conversation with Daniel reminded me of this long
-forgotten fact.  These members are sufficiently different that they would be
-extremely confusing to use in general, but they are very much needed for derived
-clients.
-</p>
-
-<ul>
-<li>
-The move constructor moves everything but the <tt>rdbuf</tt> pointer.
-</li>
-<li>
-The move assignment operator moves everything but the <tt>rdbuf</tt> pointer.
-</li>
-<li>
-The swap function swaps everything but the <tt>rdbuf</tt> pointer.
-</li>
-</ul>
-
-<p>
-The reason for this behavior is that for the std-derived classes (stringstreams,
-filestreams), the <tt>rdbuf</tt> pointer points back into the class itself
-(self referencing).  It can't be swapped or moved.  But this fact isn't born out
-at the <tt>stream</tt> level.  Rather it is born out at the <tt>fstream</tt>/<tt>sstream</tt>
-level.  And the lower levels just need to deal with that fact by not messing around
-with the <tt>rdbuf</tt> pointer which is stored down at the lower levels.
-</p>
-
-<p>
-In a nutshell, it is very confusing for all of those who are not so intimately
-related with streams that they've implemented them.  And it is even fairly
-confusing for some of those who have (including myself).  I do not think it is
-safe to swap or move <tt>istreams</tt> or <tt>ostreams</tt> because this will
-(by necessary design) separate stream state from streambuffer state.  Derived
-classes (such as <tt>fstream</tt> and <tt>stringstream</tt> must be used to
-keep the stream state and stream buffer consistently packaged as one unit during
-a move or swap.
-</p>
-
-<p>
-I've implemented this proposal and am living with it day to day.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open.  Pablo expected to propose alternative wording which would rename
-move construction, move assignment and swap, and may or may not make them
-protected.  This will impact issue <a href="lwg-defects.html#900">900</a>.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-27.7.2.1 [istream]: make the following member functions protected:
-</p>
-
-<blockquote><pre>
-basic_istream(basic_istream&amp;&amp;  rhs);
-basic_istream&amp;  operator=(basic_istream&amp;&amp;  rhs);
-void  swap(basic_istream&amp;  rhs);
-</pre></blockquote>
-
-<p>
-Ditto: remove the swap free function signature
-</p>
-
-<blockquote><pre>
-<del>// swap: 
-template &lt;class charT, class traits&gt; 
-  void swap(basic_istream&lt;charT, traits&gt;&amp; x, basic_istream&lt;charT, traits&gt;&amp; y);</del>
-</pre></blockquote>
-
-<p>
-27.7.2.1.2 [istream.assign]: remove paragraph 4
-</p>
-
-<blockquote><pre>
-<del>template &lt;class charT, class traits&gt; 
-  void swap(basic_istream&lt;charT, traits&gt;&amp; x, basic_istream&lt;charT, traits&gt;&amp; y);</del>
-</pre>
-<blockquote><p>
-<del><i>Effects:</i> <tt>x.swap(y)</tt>.</del>
-</p></blockquote>
-</blockquote>
-
-<p>
-27.7.2.5 [iostreamclass]: make the following member function protected:
-</p>
-
-<blockquote><pre>
-basic_iostream(basic_iostream&amp;&amp;  rhs);
-basic_iostream&amp;  operator=(basic_iostream&amp;&amp;  rhs);
-void  swap(basic_iostream&amp;  rhs);
-</pre></blockquote>
-
-<p>
-Ditto: remove the swap free function signature
-</p>
-
-<blockquote><pre>
-<del>template &lt;class charT, class traits&gt; 
-  void swap(basic_iostream&lt;charT, traits&gt;&amp; x, basic_iostream&lt;charT, traits&gt;&amp; y);</del>
-</pre></blockquote>
-
-<p>
-27.7.2.5.3 [iostream.assign]: remove paragraph 3
-</p>
-
-<blockquote><pre>
-<del>template &lt;class charT, class traits&gt; 
-  void swap(basic_iostream&lt;charT, traits&gt;&amp; x, basic_iostream&lt;charT, traits&gt;&amp; y);</del>
-</pre>
-<blockquote><p>
-<del><i>Effects:</i> <tt>x.swap(y)</tt>.</del>
-</p></blockquote>
-</blockquote>
-
-<p>
-27.7.3.1 [ostream]: make the following member function protected:
-</p>
-
-<blockquote><pre>
-basic_ostream(basic_ostream&amp;&amp;  rhs);
-basic_ostream&amp;  operator=(basic_ostream&amp;&amp;  rhs);
-void  swap(basic_ostream&amp;  rhs);
-</pre></blockquote>
-
-<p>
-Ditto: remove the swap free function signature
-</p>
-
-<blockquote><pre>
-<del>// swap: 
-template &lt;class charT, class traits&gt; 
-  void swap(basic_ostream&lt;charT, traits&gt;&amp; x, basic_ostream&lt;charT, traits&gt;&amp; y);</del>
-</pre></blockquote>
-
-<p>
-27.7.3.3 [ostream.assign]: remove paragraph 4 
-</p>
-
-<blockquote><pre>
-<del>template &lt;class charT, class traits&gt; 
-  void swap(basic_ostream&lt;charT, traits&gt;&amp; x, basic_ostream&lt;charT, traits&gt;&amp; y);</del>
-</pre>
-<blockquote><p>
-<del><i>Effects:</i> <tt>x.swap(y)</tt>.</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="920"></a>920. Ref-qualification support in the library</h3>
-<p><b>Section:</b> 20.9.11 [func.memfn] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Bronek Kozicki <b>Opened:</b> 2008-10-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.memfn">issues</a> in [func.memfn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1230">1230</a></p>
-<p><b>Discussion:</b></p>
-<p>
-Daniel Kr&uuml;gler wrote:
-</p>
-
-<blockquote>
-<p>
-Shouldn't above list be completed for &amp;- and &amp;&amp;-qualified
-member functions This would cause to add:
-</p>
-<blockquote><pre>
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) &amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) const &amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) volatile &amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) const volatile &amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) &amp;&amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) const &amp;&amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) volatile &amp;&amp;);
-template&lt;Returnable R, class T, CopyConstructible... Args&gt;
-unspecified mem_fn(R (T::* pm)(Args...) const volatile &amp;&amp;);
-</pre></blockquote>
-
-</blockquote>
-
-<p>
-yes, absolutely. Thanks for spotting this. Without this change <tt>mem_fn</tt>
-cannot be initialized from pointer to ref-qualified member function. I
-believe semantics of such function pointer is well defined.
-</p>
-
-<p><i>[
-Post Summit Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We need to think about whether we really want to go down the proposed path
-of combinatorial explosion.
-Perhaps a Note would suffice.
-</p>
-<p>
-We would really like to have an implementation before proceeding.
-</p>
-<p>
-Move to Open, and recommend this be deferred until after the next
-Committee Draft has been issued.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-10 Daniel updated wording to post-concepts.
-]</i></p>
-
-
-<blockquote><p>
-<a href="lwg-closed.html#1230">1230</a> has a similar proposed resolution
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 20.9 [function.objects]/2, header
-<tt>&lt;functional&gt;</tt> synopsis as follows:
-</p>
-
-<blockquote><pre>
-// 20.7.14, member function adaptors:
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::*);
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...));</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) const);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile);</ins>
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) &amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) const &amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &amp;);</ins>
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) &amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) const &amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &amp;&amp;);</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change the prototype list of 20.9.11 [func.memfn] as follows [NB: The
-following text, most notably p.2 and p.3 which
-discuss influence of the cv-qualification on the definition of the
-base class's first template parameter remains
-unchanged. ]:
-</p>
-
-<blockquote><pre>
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::* pm);
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...));</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile);</ins>
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) &amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const &amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile &amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile &amp;);</ins>
-
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) &amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const &amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) volatile &amp;&amp;);</ins>
-<ins>template&lt;class R, class T, class ...Args&gt; <i>unspecified</i> mem_fn(R (T::* pm)(Args...) const volatile &amp;&amp;);</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Remove 20.9.11 [func.memfn]/5:
-</p>
-
-<blockquote><p>
-<del><i>Remarks:</i> Implementations may implement <tt>mem_fn</tt> as a set of
-overloaded function templates.</del>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="921"></a>921. Rational Arithmetic should use template aliases</h3>
-<p><b>Section:</b> 20.11.3 [ratio.ratio] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2008-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.ratio">issues</a> in [ratio.ratio].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The compile-time functions that operate on <tt>ratio&lt;N,D&gt;</tt> require the
-cumbersome and error-prone "evaluation" of a <tt>type</tt> member using a
-meta-programming style that predates the invention of template aliases.
-Thus, multiplying three ratios <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> requires the expression:
-</p>
-
-<blockquote><pre>
-ratio_multiply&lt;a, ratio_multiply&lt;b, c&gt;::type&gt;::type
-</pre></blockquote>
-
-<p>
-The simpler expression:
-</p>
-
-<blockquote><pre>
-ratio_multiply&lt;a, ratio_multiply&lt;b, c&gt;&gt;
-</pre></blockquote>
-
-<p>
-Could be used by if template aliases were employed in the definitions.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Jens: not a complete proposed resolution: "would need to make similar change"
-</p>
-<p>
-Consensus: We agree with the direction of the issue.
-</p>
-<p>
-Recommend Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-11 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Personally I'm <em>not</em> in favor for the addition of:
-</p>
-<blockquote><pre>
-typedef ratio type;
-</pre></blockquote>
-<p>
-For a reader of the standard it's usage or purpose is unclear. I haven't 
-seen similar examples of attempts to satisfy non-feature complete compilers.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-11 Pablo adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The addition of type to the <tt>ratio</tt> template allows the previous style
-(i.e., in the prototype implementations) to remain valid and permits the
-use of transitional library implementations for C++03 compilers.  I do
-not feel strongly about its inclusion, however, and leave it up to the
-reviewers to decide.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Bill asks for additional discussion in the issue
-that spells out more details of the implementation.
-Howard points us to issue <a href="lwg-defects.html#948">948</a>
-which has at least most of the requested details.
-Tom is strongly in favor of overflow-checking at compile time.
-Pete points out that there is no change of functionality implied.
-We agree with the proposed resolution,
-but recommend moving the issue to Review
-to allow time to improve the discussion if needed.
-</p></blockquote>
-
-<p><i>[
-2009-07-21 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-See <a href="lwg-active.html#1121">1121</a> for a potentially incompatible proposal.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
- 
- <ol>
-<li>
-<p>
-In 20.11 [ratio] p.3 change as indicated:
-</p>
-
-<blockquote><pre>
-// ratio arithmetic
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_add<ins> = <em>see below</em></ins>;
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_subtract<ins> = <em>see below</em></ins>;
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_multiply<ins> = <em>see below</em></ins>;
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_divide<ins> = <em>see below</em></ins>;
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.11.3 [ratio.ratio], change as indicated:
-</p>
-<blockquote><pre>
-namespace std {
-  template &lt;intmax_t N, intmax_t D = 1&gt;
-  class ratio {
-  public:
-    <ins>typedef ratio type;</ins>
-    static const intmax_t num;
-    static const intmax_t den;
-  };
-}
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.11.4 [ratio.arithmetic] change as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_add<ins> = <em>see below</em></ins><del>{
-  typedef <em>see below</em> type;
-}</del>;
-</pre>
-
-<blockquote>
-<p>
-1 The <del>nested typedef</del> type <tt><ins>ratio_add&lt;R1, R2&gt;</ins></tt>
-shall be a synonym for <tt>ratio&lt;T1, T2&gt;</tt>
-where <tt>T1</tt> has the value <tt>R1::num * R2::den + R2::num * R1::den</tt> and <tt>T2</tt>
-has the value <tt>R1::den * R2::den</tt>.
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_subtract<ins> = <em>see below</em></ins><del>{
-  typedef <em>see below</em> type;
-}</del>;
-</pre>
-<blockquote>
-<p>
-2 The <del>nested typedef</del> type <tt><ins>ratio_subtract&lt;R1, R2&gt;</ins></tt>
-shall be a synonym for <tt>ratio&lt;T1, T2&gt;</tt>
-where <tt>T1</tt> has the value <tt>R1::num * R2::den - R2::num * R1::den</tt> and <tt>T2</tt>
-has the value <tt>R1::den * R2::den</tt>.
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_multiply<ins> = <em>see below</em></ins><del>{
-  typedef <em>see below</em> type;
-}</del>;
-</pre>
-<blockquote>
-<p>
-3 The <del>nested typedef</del> type <tt><ins>ratio_multiply&lt;R1, R2&gt;</ins></tt>
-shall be a synonym for <tt>ratio&lt;T1, T2&gt;</tt>
-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>.
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; <del>struct</del><ins>using</ins> ratio_divide<ins> = <em>see below</em></ins><del>{
-  typedef <em>see below</em> type;
-}</del>;
-</pre>
-<blockquote>
-<p>
-4 The <del>nested typedef</del> type <tt><ins>ratio_divide&lt;R1, R2&gt;</ins></tt>
-shall be a synonym for <tt>ratio&lt;T1, T2&gt;</tt>
-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>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-In 20.12.5.1 [time.duration.cons] p.4 change as indicated:
-</p>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>treat_as_floating_point&lt;rep&gt;::value</tt> shall be true or
-<tt>ratio_divide&lt;Period2, period&gt;::<del>type::</del>den</tt> shall be 1.[..]
-</p>
-</blockquote>
-</li>
-<li>
-<p>
-In 20.12.5.7 [time.duration.cast] p.2 change as indicated:
-</p>
-<blockquote>
-<p>
-<i>Returns:</i> Let CF be <tt>ratio_divide&lt;Period, typename
-ToDuration::period&gt;<del>::type</del></tt>, and [..]
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="922"></a>922. [func.bind.place] Number of placeholders</h3>
-<p><b>Section:</b> B [implimits] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Sohail Somani <b>Opened:</b> 2008-10-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE 24</b></p>
-
-<p>
-With respect to the section 20.9.10.4 [func.bind.place]:
-</p>
-<p>
-TR1 dropped some suggested implementation quantities for the number of
-placeholders. The purpose of this defect is to put these back for C++0x.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-see DE 24
-</p>
-<p>
-Recommend applying the proposed resolution from DE 24, with that
-Tentatively Ready.
-</p>
-</blockquote>
-<p>
-<b>Original proposed resolution:</b>
-</p>
-<p>
-Add 20.9.10.4 [func.bind.place] p.2:
-</p>
-
-<blockquote><p>
-While the exact number of placeholders (<tt>_M</tt>) is implementation defined,
-this number shall be at least 10.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add to B [implimits]:
-</p>
-
-<ul>
-<li>
-Number of placeholders (20.9.10.4 [func.bind.place]) [10].
-</li>
-</ul>
-
-
-
-
-
-
-<hr>
-<h3><a name="923"></a>923. atomics with floating-point </h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2008-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Right now, C++0x doesn't have <tt>atomic&lt;float&gt;</tt>. We're thinking of adding
-the words to support it for TR2 (note: that would be slightly post-C++0x). If we 
-need it, we could probably add the words.
-</p>
-<p>
-<b>Proposed resolutions:</b> Using <tt>atomic&lt;FP&gt;::compare_exchange</tt> (weak or
-strong) should be either:
-</p>
-
-<ol>
-<li>
-ill-formed, or
-</li>
-<li>
-well-defined.
-</li>
-</ol>
-
-<p>
-I propose Option 1 for C++0x for expediency. If someone wants to argue
-for Option 2, they need to say what exactly they want <tt>compare_exchange</tt>
-to mean in this case (IIRC, C++0x doesn't even assume IEEE 754).
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. Blocked until concepts for atomics are addressed.
-</p></blockquote>
-
-<p><i>[
-Post Summit Anthony adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Recommend NAD. C++0x does have <tt>std::atomic&lt;float&gt;</tt>, and both
-<tt>compare_exchange_weak</tt> and <tt>compare_exchange_strong</tt> are well-defined in
-this case. Maybe change the note in 29.6 [atomics.types.operations] paragraph 20 to:
-</p>
-
-<blockquote>
-<p>
-[<i>Note:</i> The effect of the compare-and-exchange operations is
-</p>
-<blockquote><pre>
-if (!memcmp(object,expected,sizeof(*object)))
-    *object = desired;
-else
-    *expected = *object;
-</pre></blockquote>
-
-<p>
-This may result in failed comparisons for values that compare equal if
-the underlying type has padding bits or alternate representations of
-the same value. <i>-- end note</i>]
-</p>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the note in 29.6 [atomics.types.operations] paragraph 20 to:
-</p>
-
-<blockquote>
-<p>
-[<i>Note:</i> The effect of the compare-and-exchange operations is
-</p>
-<blockquote><pre>
-if (<del>*object == *expected</del> <ins>!memcmp(object,expected,sizeof(*object))</ins>)
-    *object = desired;
-else
-    *expected = *object;
-</pre></blockquote>
-
-<p><ins>
-This may result in failed comparisons for values that compare equal if
-the underlying type has padding bits or alternate representations of
-the same value.</ins> <i>-- end note</i>]
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="924"></a>924. structs with internal padding</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2008-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Right now, the <tt>compare_exchange_weak</tt> loop should rapidly converge on the
-padding contents. But <tt>compare_exchange_strong</tt> will require a bit more
-compiler work to ignore padding for comparison purposes.
-</p>
-<p>
-Note that this isn't a problem for structs with no padding, and we do
-already have one portable way to ensure that there is no padding that
-covers the key use cases: Have elements be the same type. I suspect that
-the greatest need is for a structure of two pointers, which has no
-padding problem. I suspect the second need is a structure of a pointer
-and some form of an integer. If that integer is <tt>intptr_t</tt>, there will be
-no padding.
-</p>
-<p>
-Related but separable issue: For unused bitfields, or other unused
-fields for that matter, we should probably say it's the programmer's
-responsibility to set them to zero or otherwise ensure they'll be
-ignored by <tt>memcmp</tt>.
-</p>
-
-<p>
-<b>Proposed resolution:</b> Using
-<tt>atomic&lt;struct-with-padding&gt;::compare_exchange_strong</tt> should be either:
-</p>
-
-<ol>
-<li>
-ill-formed, or
-</li>
-<li>
-well-defined.
-</li>
-</ol>
-
-<p>
-I propose Option 1 for C++0x for expediency, though I'm not sure how to
-say it. I would be happy with Option 2, which I believe would mean that
-<tt>compare_exchange_strong</tt> would be implemented to avoid comparing padding
-bytes, or something equivalent such as always zeroing out padding when
-loading/storing/comparing. (Either implementation might require compiler
-support.)
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. Blocked until concepts for atomics are addressed.
-</p></blockquote>
-
-<p><i>[
-Post Summit Anthony adds:
-]</i></p>
-
-
-<blockquote><p>
-The resolution of LWG <a href="lwg-defects.html#923">923</a> should resolve this issue as well.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="925"></a>925. <tt>shared_ptr</tt>'s explicit conversion from <tt>unique_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Rodolfo Lima <b>Opened:</b> 2008-10-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current working draft
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>),
-section 20.8.2.2.1 [util.smartptr.shared.const] declares
-<tt>shared_ptr</tt>'s constructor that takes a rvalue reference to <tt>unique_ptr</tt> and
-<tt>auto_ptr</tt> as being explicit, affecting several valid smart pointer use
-cases that would take advantage of this conversion being implicit, for
-example:
-</p>
-
-<blockquote><pre>
-class A;
-std::unique_ptr&lt;A&gt; create();
-void process(std::shared_ptr&lt;A&gt; obj);
-
-int main()
-{
-   process(create());                  // use case #1
-   std::unique_ptr&lt;A&gt; uobj = create();
-   process(std::move(uobj));           // use case #2
-   return 0;
-}
-</pre></blockquote>
-
-<p>
-If <tt>unique_ptr</tt> to <tt>shared_ptr</tt> conversions are explicit, the above lines
-should be written:
-</p>
-
-<blockquote><pre>
-process(std::shared_ptr&lt;A&gt;(create()));        // use case #1
-process(std::shared_ptr&lt;A&gt;(std::move(uobj))); // use case #2
-</pre></blockquote>
-
-<p>
-The extra cast required doesn't seems to give any benefits to the user,
-nor protects him of any unintended conversions, this being the raison
-d'etre of explicit constructors.
-</p>
-
-<p>
-It seems that this constructor was made explicit to mimic the conversion
-from <tt>auto_ptr</tt> in pre-rvalue reference days, which accepts both lvalue and
-rvalue references. Although this decision was valid back then, C++0x
-allows the user to express in a clear and non verbose manner when he wants
-move semantics to be employed, be it implicitly (use case 1) or explicitly
-(use case 2).
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard and Alisdair like the motivating use cases
-and the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In both 20.8.2.2 [util.smartptr.shared] paragraph 1 and 
-20.8.2.2.1 [util.smartptr.shared.const] change:
-</p>
-
-<blockquote><pre>
-template &lt;class Y&gt; <del>explicit</del> shared_ptr(auto_ptr&lt;Y&gt; &amp;&amp;r);
-template &lt;class Y, class D&gt; <del>explicit</del> shared_ptr(unique_ptr&lt;Y, D&gt; &amp;&amp;r);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="929"></a>929. Thread constructor</h3>
-<p><b>Section:</b> 30.3.1.2 [thread.thread.constr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2008-10-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 323</b></p>
-
-<p>
-The <tt>thread</tt> constructor for starting a new thread with a function and
-arguments is overly constrained by the signature requiring rvalue
-references for <tt>func</tt> and <tt>args</tt> and the <tt>CopyConstructible</tt> requirements
-for the elements of <tt>args</tt>. The use of an rvalue reference for the
-function restricts the potential use of a plain function name, since
-the type of the bound parameter will be deduced to be a function
-reference and decay to pointer-to-function will not happen. This
-therefore complicates the implementation in order to handle a simple
-case. Furthermore, the use of rvalue references for args prevents the
-array to pointer decay. Since arrays are not <tt>CopyConstructible</tt> or even
-<tt>MoveConstructible</tt>, this essentially prevents the passing of arrays as
-parameters. In particular it prevents the passing of string literals.
-Consequently a simple case such as
-</p>
-
-<blockquote><pre>
-void f(const char*);
-std::thread t(f,"hello");
-</pre></blockquote>
-
-<p>
-is ill-formed since the type of the string literal is <tt>const char[6]</tt>.
-</p>
-
-<p>
-By changing the signature to take all parameters by value we can
-eliminate the <tt>CopyConstructible</tt> requirement and permit the use of
-arrays, as the parameter passing semantics will cause the necessary
-array-to-pointer decay. They will also cause the function name to
-decay to a pointer to function and allow the implementation to handle
-functions and function objects identically.
-</p>
-
-<p>
-The new signature of the <tt>thread</tt> constructor for a function and
-arguments is thus:
-</p>
-
-<blockquote><pre>
-template&lt;typename F,typename... Args&gt;
-thread(F,Args... args);
-</pre></blockquote>
-
-<p>
-Since the parameter pack <tt>Args</tt> can be empty, the single-parameter
-constructor that takes just a function by value is now redundant.
-</p>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I agree with everything Anthony says in this issue.  However I believe we
-can optimize in such a way as to get the pass-by-value behavior with the
-pass-by-rvalue-ref performance.  The performance difference is that the latter
-removes a <tt>move</tt> when passing in an lvalue.
-</p>
-
-<p>
-This circumstance is very analogous to <tt>make_pair</tt> (20.3 [pairs])
-where we started with passing by const reference, changed to pass by value to
-get pointer decay, and then changed to pass by rvalue reference, but modified with
-<tt>decay&lt;T&gt;</tt> to retain the pass-by-value behavior.  If we were to
-apply the same solution here it would look like:
-</p>
-
-<blockquote><pre>
-<del>template &lt;class F&gt; explicit thread(F f);</del>
-template &lt;class F, class ...Args&gt; thread(F&amp;&amp; f, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>
--4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall be <del><tt>CopyConstructible</tt>
-if an lvalue and otherwise</del> <tt>MoveConstructible</tt>.
-<tt><i>INVOKE</i>(f, w1, w2, ..., wN)</tt> (20.9.2 [func.require]) shall be a valid expression for
-some values <tt>w1, w2, ... , wN,</tt> where <tt>N == sizeof...(Args)</tt>.
-</p>
-<p>
--5- <i>Effects:</i> Constructs an object of type <tt>thread</tt>
-<del>and executes <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> in a new
-thread of execution, where <tt>t1, t2, ..., tN</tt> are the values in <tt>args...</tt></del>.
-<ins>Constructs
-the following objects in memory which is accessible to a new thread of execution
-as if:</ins>
-</p>
-<blockquote><pre>
-<ins>typename decay&lt;F&gt;::type g(std::forward&lt;F&gt;(f));</ins>
-<ins>tuple&lt;typename decay&lt;Args&gt;::type...&gt; w(std::forward&lt;Args&gt;(args)...);</ins>
-</pre></blockquote>
-<p>
-<ins>The new thread of
-execution executes <tt><i>INVOKE</i>(g, wi...)</tt> where the <tt>wi...</tt> refers
-to the elements stored in the <tt>tuple w</tt>.</ins>
-Any return value from <tt>g</tt> is ignored.
-<del>If <tt>f</tt> terminates with an uncaught exception, <tt>std::terminate()</tt> shall be called.</del>
-<ins>If the evaluation of <tt><i>INVOKE</i>(g,  wi...)</tt> terminates
-with an uncaught exception, <tt>std::terminate()</tt> shall be called [<i>Note:</i>
-<tt>std::terminate()</tt> could be called before entering <tt>g</tt>. -- <i>end note</i>]. Any
-exception thrown before the evaluation of <tt><i>INVOKE</i></tt> has started shall be
-catchable in the calling thread.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Text referring to when <tt>terminate()</tt> is called was contributed by Ganesh.
-</p>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution,
-but would like the final sentence to be reworded
-since "catchable" is not a term of art (and is used nowhere else).
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-This is linked to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2901.pdf">N2901</a>.
-</p>
-<p>
-Howard to open a separate issue to remove (<a href="lwg-closed.html#1176">1176</a>).
-</p>
-<p>
-In Frankfurt there is no consensus for removing the variadic constructor.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-We want to move forward with this issue.  If we later take it out via <a href="lwg-closed.html#1176">1176</a>
-then that's ok too.  Needs small group to improve wording.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-Stefanus provided revised wording.  Moved to Review  Here is the original wording:
-</p>
-<blockquote>
-<p>
-Modify the class definition of <tt>std::thread</tt> in 30.3.1 [thread.thread.class] to remove the
-following signature:
-</p>
-
-<blockquote><pre>
-<del>template&lt;class F&gt; explicit thread(F f);</del>
-template&lt;class F, class ... Args&gt; <ins>explicit</ins> thread(F&amp;&amp; f, Args&amp;&amp; ... args);
-</pre></blockquote>
-
-<p>
-Modify 30.3.1.2 [thread.thread.constr] to replace the constructors prior to paragraph 4 with
-the single constructor as above. Replace paragraph 4 - 6 with the
-following:
-</p>
-
-<blockquote>
-<p>
--4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall be <del><tt>CopyConstructible</tt>
-if an lvalue and otherwise</del> <tt>MoveConstructible</tt>.
-<tt><i>INVOKE</i>(f, w1, w2, ..., wN)</tt> (20.9.2 [func.require]) shall be a valid expression for
-some values <tt>w1, w2, ... , wN,</tt> where <tt>N == sizeof...(Args)</tt>.
-</p>
-<p>
--5- <i>Effects:</i> Constructs an object of type <tt>thread</tt>
-<del>and executes <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> in a new
-thread of execution, where <tt>t1, t2, ..., tN</tt> are the values in <tt>args...</tt></del>.
-<ins>Constructs
-the following objects:</ins>
-</p>
-<blockquote><pre>
-<ins>typename decay&lt;F&gt;::type g(std::forward&lt;F&gt;(f));</ins>
-<ins>tuple&lt;typename decay&lt;Args&gt;::type...&gt; w(std::forward&lt;Args&gt;(args)...);</ins>
-</pre></blockquote>
-<p>
-<ins>and executes <tt><i>INVOKE</i>(g, wi...)</tt> in a new thread of execution.
-These objects shall be destroyed when the new thread of execution completes.</ins>
-Any return value from <tt>g</tt> is ignored.
-<del>If <tt>f</tt> terminates with an uncaught exception, <tt>std::terminate()</tt> shall be called.</del>
-<ins>If the evaluation of <tt><i>INVOKE</i>(g,  wi...)</tt> terminates
-with an uncaught exception, <tt>std::terminate()</tt> shall be called [<i>Note:</i>
-<tt>std::terminate()</tt> could be called before entering <tt>g</tt>. -- <i>end note</i>]. Any
-exception thrown before the evaluation of <tt><i>INVOKE</i></tt> has started shall be
-catchable in the calling thread.</ins>
-</p>
-<p>
--6- <i>Synchronization:</i> The invocation of the constructor <i>happens before</i> the
-invocation of <del><tt>f</tt></del> <ins><tt>g</tt></ins>.
-</p>
-</blockquote>
-
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-01-19 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify the class definition of <tt>std::thread</tt> in 30.3.1 [thread.thread.class] to remove the
-following signature:
-</p>
-
-<blockquote><pre>
-<del>template&lt;class F&gt; explicit thread(F f);</del>
-template&lt;class F, class ... Args&gt; <ins>explicit</ins> thread(F&amp;&amp; f, Args&amp;&amp; ... args);
-</pre></blockquote>
-
-<p>
-Modify 30.3.1.2 [thread.thread.constr] to replace the constructors prior to paragraph 4 with
-the single constructor as above. Replace paragraph 4 - 6 with the
-following:
-</p>
-
-<blockquote>
-<p>
-<ins>Given a function as follows:</ins>
-</p>
-
-<blockquote><pre><ins>
-template&lt;typename T&gt; typename decay&lt;T&gt;::type decay_copy(T&amp;&amp; v)
-    { return std::forward&lt;T&gt;(v); }
-</ins></pre></blockquote>
-
-<p>
--4- <i>Requires:</i> <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall
-<del>be <tt>CopyConstructible</tt> if an lvalue and otherwise</del> <ins>satisfy
-the</ins> <tt>MoveConstructible</tt> <ins>requirements</ins>.
-<del><tt><i>INVOKE</i>(f, w1, w2, ..., wN)</tt> (20.9.2 [func.require])
-shall be a valid expression for some values <tt>w1, w2, ... , wN,</tt> where
-<tt>N == sizeof...(Args)</tt>.</del>
-<ins><tt><i>INVOKE</i>(decay_copy(std::forward&lt;F&gt;(f)), decay_copy(std::forward&lt;Args&gt;(args))...)</tt> (20.9.2 [func.require]) shall be a valid expression.</ins>
-</p>
-
-<p>
--5- <i>Effects:</i> Constructs an object of type <tt>thread</tt> <del>and executes
-<tt>INVOKE(f, t1, t2, ..., tN)</tt> in a new thread of execution, where
-<tt>t1, t2, ..., tN</tt> are the values in <tt>args...</tt>. 
-Any return
-value from <tt>f</tt> is ignored. If <tt>f</tt> terminates with an
-uncaught exception, <tt>std::terminate()</tt> shall be called.</del>
-<ins>The new thread of execution executes <tt>INVOKE(decay_copy(std::forward&lt;F&gt;(f)),
-decay_copy(std::forward&lt;Args&gt;(args))...)</tt> with the calls to <tt>decay_copy()</tt> being evaluated in
-the constructing thread. Any return value from this invocation is
-ignored. [<i>Note:</i> this implies any exceptions not thrown from the
-invocation of the copy of <tt>f</tt> will be thrown in the constructing thread,
-not the new thread. &mdash; <i>end note</i>].
-If the invocation of <tt><i>INVOKE</i>(decay_copy(std::forward&lt;F&gt;(f)),
-decay_copy(std::forward&lt;Args&gt;(args))...)</tt> terminates with an uncaught
-exception, <tt>std::terminate</tt> shall be called.
-</ins></p>
-
-<p>
--6- <i>Synchronization:</i> The invocation of the constructor <i>happens before</i> the
-invocation of <ins>the copy of</ins> <tt>f</tt>.
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="931"></a>931. type trait <tt>extent&lt;T, I&gt;</tt></h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Yechezkel Mett <b>Opened:</b> 2008-11-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The draft (N2798) says in 20.10.4.3 [meta.unary.prop] Table 44: 
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 44 -- Type property queries</caption>
-<tr><th>Template</th><th>Value</th></tr>
-<tr>
-<td>
-<tt>template &lt;class T, unsigned I = 0&gt; struct extent;</tt>
-</td>
-<td>
-If <tt>T</tt> is not an array type (8.3.4), or if it has rank less than
-<tt>I</tt>, or if <tt>I</tt> is 0
-and <tt>T</tt> has type "array of unknown bound of <tt>U</tt>", then 0; otherwise, the
-size of the <tt>I</tt>'th dimension of <tt>T</tt>
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Firstly it isn't clear from the wording if <tt>I</tt> is 0-based or 1-based 
-("the <tt>I</tt>'th dimension" sort of implies 1-based). From the following 
-example it is clear that the intent is 0-based, in which case it 
-should say "or if it has rank less than or equal to <tt>I</tt>".
-</p>
-<p>
-Sanity check:
-</p>
-<p>
-The example says <tt>assert((extent&lt;int[2], 1&gt;::value) == 0);</tt>
-</p>
-<p>
-Here the rank is 1 and <tt>I</tt> is 1, but the desired result is 0.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Do not use "size" or "value", use "bound". Also, move the
-cross-reference to 8.3.4 to just after "bound".
-</p>
-<p>
-Recommend Tentatively Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In Table 44 of 20.10.4.3 [meta.unary.prop], third row, column "Value",
-change the cell content:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 44 -- Type property queries</caption>
-<tr><th>Template</th><th>Value</th></tr>
-<tr>
-<td>
-<tt>template &lt;class T, unsigned I = 0&gt; struct extent;</tt>
-</td>
-<td>
-If <tt>T</tt> is not an array type <del>(8.3.4)</del>, or if it has rank less than
-<ins> or equal to</ins> <tt>I</tt>, or if <tt>I</tt> is 0
-and <tt>T</tt> has type "array of unknown bound of <tt>U</tt>", then 0; otherwise, the
-<del>size</del> <ins>bound (8.3.4)</ins> of the <tt>I</tt>'th dimension of <tt>T</tt><ins>,
-where indexing of <tt>I</tt> is zero-based.</ins>
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p><i>[
-Wording supplied by Daniel.
-]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="932"></a>932. <tt>unique_ptr(pointer p)</tt> for pointer deleter types</h3>
-<p><b>Section:</b> 20.8.1.2.1 [unique.ptr.single.ctor] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-11-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.ctor">issues</a> in [unique.ptr.single.ctor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 79</b></p>
-
-<p>
-20.8.1.2.1 [unique.ptr.single.ctor]/5 no longer requires for <tt>D</tt>
-not to be a pointer type.  I believe this restriction was accidently removed
-when we relaxed the completeness reuqirements on <tt>T</tt>. The restriction
-needs to be put back in.  Otherwise we have a run time failure that could
-have been caught at compile time:
-</p>
-
-<blockquote><pre>
-{
-unique_ptr&lt;int, void(*)(void*)&gt; p1(malloc(sizeof(int)));  <span style="color:#C80000">// should not compile</span>
-}  <span style="color:#C80000">// p1.~unique_ptr() dereferences a null function pointer</span>
-unique_ptr&lt;int, void(*)(void*)&gt; p2(malloc(sizeof(int)), free);  <span style="color:#C80000">// ok</span>
-</pre></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-improved for <tt>enable_if</tt> type constraining, possibly following Robert's
-formula.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-We need to consider whether some requirements in the Requires paragraphs
-of [unique.ptr] should instead be Remarks.
-</p>
-<p>
-Leave Open. Howard to provide wording, and possibly demonstrate how this
-can be implemented using enable_if.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-27 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The two constructors to which this issue applies are not easily constrained
-with <tt>enable_if</tt> as they are not templated:
-</p>
-
-<blockquote><pre>
-unique_ptr();
-explicit unique_ptr(pointer p);
-</pre></blockquote>
-
-<p>
-To "SFINAE" these constructors away would take heroic effort such as specializing
-the entire <tt>unique_ptr</tt> class template on pointer deleter types.  There
-is insufficient motivation for such heroics.  Here is the expected and
-reasonable implementation for these constructors:
-</p>
-
-<blockquote><pre>
-unique_ptr()
-    : ptr_(pointer())
-    {
-        static_assert(!is_pointer&lt;deleter_type&gt;::value,
-            "unique_ptr constructed with null function pointer deleter");
-    }
-explicit unique_ptr(pointer p)
-    : ptr_(p)
-    {
-        static_assert(!is_pointer&lt;deleter_type&gt;::value,
-            "unique_ptr constructed with null function pointer deleter");
-    }
-</pre></blockquote>
-
-<p>
-I.e. just use <tt>static_assert</tt> to verify that the constructor is not
-instantiated with a function pointer for a deleter.  The compiler will automatically
-take care of issuing a diagnostic if the deleter is a reference type (uninitialized
-reference error).
-</p>
-
-<p>
-In keeping with our discussions in Frankfurt, I'm moving this requirement on
-the implementation from the Requires paragraph to a Remarks paragraph.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-08-17 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-It is insufficient to require a diagnostic. This doesn't imply an
-ill-formed program
-as of 1.3 [defns.diagnostic] (a typical alternative would be a compiler
-warning), but
-exactly that seems to be the intend. I suggest to use the following
-remark instead:
-</p>
-
-<blockquote><p>
-<i>Remarks:</i> The program shall be ill-formed if this constructor is
-instantiated when <tt>D</tt> is a pointer type or reference type.
-</p></blockquote>
-
-<p>
-Via the general standard rules of 1.4 [intro.compliance] the "diagnostic
-required" is implied.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-03-14 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-We moved
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>
-to the formal motions page in Pittsburgh which should obsolete this issue.  I've
-moved this issue to NAD Editorial, solved by N3073.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the description of the default constructor in 20.8.1.2.1 [unique.ptr.single.ctor]:
-</p>
-
-<blockquote><pre>
-unique_ptr();
-</pre>
-<blockquote>
-<p>
--1- <i>Requires:</i> <tt>D</tt> shall be default constructible, and that construction
-shall not throw an exception. <del><tt>D</tt> shall 
-not be a reference type or pointer type (diagnostic required).</del>
-</p>
-<p>...</p>
-<p><ins>
-<i>Remarks:</i> The program shall be ill-formed if this constructor is
-instantiated when <tt>D</tt> is a pointer type or reference type.
-</ins></p>
-</blockquote>
-</blockquote>
-
-<p>
-Add  after 20.8.1.2.1 [unique.ptr.single.ctor]/8:
-</p>
-
-<blockquote><pre>
-unique_ptr(pointer p);
-</pre>
-<blockquote>
-<p>...</p>
-<p><ins>
-<i>Remarks:</i> The program shall be ill-formed if this constructor is
-instantiated when <tt>D</tt> is a pointer type or reference type.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="934"></a>934. <tt>duration</tt> is missing <tt>operator%</tt></h3>
-<p><b>Section:</b> 20.12.5 [time.duration] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Terry Golubiewski <b>Opened:</b> 2008-11-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration">issues</a> in [time.duration].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 81</b></p>
-
-<p>
-<tt>duration</tt> is missing <tt>operator%</tt>.  This operator is convenient
-for computing where in a time frame a given <tt>duration</tt> lies.  A
-motivating example is converting a <tt>duration</tt> into a "broken-down"
-time duration such as hours::minutes::seconds:
-</p>
-
-<blockquote><pre>
-class ClockTime
-{
-    typedef std::chrono::hours hours;
-    typedef std::chrono::minutes minutes;
-    typedef std::chrono::seconds seconds;
-public:
-    hours hours_;
-    minutes minutes_;
-    seconds seconds_;
-
-    template &lt;class Rep, class Period&gt;
-      explicit ClockTime(const std::chrono::duration&lt;Rep, Period&gt;&amp; d)
-        : hours_  (std::chrono::duration_cast&lt;hours&gt;  (d)),
-          minutes_(std::chrono::duration_cast&lt;minutes&gt;(d % hours(1))),
-          seconds_(std::chrono::duration_cast&lt;seconds&gt;(d % minutes(1)))
-          {}
-};
-</pre></blockquote>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree except that there is a typo in the proposed resolution. The member
-operators should be <tt>operator%=</tt>.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-improved for enable_if type constraining, possibly following Robert's
-formula.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Howard to open a separate issue (<a href="lwg-defects.html#1177">1177</a>) to handle the removal of member
-functions from overload sets, provide wording, and possibly demonstrate
-how this can be implemented using enable_if (see <a href="lwg-defects.html#947">947</a>).
-</p>
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the synopsis in 20.12 [time]:
-</p>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator%(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-  typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;&gt;::type
-  operator%(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre></blockquote>
-
-<p>
-Add to the synopsis of <tt>duration</tt> in 20.12.5 [time.duration]:
-</p>
-
-<blockquote><pre>
-template &lt;class Rep, class Period = ratio&lt;1&gt;&gt;
-class duration {
-public:
-  ...
-  <ins>duration&amp; operator%=(const rep&amp; rhs);</ins>
-  <ins>duration&amp; operator%=(const duration&amp; d);</ins>
-  ...
-};
-</pre></blockquote>
-
-<p>
-Add to 20.12.5.3 [time.duration.arithmetic]:
-</p>
-
-<blockquote>
-<pre>
-duration&amp; operator%=(const rep&amp; rhs);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> <tt>rep_ %= rhs</tt>.
-</p>
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote>
-
-<pre>
-duration&amp; operator%=(const duration&amp; d);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> <tt>rep_ %= d.count()</tt>.
-</p>
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Add to 20.12.5.5 [time.duration.nonmember]:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator%(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote>
-<p>
-<i>Requires:</i> <tt>Rep2</tt> shall be implicitly convertible to <tt>CR(Rep1, Rep2)</tt> and
-<tt>Rep2</tt> shall not be an instantiation of <tt>duration</tt>. Diagnostic required.
-</p>
-<p>
-<i>Returns:</i> <tt>duration&lt;CR, Period&gt;(d) %= s</tt>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-  typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;&gt;::type
-  operator%(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre>
-<blockquote>
-<p>
-<i>Returns:</i> <tt>common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;&gt;::type(lhs) %= rhs</tt>.
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="938"></a>938. <tt>default_delete&lt;T[]&gt;::operator()</tt> should only accept <tt>T*</tt></h3>
-<p><b>Section:</b> 20.8.1.1.3 [unique.ptr.dltr.dflt1] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider:
-</p>
-
-<blockquote><pre>
-derived* p = new derived[3];
-std::default_delete&lt;base[]&gt; d;
-d(p);  <span style="color:#C80000">// should fail</span>
-</pre></blockquote>
-
-<p>
-Currently the marked line is a run time failure.  We can make it a compile
-time failure by "poisoning" <tt>op(U*)</tt>.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Review.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.8.1.1.3 [unique.ptr.dltr.dflt1]:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; struct default_delete&lt;T[]&gt; {
-    void operator()(T*) const;
-  <ins>template &lt;class U&gt; void operator()(U*) const = delete;</ins>
-};
-}
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="939"></a>939. Problem with <tt>std::identity</tt> and reference-to-temporaries</h3>
-<p><b>Section:</b> 20.2.4 [forward] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2008-12-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward">issues</a> in [forward].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>std::identity</tt> takes an argument of type <tt>T const &amp;</tt>
-and returns a result of <tt>T const &amp;</tt>.
-</p>
-<p>
-Unfortunately, this signature will accept a value of type other than <tt>T</tt> that
-is convertible-to-<tt>T</tt>, and then return a reference to the dead temporary.  The
-constraint in the concepts version simply protects against returning
-reference-to-<tt>void</tt>.
-</p>
-<p>
-Solutions:
-</p>
-<blockquote>
-<p>
-i/  Return-by-value, potentially slicing bases and rejecting non-copyable
-types
-</p>
-<p>
-ii/ Provide an additional overload:
-</p>
-<blockquote><pre>
-template&lt; typename T &gt;
-template operator( U &amp; ) = delete;
-</pre></blockquote>
-<p>
-This seems closer on intent, but moves beyond the original motivation for
-the operator, which is compatibility with existing (non-standard)
-implementations.
-</p>
-<p>
-iii/ Remove the <tt>operator()</tt> overload.  This restores the original definition
-of the <tt>identity</tt>, although now effectively a type_trait rather than part of
-the perfect forwarding protocol.
-</p>
-<p>
-iv/ Remove <tt>std::identity</tt> completely; its original reason to exist is
-replaced with the <tt>IdentityOf</tt> concept.
-</p>
-</blockquote>
-<p>
-My own preference is somewhere between (ii) and (iii) - although I stumbled
-over the issue with a specific application hoping for resolution (i)!
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We dislike options i and iii, and option ii seems like overkill.
-If we remove it (option iv), implementers can still provide it under a
-different name.
-</p>
-<p>
-Move to Open pending wording (from Alisdair) for option iv.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-23 Alisdair provided wording for option iv.
-]</i></p>
-
-
-<p><i>[
-2009-07-20 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I'm not sure why this issue was not discussed at Frankfurt (or I missed
-the discussion) but the rationale is now fundamentally flawed.  With the
-removal of concepts, <tt>std::identity</tt> again becomes an important library
-type so we cannot simply remove it.
-</p>
-<p>
-At that point, we need to pick one of the other suggested resolutions,
-but have no guidance at the moment.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-20 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I believe the rationale for not addressing this issue in Frankfurt was that it did
-not address a national body comment.
-</p>
-<p>
-I also believe that removal of <tt>identity</tt> is still a practical option as
-my latest reformulation of <tt>forward</tt>, which is due to comments suggested
-at Summit, no longer uses <tt>identity</tt>. :-)
-</p>
-
-<blockquote><pre>
-template &lt;class T, class U,
-    class = typename enable_if
-            &lt;
-                !is_lvalue_reference&lt;T&gt;::value || 
-                 is_lvalue_reference&lt;T&gt;::value &amp;&amp;
-                 is_lvalue_reference&lt;U&gt;::value
-            &gt;::type,
-    class = typename enable_if
-            &lt;
-                is_same&lt;typename remove_all&lt;T&gt;::type,
-                        typename remove_all&lt;U&gt;::type&gt;::value
-            &gt;::type&gt;
-inline
-T&amp;&amp;
-forward(U&amp;&amp; t)
-{
-    return static_cast&lt;T&amp;&amp;&gt;(t);
-
-}
-</pre>
-
-<p><i>[
-The above code assumes acceptance of <a href="lwg-active.html#1120">1120</a> for the definition of
-<tt>remove_all</tt>.  This is just to make the syntax a little more palatable.
-Without this trait the above is still very implementable.
-]</i></p>
-
-
-</blockquote>
-
-<p>
-Paper with rationale is on the way ... <i>really</i>, I promise this time! ;-)
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-30 Daniel adds:  See <a href="lwg-defects.html#823">823</a> for an alternative resolution.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready. Howard will update proposed wording to reflect current draft.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike from 20.2 [utility]:
-</p>
-
-<blockquote><pre>
-<del>template &lt;class T&gt; struct identity;</del>
-</pre></blockquote>
-
-<p>
-Remove from 20.2.4 [forward]:
-</p>
-
-<blockquote>
-<pre>
-<del>template &lt;class T&gt; struct identity {
-  typedef T type;
-
-  const T&amp; operator()(const T&amp; x) const;
-};</del>
-
-<del>const T&amp; operator()(const T&amp; x) const;</del>
-</pre>
-<blockquote><p>
-<del>-2-  <i>Returns:</i> <tt>x</tt></del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="940"></a>940. <tt>std::distance</tt></h3>
-<p><b>Section:</b> 24.4.4 [iterator.operations] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Thomas <b>Opened:</b> 2008-12-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.operations">issues</a> in [iterator.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 270</b></p>
-
-<p>
-Regarding the <tt>std::distance</tt> - function, 24.4.4 [iterator.operations]
-p.4 says:
-</p>
-<blockquote><p>
-Returns the number of increments or decrements needed to get from first to last.
-</p></blockquote>
-<p>
-This sentence is completely silent about the sign of the return value.
-24.4.4 [iterator.operations] p.1 gives more information about the
-underlying operations, but again no inferences about the sign can be made.
-Strictly speaking, that is taking that sentence literally, I think this
-sentence even implies a positive return value in all cases, as the
-number of increments or decrements is clearly a ratio scale variable,
-with a natural zero bound.
-</p>
-<p>
-Practically speaking, my implementations did what common sense and
-knowledge based on pointer arithmetic forecasts, namely a positive sign
-for increments (that is, going from <tt>first</tt> to <tt>last</tt> by <tt>operator++</tt>), and a
-negative sign for decrements (going from <tt>first</tt> to <tt>last</tt> by <tt>operator--</tt>).
-</p>
-<p>
-Here are my two questions:
-</p>
-<p>
-First, is that paragraph supposed to be interpreted in the way what I
-called 'common sense', that is negative sign for decrements ? I am
-fairly sure that's the supposed behavior, but a double-check here in
-this group can't hurt.
-</p>
-<p>
-Second, is the present wording (2003 standard version - no idea about
-the draft for the upcoming standard) worth an edit to make it a bit more
-sensible, to mention the sign of the return value explicitly ?
-</p>
-
-<p><i>[
-Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-My first thought was that resolution <a href="lwg-closed.html#204">204</a> would already cover the
-issue report, but it seems that current normative wording is in
-contradiction to that resolution:
-</p>
-
-<p>
-Referring to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>,
-24.4.4 [iterator.operations]/ p.4 says:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Returns the number of increments or decrements needed to get
-from <tt>first</tt> to <tt>last</tt>.
-</p></blockquote>
-
-<p>
-IMO the part " or decrements" is in contradiction to p. 5 which says
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <tt>last</tt> shall be reachable from <tt>first</tt>.
-</p></blockquote>
-
-<p>
-because "reachable" is defined in X [iterator.concepts]/7 as
-</p>
-
-<blockquote><p>
-An iterator <tt>j</tt> is called reachable from an iterator <tt>i</tt> if and only if
-there is a finite sequence of applications of the expression <tt>++i</tt> that makes 
-<tt>i == j</tt>.[..]
-</p></blockquote>
-
-<p>
-Here is wording that would be consistent with this definition of "reachable":
-</p>
-
-<p>
-Change 24.4.4 [iterator.operations] p4 as follows:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Returns the number of increments <del>or decrements</del>
-needed to get from <tt>first</tt> to <tt>last</tt>.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Thomas adds more discussion and an alternative view point
-<a href="http://groups.google.com/group/comp.std.c++/browse_thread/thread/e8e46dcda0a5d797#">here</a>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-The proposed wording below was verbally agreed to.  Howard provided.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete reports that a recent similar change has been made
-for the <tt>advance()</tt> function.
-</p>
-<p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open pending arrival of a post-Concepts WD.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Daniel provided de-conceptified wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready, replacing the Effects clause in the proposed wording with
-"If InputIterator meets the requirements of random access iterator then
-returns (last - first), otherwise returns the number of increments
-needed to get from first to list.".
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 24.2.7 [random.access.iterators], Table 105 as indicated [This change is not
-essential but it simplifies the specification] for the row with expression "<tt>b - a</tt>"
-and the column Operational semantics:
-</p>
-
-<blockquote><pre>
-<del>(a &lt; b) ? </del>distance(a,b)
-<del>: -distance(b,a)</del>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 24.4.4 [iterator.operations]/4+5 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator&gt;
-  typename iterator_traits&lt;InputIterator&gt;::difference_type
-    distance(InputIterator first, InputIterator last);
-</pre>
-<blockquote>
-<p>
-4 <i>Effects:</i> <ins>If <tt>InputIterator</tt> meets the requirements
-of random access iterator then returns <tt>(last - first)</tt>,
-otherwise</ins> <del>R</del><ins>r</ins>eturns the number of increments
-<del>or decrements</del> needed to get from <tt>first</tt> to
-<tt>last</tt>.
-</p>
-
-<p>
-5 <i>Requires:</i> <ins>If <tt>InputIterator</tt> meets the requirements
-of random access iterator then <tt>last</tt> shall be reachable from
-<tt>first</tt> or <tt>first</tt> shall be reachable from <tt>last</tt>,
-otherwise</ins> <tt>last</tt> shall be reachable from <tt>first</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="943"></a>943. <tt>ssize_t</tt> undefined</h3>
-<p><b>Section:</b> X [atomics.types.address] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Holger Grund <b>Opened:</b> 2008-12-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.address">issues</a> in [atomics.types.address].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is a row in "Table 122 - Atomics for standard typedef types"
-in X [atomics.types.integral] with <tt>atomic_ssize_t</tt>
-and <tt>ssize_t</tt>. Unless, I'm missing something <tt>ssize_t</tt>
-is not defined by the standard.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to review. Proposed resolution: Remove the typedef. Note: <tt>ssize_t</tt>
-is a POSIX type.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the row containing <tt>ssize_t</tt> from Table 119
-"Atomics for standard typedef types" in X [atomics.types.address].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="944"></a>944. <tt>atomic&lt;bool&gt;</tt> derive from <tt>atomic_bool</tt>?</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Holger Grund <b>Opened:</b> 2008-12-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think it's fairly obvious that <tt>atomic&lt;bool&gt;</tt> is supposed to be derived
-from <tt>atomic_bool</tt> (and otherwise follow the <tt>atomic&lt;integral&gt;</tt> interface),
-though I think the current wording doesn't support this. I raised this
-point along with <tt>atomic&lt;floating-point&gt;</tt> privately with Herb and I seem
-to recall it came up in the resulting discussion on this list. However,
-I don't see anything on the current libs issue list mentioning this
-problem.
-</p>
-
-<p>
-29.5 [atomics.types.generic]/3 reads
-</p>
-
-<blockquote><p>
-There are full specializations over the integral types on the atomic
-class template. For each integral type integral in the second column of
-table 121 or table 122, the specialization <tt>atomic&lt;integral&gt;</tt> shall be
-publicly derived from the corresponding atomic integral type in the
-first column of the table. These specializations shall have trivial
-default constructors and trivial destructors.
-</p></blockquote>
-
-<p>
-Table 121 does not include (<tt>atomic_bool</tt>, <tt>bool</tt>),
-so that this should probably be mentioned explicitly in the quoted paragraph.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. Lawrence will draft a proposed resolution. Also, ask
-Howard to fix the title.
-</p></blockquote>
-
-<p><i>[
-Post Summit Anthony provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace paragraph 3 in 29.5 [atomics.types.generic] with
-</p>
-
-<blockquote><p>
--3- There are full specializations over the integral types on the <tt>atomic</tt>
-class template. For each integral type <tt>integral</tt> in the second column of
-table 121 or table 122, the specialization <tt>atomic&lt;integral&gt;</tt> shall be
-publicly derived from the corresponding atomic integral type in the first
-column of the table.
-<ins>In addition, the specialization <tt>atomic&lt;bool&gt;</tt>
-shall be publicly derived from <tt>atomic_bool</tt>.</ins>
-These specializations shall have trivial default
-constructors and trivial destructors.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="947"></a>947. <tt>duration</tt> arithmetic: contradictory requirements</h3>
-<p><b>Section:</b> 20.12.5.5 [time.duration.nonmember] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2008-12-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.nonmember">issues</a> in [time.duration.nonmember].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.12.5.5 [time.duration.nonmember], paragraph 8 says that calling
-<tt>dur / rep</tt> when <tt>rep</tt> is an instantiation of <tt>duration</tt> 
-requires a diagnostic. That's followed by an <tt>operator/</tt> that takes 
-two durations. So <tt>dur1 / dur2</tt> is legal under the second version,
-but requires a diagnostic under the first.
-</p>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Please see the thread starting with c++std-lib-22980 for more information.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, pending proposed wording (and preferably an implementation).
-</p></blockquote>
-
-<p><i>[
-2009-07-27 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I've addressed this issue under the proposed wording for <a href="lwg-defects.html#1177">1177</a> which
-cleans up several places under 20.12.5 [time.duration] which used the
-phrase "diagnostic required".
-</p>
-<p>
-For clarity's sake, here is an example implementation of the constrained <tt>operator/</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class _Duration, class _Rep, bool = __is_duration&lt;_Rep&gt;::value&gt;
-struct __duration_divide_result
-{
-};
-
-template &lt;class _Duration, class _Rep2,
-    bool = is_convertible&lt;_Rep2,
-                          typename common_type&lt;typename _Duration::rep, _Rep2&gt;::type&gt;::value&gt;
-struct __duration_divide_imp
-{
-};
-
-template &lt;class _Rep1, class _Period, class _Rep2&gt;
-struct __duration_divide_imp&lt;duration&lt;_Rep1, _Period&gt;, _Rep2, true&gt;
-{
-    typedef duration&lt;typename common_type&lt;_Rep1, _Rep2&gt;::type, _Period&gt; type;
-};
-
-template &lt;class _Rep1, class _Period, class _Rep2&gt;
-struct __duration_divide_result&lt;duration&lt;_Rep1, _Period&gt;, _Rep2, false&gt;
-    : __duration_divide_imp&lt;duration&lt;_Rep1, _Period&gt;, _Rep2&gt;
-{
-};
-
-template &lt;class _Rep1, class _Period, class _Rep2&gt;
-inline
-typename __duration_divide_result&lt;duration&lt;_Rep1, _Period&gt;, _Rep2&gt;::type
-operator/(const duration&lt;_Rep1, _Period&gt;&amp; __d, const _Rep2&amp; __s)
-{
-    typedef typename common_type&lt;_Rep1, _Rep2&gt;::type _Cr;
-    duration&lt;_Cr, _Period&gt; __r = __d;
-    __r /= static_cast&lt;_Cr&gt;(__s);
-    return __r;
-}
-</pre></blockquote>
-
-<p>
-<tt>__duration_divide_result</tt> is basically a custom-built <tt>enable_if</tt>
-that will contain <tt>type</tt> only if <tt>Rep2</tt> is not a <tt>duration</tt>
-and if <tt>Rep2</tt> is implicitly convertible to
-<tt>common_type&lt;typename Duration::rep, Rep2&gt;::type</tt>. <tt>__is_duration</tt>
-is simply a private trait that answers <tt>false</tt>, but is specialized for
-<tt>duration</tt> to answer <tt>true</tt>.
-</p>
-
-<p>
-The constrained <tt>operator%</tt> works identically.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark <del>NAD Editorial</del><ins>Resolved</ins>, fixed by <a href="lwg-defects.html#1177">1177</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="948"></a>948. <tt>ratio</tt> arithmetic tweak</h3>
-<p><b>Section:</b> 20.11.4 [ratio.arithmetic] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2008-12-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.arithmetic">issues</a> in [ratio.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>,
-20.11.4 [ratio.arithmetic] lacks a paragraph from the proposal
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2661.htm">N2661</a>:
-</p>
-
-<blockquote>
-<p><b>ratio arithmetic [ratio.arithmetic]</b></p>
-
-<p>
-... If the implementation is unable to form the indicated <tt>ratio</tt> due to
-overflow, a diagnostic shall be issued.
-</p>
-</blockquote>
-
-<p>
-The lack of a diagnostic on compile-time overflow is a significant lack of
-functionality.  This paragraph could be put back into the WP simply editorially.
-However in forming this issue I realized that we can do better than that.  This
-paragraph should also allow alternative formulations which go to extra lengths
-to avoid overflow when possible.  I.e. we should not mandate overflow when the
-implementation can avoid it.
-</p>
-
-<p>
-For example:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class R1, class R2&gt; struct ratio_multiply {
-  typedef <i>see below</i>} type; 
-</pre>
-
-<blockquote><p>
-The nested typedef type shall be a synonym for <tt>ratio&lt;T1, T2&gt;</tt> 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>.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Consider the case where <tt>intmax_t</tt> is a 64 bit 2's complement signed integer,
-and we have:
-</p>
-
-<blockquote><pre>
-typedef std::ratio&lt;0x7FFFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFF0&gt; R1;
-typedef std::ratio&lt;8, 7&gt; R2;
-typedef std::ratio_multiply&lt;R1, R2&gt;::type RT;
-</pre></blockquote>
-
-<p>
-According to the present formulation the implementaiton will multiply
-<tt>0x7FFFFFFFFFFFFFFF * 8</tt> which will result in an overflow and subsequently
-require a diagnostic.
-</p>
-
-<p>
-However if the implementation is first allowed to divde <tt>0x7FFFFFFFFFFFFFFF</tt>
-by <tt>7</tt> obtaining <tt>0x1249249249249249 / 1</tt> and divide
-<tt>8</tt> by <tt>0x7FFFFFFFFFFFFFF0</tt> obtaining <tt>1 / 0x0FFFFFFFFFFFFFFE</tt>,
-then the exact result can then be computed without overflow:
-</p>
-
-<blockquote><pre>
-[0x7FFFFFFFFFFFFFFF/0x7FFFFFFFFFFFFFF0] * [8/7] = [0x1249249249249249/0x0FFFFFFFFFFFFFFE]
-</pre></blockquote>
-
-<p>
-Example implmentation which accomplishes this:
-</p>
-
-<blockquote><pre>
-template &lt;class R1, class R2&gt;
-struct ratio_multiply
-{
-private:
-    typedef ratio&lt;R1::num, R2::den&gt; _R3;
-    typedef ratio&lt;R2::num, R1::den&gt; _R4;
-public:
-    typedef ratio&lt;__ll_mul&lt;_R3::num, _R4::num&gt;::value,
-                  __ll_mul&lt;_R3::den, _R4::den&gt;::value&gt; type;
-};
-</pre></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Tentatively Ready.
-</p></blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a paragraph prior to p1 in 20.11.4 [ratio.arithmetic]:
-</p>
-
-<blockquote><p>
-Implementations may use other algorithms to compute the indicated ratios to avoid overflow. 
-If overflow occurs, a diagnostic shall be issued.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="949"></a>949. <tt>owner_less</tt></h3>
-<p><b>Section:</b> 20.8.2.4 [util.smartptr.ownerless] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2008-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.2.4 [util.smartptr.ownerless] (class template <tt>owner_less</tt>) says that 
-<tt>operator()(x,y)</tt> shall return <tt>x.before(y)</tt>.
-</p>
-<p>
-However, <tt>shared_ptr</tt> and <tt>weak_ptr</tt> have an <tt>owner_before()</tt> but not a
-<tt>before()</tt>, and there's no base class to provide a missing <tt>before()</tt>.
-</p>
-<p>
-Being that the class is named  <tt>owner_less</tt> , I'm guessing that
-"<tt>before()</tt>" should be "<tt>owner_before()</tt>", right?
-</p>
-
-<p><i>[
-Herve adds:
-]</i></p>
-
-
-<blockquote><p>
-Agreed with the typo, it should be "shall return <tt>x.owner_before(y)</tt>".
-</p></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.2.4 [util.smartptr.ownerless] p2:
-</p>
-
-<blockquote><p>
--2- <tt>operator()(x,y)</tt> shall return
-<tt>x.<ins>owner_</ins>before(y)</tt>. [<i>Note:</i> ...
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="950"></a>950. <tt>unique_ptr</tt> converting ctor shouldn't accept array form</h3>
-<p><b>Section:</b> 20.8.1.2.1 [unique.ptr.single.ctor] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.ctor">issues</a> in [unique.ptr.single.ctor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>unique_ptr</tt>'s of array type should not convert to
-<tt>unique_ptr</tt>'s which do not have an array type.
-</p>
-
-<blockquote><pre>
-struct Deleter
-{
-   void operator()(void*) {}
-};
-
-int main()
-{
-   unique_ptr&lt;int[], Deleter&gt; s;
-   unique_ptr&lt;int, Deleter&gt; s2(std::move(s));  <span style="color:#C80000">// should not compile</span>
-}
-</pre></blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Walter: Does the "diagnostic required" apply to both arms of the "and"?
-</p>
-<p>
-Tom Plum: suggest to break into several sentences
-</p>
-<p>
-Walter: suggest "comma" before the "and" in both places
-</p>
-<p>
-Recommend Review.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The post-Summit comments have been applied to the proposed resolution.
-We now agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-improved for <tt>enable_if</tt> type constraining, possibly following Robert's
-formula.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard updates wording and sets to Review.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-02-27 Pete Opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed replacement text doesn't make sense.
-</p>
-
-<blockquote><p>
-If <tt>D</tt> is a reference type, then <tt>E</tt> shall be the same type as
-<tt>D</tt>, else this constructor shall not participate in overload resolution.
-</p></blockquote>
-
-<p>
-This imposes two requirements. 1. If <tt>D</tt> is a reference type, <tt>E</tt>
-has to be <tt>D</tt>. 2. If <tt>D</tt> is not a reference type, the constructor
-shall not participate in overload resolution. If the latter apples, the language
-in the preceding paragraph that this constructor shall not throw an exception if
-<tt>D</tt> is not a reference type is superfluous. I suspect that's not the
-intention, but I can't parse this text any other way.
-</p>
-
-<blockquote><p>
-<tt>U</tt> shall not be an array type, else this constructor shall not
-participate in overload resolution.
-</p></blockquote>
-
-<p>
-I don't know what this means.
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-27 Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think that the intent is (proposed text):
-</p>
-
-<blockquote>
-<p>
-<i>Remarks:</i> this constructor shall only participate in overload resolution
-if:
-</p>
-
-<ul>
-<li>
-<tt>unique_ptr&lt;U, E&gt;::pointer</tt> is implicitly convertible to
-<tt>pointer</tt>,
-</li>
-
-<li>
-<tt>U</tt> is not an array type, and
-</li>
-
-<li>
-if <tt>D</tt> is a reference type, <tt>E</tt> is the same type as <tt>D</tt>.
-</li>
-</ul>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-02-28 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I like Peter's proposal.  Here is a tweak of it made after looking at my
-implementation.  I believe this fixes a further defect not addressed by the
-current proposed wording:
-</p>
-
-<blockquote>
-<p>
-<i>Remarks:</i> this constructor shall only participate in overload resolution
-if:
-</p>
-
-<ul>
-<li>
-<tt>unique_ptr&lt;U, E&gt;::pointer</tt> is implicitly convertible to
-<tt>pointer</tt>, and
-</li>
-
-<li>
-<tt>U</tt> is not an array type, and
-</li>
-
-<li>
-if <tt>D</tt> is a reference type, <tt>E</tt> is the same type as <tt>D</tt>,
-else <tt>E</tt> shall be implicitly convertible to <tt>D</tt>.
-</li>
-</ul>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class U, class E&gt; unique_ptr(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-<blockquote>
-<p>
--20- <i>Requires:</i> If <tt>D</tt> is not a reference type,
-construction of the deleter <tt>D</tt> from an rvalue of type <tt>E</tt>
-shall be well formed and shall not throw an exception. <del>If <tt>D</tt> is
-a reference type, then <tt>E</tt> shall be the same type as <tt>D</tt>
-(diagnostic required). <tt>unique_ptr&lt;U, E&gt;::pointer</tt> shall be
-implicitly convertible to <tt>pointer</tt>. [<i>Note:</i> These requirements
-imply that <tt>T</tt> and <tt>U</tt> are complete types. &mdash; <i>end note</i>]</del>
-</p>
-
-<p><ins>
-<i>Remarks:</i> If <tt>D</tt> is
-a reference type, then <tt>E</tt> shall be the same type as <tt>D</tt>, else this
-constructor shall not participate in overload resolution. <tt>unique_ptr&lt;U, E&gt;::pointer</tt> shall be
-implicitly convertible to <tt>pointer</tt>, else this
-constructor shall not participate in overload resolution. <tt>U</tt> shall not be
-an array type, else this
-constructor shall not participate in overload resolution. [<i>Note:</i> These requirements
-imply that <tt>T</tt> and <tt>U</tt> are complete types. &mdash; <i>end note</i>]
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-<blockquote>
-<p>
--6- <i>Requires:</i> Assignment of the deleter <tt>D</tt> from an rvalue
-<tt>D</tt> shall not throw an exception. <del><tt>unique_ptr&lt;U,
-E&gt;::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>.
-[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt>
-are complete types. &mdash; <i>end note</i>]</del>
-</p>
-
-<p><ins>
-<i>Remarks:</i> <tt>unique_ptr&lt;U,
-E&gt;::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>, else this
-operator shall not participate in overload resolution.
-<tt>U</tt> shall not be an array type, else this
-operator shall not participate in overload resolution.
-[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U</tt>
-are complete types. &mdash; <i>end note</i>]
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="951"></a>951. Various threading bugs #1</h3>
-<p><b>Section:</b> 20.12.4.1 [time.traits.is_fp] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Related to <a href="lwg-defects.html#953">953</a>.
-</p>
-
-<p>
-20.12.4.1 [time.traits.is_fp] says that the type <tt>Rep</tt> "is
-assumed to be ... a class emulating an integral type." What are the
-requirements for such a type?
-</p>
-<p><i>[
-2009-05-10 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-<tt>IntegralLike</tt>.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-As with issue <a href="lwg-defects.html#953">953</a>,
-we recommend this issue be addressed in the context of providing concepts for the entire <tt>thread</tt> header.
-</p>
-<p>
-We look forward to proposed wording.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-08-01 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I have surveyed all clauses of 20.12.4.2 [time.traits.duration_values],
-20.12.4.3 [time.traits.specializations] and 20.12.5 [time.duration].
-I can not find any clause which involves the use of a <tt>duration::rep</tt> type
-where the requirements on the <tt>rep</tt> type are not clearly spelled out.
-These requirements were carefully crafted to allow any arithmetic type, or
-any user-defined type emulating an arithmetic type.
-</p>
-
-<p>
-Indeed, <tt>treat_as_floating_point</tt>
-becomes completely superfluous if <tt>duration::rep</tt> can never be a class type.
-</p>
-
-<p>
-There will be some <tt>Rep</tt> types which will not meet the requirements of
-<em>every</em> <tt>duration</tt> operation.  This is no different than the fact
-that <tt>vector&lt;T&gt;</tt> can easily be used for types <tt>T</tt> which are
-not <tt>DefaultConstructible</tt>, even though some members of <tt>vector&lt;T&gt;</tt>
-require <tt>T</tt> to be <tt>DefaultConstructible</tt>.  This is why the requirements
-on <tt>Rep</tt> are specified for each operation individually.
-</p>
-
-<p>
-In 20.12.4.1 [time.traits.is_fp] p1:
-</p>
-
-<blockquote><pre>
-template &lt;class Rep&gt; struct treat_as_floating_point 
-  : is_floating_point&lt;Rep&gt; { };
-</pre>
-
-<blockquote><p>
-The <tt>duration</tt> template uses the <tt>treat_as_floating_point</tt> trait to help
-determine if a <tt>duration</tt> object can be converted to another <tt>duration</tt>
-with a different tick period. If <tt>treat_as_floating_point&lt;Rep&gt;::value</tt> is
-<tt>true</tt>, then <tt>Rep</tt> is a floating-point type and implicit conversions are
-allowed among <tt>duration</tt>s. Otherwise, the implicit convertibility depends
-on the tick periods of the <tt>duration</tt>s. If <tt>Rep</tt> is 
-<span style="text-decoration:underline">a class type which emulates a floating-point type</span>, 
-the author of <tt>Rep</tt> can specialize <tt>treat_as_floating_point</tt> so that 
-<tt>duration</tt> will treat this <tt>Rep</tt> as if it were a floating-point type. 
-Otherwise <tt>Rep</tt> is assumed to be an integral type or 
-<span style="text-decoration:underline">a class emulating an integral type</span>.
-</p></blockquote>
-</blockquote>
-
-<p>
-The phrases "a class type which emulates a floating-point type" and
-"a class emulating an integral type" are clarifying phrases which refer to
-the summation of all the requirements on the <tt>Rep</tt> type specified in
-detail elsewhere (and <em>should not</em> be repeated here).
-</p>
-
-<p>
-This specification has been implemented, now multiple times, and the experience
-has been favorable.  The current specification clearly specifies the requirements
-at each point of use (though I'd be happy to fix any place I may have missed,
-but none has been pointed out).
-</p>
-
-<p>
-I am amenable to improved wording of this paragraph (and any others), but do not have any
-suggestions for improved wording at this time.  I am <em>strongly</em> opposed to
-changes which would significantly alter the semantics of the
-specification under 20.12 [time] without firmly grounded and
-documented rationale, example implementation, testing, and user
-experience which relates a positive experience.
-</p>
-
-<p>
-I recommend NAD unless someone wants to produce some clarifying wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Stefanus to provide wording to turn this into a note.
-</p></blockquote>
-
-<p><i>[
-2010-02-11 Stefanus provided wording.
-]</i></p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.12.4.1 [time.traits.is_fp]/1:
-</p>
-
-<blockquote><p>
-1 The <tt>duration</tt> template uses the <tt>treat_as_floating_point</tt> trait
-to help determine if a <tt>duration</tt> object can be converted to another
-<tt>duration</tt> with a different tick period. If
-<tt>treat_as_floating_point&lt;Rep&gt;::value</tt> is <tt>true</tt>, then
-<del><tt>Rep</tt> is a floating-point type and</del> implicit conversions are allowed among
-<tt>duration</tt>s. Otherwise, the implicit convertibility depends on the tick
-periods of the <tt>duration</tt>s. <del>If <tt>Rep</tt> is a class type which
-emulates a floating-point type, the author of <tt>Rep</tt> can specialize
-<tt>treat_as_floating_point</tt> so that duration will treat this <tt>Rep</tt>
-as if it were a floating-point type. Otherwise <tt>Rep</tt> is assumed to be an
-integral type or a class emulating an integral type.</del>
-<ins>[<i>Note:</i> The intention of this trait is to indicate whether a given
-class behaves like a floating point type, and thus allows division of one value
-by another with acceptable loss of precision. If
-<tt>treat_as_floating_point&lt;Rep&gt;::value</tt> is <tt>false</tt>,
-<tt>Rep</tt> will be treated as if it behaved like an integral type for the
-purpose of these conversions. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="953"></a>953. Various threading bugs #3</h3>
-<p><b>Section:</b> 20.12.3 [time.clock.req] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Related to <a href="lwg-defects.html#951">951</a>.
-</p>
-
-<p>
-20.12.3 [time.clock.req] says that a clock's <tt>rep</tt> member is "an
-arithmetic type or a class emulating an arithmetic type." What are the
-requirements for such a type?
-</p>
-
-<p><i>[
-2009-05-10 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-This wording was aimed directly at the <tt>ArithmeticLike</tt> concept.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We recommend this issue be addressed in the context of providing concepts
-for the entire <tt>thread</tt> header.
-</p>
-<p>
-May resolve for now by specifying arithmetic types,
-and in future change to <tt>ArithmeticLike</tt>.
-However, Alisdair believes this is not feasible.
-</p>
-<p>
-Bill disagrees.
-</p>
-<p>
-We look forward to proposed wording.  Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-08-01 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-See commented dated 2009-08-01 in <a href="lwg-defects.html#951">951</a>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Stefanus to provide wording to turn this into a note.
-</p></blockquote>
-
-<p><i>[
-2010-02-11 Stephanus provided wording for <a href="lwg-defects.html#951">951</a> which addresses
-this issue as well.
-]</i></p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Move to <del>NAD Editorial</del><ins>Resolved</ins>, resolved by <a href="lwg-defects.html#951">951</a>.
-</p></blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="954"></a>954. Various threading bugs #4</h3>
-<p><b>Section:</b> 20.12.3 [time.clock.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 55 &mdash; Clock Requirements (in 20.12.3 [time.clock.req])
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-the requirements for <tt>C1::time_point</tt> require <tt>C1</tt> and <tt>C2</tt>
-to "refer to the same epoch", but "epoch" is not defined.
-</li>
-<li>
-"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." What does "valid" mean here? And, since
-<tt>C1::rep</tt> is "<em>THE</em> representation type of the native
-<tt>duration</tt> and <tt>time_point</tt>" (emphasis added), there
-doesn't seem to be much room for some other representation.
-</li>
-<li>
-<tt>C1::is_monotonic</tt> has type "<tt>const bool</tt>". The
-"<tt>const</tt>" should be removed.
-</li>
-<li>
-<tt>C1::period</tt> has type <tt>ratio</tt>. <tt>ratio</tt> isn't a type, 
-it's a template. What is the required type?
-</li>
-</ol>
-
-<p><i>[
-2009-05-10 Howard adds:
-]</i></p>
-
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-"epoch" is purposefully not defined beyond the common English
-<a href="http://definitions.dictionary.net/epoch">definition</a>.  The C standard
-also chose not to define epoch, though POSIX did.  I believe it is a strength
-of the C standard that epoch is not defined.  When it is known that two <tt>time_point</tt>s
-refer to the same epoch, then a definition of the epoch is not needed to compare
-the two <tt>time_point</tt>s, or subtract them.
-</p>
-<p>
-A <tt>time_point</tt> and a <tt>Clock</tt> implicitly refer to an (unspecified) epoch.
-The <tt>time_point</tt> represents an offset (<tt>duration</tt>) from an epoch.
-</p>
-</li>
-<li>
-<p>
-The sentence:
-</p>
-<blockquote><p>
-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.
-</p></blockquote>
-
-<p>
-is redundant and could be removed.  I believe the sentence which follows the above:
-</p>
-
-<blockquote><p>
-<tt>C1</tt> and <tt>C2</tt> shall refer to the same epoch.
-</p></blockquote>
-
-<p>
-is sufficient.  If two clocks share the same epoch, then by definition, comparing
-their <tt>time_point</tt>s is valid.
-</p>
-</li>
-<li>
-<tt>is_monotonic</tt> is meant to never change (be <tt>const</tt>).  It is also
-desired that this value be usable in compile-time computation and branching.
-</li>
-<li>
-<p>
-This should probably instead be worded:
-</p>
-<blockquote><p>
-An instantiation of <tt>ratio</tt>.
-</p></blockquote>
-</li>
-</ol>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Re (a): It is not clear to us whether "epoch" is a term of art.
-</p>
-<p>
-Re (b), (c), and (d):  We agree with Howard's comments,
-and would consider adding to (c) a <tt>static constexpr</tt> requirement.
-</p>
-<p>
-Move to Open pending proposed wording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-25 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-In regards to (d) I suggest to say "a specialization of ratio" instead of
-"An instantiation of ratio". This seems to be the better matching standard
-core language term for this kind of entity.
-</p></blockquote>
-
-<p><i>[
-2009-05-25 Ganesh adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Regarding (a), I found this paper on the ISO website using the term "epoch" consistently with the current wording:
-</p>
-
-<p>
-<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>
-</p>
-<p>
-which is part of ISO/IEC 18026 "Information technology -- Spatial Reference Model (SRM)".
-</p>
-</blockquote>
-
-<p><i>[
-2009-08-01 Howard: Moved to Reivew as the wording requested in Batavia has been provided.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 20.12.3 [time.clock.req] p1:
-</p>
-<blockquote><p>
--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 
-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 
-section 6.3 of ISO/IEC 18026.</ins>
-A clock shall meet the requirements in Table 45.
-</p></blockquote>
-</li>
-<li>
-<p>
-Remove the sentence from the <tt>time_point</tt> row of the table "Clock Requirements":
-</p>
-<table border="1">
-<caption>Clock requirements</caption>
-<tr>
-<td>
-<tt>C1::time_point</tt>
-</td>
-<td>
-<tt>chrono::time_point&lt;C1&gt;</tt> or <tt>chrono::time_point&lt;C2, C1::duration&gt;</tt>
-</td>
-<td>
-The native <tt>time_point</tt> type of the clock.
-<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>
-<tt>C1</tt> and <tt>C2</tt> shall refer to the same epoch.
-</td>
-</tr>
-</table>
-</li>
-<li>
-<p>
-Change the row starting with <tt>C1::period</tt> of the table "Clock Requirements":
-</p>
-<table border="1">
-<caption>Clock requirements</caption>
-<tr>
-<td>
-<tt>C1::period</tt>
-</td>
-<td>
-<ins>a specialization of</ins> <tt>ratio</tt>
-</td>
-<td>
-The tick period of the clock in seconds.
-</td>
-</tr>
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="956"></a>956. Various threading bugs #6</h3>
-<p><b>Section:</b> 20.12.3 [time.clock.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.req">issues</a> in [time.clock.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.12.3 [time.clock.req] uses the word "native" in several places,
-but doesn't define it. What is a "native <tt>duration</tt>"?
-</p>
-
-<p><i>[
-2009-05-10 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-The standard uses "native" in several places without defining it (e.g.
-2.13.3 [lex.ccon]).  It is meant to mean "that which is defined
-by the facility", or something along those lines.  In this case it refers
-to the nested <tt>time_point</tt> and <tt>duration</tt> types of the clock.
-Better wording is welcome.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open pending proposed wording from Pete.
-</p></blockquote>
-
-<p><i>[
-2009-10-23 Pete provides wording:
-]</i></p>
-
-
-<p><i>[
-2009-11-18 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I see that 30.4.1.3 [thread.timedmutex.requirements]/3 says:
-</p>
-
-<blockquote><p>
-<i>Precondition:</i> If the tick <tt>period</tt> of <tt>rel_time</tt> is not
-exactly convertible to the native tick <tt>period</tt>, the <tt>duration</tt>
-shall be rounded up to the nearest native tick <tt>period</tt>.
-</p></blockquote>
-
-<p>
-I would prefer to see that adapted as well. Following the same style as
-the proposed resolution I come up with
-</p>
-
-<blockquote><p>
-<i>Precondition:</i> If the tick <tt>period</tt> of <tt>rel_time</tt> is not
-exactly convertible to the <del>native</del> tick <tt>period</tt> <ins>of the
-execution environment</ins>, the <tt>duration</tt> shall be rounded up to the
-nearest <del>native</del> tick <tt>period</tt> <ins>of the execution
-environment</ins>.
-</p></blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-03-28 Daniel synced wording with N3092
-]</i></p>
-
-
-<p><i>[
-Post-Rapperswil, Howard provides wording:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording from Howard Hinnant after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 20.12.3 [time.clock.req]:
-</p>
-
-<blockquote>
-<p>
-1 A clock is a bundle consisting of a <del>native</del> <tt>duration</tt>, a
-<del>native</del> <tt>time_point</tt>, and a function <tt>now()</tt> to get the
-current <tt>time_point</tt>. The origin of the clock's <tt>time_point</tt> is
-referred to as the clock's <i>epoch</i>. A clock shall meet the requirements in
-Table 56.
-</p>
-
-<p>
-2 ...
-</p>
-
-<table border="1">
-<caption>Table 56 &mdash; Clock requirements</caption>
-<tr><th>Expression</th> <th>Return type</th> <th>Operational semantics</th></tr>
-
-<tr>
-<td><tt>C1::rep</tt></td>
-<td>An arithmetic type or a class emulating an arithmetic type</td>
-<td>The representation type of <del>the native</del>
-<tt><ins>C1::</ins>duration</tt><ins>.</ins> <del>and
-<tt>time_point</tt>.</del></td>
-</tr>
-
-<tr>
-<td><tt>C1::period</tt></td>
-<td align="center">...</td>
-<td align="center">...</td>
-</tr>
-
-<tr>
-<td><tt>C1::duration</tt></td>
-<td><tt>chrono::duration&lt;C1::rep, C1::period&gt;</tt></td>
-<td>The <del>native</del> <tt>duration</tt> type of the clock.</td>
-</tr>
-
-<tr>
-<td><tt>C1::time_point</tt></td>
-<td><tt>chrono::time_point&lt;C1&gt;</tt> or <tt>chrono::time_point&lt;C2,
-C1::duration&gt;</tt></td>
-<td>The <del>native</del> <tt>time_point</tt> type of the clock. <tt>C1</tt> and
-<tt>C2</tt> shall refer to the same epoch.</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">...</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="957"></a>957. Various threading bugs #7</h3>
-<p><b>Section:</b> 20.12.7.1 [time.clock.system] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.system">issues</a> in [time.clock.system].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.12.7.1 [time.clock.system]: <tt>to_time_t</tt> is overspecified. It
-requires truncation, but should allow rounding. For example, suppose a
-system has a clock that gives times in milliseconds, but <tt>time()</tt> rounds
-those times to the nearest second. Then <tt>system_clock</tt> can't use any
-resolution finer than one second, because if it did, truncating times
-between half a second and a full second would produce the wrong <tt>time_t</tt>
-value.
-</p>
-
-<p><i>[
-Post Summit Anthony Williams provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Review pending input from Howard. and other stakeholders.
-</p></blockquote>
-
-<p><i>[
-2009-05-23 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I am in favor of the wording provided by Anthony.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.12.7.1 [time.clock.system] replace paragraphs 3 and 4 with:
-</p>
-
-<blockquote>
-<pre>
-time_t to_time_t(const time_point&amp; t);
-</pre>
-<blockquote><p>
--3- <i>Returns:</i> A <tt>time_t</tt> object that represents the same
-point in time as <tt>t</tt> when both values are <del>truncated</del>
-<ins>restricted</ins> to the coarser of the precisions of
-<tt>time_t</tt> and <tt>time_point</tt>. <ins> It is implementation
-defined whether values are rounded or truncated to the required
-precision.</ins>
-</p></blockquote>
-
-<pre>
-time_point from_time_t(time_t t);
-</pre>
-<blockquote><p>
--4- <i>Returns:</i> A <tt>time_point</tt> object that represents the
-same point in time as <tt>t</tt> when both values are <del>truncated</del>
-<ins>restricted</ins> to the
-coarser of the precisions of <tt>time_t</tt> and <tt>time_point</tt>.
-<ins>It is implementation defined whether values are
-rounded or truncated to the required precision.</ins>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="958"></a>958. Various threading bugs #8</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.1 [thread.condition.condvar]: the specification for <tt>wait_for</tt>
-with no predicate has an effects clause that says it calls <tt>wait_until</tt>,
-and a returns clause that sets out in words how to determine the return
-value. Is this description of the return value subtly different from the
-description of the value returned by <tt>wait_until</tt>? Or should the effects
-clause and the returns clause be merged?
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. Associate with LWG <a href="lwg-defects.html#859">859</a> and any other monotonic-clock
-related issues.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I believe that <a href="lwg-defects.html#859">859</a> (currently Ready) addresses this issue, and
-that this issue should be marked NAD, solved by <a href="lwg-defects.html#859">859</a> (assuming
-it moves to WP).
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as <del>NAD Editorial</del><ins>Resolved</ins>, addressed by resolution 
-of Issue <a href="lwg-defects.html#859">859</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="960"></a>960. Various threading bugs #10</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.4.1 [thread.mutex.requirements]: paragraph 4 is entitled
-"Error conditions", but according to 17.5.1.4 [structure.specifications], "Error
-conditions:" specifies "the error conditions for error codes reported by
-the function." It's not clear what this should mean when there is no
-function in sight.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open.
-</p></blockquote>
-
-<p><i>[
-Beman provided proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready. Fix the proposed wording with "functions of type Mutex"
--> "functions of Mutex type"
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.4.1 [thread.mutex.requirements] Mutex requirements,
-paragraph 4 as indicated:
-</p>
-
-<blockquote>
-<p>
--4- <del><i>Error conditions:</i></del>
-<ins>The error conditions for error codes, if any, reported by member
-functions of Mutex type shall be:</ins>
-</p>
-<ul>
-<li>
-<tt>not_enough_memory</tt> &mdash; if there is not enough memory to construct
-the mutex object.
-</li>
-<li>
-<tt>resource_unavailable_try_again</tt> &mdash; if any native handle type
-manipulated is not available.
-</li>
-<li>
-<tt>operation_not_permitted</tt> &mdash; if the thread does not have the
-necessary permission to change the state of the mutex object.
-</li>
-<li>
-<tt>device_or_resource_busy</tt> &mdash; if any native handle type
-manipulated is already locked.
-</li>
-<li>
-<tt>invalid_argument</tt> &mdash; if any native handle type manipulated as
-part of mutex construction is incorrect.
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="962"></a>962. Various threading bugs #12</h3>
-<p><b>Section:</b> 30.4.2.2.2 [thread.lock.unique.locking] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.lock.unique.locking">issues</a> in [thread.lock.unique.locking].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.4.2.2.2 [thread.lock.unique.locking]:  <tt>unique_lock::lock</tt> is
-required to throw an object of type <tt>std::system_error</tt> "when the
-postcondition cannot be achieved." The postcondition is <tt>owns == true</tt>,
-and this is trivial to achieve. Presumably, the requirement is intended
-to mean something more than that.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Move to open.
-</p></blockquote>
-
-<p><i>[
-Beman has volunteered to provide proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-07-21 Beman added wording to address 30.2.2 [thread.req.exception]
-in response to the Frankfurt notes in <a href="lwg-defects.html#859">859</a>.
-]</i></p>
-
-
-<p><i>[
-2009-09-25 Beman: minor update to wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>Change Exceptions 30.2.2 [thread.req.exception] as indicated:</i></p>
-<blockquote>
-<p>Some functions described in this Clause are specified to throw exceptions of 
-type <code>system_error</code> (19.5.5). Such exceptions shall be thrown if <ins>
-any of the <i>Error conditions</i> are detected or</ins> a call to an operating 
-system or other underlying API results in an error that prevents the library 
-function from <del>satisfying its postconditions or from returning a meaningful 
-value</del> <ins>meeting its specifications</ins>. <ins>Failure to
-allocate storage shall be reported as described in
-17.6.5.12 [res.on.exception.handling].</ins></p>
-</blockquote>
-
-<p><i>Change thread assignment 30.3.1.5 [thread.thread.member], join(), 
-paragraph 8 as indicated:</i></p>
-<blockquote>
-<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>
-
-</blockquote>
-
-<p><i>Change thread assignment 30.3.1.5 [thread.thread.member], detach(), paragraph 
-13 as indicated:</i></p>
-<blockquote>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postconditions cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-
-</blockquote>
-
-<p><i>Change Mutex requirements 30.4.1 [thread.mutex.requirements], paragraph 
-11, as indicated:</i></p>
-<blockquote>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-<p><i>Change unique_lock locking 30.4.2.2.2 [thread.lock.unique.locking], 
-paragraph 3, as indicated:</i></p>
-<blockquote>
-
-<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>
-</blockquote>
-<p><i>Change unique_lock locking 30.4.2.2.2 [thread.lock.unique.locking], 
-paragraph 8, as indicated:</i></p>
-<blockquote>
-
-<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>
-</blockquote>
-<p><i>Change unique_lock locking 30.4.2.2.2 [thread.lock.unique.locking], 
-paragraph 13, as indicated:</i></p>
-<blockquote>
-
-<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>
-</blockquote>
-<p><i>Change unique_lock locking 30.4.2.2.2 [thread.lock.unique.locking], 
-paragraph 18, as indicated:</i></p>
-<blockquote>
-
-<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>
-</blockquote>
-<p><i>Change unique_lock locking 30.4.2.2.2 [thread.lock.unique.locking], 
-paragraph 22, as indicated:</i></p>
-<blockquote>
-
-<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>
-</blockquote>
-<p><i>Change Function call_once 30.4.4.2 [thread.once.callonce], paragraph 4, as 
-indicated</i></p>
-<blockquote>
-  <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>, 
-  or any exception thrown by <code>func</code>.</p>
-</blockquote>
-<p><i>Change Class condition_variable 30.5.1 [thread.condition.condvar], 
-paragraph 12, as indicated:</i></p>
-<blockquote>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-<p><i>Change Class condition_variable 30.5.1 [thread.condition.condvar], 
-paragraph 19, as indicated:</i></p>
-<blockquote>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-<p><i>Change Class condition_variable_any 30.5.2 [thread.condition.condvarany], 
-paragraph 10, as indicated:</i></p>
-<blockquote>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-<p><i>Change Class condition_variable_any 30.5.2 [thread.condition.condvarany], 
-paragraph 16, as indicated:</i></p>
-<blockquote>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the returned value, effects, or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-
-<p><i>Assuming issue <a href="lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been 
-applied to the working paper, change Change 30.5.1 [thread.condition.condvar] as 
-indicated:</i></p>
-<blockquote>
-<pre>template &lt;class Rep, class Period&gt; 
-bool wait_for(unique_lock&lt;mutex&gt;&amp; lock, 
-              const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);</pre>
-<pre>...</pre>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postcondition cannot be achieved</del> <ins>an exception is required ([thread.req.exception])</ins>.</p>
-</blockquote>
-
-<p><i>Assuming issue <a href="lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been 
-applied to the working paper, change Change 30.5.1 [thread.condition.condvar] as 
-indicated:</i></p>
-<blockquote>
-<pre>template &lt;class Rep, class Period, class Predicate&gt; 
-  bool wait_for(unique_lock&lt;mutex&gt;&amp; lock, 
-                const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, 
-                Predicate pred);</pre>
-  <pre>...</pre>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-
-<p><i>Assuming issue <a href="lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been 
-applied to the working paper, change 30.5.2 [thread.condition.condvarany] as 
-indicated:</i></p>
-<blockquote>
-<pre>template &lt;class Lock, class Rep, class Period&gt; 
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);</pre>
-  <pre>...</pre>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the returned value, effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-
-<p><i>Assuming issue <a href="lwg-defects.html#859">859</a>, Monotonic Clock is Conditionally Supported?, has been 
-applied to the working paper, change 30.5.2 [thread.condition.condvarany] as 
-indicated:</i></p>
-<blockquote>
-<pre>template &lt;class Lock, class Rep, class Period, class Predicate&gt; 
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, Predicate pred);</pre>
-  <pre>...</pre>
-
-<p><i>Throws:</i> <code>std::system_error</code> when <del>the returned value, effects or 
-postcondition cannot be achieved</del> <ins>an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="963"></a>963. Various threading bugs #13</h3>
-<p><b>Section:</b> 30.3.1.5 [thread.thread.member] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.member">issues</a> in [thread.thread.member].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.3.1.5 [thread.thread.member]:  <tt>thread::detach</tt> is required to
-throw an exception if the thread is "not a detachable thread".
-"Detachable" is never defined.
-</p>
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Due to a mistake on my part, 3 proposed resolutions appeared at approximately
-the same time.  They are all three noted below in the discussion.
-</p></blockquote>
-
-<p><i>[
-Summit, proposed resolution:
-]</i></p>
-
-
-<blockquote>
-<p>
-In 30.3.1.5 [thread.thread.member] change:
-</p>
-
-<blockquote><pre>
-void detach();
-</pre>
-<blockquote>
-<p>...</p>
-<p>-14- <i>Error conditions:</i></p>
-<ul>
-<li><tt>no_such_process</tt> --  <ins>if the thread is</ins> not <del>a</del> valid<del> thread</del>.</li>
-<li><tt>invalid_argument</tt> -- <ins>if the thread is</ins> not <del>a detachable</del> <ins>joinable</ins><del> thread</del>.</li>
-</ul>
-</blockquote>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-Post Summit, Jonathan Wakely adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-A <tt>thread</tt> is detachable if it is joinable. As we've defined joinable,
-we can just use that.
-</p>
-<p>
-This corresponds to the pthreads specification, where pthread_detach
-fails if the thread is not joinable:
-</p>
-<blockquote><p>
-EINVAL: The  implementation  has  detected  that  the value specified by
-thread does not refer to a joinable thread.
-</p></blockquote>
-<p>
-Jonathan recommends this proposed wording:
-</p>
-<blockquote>
-<p>
-In 30.3.1.5 [thread.thread.member] change:
-</p>
-
-<blockquote><pre>
-void detach();
-</pre>
-<blockquote>
-<p>...</p>
-<p>-14- <i>Error conditions:</i></p>
-<ul>
-<li>...</li>
-<li><tt>invalid_argument</tt> -- not a <del>detachable</del> <ins>joinable</ins> thread.</li>
-</ul>
-</blockquote>
-
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Post Summit, Anthony Williams adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This is covered by the precondition that <tt>joinable()</tt> be <tt>true</tt>.
-</p>
-<p>
-Anthony recommends this proposed wording:
-</p>
-
-<blockquote>
-<p>
-In 30.3.1.5 [thread.thread.member] change:
-</p>
-
-<blockquote><pre>
-void detach();
-</pre>
-<blockquote>
-<p>...</p>
-<p>-14- <i>Error conditions:</i></p>
-<ul>
-<li>...</li>
-<li><del><tt>invalid_argument</tt> -- not a detachable thread.</del></li>
-</ul>
-</blockquote>
-
-</blockquote>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark as Ready with proposed resolution from Summit.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In 30.3.1.5 [thread.thread.member] change:
-</p>
-
-<blockquote><pre>
-void detach();
-</pre>
-<blockquote>
-<p>...</p>
-<p>-14- <i>Error conditions:</i></p>
-<ul>
-<li><tt>no_such_process</tt> --  <ins>if the thread is</ins> not <del>a</del> valid<del> thread</del>.</li>
-<li><tt>invalid_argument</tt> -- <ins>if the thread is</ins> not <del>a detachable</del> <ins>joinable</ins><del> thread</del>.</li>
-</ul>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="964"></a>964. Various threading bugs #14</h3>
-<p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements for the constructor for <tt>condition_variable</tt> has several
-error conditions, but the requirements for the constructor for
-<tt>condition_variable_any</tt> has none. Is this difference intentional?
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open, pass to Howard. If this is intentional, a note may be
-helpful. If the error conditions are to be copied from
-<tt>condition_variable</tt>, this depends on LWG <a href="lwg-defects.html#965">965</a>.
-</p></blockquote>
-
-<p><i>[
-Post Summit Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-The original intention 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2447.htm#ConditionVariablesWording">N2447</a>)
-was to let the OS return whatever errors it was going to return, and for
-those to be translated into exceptions, for both
-<tt>condition_variable</tt> and <tt>condition_variable_any</tt>.  I have not
-received any complaints about specific error conditions from vendors on
-non-POSIX platforms, but such complaints would not surprise me if they surfaced.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open. Benjamin to provide wording.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-We don't have throw clauses for condition variables.
-</p>
-<p>
-This issue may be dependent on LWG <a href="lwg-defects.html#1268">1268</a>.
-</p>
-<p>
-Leave open. Detlef will coordinate with Benjamin.
-</p>
-<p>
-Consider merging LWG 964, <a href="lwg-defects.html#966">966</a>, and <a href="lwg-defects.html#1268">1268</a> into a
-single paper.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Resolved 2011-03 Madrid meeting by paper 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278.htm">N3278</a>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="965"></a>965. Various threading bugs #15</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.1 [thread.condition.condvar]: the constructor for
-<tt>condition_variable</tt> throws an exception with error code
-<tt>device_or_resource_busy</tt> "if attempting to initialize a
-previously-initialized but as of yet undestroyed <tt>condition_variable</tt>."
-How can this occur?
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote>
-<p>
-Move to review. Proposed resolution: strike the <tt>device_or_resource_busy</tt>
-error condition from the constructor of <tt>condition_variable</tt>.
-</p>
-<ul>
-<li>
-This is a POSIX error that cannot occur in this interface because the
-C++ interface does not separate declaration from initialization.
-</li>
-</ul>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.5.1 [thread.condition.condvar] p3:
-</p>
-
-<blockquote>
-<ul>
-<li>...</li>
-<li>
-<del><tt>device_or_resource_busy</tt> -- if attempting to initialize a
-previously-initialized but as of yet undestroyed
-<tt>condition_variable</tt>.</del>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="966"></a>966. Various threading bugs #16</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.1 [thread.condition.condvar]:
-<tt>condition_variable::wait</tt> and
-<tt>condition_variable::wait_until</tt> both have a postcondition that
-<tt>lock</tt> is locked by the calling thread, and a throws clause that
-requires throwing an exception if this postcondition cannot be achieved.
-How can the implementation detect that this <tt>lock</tt> can never be
-obtained?
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to open. Requires wording. Agreed this is an issue, and the
-specification should not require detecting deadlocks.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard provides wording.
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed wording is inspired by the POSIX spec which says:
-</p>
-
-<blockquote>
-<dl>
-<dt>[EINVAL]</dt>
-<dd>The value specified by cond or mutex is invalid.</dd>
-<dt>[EPERM]</dt>
-<dd>The mutex was not owned by the current thread at the time of the call.</dd>
-</dl>
-</blockquote>
-
-<p>
-I do not believe [EINVAL] is possible without memory corruption (which we don't
-specify).  [EPERM] is possible if this thread doesn't own the mutex, which is
-listed as a precondition.  "May" is used instead of "Shall" because not all
-OS's are POSIX.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open, Detlef to provide improved wording.
-</p></blockquote>
-
-<p><i>[
-2009-10-23 Detlef Provided wording.
-]</i></p>
-
-
-<blockquote>
-<p>
-Detlef's wording put in Proposed resolution.  Original wording here:
-</p>
-<blockquote>
-<p>
-Change 30.5.1 [thread.condition.condvar] p12, p19 and
-30.5.2 [thread.condition.condvarany] p10, p16:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> <ins>May throw</ins> <tt>std::system_error</tt> 
-<ins>
-if a precondition is not met.
-</ins>
-<del>when the effects or postcondition
-cannot be achieved.</del>
-</p></blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave open, Detlef to provide improved wording.
-</p></blockquote>
-
-<p><i>[
-2009-11-18 Anthony adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>condition_variable::wait</tt> takes a <tt>unique_lock&lt;mutex&gt;</tt>. We
-know whether or not a <tt>unique_lock</tt> owns a lock, through use of its
-<tt>owns_lock()</tt> member.
-</p>
-
-<p>
-I would like to propose the following resolution:
-</p>
-
-<blockquote>
-<p>
-Modify the first sentence of 30.5.1 [thread.condition.condvar] p9:
-</p>
-
-<blockquote><pre>
-void wait(unique_lock&lt;mutex&gt;&amp; lock);
-</pre>
-<blockquote><p>
-9 <i>Precondition:</i> <del><tt>lock</tt> is locked by the calling thread</del>
-<ins><tt>lock.owns_lock()</tt> is <tt>true</tt></ins>, and either
-</p><p>...</p>
-</blockquote>
-</blockquote>
-
-<p>
-Replace 30.5.1 [thread.condition.condvar] p11-13 with:
-</p>
-
-<blockquote><pre>
-void wait(unique_lock&lt;mutex&gt;&amp; lock);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-11 <i>Postcondition:</i> <del><tt>lock</tt> is locked by the calling
-thread</del> <ins><tt>lock.owns_lock()</tt> is <tt>true</tt></ins>.
-</p>
-
-<p>
-12 <i>Throws:</i> <tt>std::system_error</tt> <del>when the effects or
-postcondition cannot be achieved</del> <ins>if the implementation detects that
-the preconditions are not met or the effects cannot be achieved. Any exception
-thrown by <tt>lock.lock()</tt> or <tt>lock.unlock()</tt></ins>.
-</p>
-
-<p>
-13 <i>Error Conditions:</i> <ins>The error conditions are implementation
-defined.</ins>
-</p>
-
-<ul>
-<li><del>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</del></li>
-</ul>
-
-</blockquote>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-There are heavy conflicts with adopted papers.
-</p>
-<p>
-This issue is dependent on LWG <a href="lwg-defects.html#1268">1268</a>.
-</p>
-<p>
-Leave open pending outstanding edits to the working draft. Detlef will provide
-wording.
-</p>
-<p>
-Possibly related to <a href="lwg-defects.html#964">964</a>.
-</p>
-
-</blockquote>
-
-<p><i>[2011-03-24 Madrid]</i></p>
-
-<p><b>Rationale:</b></p>
-<p>
-This has been resolved since filing, with the introduction of <tt>system_error</tt> to the thread specification.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace 30.5.1 [thread.condition.condvar] p12, p19 and
-30.5.2 [thread.condition.condvarany] p10, p16:
-</p>
-
-<blockquote>
-<p><del>
-<i>Throws:</i> <tt>std::system_error</tt> when the effects or
-postcondition cannot be achieved.
-</del></p>
-<p><del>
-Error conditions:
-</del></p>
-<ul>
-<li><del>
-equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</del></li>
-</ul>
-
-<p><ins>
-<i>Throws:</i> It is implementation-defined whether a <tt>std::system_error</tt>
-with implementation-defined error condition is thrown if the
-precondition is not met.
-</ins></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="967"></a>967. Various threading bugs #17</h3>
-<p><b>Section:</b> 30.3.1.2 [thread.thread.constr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.constr">issues</a> in [thread.thread.constr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-the error handling for the constructor for <tt>condition_variable</tt>
-distinguishes lack of memory from lack of other resources, but the error
-handling for the thread constructor does not. Is this difference
-intentional?
-</p>
-
-<p><i>[
-Beman has volunteered to provide proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-09-25 Beman provided proposed wording.
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution assumes <a href="lwg-defects.html#962">962</a> has been accepted and
-its proposed resolution applied to the working paper.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><span style="font-style: italic">Change Mutex requirements 30.4.1 [thread.mutex.requirements], 
-paragraph 4, as indicated:</span></p>
-<blockquote>
-
-<p><i>Error conditions:</i></p>
-  <blockquote>
-
-<ul>
-<li><del> <code>not_enough_memory</code> &mdash; if there is not enough memory to construct 
-the mutex object.</del></li>
-
-<li><code>resource_unavailable_try_again</code> &mdash; if any native handle type 
-manipulated is not available.</li>
-
-<li><code>operation_not_permitted</code> &mdash; if the thread does not have the 
-necessary permission to change the state of the mutex object.</li>
-
-<li><code>device_or_resource_busy</code> &mdash; if any native handle type 
-manipulated is already locked.</li>
-
-<li><code>invalid_argument</code> &mdash; if any native handle type manipulated as 
-part of mutex construction is incorrect.</li>
-</ul>
-  </blockquote>
-</blockquote>
-
-<p><span style="font-style: italic">Change Class <tt>condition_variable</tt> 30.5.1 [thread.condition.condvar], 
-default constructor, as indicated:</span></p>
-<blockquote>
-  <p><code>condition_variable();</code></p>
-  <blockquote>
-    <p><i>Effects:</i> Constructs an object of type <code>condition_variable</code>.</p>
-    <p><ins><i>Throws:</i> <code>std::system_error</code> when an exception is required (30.2.2 [thread.req.exception])</ins>.</p>
-    <p><i>Error conditions:</i></p>
-    <blockquote>
-    <ul>
-      <li><del><code>not_enough_memory</code> &mdash; if a memory limitation prevents 
-      initialization.</del></li>
-      <li> <code>resource_unavailable_try_again</code> &mdash; if some non-memory 
-      resource limitation prevents initialization.</li>
-      <li> <code>device_or_resource_busy</code> &mdash; if attempting to initialize a 
-      previously-initialized but as of yet undestroyed <code>condition_variable</code>.</li>
-    </ul>
-    </blockquote>
-  </blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="968"></a>968. Various threading bugs #18</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-01-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.4.1 [thread.mutex.requirements]: several functions are
-required to throw exceptions "if the thread does not have the necessary
-permission ...". "The necessary permission" is not defined.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Move to open.
-</p></blockquote>
-
-
-<p><i>[
-Beman has volunteered to provide proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready with minor word-smithing in the example.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><i>Change Exceptions 30.2.2 [thread.req.exception] as indicated:</i></p>
-<blockquote>
-<p>Some functions described in this Clause are 
-specified to throw exceptions of type <code>system_error</code> (19.5.5). Such exceptions 
-shall be thrown if any of the <i>Error conditions</i> are detected or a call to an operating system or other underlying API 
-results in an error that prevents the library function from meeting its specifications.
-<i>[Note:</i> See 17.6.5.12 [res.on.exception.handling] for exceptions thrown to report 
-storage allocation failures. <i>&mdash;end 
-note]</i></p>
-
-<p><ins><i>[Example:</i></ins></p>
-
-<blockquote>
-
-<p><ins>Consider a function in this clause that is specified to throw exceptions of type <code>
-system_error</code> and specifies <i>Error conditions</i> that include <code>
-operation_not_permitted</code> for a thread that does not have the privilege to 
-perform the operation. Assume that, during the execution of this function, an <code>errno</code> 
-of <code>EPERM</code> is reported by a POSIX API call used by the 
-implementation. Since POSIX specifies an <code>errno</code> of <code>EPERM</code> 
-when &quot;the caller does not have the privilege to perform the operation&quot;, 
-the implementation maps <code>EPERM</code>&nbsp; to an <code>error_condition</code> 
-of <code>operation_not_permitted</code> (19.5 [syserr]) and an exception of type <code>
-system_error</code> is thrown. </ins></p>
-
-</blockquote>
-
-<p><ins><i>&mdash;end example]</i></ins></p>
-
-<p><span style="font-style: italic">Editorial note: For the sake of exposition, 
-the existing text above is shown with the changes proposed in issues 962 and 967. The 
-proposed additional example is independent of whether or not the 962 and 967 
-proposed resolutions are accepted.</span></p>
-
-</blockquote>
-
-<p><span style="font-style: italic">Change Mutex requirements 30.4.1 [thread.mutex.requirements], 
-paragraph 4, as indicated:</span></p>
-
-<blockquote>
-
-<p>&mdash; <code>operation_not_permitted</code> &mdash; if the thread does not have the 
-<del>necessary permission to change the state of the mutex object</del> <ins>privilege to perform the operation</ins>.</p>
-
-</blockquote>
-
-<p><span style="font-style: italic">Change Mutex requirements 30.4.1 [thread.mutex.requirements], 
-paragraph 12, as indicated:</span></p>
-
-<blockquote>
-
-<p>&mdash; <code>operation_not_permitted</code> &mdash; if the thread does not have the 
-<del>necessary permission to change the state of the mutex</del> <ins>privilege to perform the operation</ins>.</p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="970"></a>970. <tt>addressof</tt> overload unneeded</h3>
-<p><b>Section:</b> 20.7.12.1 [specialized.addressof] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-01-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#specialized.addressof">issues</a> in [specialized.addressof].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.7.12.1 [specialized.addressof] specifies:
-</p>
-
-<blockquote><pre>
-template &lt;ObjectType T&gt; T* addressof(T&amp; r);
-template &lt;ObjectType T&gt; T* addressof(T&amp;&amp; r);
-</pre></blockquote>
-
-<p>
-The two signatures are ambiguous when the argument is an lvalue.  The
-second signature seems not useful:  what does it mean to take the
-address of an rvalue?
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote><p>
-Recommend Review.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-11-18 Moved from Pending WP to WP.  Confirmed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.7.12.1 [specialized.addressof]:
-</p>
-
-<blockquote><pre>
-template &lt;ObjectType T&gt; T* addressof(T&amp; r);
-<del>template &lt;ObjectType T&gt; T* addressof(T&amp;&amp; r);</del>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="974"></a>974. <tt>duration&lt;double&gt;</tt> should not implicitly convert to <tt>duration&lt;int&gt;</tt></h3>
-<p><b>Section:</b> 20.12.5.1 [time.duration.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-01-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.cons">issues</a> in [time.duration.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following code should not compile because it involves implicit truncation
-errors (against the design philosophy of the <tt>duration</tt> library).
-</p>
-
-<blockquote><pre>
-duration&lt;double&gt; d(3.5);
-duration&lt;int&gt; i = d;  <span style="color:#C80000">// implicit truncation, should not compile</span>
-</pre></blockquote>
-
-<p>
-This intent was codified in the example implementation which drove this proposal
-but I failed to accurately translate the code into the specification in this
-regard.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-improved for <tt>enable_if</tt> type constraining, possibly following Robert's
-formula.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Addressed by <a href="lwg-defects.html#1177">1177</a>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Not completely addressed by <a href="lwg-defects.html#1177">1177</a>.  Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.12.5.1 [time.duration.cons], p4:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Rep2, class Period2&gt; 
-  duration(const duration&lt;Rep2, Period2&gt;&amp; d);
-</pre>
-<blockquote><p>
--4- <i>Requires:</i> <tt>treat_as_floating_point&lt;rep&gt;::value</tt>
-shall be <tt>true</tt> or <ins>both</ins> <tt>ratio_divide&lt;Period2,
-period&gt;::type::den</tt> shall be 1
-<ins>and <tt>treat_as_floating_point&lt;Rep2&gt;::value</tt>
-shall be <tt>false</tt></ins>.
-Diagnostic required.
-[<i>Note:</i> This requirement prevents implicit truncation error when
-converting between integral-based <tt>duration</tt> types. Such a
-construction could easily lead to confusion about the value of the
-<tt>duration</tt>. &mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="975"></a>975. <tt>is_convertible</tt> cannot be instantiated for non-convertible types</h3>
-<p><b>Section:</b> 20.10.6 [meta.rel] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-01-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.rel">issues</a> in [meta.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 206</b></p>
-
-<p>
-Related to <a href="lwg-defects.html#1114">1114</a>.
-</p>
-
-<p>
-The current specification of <tt>std::is_convertible</tt> (reference is draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>)
-is basically defined by 20.10.6 [meta.rel] p.4:
-</p>
-
-<blockquote>
-<p>
-In order to instantiate the template <tt>is_convertible&lt;From,
-To&gt;</tt>, the following code shall be well formed:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create();
-
-To test() {
-  return create&lt;From&gt;();
-}
-</pre></blockquote>
-
-<p>
-[<i>Note:</i> This requirement gives well defined results for reference
-types, void types, array types, and function types. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<p>
-The first sentence can be interpreted, that e.g. the expression
-</p>
-
-<blockquote><pre>
-std::is_convertible&lt;double, int*&gt;::value
-</pre></blockquote>
-
-<p>
-is ill-formed because <tt>std::is_convertible&lt;double, int*&gt;</tt> could not be
-instantiated, or in more general terms: The wording requires that
-<tt>std::is_convertible&lt;X, Y&gt;</tt> cannot be instantiated for otherwise valid
-argument types <tt>X</tt> and <tt>Y</tt> if <tt>X</tt> is not convertible to <tt>Y</tt>.
-</p>
-
-<p>
-This semantic is both unpractical and in contradiction to what the last type
-traits paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2255.html">N2255</a>
-proposed:
-</p>
-
-<blockquote>
-<p>
-If the following <tt>test</tt> function is well formed code <tt>b</tt>
-is <tt>true</tt>, else it is <tt>false</tt>.
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create();
-
-To test() {
-  return create&lt;From&gt;();
-}
-</pre></blockquote>
-
-<p>
-[<i>Note:</i> This definition gives well defined results for <tt>reference</tt>
-types, <tt>void</tt> types, array types, and function types. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Jens: Checking that code is well-formed and then returning <tt>true</tt>&#47;<tt>false</tt>
-sounds like speculative compilation. John Spicer would really dislike
-this. Please find another wording suggesting speculative compilation.
-</p>
-<p>
-Recommend Open.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit, Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-John finds the following wording clearer:
-</p>
-<blockquote>
-
-<table border="1">
-<tr>
-<th>Template</th><th>Condition</th><th>Comments</th>
-</tr>
-<tr>
-<td><tt>template &lt;class From, class To&gt;<br/>struct is_convertible;</tt></td>
-<td><i>see below</i></td>
-<td><tt>From</tt> and <tt>To</tt> shall be complete types, arrays of unknown bound,
-or (possibly cv-qualified) <tt>void</tt> types.</td>
-</tr>
-</table>
-
-<p>
-Given the following function prototype:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create();
-</pre></blockquote>
-
-<p>
-<tt>is_convertible&lt;From, To&gt;::value</tt> shall be <tt>true</tt> if the
-return expression in the following code would be well-formed, including
-any implicit conversions to the return type of the function, else
-<tt>is_convertible&lt;From, To&gt;::value</tt> shall be <tt>false</tt>.
-</p>
-
-<blockquote><pre>
-To test() {
-  return create&lt;From&gt;();
-}
-</pre></blockquote>
-
-</blockquote>
-
-</blockquote>
-<p>
-<b>Original proposed wording:</b>
-</p>
-<p>
-In 20.10.6 [meta.rel]/4 change:
-</p>
-
-<blockquote><p>
-<del>In order to instantiate the template <tt>is_convertible&lt;From, To&gt;</tt>, the
-following code shall be well formed</del> <ins>If the following code
-is well formed <tt>is_convertible&lt;From, To&gt;::value</tt> is <tt>true</tt>, otherwise
-<tt>false</tt></ins>:[..]
-</p></blockquote>
-
-<p><b>Revision 2</b></p>
-
-<blockquote>
-
-<p>
-In 20.10.6 [meta.rel] change:
-</p>
-
-<blockquote>
-
-<table border="1">
-<tr>
-<th>Template</th><th>Condition</th><th>Comments</th>
-</tr>
-<tr><td>...</td><td>...</td><td>...</td></tr>
-<tr>
-<td><tt>template &lt;class From, class To&gt;<br/>struct is_convertible;</tt></td>
-<td>
-<del>The code set out below shall be well formed.</del>
-<ins><i>see below</i></ins></td>
-<td><tt>From</tt> and <tt>To</tt> shall be complete types, arrays of unknown bound,
-or (possibly cv-qualified) <tt>void</tt> types.</td>
-</tr>
-</table>
-
-<p>
--4- <del>In order to instantiate the template <tt>is_convertible&lt;From, To&gt;</tt>, the
-following code shall be well formed:</del>
-<ins>Given the following function prototype:</ins>
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; 
-  typename add_rvalue_reference&lt;T&gt;::type create();
-</pre></blockquote>
-
-<p>
-<ins><tt>is_convertible&lt;From, To&gt;::value</tt> inherits either directly or
-indirectly from <tt>true_type</tt> if the
-return expression in the following code would be well-formed, including
-any implicit conversions to the return type of the function, else
-<tt>is_convertible&lt;From, To&gt;::value</tt> inherits either directly or
-indirectly from <tt>false_type</tt>.</ins>
-</p>
-
-<blockquote><pre>
-To test() { 
-  return create&lt;From&gt;(); 
-}
-</pre></blockquote>
-
-<p>
-[<i>Note:</i> This requirement gives well defined results for reference types,
-void types, array types, and function types. <i>-- end note</i>]
-</p>
-
-</blockquote>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In 20.10.6 [meta.rel] change:
-</p>
-
-<blockquote>
-
-<table border="1">
-<tr>
-<th>Template</th><th>Condition</th><th>Comments</th>
-</tr>
-<tr><td>...</td><td>...</td><td>...</td></tr>
-<tr>
-<td><tt>template &lt;class From, class To&gt;<br/>struct is_convertible;</tt></td>
-<td>
-<del>The code set out below shall be well formed.</del>
-<ins><i>see below</i></ins></td>
-<td><tt>From</tt> and <tt>To</tt> shall be complete types, arrays of unknown bound,
-or (possibly cv-qualified) <tt>void</tt> types.</td>
-</tr>
-</table>
-
-<p>
--4- <del>In order to instantiate the template <tt>is_convertible&lt;From, To&gt;</tt>, the
-following code shall be well formed:</del>
-<ins>Given the following function prototype:</ins>
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; 
-  typename add_rvalue_reference&lt;T&gt;::type create();
-</pre></blockquote>
-
-<p>
-<ins>the predicate condition for a template specialization
-<tt>is_convertible&lt;From, To&gt;</tt> shall be satisfied, if and only
-if the return expression in the following code would be well-formed,
-including any implicit conversions to the return type of the
-function.</ins>
-</p>
-
-<blockquote><pre>
-To test() { 
-  return create&lt;From&gt;(); 
-}
-</pre></blockquote>
-
-<p>
-[<i>Note:</i> This requirement gives well defined results for reference types,
-void types, array types, and function types. &mdash; <i>end note</i>]
-</p>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="976"></a>976. Class template <tt>std::stack</tt> should be movable</h3>
-<p><b>Section:</b> 23.6.5.2 [stack.defn] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-02-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopsis given in 23.6.5.2 [stack.defn] does not show up
-</p>
-
-<blockquote><pre>
-requires MoveConstructible&lt;Cont&gt; stack(stack&amp;&amp;);
-requires MoveAssignable&lt;Cont&gt; stack&amp; operator=(stack&amp;&amp;);
-</pre></blockquote>
-
-<p>
-although the other container adaptors do provide corresponding members.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-08-18 Daniel updates the wording and Howard sets to Review.
-]</i></p>
-
-
-<p><i>[
-2009-08-23 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-<a href="lwg-defects.html#1194">1194</a> also adds these move members using an editorially different style.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark <del>NAD Editorial</del><ins>Resolved</ins>, addressed by issue <a href="lwg-defects.html#1194">1194</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In the class stack synopsis of 23.6.5.2 [stack.defn] insert:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt;
-class stack {
-  [..]
-  explicit stack(const Container&amp;);
-  explicit stack(Container&amp;&amp; = Container());
-  <ins>stack(stack&amp;&amp; s) : c(std::move(s.c)) {}</ins>
-  <ins>stack&amp; operator=(stack&amp;&amp; s) { c = std::move(s.c); return *this; }</ins>
-  [..]
-};
-</pre></blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="978"></a>978. Hashing smart pointers</h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-02-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 208</b></p>
-<p>
-I don't see an open issue on supporting <tt>std::hash</tt> for smart pointers
-(<tt>unique_ptr</tt> and <tt>shared_ptr</tt> at least).
-</p>
-<p>
-It seems reasonable to at least expect support for the smart
-pointers, especially as they support comparison for use in ordered
-associative containers.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard points out that the client can always supply a custom hash function.
-</p>
-<p>
-Alisdair replies that the smart pointer classes are highly likely
-to be frequently used as hash keys.
-</p>
-<p>
-Bill would prefer to be conservative.
-</p>
-<p>
-Alisdair mentions that this issue may also be viewed as a subissue or
-duplicate of issue <a href="lwg-active.html#1025">1025</a>.
-</p>
-<p>
-Move to Open, and recommend the issue be deferred until after the next
-Committee Draft is issued.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-31 Peter adds:
-]</i></p>
-
-
-<blockquote>
-<blockquote><p>
-Howard points out that the client can always supply a custom hash function.
-</p></blockquote>
-<p>
-Not entirely true. The client cannot supply the function that hashes the
-address of the control block (the equivalent of the old <tt>operator&lt;</tt>, now
-proudly carrying the awkward name of '<tt>owner_before</tt>'). Only the
-implementation can do that, not necessarily via specializing <tt>hash&lt;&gt;</tt>, of
-course.
-</p>
-<p>
-This hash function makes sense in certain situations for <tt>shared_ptr</tt>
-(when one needs to switch from <tt>set/map</tt> using ownership ordering to
-<tt>unordered_set/map</tt>) and is the only hash function that makes sense for
-<tt>weak_ptr</tt>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-28 Alisdair provides wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2009-11-16 Moved from Ready to Open:
-]</i></p>
-
-
-<blockquote>
-<p>
-Pete writes:
-</p>
-<blockquote>
-<p>
-As far as I can see, "...suitable for using this type as key in unordered
-associative containers..." doesn't define any semantics. It's advice to the
-reader, and if it's present at all it should be in a note. But we have far too
-much of this sort of editorial commentary as it is.
-</p>
-<p>
-And in the resolution of 978 it's clearly wrong: it says that if there is no
-hash specialization available for <tt>D::pointer</tt>, the implementation may provide
-<tt>hash&lt;unique_ptr&lt;T,D&gt;&gt;</tt> if the result is not suitable for use in unordered
-containers.
-</p>
-</blockquote>
-
-<p>
-Howard writes:
-</p>
-
-<blockquote><p>
-Is this a request to pull 978 from Ready?
-</p></blockquote>
-
-<p>
-Barry writes:
-</p>
-<blockquote>
-<p>
-I read this as more than a request. The PE says it's wrong, so it can't be
-Ready.
-</p>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-01-31 Alisdair: related to <a href="lwg-defects.html#1245">1245</a> and <a href="lwg-defects.html#1182">1182</a>.
-]</i></p>
-
-
-<p><i>[
-2010-02-08 Beman updates wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>Add the following declarations to the synopsis of <tt>&lt;memory&gt;</tt> in 
-20.7 [memory] </i></p>
-
-<blockquote>
-<pre><ins>// [util.smartptr.hash] hash support
-template &lt;class T&gt; struct hash;
-template &lt;class T, class D&gt; struct hash&lt;unique_ptr&lt;T,D&gt;&gt;;
-template &lt;class T&gt; struct hash&lt;shared_ptr&lt;T&gt;&gt;;</ins></pre>
-</blockquote>
-
-<p><i>Add a new subclause under 20.8.2 [util.smartptr] called hash support </i></p>
-
-<blockquote>
-<h3><ins>hash support [util.smartptr.hash]</ins></h3>
-
-<pre><ins>template &lt;class T, class D&gt; struct hash&lt;unique_ptr&lt;T,D&gt;&gt;;</ins></pre>
-
-<blockquote>
-<p><ins>
-Specialization meeting the requirements of class template <tt>hash</tt> (20.9.13 [unord.hash]). For an object <tt>p</tt> of type <tt>UP</tt>, where
-<tt>UP</tt> is a type <tt>unique_ptr&lt;T,D&gt;</tt>,
-<tt>hash&lt;UP&gt;()(p)</tt> shall evaluate to the same value as
-<tt>hash&lt;typename UP::pointer&gt;()(p.get())</tt>. The specialization
-<tt>hash&lt;typename UP::pointer&gt;</tt> is required to be well-formed.
-</ins></p>
-</blockquote>
-
-<pre><ins>template &lt;class T&gt; struct hash&lt;shared_ptr&lt;T&gt;&gt;;</ins></pre>
-
-<blockquote>
-<p><ins>
-Specialization meeting the requirements of class template <tt>hash</tt> (20.9.13 [unord.hash]). For an object <tt>p</tt> of type
-<tt>shared_ptr&lt;T&gt;</tt>, <tt>hash&lt;shared_ptr&lt;T&gt;&gt;()(p)</tt>
-shall evaluate to the same value as <tt> hash&lt;T*&gt;()(p.get())</tt>.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="981"></a>981. Unordered container requirements should add  <tt>initializer_list</tt> support</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-02-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Refering to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>
-all container requirements tables (including those for
-associative containers) provide useful member function overloads
-accepting <tt>std::initializer_list</tt> as argument, the only exception is
-Table 87. There seems to be no reason for not providing them, because 23.5 [unord]
-is already <tt>initializer_list</tt>-aware. For the sake of 
-library interface consistency and user-expectations corresponding 
-overloads should be added to the table requirements of unordered 
-containers as well.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In 23.2.5 [unord.req]/9 insert:
-</p>
-
-<blockquote><p>
-... <tt>[q1, q2)</tt> is a valid range in <tt>a</tt>, <ins><tt>il</tt>
-designates an object of type <tt>initializer_list&lt;value_type&gt;</tt>, </ins><tt>t</tt> is a value of type
-<tt>X::value_type</tt>, ...
-</p></blockquote>
-
-<p>
-In 23.2.5 [unord.req], Table 87 insert:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 - Unordered associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th> <th>Return type</th> <th>Assertion/note<br/>pre-/post-condition</th> <th>Complexity</th>
-</tr>
-<tr>
-<td><tt>X(i, j)<br/>X a(i, j)</tt></td> <td><tt>X</tt></td> <td>...</td> <td>...</td>
-</tr>
-<tr>
-<td><ins><tt>X(il)</tt></ins></td> <td><ins><tt>X</tt></ins></td> 
-<td><ins>Same as <tt>X(il.begin(), il.end())</tt>.</ins></td> 
-<td><ins>Same as <tt>X(il.begin(), il.end())</tt>.</ins></td>
-</tr>
-<tr>
-<td>...</td> <td>...</td> <td>...</td> <td>...</td>
-</tr>
-<tr>
-<td><tt>a = b</tt></td> <td><tt>X</tt></td> <td>...</td> <td>...</td>
-</tr>
-<tr>
-<td><ins><tt>a = il</tt></ins></td> <td><ins><tt>X&amp;</tt></ins></td> 
-<td><ins><tt>a = X(il); return *this;</tt></ins></td> 
-<td><ins>Same as <tt>a = X(il)</tt>.</ins></td>
-</tr>
-<tr>
-<td>...</td> <td>...</td> <td>...</td> <td>...</td>
-</tr>
-<tr>
-<td><tt>a.insert(i, j)</tt></td> <td><tt>void</tt></td> <td>...</td> <td>...</td>
-</tr>
-<tr>
-<td><ins><tt>a.insert(il)</tt></ins></td> <td><ins><tt>void</tt></ins></td> 
-<td><ins>Same as <tt>a.insert(il.begin(), il.end())</tt>.</ins></td> 
-<td><ins>Same as <tt>a.insert(il.begin(), il.end())</tt>.</ins></td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="982"></a>982. Wrong complexity for initializer_list assignment in  Table 85</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-02-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>,
-the associative container requirements table 85 says
-    that assigning an <tt>initializer_list</tt> to such a container is of
-    constant complexity, which is obviously wrong.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-In 23.2.4 [associative.reqmts], Table 85 change:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 85 - Associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th> <th>Return type</th> <th>Assertion/note<br/>pre-/post-condition</th> <th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a = il</tt></td> <td><tt>X&amp;</tt></td> <td><tt>a = X(il);<br/>return *this;</tt></td> 
-<td><del>constant</del><ins>Same as <tt>a = X(il)</tt>.</ins></td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="983"></a>983. <tt>unique_ptr</tt> reference deleters should not be moved from</h3>
-<p><b>Section:</b> 20.8.1.2 [unique.ptr.single] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Dave brought to my attention that when a <tt>unique_ptr</tt> has a non-const reference
-type deleter, move constructing from it, even when the <tt>unique_ptr</tt> containing
-the reference is an rvalue, could have surprising results:
-</p>
-
-<blockquote><pre>
-D d(some-state);
-unique_ptr&lt;A, D&amp;&gt; p(new A, d);
-unique_ptr&lt;A, D&gt; p2 = std::move(p);
-<span style="#C80000">// has d's state changed here?</span>
-</pre></blockquote>
-
-<p>
-I agree with him.  It is the <tt>unique_ptr</tt> that is the rvalue, not the
-deleter.  When the deleter is a reference type, the <tt>unique_ptr</tt> should
-respect the "lvalueness" of the deleter.
-</p>
-
-<p>
-Thanks Dave.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Seems correct, but complicated enough that we recommend moving to Review.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-03-14 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-We moved
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>
-to the formal motions page in Pittsburgh which should obsolete this issue.  I've
-moved this issue to NAD Editorial, solved by N3073.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor], p20-21
-</p>
-
-<blockquote>
-<pre>
-template &lt;class U, class E&gt; unique_ptr(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-
-<p>
--20- <i>Requires:</i> If <tt><del>D</del> <ins>E</ins></tt> is not a reference type,
-construction of the deleter <tt>D</tt> from an rvalue of type <tt>E</tt>
-shall be well formed and shall not throw an exception.
-<ins>
-Otherwise <tt>E</tt> is a reference type and construction of the deleter
-<tt>D</tt> from an lvalue of type <tt>E</tt> shall be well formed and
-shall not throw an exception.
-</ins>
-If <tt>D</tt> is
-a reference type, then <tt>E</tt> shall be the same type as <tt>D</tt>
-(diagnostic required). <tt>unique_ptr&lt;U, E&gt;::pointer</tt> shall be
-implicitly convertible to <tt>pointer</tt>. [<tt>Note:</tt> These
-requirements imply that <tt>T</tt> and <tt>U</tt> are complete types.
-&mdash; <i>end note</i>]
-</p>
-
-<p>
--21- <i>Effects:</i> Constructs a <tt>unique_ptr</tt> which owns the
-pointer which <tt>u</tt> owns (if any). If the deleter
-<ins><tt>E</tt></ins> is not a reference type, <del>it</del> <ins>this
-deleter</ins> is move constructed from <tt>u</tt>'s deleter, otherwise
-<del>the reference</del> <ins>this deleter</ins> is copy constructed
-from <tt>u</tt>.'s deleter. After the construction, <tt>u</tt> no longer
-owns a pointer. [<i>Note:</i> The deleter constructor can be implemented
-with <tt>std::forward&lt;<del>D</del><ins>E</ins>&gt;</tt>. &mdash; <i>end
-note</i>]
-</p>
-
-</blockquote>
-</blockquote>
-
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn], p1-3
-</p>
-
-<blockquote>
-<pre>
-unique_ptr&amp; operator=(unique_ptr&amp;&amp; u);
-</pre>
-<blockquote>
-
-<p>
--1- <i>Requires:</i> <ins>If the deleter <tt>D</tt> is not a reference type,</ins>
-<del>A</del><ins>a</ins>ssignment of the deleter <tt>D</tt> from an rvalue <tt>D</tt> shall not throw an exception.
-<ins>
-Otherwise the deleter <tt>D</tt> is a reference type,
-and assignment of the deleter <tt>D</tt> from an lvalue <tt>D</tt> shall not throw an exception.</ins>
-</p>
-
-<p>
--2- <i>Effects:</i> reset(u.release()) followed by
-a<ins>n</ins> <del>move</del> assignment from <del><tt>u</tt>'s deleter to this deleter</del>
-<ins><tt>std::forward&lt;D&gt;(u.get_deleter())</tt></ins>.
-</p>
-
-<p>
--3- <i>Postconditions:</i> This <tt>unique_ptr</tt> now owns the pointer
-which <tt>u</tt> owned, and <tt>u</tt> no longer owns it. <del>[<i>Note:</i> If
-<tt>D</tt> is a reference type, then the referenced lvalue deleters are
-move assigned. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn], p6-7
-</p>
-
-<blockquote>
-<pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u);
-</pre>
-<blockquote>
-
-<p>
-<i>Requires:</i> <ins>If the deleter <tt>E</tt> is not a reference type,</ins>
-<del>A</del><ins>a</ins>ssignment of the deleter <tt>D</tt> from an rvalue
-<tt><del>D</del><ins>E</ins></tt> shall not throw an exception.
-<ins>
-Otherwise the deleter <tt>E</tt> is a reference type,
-and assignment of the deleter <tt>D</tt> from an lvalue <tt>E</tt> shall not throw an exception.</ins>
-<tt>unique_ptr&lt;U, E&gt;::pointer</tt> shall be implicitly convertible to <tt>pointer</tt>.
-[<i>Note:</i> These requirements imply that <tt>T</tt> and <tt>U></tt>
-are complete types. &mdash; <i>end note</i>]
-</p>
-
-<p>
-<i>Effects:</i> <tt>reset(u.release())</tt> followed by
-a<ins>n</ins> <del>move</del> assignment from <del><tt>u</tt>'s deleter to this deleter</del>
-<ins><tt>std::forward&lt;E&gt;(u.get_deleter())</tt></ins>.
-<del>If either
-<tt>D</tt> or <tt>E</tt> is a reference type, then the referenced lvalue
-deleter participates in the move assignment.</del>
-</p>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="984"></a>984. Does <tt>&lt;cinttypes&gt;</tt> have macro guards?</h3>
-<p><b>Section:</b> 27.9.2 [c.files] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.files">issues</a> in [c.files].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The C standard says about <tt>&lt;inttypes.h&gt;</tt>:
-</p>
-
-<blockquote><p>
-C++ implementations should define these macros only when <tt>__STDC_FORMAT_MACROS</tt>is defined 
-before <tt>&lt;inttypes.h&gt;</tt> is included.
-</p></blockquote>
-
-<p>
-The C standard has a similar note about <tt>&lt;stdint.h&gt;</tt>.  For <tt>&lt;cstdint&gt;</tt>
-we adopted a "thanks but no thanks" policy and documented that fact in 18.4.1 [cstdint.syn]:
-</p>
-
-<blockquote><p>
-... [<i>Note:</i> The macros defined by <tt>&lt;stdint&gt;</tt> are
-provided unconditionally. In particular, the symbols
-<tt>__STDC_LIMIT_MACROS</tt> and <tt>__STDC_CONSTANT_MACROS</tt>
-(mentioned in C99 footnotes 219, 220, and 222) play no role in C++.
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-I recommend we put a similar note in 27.9.2 [c.files] regarding <tt>&lt;cinttypes&gt;</tt>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 27.9.2 [c.files]:
-</p>
-
-<blockquote><p>
-Table 112 describes header <tt>&lt;cinttypes&gt;</tt>.
-<ins>
-[<i>Note:</i> The macros defined by <tt>&lt;cintypes&gt;</tt> are
-provided unconditionally. In particular, the symbol
-<tt>__STDC_FORMAT_MACROS</tt>
-(mentioned in C99 footnote 182) plays no role in C++.
-&mdash; <i>end note</i>]
-</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="985"></a>985. Allowing throwing move</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Rani Sharoni <b>Opened:</b> 2009-02-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<b>Introduction</b>
-</p>
-
-<p>This proposal is meant to resolve potential regression of the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2800.pdf">N2800</a>
-draft, see
-next section, and to relax the requirements for containers of types with
-throwing move constructors.</p>
-
-<p>The basic problem is that some containers operations, like <tt>push_back</tt>,
-have a strong exception safety
-guarantee (i.e. no side effects upon exception) that are not achievable when
-throwing move constructors are used since there is no way to guarantee revert
-after partial move. For such operations the implementation can at most provide
-the basic guarantee (i.e. valid but unpredictable) as it does with multi
-copying operations (e.g. range insert).</p>
-
-<p>For example, <tt>vector&lt;T&gt;::push_back()</tt> (where <tt>T</tt> has a move
-constructor) might resize the <tt>vector</tt> and move the objects to the new underlying
-buffer. If move constructor throws it might
-not be possible to recover the throwing object or to move the old objects back to
-the original buffer.</p>
-
-<p>The current draft is explicit by disallowing throwing move
-for some operations (e.g. <tt>vector&lt;&gt;::reserve</tt>) and not clear about other
-operations mentioned in 23.2.1 [container.requirements.general]/10
-(e.g. single element <tt>insert</tt>): it guarantees strong exception
-safety without explicitly disallowing a throwing move constructor.
-</p>
-
-<p>
-<b>Regression</b>
-</p>
-
-<p>This section only refers to cases in which the contained object
-is by itself a standard container.</p>
-
-<p>Move constructors of standard containers are allowed to throw and therefore
-existing operations are broken, compared with C++03, due to move optimization.
-(In fact existing implementations like Dinkumware are actually throwing).</p>
-
-<p>For example, <tt>vector&lt; list&lt;int&gt; &gt;::reserve</tt> yields
-undefined behavior since <tt>list&lt;int&gt;</tt>'s move constructor is allowed to throw.
-On the other hand, the same operation has strong exception safety guarantee in
-C++03.</p>
-
-<p>There are few options to solve this regression:</p>
-
-<ol>
-<li>
-Disallow throwing move and throwing default constructor
-</li>
-
-<li>
-Disallow throwing move but disallowing usage after move
-</li>
-
-<li>
-Special casing
-</li>
-
-<li>
-Disallow throwing move and making it optional
-</li>
-
-</ol>
-
-<p>Option 1 is suggested by proposal
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2815.html">N2815</a>
-but it might not be applicable for existing implementations for which
-containers default constructors are throwing.</p>
-
-<p>Option 2 limits the usage significantly and it's error prone
-by allowing zombie objects that are nothing but destructible (e.g. no <tt>clear()</tt>
-is allowed after move). It also potentially complicates the implementation by
-introducing special state.</p>
-
-<p>Option 3 is possible, for example, using default
-construction and <tt>swap</tt> instead of move for standard containers case. The
-implementation is also free to provide special hidden operation for non
-throwing move without forcing the user the cope with the limitation of option-2
-when using the public move.</p>
-
-<p>Option 4 impact the efficiency in all use cases due to rare throwing move.</p>
-
-<p>The proposed wording will imply option 1 or 3 though option 2 is also
-achievable using more wording. I personally oppose to option 2 that has impact
-on usability.</p>
-
-<p>
-<b>Relaxation for user types</b>
-</p>
-
-<p>Disallowing throwing move constructors in general seems very restrictive
-since, for example, common implementation of move will be default construction
-+ <tt>swap</tt> so move will throw if the
-default constructor will throw. This is currently the case with the Dinkumware
-implementation of node based containers (e.g. <tt>std::list</tt>)
-though this section doesn't refer to standard types.</p>
-
-<p>For throwing move constructors it seem that the implementation should have
-no problems to provide the basic guarantee instead of the strong one. It's
-better to allow throwing move constructors with basic guarantee than to
-disallow it silently (compile and run), via undefined behavior.</p>
-
-<p>There might still be cases in which the relaxation will break existing generic
-code that assumes the strong guarantee but it's broken either way given a
-throwing move constructor since this is not a preserving optimization. </p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Bjarne comments (referring to his draft paper):
-"I believe that my suggestion simply solves that. Thus, we don't need a throwing move."
-</p>
-<p>
-Move to Open and recommend it be deferred until after the next
-Committee Draft is issued.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Should wait to get direction from Dave/Rani
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2983.html">N2983</a>).
-</p></blockquote>
-
-<p><i>[
-2010-03-28 Daniel updated wording to sync with N3092.
-]</i></p>
-
-
-<blockquote>
-<p>
-The suggested change of 23.3.3.4 [deque.modifiers]/2 should be removed,
-because the current wording does say more general things:
-</p>
-
-<blockquote><p>
-2 <i>Remarks:</i> If an exception is thrown other than by the copy constructor,
-move constructor, assignment operator, or move assignment operator of <tt>T</tt>
-there are no effects. If an exception is thrown by the move constructor of a
-non-CopyConstructible <tt>T</tt>, the effects are unspecified.
-</p></blockquote>
-
-<p>
-The suggested change of 23.3.6.3 [vector.capacity]/2 should be removed,
-because the current wording does say more general things:
-</p>
-
-<blockquote><p>
-2 <i>Effects:</i> A directive that informs a <tt>vector</tt> of a planned change
-in size, so that it can manage the storage allocation accordingly. After
-<tt>reserve()</tt>, <tt>capacity()</tt> is greater or equal to the argument of
-<tt>reserve</tt> if reallocation happens; and equal to the previous value of
-<tt>capacity()</tt> otherwise. Reallocation happens at this point if and only if
-the current capacity is less than the argument of <tt>reserve()</tt>. If an
-exception is thrown other than by the move constructor of a
-non-<tt>CopyConstructible</tt> type, there are no effects.
-</p></blockquote>
-
-</blockquote>
-
-<p><i>[2011-03-15: Daniel updates wording to sync with N3242 and comments]</i></p>
-
-
-<blockquote><p>
-The issue has nearly been resolved by previous changes to the working paper, in 
-particular all suggested changes for <tt>deque</tt> and <tt>vector</tt> are no 
-longer necessary. The still remaining parts involve the unordered associative containers.
-</p></blockquote>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>It looks like this issue has been resolved already by <tt>noexcept</tt> paper N3050</p>
-
-
-<p><b>Rationale:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html">N3050</a>
-</p>
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-23.2.1 [container.requirements.general] paragraph 10 add footnote:
-</p>
-
-<blockquote>
-<p>
--10- Unless otherwise specified (see 23.2.4.1 [associative.reqmts.except], 23.2.5.1 [unord.req.except], 
-23.3.3.4 [deque.modifiers], and 23.3.6.5 [vector.modifiers]) all container types defined in this 
-Clause meet the following additional requirements:
-</p>
-<ul>
-<li>&hellip;</li>
-</ul>
-
-<p>
-<ins>[<i>Note</i>: for compatibility with C++ 2003, when "no effect" is required, standard containers should not use the
-<tt>value_type</tt>'s throwing move constructor when the contained object is by itself a standard container. &mdash; <i>end note</i>]</ins>
-</p>
-
-</blockquote>
-
-<p>23.2.5.1 [unord.req.except] change paragraph 2+4 to say: </p>
-
-<blockquote>
-<p>
--2- For unordered associative containers, if an exception is
-thrown by any operation other than the container's hash function from within an
-<tt>insert()</tt> function inserting a single element, the <tt>insert()</tt>
-function has no effect<ins> unless the exception is thrown by the contained
-object move constructor</ins>.
-<p/>
-[&hellip;]
-<p/>
--4- For unordered associative containers, if an exception is
-thrown from within a <tt>rehash()</tt> function other than by the container's hash
-function or comparison function, the <tt>rehash()</tt> function has no effect
-<ins>unless the exception is thrown by the contained
-object move constructor</ins>.</p>
-
-</blockquote>
-
-<p>
-Keep 23.3.3.4 [deque.modifiers] paragraph 2 unchanged <em>[Drafting note: The originally
-proposed wording did suggest to add a last sentence as follows:</em>
-</p>
-<blockquote><p>
-<em><ins>If an exception is thrown by <tt>push_back()</tt> or <tt>emplace_back()</tt>
-function, that function has no effects unless the exception is thrown by
-the move constructor of <tt>T</tt>.</ins></em> 
-</p></blockquote>
-<p> &mdash; <em> end drafting note ]</em></p>
-
-<blockquote><p>
--2- <i>Remarks:</i> If an exception is thrown other than by
-the copy constructor, move constructor, assignment operator, 
-or move assignment operator of <tt>T</tt> there are no effects.
-If an exception is thrown by the move constructor of a non-CopyInsertable 
-<tt>T</tt>, the effects are unspecified.
-</p></blockquote>
-
-<p>
-Keep 23.3.6.3 [vector.capacity] paragraph 2 unchanged <em>[Drafting note: The originally
-proposed wording did suggest to change the last sentence as follows:</em>
-</p>
-<blockquote><p>
-<em>If an exception is thrown, there are no effects<ins> unless the exception is thrown by the 
-contained object move constructor</ins>.</em> 
-</p></blockquote>
-<p> &mdash; <em> end drafting note ]</em></p>
-
-<blockquote><p>
--2- <i>Effects:</i> A directive that informs a <tt>vector</tt>
-of a planned change in size, so
-that it can manage the storage allocation accordingly. After <tt>reserve()</tt>,
-<tt>capacity()</tt> is greater or equal to the argument of <tt>reserve</tt>
-if reallocation happens; and equal
-to the previous value of <tt>capacity()</tt>
-otherwise. Reallocation happens at this point if and only if the current
-capacity is less than the argument of <tt>reserve()</tt>.
-If an exception is thrown other than by the move constructor of a 
-non-<tt>CopyInsertable</tt> type, there are no effects.
-</p></blockquote>
-
-<p>
-Keep 23.3.6.3 [vector.capacity] paragraph 12 unchanged <em>[Drafting note: The originally
-proposed wording did suggest to change the old paragraph as follows:</em>
-</p>
-<blockquote><p>
-<em>-12- <i>Requires:</i> <del>If <tt>value_type</tt> has a move constructor,
-that constructor shall not throw any exceptions.</del>
-<ins>If an exception is thrown, there are no effects unless the exception is thrown by
-the contained object move constructor.</ins></em>
-</p></blockquote>
-<p> &mdash; <em> end drafting note ]</em></p>
-
-<blockquote><p>
--12- <i>Requires:</i> If an exception is thrown other than by the move constructor of a non-<tt>CopyInsertable</tt> 
-<tt>T</tt> there are no effects.
-</p></blockquote>
-
-<p>
-Keep 23.3.6.5 [vector.modifiers] paragraph 1 unchanged <em>[Drafting note: The originally
-proposed wording did suggest to change the old paragraph as follows:</em>
-</p>
-<blockquote><p>
-<em>-1- <del><i>Requires:</i> If <tt>value_type</tt> has a move constructor,
-that constructor shall not throw any exceptions.</del>
-<ins><i>Remarks:</i> If an exception is thrown by <tt>push_back()</tt>
-or <tt>emplace_back()</tt> function, that function has no effect unless the
-exception is thrown by the move constructor of <tt>T</tt>.</ins></em>
-</p></blockquote>
-<p> &mdash; <em> end drafting note ]</em></p>
-
-<blockquote><p>
--1- <i>Remarks</i>: Causes reallocation if the new size is greater than the old capacity. If no reallocation happens,
-all the iterators and references before the insertion point remain valid. If an exception is thrown other
-than by the copy constructor, move constructor, assignment operator, or move assignment operator
-of <tt>T</tt> or by any <tt>InputIterator</tt> operation there are no effects. If an exception is thrown by the move
-constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt>, the effects are unspecified.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="986"></a>986. Generic <tt>try_lock</tt> contradiction</h3>
-<p><b>Section:</b> 30.4.3 [thread.lock.algorithm] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Chris Fairles <b>Opened:</b> 2009-02-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 30.4.3 [thread.lock.algorithm], the generic <tt>try_lock</tt> effects (p2) say that a failed
-<tt>try_lock</tt> is when it either returns <tt>false</tt> or throws an exception. In
-the event a call to <tt>try_lock</tt> does fail, by either returning <tt>false</tt> or
-throwing an exception, it states that <tt>unlock</tt> shall be called for all
-prior arguments. Then the returns clause (p3) goes on to state
-in a note that after returning, either all locks are locked or none
-will be. So what happens if multiple locks fail on <tt>try_lock</tt>?
-</p>
-
-<p>
-Example:
-</p>
-
-<blockquote><pre>
-#include &lt;mutex&gt;
-
-int main() {
- std::mutex m0, m1, m2;
- std::unique_lock&lt;std::mutex&gt; l0(m0, std::defer_lock);
- std::unique_lock&lt;std::mutex&gt; l1(m1); //throws on try_lock
- std::unique_lock&lt;std::mutex&gt; l2(m2); //throws on try_lock
-
- int result = std::try_lock(l0, l1, l2);
-
- assert( !l0.owns_lock() );
- assert( l1.owns_lock() ); //??
- assert( l2.owns_lock() ); //??
-}
-</pre></blockquote>
-
-<p>
-The first lock's <tt>try_lock</tt> succeeded but, being a prior argument to a
-lock whose <tt>try_lock</tt> failed, it gets unlocked as per the effects clause
-of 30.4.3 [thread.lock.algorithm]. However, 2 locks remain locked in this case but the return
-clause states that either all arguments shall be locked or none will
-be. This seems to be a contradiction unless the intent is for
-implementations to make an effort to unlock not only prior arguments,
-but the one that failed and those that come after as well. Shouldn't
-the note only apply to the arguments that were successfully locked?
-</p>
-
-<p>
-Further discussion and possible resolutions in c++std-lib-23049.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Move to review. Agree with proposed resolution.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 30.4.3 [thread.lock.algorithm], p2:
-</p>
-
-<blockquote><p>
--2- <i>Effects:</i> Calls <tt>try_lock()</tt> for each argument in order
-beginning with the first until all arguments have been processed or a
-call to <tt>try_lock()</tt> fails, either by returning <tt>false</tt> or by throwing an
-exception. If a call to <tt>try_lock()</tt> fails, <tt>unlock()</tt> shall be called for
-all prior arguments<ins> and there shall be no further calls to <tt>try_lock()</tt></ins>.
-</p></blockquote>
-
-<p>
-Delete the note from 30.4.3 [thread.lock.algorithm], p3
-</p>
-
-<blockquote><p>
--3- <i>Returns:</i> -1 if all calls to <tt>try_lock()</tt> returned <tt>true</tt>,
-otherwise a 0-based index value that indicates 
-the argument for which <tt>try_lock()</tt> returned <tt>false</tt>. <del>[<i>Note:</i>
-On return, either all arguments will be 
-locked or none will be locked. -- <i>end note</i>]</del>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="987"></a>987. <tt>reference_wrapper</tt> and function types</h3>
-<p><b>Section:</b> 20.9.4 [refwrap] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-02-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#refwrap">issues</a> in [refwrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopsis in 20.9.4 [refwrap] says:
-</p>
-
-<blockquote><pre>
-template &lt;<b>ObjectType</b> T&gt; class reference_wrapper
-...
-</pre></blockquote>
-
-<p>
-And then paragraph 3 says:
-</p>
-
-<blockquote>
-<p>
-The template instantiation <tt>reference_wrapper&lt;T&gt;</tt> shall be
-derived from <tt>std::unary_function&lt;T1, R&gt;</tt> only if the type
-<tt>T</tt> is any of the following:
-</p>
-
-<ul>
-<li>
-a <b>function type</b> or a pointer to function type taking one argument of
-type <tt>T1</tt> and returning <tt>R</tt>
-</li>
-</ul>
-</blockquote>
-
-<p>
-But function types are not <tt>ObjectType</tt>s.
-</p>
-
-<p>
-Paragraph 4 contains the same contradiction.
-</p>
-
-<p><i>[
-Post Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Jens: restricted reference to ObjectType
-</p>
-<p>
-Recommend Review.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit, Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-In <a href="https://svn.boost.org/trac/boost/ticket/1846">https://svn.boost.org/trac/boost/ticket/1846</a>
-however Eric Niebler makes the very reasonable point that <tt>reference_wrapper&lt;F&gt;</tt>,
-where <tt>F</tt> is a function type, represents a reference to a function,
-a legitimate entity. So <tt>boost::ref</tt> was changed to allow it.
-</p>
-<p>
-<a href="http://svn.boost.org/svn/boost/trunk/libs/bind/test/ref_fn_test.cpp">http://svn.boost.org/svn/boost/trunk/libs/bind/test/ref_fn_test.cpp</a>
-</p>
-<p>
-Therefore, I believe an alternative proposed resolution for issue 987 could simply
-allow <tt>reference_wrapper</tt> to be used with function types.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit, Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I agree with Peter (and Eric).  I got this one wrong on my first try.  Here
-is code that demonstrates how easy (and useful) it is to instantiate
-<tt>reference_wrapper</tt> with a function type:
-</p>
-
-<blockquote><pre>
-#include &lt;functional&gt;
-
-template &lt;class F&gt;
-void test(F f);
-
-void f() {}
-
-int main()
-{
-    test(std::ref(f));
-}
-</pre></blockquote>
-
-<p>
-Output (link time error shows type of <tt>reference_wrapper</tt> instantiated
-with function type):
-</p>
-
-<blockquote><pre>
-Undefined symbols:
-  "void test&lt;std::reference_wrapper&lt;void ()()&gt; &gt;(std::reference_wrapper&lt;void ()()&gt;)",...
-</pre></blockquote>
-
-<p>
-I've taken the liberty of changing the proposed wording to allow function types
-and set to Open.  I'll also freely admit that I'm not positive <tt>ReferentType</tt>
-is the correct concept.
-</p>
-
-</blockquote>
-
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard observed that <tt>FunctionType</tt>,
-a concept not (yet?) in the Working Paper,
-is likely the correct constraint to be applied.
-However, the proposed resolution provides an adequate approximation.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-23 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-By constraining to <tt>PointeeType</tt> we rule out the ability for <tt>T</tt> to be a
-reference, and call in reference-collapsing.  I'm not sure if this is
-correct and intended, but would like to be sure the case was considered.
-</p>
-<p>
-Is dis-allowing reference types and the
-implied reference collapsing the intended result?
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Review to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Daniel provided de-conceptified wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.4 [refwrap]/1 as indicated:
-</p>
-
-<blockquote><p>
-<tt>reference_wrapper&lt;T&gt;</tt> is a <tt>CopyConstructible</tt> and
-<tt><ins>Copy</ins>Assignable</tt> wrapper around a
-reference to an object <ins>or function</ins> of type <tt>T</tt>.
-</p></blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="990"></a>990. <tt>monotonic_clock::is_monotonic</tt> must be <tt>true</tt></h3>
-<p><b>Section:</b> X [time.clock.monotonic] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.monotonic">issues</a> in [time.clock.monotonic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There is some confusion over what the value of <tt>monotonic_clock::is_monotonic</tt>
-when <tt>monotonic_clock</tt> is a  synonym for <tt>system_clock</tt>.  The
-intent is that if <tt>monotonic_clock</tt> exists, then <tt>monotonic_clock::is_monotonic</tt>
-is <tt>true</tt>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change X [time.clock.monotonic], p1:
-</p>
-
-<blockquote><p>
--1- Objects of class <tt>monotonic_clock</tt> represent clocks for which
-values of <tt>time_point</tt> never decrease as physical time advances.
-<tt>monotonic_clock</tt> may be a synonym for <tt>system_clock</tt>
-<ins>if and only if <tt>system_clock::is_monotonic</tt> is
-<tt>true</tt></ins>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="991"></a>991. Provide allocator for <tt>wstring_convert</tt></h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2009-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-50 [CD1]</b></p>
-<p>
-Add custom allocator parameter to <tt>wstring_convert</tt>, since we cannot
-allocate memory for strings from a custom allocator.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 22.3.3.2.2 [conversions.string]:
-</p>
-
-<blockquote><pre>
-template&lt;class Codecvt, class Elem = wchar_t<ins>,
-         class Wide_alloc = std::allocator&lt;Elem&gt;,
-         class Byte_alloc = std::allocator&lt;char&gt; </ins>&gt; class wstring_convert {
-  public:
-    typedef std::basic_string&lt;char<ins>, char_traits&lt;char&gt;, Byte_alloc</ins>&gt; byte_string;
-    typedef std::basic_string&lt;Elem<ins>, char_traits&lt;Elem&gt;, Wide_alloc</ins>&gt; wide_string;
-     ...
-</pre></blockquote>
-
-<p>
-Change 22.3.3.2.2 [conversions.string], p3:
-</p>
-
-<blockquote><p>
--3- The class template describes an ob ject that controls conversions
-between wide string ob jects of class
-<tt>std::basic_string&lt;Elem<ins>, char_traits&lt;Elem&gt;, Wide_alloc</ins>&gt;</tt>
-and byte string objects of class
-<tt>std::basic_string&lt;char<ins>, char_traits&lt;char&gt;, Byte_alloc</ins>&gt;</tt>
-<del>(also known as <tt>std::string</tt>)</del>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="993"></a>993. <tt>_Exit</tt> needs better specification</h3>
-<p><b>Section:</b> 18.5 [support.start.term] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2009-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.start.term">issues</a> in [support.start.term].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK-188 [CD1]</b></p>
-<p>
-The function <tt>_Exit</tt> does not appear to be defined in this standard.
-Should it be added to the table of functions included-by-reference to
-the C standard?
-</p>
-
-<p><i>[
-2009-05-09 Alisdair fixed some minor issues in the wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 18.5 [support.start.term] Table 20 (Header
-<tt>&lt;cstdlib&gt;</tt> synopsis) Functions:
-</p>
-
-<blockquote><pre>
-_Exit
-</pre></blockquote>
-
-<p>
-Add before the description of <tt>abort(void)</tt>:
-</p>
-
-<blockquote><pre>
-void _Exit [[noreturn]] (int status)
-</pre>
-
-<blockquote>
-<p>
-The function <tt>_Exit(int status)</tt> has additional behavior in this
-International Standard:
-</p>
-<ul>
-<li>
-The program is terminated without executing destructors for objects of
-automatic, thread, or static storage duration and without calling the
-functions passed to <tt>atexit()</tt> (3.6.3 [basic.start.term]).
-</li>
-</ul>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="994"></a>994. <tt>quick_exit</tt> should terminate well-defined</h3>
-<p><b>Section:</b> 18.6.2.3 [new.handler] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2009-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK-193 [CD1]</b></p>
-<p>
-<tt>quick_exit</tt> has been added as a new valid way to terminate a program in a
-well defined way.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.6.2.3 [new.handler], p2:
-</p>
-
-<blockquote>
-<p>
--2- <i>Required behavior:</i> ...
-</p>
-<ul>
-<li>...</li>
-<li>
-<del>call either <tt>abort()</tt> or <tt>exit();</tt></del>
-<ins>terminate execution of the program without returning to the caller</ins>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="997"></a>997. "<i>Effects</i>: Equivalent to" is underspecified</h3>
-<p><b>Section:</b> 17.5.1.4 [structure.specifications] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Thomas Plum <b>Opened:</b> 2009-03-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#structure.specifications">issues</a> in [structure.specifications].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK-163 [CD1]</b></p>
-<p>
-Many functions are defined as "Effects: Equivalent to a...", which seems
-to also define the preconditions, effects, etc. But this is not made
-clear.
-</p>
-
-<p>
-After studying the occurrences of "Effects: Equivalent to", I agree with
-the diagnosis but disagree with the solution.  In 21.4.2 [string.cons]
-we find
-</p>
-
-<blockquote>
-<p>
-14 <i>Effects:</i> If <tt>InputIterator</tt> is an integral type, equivalent to
-<tt>basic_string(static_cast&lt;size_type&gt;(begin), static_cast&lt;value_type&gt;(end), a)</tt>
-</p>
-<p>
-15 Otherwise constructs a string from the values in the range <tt>[begin,
-end)</tt>, as indicated in the Sequence Requirements table (see 23.1.3).
-</p>
-</blockquote>
-
-<p>
-This would be devishly difficult to re-write with an explicit
-"Equivalent to:" clause.  Instead, I propose the following, which will
-result in much less editorial re-work.
-</p>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-This issue is related to <a href="lwg-closed.html#492">492</a>.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new paragraph after 17.5.1.4 [structure.specifications], p3:
-</p>
-
-<blockquote>
-<p>
--3- Descriptions of function semantics contain the following elements (as appropriate):<sup>154</sup>
-</p>
-
-<ul>
-<li>
-<i>Requires:</i> the preconditions for calling the function
-</li>
-<li>
-<i>Effects:</i> the actions performed by the function
-</li>
-<li>
-<i>Postconditions:</i> the observable results established by the function
-</li>
-<li>
-<i>Returns:</i> a description of the value(s) returned by the function
-</li>
-<li>
-<i>Throws:</i> any exceptions thrown by the function, and the conditions that would cause the exception
-</li>
-<li>
-<i>Complexity:</i> the time and/or space complexity of the function
-</li>
-<li>
-<i>Remarks:</i> additional semantic constraints on the function
-</li>
-<li>
-<i>Error conditions:</i> the error conditions for error codes reported by the function.
-</li>
-<li>
-<i>Notes:</i> non-normative comments about the function
-</li>
-</ul>
-
-<p><ins>
-Whenever the <i>Effects</i> element specifies that the semantics of some
-function <tt>F</tt> are <i>Equivalent to</i> some <i>code-sequence</i>, then
-the various elements are interpreted as follows.  If <tt>F</tt>'s
-semantics specifies a <i>Requires</i> element, then that requirement is
-logically imposed prior to the <i>equivalent-to</i> semantics.  Then,
-the semantics of the <i>code-sequence</i> are determined by the
-<i>Requires</i>, <i>Effects</i>, <i>Postconditions</i>, <i>Returns</i>,
-<i>Throws</i>, <i>Complexity</i>, <i>Remarks</i>, <i>Error
-Conditions</i> and <i>Notes</i> specified for the (one or more) function
-invocations contained in the <i>code-sequence</i>. The value returned from
-<tt>F</tt> is specified by <tt>F</tt>'s <i>Returns</i> element, or
-if <tt>F</tt> has no <i>Returns</i> element, a non-<tt>void</tt> return from <tt>F</tt> is specified 
-by the <i>Returns</i> elements in <i>code-sequence</i>.  If
-<tt>F</tt>'s semantics contains a <i>Throws</i> (or
-<i>Postconditions</i>, or <i>Complexity</i>) element, then that
-supersedes any occurrences of that element in the <i>code-sequence</i>.
-</ins></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="998"></a>998. Smart pointer referencing its owner</h3>
-<p><b>Section:</b> 20.8.1.2.5 [unique.ptr.single.modifiers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pavel Minaev <b>Opened:</b> 2009-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.modifiers">issues</a> in [unique.ptr.single.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following (simplified) implementation of 
-<tt>std::auto_ptr&lt;T&gt;::reset()</tt>: 
-</p>
-
-<blockquote><pre>
-void reset(T* newptr = 0) { 
-   if (this-&gt;ptr &amp;&amp; this-&gt;ptr != newptr) { 
-     delete this-&gt;ptr; 
-   } 
-   this-&gt;ptr = newptr; 
-} 
-</pre></blockquote>
-
-<p>
-Now consider the following code which uses the above implementation: 
-</p>
-
-<blockquote><pre>
-struct foo { 
-   std::auto_ptr&lt;foo&gt; ap; 
-   foo() : ap(this) {} 
-   void reset() { ap.reset(); } 
-}; 
-int main() { 
-   (new foo)-&gt;reset(); 
-} 
-</pre></blockquote>
-
-<p>
-With the above implementation of auto_ptr, this results in U.B. at the 
-point of auto_ptr::reset(). If this isn't obvious yet, let me explain 
-how this goes step by step: 
-</p>
-
-<ol>
-<li>
-<tt>foo::reset()</tt> entered 
-</li>
-<li>
-<tt>auto_ptr::reset()</tt> entered 
-</li>
-<li>
-<tt>auto_ptr::reset()</tt> tries to delete <tt>foo</tt>
-</li>
-<li>
-<tt>foo::~foo()</tt> entered, tries to destruct its members 
-</li>
-<li>
-<tt>auto_ptr::~auto_ptr()</tt> executed - <tt>auto_ptr</tt> is no longer a valid object! 
-</li>
-<li>
-<tt>foo::~foo()</tt> left 
-</li>
-<li>
-<tt>auto_ptr::reset()</tt> sets its "ptr" field to 0 &lt;- U.B.! <tt>auto_ptr</tt>
-is not a valid object here already! 
-</li>
-</ol>
-
-<p><i>[
-Thanks to Peter Dimov who recognized the connection to <tt>unique_ptr</tt> and
-brought this to the attention of the LWG, and helped with the solution.
-]</i></p>
-
-
-<p><i>[
-Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-To fix this behavior <tt>reset</tt> must be specified such that deleting the
-pointer is the last action to be taken within <tt>reset</tt>.
-</p></blockquote>
-
-<p><i>[
-Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The example providing the rationale for LWG <a href="lwg-defects.html#998">998</a> is poor, as it relies on
-broken semantics of having two object believing they are unique owners of a
-single resource.  It should not be surprising that UB results from such
-code, and I feel no need to go out of our way to support such behaviour.
-</p>
-<p>
-If an example is presented that does not imply multiple ownership of a
-unique resource, I would be much more ready to accept the proposed
-resolution.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Howard summarizes:
-</p>
-<blockquote><p>
-This issue has to do with circular ownership,
-and affects <tt>auto_ptr</tt>, too (but we don't really care about that).
-It is intended to spell out the order in which operations must be performed
-so as to avoid the possibility
-of undefined behavior in the self-referential case.
-</p></blockquote>
-<p>
-Howard points to message c++std-lib-23175 for another example,
-requested by Alisdair.
-</p>
-<p>
-We agree with the issue and with the proposed resolution.
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.1.2.5 [unique.ptr.single.modifiers], p5 (<i>Effects</i> clause for <tt>reset</tt>), and p6:
-</p>
-
-<blockquote>
-<p>
--5- <i>Effects:</i> <del>If <tt>get() == nullptr</tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt>.</del>
-<ins>Assigns <tt>p</tt> to the stored <tt>pointer</tt>, and then if the old value of the <tt>pointer</tt> is not
-equal to <tt>nullptr</tt>, calls <tt>get_deleter()(</tt>the old value of the <tt>pointer)</tt>.
-[<i>Note:</i> The order of these operations is significant because the call to <tt>get_deleter()</tt>
-may destroy <tt>*this</tt>. <i>-- end note</i>]</ins>
-</p>
-
-<p>
--6- Postconditions: <tt>get() == p</tt>.
-<ins>[<i>Note:</i> The postcondition does not hold if the call to
-<tt>get_deleter()</tt> destroys <tt>*this</tt> since <tt>this-&gt;get()</tt> is no longer a valid
-expression. <i>-- end note</i>]</ins>
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="999"></a>999. Taking the address of a function</h3>
-<p><b>Section:</b> 20.7.12 [specialized.algorithms] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2009-03-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#specialized.algorithms">issues</a> in [specialized.algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The same fix (reference <a href="lwg-defects.html#987">987</a>) may be applied to <tt>addressof</tt>, which is also constrained to
-<tt>ObjectType</tt>. (That was why <tt>boost::ref</tt> didn't work with functions - it
-tried to apply <tt>boost::addressof</tt> and the <tt>reinterpret_cast&lt;char&amp;&gt;</tt>
-implementation of <tt>addressof</tt> failed.)
-</p>
-
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-10-10 Daniel updates wording to concept-free.
-]</i></p>
-
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-The resolution assumes that <tt>addressof</tt> is reintroduced as described in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2946.pdf">n2946</a>
-]</i></p>
-
-
-<p>
-In 20.7.12 [specialized.algorithms] change as described:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; T* addressof(T&amp; r);
-</pre>
-<blockquote><p>
-<i>Returns:</i> The actual address of the object <ins>or function</ins>
-referenced by <tt>r</tt>, even in the presence of an overloaded <tt>operator&amp;</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1004"></a>1004. Clarify "throws an exception"</h3>
-<p><b>Section:</b> 17.6.4.8 [res.on.functions] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.functions">issues</a> in [res.on.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 179</b></p>
-
-<p>
-According to the 4th bullet there is a problem if "if any replacement
-function or handler function or destructor operation throws an
-exception". There should be no problem throwing exceptions so long as
-they are caught within the function.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-The phrasing "throws an exception" is commonly used elsewhere
-to mean "throws or propagates an exception."
-Move to Open pending a possible more general resolution.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Replace "propagates" in the proposed resolution with the phrase "exits
-via" and move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the 4th bullet of 17.6.4.8 [res.on.functions], p2:
-</p>
-
-<blockquote>
-<ul>
-<li>
-if any replacement function or handler function or destructor operation
-<del>throws</del> <ins>exits via</ins> an exception, unless specifically
-allowed in the applicable <i>Required behavior:</i> paragraph.
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1006"></a>1006. <tt>operator delete</tt> in garbage collected implementation</h3>
-<p><b>Section:</b> 18.6.1 [new.delete] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete">issues</a> in [new.delete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 190</b></p>
-
-<p>
-It is not entirely clear how the current specification acts in the
-presence of a garbage collected implementation.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
- 
-<blockquote><p>
-Agreed.
-</p></blockquote>
-
-<p><i>[
-2009-05-09 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Proposed wording is too strict for implementations that do not support
-garbage collection.  Updated wording supplied.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We recommend advancing this to Tentatively Ready
-with the understanding that it will not be moved for adoption
-unless and until the proposed resolution to Core issue #853 is adopted.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-(Editorial note: This wording ties into the proposed
-resolution for Core #853)
-</p>
-
-<p>
-Add paragraphs to 18.6.1.1 [new.delete.single]:
-</p>
-
-<blockquote><pre>
-void operator delete(void* ptr) throw();
-<del>void operator delete(void* ptr, const std::nothrow_t&amp;) throw();</del>
-</pre>
-
-<p><i>[
-The second signature deletion above is editorial.
-]</i></p>
-
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> If an implementation has strict pointer safety
-(3.7.4.3 [basic.stc.dynamic.safety]) then <tt>ptr</tt> shall
-be a safely-derived pointer.
-</ins></p>
-
-<p>-10- ...</p>
-</blockquote>
-
-<pre>
-void operator delete(void* ptr, const std::nothrow_t&amp;) throw();
-</pre>
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> If an implementation has strict pointer safety
-(3.7.4.3 [basic.stc.dynamic.safety]) then <tt>ptr</tt> shall
-be a safely-derived pointer.
-</ins></p>
-
-<p>-15- ...</p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Add paragraphs to 18.6.1.2 [new.delete.array]:
-</p>
-
-<blockquote><pre>
-void operator delete[](void* ptr) throw();
-<del>void operator delete[](void* ptr, const std::nothrow_t&amp;) throw();</del>
-</pre>
-
-<p><i>[
-The second signature deletion above is editorial.
-]</i></p>
-
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> If an implementation has strict pointer safety
-(3.7.4.3 [basic.stc.dynamic.safety]) then <tt>ptr</tt> shall
-be a safely-derived pointer.
-</ins></p>
-
-<p>-9- ...</p>
-</blockquote>
-
-<pre>
-void operator delete[](void* ptr, const std::nothrow_t&amp;) throw();
-</pre>
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> If an implementation has strict pointer safety
-(3.7.4.3 [basic.stc.dynamic.safety]) then <tt>ptr</tt> shall
-be a safely-derived pointer.
-</ins></p>
-
-<p>-13- ...</p>
-</blockquote>
-
-</blockquote>
-
-
-<p>
-Add paragraphs to 18.6.1.3 [new.delete.placement]:
-</p>
-
-<blockquote><pre>
-void operator delete(void* ptr, void*) throw();
-</pre>
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> If an implementation has strict pointer safety
-(3.7.4.3 [basic.stc.dynamic.safety]) then <tt>ptr</tt> shall
-be a safely-derived pointer.
-</ins></p>
-
-<p>-7- ...</p>
-</blockquote>
-
-<pre>
-void operator delete[](void* ptr, void*) throw();
-</pre>
-
-<blockquote>
-<p><ins>
-<i>Requires:</i> If an implementation has strict pointer safety
-(3.7.4.3 [basic.stc.dynamic.safety]) then <tt>ptr</tt> shall
-be a safely-derived pointer.
-</ins></p>
-
-<p>-9- ...</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1011"></a>1011. <tt>next&#47;prev</tt> wrong iterator type</h3>
-<p><b>Section:</b> 24.4.4 [iterator.operations] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.operations">issues</a> in [iterator.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 271</b></p>
-
-<p>
-<tt>next/prev</tt> return an incremented iterator without changing the value of
-the original iterator. However, even this may invalidate an
-<tt>InputIterator</tt>. A <tt>ForwardIterator</tt> is required to guarantee the
-'multipass' property.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Daniel provided de-conceptified wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<ol>
-<li>
-<p>
-Change header <tt>&lt;iterator&gt;</tt> synopsis 24.3 [iterator.synopsis] as indicated:
-</p>
-
-<blockquote><pre>
-// 24.4.4, iterator operations:
-...
-template &lt;class <del>Input</del><ins>Forward</ins>Iterator&gt;
-  <del>Input</del><ins>Forward</ins>Iterator
-  next(<del>Input</del><ins>Forward</ins>Iterator x, typename std::iterator_traits&lt;<del>Input</del><ins>Forward</ins>Iterator&gt;::difference_type n = 1);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 24.4.4 [iterator.operations] before p.6 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class <del>Input</del><ins>Forward</ins>Iterator>
-  <del>Input</del><ins>Forward</ins>Iterator
-  next(<del>Input</del><ins>Forward</ins>Iterator x, typename std::iterator_traits&lt;<del>Input</del><ins>Forward</ins>Iterator&gt;::difference_type n = 1);
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1012"></a>1012. <tt>reverse_iterator</tt> default ctor should value initialize</h3>
-<p><b>Section:</b> 24.5.1.3.1 [reverse.iter.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 277</b></p>
-
-<p>
-The default constructor default-initializes current, rather than
-value-initializes. This means that when Iterator corresponds to a
-trivial type, the current member is left un-initialized, even when the
-user explictly requests value intialization! At this point, it is not
-safe to perform any operations on the reverse_iterator other than assign
-it a new value or destroy it. Note that this does correspond to the
-basic definition of a singular iterator.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree with option i.
-</p></blockquote>
-
-<p>
-Related issue: <a href="lwg-closed.html#408">408</a>
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We believe this should be revisited
-in conjunction with issue <a href="lwg-closed.html#408">408</a>,
-which nearly duplicates this issue.
-Move to Open.
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Change "constructed" to "initialized" in two places in the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for this meeting.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change  [reverse.iter.con]:
-</p>
-
-<blockquote><pre>
-reverse_iterator();
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> <del>Default</del> <ins>Value</ins> initializes <tt>current</tt>. Iterator
-operations applied to the resulting iterator have defined behavior if and
-only if the corresponding operations are defined on a <del>default constructed</del>
-<ins>value initialized</ins>
-iterator of type <tt>Iterator</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 24.5.3.3.1 [move.iter.op.const]:
-</p>
-
-<blockquote><pre>
-move_iterator();
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> Constructs a <tt>move_iterator</tt>, <del>default</del> <ins>value</ins>
-initializing <tt>current</tt>.
-<ins>Iterator
-operations applied to the resulting iterator have defined behavior if and
-only if the corresponding operations are defined on a
-value initialized
-iterator of type <tt>Iterator</tt>.</ins>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1014"></a>1014. <tt>basic_regex</tt> should be created/assigned from initializer lists</h3>
-<p><b>Section:</b> 28.8.2 [re.regex.construct] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex.construct">issues</a> in [re.regex.construct].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 317 and JP 74</b></p>
-
-<p>
-UK 317:
-</p>
-
-<blockquote><p>
-<tt>basic_string</tt> has both a constructor and an assignment operator that
-accepts an initializer list, <tt>basic_regex</tt> should have the same.
-</p></blockquote>
-
-<p>
-JP 74:
-</p>
-
-<blockquote><p>
-<tt>basic_regex &amp; operator= (initializer_list&lt;T&gt;);</tt> is not defined.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-UK 317 asks for both assignment and constructor,
-but the requested constructor is already present in the current Working Paper.
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 28.8 [re.regex]:
-</p>
-
-<blockquote><pre>
-template &lt;class charT,
-          class traits = regex_traits&lt;charT&gt; &gt;
-class basic_regex {
-  ...
-  basic_regex&amp; operator=(const charT* ptr);
-  <ins>basic_regex&amp; operator=(initializer_list&lt;charT&gt; il);</ins>
-  template &lt;class ST, class SA&gt;
-    basic_regex&amp; operator=(const basic_string&lt;charT, ST, SA&gt;&amp; p);
-  ...
-};
-</pre></blockquote>
-
-<p>
-Add in  28.8.2 [re.regex.construct]:
-</p>
-
-<blockquote>
-<blockquote><p>
--20- ...
-</p></blockquote>
-<pre>
-basic_regex&amp; operator=(initializer_list&lt;charT&gt; il);
-</pre>
-<blockquote><p>
--21- <i>Effects:</i> returns <tt>assign(il.begin(), il.end());</tt>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1019"></a>1019. Make <tt>integral_constant</tt> objects useable in integral-constant-expressions</h3>
-<p><b>Section:</b> 20.10.3 [meta.help] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.help">issues</a> in [meta.help].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 205 [CD1]</b></p>
-
-<p>
-<tt>integral_constant</tt> objects should be usable in integral-constant-expressions.
-The addition to the language of literal types and the enhanced rules for
-constant expressions make this possible.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree that the <tt>static</tt> data member
-ought be declared <tt>constexpr</tt>,
-but do not see a need for the proposed <tt>operator value_type()</tt>.
-(A use case would be helpful.)
-Move to Open.
-</p></blockquote>
-
-<p><i>[
-2009-05-23 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The motivating case in my mind is that we can then use
-<tt>true_type</tt> and <tt>false_type</tt> as integral Boolean expressions, for example inside
-a <tt>static_assert</tt> declaration.  In that sense it is purely a matter of style.
-</p>
-<p>
-Note that Boost has applied the non-explicit conversion operator for many
-years as it has valuable properties for extension into other metaprogramming
-libraries, such as MPL.  If additional rationale is desired I will poll the
-Boost lists for why this extension was originally applied.  I would argue
-that explicit conversion is more appropriate for 0x though.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07-04 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Here's a use case which demonstrates the syntactic niceness which Alisdair describes:
-</p>
-
-<blockquote><pre>
-#define requires(...) class = typename std::enable_if&lt;(__VA_ARGS__)&gt;::type
-
-template &lt;class T, class U,
-    requires(!is_lvalue_reference&lt;T&gt;() ||
-              is_lvalue_reference&lt;T&gt;() &amp;&amp; is_lvalue_reference&lt;U&gt;()),
-    requires(is_same&lt;typename base_type&lt;T&gt;::type,
-                     typename base_type&lt;U&gt;::type&gt;)&gt;
-inline
-T&amp;&amp;
-forward(U&amp;&amp; t)
-{
-    return static_cast&lt;T&amp;&amp;&gt;(t);
-}
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for this meeting.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the <tt>integral_constant</tt> struct definition in 20.10.3 [meta.help]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, T v&gt;
-struct integral_constant {
-  static const<ins>expr</ins> T value = v;
-  typedef T value_type;
-  typedef integral_constant&lt;T,v&gt; type;
-  <ins>constexpr operator value_type() { return value; }</ins>
-};
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1021"></a>1021. Allow <tt>nullptr_t</tt> assignments to <tt>unique_ptr</tt></h3>
-<p><b>Section:</b> 20.8.1.2.3 [unique.ptr.single.asgn] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.asgn">issues</a> in [unique.ptr.single.asgn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 211 [CD1]</b></p>
-
-<p>
-The <tt>nullptr_t</tt> type was introduced to resolve the null pointer literal
-problem. It should be used for the assignment operator, as with the
-constructor and elsewhere through the library.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 20.8.1.2 [unique.ptr.single]:
-</p>
-
-<blockquote><pre>
-unique_ptr&amp; operator=(<del><i>unspecified-pointer-type</i></del> <ins>nullptr_t</ins>);
-</pre></blockquote>
-
-<p>
-Change 20.8.1.2.3 [unique.ptr.single.asgn]:
-</p>
-
-<blockquote><pre>
-unique_ptr&amp; operator=(<del><i>unspecified-pointer-type</i></del> <ins>nullptr_t</ins>);
-</pre>
-<blockquote><p>
-<del>Assigns from the literal 0 or <tt>NULL</tt>. [<i>Note:</i> The
-<i>unspecified-pointer-type</i> is often implemented as a pointer to a
-private data member, avoiding many of the implicit conversion pitfalls.
-&mdash; <i>end note</i>]</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1030"></a>1030. Missing requirements for smart-pointer safety API</h3>
-<p><b>Section:</b> 20.8.2.6 [util.smartptr.shared.atomic] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.atomic">issues</a> in [util.smartptr.shared.atomic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses JP 44 [CD1]</b></p>
-
-<p>
-The 1st parameter <tt>p</tt> and 2nd parameter <tt>v</tt> is now
-<tt>shared_ptr&lt;T&gt;*</tt>.
-</p>
-<p>
-It should be <tt>shared_ptr&lt;T&gt;&amp;</tt>, or if these are
-<tt>shared_ptr&lt;T&gt;*</tt> then add the "<tt>p</tt> shall not be a
-null pointer" at the requires.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree. All of the functions need a requirement that <tt>p</tt> (or
-<tt>v</tt>) is a pointer to a valid object.
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote>
-<p>
-Lawrence explained that these signatures match the regular atomics. The
-regular atomics must not use references because these signatures are
-shared with C. The decision to pass shared_ptrs by pointer rather than
-by reference was deliberate and was motivated by the principle of least
-surprise.
-</p>
-<p>
-Lawrence to write wording that requires that the pointers not be null.
-</p>
-</blockquote>
-
-<p><i>[
-2009-09-20 Lawrence provided wording:
-]</i></p>
-
-
-<blockquote>
-<p>
-The parameter types for atomic shared pointer access
-were deliberately chosen to be pointers
-to match the corresponding parameters of the atomics chapter.
-Those in turn were deliberately chosen
-to match C functions,
-which do not have reference parameters.
-</p>
-<p>
-We adopt the second suggestion,
-to require that such pointers not be null.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section "<code>shared_ptr</code> atomic access"
-20.8.2.6 [util.smartptr.shared.atomic], add to each function the
-following clause.
-</p>
-<blockquote><p>
-<i>Requires:</i> <code>p</code> shall not be null.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1033"></a>1033. <tt>thread::join()</tt> effects?</h3>
-<p><b>Section:</b> 30.3.1.5 [thread.thread.member] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.member">issues</a> in [thread.thread.member].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-While looking at <tt>thread::join()</tt> I think I spotted a couple of
-possible defects in the specifications. I could not find a previous
-issue or NB comment about that, but I might have missed it.
-</p>
-
-<p>
-The postconditions clause for <tt>thread::join()</tt> is:
-</p>
-
-<blockquote><p>
-<i>Postconditions:</i> If <tt>join()</tt> throws an exception, the value
-returned by <tt>get_id()</tt> is unchanged. Otherwise, <tt>get_id() == id()</tt>.
-</p></blockquote>
-
-<p>
-and the throws clause is:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> <tt>std::system_error</tt> when the postconditions cannot be achieved.
-</p></blockquote>
-
-<p>
-Now... how could the postconditions <em>not</em> be achieved?
-It's just a matter of resetting the value of <tt>get_id()</tt> or leave it
-unchanged! I bet we can always do that. Moreover, it's a chicken-and-egg
-problem: in order to decide whether to throw or not I depend on the
-postconditions, but the postconditions are different in the two cases.
-</p>
-
-<p>
-I believe the throws clause should be:
-</p>
-
-<blockquote><p>
-<i>Throws:</i> <tt>std::system_error</tt> when the effects or postconditions
-cannot be achieved.
-</p></blockquote>
-
-<p>
-as it is in <tt>detach()</tt>, or, even better, as the postcondition is
-trivially satisfiable and to remove the circular dependency:
-</p>
-
-
-<blockquote><p>
-<i>Throws:</i> <tt>std::system_error</tt> if the effects cannot be achieved.
-</p></blockquote>
-
-<p>
-Problem is that... ehm... <tt>join()</tt> has no "Effects" clause. Is that intentional?
-</p>
-
-<p><i>[
-See the thread starting at c++std-lib-23204 for more discussion.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete believes there may be some more general language (in frontmatter)
-that can address this and related issues such as <a href="lwg-defects.html#962">962</a>.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-11-18 Anthony provides wording.
-]</i></p>
-
-
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Edit 30.3.1.5 [thread.thread.member] as indicated:
-</p>
-
-<blockquote><pre>
-void join();
-</pre>
-<blockquote>
-<p>
-5 <i>Precondition:</i> <tt>joinable()</tt> is <tt>true</tt>.
-</p>
-<p><ins>
-<i>Effects:</i> Blocks until the thread represented by <tt>*this</tt> has completed.
-</ins></p>
-
-<p>
-6 <i>Synchronization:</i> The completion of the thread represented by
-<tt>*this</tt> happens before (1.10 [intro.multithread])
-<tt>join()</tt> returns. [<i>Note:</i> Operations on <tt>*this</tt> are not
-synchronized. &mdash; <i>end note</i>]
-</p>
-
-<p>
-7 <i>Postconditions:</i> <del>If <tt>join()</tt> throws an exception, the value
-returned by <tt>get_id()</tt> is unchanged. Otherwise,</del> <ins>The thread
-represented by <tt>*this</tt> has completed.</ins> <tt>get_id() == id()</tt>.
-</p>
-
-<p>
-8 ...
-</p>
-
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1034"></a>1034. Clarify generality of Container Requirement tables</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 222 [CD1]</b></p>
-
-<p>
-It is not clear what purpose the Requirement tables serve in the
-Containers clause. Are they the definition of a library Container? Or
-simply a conventient shorthand to factor common semantics into a single
-place, simplifying the description of each subsequent container? This
-becomes an issue for 'containers' like <tt>array</tt>, which does not meet the
-default-construct-to-empty requirement, or <tt>forward_list</tt> which does not
-support the size operation. Are these components no longer containers?
-Does that mean the remaining requirements don't apply? Or are these
-contradictions that need fixing, despite being a clear design decision?
-</p>
-
-<p>
-Recommend:
-</p>
-
-<p>
-Clarify all the tables in 23.2 [container.requirements] are
-there as a convenience for documentation, rather than a strict set of
-requirements. Containers should be allowed to relax specific
-requirements if they call attention to them in their documentation. The
-introductory text for <tt>array</tt> should be expanded to mention a
-default constructed <tt>array</tt> is not empty, and
-<tt>forward_list</tt> introduction should mention it does not provide
-the required <tt>size</tt> operation as it cannot be implemented
-efficiently.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree in principle.
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-We agree in principle, but we have a timetable. This group feels that
-the issue should be closed as NAD unless a proposed resolution is
-submitted prior to the March 2010 meeting.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Looked at this and still intend to close as NAD in March
-2010 unless there is proposed wording that we like.
-</p></blockquote>
-
-<p><i>[
-2010-02-02 Nicolai M. Josuttis updates proposed wording and adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I just came across issue #1034 (response to UK 222),
-which covers the role of container requirements.
-The reason I found this issue was that I am wondering why
-<tt>array&lt;&gt;</tt> is specified to be a sequence container.
-For me, currently, this follows from
-Sequence containers 23.2.3 [sequence.reqmts]
-saying:
-</p>
-<blockquote><p>
-The library provides five basic kinds of sequence containers: <tt>array</tt>,
-<tt>vector</tt>, <tt>forward_list</tt>, <tt>list</tt>, and <tt>deque</tt>. while
-later on in Table 94 "Sequence container requirements" are defined.
-</p></blockquote>
-
-<p>
-IMO, you can hardly argue that this is NAD.
-We MUST say somewhere that either array is not a sequence container
-or does not provide all operations of a sequence container
-(even not all requirements of a container in general).
-</p>
-<p>
-Here is the number of requirements <tt>array&lt;&gt;</tt> does not meet
-(AFAIK):
-</p>
-<p>
-general container requirements:
-</p>
-<ul>
-<li>
-a default constructed <tt>array</tt> is not empty
-</li>
-<li>
-<tt>swap</tt> has no constant complexity
-</li>
-</ul>
-
-<p>
- Note also that <tt>swap</tt> not only has linear complexity
- it also invalidates iterators (or to be more precise,
- assigns other values to the elements), which
- is different from the effect swap has for other containers.
- For this reason, I must say that i tend to propose to
- remove <tt>swap()</tt> for <tt>arrays</tt>.
- </p>
-
-<p>
-sequence container requirements:
-</p>
-
-<ul>
-<li>
-There is no constructor and assignment for a range
-</li>
-<li>
-There is no constructor and assignment for <tt>n</tt> copies of <tt>t</tt>
-</li>
-<li>
- There are no <tt>emplace</tt>, <tt>insert</tt>, <tt>erase</tt>, <tt>clear</tt>,
- <tt>assign</tt> operations
-</li>
-</ul>
-
-<p>
-In fact, out of all sequence container requirements <tt>array&lt;&gt;</tt> only
-provides the following operations:
-from sequence requirements (Table 94):
-</p>
-<blockquote><pre>
-X(il);
-a = il;
-</pre></blockquote>
-<p>
-and from optional requirements (Table 95):
-</p>
-<blockquote><pre>
-[], at(), front(), back()
-</pre></blockquote>
-<p>
-This is almost nothing!
-</p>
-
-<p>
-Note in addition, that due to the fact that
-<tt>array</tt> is an aggregate and not a container with
-<tt>initializer_lists</tt>
-a construction or assignment with an initializer list is valid
-for all sequence containers but not valid for array:
-</p>
-
-<blockquote><pre>
-vector&lt;int&gt;  v({1,2,3});   // OK
-v = {4,5,6};               // OK
-
-array&lt;int,3&gt; a({1,2,3});   // Error
-array&lt;int,3&gt; a = {1,2,3};  // OK
-a = {4,5,6};               // Error
-</pre></blockquote>
-
-<p>
-BTW, for this reason, I am wondering, why <tt>&lt;array&gt;</tt> includes
-<tt>&lt;initializer_list&gt;</tt>.
-</p>
-
-<p>
-IMO, we can't really say that <tt>array</tt> is a sequence container.
-<tt>array</tt> is special.
-As the solution to this issue seemed to miss some proposed wording
-where all could live with, let me try to suggest some.
-</p>
-
-</blockquote>
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Ok with move to Ready except for "OPEN:" part.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>In Sequence containers 23.2.3 [sequence.reqmts] modify paragraph 1 as 
-indicated: </i> </p>
-<blockquote>
-  <p>1 A sequence container organizes a finite set of objects, all of the same 
-  type, into a strictly linear arrangement. The library provides <del>five</del>
-  <ins>four</ins> basic kinds of sequence containers: <del><tt>array</tt>,</del>
-  <tt>vector</tt>, <tt>forward_list</tt>, <tt>list</tt>, and <tt>deque</tt>.
-  <ins>In addition, <tt>array</tt> is provided as a sequence container that 
-  only provides limited sequence operations because it has a fixed number of 
-  elements.</ins> <del>It</del> <ins>The library</ins> also provides container adaptors that make it easy to 
-  construct abstract data types, such as <tt>stack</tt>s or <tt>queue</tt>s, out 
-  of the basic sequence container kinds (or out of other kinds of sequence 
-  containers that the user might define). </p>
-</blockquote>
-<p><i>Modify paragraph 2 as follows (just editorial): </i> </p>
-<blockquote>
-  <p>2 The <del>five basic</del> sequence 
-  containers offer the programmer different complexity trade-offs and should be 
-  used accordingly. <tt>vector</tt> or <tt>array</tt> is the type of sequence 
-  container that should be used by default. <tt>list</tt> or <tt>forward_list</tt> 
-  should be used when there are frequent insertions and deletions from the 
-  middle of the sequence. <tt>deque</tt> is the data structure of choice when 
-  most insertions and deletions take place at the beginning or at the end of the 
-  sequence. </p>
-</blockquote>
-<p><i>In Class template array 23.3.2 [array] modify paragraph 3 as indicated:
-</i> </p>
-<blockquote>
-  <p>3 <del>Unless otherwise specified, all <tt>array</tt> operations are as 
-  described in 23.2.</del> <ins>An array satisfies all of the requirements of a 
-  container and of a reversible container (given in two tables in 23.2 [container.requirements]) 
-  except that a default constructed <tt>array</tt> is not empty, <tt>swap</tt> 
-  does not have constant complexity, and <tt>swap</tt> may throw exceptions. An <tt>array</tt> satisfies some of the requirements of a 
-  sequence container (given in 23.2.3 [sequence.reqmts]).</ins> Descriptions are 
-  provided here only for operations on <tt>array</tt> that are not described
-  <del>in that Clause</del> <ins>in one of these tables</ins> or for operations 
-  where there is additional semantic information. </p>
-</blockquote>
-<p><i>In array specialized algorithms 23.3.2.3 [array.special] add to the 
-specification of <tt>swap()</tt>: </i> </p>
-<blockquote>
-  <pre>template &lt;class T, size_t N&gt; void swap(array&lt;T,N&gt;&amp; x, array&lt;T,N&gt;&amp; y);
-</pre>
-  <blockquote>
-    <p>1 <i>Effects:</i> ... </p>
-    <p><ins><i>Complexity:</i> Linear in <tt>N</tt>. </ins></p>
-  </blockquote>
-</blockquote>
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1037"></a>1037. Unclear status of <tt>match_results</tt> as library container</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 232 [CD1]</b></p>
-
-<p>
-<tt>match_results</tt> may follow the requirements but is not listed a general
-purpose library container.
-</p>
-
-<p>
-Remove reference to <tt>match_results</tt> against <tt>a[n]</tt> operation.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree. <tt>operator[]</tt> is defined elsewhere.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.2.3 [sequence.reqmts] Table 84, remove reference to
-<tt>match_results</tt> in the row describing the <tt>a[n]</tt> operation.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1038"></a>1038. Sequence requirement table needs to reference several new containers</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 233 [CD1]</b></p>
-
-<p>
-Table 84 is missing references to several new container types.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.2.3 [sequence.reqmts] Table 84, Add reference to listed
-containers to the following rows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 84 -- Optional sequence container operations</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Container</th>
-</tr>
-<tr>
-<td><tt>a.front()</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>vector, list, deque, basic_string<ins>, array, forward_list</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a.back()</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>vector, list, deque, basic_string<ins>, array</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a.emplace_front(args)</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>list, deque<ins>, forward_list</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a.push_front(t)</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>list, deque<ins>, forward_list</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a.push_front(rv)</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>list, deque<ins>, forward_list</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a.pop_front()</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>list, deque<ins>, forward_list</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a[n]</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>vector, deque, basic_string<ins>, array</ins></tt></td>
-</tr>
-<tr>
-<td><tt>a.at(n)</tt></td>
-<td>...</td>
-<td>...</td>
-<td><tt>vector, deque<ins>, basic_string, array</ins></tt></td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1039"></a>1039. Sequence container <tt>back</tt> function should also support <tt>const_iterator</tt></h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 234 [CD1]</b></p>
-
-<p>
-The reference to <tt>iterator</tt> in semantics for <tt>back</tt> should
-also allow for <tt>const_iterator</tt> when called on a const-qualified
-container. This would be ugly to specify in the 03 standard, but is
-quite easy with the addition of <tt>auto</tt> in this new standard.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.2.3 [sequence.reqmts] Table 84, replace iterator with auto in semantics for back:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 84 &mdash; Optional sequence container operations</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Container</th>
-</tr>
-<tr>
-<td><tt>a.back()</tt></td>
-<td><tt>reference; const_reference</tt> for constant <tt>a</tt></td>
-<td><tt>{ <del>iterator</del> <ins>auto</ins> tmp = a.end();<br/>--tmp;<br/>return *tmp; }</tt></td>
-<td><tt>vector, list, deque, basic_string</tt></td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1040"></a>1040. Clarify possible sameness of associative container's <tt>iterator</tt> and <tt>const_iterator</tt></h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 238 [CD1]</b></p>
-
-<p>
-Leaving it unspecified whether or not <tt>iterator</tt> and <tt>const_iterator</tt> are the
-same type is dangerous, as user code may or may not violate the One
-Definition Rule by providing overloads for 
-both types. It is probably too late to specify a single behaviour, but
-implementors should document what to expect. Observing that problems can be
-avoided by users restricting themselves to using <tt>const_iterator</tt>, add a note to that effect. 
-</p>
-<p>
-Suggest Change 'unspecified' to 'implementation defined'.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree with issue. Agree with adding the note but not with changing the
-normative text. We believe the note provides sufficient guidance.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.2.4 [associative.reqmts] p6, add:
-</p>
-
-<blockquote><p>
--6- <tt>iterator</tt> of an associative container meets the requirements
-of the <tt>BidirectionalIterator</tt> concept. For associative
-containers where the value type is the same as the key type, both
-<tt>iterator</tt> and <tt>const_iterator</tt> are constant iterators. It
-is unspecified whether or not <tt>iterator</tt> and
-<tt>const_iterator</tt> are the same type.
-<ins>[<i>Note:</i> <tt>iterator</tt> and <tt>const_iterator</tt> have identical semantics in
-this case, and <tt>iterator</tt> is convertible to <tt>const_iterator</tt>. Users can avoid
-violating the One Definition Rule by always using <tt>const_iterator</tt>
-in their function parameter lists <i>-- end note</i>]</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1043"></a>1043. Clarify that <tt>compare_exchange</tt> is not a read-modify-write operation</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 91 [CD1]</b></p>
-
-<p>
-It is unclear whether or not a failed <tt>compare_exchange</tt> is a RMW operation
-(as used in 1.10 [intro.multithread]).
-</p>
-
-<p>
-Suggested solution:
-</p>
-
-<p>
-Make failing <tt>compare_exchange</tt> operations <b>not</b> be RMW.
-</p>
-
-<p><i>[
-Anthony Williams adds:
-]</i></p>
-
-
-<blockquote><p>
-In 29.6 [atomics.types.operations] p18 it says that "These
-operations are atomic read-modify-write operations" (final sentence).
-This is overly restrictive on the implementations of
-<tt>compare_exchange_weak</tt> and <tt>compare_exchange_strong</tt> on platforms without a
-native CAS instruction.
-</p></blockquote>
-
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Group agrees with the resolution as proposed by Anthony Williams in the attached note.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We recommend the proposed resolution be reviewed
-by members of the Concurrency Subgroup.
-</p></blockquote>
-
-<p><i>[
-2009-07 post-Frankfurt:
-]</i></p>
-
-
-<blockquote><p>
-This is likely to be addressed by Lawrence's upcoming paper. He will
-adopt the proposed resolution.
-</p></blockquote>
-
-<p><i>[
-2009-08-17 Handled by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2925.html">N2925</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 29.6 [atomics.types.operations] p18:
-</p>
-
-<blockquote><p>
--18- <i>Effects:</i> Atomically, compares the value pointed to by
-<tt>object</tt> or by <tt>this</tt> for equality with that in
-<tt>expected</tt>, and if true, replaces the value pointed to by
-<tt>object</tt> or by <tt>this</tt> with desired, and if false, updates
-the value in <tt>expected</tt> with the value pointed to by
-<tt>object</tt> or by <tt>this</tt>. Further, if the comparison is true,
-memory is affected according to the value of <tt>success</tt>, and if the
-comparison is false, memory is affected according to the value of
-<tt>failure</tt>. When only one <tt>memory_order</tt> argument is
-supplied, the value of <tt>success</tt> is <tt>order</tt>, and the value
-of <tt>failure</tt> is <tt>order</tt> except that a value of
-<tt>memory_order_acq_rel</tt> shall be replaced by the value
-<tt>memory_order_acquire</tt> and a value of
-<tt>memory_order_release</tt> shall be replaced by the value
-<tt>memory_order_relaxed</tt>. <ins>If the comparison is <tt>true</tt>, </ins>
-<del>T</del><ins>t</ins>hese operations are atomic
-read-modify-write operations (1.10). 
-<ins>If the comparison is <tt>false</tt>, these
-operations are atomic load operations.</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1044"></a>1044. Empty tag types should be <tt>constexpr</tt> literals</h3>
-<p><b>Section:</b> 30.4 [thread.mutex] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex">issues</a> in [thread.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 325 [CD1]</b></p>
-
-<p>
-We believe <tt>constexpr</tt> literal values should be a more natural expression
-of empty tag types than extern objects as it should improve the
-compiler's ability to optimize the empty object away completely.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Move to review. The current specification is a "hack", and the proposed
-specification is a better "hack".
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 30.4 [thread.mutex]:
-</p>
-
-<blockquote><pre>
-struct defer_lock_t <ins>{}</ins>;
-struct try_to_lock_t <ins>{}</ins>;
-struct adopt_lock_t <ins>{}</ins>;
-
-<del>extern</del> const<ins>expr</ins> defer_lock_t defer_lock <ins>{}</ins>;
-<del>extern</del> const<ins>expr</ins> try_to_lock_t try_to_lock <ins>{}</ins>;
-<del>extern</del> const<ins>expr</ins> adopt_lock_t adopt_lock <ins>{}</ins>;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1045"></a>1045. Remove unnecessary preconditions from <tt>unique_lock</tt> constructor</h3>
-<p><b>Section:</b> 30.4.2.2.1 [thread.lock.unique.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 326 [CD1]</b></p>
-
-<p>
-The precondition that the mutex is not owned by this thread offers
-introduces the risk of unnecessary undefined behaviour into the
-program. The only time it matters whether the current thread owns the
-mutex is in the lock operation, and that will happen subsequent to
-construction in this case. The lock operation has the identical
-pre-condition, so there is nothing gained by asserting that precondition
-earlier and denying the program the right to get into a valid state
-before calling lock.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote><p>
-Agree, move to review.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike 30.4.2.2.1 [thread.lock.unique.cons] p7:
-</p>
-
-<blockquote><pre>
-unique_lock(mutex_type&amp; m, defer_lock_t);
-</pre>
-<blockquote><p>
-<del>-7- <i>Precondition:</i> If <tt>mutex_type</tt> is not a recursive mutex
-the calling thread does not own the mutex.</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1046"></a>1046. Provide simple facility to start asynchronous operations</h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 329 [CD1]</b></p>
-
-<p>
-<tt>future</tt>, <tt>promise</tt> and <tt>packaged_task</tt> provide a
-framework for creating future values, but a simple function to tie all
-three components together is missing. Note that we only need a <em>simple</em>
-facility for C++0x. Advanced thread pools are to be left for TR2.
-</p>
-
-<p>
-Simple Proposal:
-</p>
-
-<p>
-Provide a simple function along the lines of: 
-</p>
-<blockquote><pre>
-template&lt; typename F, typename ... Args &gt;
-  requires Callable&lt; F, Args... &gt;
-    future&lt; Callable::result_type &gt; async( F&amp;&amp; f, Args &amp;&amp; ... ); 
-</pre></blockquote>
-
-<p>
-Semantics are similar to creating a <tt>thread</tt> object with a <tt>packaged_task</tt>
-invoking <tt>f</tt> with <tt>forward&lt;Args&gt;(args...)</tt>
-but details are left unspecified to allow different scheduling and thread
-spawning implementations. 
-</p>
-<p>
-It is unspecified whether a task submitted to async is run on its own thread
-or a thread previously used for another async task. If a call to <tt>async</tt>
-succeeds, it shall be safe to wait for it from any thread. 
-</p>
-<p>
-The state of <tt>thread_local</tt> variables shall be preserved during <tt>async</tt> calls. 
-</p>
-<p>
-No two incomplete async tasks shall see the same value of
-<tt>this_thread::get_id()</tt>. 
-</p>
-<p>
-[<i>Note:</i> this effectively forces new tasks to be run on a new thread, or a
-fixed-size pool with no queue. If the 
-library is unable to spawn a new thread or there are no free worker threads
-then the <tt>async</tt> call should fail. <i>--end note</i>] 
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-The concurrency subgroup has revisited this issue and decided that it
-could be considered a defect according to the Kona compromise. A task
-group was formed lead by Lawrence Crowl and Bjarne Stroustrup to write a
-paper for Frankfort proposing a simple asynchronous launch facility
-returning a <tt>future</tt>. It was agreed that the callable must be run on a
-separate thread from the caller, but not necessarily a brand-new thread.
-The proposal might or might not allow for an implementation that uses
-fixed-size or unlimited thread pools.
-</p>
-<p>
-Bjarne in c++std-lib-23121: I think that what we agreed was that to
-avoid deadlock <tt>async()</tt> would almost certainly be specified to launch in
-a different thread from the thread that executed <tt>async()</tt>, but I don't
-think it was a specific design constraint.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Proposed resolution: see
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2996.htm">N2996</a>
-(Herb's and Lawrence's paper on Async). Move state to <del>NAD editorial</del><ins>Resolved</ins>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1047"></a>1047. Ensure that future's <tt>get()</tt> blocks when not ready</h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 334 [CD1]</b></p>
-
-<p>
-Behaviour of <tt>get()</tt> is undefined if calling <tt>get()</tt> while
-not <tt>is_ready()</tt>. The intent is that <tt>get()</tt> is a blocking
-call, and will wait for the future to become ready.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Agree, move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-04-03 Thomas J. Gritzan adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-This issue also applies to <tt>shared_future::get()</tt>.
-</p>
-
-<p>
-Suggested wording:
-</p>
-
-<p>
-Add a paragraph to 30.6.7 [futures.shared_future]:
-</p>
-
-<blockquote><pre>
-void shared_future&lt;void&gt;::get() const;
-</pre>
-<blockquote><p>
-<i>Effects:</i> If <tt>is_ready()</tt> would return <tt>false</tt>, block on the asynchronous 
-result associated with <tt>*this</tt>.
-</p></blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-It is not clear to us that this is an issue,
-because the proposed resolution's Effects clause seems to duplicate
-information already present in the Synchronization clause.
-Keep in Review status.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a paragraph to 30.6.6 [futures.unique_future]:
-</p>
-
-<blockquote><pre>
-R&amp;&amp; unique_future::get(); 
-R&amp; unique_future&lt;R&amp;&gt;::get(); 
-void unique_future&lt;void&gt;::get();
-</pre>
-<blockquote>
-<p><i>Note:</i>...</p>
-<p>
-<ins><i>Effects:</i> If <tt>is_ready()</tt> would return <tt>false</tt>,
-block on the asynchronous result associated with <tt>*this</tt>.</ins>
-</p>
-<p>
-<i>Synchronization:</i> if <tt>*this</tt> is associated with a
-<tt>promise</tt> object, the completion of <tt>set_value()</tt> or
-<tt>set_exception()</tt> to that <tt>promise</tt> happens before (1.10)
-<tt>get()</tt> returns.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1048"></a>1048. Provide empty-state inspection for <tt>std::unique_future</tt></h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 335 [CD1]</b></p>
-
-<p>
-<tt>std::unique_future</tt> is <tt>MoveConstructible</tt>, so you can transfer the
-association with an asynchronous result from one instance to another.
-However, there is no way to determine whether or not an instance has
-been moved from, and therefore whether or not it is safe to wait for it.
-</p>
-
-<blockquote><pre>
-std::promise&lt;int&gt; p;
-std::unique_future&lt;int&gt; uf(p.get_future());
-std::unique_future&lt;int&gt; uf2(std::move(uf));
-uf.wait(); <span style="color:#C80000">// oops, uf has no result to wait for. </span>
-</pre></blockquote>
-
-<p>
-Suggest we add a <tt>waitable()</tt> function to <tt>unique_future</tt>
-(and <tt>shared_future</tt>) akin to <tt>std::thread::joinable()</tt>,
-which returns <tt>true</tt> if there is an associated result to wait for
-(whether or not it is ready).
-</p>
-
-<p>
-Then we can say:
-</p>
-
-<blockquote><pre>
-if(uf.waitable()) uf.wait();
-</pre></blockquote>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Create an issue. Requires input from Howard. Probably NAD.
-</p>
-</blockquote>
-
-<p><i>[
-Post Summit, Howard throws in his two cents:
-]</i></p>
-
-
-<blockquote>
-<p>
-Here is a copy/paste of my last prototype of <tt>unique_future</tt> which was
-several years ago.  At that time I was calling <tt>unique_future</tt> <tt>future</tt>:
-</p>
-
-<blockquote><pre>
-template &lt;class R&gt;
-class future
-{
-public:
-    typedef R result_type;
-private:
-    future(const future&amp;);// = delete;
-    future&amp; operator=(const future&amp;);// = delete;
-
-    template &lt;class R1, class F1&gt; friend class prommise;
-public:
-    future();
-    ~future();
-
-    future(future&amp;&amp; f);
-    future&amp; operator=(future&amp;&amp; f);
-
-    void swap(future&amp;&amp; f);
-
-    <b>bool joinable() const;</b>
-    bool is_normal() const;
-    bool is_exceptional() const;
-    bool is_ready() const;
-
-    R get();
-
-    void join();
-    template &lt;class ElapsedTime&gt;
-        bool timed_join(const ElapsedTime&amp;);
-};
-</pre></blockquote>
-
-<p>
-<tt>shared_future</tt> had a similar interface.  I intentionally reused
-the <tt>thread</tt> interface where possible to lessen the learning
-curve std::lib clients will be faced with.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1049"></a>1049. Move assignment of <tt>promise</tt> inverted</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 339 [CD1]</b></p>
-
-<p>
-Move assignment is going in the wrong direction, assigning from
-<tt>*this</tt> to the passed rvalue, and then returning a reference to
-an unusable <tt>*this</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Agree, move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We recommend deferring this issue until after Detlef's paper (on futures)
-has been issued.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike 30.6.5 [futures.promise] p6 and change p7:
-</p>
-
-<blockquote><pre>
-promise&amp; operator=(promise&amp;&amp; rhs);
-</pre>
-<blockquote>
-<p>
-<del>-6- <i>Effects:</i> move assigns its associated state to <tt>rhs</tt>.</del>
-</p>
-<p>
--7- <i>Postcondition:</i> <del><tt>*this</tt> has no associated
-state.</del> <ins>associated state of <tt>*this</tt> is the same as the
-associated state of <tt>rhs</tt> before the call. <tt>rhs</tt> has no
-associated state.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1050"></a>1050. Clarify postconditions for <tt>get_future()</tt></h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 340 [CD1]</b></p>
-
-<p>
-There is an implied postcondition for <tt>get_future()</tt> that the state of the
-<tt>promise</tt> is transferred into the <tt>future</tt> leaving the <tt>promise</tt> with no
-associated state. It should be spelled out.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-
-<blockquote>
-<p>
-Agree, move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-04-03 Thomas J. Gritzan adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>promise::get_future()</tt> must not invalidate the state of the promise object. 
-</p>
-<p>
-A promise is used like this: 
-</p>
-<blockquote><pre>
-promise&lt;int&gt; p; 
-unique_future&lt;int&gt; f = p.get_future(); 
-<span style="color:#C80000">// post 'p' to a thread that calculates a value </span>
-<span style="color:#C80000">// use 'f' to retrieve the value. </span>
-</pre></blockquote>
-<p>
-So <tt>get_future()</tt> must return an object that shares the same associated 
-state with <tt>*this</tt>. 
-</p>
-<p>
-But still, this function should throw an <tt>future_already_retrieved</tt> error 
-when it is called twice. 
-</p>
-<p>
-<tt>packaged_task::get_future()</tt> throws <tt>std::bad_function_call</tt> if its <tt>future</tt>
-was already retrieved. It should throw 
-<tt>future_error(future_already_retrieved)</tt>, too. 
-</p>
-<p>
-Suggested resolution: 
-</p>
-<p>
-Replace p12/p13 30.6.5 [futures.promise]: 
-</p>
-<blockquote>
-<p>
--12- <i>Throws:</i> <tt>future_error</tt> if <del><tt>*this</tt> has no associated state</del>
-<ins>the <tt>future</tt> has already been retrieved</ins>.
-</p>
-<p>
--13- <i>Error conditions:</i> <tt>future_already_retrieved</tt> if <del><tt>*this</tt>
-has no associated state</del>
-<ins>the <tt>future</tt> associated with 
-the associated state has already been retrieved</ins>.
-</p>
-<p>
-<ins><i>Postcondition:</i> The returned object and <tt>*this</tt> share the associated state.</ins>
-</p>
-</blockquote>
-<p>
-Replace p14 30.6.9 [futures.task]: 
-</p>
-<blockquote>
-<p>
--14- <i>Throws:</i> <tt><del>std::bad_function_call</del> <ins>future_error</ins></tt> if the future <del>associated with
-the task</del> has already been retrieved.
-</p>
-
-<p><ins>
-<i>Error conditions:</i> <tt>future_already_retrieved</tt> if the <tt>future</tt> associated with 
-the task has already been retrieved. 
-</ins></p>
-<p>
-<ins><i>Postcondition:</i> The returned object and <tt>*this</tt> share the associated task.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Keep in Review status pending Detlef's forthcoming paper on futures.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add after p13 30.6.5 [futures.promise]:
-</p>
-
-<blockquote><pre>
-unique_future&lt;R&gt; get_future();
-</pre>
-<blockquote>
-<p>
--13- ...
-</p>
-<p>
-<i>Postcondition:</i> <tt>*this</tt> has no associated state.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1054"></a>1054. <tt>forward</tt> broken</h3>
-<p><b>Section:</b> 20.2.4 [forward] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward">issues</a> in [forward].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-This is a placeholder issue to track the fact that we (well I) put the standard
-into an inconsistent state by requesting that we accept
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>
-except for the proposed changes to [forward].
-</p>
-
-<p>
-There will exist in the post meeting mailing
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2835.html">N2835</a>
-which in its current state reflects the state of affairs prior to the Summit
-meeting.  I hope to update it in time for the post Summit mailing, but as I write
-this issue I have not done so yet.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-
-<blockquote><p>
-Move to Open, awaiting the promised paper.
-</p></blockquote>
-
-<p><i>[
-2009-08-02 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-My current preferred solution is:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-struct __base_type
-{
-   typedef typename remove_cv&lt;typename remove_reference&lt;T&gt;::type&gt;::type type;
-};
-
-template &lt;class T, class U,
-   class = typename enable_if&lt;
-       !is_lvalue_reference&lt;T&gt;::value ||
-        is_lvalue_reference&lt;T&gt;::value &amp;&amp;
-        is_lvalue_reference&lt;U&gt;::value&gt;::type,
-   class = typename enable_if&lt;
-        is_same&lt;typename __base_type&lt;T&gt;::type,
-                typename __base_type&lt;U&gt;::type&gt;::value&gt;::type&gt;
-inline
-T&amp;&amp;
-forward(U&amp;&amp; t)
-{
-   return static_cast&lt;T&amp;&amp;&gt;(t);
-}
-</pre></blockquote>
-
-<p>
-This has been tested by Bill, Jason and myself.
-</p>
-
-<p>
-It allows the following lvalue/rvalue casts:
-</p>
-
-<ol>
-<li>
-Cast an lvalue <tt>t</tt> to an lvalue <tt>T</tt> (identity).
-</li>
-<li>
-Cast an lvalue <tt>t</tt> to an rvalue <tt>T</tt>.
-</li>
-<li>
-Cast an rvalue <tt>t</tt> to an rvalue <tt>T</tt> (identity).
-</li>
-</ol>
-
-<p>
-It disallows:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-Cast an rvalue <tt>t</tt> to an lvalue <tt>T</tt>.
-</li>
-<li>
-Cast one type <tt>t</tt> to another type <tt>T</tt> (such as <tt>int</tt> to <tt>double</tt>).
-</li>
-</ol>
-
-<p>
-"a." is disallowed as it can easily lead to dangling references.
-"b." is disallowed as this function is meant to only change the lvalue/rvalue
-characteristic of an expression.
-</p>
-
-<p>
-Jason has expressed concern that "b." is not dangerous and is useful in contexts
-where you want to "forward" a derived type as a base type.  I find this use case
-neither dangerous, nor compelling.  I.e. I could live with or without the "b."
-constraint.  Without it, forward would look like:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class U,
-   class = typename enable_if&lt;
-       !is_lvalue_reference&lt;T&gt;::value ||
-        is_lvalue_reference&lt;T&gt;::value &amp;&amp;
-        is_lvalue_reference&lt;U&gt;::value&gt;::type&gt;
-inline
-T&amp;&amp;
-forward(U&amp;&amp; t)
-{
-   return static_cast&lt;T&amp;&amp;&gt;(t);
-}
-</pre></blockquote>
-
-<p>
-Or possibly:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class U,
-   class = typename enable_if&lt;
-       !is_lvalue_reference&lt;T&gt;::value ||
-        is_lvalue_reference&lt;T&gt;::value &amp;&amp;
-        is_lvalue_reference&lt;U&gt;::value&gt;::type,
-   class = typename enable_if&lt;
-        is_base_of&lt;typename __base_type&lt;U&gt;::type,
-                   typename __base_type&lt;T&gt;::type&gt;::value&gt;::type&gt;
-inline
-T&amp;&amp;
-forward(U&amp;&amp; t)
-{
-   return static_cast&lt;T&amp;&amp;&gt;(t);
-}
-</pre></blockquote>
-
-
-<p>
-The "promised paper" is not in the post-Frankfurt mailing only because I'm waiting
-for the non-concepts draft.  But I'm hoping that by adding this information here
-I can keep people up to date.
-</p>
-</blockquote>
-
-<p><i>[
-2009-08-02 David adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>forward</tt> was originally designed to do one thing: perfect forwarding.
-That is, inside a function template whose actual argument can be a const
-or non-const lvalue or rvalue, restore the original "rvalue-ness" of the
-actual argument:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-void f(T&amp;&amp; x)
-{
-    // x is an lvalue here.  If the actual argument to f was an
-    // rvalue, pass static_cast&lt;T&amp;&amp;&gt;(x) to g; otherwise, pass x.
-    g( forward&lt;T&gt;(x) );
-}
-</pre></blockquote>
-
-<p>
-Attempting to engineer <tt>forward</tt> to accomodate uses other than perfect
-forwarding dilutes its idiomatic meaning.  The solution proposed here
-declares that <tt>forward&lt;T&gt;(x)</tt> means nothing more than <tt>static_cast&lt;T&amp;&amp;&gt;(x)</tt>,
-with a patchwork of restrictions on what <tt>T</tt> and <tt>x</tt> can be that can't be
-expressed in simple English.
-</p>
-
-<p>
-I would be happy with either of two approaches, whose code I hope (but
-can't guarantee) I got right.
-</p>
-
-<ol>
-<li>
-<p>
-Use a simple definition of <tt>forward</tt> that accomplishes its original
-purpose without complications to accomodate other uses:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class U&gt;
-T&amp;&amp; forward(U&amp; x)
-{
-    return static_cast&lt;T&amp;&amp;&gt;(x);
-}
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Use a definition of <tt>forward</tt> that protects the user from as many
-potential mistakes as possible, by actively preventing <em>all</em> other
-uses:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class U&gt;
-boost::enable_if_c&lt;
-    // in forward&lt;T&gt;(x), x is a parameter of the caller, thus an lvalue
-    is_lvalue_reference&lt;U&gt;::value
-    // in caller's deduced T&amp;&amp; argument, T can only be non-ref or lvalue ref
-    &amp;&amp; !is_rvalue_reference&lt;T&gt;::value
-    // Must not cast cv-qualifications or do any type conversions
-    &amp;&amp; is_same&lt;T&amp;,U&amp;&gt;::value
-    , T&amp;&amp;&gt;::type forward(U&amp;&amp; a)
-{
-    return static_cast&lt;T&amp;&amp;&gt;(a);
-}
-</pre></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[
-2009-09-27 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-A paper,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2951.html">N2951</a>,
-is available which compares several implementations (including David's) with respect to several
-use cases (including Jason's) and provides wording for one implementation.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2951.html">N2951</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1055"></a>1055. Provide a trait that returns the underlying type of an enumeration type</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 98 [CD1]</b></p>
-
-<p>
-It would be useful to be able to determine the underlying
-type of an arbitrary enumeration type. This would allow
-safe casting to an integral type (especially needed for
-scoped enums, which do not promote), and would allow
-use of <tt>numeric_limits</tt>. In general it makes generic
-programming with enumerations easier.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Pete observes (and Tom concurs)
-that the proposed resolution seems to require compiler support
-for its implementation,
-as it seems necessary to look at the range of values
-of the enumerated type.
-To a first approximation,
-a library solution could give an answer based on the size of the type.
-If the user has specialized <tt>numeric_limits</tt> for the enumerated type,
-then the library might be able to do better,
-but there is no such requirement.
-Keep status as Open
-and solicit input from CWG.
-</p></blockquote>
-
-<p><i>[
-2009-05-23 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Just to confirm that the BSI originator of this comment assumed it did
-indeed imply a compiler intrinsic.  Rather than request a Core extension, it
-seemed in keeping with that the type traits interface provides a library API
-to unspecified compiler features - where we require several other traits
-(e.g. <tt>has_trivial_*</tt>) to get the 'right' answer now, unlike in TR1.
-</p></blockquote>
-
-<p><i>[
-Addressed in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2947.html">N2947</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.htm">N2984</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new row to the table in 20.10.7.6 [meta.trans.other]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 41 -- Other transformations</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Comments</th>
-</tr>
-<tr>
-<td>
-<tt>template&lt;&nbsp;class&nbsp;T&nbsp;&gt; struct enum_base;</tt>
-</td>
-<td>
-<tt>T</tt> shall be an enumeration type (7.2 [dcl.enum])
-</td>
-<td>
-The member typedef <tt>type</tt> shall name the underlying type
-of the enum <tt>T</tt>.
-</td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1065"></a>1065. Allow inline namespaces within namespace <tt>std</tt> for implementations</h3>
-<p><b>Section:</b> 17.6.1.1 [contents] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#contents">issues</a> in [contents].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 168 [CD1]</b></p>
-<p>
-We should make it clear (either by note or normatively) that namespace
-<tt>std</tt> may contain inline namespaces, and that entities specified to be
-defined in std may in fact be defined in one of these inline namespaces.
-(If we're going to use them for versioning, eg when TR2 comes along,
-we're going to need that.)
-</p>
-
-<p>
-Replace "namespace std or namespaces nested within namespace std" with
-"namespace std or namespaces nested within namespace std or inline
-namespaces nested directly or indirectly within namespace std"
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-adopt UK words (some have reservations whether it is correct)
-</p></blockquote>
-
-<p><i>[
-2009-05-09 Alisdair improves the wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Bill believes there is strictly speaking no need to say that
-because no portable test can detect the difference.
-However he agrees that it doesn't hurt to say this.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.1.1 [contents] p2:
-</p>
-
-<blockquote><p>
-All library entities except macros, <tt>operator new</tt> and
-<tt>operator delete</tt> are defined within the namespace <tt>std</tt> or
-namespaces nested within namespace <tt>std</tt>.
-<ins>It is unspecified whether names declared in a specific namespace
-are declared directly in that namespace, or in an inline namespace inside
-that namespace. [<i>Footnote:</i> This gives implementers freedom to support
-multiple configurations of the library.]</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1066"></a>1066. Use <tt>[[noreturn]]</tt> attribute in the library</h3>
-<p><b>Section:</b> 18 [language.support] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 189 and JP 27 [CD1]</b></p>
-<p>
-The addition of the <tt>[[noreturn]]</tt> attribute to the language will be an
-important aid for static analysis tools.
-</p>
-
-<p>
-The following functions should be declared in C++ with the
-<tt>[[noreturn]]</tt> attribute: <tt>abort</tt> <tt>exit</tt>
-<tt>quick_exit</tt> <tt>terminate</tt> <tt>unexpected</tt>
-<tt>rethrow_exception</tt> <tt>throw_with_nested</tt>.
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Agreed.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 18.5 [support.start.term] p3:
-</p>
-
-<blockquote>
-<p>-2- ...</p>
-<pre>
-<ins>void</ins> abort <ins>[[noreturn]]</ins> (void)
-</pre>
-<p>-3- ...</p>
-<p>-6- ...</p>
-<pre>
-<ins>void</ins> exit<ins> [[noreturn]] </ins>(int status)
-</pre>
-<p>-7- ...</p>
-<p>-11- ...</p>
-<pre>
-void quick_exit<ins> [[noreturn]] </ins>(int status)
-</pre>
-<p>-12- ...</p>
-</blockquote>
-
-<p>
-Change the <tt>&lt;exception&gt;</tt> synopsis in 18.8 [support.exception]:
-</p>
-
-<blockquote><pre>
-void unexpected<ins> [[noreturn]] </ins>();
-...
-void terminate<ins> [[noreturn]] </ins>();
-...
-void rethrow_exception<ins> [[noreturn]] </ins>(exception_ptr p);
-...
-template &lt;class T&gt; void throw_with_nested<ins> [[noreturn]] </ins>(T&amp;&amp; t); <del>// [[noreturn]]</del>
-</pre></blockquote>
-
-<p>
-Change D.8.4 [unexpected]:
-</p>
-
-<blockquote><pre>
-void unexpected<ins> [[noreturn]] </ins>();
-</pre></blockquote>
-
-<p>
-Change 18.8.3.4 [terminate]:
-</p>
-
-<blockquote><pre>
-void terminate<ins> [[noreturn]] </ins>();
-</pre></blockquote>
-
-<p>
-Change 18.8.5 [propagation]:
-</p>
-
-<blockquote><pre>
-void rethrow_exception<ins> [[noreturn]] </ins>(exception_ptr p);
-</pre></blockquote>
-
-<p>
-In the synopsis of 18.8.6 [except.nested] and the definition area change:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt; void throw_with_nested<ins> [[noreturn]] </ins>(T&amp;&amp; t); <del>// [[noreturn]]</del>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1070"></a>1070. Ambiguous move overloads in function</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopsis in 20.9.12.2 [func.wrap.func] says:
-</p>
-
-<blockquote><pre>
-template&lt;Returnable R, CopyConstructible... ArgTypes&gt; 
-class function&lt;R(ArgTypes...)&gt;
-{
-    ...
-    template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes...&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type, R&gt; 
-      function(F); 
-    template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes...&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type, R&gt; 
-      function(F&amp;&amp;);
-    ...
-    template&lt;class F, Allocator Alloc&gt; function(allocator_arg_t, const Alloc&amp;, F); 
-    template&lt;class F, Allocator Alloc&gt; function(allocator_arg_t, const Alloc&amp;, F&amp;&amp;);
-    ...
-    template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes..&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type 
-      function&amp; operator=(F); 
-    template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes...&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type, R&gt; 
-      function&amp; operator=(F&amp;&amp;);
-    ...
-};
-</pre></blockquote>
-
-<p>
-Each of the 3 pairs above are ambiguous.  We need only one of each pair, and we
-could do it with either one.  If we choose the <tt>F&amp;&amp;</tt> version we
-need to bring <tt>decay</tt> into the definition to get the pass-by-value behavior.
-In the proposed wording I've gotten lazy and just used the pass-by-value signature.
-</p>
-
-<p><i>[
-2009-05-01 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-<a href="lwg-closed.html#1024">1024</a> modifies the second removed constructor.
-</p></blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We briefly discussed whether we ought support moveable function objects,
-but decided that should be a separate issue if someone cares to propose it.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis of 20.9.12.2 [func.wrap.func], and remove the associated definitions in
-20.9.12.2.1 [func.wrap.func.con]:
-</p>
-
-<blockquote><pre>
-template&lt;Returnable R, CopyConstructible... ArgTypes&gt; 
-class function&lt;R(ArgTypes...)&gt;
-{
-    ...
-    template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes...&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type, R&gt; 
-      function(F); 
-    <del>template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes...&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type, R&gt; 
-      function(F&amp;&amp;);</del>
-    ...
-    template&lt;class F, Allocator Alloc&gt; function(allocator_arg_t, const Alloc&amp;, F); 
-    <del>template&lt;class F, Allocator Alloc&gt; function(allocator_arg_t, const Alloc&amp;, F&amp;&amp;);</del>
-    ...
-    template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes..&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type 
-      function&amp; operator=(F); 
-    <del>template&lt;class F&gt; 
-      requires CopyConstructible&lt;F&gt; &amp;&amp; Callable&lt;F, ArgTypes...&gt; 
-            &amp;&amp; Convertible&lt;Callable&lt;F, ArgTypes...&gt;::result_type, R&gt; 
-      function&amp; operator=(F&amp;&amp;);</del>
-    ...
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1071"></a>1071. <tt>is_bind_expression</tt> should derive from <tt>integral_constant&lt;bool&gt;</tt></h3>
-<p><b>Section:</b> 20.9.10.1 [func.bind.isbind] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.isbind">issues</a> in [func.bind.isbind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Class template is_bind_expression 20.9.10.1 [func.bind.isbind]:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class T&gt; struct is_bind_expression {
-    static const bool value = see below;
-  };
-}
-</pre></blockquote>
-<p>
-<tt>is_bind_expression</tt> should derive from <tt>std::integral_constant&lt;bool&gt;</tt> like
-other similar trait types.
-</p>
-
-<p><i>[
-Daniel adds:
-]</i></p>
-
-<blockquote><p>
-We need the same thing for the trait <tt>is_placeholder</tt> as well.
-</p></blockquote>
-<p><i>[
-2009-03-22 Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We recommend this be deferred until after the next Committee Draft is issued.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-31 Peter adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I am opposed to the proposed resolution and to the premise of the issue
-in general. The traits's default definitions should NOT derive from
-<tt>integral_constant</tt>, because this is harmful, as it misleads people into
-thinking that <tt>is_bind_expression&lt;E&gt;</tt> always derives from
-<tt>integral_constant</tt>, whereas it may not.
-</p>
-<p>
-<tt>is_bind_expression</tt> and <tt>is_placeholder</tt> allow user
-specializations, and in fact, this is their primary purpose. Such user
-specializations may not derive from <tt>integral_constant</tt>, and the
-places where <tt>is_bind_expression</tt> and <tt>is_placeholder</tt> are
-used intentionally do not require such derivation.
-</p>
-<p>
-The long-term approach here is to switch to
-<tt>BindExpression&lt;E&gt;</tt> and <tt>Placeholder&lt;P&gt;</tt>
-explicit concepts, of course, but until that happens, I say leave them
-alone.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.  We are comfortable with requiring user specializations
-to derive from <tt>integral_constant</tt>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 20.9.10.1 [func.bind.isbind] change as indicated:
-</p>
-<blockquote><pre>
-namespace std {
- template&lt;class T&gt; struct is_bind_expression <ins>: integral_constant&lt;bool, <i>see below</i>&gt; { };</ins><del>{
-   static const bool value = <i>see below</i>;
- };</del>
-}
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.9.10.1 [func.bind.isbind]/2 change as indicated:
-</p>
-<blockquote><pre>
-<del>static const bool value;</del>
-</pre>
-<blockquote><p>
--2- <del><tt>true</tt> if <tt>T</tt> is a type returned from <tt>bind</tt>, <tt>false</tt> otherwise.</del>
-  <ins>If <tt>T</tt> is a type returned from <tt>bind</tt>, <tt>is_bind_expression&lt;T&gt;</tt> shall
-be publicly derived from
-        <tt>integral_constant&lt;bool, true&gt;</tt>, otherwise it shall be
-publicly derived from
-          <tt>integral_constant&lt;bool, false&gt;</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-In 20.9.10.2 [func.bind.isplace] change as indicated:
-</p>
-<blockquote><pre>
-namespace std {
- template&lt;class T&gt; struct is_placeholder <ins>: integral_constant&lt;int, <i>see below</i>&gt; { };</ins><del>{
-   static const int value = <i>see below</i>;
- };</del>
-}
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.9.10.2 [func.bind.isplace]/2 change as indicated:
-</p>
-<blockquote><pre>
-<del>static const int value;</del>
-</pre>
-<blockquote><p>
--2- <del>value is <tt>J</tt> if <tt>T</tt> is the type of <tt>std::placeholders::_J</tt>, 0 otherwise.</del>
-  <ins>If <tt>T</tt> is the type of <tt>std::placeholders::_J</tt>, <tt>is_placeholder&lt;T&gt;</tt>
-shall be publicly
-          derived from <tt>integral_constant&lt;int, J&gt;</tt> otherwise it shall
-be publicly derived
-          from <tt>integral_constant&lt;int, 0&gt;</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1073"></a>1073. Declaration of <tt>allocator_arg</tt> should be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 20.7 [memory] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#memory">issues</a> in [memory].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Declaration of <tt>allocator_arg</tt> should be <tt>constexpr</tt> to ensure constant
-initialization.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.  Move to Tentatively Ready.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.7 [memory] p2:
-</p>
-
-<blockquote><pre>
-// 20.8.1, allocator argument tag
-struct allocator_arg_t { };
-const<ins>expr</ins> allocator_arg_t allocator_arg = allocator_arg_t();
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1075"></a>1075. Scoped allocators are too complex</h3>
-<p><b>Section:</b> 20 [utilities], 23 [containers] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alan Talbot <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utilities">issues</a> in [utilities].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US 65 and US 74.1 [CD1]</b></p>
-
-<p>US 65:</p>
-
-<blockquote><p>
-Scoped allocators and allocator propagation traits add a small amount of
-utility at the cost of a great deal of machinery. The machinery is user
-visible, and it extends to library components that don't have any
-obvious connection to allocators, including basic concepts and simple
-components like <tt>pair</tt> and <tt>tuple</tt>.
-</p>
-
-<p>Suggested resolution:</p>
-
-<p>
-Sketch of proposed resolution: Eliminate scoped allocators, replace
-allocator propagation traits with a simple uniform rule (e.g. always
-propagate on copy and move), remove all mention of allocators from
-components that don't explicitly allocate memory (e.g. pair), and adjust
-container interfaces to reflect this simplification.
-</p>
-<p>
-Components that I propose eliminating include <tt>HasAllocatorType</tt>,
-<tt>is_scoped_allocator</tt>, <tt>allocator_propagation_map</tt>, <tt>scoped_allocator_adaptor</tt>,
-and <tt>ConstructibleAsElement</tt>.
-</p>
-</blockquote>
-
-<p>US 74.1:</p>
-
-<blockquote>
-<p>
-Scoped allocators represent a poor trade-off for standardization, since
-(1) scoped-allocator--aware containers can be implemented outside the
-C++ standard library but used with its algorithms, (2) scoped
-allocators only benefit a tiny proportion of the C++ community
-(since few C++ programmers even use today's allocators), and (3) all C++
-users, especially the vast majority of the C++ community that won't ever
-use scoped allocators are forced to cope with the interface complexity
-introduced by scoped allocators.
-</p>
-<p>
-In essence, the larger community will suffer to support a very small
-subset of the community who can already implement their own
-data structures outside of the standard library. Therefore, scoped
-allocators should be removed from the working paper.
-</p>
-<p>
-Some evidence of the complexity introduced by scoped allocators:
-</p>
-<blockquote>
-<p>
-20.3 [pairs], 20.4 [tuple]: Large increase in the
-number of pair and tuple constructors.
-</p>
-<p>
-23 [containers]: Confusing "AllocatableElement" requirements throughout.
-</p>
-</blockquote>
-<p>Suggested resolution:</p>
-
-<p>
-Remove support for scoped allocators from the working paper. This
-includes at least the following changes:
-</p>
-
-<blockquote>
-<p>
-Remove X [allocator.element.concepts]
-</p>
-<p>
-Remove 20.13 [allocator.adaptor]
-</p>
-<p>
-Remove  [construct.element]
-</p>
-<p>
-In Clause 23 [containers]: replace requirements naming the
-<tt>AllocatableElement</tt> concept with requirements naming <tt>CopyConstructible</tt>,
-<tt>MoveConstructible</tt>, <tt>DefaultConstructible</tt>, or <tt>Constructible</tt>, as
-appropriate.
-</p>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-Post Summit Alan moved from NAD to Open.
-]</i></p>
-
-
-<p><i>[
-2009-05-15 Ganesh adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The requirement <tt>AllocatableElement</tt> should not be replaced with
-<tt>Constructible</tt> on the <tt>emplace_xxx()</tt> functions as suggested. In the
-one-parameter case the <tt>Constructible</tt> requirement is not satisfied when
-the constructor is explicit (as per  [concept.map.fct], twelfth
-bullet) but we do want to allow explicit constructors in emplace, as the
-following example shows:
-</p>
-
-<blockquote><pre>
-vector&lt;shared_ptr&lt;int&gt;&gt; v;
-v.emplace_back(new int); <span style="color:#C80000">// should be allowed</span>
-</pre></blockquote>
-
-<p>
-If the issue is accepted and scoped allocators are removed, I suggest to
-add a new pair of concepts to  [concept.construct], namely:
-</p>
-
-<blockquote><pre>
-auto concept HasExplicitConstructor&lt;typename T, typename... Args&gt; {
- explicit T::T(Args...);
-}
-
-auto concept ExplicitConstructible&lt;typename T, typename... Args&gt;
- : HasExplicitConstructor&lt;T, Args...&gt;, NothrowDestructible&lt;T&gt;
-{ }
-</pre></blockquote>
-
-<p>
-We should then use <tt>ExplicitConstructible</tt> as the requirement for all
-<tt>emplace_xxx()</tt> member functions.
-</p>
-<p>
-For coherence and consistency with the similar concepts
-<tt>Convertible/ExplicitlyConvertible</tt>, we might also consider changing
-<tt>Constructible</tt> to:
-</p>
-
-<blockquote><pre>
-auto concept Constructible&lt;typename T, typename... Args&gt;
- : HasConstructor&lt;T, Args...&gt;, ExplicitConstructible&lt;T, Args...&gt;
-{ }
-</pre></blockquote>
-
-<p>
-Moreover, all emplace-related concepts in  [container.concepts]
-should also use <tt>ExplicitConstructible</tt> instead of <tt>Constructible</tt> in the
-definitions of their axioms. In fact the concepts in  [container.concepts] should be
-corrected even if the issue is not accepted.
-</p>
-<p>
-On the other hand, if the issue is not accepted, the scoped allocator
-adaptors should be fixed because the following code:
-</p>
-
-<blockquote><pre>
-template &lt;typename T&gt; using scoped_allocator = scoped_allocator_adaptor&lt;allocator&lt;T&gt;&gt;;
-
-vector&lt;shared_ptr&lt;int&gt;, scoped_allocator&lt;shared_ptr&lt;int&gt;&gt;&gt; v;
-v.emplace_back(new int); <span style="color:#C80000">// ops! doesn't compile</span>
-</pre></blockquote>
-
-<p>
-doesn't compile, as the member function <tt>construct()</tt> of the scoped
-allocator requires non-explicit constructors through concept
-<tt>ConstructibleWithAllocator</tt>. Fixing that is not difficult but probably
-more work than it's worth and is therefore, IMHO, one more reason in
-support of the complete removal of scoped allocators.
-</p>
-</blockquote>
-
-<p><i>[
-2009-06-09 Alan adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I reopened this issue because I did not think that these National Body
-comments were adequately addressed by marking them NAD. My understanding
-is that something can be marked NAD if it is clearly a misunderstanding
-or trivial, but a substantive issue that has any technical merit
-requires a disposition that addresses the concerns.
-</p>
-<p>
-The notes in the NB comment list (US 65 &amp; US 74.1) say that:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-this issue has not introduced any new arguments not previously discussed,
-</li>
-<li>
-the vote (4-9-3) was not a consensus for removing scoped allocators,
-</li>
-<li>
-the issue is resolved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2840.pdf">N2840</a>.
-</li>
-</ol>
-<p>
-My opinion is:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li>
-there are new arguments in both comments regarding concepts (which were
-not present in the library when the scoped allocator proposal was voted
-in),
-</li>
-<li>
-the vote was clearly not a consensus for removal, but just saying there
-was a vote does not provide a rationale,
-</li>
-<li>
-I do not believe that N2840 addresses these comments (although it does
-many other things and was voted in with strong approval).
-</li>
-</ol>
-
-<p>
-My motivation to open the issue was to ensure that the NB comments were
-adequately addressed in a way that would not risk a "no" vote on our
-FCD. If there are responses to the technical concerns raised, then
-perhaps they should be recorded. If the members of the NB who authored
-the comments are satisfied with N2840 and the other disposition remarks
-in the comment list, then I am sure they will say so. In either case,
-this issue can be closed very quickly in Frankfurt, and hopefully will
-have helped make us more confident of approval with little effort. If in
-fact there is controversy, my thought is that it is better to know now
-rather than later so there is more time to deal with it.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Scoped allocators have been revised significantly.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1079"></a>1079. UK-265: <code>RandomAccessIterator</code>'s <code>operator-</code> has nonsensical effects clause</h3>
-<p><b>Section:</b> 24.2.7 [random.access.iterators] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2009-03-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#random.access.iterators">issues</a> in [random.access.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 265</b></p>
-
-<p>UK-265:</p>
-<p>
-This effects clause is nonesense. It looks more like an axiom stating
-equivalence, and certainly an effects clause cannot change the state of
-two arguments passed by const reference
-</p>
-
-<p><i>[
-2009-09-18 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-For random access iterators, the definitions of <tt>(b-a)</tt> and
-<tt>(a&lt;b)</tt> are circular:
-</p>
-
-<p>
-From table Table 104 -- Random access iterator requirements:
-</p>
-
-<blockquote><pre>
-b - a :==&gt;  (a &lt; b) ? distance(a,b) : -distance(b,a)
-
-a &lt; b :==&gt;  b - a &gt; 0
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-02-13 Alisdair opens.
-]</i></p>
-
-
-<blockquote>
-<p>
-Looking again at LWG <a href="lwg-defects.html#1079">1079</a>, the wording in the issue no longer exists, and
-appears to be entirely an artefact of the concepts wording.
-</p>
-
-<p>
-This issue is currently on our Ready list (not even Tentative!) but I think it
-has to be pulled as there is no way to apply the resolution.
-</p>
-
-<p>
-Looking at the current paper, I think this issue is now "NAD, solved by the
-removal of concepts".  Unfortunately it is too late to poll again, so we will
-have to perform that review in Pittsburgh.
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-13 Daniel updates the wording to address the circularity problem.
-]</i></p>
-
-
-<blockquote>
-<p><i>[
-The previous wording is preserved here:
-]</i></p>
-
-<blockquote>
-
-<p>Modify 24.2.7 [random.access.iterators]p7-9 as follows:</p>
-
-<blockquote><pre>
-difference_type operator-(const X&amp; a, const X&amp; b);
-</pre>
-<blockquote><p>
-  -7- <i>Precondition</i>: there exists a value <code>n</code> of
-  <code>difference_type</code> such that <code>a == b + n</code>.
-  <p/>
-  -8- <del><i>Effects</i>: <code>b == a + (b - a)</code></del>
-  <p/>
-  -9- <i>Returns</i>: <del><code>(a &lt; b) ? distance(a,b) :
-  -distance(b,a)</code></del><ins><code>n</code></ins>
-</p></blockquote>
-</blockquote>
-
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify Table 105 in 24.2.7 [random.access.iterators]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 105 &mdash; Random access iterator requirements (in addition to
-bidirectional iterator)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td><tt>b - a</tt></td>
-<td><tt>Distance</tt></td>
-<td><tt><del>distance(a,b)</del></tt>
-<ins>return <tt>n</tt></ins></td>
-<td>pre: there exists a value <tt>n</tt> of <tt>Distance</tt> such that <tt>a +
-n == b</tt>. <tt>b == a + (b - a)</tt>.</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1088"></a>1088. <tt>std::promise</tt> should provide non-member <tt>swap</tt> overload</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 342 [CD1]</b></p>
-
-<p>
-<tt>std::promise</tt> is missing a non-member overload of <tt>swap</tt>. This is
-inconsistent with other types that provide a <tt>swap</tt> member function.
-</p>
-
-<p>
-Add a non-member overload <tt>void swap(promise&amp;&amp; x,promise&amp;&amp; y){ x.swap(y); }</tt>
-</p>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Create an issue. Move to review, attention: Howard. Detlef will also look into it.
-</p></blockquote>
-
-<p><i>[
-Post Summit Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 30.6.5 [futures.promise], before p.1, immediately after class template
-promise add:
-</p>
-<blockquote><pre>
-<ins>
-template &lt;class R&gt;
-void swap(promise&lt;R&gt;&amp; x, promise&lt;R&gt;&amp; y);
-</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-Change 30.6.5 [futures.promise]/10 as indicated (to fix a circular definition):
-</p>
-<blockquote>
-<p>
--10- <i>Effects:</i> <del>swap(*this, other)</del><ins>Swaps the associated state
-of <tt>*this</tt> and <tt>other</tt></ins>
-</p>
-<p>
-<ins><i>Throws:</i> Nothing.</ins>
-</p>
-</blockquote>
-</li>
-<li>
-<p>
-After the last paragraph in 30.6.5 [futures.promise] add the following
-prototype description:
-</p>
-<blockquote><pre>
-<ins>
-template &lt;class R&gt;
-void swap(promise&lt;R&gt;&amp; x, promise&lt;R&gt;&amp; y);
-</ins></pre>
-<blockquote>
-<p>
-<ins><i>Effects:</i> <tt>x.swap(y)</tt></ins>
-</p>
-<p>
-<ins><i>Throws:</i> Nothing.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1089"></a>1089. Unify "Throws: Nothing." specifications</h3>
-<p><b>Section:</b> 30 [thread] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread">issues</a> in [thread].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 76 [CD1]</b></p>
-
-<p>
-A description for "Throws: Nothing." are not unified.
-</p>
-
-<p>
-At the part without throw, "Throws: Nothing." should be described.
-</p>
-
-<p>
-Add "Throws: Nothing." to the following.
-</p>
-
-<ul>
-<li>
-30.3.1.6 [thread.thread.static] p1
-</li>
-<li>
-30.4.2.1 [thread.lock.guard] p4
-</li>
-<li>
-30.4.2.2.1 [thread.lock.unique.cons] p6
-</li>
-<li>
-30.5.1 [thread.condition.condvar] p7 and p8
-</li>
-<li>
-30.5.2 [thread.condition.condvarany] p6, p7, p19, p21 and p25
-</li>
-</ul>
-
-<p><i>[
-Summit:
-]</i></p>
-
-<blockquote><p>
-Pass on to editor.
-</p></blockquote>
-
-<p><i>[
-Post Summit:  Editor declares this non-editorial.
-]</i></p>
-
-
-<p><i>[
-2009-08-01 Howard provided wording:
-]</i></p>
-
-
-<blockquote>
-
-<p>
-The definition of "<i>Throws:</i> Nothing." that I added is probably going to
-be controversial, but I beg you to consider it seriously.
-</p>
-
-<blockquote>
-<p>
-In C++ there are three "flow control" options for a function:
-</p>
-
-<ol>
-<li>
-It can return, either with a value, or with <tt>void</tt>.
-</li>
-<li>
-It can call a function which never returns, such as <tt>std::exit</tt> or
-<tt>std::terminate</tt>.
-</li>
-<li>
-It can throw an exception.
-</li>
-</ol>
-<p>
-The above list can be abbreviated with:
-</p>
-<ol>
-<li><b>R</b>eturns.</li>
-<li><b>E</b>nds program.</li>
-<li><b>T</b>hrows exception.</li>
-</ol>
-
-<p>
-In general a function can have the behavior of any of these 3, or any combination
-of any of these three, depending upon run time data.
-</p>
-
-<ol>
-<li><b>R</b></li>
-<li><b>E</b></li>
-<li><b>T</b></li>
-<li><b>RE</b></li>
-<li><b>RT</b></li>
-<li><b>ET</b></li>
-<li><b>RET</b></li>
-</ol>
-
-<p>
-A function with no throw spec, and no documentation, is in general a <b>RET</b>
-function.  It may return, it may end the program, or it may throw.  When we
-specify a function with an empty throw spec:
-</p>
-
-<blockquote><pre>
-void f() throw();
-</pre></blockquote>
-
-<p>
-We are saying that <tt>f()</tt> is an <b>RE</b> function:  It may return or end
-the program, but it will not throw.
-</p>
-
-<p>
-I posit that there are very few places in the library half of the standard
-where we intend for functions to be able to end the program (call <tt>terminate</tt>).
-And none of those places where we do say <tt>terminate</tt> could be called,
-do we currently say "<i>Throws:</i> Nothing.".
-</p>
-
-<p>
-I believe that if we define "<i>Throws:</i> Nothing." to mean <b>R</b>,
-we will both clarify many, many places in the standard, <em>and</em> give us a
-good rationale for choosing between "<i>Throws:</i> Nothing." (<b>R</b>)
-and <tt>throw()</tt> (<b>RE</b>) in the future.  Indeed, this may give us motivation
-to change several <tt>throw()</tt>s to "<i>Throws:</i> Nothing.".
-</p>
-</blockquote>
-
-<p>
-I did not add the following changes as JP 76 requested as I believe we want to
-allow these functions to throw:
-</p>
-
-<blockquote>
-<p>
-Add a paragraph under 30.4.2.1 [thread.lock.guard] p4:
-</p>
-
-<blockquote><pre>
-explicit lock_guard(mutex_type&amp; m);
-</pre>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<p>
-Add a paragraph under 30.4.2.2.1 [thread.lock.unique.cons] p6:
-</p>
-
-<blockquote><pre>
-explicit unique_lock(mutex_type&amp; m);
-</pre>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<p>
-Add a paragraph under 30.5.2 [thread.condition.condvarany] p19, p21 and p25:
-</p>
-
-<blockquote><pre>
-template &lt;class Lock, class Rep, class Period&gt; 
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Lock, class Duration, class Predicate&gt; 
-  bool wait_until(Lock&amp; lock, const chrono::time_point&lt;Clock, Duration&gt;&amp; rel_time, Predicate pred);
-</pre>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Lock, class Rep, class Period, class Predicate&gt; 
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, Predicate pred);
-</pre>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Defer pending further developments with exception restriction annotations.
-</p></blockquote>
-
-<p><i>[
-2010-02-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-24 Pete moved to Open:
-]</i></p>
-
-
-<blockquote><p>
-A "<i>Throws:</i> Nothing" specification is not the place to say that a function
-is not allowed to call <tt>exit()</tt>. While I agree with the thrust of the
-proposed resolution, "doesn't throw exceptions" is a subset of "always returns
-normally". If it's important to say that most library functions don't call
-<tt>exit()</tt>, say so.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready except for the added paragraph to 17.5.1.4 [structure.specifications].
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<p>
-Add a paragraph under 30.3.1.6 [thread.thread.static] p1:
-</p>
-
-<blockquote><pre>
-unsigned hardware_concurrency();
-</pre>
-
-<p>
--1- <i>Returns:</i> ...
-</p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<p>
-Add a paragraph under 30.5.1 [thread.condition.condvar] p7 and p8:
-</p>
-
-<blockquote>
-<p>
-<i>[Informational, not to be incluced in the WP: The POSIX spec allows only:</i>
-</p>
-<dl>
-<dt><i>[EINVAL]</i></dt>
-<dd><i>The value <tt>cond</tt> does not refer to an initialized condition variable. &mdash; end informational]</i></dd>
-</dl>
-
-<pre>
-void notify_one();
-</pre>
-
-<p>
--7- <i>Effects:</i> ...
-</p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<blockquote><pre>
-void notify_all();
-</pre>
-
-<p>
--8- <i>Effects:</i> ...
-</p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-
-<p>
-Add a paragraph under 30.5.2 [thread.condition.condvarany] p6 and p7:
-</p>
-
-<blockquote>
-<pre>
-void notify_one();
-</pre>
-
-<p>
--6- <i>Effects:</i> ...
-</p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-<blockquote><pre>
-void notify_all();
-</pre>
-
-<p>
--7- <i>Effects:</i> ...
-</p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1090"></a>1090. Missing description of <tt>packaged_task</tt> member <tt>swap</tt>,  missing non-member <tt>swap</tt></h3>
-<p><b>Section:</b> 30.6.9 [futures.task] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task">issues</a> in [futures.task].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class template <tt>packaged_task</tt> in 30.6.9 [futures.task] shows a member <tt>swap</tt>
-declaration, but misses to document it's effects (No prototype provided). Further on this class
-misses to provide a non-member swap.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair notes that paragraph 2 of the proposed resolution has already been
-applied in the current Working Draft.
-</p>
-<p>
-We note a pending <tt>future</tt>-related paper by Detlef;
-we would like to wait for this paper before proceeding.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-24 Daniel removed part 2 of the proposed resolution.
-]</i></p>
-
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready, removing bullet 3 from the proposed
-resolution but keeping the other two bullets.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-In 30.6.9 [futures.task], immediately after the definition of class
-template packaged_task add:
-</p>
-<blockquote><pre>
-<ins>
-template&lt;class R, class... Argtypes&gt;
-void swap(packaged_task&lt;R(ArgTypes...)&gt;&amp;, packaged_task&lt;R(ArgTypes...)&gt;&amp;);
-</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-At the end of 30.6.9 [futures.task] (after p. 20), add the following
-prototype description:
-</p>
-
-<blockquote><pre>
-<ins>
-template&lt;class R, class... Argtypes&gt;
-void swap(packaged_task&lt;R(ArgTypes...)&gt;&amp; x, packaged_task&lt;R(ArgTypes...)&gt;&amp; y);
-</ins></pre>
-<blockquote>
-<p><ins>
-<i>Effects:</i> <tt>x.swap(y)</tt>
-</ins></p>
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1093"></a>1093. Multiple definitions for <tt>random_shuffle</tt> algorithm</h3>
-<p><b>Section:</b> 25.3.12 [alg.random.shuffle] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-03-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.random.shuffle">issues</a> in [alg.random.shuffle].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-There are a couple of issues with the declaration of the <tt>random_shuffle</tt>
-algorithm accepting a random number engine.
-</p>
-
-<ol style="list-style-type:lower-roman">
-<li>
-The Iterators must be shuffle iterators, yet this requirement is missing.
-</li>
-<li>
-The <tt>RandomNumberEngine</tt> concept is now provided by the random number
-library
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2836.pdf">n2836</a>)
-and the placeholder should be removed.
-</li>
-</ol>
-
-<p><i>[
-2009-05-02 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-this issue completes adding necessary requirement to the
-third new <tt>random_shuffle</tt> overload. The current suggestion is:
-</p>
-
-<blockquote><pre>
-template&lt;RandomAccessIterator Iter, UniformRandomNumberGenerator Rand&gt;
-requires ShuffleIterator&lt;Iter&gt;
-void random_shuffle(Iter first, Iter last, Rand&amp;&amp; g);
-</pre></blockquote>
-
-<p>
-IMO this is still insufficient and I suggest to add the requirement
-</p>
-<blockquote><pre>
-Convertible&lt;Rand::result_type, Iter::difference_type&gt;
-</pre></blockquote>
-<p>
-to the list (as the two other overloads already have).
-</p>
-
-<p>
-Rationale:
-</p>
-
-<blockquote>
-<p>
-Its true that this third overload is somewhat different from the remaining
-two. Nevertheless we know from <tt>UniformRandomNumberGenerator</tt>, that
-it's <tt>result_type</tt> is an integral type and that it satisfies
-<tt>UnsignedIntegralLike&lt;result_type&gt;</tt>.
-</p>
-<p>
-To realize it's designated task, the algorithm has to invoke the
-<tt>Callable</tt> aspect of <tt>g</tt> and needs to perform some algebra involving
-it's <tt>min()/max()</tt> limits to compute another index value that
-at this point is converted into <tt>Iter::difference_type</tt>. This is so,
-because 24.2.7 [random.access.iterators] uses this type as argument
-of it's algebraic operators. Alternatively consider the equivalent
-iterator algorithms in 24.4.4 [iterator.operations] with the same result.
-</p>
-<p>
-This argument leads us to the conclusion that we also need
-<tt>Convertible&lt;Rand::result_type, Iter::difference_type&gt;</tt> here.
-</p>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair notes that point (ii) has already been addressed.
-</p>
-<p>
-We agree with the proposed resolution to point (i)
-with Daniel's added requirement.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-06-05 Daniel updated proposed wording as recommended in Batavia.
-]</i></p>
-
-
-<p><i>[
-2009-07-28 Alisdair adds:
-]</i></p>
-
-
-<blockquote><p>
-Revert to Open, with a note there is consensus on direction but the
-wording needs updating to reflect removal of concepts.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Leave Open, Walter to work on it.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>, addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3056.pdf">N3056</a>.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3056.pdf">N3056</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change in  [algorithms.syn] and 25.3.12 [alg.random.shuffle]:
-</p>
-
-<blockquote><pre>
-<del>concept UniformRandomNumberGenerator&lt;typename Rand&gt; { }</del>
-template&lt;RandomAccessIterator Iter, UniformRandomNumberGenerator Rand&gt;
-  <ins>requires ShuffleIterator&lt;Iter&gt; &amp;&amp;
-  Convertible&lt;Rand::result_type, Iter::difference_type&gt;</ins>
-  void random_shuffle(Iter first, Iter last, Rand&amp;&amp; g);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1094"></a>1094. Replace "<em>unspecified-bool-type</em>" by "<tt>explicit operator bool() const</tt>" in I/O library</h3>
-<p><b>Section:</b> 27.5.5.4 [iostate.flags] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2009-03-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostate.flags">issues</a> in [iostate.flags].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP 65 and JP 66 [CD1]</b></p>
-
-<p>
-Switch from "unspecified-bool-type" to "explicit operator bool() const". 
-</p>
-
-<p>
-Replace <tt>operator unspecified-bool-type() const;</tt>" with <tt>explicit operator bool() const;</tt>
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-We agree with the proposed resolution.
-Move to Review.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopis in 27.5.5 [ios]:
-</p>
-
-<blockquote><pre>
-<ins>explicit</ins> operator <del><i>unspecified-bool-type</i></del> <ins>bool</ins>() const;
-</pre></blockquote>
-
-<p>
-Change 27.5.5.4 [iostate.flags]:
-</p>
-
-<blockquote><pre>
-<ins>explicit</ins> operator <del><i>unspecified-bool-type</i></del> <ins>bool</ins>() const;
-</pre>
-
-<blockquote>
-<p>
--1- <i>Returns:</i> <ins><tt>!fail()</tt></ins> <del>If <tt>fail()</tt> then a value that will evaluate
-false in a boolean context; otherwise a value that will evaluate true in
-a boolean context. The value type returned shall not be convertible to
-int.</del>
-</p>
-<p>
-<del>[<i>Note:</i> This conversion can be used in contexts where a bool is expected
-(e.g., an <tt>if</tt> condition); however, implicit conversions (e.g.,
-to <tt>int</tt>) that can occur with <tt>bool</tt> are not allowed,
-eliminating some sources of user error. One possible implementation
-choice for this type is pointer-to-member. <i>-- end note</i>]</del>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1095"></a>1095. <i>Shared objects and the library</i> wording unclear</h3>
-<p><b>Section:</b> 17.6.4.10 [res.on.objects] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-03-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.objects">issues</a> in [res.on.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2775.htm">N2775</a>,
-<i>Small library thread-safety revisions</i>, among other changes, removed a note from
-17.6.4.10 [res.on.objects] that read:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> This prohibition against concurrent non-const access means that
-modifying an object of a standard library type shared between threads
-without using a locking mechanism may result in a data race. <i>--end note</i>.]
-</p></blockquote>
-
-<p>
-That resulted in wording which is technically correct but can only be
-understood by reading the lengthy and complex 17.6.5.9 [res.on.data.races]
-Data race avoidance. This has the effect of making
-17.6.4.10 [res.on.objects] unclear, and has already resulted in a query
-to the LWG reflector. See c++std-lib-23194.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-The proposed wording seems to need a bit of tweaking
-("really bad idea" isn't quite up to standardese).
-We would like feedback
-as to whether the original Note's removal was intentional.
-</p>
-<p>
-Change the phrase "is a really bad idea"
-to "risks undefined behavior" and
-move to Review status.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Note: Change to read: "Modifying...", Delete 'thus', move to Ready
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.4.10 [res.on.objects] as indicated:
-</p>
-
-<blockquote>
-<p>
-The behavior of a program is undefined if calls to standard library
-functions from different threads may introduce a data race. The
-conditions under which this may occur are specified in 17.6.4.7.
-</p>
-<p><ins>
-[<i>Note:</i> Modifying an object of a standard library type shared between
-threads risks undefined behavior unless objects of the type are explicitly
-specified as being sharable without data races or the user supplies a
-locking mechanism. <i>--end note</i>]
-</ins></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1097"></a>1097. #define __STDCPP_THREADS</h3>
-<p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.types">issues</a> in [support.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE 18</b></p>
-
-<p>
-Freestanding implementations do not (necessarily) have
-  support for multiple threads (see 1.10 [intro.multithread]).
-  Applications and libraries may want to optimize for the
-  absence of threads.  I therefore propose a preprocessor
-  macro to indicate whether multiple threads can occur.
-</p>
-
-<p>
-There is ample prior implementation experience for this
-  feature with various spellings of the macro name.  For
-  example, gcc implicitly defines <tt>_REENTRANT</tt>
-  if multi-threading support is selected on the compiler
-  command-line.
-</p>
-
-<p>
-While this is submitted as a library issue, it may be more
-  appropriate to add the macro in 16.8 cpp.predefined in the
-  core language.
-</p>
-
-<p>
-See also
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2693.html">N2693</a>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We agree with the issue, and believe it is properly a library issue.
-</p>
-<p>
-We prefer that the macro be conditionally defined
-as part of the <tt>&lt;thread&gt;</tt> header.
-</p>
-<p>
-Move to Review.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-02-25 Pete moved to Open:
-]</i></p>
-
-
-<blockquote>
-<p>
-The proposed resolution adds a feature-test macro named
-<tt>__STDCPP_THREADS</tt>, described after the following new text:
-</p>
-
-<blockquote><p>
-The standard library defines the following macros; no explicit prior inclusion
-of any header file is necessary.
-</p></blockquote>
-
-<p>
-The correct term here is "header", not "header file". But that's minor. The real
-problem is that library entities are always defined in headers. If
-<tt>__STDCPP_THREADS</tt> is defined without including any header it's part of
-the language and belongs with the other predefined macros in the Preprocessor
-clause.
-</p>
-
-<p>
-Oddly enough, the comments from Batavia say "We prefer that the macro be
-conditionally defined as part of the <tt>&lt;thread&gt;</tt> header." There's no
-mention of a decision to change this.
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-26 Ganesh updates wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Adopt Ganesh's wording and move to Review.
-]</i></p>
-
-
-<p><i>[
-2010-03-08 Pete adds:
-]</i></p>
-
-
-<blockquote><p>
-Most macros we have begin and end with with double underbars, this one
-only begins with double underbars.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Ganesh's wording adopted and moved to Ready for Pittsburgh.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 17.6.1.3 [compliance]/3:
-</p>
-
-<blockquote><p>
-3 The supplied version of the header <tt>&lt;cstdlib&gt;</tt> shall
-declare at least the functions <tt>abort()</tt>, <tt>atexit()</tt>, and
-<tt>exit()</tt> (18.5). <ins>The supplied version of the header
-<tt>&lt;thread&gt;</tt> either shall meet the same requirements as for a
-hosted implementation or including it shall have no effect.</ins> The
-other headers listed in this table shall meet the same requirements as
-for a hosted implementation.
-</p></blockquote>
-
-<p>
-Add the following line to table 15:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 15 &mdash; C++ headers for freestanding implementations</caption>
-
-<tr>
-<th>Subclause</th>
-<th>Header(s)</th>
-</tr>
-
-<tr>
-<td colspan="2">...</td>
-</tr>
-
-<tr>
-<td><ins>30.3 [thread.threads] Threads</ins></td>
-<td><ins><tt>&lt;thread&gt;</tt></ins></td>
-</tr>
-
-</table>
-
-</blockquote>
-
-<p>
-Add to the <tt>&lt;thread&gt;</tt> synopsis in 30.3 [thread.threads]/1 the line:
-</p>
-
-<blockquote><pre>
-namespace std {
-
-<ins>#define __STDCPP_THREADS __cplusplus</ins>
-
-  class thread;
-  ...
-</pre></blockquote>
-
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1098"></a>1098. definition of <tt>get_pointer_safety()</tt></h3>
-<p><b>Section:</b> 20.7.4 [util.dynamic.safety] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.dynamic.safety">issues</a> in [util.dynamic.safety].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE 18</b></p>
-
-<p>
- In 20.7.4 [util.dynamic.safety], <tt>get_pointer_safety()</tt> purports
-to define behavior for
- non-safely derived pointers (3.7.4.3 [basic.stc.dynamic.safety]).  However,
- the cited core-language section in paragraph 4 specifies undefined behavior
- for the use of such pointer values.  This seems an unfortunate near-contradiction.
- I suggest to specify the term <i>relaxed pointer safety</i> in
- the core language section and refer to it from the library description.
- This issue deals with the library part, the corresponding core issue (c++std-core-13940)
- deals with the core modifications.
-</p>
-
-<p>
-See also
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2693.html">N2693</a>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We recommend if this issue is to be moved,
-the issue be moved concurrently with the cited Core issue.
-</p>
-<p>
-We agree with the intent of the proposed resolution.
-We would like input from garbage collection specialists.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-The core issue is 853 and is in Ready status.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.7.4 [util.dynamic.safety] p16, replace the description of
-<tt>get_pointer_safety()</tt> with:
-</p>
-
-<blockquote>
-<p>
-<tt>pointer_safety get_pointer_safety();</tt>
-</p>
-<blockquote>
-<p>
-<del><i>Returns:</i> an enumeration value indicating the implementation's treatment
-of pointers that are not safely derived (3.7.4.3). Returns
-<tt>pointer_safety::relaxed</tt> if pointers that are not safely derived will be
-treated the same as pointers that are safely derived for the duration of
-the program. Returns <tt>pointer_safety::preferred</tt> if pointers that are not
-safely derived will be treated the same as pointers that are safely
-derived for the duration of the program but allows the implementation to
-hint that it could be desirable to avoid dereferencing pointers that are
-not safely derived as described. [<i>Example:</i> <tt>pointer_safety::preferred</tt>
-might be returned to detect if a leak detector is running to avoid
-spurious leak reports. -- <i>end note</i>] Returns <tt>pointer_safety::strict</tt> if
-pointers that are not safely derived might be treated differently than
-pointers that are safely derived.</del>
-</p>
-<p><ins>
-<i>Returns:</i> Returns <tt>pointer_safety::strict</tt> if the implementation has
-   strict pointer safety (3.7.4.3 [basic.stc.dynamic.safety]). It is
-   implementation-defined whether <tt>get_pointer_safety</tt> returns
-   <tt>pointer_safety::relaxed</tt> or <tt>pointer_safety::preferred</tt> if the
-   implementation has relaxed pointer safety
-   (3.7.4.3 [basic.stc.dynamic.safety]).<sup>Footnote</sup>
-</ins></p>
-
-<p><ins>
-<i>Throws:</i> nothing
-</ins></p>
-
-<p><ins>
-Footnote) <tt>pointer_safety::preferred</tt> might be returned to indicate to the
-   program that a leak detector is running so that the program can avoid
-   spurious leak reports.
-</ins>
-</p>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1100"></a>1100. <tt>auto_ptr</tt> to <tt>unique_ptr</tt> conversion</h3>
-<p><b>Section:</b> 20.8.1.2.1 [unique.ptr.single.ctor] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.ctor">issues</a> in [unique.ptr.single.ctor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Message c++std-lib-23182 led to a discussion in which several people
-expressed interest in being able to convert an <tt>auto_ptr</tt> to a
-<tt>unique_ptr</tt> without the need to call <tt>release</tt>.  Below is
-wording to accomplish this.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete believes it not a good idea to separate parts of a class's definition.
-Therefore, if we do this,
-it should be part of <tt>unique-ptr</tt>'s specification.
-</p>
-<p>
-Alisdair believes the lvalue overload may be not necessary.
-</p>
-<p>
-Marc believes it is more than just sugar,
-as it does ease the transition to <tt>unique-ptr</tt>.
-</p>
-<p>
-We agree with the resolution as presented.
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Moved from Tentatively Ready to Open only because the wording needs to be
-tweaked for concepts removal.
-</p></blockquote>
-
-<p><i>[
-2009-08-01 Howard deconceptifies wording:
-]</i></p>
-
-
-<blockquote><p>
-I also moved the change from X [depr.auto.ptr]
-to 20.8.1.2 [unique.ptr.single] per the Editor's request
-in Batavia (as long as I was making changes anyway).  Set back
-to Review.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-03-14 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-We moved
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>
-to the formal motions page in Pittsburgh which should obsolete this issue.  I've
-moved this issue to NAD Editorial, solved by N3073.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.8.1.2 [unique.ptr.single]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class D&gt;
-class unique_ptr
-{
-public:
-<ins>    template &lt;class U&gt;
-      unique_ptr(auto_ptr&lt;U&gt;&amp; u);
-    template &lt;class U&gt;
-      unique_ptr(auto_ptr&lt;U&gt;&amp;&amp; u);</ins>
-};
-</pre></blockquote>
-
-<p>
-Add to 20.8.1.2.1 [unique.ptr.single.ctor]:
-</p>
-
-<blockquote><pre>
-template &lt;class U&gt;
-  unique_ptr(auto_ptr&lt;U&gt;&amp; u);
-template &lt;class U&gt;
-  unique_ptr(auto_ptr&lt;U&gt;&amp;&amp; u);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs a <tt>unique_ptr</tt> with <tt>u.release()</tt>.
-</p>
-
-<p>
-<i>Postconditions:</i> <tt>get() == </tt> the value <tt>u.get()</tt> had before
-the construciton, modulo any required offset adjustments resulting from the cast from
-<tt>U*</tt> to <tt>T*</tt>.  <tt>u.get() == nullptr</tt>.
-</p>
-
-<p>
-<i>Throws:</i> nothing.
-</p>
-
-<p>
-<i>Remarks:</i> <tt>U*</tt> shall be implicitly convertible to <tt>T*</tt> and
-<tt>D</tt> shall be the same type as <tt>default_delete&lt;T&gt;</tt>, else these
-constructors shall not participate in overload resolution.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1103"></a>1103. <tt>system_error</tt> constructor postcondition overly strict</h3>
-<p><b>Section:</b> 19.5.6.2 [syserr.syserr.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-19.5.6.2 [syserr.syserr.members] says:
-</p>
-
-<blockquote><pre>
-system_error(error_code ec, const string&amp; what_arg);
-</pre>
-<blockquote>
-<p>
-<i>Effects:</i> Constructs an object of class <tt>system_error</tt>.
-</p>
-<p>
-<i>Postconditions:</i> <tt>code() == ec</tt> and <tt>strcmp(runtime_error::what(), what_arg.c_str()) == 0</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-However the intent is for:
-</p>
-
-<blockquote><pre>
-std::system_error se(std::errc::not_a_directory, "In FooBar");
-...
-se.what();  <span style="color:#C80000">// returns something along the lines of:</span>
-            <span style="color:#C80000">//   "In FooBar: Not a directory"</span>
-</pre></blockquote>
-
-<p>
-The way the constructor postconditions are set up now, to achieve both
-conformance, and the desired intent in the <tt>what()</tt> string, the
-<tt>system_error</tt> constructor must store "In FooBar" in the base class,
-and then form the desired output each time <tt>what()</tt> is called.  Or
-alternatively, store "In FooBar" in the base class, and store the desired
-<tt>what()</tt> string in the derived <tt>system_error</tt>, and override
-<tt>what()</tt> to return the string in the derived part.
-</p>
-
-<p>
-Both of the above implementations seem suboptimal to me.  In one I'm computing
-a new string every time <tt>what()</tt> is called.  And since <tt>what()</tt>
-can't propagate exceptions, the client may get a different string on different
-calls.
-</p>
-
-<p>
-The second solution requires storing two strings instead of one.
-</p>
-
-<p>
-What I would like to be able to do is form the desired <tt>what()</tt> string
-once in the <tt>system_error</tt> constructor, and store <em>that</em> in the
-base class.  Now I'm:
-</p>
-
-<ol>
-<li>Computing the desired <tt>what()</tt> only once.</li>
-<li>The base class <tt>what()</tt> definition is sufficient and nothrow.</li>
-<li>I'm not storing multiple strings.</li>
-</ol>
-
-<p>
-This is smaller code, smaller data, and faster.
-</p>
-
-<p>
-<tt>ios_base::failure</tt> has the same issue.
-</p>
-
-<p><i>[
-Comments about this change received favorable comments from the <tt>system_error</tt>
-designers.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-
-<blockquote>
-<p>
-We agree with the proposed resolution.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 19.5.6.2 [syserr.syserr.members], change the following constructor postconditions:
-</p>
-
-<blockquote>
-<pre>
-system_error(error_code ec, const string&amp; what_arg);
-</pre>
-<blockquote><p>
--2- <i>Postconditions:</i> <tt>code() == ec</tt>
-and <tt><del>strcmp(runtime_error::what(), what_arg.c_str()) == 0</del>
-<ins>string(what()).find(what_arg) != string::npos</ins></tt>.
-</p></blockquote>
-
-<pre>
-system_error(error_code ec, const char* what_arg);
-</pre>
-<blockquote><p>
--4- <i>Postconditions:</i> <tt>code() == ec</tt>
-and <tt><del>strcmp(runtime_error::what(), what_arg) == 0</del>
-<ins>string(what()).find(what_arg) != string::npos</ins></tt>.
-</p></blockquote>
-
-<pre>
-system_error(error_code ec);
-</pre>
-<blockquote><p>
--6- <i>Postconditions:</i> <tt>code() == ec</tt>
-<del>and <tt>strcmp(runtime_error::what(), ""</tt></del>.
-</p></blockquote>
-
-<pre>
-system_error(int ev, const error_category&amp; ecat, const string&amp; what_arg);
-</pre>
-<blockquote><p>
--8- <i>Postconditions:</i> <tt>code() == error_code(ev, ecat)</tt>
-and <tt><del>strcmp(runtime_error::what(), what_arg.c_str()) == 0</del>
-<ins>string(what()).find(what_arg) != string::npos</ins></tt>.
-</p></blockquote>
-
-<pre>
-system_error(int ev, const error_category&amp; ecat, const char* what_arg);
-</pre>
-<blockquote><p>
--10- <i>Postconditions:</i> <tt>code() == error_code(ev, ecat)</tt>
-and <tt><del>strcmp(runtime_error::what(), what_arg) == 0</del>
-<ins>string(what()).find(what_arg) != string::npos</ins></tt>.
-</p></blockquote>
-
-<pre>
-system_error(int ev, const error_category&amp; ecat);
-</pre>
-<blockquote><p>
--12- <i>Postconditions:</i> <tt>code() == error_code(ev, ecat)</tt>
-<del>and <tt>strcmp(runtime_error::what(), "") == 0</tt></del>.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-In 19.5.6.2 [syserr.syserr.members], change the description of <tt>what()</tt>:
-</p>
-
-<blockquote>
-<pre>
-const char *what() const throw();
-</pre>
-<blockquote>
-<p>
--14- <i>Returns:</i> An NTBS incorporating <del><tt>runtime_error::what()</tt> and
-<tt>code().message()</tt></del> <ins>the arguments supplied in the constructor</ins>.
-</p>
-<p>
-[<i>Note:</i> <del>One possible implementation would be:</del>
-<ins>The return NTBS might take the form: <tt>what_arg + ": " + code().message()</tt></ins>
-</p>
-<blockquote><pre><del>
-if (msg.empty()) { 
-  try { 
-    string tmp = runtime_error::what(); 
-    if (code()) { 
-      if (!tmp.empty()) 
-        tmp += ": "; 
-      tmp += code().message(); 
-    } 
-    swap(msg, tmp); 
-  } catch(...) { 
-    return runtime_error::what(); 
-  } 
-return msg.c_str();
-</del></pre></blockquote>
-<p>
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-In 27.5.3.1.1 [ios::failure], change the synopsis:
-</p>
-
-<blockquote><pre>
-namespace std { 
-  class ios_base::failure : public system_error { 
-  public: 
-    explicit failure(const string&amp; msg, const error_code&amp; ec = io_errc::stream); 
-    explicit failure(const char* msg, const error_code&amp; ec = io_errc::stream); 
-    <del>virtual const char* what() const throw();</del>
-  }; 
-}
-</pre></blockquote>
-
-<p>
-In 27.5.3.1.1 [ios::failure], change the description of the constructors:
-</p>
-
-<blockquote>
-
-<pre>
-explicit failure(const string&amp; msg, , const error_code&amp; ec = io_errc::stream);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects:</i> Constructs an object of class <tt>failure</tt>
-<ins>by constructing the base class with <tt>msg</tt> and <tt>ec</tt></ins>.
-</p>
-<p>
-<del>-4- <i>Postcondition:</i> <tt>code() == ec</tt> and <tt>strcmp(what(), msg.c_str()) == 0</tt></del>
-</p>
-</blockquote>
-
-<pre>
-explicit failure(const char* msg, const error_code&amp; ec = io_errc::stream);
-</pre>
-<blockquote>
-<p>
--5- <i>Effects:</i> Constructs an object of class <tt>failure</tt>
-<ins>by constructing the base class with <tt>msg</tt> and <tt>ec</tt></ins>.
-</p>
-<p>
-<del>-6- <i>Postcondition:</i> <tt>code() == ec and strcmp(what(), msg) == 0</tt></del>
-</p>
-</blockquote>
-
-</blockquote>
-
-<p>
-In 27.5.3.1.1 [ios::failure], remove <tt>what</tt> (the base class definition
-need not be repeated here).
-</p>
-
-<blockquote>
-<pre>
-<del>const char* what() const;</del>
-</pre>
-<blockquote><p>
-<del>-7- <i>Returns:</i> The message <tt>msg</tt> with which the exception was created.</del>
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1104"></a>1104. <tt>basic_ios::move</tt> should accept lvalues</h3>
-<p><b>Section:</b> 27.5.5.3 [basic.ios.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With the rvalue reference changes in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>
-<tt>basic_ios::move</tt> no longer has the most convenient signature:
-</p>
-
-<blockquote><pre>
-void move(basic_ios&amp;&amp; rhs);
-</pre></blockquote>
-
-<p>
-This signature should be changed to accept lvalues.  It does not need to be
-overloaded to accept rvalues.  This is a special case that only derived clients
-will see.  The generic <tt>move</tt> still needs to accept rvalues.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Tom prefers, on general principles, to provide both overloads.
-Alisdair agrees.
-</p>
-<p>
-Howard points out that there is no backward compatibility issue
-as this is new to C++0X.
-</p>
-<p>
-We agree that both overloads should be provided,
-and Howard will provide the additional wording.
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-23 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Added overload, moved to Review.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a signature to the existing prototype in the synopsis of 27.5.5 [ios]
-and in 27.5.5.3 [basic.ios.members]:
-</p>
-
-<blockquote><pre>
-<ins>void move(basic_ios&amp; rhs);</ins>
-void move(basic_ios&amp;&amp; rhs);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1106"></a>1106. Multiple exceptions from connected <tt>shared_future::get()</tt>?</h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Thomas J. Gritzan <b>Opened:</b> 2009-04-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is not clear, if multiple threads are waiting in a 
-<tt>shared_future::get()</tt> call, if each will rethrow the stored exception.
-</p>
-<p>
-Paragraph 9 reads: 
-</p>
-<blockquote><p>
-<i>Throws:</i> the stored exception, if an exception was stored and not 
-retrieved before.
-</p></blockquote>
-<p>
-The "not retrieved before" suggests that only one exception is thrown, 
-but one exception for each call to <tt>get()</tt> is needed, and multiple calls 
-to <tt>get()</tt> even on the same <tt>shared_future</tt> object seem to be allowed. 
-</p>
-<p>
-I suggest removing "and not retrieved before" from the Throws paragraph. 
-I recommend adding a note that explains that multiple calls on <tt>get()</tt> are 
-allowed, and each call would result in an exception if an exception was 
-stored. 
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-We note there is a pending paper by Detlef
-on such <tt>future</tt>-related issues;
-we would like to wait for his paper before proceeding.
-</p>
-<p>
-Alisdair suggests we may want language to clarify that this
-<tt>get()</tt> function can be called from several threads
-with no need for explicit locking.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2010-01-23 Moved to Tentatively NAD Editorial after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Resolved by paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.6.7 [futures.shared_future]:
-</p>
-
-<blockquote><pre>
-const R&amp; shared_future::get() const; 
-R&amp; shared_future&lt;R&amp;&gt;::get() const; 
-void shared_future&lt;void&gt;::get() const;
-</pre>
-<blockquote>
-<p>...</p>
-<p>
--9- <i>Throws:</i> the stored exception, if an exception was stored<del> and not retrieved before</del>.
-<ins>
-[<i>Note:</i> Multiple calls on <tt>get()</tt> are allowed, and each call would result in an exception 
-if an exception was stored. &mdash; <i>end note</i>]
-</ins>
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1108"></a>1108. thread.req.exception overly constrains implementations</h3>
-<p><b>Section:</b> 30.2.2 [thread.req.exception] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Christopher Kohlhoff <b>Opened:</b> 2009-04-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current formulation of 30.2.2 [thread.req.exception]/2 reads:
-</p>
-<blockquote><p>
-The <tt>error_category</tt> of the <tt>error_code</tt> reported by such an
-exception's <tt>code()</tt> member function is as specified in the error
-condition Clause.
-</p></blockquote>
-<p>
-This constraint on the code's associated <tt>error_categor</tt> means an
-implementation must perform a mapping from the system-generated
-error to a <tt>generic_category()</tt> error code. The problems with this
-include:
-</p>
-
-<ul>
-<li>
-The mapping is always performed, even if the resultant value is
- never used.
-</li>
-<li>
-<p>
-The original error produced by the operating system is lost.
-</p>
-</li>
-</ul>
-<p>
-The latter was one of Peter Dimov's main objections (in a private
-email discussion) to the original <tt>error_code</tt>-only design, and led to
-the creation of <tt>error_condition</tt> in the first place. Specifically,
-<tt>error_code</tt> and <tt>error_condition</tt> are intended to perform 
-the following roles:
-</p>
-<ul>
-<li>
-<tt>error_code</tt> holds the original error produced by the operating
- system.
-</li>
-<li>
-<tt>error_condition</tt> and the generic category provide a set of well
- known error constants that error codes may be tested against.
-</li>
-</ul>
-<p>
-Any mapping determining correspondence of the returned error code to
-the conditions listed in the error condition clause falls under the
-"latitude" granted to implementors in 19.5.1.5 [syserr.errcat.objects].
-(Although obviously their latitude is restricted a little by the
-need to match the right error condition when returning an error code
-from a library function.)
-</p>
-<p>
-It is important that this <tt>error_code&#47;error_condition</tt> usage is done
-correctly for the thread library since it is likely to set the pattern for future 
-TR libraries that interact with the operating system.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open, and recommend the issue be deferred until after the next
-Committee Draft is issued.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.2.2 [thread.req.exception] p.2:
-</p>
-
-<blockquote>
-<p>
--2- <del>The <tt>error_category</tt> (19.5.1.1) of the <tt>error_code</tt> reported by
-such an exception's <tt>code()</tt> member function 
-is as specified in the error condition Clause.</del>
-<ins>
-The <tt>error_code</tt> reported by such an exception's <tt>code()</tt> member
-function shall compare equal to one of the conditions specified in
-the function's error condition Clause. [<i>Example:</i> When the thread
-constructor fails:
-</ins>
-</p>
-<blockquote><pre><ins>
-ec.category() == implementation-defined // probably system_category
-ec == errc::resource_unavailable_try_again // holds true
-</ins></pre></blockquote>
-
-<p><ins>
-&mdash; <i>end example</i>]
-</ins></p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1110"></a>1110. Is <tt>for_each</tt> overconstrained?</h3>
-<p><b>Section:</b> 25.2.4 [alg.foreach] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-04-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.foreach">issues</a> in [alg.foreach].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Quoting working paper for reference (25.2.4 [alg.foreach]):
-</p>
-
-<blockquote>
-<pre>
-template&lt;InputIterator Iter, Callable&lt;auto, Iter::reference&gt; Function&gt;
-  requires CopyConstructible&lt;Function&gt;
-  Function for_each(Iter first, Iter last, Function f);
-</pre>
-<blockquote>
-<p>
-1 Effects: Applies f to the result of dereferencing every iterator in the
- range [first,last), starting from first and proceeding to last - 1.
-</p>
-<p>
-2 Returns: f.
-</p>
-<p>
-3 Complexity: Applies f exactly last - first times.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-P2 implies the passed object <tt>f</tt> should be invoked at each stage, rather than
-some copy of <tt>f</tt>.  This is important if the return value is to usefully
-accumulate changes.  So the requirements are an object of type <tt>Function</tt> can
-be passed-by-value, invoked multiple times, and then return by value.  In
-this case, <tt>MoveConstructible</tt> is sufficient. This would open support for
-move-only functors, which might become important in concurrent code as you
-can assume there are no other references (copies) of a move-only type and so
-freely use them concurrently without additional locks.
-</p>
-
-<p><i>[
-See further discussion starting with c++std-lib-23686.
-]</i></p>
-
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Pete suggests we may want to look at this in a broader context
-involving other algorithms.
-We should also consider the implications of parallelism.
-</p>
-<p>
-Move to Open, and recommend the issue be deferred until after the next
-Committee Draft is issued.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-14 Daniel de-conceptified the proposed resolution.
-]</i></p>
-
-
-<blockquote>
-<p>
-The note in 25.1 [algorithms.general]/9 already says the right thing:
-</p>
-<blockquote><p>
-Unless otherwise specified, algorithms that take function objects
-as arguments are permitted to copy those function objects freely.
-</p></blockquote>
-<p>
-So we only need to ensure that the wording for <tt>for_each</tt> is sufficiently
-clear, which is the intend of the following rewording.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-15 Daniel proposes:
-]</i></p>
-
-
-<blockquote>
-<ul>
-<li>
-<p>
-Add a new Requires clause just after the prototype declaration (25.2.4 [alg.foreach]):
-</p>
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Function</tt> shall be <tt>MoveConstructible</tt>
-( [moveconstructible]), <tt>CopyConstructible</tt> is not required.</ins>
-</p>
-</blockquote>
-</li>
-<li>
-<p>
-Change 25.2.4 [alg.foreach]/2 as indicated:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <ins>std::move(</ins>f<ins>)</ins>.
-</p></blockquote>
-</li>
-</ul>
-</blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready, using Daniel's wording without the portion
-saying "CopyConstructible is not required".
-</p></blockquote>
-
-<p><i>[
-2009-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I see that during the Santa Cruz meeting the originally proposed addition
-</p>
-
-<blockquote><p>
-, <tt>CopyConstructible</tt> is not required.
-</p></blockquote>
-
-<p>
-was removed. I don't think that this removal was a good idea. The combination
-of 25.1 [algorithms.general] p.9
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Unless otherwise specified, algorithms that take function objects
-as arguments are permitted to copy those function objects freely.[..]
-</p></blockquote>
-
-<p>
-with the fact that <tt>CopyConstructible</tt> is a refinement <tt>MoveConstructible</tt>
-makes it necessary that such an explicit statement is given. Even the
-existence of the usage of <tt>std::move</tt> in the <i>Returns</i> clause doesn't
-help much, because this would still be well-formed for a <tt>CopyConstructible</tt>
-without move constructor. Let me add that the originally proposed
-addition reflects current practice in the standard, e.g. 25.3.9 [alg.unique] p.5
-usages a similar terminology.
-</p>
-
-<p>
-For similar wording need in case for auto_ptr see <a href="lwg-closed.html#973">973</a>.
-</p>
-
-<p><i>[
-Howard: Moved from Tentatively Ready to Open.
-]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-11-20 Howard restores "not <tt>CopyConstructible</tt>" to the spec.
-]</i></p>
-
-
-<p><i>[
-2009-11-22 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ul>
-<li>
-<p>
-Add a new Requires clause just after the prototype declaration (25.2.4 [alg.foreach]):
-</p>
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>Function</tt> shall meet the requirements of
-<tt>MoveConstructible</tt> ( [moveconstructible]). 
-<tt>Function</tt> need not meet the requirements of
-<tt>CopyConstructible</tt> ( [copyconstructible]).</ins>
-</p>
-</blockquote>
-</li>
-<li>
-<p>
-Change 25.2.4 [alg.foreach]/2 as indicated:
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <ins>std::move(</ins>f<ins>)</ins>.
-</p></blockquote>
-</li>
-</ul>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1113"></a>1113. <tt>bitset::to_string</tt> could be simplified</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In <a href="lwg-defects.html#853">853</a> our resolution is changing the signature by adding two
-defaulting arguments to 3 calls.  In principle, this means that ABI breakage
-is not an issue, while API is preserved.
-</p>
-<p>
-With that observation, it would be very nice to use the new ability to
-supply default template parameters to function templates to collapse all 3
-signatures into 1.  In that spirit, this issue offers an alternative resolution
-than that of <a href="lwg-defects.html#853">853</a>.
-</p>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote><p>
-Move to Open,
-and look at the issue again after <a href="lwg-defects.html#853">853</a> has been accepted.
-We further recommend this be deferred until after the next Committee Draft.
-</p></blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol style="list-style-type:upper-alpha">
-<li>
-<p>
-In 20.6 [template.bitset]/1 (class bitset) ammend:
-</p>
-<blockquote><pre>
-template &lt;class charT <ins>= char</ins>,
-            class traits <ins>= char_traits&lt;charT&gt;</ins>,
-            class Allocator <ins>= allocator&lt;charT&gt;</ins>&gt; 
-  basic_string&lt;charT, traits, Allocator&gt;
-  to_string(charT zero = charT('0'), charT one = charT('1')) const;
-<del>template &lt;class charT, class traits&gt; 
-  basic_string&lt;charT, traits, allocator&lt;charT&gt; &gt; to_string() const; 
-template &lt;class charT&gt; 
-  basic_string&lt;charT, char_traits&lt;charT&gt;, allocator&lt;charT&gt; &gt; to_string() const; 
-basic_string&lt;char, char_traits&lt;char&gt;, allocator&lt;char&gt; &gt; to_string() const;</del>
-</pre></blockquote>
-</li>
-<li>
-<p>
-In 20.6.2 [bitset.members] prior to p35 ammend:
-</p>
-<blockquote><pre>
-template &lt;class charT <ins>= char</ins>,
-            class traits <ins>= char_traits&lt;charT&gt;</ins>,
-            class Allocator <ins>= allocator&lt;charT&gt;</ins>&gt; 
-  basic_string&lt;charT, traits, Allocator&gt;
-  to_string(charT zero = charT('0'), charT one = charT('1')) const;
-</pre></blockquote>
-</li>
-<li>
-Strike 20.6.2 [bitset.members] paragraphs 37 -> 39 (including signature
-above 37)
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1114"></a>1114. Type traits underspecified</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-05-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Related to <a href="lwg-defects.html#975">975</a> and <a href="lwg-closed.html#1023">1023</a>.
-</p>
-
-<p>
-The current wording in 20.10.1 [meta.rqmts] is still unclear concerning
-it's requirements on the type traits classes regarding ambiguities.
-Specifically it's unclear
-</p>
-
-<ul>
-<li>
-if a predicate trait (20.10.4 [meta.unary], 20.10.6 [meta.rel]) could derive from both
-<tt>true_type</tt>&#47;<tt>false_type</tt>.
-</li>
-<li>
-if any of the type traits (20.10.1 [meta.rqmts], 20.10.4 [meta.unary], 20.10.6 [meta.rel]) could ambiguously derive
-from the same specified result type.
-</li>
-<li>
-if any of the type traits (20.10.1 [meta.rqmts], 20.10.4 [meta.unary], 20.10.6 [meta.rel]) could derive from other
-<tt>integral_constant</tt> types making the contained names ambiguous
-</li>
-<li>
-if any of the type traits (20.10.1 [meta.rqmts], 20.10.4 [meta.unary], 20.10.6 [meta.rel]) could have other base
-classes that contain members hiding the name of the result type members
-or make the contained member names ambiguous.
-</li>
-</ul>
-
-<p><i>[
-Batavia (2009-05):
-]</i></p>
-
-<blockquote>
-<p>
-Alisdair would prefer to factor some of the repeated text,
-but modulo a corner case or two,
-he believes the proposed wording is otherwise substantially correct.
-</p>
-<p>
-Move to Open.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Tentatively Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-The usage of the notion of a <i>BaseCharacteristic</i> below might be
-useful in other places - e.g. to define the base class relation in 20.9.4 [refwrap], 20.9.11 [func.memfn], or 20.9.12.2 [func.wrap.func]. In this case it's definition should probably
-be moved to Clause 17
-]</i></p>
-
-
-<ol>
-<li>
-<p>
-Change 20.10.1 [meta.rqmts] p.1 as indicated:
-</p>
-<blockquote><p>
-[..] It shall be <tt>DefaultConstructible</tt>, <tt>CopyConstructible</tt>, and publicly
-<ins>and unambiguously</ins> derived, directly or indirectly, from
-<ins>its <i>BaseCharacteristic</i>, which is</ins> a specialization of the
-template <tt>integral_constant</tt> (20.6.3), with the arguments to the template
-<tt>integral_constant</tt> determined by the requirements for the particular
-property being described. <ins>The member names of the
-<i>BaseCharacteristic</i> shall be unhidden and unambiguously
-available in the <i>UnaryTypeTrait</i>.</ins>
-</p></blockquote>
-</li>
-<li>
-<p>
-Change 20.10.1 [meta.rqmts] p.2 as indicated:
-</p>
-<blockquote><p>
-[..] It shall be <tt>DefaultConstructible</tt>, <tt>CopyConstructible</tt>, and publicly
-<ins>and unambiguously</ins> derived, directly or indirectly, from
-<del>an instance</del> <ins>its <i>BaseCharacteristic</i>, which is a
-specialization</ins> of the template <tt>integral_constant</tt> (20.6.3), with
-the arguments to the template <tt>integral_constant</tt> determined by the
-requirements for the particular relationship being described. <ins>The
-member names of the <i>BaseCharacteristic</i> shall be unhidden
-and unambiguously available in the <i>BinaryTypeTrait</i>.</ins>
-</p></blockquote>
-</li>
-<li>
-<p>
-Change 20.10.4 [meta.unary] p.2 as indicated:
-</p>
-<blockquote><p>
-Each of these templates shall be a <i>UnaryTypeTrait</i> (20.6.1),
-<del>publicly derived directly or indirectly from <tt>true_type</tt> if the
-corresponding condition is true, otherwise from <tt>false_type</tt></del>
-<ins>where its <i>BaseCharacteristic</i> shall be <tt>true_type</tt> if the
-corresponding condition is true, otherwise <tt>false_type</tt></ins>.
-</p></blockquote>
-</li>
-<li>
-<p>
-Change 20.10.6 [meta.rel] p.2 as indicated:
-</p>
-
-<blockquote><p>
-Each of these templates shall be a <i>BinaryTypeTrait</i> (20.6.1),
-<del>publicly derived directly or indirectly from <tt>true_type</tt> if the
-corresponding condition is true, otherwise from <tt>false_type</tt></del>
-<ins>where its <i>BaseCharacteristic</i> shall be <tt>true_type</tt> if the
-corresponding condition is true, otherwise <tt>false_type</tt></ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1116"></a>1116. Literal constructors for tuple</h3>
-<p><b>Section:</b> 20.4.2 [tuple.tuple] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.tuple">issues</a> in [tuple.tuple].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It is not currently possible to construct <tt>tuple</tt> literal values,
-even if the elements are all literal types.  This is because parameters
-are passed to constructor by reference.
-</p>
-<p>
-An alternative would be to pass all constructor arguments by value, where it
-is known that *all* elements are literal types.  This can be determined with
-concepts, although note that the negative constraint really requires
-factoring out a separate concept, as there is no way to provide an 'any of
-these fails' constraint inline.
-</p>
-<p>
-Note that we will have similar issues with <tt>pair</tt> (and
-<tt>tuple</tt> constructors from <tt>pair</tt>) although I am steering
-clear of that class while other constructor-related issues settle.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">N2994</a>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Ammend the tuple class template declaration in 20.4.2 [tuple.tuple] as
-follows
-</p>
-
-<blockquote>
-<p>
-Add the following concept:
-</p>
-
-<blockquote><pre>
-auto concept AllLiteral&lt; typename ... Types &gt; {
-  requires LiteralType&lt;Types&gt;...;
-}
-</pre></blockquote>
-
-<p>
-ammend the constructor 
-</p>
-
-<blockquote><pre>
-<ins>template &lt;class... UTypes&gt;
-  requires AllLiteral&lt;Types...&gt;
-        &amp;&amp; Constructible&lt;Types, UTypes&gt;...
-  explicit tuple(UTypes...);</ins>
-
-template &lt;class... UTypes&gt;
-  requires <ins>!AllLiteral&lt;Types...&gt;</ins>
-        <ins>&amp;&amp;</ins> Constructible&lt;Types, UTypes&amp;&amp;&gt;...
-  explicit tuple(UTypes&amp;&amp;...);
-</pre></blockquote>
-
-<p>
-ammend the constructor
-</p>
-
-<blockquote><pre>
-<ins>template &lt;class... UTypes&gt;
-  requires AllLiteral&lt;Types...&gt;
-        &amp;&amp; Constructible&lt;Types, UTypes&gt;...
-  tuple(tuple&lt;UTypes...&gt;);</ins>
-
-template &lt;class... UTypes&gt;
-  requires <ins>!AllLiteral&lt;Types...&gt;</ins>
-        <ins>&amp;&amp;</ins> Constructible&lt;Types, const UTypes&amp;&gt;...
-  tuple(const tuple&lt;UTypes...&gt;&amp;);
-</pre></blockquote>
-
-</blockquote>
-
-<p>
-Update the same signatures in 20.4.2.1 [tuple.cnstr], paras 3 and 5.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1117"></a>1117. <tt>tuple</tt> copy constructor</h3>
-<p><b>Section:</b> 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.cnstr">active issues</a> in [tuple.cnstr].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.cnstr">issues</a> in [tuple.cnstr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The copy constructor for the <tt>tuple</tt> template is constrained.  This seems an
-unusual strategy, as the copy constructor will be implicitly deleted if the
-constraints are not met.  This is exactly the same effect as requesting an
-<tt>=default;</tt> constructor.  The advantage of the latter is that it retains
-triviality, and provides support for <tt>tuple</tt>s as literal types if issue
-<a href="lwg-defects.html#1116">1116</a> is also accepted.
-</p>
-<p>
-Actually, it might be worth checking with core if a constrained copy
-constructor is treated as a constructor template, and as such does not
-suppress the implicit generation of the copy constructor which would hide
-the template in this case.
-</p>
-
-<p><i>[
-2009-05-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This would solve one half of the suggested changes in <a href="lwg-defects.html#801">801</a>.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">N2994</a>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.4.2 [tuple.tuple] and 20.4.2.1 [tuple.cnstr] p4:
-</p>
-
-<blockquote><pre>
-<del>requires CopyConstructible&lt;Types&gt;...</del> tuple(const tuple&amp;)<ins> = default</ins>;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1118"></a>1118. <tt>tuple</tt> query APIs do not support cv-qualification</h3>
-<p><b>Section:</b> 20.4.2.5 [tuple.helper] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.helper">issues</a> in [tuple.helper].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The APIs <tt>tuple_size</tt> and <tt>tuple_element</tt> do not support
-cv-qualified <tt>tuple</tt>s, <tt>pair</tt>s or <tt>array</tt>s.
-</p>
-<p>
-The most generic solution would be to supply partial specializations once
-for each cv-type in the <tt>tuple</tt> header.  However, requiring this header for
-cv-qualified <tt>pair</tt>s&#47;<tt>array</tt>s seems unhelpful.  The BSI editorial
-suggestion (UK-198/US-69,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2533.html">N2533</a>)
-to merge <tt>tuple</tt> into <tt>&lt;utility&gt;</tt> would help with <tt>pair</tt>,
-but not <tt>array</tt>.  That might be resolved by making a dependency between the
-<tt>&lt;array&gt;</tt> header and <tt>&lt;utility&gt;</tt>, or simply recognising
-the dependency be fulfilled in a Remark.
-</p>
-
-<p><i>[
-2009-05-24 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-All <tt>tuple_size</tt> templates with a base class need to derive publicly, e.g.
-</p>
-
-<blockquote><pre>
-template &lt;IdentityOf T&gt; class tuple_size&lt; const T &gt; :
-   <ins>public</ins> tuple_size&lt;T&gt; {};
-</pre></blockquote>
-
-<p>
-The same applies to the tuple_element class hierarchies.
-</p>
-<p>
-What is actually meant with the comment
-</p>
-<blockquote><p>
-this solution relies on 'metafunction forwarding' to inherit the
-nested typename type
-</p></blockquote>
-<p>
-?
-</p>
-<p>
-I ask, because all base classes are currently unconstrained and their
-instantiation is invalid in the constrained context of the <tt>tuple_element</tt> partial
-template specializations.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-24 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I think a better solution might be to ask Pete editorially to change all
-declarations of tupling APIs to use the struct specifier instead of class.
-</p>
-<p>
-"metafunction forwarding" refers to the MPL metafunction protocol, where a
-metafunction result is declared as a nested typedef with the name "type",
-allowing metafunctions to be chained by means of inheritance.  It is a
-neater syntax than repeatedly declaring a typedef, and inheritance syntax is
-slightly nicer when it comes to additional typename keywords.
-</p>
-<p>
-The constrained template with an unconstrained base is a good observation
-though.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open, Alisdair to provide wording. Once wording is
-provided, Howard will move to Review.
-</p></blockquote>
-
-<p><i>[
-2010-03-28 Daniel deconceptified wording.
-]</i></p>
-
-
-<p><i>[
-Post-Rapperswil - Daniel provides wording:
-]</i></p>
-
-
-<p>
-The below given P&#47;R reflects the discussion from the Rapperswil meeting that the wording should not constrain 
-implementation freedom to realize the actual issue target. Thus the original code form was replaced by
-normative words.
-</p>
-<p>
-While preparing this wording it turned out that several <tt>tuple_size</tt> specializations as 
-that of <tt>pair</tt> and <tt>array</tt> are underspecified, because the underlying type of the member 
-value is not specified except that it is an integral type. For the specializations we could introduce a 
-canonical one - like <tt>size_t</tt> - or we could use the same type as the specialization of the 
-unqualified type uses. The following wording follows the second approach.
-</p>
-<p>
-The wording refers to N3126.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>Change 20.4.1 [tuple.general] p.2, header <tt>&lt;tuple&gt;</tt> synopsis, as indicated:
-<blockquote><pre>
-// 20.4.2.5, tuple helper classes:
-template &lt;class T&gt; class tuple_size; // undefined
-<ins>template &lt;class T&gt; class tuple_size&lt;const T&gt;;</ins>
-<ins>template &lt;class T&gt; class tuple_size&lt;volatile T&gt;;</ins>
-<ins>template &lt;class T&gt; class tuple_size&lt;const volatile T&gt;;</ins>
-<ins></ins>
-template &lt;class... Types&gt; class tuple_size&lt;tuple&lt;Types...&gt; &gt;;
-	
-template &lt;size_t I, class T&gt; class tuple_element; // undefined
-<ins>template &lt;size_t I, class T&gt; class tuple_element&lt;I, const T&gt;;</ins>
-<ins>template &lt;size_t I, class T&gt; class tuple_element&lt;I, volatile T&gt;;</ins>
-<ins>template &lt;size_t I, class T&gt; class tuple_element&lt;I, const volatile T&gt;;</ins>
-<ins></ins>
-template &lt;size_t I, class... Types&gt; class tuple_element&lt;I, tuple&lt;Types...&gt; &gt;;
-</pre></blockquote>
-</li>
-<li>Add the end of subclause 20.4.2.5 [tuple.helper] insert the following two paragraphs:
-<blockquote><pre>
-<ins>template &lt;class T&gt; class tuple_size&lt;const T&gt;;</ins>
-<ins>template &lt;class T&gt; class tuple_size&lt;volatile T&gt;;</ins>
-<ins>template &lt;class T&gt; class tuple_size&lt;const volatile T&gt;;</ins>
-</pre><blockquote><p>
-<ins>Let <em>TS</em> denote <tt>tuple_size&lt;T&gt;</tt> of the <em>cv</em>-unqualified type <tt>T</tt>. 
-Then each of the three templates shall meet the UnaryTypeTrait requirements (20.7.1) with a BaseCharacteristic of 
-<tt>integral_constant&lt;remove_cv&lt;decltype(<em>TS</em>::value)&gt;::type, <em>TS</em>::value&gt;</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;size_t I, class T&gt; class tuple_element&lt;I, const T&gt;;</ins>
-<ins>template &lt;size_t I, class T&gt; class tuple_element&lt;I, volatile T&gt;;</ins>
-<ins>template &lt;size_t I, class T&gt; class tuple_element&lt;I, const volatile T&gt;;</ins>
-</pre><blockquote><p>
-<ins>Let <em>TE</em> denote <tt>tuple_element&lt;I, T&gt;</tt> of the <em>cv</em>-unqualified type <tt>T</tt>. Then each of the 
-three templates shall meet the TransformationTrait requirements (20.7.1) with a member typedef <tt>type</tt> that shall name the 
-same type as the following type:</ins></p>
-<ul>
-<li><ins>for the first specialization, the type <tt>add_const&lt;<em>TE</em>::type&gt;::type</tt>,</ins></li>
-<li><ins>for the second specialization, the type <tt>add_volatile&lt;<em>TE</em>::type&gt;::type</tt>, and</ins></li>
-<li><ins>for the third specialization, the type <tt>add_cv&lt;<em>TE</em>::type&gt;::type</tt></ins></li>
-</ul>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1122"></a>1122. Ratio values should be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 20.11.3 [ratio.ratio] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.ratio">issues</a> in [ratio.ratio].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The values <tt>num</tt> and <tt>den</tt> in the <tt>ratio</tt> template
-should be declared <tt>constexpr</tt>.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">N2994</a>.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-20.11.3 [ratio.ratio]
-</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;intmax_t N, intmax_t D = 1&gt;
-  class ratio {
-  public:
-    static const<ins>expr</ins> intmax_t num;
-    static const<ins>expr</ins> intmax_t den;
-  };
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1123"></a>1123. No requirement that standard streams be flushed</h3>
-<p><b>Section:</b> 27.5.3.1.6 [ios::Init] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2009-05-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios::Init">issues</a> in [ios::Init].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As currently formulated, the standard doesn't require that there 
-is ever a flush of <tt>cout</tt>, etc.  (This implies, for example, that 
-the classical hello, world program may have no output.)  In the 
-current draft
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">N2798</a>),
-there is a requirement that the objects 
-be constructed before <tt>main</tt>, and before the dynamic 
-initialization of any non-local objects defined after the 
-inclusion of <tt>&lt;iostream&gt;</tt> in the same translation unit.  The only 
-requirement that I can find concerning flushing, however, is in 
-27.5.3.1.6 [ios::Init], where the destructor of the last 
-<tt>std::ios_base::Init</tt> object flushes.  But there is, as far as I 
-can see, no guarantee that such an object ever exists. 
-</p>
-<p>
-Also, the wording in  [iostreams.objects] says that:
-</p>
-<blockquote><p>
-The objects 
-are constructed and the associations are established at some 
-time prior to or during the first time an object of class 
-<tt>ios_base::Init</tt> is constructed, and in any case before the body 
-of main begins execution.
-</p></blockquote>
-<p>
-In 27.5.3.1.6 [ios::Init], however, as an 
-effect of the constructor, it says that
-</p>
-<blockquote><p>
-If <tt>init_cnt</tt> is zero, 
-the function stores the value one in <tt>init_cnt</tt>, then constructs 
-and initializes the objects <tt>cin</tt>, <tt>cout</tt>, <tt>cerr</tt>, <tt>clog</tt> 
-<tt>wcin</tt>, <tt>wcout</tt>, <tt>wcerr</tt>, and <tt>wclog</tt>"
-</p></blockquote>
-
-<p>
-which seems to forbid earlier 
-construction. 
-</p>
-
-<p>
-(Note that with these changes, the exposition only "<tt>static 
-int init_cnt</tt>" in <tt>ios_base::Init</tt> can be dropped.) 
-</p>
-<p>
-Of course, a determined programmer can still inhibit the 
-flush with things like: 
-</p>
-<blockquote><pre>
-new std::ios_base::Init ;       //  never deleted 
-</pre></blockquote>
-<p>
-or (in a function): 
-</p>
-<blockquote><pre>
-std::ios_base::Init ensureConstruction ; 
-//  ... 
-exit( EXIT_SUCCESS ) ; 
-</pre></blockquote>
-<p>
-Perhaps some words somewhere to the effect that all 
-<tt>std::ios_base::Init</tt> objects should have static lifetime 
-would be in order. 
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.  Some editorial changes are expected (in addition to the
-proposed wording) to remove <tt>init_cnt</tt> from <tt>Init</tt>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.4 [iostream.objects]/2:
-</p>
-
-<blockquote><p>
--2- The objects are constructed and the associations are established at
-some time prior to or during the first time an object of class
-<tt>ios_base::Init</tt> is constructed, and in any case before the body
-of main begins execution.<sup>292</sup> The objects are not destroyed
-during program execution.<sup>293</sup>
-<del>If a translation unit includes
-<tt>&lt;iostream&gt;</tt> or explicitly constructs an
-<tt>ios_base::Init</tt> object, these stream objects shall be
-constructed before dynamic initialization of non-local objects defined
-later in that translation unit.</del>
-<ins>The results of including <tt>&lt;iostream&gt;</tt> in a translation
-unit shall be as if <tt>&lt;iostream&gt;</tt> defined an instance of
-<tt>ios_base::Init</tt> with static lifetime. Similarly, the entire
-program shall behave as if there were at least one instance of
-<tt>ios_base::Init</tt> with static lifetime.</ins>
-</p></blockquote>
-
-<p>
-Change 27.5.3.1.6 [ios::Init]/3:
-</p>
-
-<blockquote>
-<pre>
-Init();
-</pre>
-<blockquote><p>
--3- <i>Effects:</i> Constructs an object of class <tt>Init</tt>. 
-<del>If <tt>init_cnt</tt> is zero, the function stores the value one in
-<tt>init_cnt</tt>, then constructs and initializes the objects
-<tt>cin</tt>, <tt>cout</tt>, <tt>cerr</tt>, <tt>clog</tt> (27.4.1),
-<tt>wcin</tt>, <tt>wcout</tt>, <tt>wcerr</tt>, and <tt>wclog</tt>
-(27.4.2). In any case, the function then adds one to the value stored in
-<tt>init_cnt</tt>.</del>
-<ins>Constructs and initializes the objects <tt>cin</tt>, <tt>cout</tt>,
-<tt>cerr</tt>, <tt>clog</tt>, <tt>wcin</tt>, <tt>wcout</tt>,
-<tt>wcerr</tt> and <tt>wclog</tt> if they have not already been
-constructed and initialized.</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.5.3.1.6 [ios::Init]/4:
-</p>
-
-<blockquote>
-<pre>
-~Init();
-</pre>
-<blockquote><p>
--4- <i>Effects:</i> Destroys an object of class <tt>Init</tt>.
-<del>The function subtracts one from the value stored in <tt>init_cnt</tt> and,
-if the resulting stored value is one,</del>
-<ins>If there are no other instances of the class still in
-existance,</ins>
-calls <tt>cout.flush()</tt>,
-<tt>cerr.flush()</tt>, <tt>clog.flush()</tt>, <tt>wcout.flush()</tt>,
-<tt>wcerr.flush()</tt>, <tt>wclog.flush()</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1126"></a>1126. <tt>istreambuff_iterator::equal</tt> needs a const &amp; parameter</h3>
-<p><b>Section:</b> 24.6.3.5 [istreambuf.iterator::equal] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istreambuf.iterator::equal">issues</a> in [istreambuf.iterator::equal].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>equal</tt> member function of <tt>istreambuf_iterator</tt> is
-declared <tt>const</tt>, but takes its argument by non-const reference.
-</p>
-<p>
-This is not compatible with the <tt>operator==</tt> free function overload, which is
-defined in terms of calling <tt>equal</tt> yet takes both arguments by reference to
-const.
-</p>
-
-<p><i>[
-The proposed wording is consistent with <a href="lwg-defects.html#110">110</a> with status TC1.
-]</i></p>
-
-
-<p><i>[
-2009-11-02 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Set to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Ammend in both:<br/>
-24.6.3 [istreambuf.iterator]<br/>
-24.6.3.5 [istreambuf.iterator::equal]<br/>
-</p>
-
-<blockquote><pre>
-bool equal(<ins>const </ins>istreambuf_iterator&amp; b) const;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1129"></a>1129. <tt>istream(buf)_iterator</tt> should support literal sentinel value</h3>
-<p><b>Section:</b> 24.6.1.1 [istream.iterator.cons], 24.6.3 [istreambuf.iterator] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator.cons">issues</a> in [istream.iterator.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>istream_iterator</tt> and <tt>istreambuf_iterator</tt> should support literal sentinel
-values.  The default constructor is frequently used to terminate ranges, and
-could easily be a literal value for <tt>istreambuf_iterator</tt>, and
-<tt>istream_iterator</tt> when iterating value types.  A little more work using a
-suitably sized/aligned char-array for storage (or an updated component like
-<tt>boost::optional</tt> proposed for TR2) would allow <tt>istream_iterator</tt> to support
-<tt>constexpr</tt> default constructor in all cases, although we might leave this
-tweak as a QoI issue.  Note that requiring <tt>constexpr</tt> be supported also
-allows us to place no-throw guarantees on this constructor too.
-</p>
-
-<p><i>[
-2009-06-02 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I agree with the usefulness of the issue suggestion, but we need
-to ensure that <tt>istream_iterator</tt> <em>can</em> satisfy be literal if needed.
-Currently this is not clear, because 24.6.1 [istream.iterator]/3 declares
-a copy constructor and a destructor and explains their semantic in
-24.6.1.1 [istream.iterator.cons]/3+4.
-</p>
-<p>
-The prototype semantic specification is ok (although it seems
-somewhat redundant to me, because the semantic doesn't say
-anything interesting in both cases), but for support of trivial class
-types we also need a trivial copy constructor and destructor as of
-9 [class]/6. The current non-informative specification of these
-two special members suggests to remove their explicit declaration
-in the class and add explicit wording that says that if <tt>T</tt> is
-trivial a default constructed iterator is also literal, alternatively it
-would be possible to mark both as defaulted and add explicit
-(memberwise) wording that guarantees that they are trivial.
-</p>
-<p>
-Btw.: I'm quite sure that the <tt>istreambuf_iterator</tt> additions to
-ensure triviality are not sufficient as suggested, because the
-library does not yet give general guarantees that a defaulted
-special member declaration makes this member also trivial.
-Note that e.g. the atomic types do give a general statement!
-</p>
-<p>
-Finally there is a wording issue: There does not exist something
-like a "literal constructor". The core language uses the term
-"constexpr constructor" for this.
-</p>
-<p>
-Suggestion:
-</p>
-<ol>
-<li>
-<p>
-Change 24.6.1 [istream.iterator]/3 as indicated:
-</p>
-<blockquote><pre>
-<ins>constexpr</ins> istream_iterator();
-istream_iterator(istream_type&amp; s);
-istream_iterator(const istream_iterator<del>&lt;T,charT,traits,Distance&gt;</del>&amp; x)<ins> = default</ins>;
-~istream_iterator()<ins> = default</ins>;
-</pre></blockquote>
-</li>
-<li>
-<p>
-Change 24.6.1.1 [istream.iterator.cons]/1 as indicated:
-</p>
-<blockquote><pre>
-<ins>constexpr</ins> istream_iterator();
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> Constructs the end-of-stream iterator. <ins>If <tt>T</tt> is a literal type,
-then this constructor shall be a constexpr constructor.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-Change 24.6.1.1 [istream.iterator.cons]/3 as indicated:
-</p>
-<blockquote><pre>
-istream_iterator(const istream_iterator<del>&lt;T,charT,traits,Distance&gt;</del>&amp; x)<ins> = default</ins>;
-</pre>
-<blockquote><p>
--3- <i>Effects:</i> Constructs a copy of <tt>x</tt>. <ins>If <tt>T</tt> is a literal type, then
-this constructor shall be a trivial copy constructor.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-Change 24.6.1.1 [istream.iterator.cons]/4 as indicated:
-</p>
-
-<blockquote><pre>
-~istream_iterator()<ins> = default</ins>;
-</pre>
-<blockquote><p>
--4- <i>Effects:</i> The iterator is destroyed. <ins>If <tt>T</tt> is a literal type, then
-this destructor shall be a trivial
-destructor.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-<li>
-<p>
-Change 24.6.3 [istreambuf.iterator] before p. 1 as indicated:
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> istreambuf_iterator() throw();
-<ins>istreambuf_iterator(const istreambuf_iterator&amp;)  throw() = default;</ins>
-<ins>~istreambuf_iterator()  throw() = default;</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-Change 24.6.3 [istreambuf.iterator]/1 as indicated:
-</p>
-<blockquote><p>
-[..] The default constructor <tt>istreambuf_iterator()</tt> and the constructor
-<tt>istreambuf_iterator(0)</tt> both construct an end of stream iterator object 
-suitable for use as an end-of-range. <ins>All specializations of 
-<tt>istreambuf_iterator</tt> shall have a trivial copy constructor, a constexpr 
-default constructor and a trivial destructor.</ins>
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">N2994</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-24.6.1 [istream.iterator] para 3
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> istream_iterator();
-</pre></blockquote>
-
-<p>
-24.6.1.1 [istream.iterator.cons]
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> istream_iterator();
-</pre>
-<blockquote><p>
--1- <i>Effects:</i> Constructs the end-of-stream iterator.
-<ins>If <tt>T</tt> is a literal type, then this constructor shall
-be a literal constructor.</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-24.6.3 [istreambuf.iterator]
-</p>
-
-<blockquote><pre>
-<ins>constexpr</ins> istreambuf_iterator() throw();
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1130"></a>1130. <tt>copy_exception</tt> name misleading</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2009-05-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The naming of <tt>std::copy_exception</tt> misleads almost everyone
-(experts included!) to think that it is the function that copies an
-<tt>exception_ptr</tt>:
-</p>
-
-<blockquote><pre>
-exception_ptr p1 = current_exception();
-exception_ptr p2 = copy_exception( p1 );
-</pre></blockquote>
-
-<p>
-But this is not at all what it does. The above actually creates an
-<tt>exception_ptr p2</tt> that contains a copy of <tt>p1</tt>, not of
-the exception to which <tt>p1</tt> refers!
-</p>
-<p>
-This is, of course, all my fault; in my defence, I used <tt>copy_exception</tt>
-because I was unable to think of a better name.
-</p>
-<p>
-But I believe that, based on what we've seen so far, <em>any</em> other name would be better.
-</p>
-<p>
-Therefore, I propose <tt>copy_exception</tt> to be renamed to
-<tt>create_exception</tt>:
-</p>
-
-<blockquote><pre>
-template&lt;class E&gt; exception_ptr create_exception(E e);
-</pre></blockquote>
-
-<p>
-with the following explanatory paragraph after it:
-</p>
-
-<blockquote><p>
-Creates an <tt>exception_ptr</tt> that refers to a copy of <tt>e</tt>.
-</p></blockquote>
-
-<p><i>[
-2009-05-13 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-What about
-</p>
-<blockquote><pre>
-make_exception_ptr
-</pre></blockquote>
-<p>
-in similarity to <tt>make_pair</tt> and <tt>make_tuple</tt>, <tt>make_error_code</tt> and
-<tt>make_error_condition</tt>, or <tt>make_shared</tt>? Or, if a stronger symmetry to
-<tt>current_exception</tt> is preferred:
-</p>
-
-<blockquote><pre>
-make_exception
-</pre></blockquote>
-<p>
-We have not a single <tt>create_*</tt> function in the library, it was always
-<tt>make_*</tt> used.
-</p>
-</blockquote>
-
-<p><i>[
-2009-05-13 Peter adds:
-]</i></p>
-
-
-<blockquote><p>
-<tt>make_exception_ptr</tt> works for me.
-</p></blockquote>
-
-<p><i>[
-2009-06-02 Thomas J. Gritzan adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-To avoid surprises and unwanted recursion, how about making a call to
-<tt>std::make_exception_ptr</tt> with an <tt>exception_ptr</tt> illegal?
-</p>
-<p>
-It might work like this:
-</p>
-<blockquote><pre>
-template&lt;class E&gt;
-exception_ptr make_exception_ptr(E e);
-template&lt;&gt;
-exception_ptr make_exception_ptr&lt;exception_ptr&gt;(exception_ptr e) = delete;
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Review for the time being. The subgroup thinks this is a good
-idea, but doesn't want to break compatibility unnecessarily if someone
-is already shipping this. Let's talk to Benjamin and PJP tomorrow to
-make sure neither objects.
-</p></blockquote>
-
-<p><i>[
-2009-11-16 Jonathan Wakely adds:
-]</i></p>
-
-
-<blockquote><p>
-GCC 4.4 shipped with <tt>copy_exception</tt> but we could certainly keep that
-symbol in the library (but not the headers) so it can still be found
-by any apps foolishly relying on the experimental C++0x mode being ABI
-stable.
-</p></blockquote>
-
-<p><i>[
-2009-11-16 Peter adopts wording supplied by Daniel.
-]</i></p>
-
-
-<p><i>[
-2009-11-16 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 18.8 [support.exception]/1, header <tt>&lt;exception&gt;</tt>
-synopsis as indicated:
-</p>
-
-<blockquote><pre>
-exception_ptr current_exception();
-void rethrow_exception [[noreturn]] (exception_ptr p);
-template&lt;class E&gt; exception_ptr <del>copy_exception</del><ins>make_exception_ptr</ins>(E e);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 18.8.5 [propagation]:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class E&gt; exception_ptr <del>copy_exception</del><ins>make_exception_ptr</ins>(E e);
-</pre>
-
-<blockquote>
-<p>
--11- <i>Effects:</i> <ins>Creates an <tt>exception_ptr</tt> that refers
-to a copy of <tt>e</tt>,</ins> as if
-</p>
-
-<blockquote><pre>
-try {
-  throw e;
-} catch(...) {
-  return current_exception();
-}
-</pre></blockquote>
-
-<p>...</p>
-</blockquote>
-
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 30.6.5 [futures.promise]/7 as indicated:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> if the associated state of <tt>*this</tt> is not ready, stores an exception
-object of type <tt>future_error</tt> with an error code of <tt>broken_promise</tt> as if by
-<tt>this-&gt;set_exception(<del>copy_exception</del><ins>make_exception_ptr</ins>(
-future_error(future_errc::broken_promise))</tt>.  Destroys ...
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1131"></a>1131. C++0x does not need <tt>alignment_of</tt></h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Niels Dekker <b>Opened:</b> 2009-06-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>alignment_of</tt> template is no longer necessary, now that the
-core language will provide <tt>alignof</tt>. Scott Meyers raised this
-issue at comp.std.c++,
-<a href="http://groups.google.com/group/comp.std.c++/browse_thread/thread/9b020306e803f08a">C++0x: alignof vs. alignment_of</a>,
-May 21, 2009.  In a reply, Daniel Kr&uuml;gler pointed out that
-<tt>alignof</tt> was added to the working paper <i>after</i>
-<tt>alignment_of</tt>. So it appears that <tt>alignment_of</tt> is only
-part of the current Working Draft 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>)
-because it is in TR1.
-</p>
-<p>
-Having both <tt>alignof</tt> and <tt>alignment_of</tt> would cause
-unwanted confusion. In general, I think TR1 functionality should not be
-brought into C++0x if it is entirely redundant with other C++0x language
-or library features.
-</p>
-
-<p><i>[
-2009-11-16 Chris adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I would like to suggest the following new wording for this issue, based on
-recent discussions. Basically this doesn't delete <tt>alignment_of</tt>, it just
-makes it clear that it is just a wrapper for <tt>alignof</tt>. This deletes the
-first part of the proposed resolution, changes the second part by leaving in
-<tt>alignof(T)</tt> but changing the precondition and leaves the 3rd part
-unchanged.
-</p>
-
-<p>
-Suggested Resolution:
-</p>
-
-<blockquote>
-<p>
-Change the first row of Table 44 ("Type property queries"), from Type properties
-20.10.4.3 [meta.unary.prop]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 44 &mdash; Type property queries</caption>
-<tr>
-<td>
-<tt>template &lt;class T&gt; struct alignment_of;</tt>
-</td>
-<td>
-<tt>alignof(T)</tt>.<br/>
-<i>Precondition:</i> <del><tt>T</tt> shall be a complete type, a reference type,
-or an array of unknown bound, but shall not be a function type or (possibly
-cv-qualified) <tt>void</tt>.</del> <ins><tt>alignof(T)</tt> shall be defined</ins>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-Change text in Table 51 ("Other transformations"), from Other transformations
-20.10.7.6 [meta.trans.other], as follows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 51 &mdash; Other transformations</caption>
-<tr>
-<td>&hellip;<tt>aligned_storage;</tt></td>
-<td>
-<tt>Len</tt> shall not be zero. <tt>Align</tt> shall be equal to
-<tt><del>alignment_of&lt;T&gt;::value</del> <ins>alignof(T)</ins></tt> for some
-type <tt>T</tt> or to <i>default-alignment</i>.
-</td>
-<td>&hellip;</td>
-</tr>
-</table>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-01-30 Alisdair proposes that Chris' wording be moved into the proposed wording
-section and tweaks it on the way.
-]</i></p>
-
-
-<blockquote>
-<p>
-Original proposed wording saved here:
-</p>
-<blockquote>
-<p>
-Remove from Header &lt;type_traits&gt; synopsis 20.10.2 [meta.type.synop]:
-</p>
-<blockquote><pre>
-<del>template &lt;class T&gt; struct alignment_of;</del>
-</pre></blockquote>
-
-<p>
-Remove the first row of Table 44 ("Type property queries"), from
-Type properties 20.10.4.3 [meta.unary.prop]:
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 44 &mdash; Type property queries</caption>
-<tr>
-<td><del><tt>template &lt;class T&gt; struct alignment_of;</tt></del></td>
-<td><del><tt>alignof(T)</tt>.</del><br/>
-<del><i>Precondition:</i> <tt>T</tt> shall be a complete type, a reference
-type, or an array of unknown bound, but shall not be a function type or
-(possibly cv-qualified) <tt>void</tt>.</del>
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Change text in Table 51 ("Other transformations"), from Other
-transformations 20.10.7.6 [meta.trans.other], as follows:
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 51 &mdash; Other transformations</caption>
-<tr>
-<td>&hellip;<tt>aligned_storage;</tt></td>
-<td>
-<tt>Len</tt> shall not be zero.  Align shall be equal to
-<tt><del>alignment_of&lt;T&gt;::value</del> <ins>alignof(T)</ins></tt> for some
-type <tt>T</tt> or to <i>default-alignment</i>.
-</td>
-<td>&hellip;</td>
-</tr>
-</table>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-01-30 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change the first row of Table 43 ("Type property queries"), from Type properties
-20.10.4.3 [meta.unary.prop]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 43 &mdash; Type property queries</caption>
-<tr>
-<td>
-<tt>template &lt;class T&gt; struct alignment_of;</tt>
-</td>
-<td>
-<tt>alignof(T)</tt>.<br/>
-<i>Precondition:</i> <del><tt>T</tt> shall be a complete type, a reference type,
-or an array of unknown bound, but shall not be a function type or (possibly
-cv-qualified) <tt>void</tt>.</del> <ins><tt>alignof(T)</tt> is a valid
-expression (5.3.6 [expr.alignof])</ins>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-Change text in Table 51 ("Other transformations"), from Other transformations
-20.10.7.6 [meta.trans.other], as follows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 51 &mdash; Other transformations</caption>
-<tr>
-<td>&hellip;<tt>aligned_storage;</tt></td>
-<td>
-<tt>Len</tt> shall not be zero. <tt>Align</tt> shall be equal to
-<tt><del>alignment_of&lt;T&gt;::value</del> <ins>alignof(T)</ins></tt> for some
-type <tt>T</tt> or to <i>default-alignment</i>.
-</td>
-<td>&hellip;</td>
-</tr>
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1133"></a>1133. Does N2844 break current specification of list::splice?</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops], 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-05-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-IIUC,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2844.html">N2844</a>
-means that lvalues will no longer bind to rvalue references.
-Therefore, the current specification of <tt>list::splice</tt> (list
-operations 23.3.5.5 [list.ops]) will be a breaking change of behaviour for existing
-programs.  That is because we changed the signature to swallow via an rvalue
-reference rather than the lvalue reference used in 03.
-</p>
-<p>
-Retaining this form would be safer, requiring an explicit move when splicing
-from lvalues.  However, this will break existing programs.
-We have the same problem with <tt>forward_list</tt>, although without the risk of
-breaking programs so here it might be viewed as a positive feature.
-</p>
-<p>
-The problem signatures:
-</p>
-<blockquote><pre>
-void splice_after(const_iterator position, forward_list&lt;T,Alloc&gt;&amp;&amp; x);
-void splice_after(const_iterator position, forward_list&lt;T,Alloc&gt;&amp;&amp; x,
-                  const_iterator i);
-void splice_after(const_iterator position, forward_list&lt;T,Alloc&gt;&amp;&amp; x,
-                  const_iterator first, const_iterator last);
-
-void splice(const_iterator position, list&lt;T,Alloc&gt;&amp;&amp; x);
-void splice(const_iterator position, list&lt;T,Alloc&gt;&amp;&amp; x,
-            const_iterator i);
-void splice(const_iterator position, list&lt;T,Alloc&gt;&amp;&amp; x,
-            const_iterator first, const_iterator last);
-</pre></blockquote>
-
-<p>
-<b>Possible resolutions:</b>
-</p>
-
-<p>
-Option A.   Add an additional (non-const) lvalue-reference
-overload in each case
-</p>
-<p>
-Option B.   Change rvalue reference back to (non-const)
-lvalue-reference overload in each case
-</p>
-<p>
-Option C.   Add an additional (non-const) lvalue-reference
-overload in just the <tt>std::list</tt> cases
-</p>
-<p>
-I think (B) would be very unfortunate, I really like the <tt>forward_list</tt>
-behaviour in (C) but feel (A) is needed for consistency.
-</p>
-<p>
-My actual preference would be NAD, ship with this as a breaking change as it
-is a more explicit interface.  I don't think that will fly though!
-</p>
-
-<p>
-See the thread starting with c++std-lib-23725 for more discussion.
-</p>
-
-<p><i>[
-2009-10-27 Christopher Jefferson provides proposed wording for Option C.
-]</i></p>
-
-
-<p><i>[
-2009-12-08 Jonathan Wakely adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-As Bill Plauger pointed out, <tt>list::merge</tt> needs similar treatment.
-</p>
-<p><i>[
-Wording updated.
-]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-12-13 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.3.5 [list]
-</p>
-
-<p>
-Add lvalue overloads before rvalue ones:
-</p>
-
-<blockquote><pre>
-<ins>void splice(const_iterator position, list&lt;T,Allocator&gt;&amp; x);</ins>
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x);
-<ins>void splice(const_iterator position, list&lt;T,Allocator&gt;&amp; x, const_iterator i);</ins>
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x, const_iterator i);
-<ins>void splice(const_iterator position, list&lt;T,Allocator&gt;&amp; x,
-            const_iterator first, const_iterator last);</ins>
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x,
-            const_iterator first, const_iterator last);
-<ins>void merge(list&lt;T,Allocator&gt;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp; x, Compare comp);</ins>
-void merge(list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);
-
-</pre></blockquote>
-
-<p>
-In 23.3.5.5 [list.ops], similarly add lvalue overload before each rvalue one:
-</p>
-<p>
-(After paragraph 2)
-</p>
-
-<blockquote><pre>
-<ins>void splice(const_iterator position, list&lt;T,Allocator&gt;&amp; x);</ins>
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x);
-</pre></blockquote>
-
-<p>
-(After paragraph 6)
-</p>
-
-<blockquote><pre>
-<ins>void splice(const_iterator position, list&lt;T,Allocator&gt;&amp; x, const_iterator i);</ins>
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x, <ins>const_</ins>iterator i);
-</pre></blockquote>
-
-<p>
-(After paragraph 10)
-</p>
-
-<blockquote><pre>
-<ins>void splice(const_iterator position, list&lt;T,Allocator&gt;&amp; x,
-            const_iterator first, const_iterator last);</ins>
-void splice(const_iterator position, list&lt;T,Allocator&gt;&amp;&amp; x,
-            <ins>const_</ins>iterator first, <ins>const_</ins>iterator last);
-</pre></blockquote>
-
-<p>
-In 23.3.5.5 [list.ops], after paragraph 21
-</p>
-
-<blockquote><pre>
-<ins>void merge(list&lt;T,Allocator&gt;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp; x, Compare comp);</ins>
-void merge(list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1134"></a>1134. Redundant specification of <tt>&lt;stdint.h&gt;</tt>, <tt>&lt;fenv.h&gt;</tt>, <tt>&lt;tgmath.h&gt;</tt>, 
-       and maybe <tt>&lt;complex.h&gt;</tt></h3>
-<p><b>Section:</b> X [stdinth], X [fenv], 26.8 [c.math], X [cmplxh] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Robert Klarer <b>Opened:</b> 2009-05-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This is probably editorial.
-</p>
-<p>
-The following items should be removed from the draft, because they're
-redundant with Annex D, and they arguably make some *.h headers
-non-deprecated:
-</p>
-<p>
-X [stdinth] (regarding <tt>&lt;stdint.h&gt;</tt>) 
-</p>
-<p>
-X [fenv] (regarding <tt>&lt;fenv.h&gt;</tt>
-</p>
-<p>
-Line 3 of 26.8 [c.math] (regarding <tt>&lt;tgmath.h&gt;</tt>) 
-</p>
-<p>
-X [cmplxh] (regarding <tt>&lt;complex.h&gt;</tt>, though the note in this subclause is not redundant) 
-</p>
-
-<p><i>[
-2009-06-10 Ganesh adds:
-]</i></p>
-
-
-<blockquote><p>
-While searching for <tt>stdint</tt> in the CD, I found that <tt>&lt;stdint.h&gt;</tt> is also
-mentioned in 3.9.1 [basic.fundamental] p.5. I guess it should refer to
-<tt>&lt;cstdint&gt;</tt> instead.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Real issue. Maybe just editorial, maybe not. Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the section X [stdinth].
-</p>
-<p>
-Remove the section X [fenv].
-</p>
-<p>
-Remove 26.8 [c.math], p3:
-</p>
-
-<blockquote><p>
-<del>-3- The header <tt>&lt;tgmath.h&gt;</tt> effectively includes the headers <tt>&lt;complex.h&gt;</tt>
-and <tt>&lt;math.h&gt;</tt>.</del>
-</p></blockquote>
-<p>
-Remove the section X [cmplxh].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1135"></a>1135. <tt>exception_ptr</tt> should support contextual conversion to <tt>bool</tt></h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-06-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>
-18.8.5 [propagation] p.5, the implementation-defined type
-<tt>exception_ptr</tt> does provide the following ways to check whether
-it is a null value:
-</p>
-<blockquote><pre>
-void f(std::exception_ptr p) {
-  p == nullptr;
-  p == 0;
-  p == exception_ptr();
-}
-</pre></blockquote>
-<p>
-This is rather cumbersome way of checking for the null value
-and I suggest to require support for evaluation in a boolean
-context like so:
-</p>
-
-<blockquote><pre>
-void g(std::exception_ptr p) {
-  if (p) {}
-  !p;
-}
-</pre></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready. Note to editor: considering putting in a cross-reference
-to 4 [conv], paragraph 3, which defines the phrase
-"contextually converted to <tt>bool</tt>".
-</p></blockquote>
-
-<p><i>[
-2010-03-14 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-We moved
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>
-to the formal motions page in Pittsburgh which should obsolete this issue.  I've
-moved this issue to NAD Editorial, solved by N3073.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section 18.8.5 [propagation] insert a new paragraph between p.5 and p.6:
-</p>
-
-<blockquote><p>
-<ins>
-An object <tt>e</tt> of type <tt>exception_ptr</tt> can be contextually converted to <tt>bool</tt>.
-The effect shall be as if <tt>e != exception_ptr()</tt> had been evaluated in place
-of <tt>e</tt>. There shall be no implicit conversion to arithmetic type, to
-enumeration type or to pointer type.
-</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1136"></a>1136. Incomplete specification of <tt>nested_exception::rethrow_nested()</tt></h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2007-06-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It was recently mentioned in a newsgroup article
-<a href="http://groups.google.de/group/comp.std.c++/msg/f82022aff68edf3d">http://groups.google.de/group/comp.std.c++/msg/f82022aff68edf3d</a>
-that the specification of the member function <tt>rethrow_nested()</tt> of the
-class <tt>nested_exception</tt> is incomplete, specifically it remains unclear
-what happens, if member <tt>nested_ptr()</tt> returns a null value. In
-18.8.6 [except.nested] we find only the following paragraph related to that:
-</p>
-<blockquote><pre>
-void rethrow_nested() const; // [[noreturn]]
-</pre>
-<blockquote><p>
--4- <i>Throws:</i> the stored exception captured by this <tt>nested_exception</tt> object.
-</p></blockquote>
-</blockquote>
-<p>
-This is a problem, because it is possible to create an object of
-<tt>nested_exception</tt> with exactly such a state, e.g.
-</p>
-<blockquote><pre>
-#include &lt;exception&gt;
-#include &lt;iostream&gt;
-
-int main() try {
-  std::nested_exception e; // OK, calls current_exception() and stores it's null value
-  e.rethrow_nested(); // ?
-  std::cout &lt;&lt; "A" &lt;&lt; std::endl;
-}
-catch(...) {
-  std::cout &lt;&lt; "B" &lt;&lt; std::endl;
-}
-</pre></blockquote>
-<p>
-I suggest to follow the proposal of the reporter, namely to invoke
-<tt>terminate()</tt> if <tt>nested_ptr()</tt> return a null value of <tt>exception_ptr</tt> instead
-of relying on the fallback position of undefined behavior. This would
-be consistent to the behavior of a <tt>throw;</tt> statement when no
-exception is being handled.
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change around 18.8.6 [except.nested] p.4 as indicated:
-</p>
-<blockquote>
-<p>
--4- <i>Throws:</i> the stored exception captured by this <tt>nested_exception</tt>
-object<ins>, if <tt>nested_ptr() != nullptr</tt></ins>
-</p>
-<p>
-<ins>- <i>Remarks:</i> If <tt>nested_ptr() == nullptr</tt>, <tt>terminate()</tt>
-shall be called.</ins>
-</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1137"></a>1137. Return type of <tt>conj</tt> and <tt>proj</tt></h3>
-<p><b>Section:</b> 26.4.9 [cmplx.over] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Marc Steinbach <b>Opened:</b> 2009-06-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cmplx.over">issues</a> in [cmplx.over].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In clause 1, the Working Draft 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>)
-specifies overloads of the
-functions
-</p>
-<blockquote><pre>
-arg, conj, imag, norm, proj, real
-</pre></blockquote>
-<p>
-for non-complex arithmetic types (<tt>float</tt>, <tt>double</tt>,
-<tt>long double</tt>, and integers).
-The only requirement (clause 2) specifies effective type promotion of arguments.
-</p>
-<p>
-I strongly suggest to add the following requirement on the return types:
-</p>
-<blockquote><p>
-All the specified overloads must return real (i.e., non-complex) values,
-specifically, the nested <tt>value_type</tt> of effectively promoted arguments.
-</p></blockquote>
-
-<p>
-(This has no effect on <tt>arg</tt>, <tt>imag</tt>, <tt>norm</tt>, <tt>real</tt>:
-they are real-valued anyway.)
-</p>
-<p><b>Rationale:</b></p>
-<p>
-Mathematically, <tt>conj()</tt> and <tt>proj()</tt>, like the transcendental functions, are
-complex-valued in general but map the (extended) real line to itself.
-In fact, both functions act as identity on the reals.
-A typical user will expect <tt>conj()</tt> and <tt>proj()</tt> to preserve this essential
-mathematical property in the same way as <tt>exp()</tt>, <tt>sin()</tt>, etc.
-A typical use of <tt>conj()</tt>, e.g., is the generic scalar product of n-vectors:
-</p>
-
-<blockquote><pre>
-template&lt;typename T&gt;
-inline T
-scalar_product(size_t n, T const* x, T const* y) {
-  T result = 0;
-  for (size_t i = 0; i &lt; n; ++i)
-    result += x[i] * std::conj(y[i]);
-  return result;
-}
-</pre></blockquote>
-<p>
-This will work equally well for real and complex floating-point types <tt>T</tt> if
-<tt>conj()</tt> returns <tt>T</tt>. It will not work with real types if <tt>conj()</tt>
-returns complex values.
-</p>
-<p>
-Instead, the implementation of <tt>scalar_product</tt> becomes either less efficient
-and less useful (if a complex result is always returned), or unnecessarily
-complicated (if overloaded versions with proper return types are defined).
-In the second case, the real-argument overload of <tt>conj()</tt> cannot be used.
-In fact, it must be avoided.
-</p>
-<p>
-Overloaded <tt>conj()</tt> and <tt>proj()</tt> are principally needed in generic programming.
-All such use cases will benefit from the proposed return type requirement,
-in a similar way as the <tt>scalar_product</tt> example.
-The requirement will not harm use cases where a complex return value
-is expected, because of implicit conversion to complex.
-Without the proposed return type guarantee, I find overloaded versions
-of <tt>conj()</tt> and <tt>proj()</tt> not only useless but actually troublesome.
-</p>
-
-
-<p><i>[
-2009-11-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert a new paragraph after 26.4.9 [cmplx.over]/2:
-</p>
-
-<blockquote><p>
-<ins>
-All of the specified overloads shall have a return type which is the nested <tt>value_type</tt> of
-the effectively cast arguments.
-</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1138"></a>1138. Unusual return value for <tt>operator+</tt></h3>
-<p><b>Section:</b> 21.4.8.1 [string::op+] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-06-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Many of the <tt>basic_string operator+</tt> overloads return an rvalue-reference.  Is
-that really intended?
-</p>
-<p>
-I'm considering it might be a mild performance tweak to avoid making
-un-necessary copies of a cheaply movable type, but it opens risk to dangling
-references in code like:
-</p>
-
-<blockquote><pre>
-auto &amp;&amp; s = string{"x"} + string{y};
-</pre></blockquote>
-
-<p>
-and I'm not sure about:
-</p>
-
-<blockquote><pre>
-auto s = string{"x"} + string{y};
-</pre></blockquote>
-
-<p><i>[
-2009-10-11 Howard updated <i>Returns:</i> clause for each of these.
-]</i></p>
-
-
-<p><i>[
-2009-11-05 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike the <tt>&amp;&amp;</tt> from the return type in the following function
-signatures:
-</p>
-
-<blockquote>
-<p>
-21.3 [string.classes] p2 Header Synopsis
-</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs);
-
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-              basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs,
-              basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-
-
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(const charT* lhs,
-              basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(charT lhs, basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs,
-              const charT* rhs);
-
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs, charT rhs);
-</pre></blockquote>
-
-<p>
-21.4.8.1 [string::op+]
-</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs,
-              const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(rhs)<ins>)</ins></tt>
-</p></blockquote>
-<pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-              basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>rhs.insert(0, lhs)<ins>)</ins></tt>
-</p></blockquote>
-<pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs,
-              basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(rhs)<ins>)</ins></tt> [<i>Note:</i> Or equivalently
-<tt><ins>std::move(</ins>rhs.insert(0, lhs)<ins>)</ins></tt> &mdash; <i>end note</i>]
-</p></blockquote>
-<pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(const charT* lhs,
-              basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>rhs.insert(0, lhs)<ins>)</ins></tt>.
-</p></blockquote>
-<pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(charT lhs, basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>rhs.insert(0, 1, lhs)<ins>)</ins></tt>.
-</p></blockquote>
-<pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs,
-              const charT* rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(rhs)<ins>)</ins></tt>.
-</p></blockquote>
-<pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_string&lt;charT,traits,Allocator&gt;<del>&amp;&amp;</del>
-    operator+(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; lhs, charT rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt><ins>std::move(</ins>lhs.append(1, rhs)<ins>)</ins></tt>.
-</p></blockquote>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1143"></a>1143. Atomic operations library not concept enabled</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 87, UK 311</b></p>
-
-<p>
-The atomics chapter is not concept enabled.
-</p>
-
-<p>
-Needs to also consider issues <a href="lwg-defects.html#923">923</a> and <a href="lwg-defects.html#924">924</a>.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1144"></a>1144. "thread safe" is undefined</h3>
-<p><b>Section:</b> 18.5 [support.start.term] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.start.term">issues</a> in [support.start.term].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 187</b></p>
-
-<p>
-The term "thread safe" is not defined nor used in this context
-anywhere else in the standard.
-</p>
-
-<p><b>Suggested action:</b></p>
-<p>
-Clarify the meaning of "thread safe".
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-The "thread safe" language has already been change in the WP. It was
-changed to "happen before", but the current WP text is still a little
-incomplete: "happen before" is binary, but the current WP text only
-mentions one thing.
-</p>
-<p>
-Move to Ready.
-</p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-For the following functions in 18.5 [support.start.term].
-</p>
-<blockquote><pre><code>
-extern "C" int at_quick_exit(void (*f)(void));
-extern "C++" int at_quick_exit(void (*f)(void));
-</code></pre></blockquote>
-
-<p>
-Edit paragraph 10 as follows.
-The intent is
-to provide the other half of the happens before relation;
-to note indeterminate ordering;
-and to clean up some formatting.
-</p>
-<blockquote><p>
-<i>Effects:</i>
-The <code>at_quick_exit()</code> functions
-register the function pointed to by <code>f</code>
-to be called without arguments when <code>quick_exit</code> is called.
-It is unspecified whether a call to <code>at_quick_exit()</code>
-that does not <del>happen-before</del> <ins>happen before</ins> (1.10)
-<ins>all calls to <code>quick_exit</code></ins>
-will succeed.
-[<i>Note:</i>
-the <code>at_quick_exit()</code> functions
-shall not introduce a data race (17.6.4.7).
-<del>exitnote</del>
-<ins>&mdash;<i>end note</i>]</ins>
-<ins>
-[<i>Note:</i>
-The order of registration may be indeterminate
-if <code>at_quick_exit</code> was called from more than one thread.
-&mdash;<i>end note</i>]
-</ins>
-[<i>Note:</i> The <code>at_quick_exit</code> registrations
-are distinct from the <code>atexit</code> registrations,
-and applications may need to call both registration functions
-with the same argument.
-&mdash;<i>end note</i>]
-</p></blockquote>
-
-<p>
-For the following function.
-</p>
-<blockquote><pre><code>
-void quick_exit [[noreturn]] (int status)
-</code></pre></blockquote>
-
-<p>
-Edit paragraph 13 as follows.
-The intent is to note that thread-local variables may be different.
-</p>
-<blockquote><p>
-<i>Effects:</i>
-Functions registered by calls to <code>at_quick_exit</code>
-are called in the reverse order of their registration,
-except that a function shall be called
-after any previously registered functions
-that had already been called at the time it was registered.
-Objects shall not be destroyed as a result of calling <code>quick_exit</code>.
-If control leaves a registered function called by <code>quick_exit</code>
-because the function does not provide a handler for a thrown exception,
-<code>terminate()</code> shall be called.
-<ins>
-[<i>Note:</i>
-Functions registered by one thread may be called by any thread,
-and hence should not rely on the identity of thread-storage-duration objects.
-&mdash;<i>end note</i>]
-</ins>
-After calling registered functions,
-<code>quick_exit</code> shall call <code>_Exit(status)</code>.
-[<i>Note:</i>
-The standard file buffers are not flushed.
-See: ISO C 7.20.4.4.
-&mdash;<i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1145"></a>1145. Inappropriate headers for atomics</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 312</b></p>
-
-<p>
-The contents of the <tt>&lt;stdatomic.h&gt;</tt> header are not listed anywhere,
-and <tt>&lt;cstdatomic&gt;</tt> is listed as a C99 header in chapter 17.
-If we intend to use these for compatibility with a future C standard,
-we should not use them now.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove <tt>&lt;cstdatomic&gt;</tt> from the C99 headers in table 14.
-Add a new header <tt>&lt;atomic&gt;</tt> to the headers in table 13.
-Update chapter 29 to remove reference to <tt>&lt;stdatomic.h&gt;</tt>
-and replace the use of <tt>&lt;cstdatomic&gt;</tt> with <tt>&lt;atomic&gt;</tt>.
-</p>
-<p><i>[
-If and when WG14 adds atomic operations to C
-we can add corresponding headers to table 14 with a TR.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1146"></a>1146. "lockfree" does not say enough</h3>
-<p><b>Section:</b> 29.4 [atomics.lockfree] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-06-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.lockfree">issues</a> in [atomics.lockfree].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 88</b></p>
-
-<p>
-The "lockfree" facilities do not tell the programmer enough.
-</p>
-
-<p>
-There are 2 problems here.
-First, at least on x86,
-it's less important to me whether some integral types are lock free
-than what is the largest type I can pass to atomic and have it be lock-free.
-For example, if <tt>long long</tt>s are not lock-free,
-<tt>ATOMIC_INTEGRAL_LOCK_FREE</tt> is probably 1,
-but I'd still be interested in knowing whether longs are always lock-free.
-Or if long longs at any address are lock-free,
-I'd expect <tt>ATOMIC_INTEGRAL_LOCK_FREE</tt> to be 2,
-but I may actually care whether I have access to
-the <code>cmpxchg16b</code> instruction.
-None of the support here helps with that question.
-(There are really 2 related questions here:
-what alignment requirements are there for lock-free access;
-and what processor is the program actually running on,
-as opposed to what it was compiled for?)
-</p>
-
-<p>
-Second, having <tt>atomic_is_lock_free</tt> only apply to individual objects
-is pretty useless
-(except, as Lawrence Crowl points out,
-for throwing an exception when an object is unexpectedly not lock-free).
-I'm likely to want to use its result to decide what algorithm to use,
-and that algorithm is probably going to allocate new memory
-containing atomic objects and then try to act on them.
-If I can't predict the lock-freedom of the new object
-by checking the lock-freedom of an existing object,
-I may discover after starting the algorithm that I can't continue.
-</p>
-
-<p><i>[
-2009-06-16 Jeffrey Yasskin adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-To solve the first problem, I think 2 macros would help:
-<tt>MAX_POSSIBLE_LOCK_FREE_SIZE</tt> and <tt>MAX_GUARANTEED_LOCK_FREE_SIZE</tt>,
-which expand to the maximum value of <tt>sizeof(T)</tt> for which atomic may
-(or will, respectively) use lock-free operations.
-Lawrence points out that this
-"relies heavily on implementations
-using word-size compare-swap on sub-word-size types,
-which in turn requires address modulation."
-He expects that to be the end state anyway, so it doesn't bother him much.
-</p>
-
-<p>
-To solve the second,
-I think one could specify that equally aligned objects of the same type
-will return the same value from <tt>atomic_is_lock_free()</tt>.
-I don't know how to specify "equal alignment".
-Lawrence suggests an additional function, <tt>atomic_is_always_lock_free()</tt>.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10-22 Benjamin Kosnik:
-]</i></p>
-
-
-<blockquote>
-<p>
-In the evolution discussion of N2925, "More Collected Issues with
-Atomics," there is an action item with respect to
-LWG <a href="lwg-defects.html#1146">1146</a>, US 88
-</p>
-
-<p>
-This is stated in the paper as:
-</p>
-<p>
-Relatedly, Mike Sperts will create an issue to propose adding a traits
-mechanism to check the compile-time properties through a template
-mechanism rather than macros
-</p>
-
-<p>
-Here is my attempt to do this. I don't believe that a separate trait is
-necessary for this, and that instead <tt>atomic_integral::is_lock_free</tt> can
-be re-purposed with minimal work as follows.
-</p>
-
-<p><i>[
-Howard: Put Benjamin's wording in the proposed wording section.
-]</i></p>
-
-
-</blockquote>
-
-<p><i>[
-2009-10-22 Alberto Ganesh Barbati:
-]</i></p>
-
-
-<blockquote>
-<p>
-Just a thought... wouldn't it be better to use a scoped enum instead of
-plain integers? For example:
-</p>
-
-<blockquote><pre>
-enum class is_lock_free
-{
-    never = 0, sometimes = 1, always = 2;
-};
-</pre></blockquote>
-
-<p>
-if compatibility with C is deemed important, we could use an unscoped
-enum with suitably chosen names.  It would still be more descriptive
-than 0, 1 and 2.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Header <tt>&lt;cstdatomic&gt;</tt> synopsis  [atomics.synopsis]
-</p>
-
-<p>
-Edit  as follows:
-</p>
-
-<blockquote><pre>
-namespace std {
-...
-// 29.4, lock-free property
-<del>#define ATOMIC_INTEGRAL_LOCK_FREE unspecified</del>
-<ins>#define ATOMIC_CHAR_LOCK_FREE unspecified
-#define ATOMIC_CHAR16_T_LOCK_FREE unspecified
-#define ATOMIC_CHAR32_T_LOCK_FREE unspecified
-#define ATOMIC_WCHAR_T_LOCK_FREE unspecified
-#define ATOMIC_SHORT_LOCK_FREE unspecified
-#define ATOMIC_INT_LOCK_FREE unspecified
-#define ATOMIC_LONG_LOCK_FREE unspecified
-#define ATOMIC_LLONG_LOCK_FREE unspecified</ins>
-#define ATOMIC_ADDRESS_LOCK_FREE unspecified
-</pre></blockquote>
-
-<p>
-Lock-free Property 29.4 [atomics.lockfree]
-</p>
-
-<p>
-Edit the synopsis as follows.
-</p>
-
-<blockquote><pre>
-namespace std {
-   <del>#define ATOMIC_INTEGRAL_LOCK_FREE unspecified</del>
-   <ins>#define ATOMIC_CHAR_LOCK_FREE unspecified
-   #define ATOMIC_CHAR16_T_LOCK_FREE unspecified
-   #define ATOMIC_CHAR32_T_LOCK_FREE unspecified
-   #define ATOMIC_WCHAR_T_LOCK_FREE unspecified
-   #define ATOMIC_SHORT_LOCK_FREE unspecified
-   #define ATOMIC_INT_LOCK_FREE unspecified
-   #define ATOMIC_LONG_LOCK_FREE unspecified
-   #define ATOMIC_LLONG_LOCK_FREE unspecified</ins>
-   #define ATOMIC_ADDRESS_LOCK_FREE unspecified
-}
-</pre></blockquote>
-
-<p>
-Edit paragraph 1 as follows.
-</p>
-
-<blockquote><p>
-The <ins>ATOMIC_...._LOCK_FREE</ins> macros <del>ATOMIC_INTEGRAL_LOCK_FREE and ATOMIC_ADDRESS_LOCK_FREE</del> indicate the general lock-free
-property of <del>integral and address atomic</del> <ins>the corresponding atomic integral</ins> types<ins>, with the
-signed and unsigned variants grouped together</ins>.
-<del>The properties also apply to the corresponding specializations of the atomic template.</del>
-A value of 0
-indicates that the types are never lock-free. A value of 1
-indicates that the types are sometimes lock-free. A value of 2
-indicates that the types are always lock-free.
-</p></blockquote>
-
-<p>
-Operations on Atomic Types 29.6 [atomics.types.operations]
-</p>
-
-<p>
-Edit as follows.
-</p>
-
-<blockquote><pre>
-<del>void</del> <ins>static constexpr bool</ins> A::is_lock_free() const volatile;
-</pre>
-<blockquote><p>
-<i>Returns:</i> True if the <del>object's</del> <ins>types's</ins> operations are lock-free, false
-otherwise.
-<ins>
-[<i>Note:</i> In the same way that <tt>&lt;limits&gt;</tt>
-<tt>std::numeric_limits&lt;short&gt;::max()</tt> is related to <tt>&lt;limits.h&gt;</tt> 
-<tt>__LONG_LONG_MAX__</tt>, <tt>&lt;atomic&gt; std::atomic_short::is_lock_free</tt> is related to
-<tt>&lt;stdatomic.h&gt;</tt> and <tt>ATOMIC_SHORT_LOCK_FREE</tt> &mdash; <i>end note</i>]
-</ins>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1147"></a>1147. Non-volatile atomic functions</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-06-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 90</b></p>
-
-<p>
-The C++0X draft declares all of the functions dealing with atomics 
-(section 29.6 [atomics.types.operations]) to take volatile 
-arguments. Yet it also says (29.4-3),
-</p>
-
-<blockquote>
-<p>
-[ Note: Many operations are volatile-qualified.
-The "volatile as device register" semantics have not changed in the standard.
-This qualification means that volatility is preserved
-when applying these operations to volatile objects.
-It does not mean that operations on non-volatile objects become volatile.
-Thus, volatile qualified operations on non-volatile objects
-may be merged under some conditions. &mdash; end note ]
-</p>
-</blockquote>
-
-<p>
-I was thinking about how to implement this in gcc,
-and I believe that we'll want to overload most of the functions
-on volatile and non-volatile.
-Here's why:
-</p>
-
-<p>
-To let the compiler take advantage of the permission
-to merge non-volatile atomic operations and reorder atomics in certain,
-we'll need to tell the compiler backend
-about exactly which atomic operation was used.
-So I expect most of the functions of the form <tt>atomic_&lt;op&gt;_explicit()</tt>
-(e.g. <tt>atomic_load_explicit</tt>, <tt>atomic_exchange_explicit</tt>,
-<tt>atomic_fetch_add_explicit</tt>, etc.)
-to become compiler builtins.
-A builtin can tell whether its argument was volatile or not,
-so those functions don't really need extra explicit overloads.
-However, I don't expect that we'll want to add builtins
-for every function in chapter 29,
-since most can be implemented in terms of the <tt>_explicit</tt> free functions:
-</p>
-
-<pre><code>class atomic_int {
-  __atomic_int_storage value;
- public:
-  int fetch_add(int increment, memory_order order = memory_order_seq_cst) volatile {
-    // &amp;value has type "volatile __atomic_int_storage*".
-    atomic_fetch_add_explicit(&amp;value, increment, order);
-  }
-  ...
-};
-</code></pre>
-
-<p>
-But now this <em>always</em> calls
-the volatile builtin version of <tt>atomic_fetch_add_explicit()</tt>,
-even if the <tt>atomic_int</tt> wasn't declared volatile.
-To preserve volatility and the compiler's permission to optimize,
-I'd need to write:
-</p>
-
-<pre><code>class atomic_int {
-  __atomic_int_storage value;
- public:
-  int fetch_add(int increment, memory_order order = memory_order_seq_cst) volatile {
-    atomic_fetch_add_explicit(&amp;value, increment, order);
-  }
-  int fetch_add(int increment, memory_order order = memory_order_seq_cst) {
-    atomic_fetch_add_explicit(&amp;value, increment, order);
-  }
-  ...
-};
-</code></pre>
-
-<p>
-But this is visibly different from the declarations in the standard
-because it's now overloaded.
-(Consider passing <tt>&amp;atomic_int::fetch_add</tt> as a template parameter.)
-</p>
-
-<p>
-The implementation may already have permission to add overloads
-to the member functions:
-</p>
-
-<blockquote>
-<p>
-17.6.5.5 [member.functions] An implementation may declare additional non-virtual
-member function signatures within a class:<br/>
-...
-</p>
-<ul>
-<li>by adding a member function signature for a member function name.</li>
-</ul>
-</blockquote>
-
-<p>
-but I don't see an equivalent permission to add overloads to the free functions.
-</p>
-
-<p><i>[
-2009-06-16 Lawrence adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I recommend allowing non-volatile overloads.
-</p>
-</blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2992.htm">N2992</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1151"></a>1151. Behavior of the library in the presence of threads is incompletely specified</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US 63</b></p>
-
-   <p><b>Description</b></p>
-        <p>The behavior of the library in the presence of threads
-        is incompletely specified.</p>
-        <p>For example, if thread 1 assigns to <tt>X</tt>, then writes data
-        to file <tt>f</tt>, which is read by thread 2, and then accesses
-        variable <tt>X</tt>, is thread 2 guaranteed to be able to see the
-        value assigned to <tt>X</tt> by thread 1? In other words, does the
-        write of the data "happen before" the read?</p>
-        <p>Another example: does simultaneous access using <tt>operator
-        at()</tt> to different characters in the same non-const string
-        really introduce a data race?</p>
-<p><b>Suggestion</b></p>
-<p><b>Notes</b></p><p>17 SG: should go to threads group; misclassified in document
-</p>
-
-    <p>Concurrency SG: Create an issue. Hans will look into it.</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to "Open". Hans and the rest of the concurrency working group will
-study this. We can't make progress without a thorough review and a
-paper.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3069.html">N3069</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1152"></a>1152. Expressions parsed differently than intended</h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Seungbeom Kim <b>Opened:</b> 2009-06-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Table 73 &mdash; Floating-point conversions, 22.4.2.2.2 [facet.num.put.virtuals], 
-in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>,
-we have the following entries: 
-</p>
-<table border="1">
-<caption>Table 73 &mdash; Floating-point conversions</caption>
-<tr>
-<th>State</th> <th><tt>stdio</tt> equivalent</th>
-</tr>
-<tr>
-<td><tt>floatfield == ios_base::fixed | ios_base::scientific &amp;&amp; !uppercase</tt></td>
-<td align="center"><tt>%a</tt></td>
-</tr>
-
-<tr>
-<td><tt>floatfield == ios_base::fixed | ios_base::scientific</tt></td>
-<td align="center"><tt>%A</tt></td>
-</tr>
-</table>
-
-<p>
-These expressions are supposed to mean: 
-</p>
-
-<blockquote><pre>
-floatfield == (ios_base::fixed | ios_base::scientific) &amp;&amp; !uppercase 
-floatfield == (ios_base::fixed | ios_base::scientific) 
-</pre></blockquote>
-<p>
-but technically parsed as: 
-</p>
-<blockquote><pre>
-((floatfield == ios_base::fixed) | ios_base::scientific) &amp;&amp; (!uppercase) 
-((floatfield == ios_base::fixed) | ios_base::scientific) 
-</pre></blockquote>
-<p>
-and should be corrected with additional parentheses, as shown above. 
-</p>
-
-<p><i>[
-2009-10-28 Howard:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Table 83 &mdash; Floating-point conversions in  22.4.2.2.2 [facet.num.put.virtuals]:
-</p>
-
-<table border="1">
-<caption>Table 83 &mdash; Floating-point conversions</caption>
-<tr>
-<th>State</th> <th><tt>stdio</tt> equivalent</th>
-</tr>
-<tr>
-<td><tt>floatfield == <ins>(</ins>ios_base::fixed | ios_base::scientific<ins>)</ins> &amp;&amp; !uppercase</tt></td>
-<td align="center"><tt>%a</tt></td>
-</tr>
-
-<tr>
-<td><tt>floatfield == <ins>(</ins>ios_base::fixed | ios_base::scientific<ins>)</ins></tt></td>
-<td align="center"><tt>%A</tt></td>
-</tr>
-</table>
-
-
-
-
-
-<hr>
-<h3><a name="1157"></a>1157. Local types can now instantiate templates</h3>
-<p><b>Section:</b> 17.6.4.2.1 [namespace.std] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#namespace.std">issues</a> in [namespace.std].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 175</b></p>
-
-<p><b>Description</b></p>
-        <p>Local types can
-        now be used to instantiate templates, but don't have
-        external linkage.</p>
-<p><b>Suggestion</b></p>
-        <p>Remove the reference to external linkage.</p>
-
-<p><b>Notes</b></p>
-<p>We accept the proposed solution. Martin will draft an issue.</p>
-
-<p><i>[
-2009-07-28 Alisdair provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-17.6.4.2.1 [namespace.std]
-</p>
-<p>
-Strike "of external linkage" in p1 and p2:
-</p>
-
-<blockquote>
-<p>
--1- The behavior of a C++ program is undefined if it adds declarations or
-definitions to namespace <tt>std</tt> or to a namespace within namespace <tt>std</tt>
-unless otherwise specified. A program may add a concept map for any
-standard library concept or a template specialization for any standard
-library template to namespace <tt>std</tt> only if the declaration depends on a
-user-defined type <del>of external linkage</del> and the specialization meets the
-standard library requirements for the original template and is not
-explicitly prohibited.<sup>179</sup>
-</p>
-
-<p>
--2- The behavior of a C++ program is undefined if it declares
-</p>
-<ul>
-<li>
-an explicit specialization of any member function of a standard library
-class template, or
-</li>
-<li>
-an explicit specialization of any member function template of a standard
-library class or class template, or
-</li>
-<li>
-an explicit or partial specialization of any member class template of a
-standard library class or class template.
-</li>
-</ul>
-<p>
-A program may explicitly instantiate a template defined in the standard
-library only if the declaration depends on the name of a user-defined
-type <del>of external linkage</del> and the instantiation meets the standard
-library requirements for the original template.
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1158"></a>1158. Encouragement to use monotonic clock</h3>
-<p><b>Section:</b> 30.2.4 [thread.req.timing] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.req.timing">issues</a> in [thread.req.timing].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 322, US 96</b></p>
-
-<p><b>Description</b></p>
-        <p>Not all systems
-        can provide a monotonic clock. How are they expected to
-        treat a _for function?</p>
-<p><b>Suggestion</b></p>
-        <p>Add at least a note explaining the intent
-        for systems that do not support a monotonic clock.</p>
-
-<p><b>Notes</b></p>
-<p>Create an issue, together with UK 96. Note that the specification as is 
-    already allows a non-monotonic clock due to the word &#8220;should&#8221; rather than 
-    &#8220;shall&#8221;. If this wording is kept, a footnote should be added to make the 
-    meaning clear.</p>
-
-<p><i>[ 2009-06-29 Beman provided a proposed resolution. ] </i></p>
-
-<p><i>[
-2009-10-31 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Set to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-2010-02-24 Pete moved to Open:
-]</i></p>
-
-
-<blockquote><p>
-LWG 1158's proposed resolution replaces the ISO-specified normative term
-"should" with "are encouraged but not required to", which presumably means the
-same thing, but has no ISO normative status. The WD used the latter formulation
-in quite a few non-normative places, but only three normative ones. I've changed
-all the normative uses to "should".
-</p></blockquote>
-
-<p><i>[
-2010-03-06 Beman updates wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to Ready.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>Change Timing specifications 30.2.4 [thread.req.timing] as indicated:</i></p>
-
-<p>
-The member functions whose names end in <tt>_for</tt> take an argument that
-specifies a relative time. Implementations should use a monotonic clock to
-measure time for these functions.  <ins>[<i>Note:</i> Implementations are not
-required to use a monotonic clock because such a clock may be unavailable.
-&mdash; <i>end note</i>]</ins>
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1159"></a>1159. Unclear spec for <tt>resource_deadlock_would_occur</tt></h3>
-<p><b>Section:</b> 30.4.2.2.2 [thread.lock.unique.locking] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.lock.unique.locking">issues</a> in [thread.lock.unique.locking].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1219">1219</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 327, UK 328</b></p>
-
-<p><b>UK 327 Description</b></p>
-        <p>Not clear what
-        the specification for error condition
-        <tt>resource_deadlock_would_occur</tt> means. It is perfectly
-        possible for this thread to own the mutex without setting
-        owns to true on this specific lock object. It is also
-        possible for lock operations to succeed even if the thread
-        does own the mutex, if the mutex is recursive. Likewise, if
-        the mutex is not recursive and the mutex has been locked
-        externally, it is not always possible to know that this
-        error condition should be raised, depending on the host
-        operating system facilities. It is possible that 'i.e.' was
-        supposed to be 'e.g.' and that suggests that recursive
-        locks are not allowed. That makes sense, as the
-        exposition-only member owns is boolean and not a integer to
-        count recursive locks.</p>
-        
-<p><b>UK 327 Suggestion</b></p>
-        <p>Add a precondition <tt>!owns</tt>. Change the 'i.e.'
-        in the error condition to be 'e.g.' to allow for this
-        condition to propogate deadlock detection by the host OS.</p>
-<p><b>UK 327 Notes</b></p>
-<p>Create an issue. Assigned to Lawrence Crowl. Note: not sure what try_lock 
-    means for recursive locks when you are the owner. POSIX has language on 
-    this, which should ideally be followed. Proposed fix is not quite right, for 
-    example, try_lock should have different wording from lock.</p>
-
-<p><b>UK 328 Description</b></p>
-
-        <p>There is a missing precondition that <tt>owns</tt>
-        is true, or an <tt>if(owns)</tt> test is missing from the effect
-        clause</p>
-<p><b>UK 328 Suggestion</b></p>
-        <p>Add a
-        precondition that <tt>owns == true</tt>. Add an error condition to
-        detect a violation, rather than yield undefined behaviour.</p>
-<p><b>UK 328 Notes</b></p>
-<p>Handle in same issue as UK 327. Also uncertain that the proposed resolution 
-    is the correct one.</p>
-
-<p><i>[
-2009-11-11 Alisdair notes that this issue is very closely related to <a href="lwg-closed.html#1219">1219</a>,
-if not a dup.
-]</i></p>
-
-
-<p><i>[
-2010-02-12 Anthony provided wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Wording updated and moved to Ready for Pittsburgh.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify 30.4.2.2.2 [thread.lock.unique.locking] p3 to say:
-</p>
-
-<blockquote>
-<pre>void lock();</pre>
-<blockquote>
-<p>...</p>
-<p>
-3 <i>Throws:</i> <ins>Any exception thrown by <tt>pm-&gt;lock()</tt>.
-<tt>std::system_error</tt> if an exception is required (30.2.2 [thread.req.exception]).
-<tt>std::system_error</tt> with an error condition of
-<tt>operation_not_permitted</tt> if <tt>pm</tt> is <tt>0</tt>.
-<tt>std::system_error</tt> with an error condition of
-<tt>resource_deadlock_would_occur</tt> if on entry <tt>owns</tt> is <tt>true</tt>.</ins>
-<del><tt>std::system_error</tt> when the
-postcondition cannot be achieved.</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Remove 30.4.2.2.2 [thread.lock.unique.locking] p4 (Error condition clause).
-</p>
-
-<p>
-Modify 30.4.2.2.2 [thread.lock.unique.locking] p8 to say:
-</p>
-
-<blockquote>
-<pre>bool try_lock();</pre>
-<blockquote>
-<p>...</p>
-<p>
-8 <i>Throws:</i> <ins>Any exception thrown by <tt>pm-&gt;try_lock()</tt>.
-<tt>std::system_error</tt> if an exception is required (30.2.2 [thread.req.exception]).
-<tt>std::system_error</tt> with an error condition of
-<tt>operation_not_permitted</tt> if <tt>pm</tt> is <tt>0</tt>.
-<tt>std::system_error</tt> with an error condition of
-<tt>resource_deadlock_would_occur</tt> if on entry <tt>owns</tt> is <tt>true</tt>.</ins>
-<del><tt>std::system_error</tt> when the
-postcondition cannot be achieved.</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Remove 30.4.2.2.2 [thread.lock.unique.locking] p9 (Error condition clause).
-</p>
-
-<p>
-Modify 30.4.2.2.2 [thread.lock.unique.locking] p13 to say:
-</p>
-
-<blockquote>
-<pre>template &lt;class Clock, class Duration&gt;
-  bool try_lock_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);</pre>
-<blockquote>
-<p>...</p>
-<p>
-13 <i>Throws:</i> <ins>Any exception thrown by <tt>pm-&gt;try_lock_until()</tt>.
-<tt>std::system_error</tt> if an exception is required (30.2.2 [thread.req.exception]).
-<tt>std::system_error</tt> with an error condition of
-<tt>operation_not_permitted</tt> if <tt>pm</tt> is <tt>0</tt>.
-<tt>std::system_error</tt> with an error condition of
-<tt>resource_deadlock_would_occur</tt> if on entry <tt>owns</tt> is <tt>true</tt>.</ins>
-<del><tt>std::system_error</tt> when the
-postcondition cannot be achieved.</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Remove 30.4.2.2.2 [thread.lock.unique.locking] p14 (Error condition clause).
-</p>
-
-<p>
-Modify 30.4.2.2.2 [thread.lock.unique.locking] p18 to say:
-</p>
-
-<blockquote>
-<pre>template &lt;class Rep, class Period&gt;
-  bool try_lock_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);</pre>
-<blockquote>
-<p>...</p>
-<p>
-18 <i>Throws:</i> <ins>Any exception thrown by <tt>pm-&gt;try_lock_for()</tt>.
-<tt>std::system_error</tt> if an exception is required (30.2.2 [thread.req.exception]).
-<tt>std::system_error</tt> with an error condition of
-<tt>operation_not_permitted</tt> if <tt>pm</tt> is <tt>0</tt>.
-<tt>std::system_error</tt> with an error condition of
-<tt>resource_deadlock_would_occur</tt> if on entry <tt>owns</tt> is <tt>true</tt>.</ins>
-<del><tt>std::system_error</tt> when the
-postcondition cannot be achieved.</del>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Remove 30.4.2.2.2 [thread.lock.unique.locking] p19 (Error condition clause).
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1160"></a>1160. <tt>future_error</tt> public constructor is 'exposition only'</h3>
-<p><b>Section:</b> 30.6.3 [futures.future_error] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 331</b></p>
-
-<p><b>Description</b></p>
-        <p>Not clear what
-        it means for a public constructor to be 'exposition only'.
-        If the intent is purely to support the library calling this
-        constructor then it can be made private and accessed
-        through friendship. Otherwise it should be documented for
-        public consumption.</p>
-<p><b>Suggestion</b></p>
-        <p>Declare the constructor as private with a
-        note about intended friendship, or remove the
-        exposition-only comment and document the semantics.</p>
-<p><b>Notes</b></p>
-<p>Create an issue. Assigned to Detlef. Suggested resolution probably makes 
-    sense.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Pending a paper from Anthony Williams &#47; Detlef Vollmann.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Pending paper:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2967.html">N2967</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1161"></a>1161. Unnecessary <tt>unique_future</tt> limitations</h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 336</b></p>
-
-<p><b>Description</b></p>
-
-        <p>It is possible
-        to transfer ownership of the asynchronous result from one
-        unique_future instance to another via the move-constructor.
-        However, it is not possible to transfer it back, and nor is
-        it possible to create a default-constructed unique_future
-        instance to use as a later move target. This unduly limits
-        the use of <tt>unique_future</tt> in code. Also, the lack of a
-        move-assignment operator restricts the use of <tt>unique_future</tt>
-        in containers such as <tt>std::vector</tt> - <tt>vector::insert</tt> requires
-        move-assignable for example.</p>
-<p><b>Suggestion</b></p>
-        <p>Add a default constructor with the
-        semantics that it creates a <tt>unique_future</tt> with no
-        associated asynchronous result. Add a move-assignment
-        operator which transfers ownership.</p>
-<p><b>Notes</b></p>
-<p>Create an issue. Detlef will look into it.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Pending a paper from Anthony Williams &#47; Detlef Vollmann.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Pending paper:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2967.html">N2967</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1162"></a>1162. <tt>shared_future</tt> should support an efficient move constructor</h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 337</b></p>
-
-<p><b>Description</b></p>
-        <p><tt>shared_future</tt>
-        should support an efficient move constructor that can avoid
-        unnecessary manipulation of a reference count, much like
-        <tt>shared_ptr</tt></p>
-<p><b>Suggestion</b></p>
-        <p>Add a move constructor</p>
-<p><b>Notes</b></p>
-<p>Create an issue. Detlef will look into it.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Pending a paper from Anthony Williams &#47; Detlef Vollmann.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Pending paper:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2967.html">N2967</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1163"></a>1163. <tt>shared_future</tt> is inconsistent with <tt>shared_ptr</tt></h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 338</b></p>
-
-<p><b>Description</b></p>
-
-        <p><tt>shared_future</tt> is currently
-        <tt>CopyConstructible</tt>, but not <tt>CopyAssignable</tt>. This is
-        inconsistent with <tt>shared_ptr</tt>, and will surprise users.
-        Users will then write work-arounds to provide this
-        behaviour. We should provide it simply and efficiently as
-        part of shared_future. Note that since the shared_future
-        member functions for accessing the state are all declared
-        const, the original usage of an immutable shared_future
-        value that can be freely copied by multiple threads can be
-        retained by declaring such an instance as "<tt>const
-        shared_future</tt>".</p>
-<p><b>Suggestion</b></p>
-        <p>Remove "=delete"
-        from the copy-assignment operator of shared_future. Add a
-        move-constructor <tt>shared_future(shared_future&amp;&amp;
-        rhs)</tt>, and a move-assignment operator <tt>shared_future&amp;
-        operator=(shared_future&amp;&amp; rhs)</tt>. The postcondition
-        for the copy-assignment operator is that <tt>*this</tt> has the same
-        associated state as <tt>rhs</tt>. The postcondition for the
-        move-constructor and move assignment is that <tt>*this</tt> has the
-        same associated as <tt>rhs</tt> had before the
-        constructor&#47;assignment call and that <tt>rhs</tt> has no associated
-        state.</p>
-<p><b>Notes</b></p>
-<p>Create an issue. Detlef will look into it.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Pending a paper from Anthony Williams &#47; Detlef Vollmann.
-</p></blockquote>
-
-<p><i>[
-2009-10-14 Pending paper:
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2967.html">N2967</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Adressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1165"></a>1165. Unneeded <tt>promise</tt> move constructor</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 343</b></p>
-
-<p><b>Description</b></p>
-        <p>The move constructor of a <tt>std::promise</tt>
-        object does not need to allocate any memory, so the
-        move-construct-with-allocator overload of the constructor
-        is superfluous.</p>
-<p><b>Suggestion</b></p>
-        <p>Remove the constructor with the signature <tt>template &lt;class
-        Allocator&gt; promise(allocator_arg_t, const Allocator&amp;
-        a, promise&amp; rhs);</tt></p>
-<p><b>Notes</b></p>
-<p>Create an issue. Detlef will look into it. Will solicit feedback from Pablo. 
-    Note that &quot;rhs&quot; argument should also be an rvalue reference in any case.</p>
-
-<p><i>[
-2009-07 Frankfurt
-]</i></p>
-
-
-<blockquote><p>
-Pending a paper from Anthony Williams &#47; Detlef Vollmann.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Adressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">N2997</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1166"></a>1166. Allocator-specific move&#47;copy break model of move-constructor and
-        move-assignment</h3>
-<p><b>Section:</b> X [allocator.propagation], X [allocator.propagation.map], 23 [containers] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> LWG <b>Opened:</b> 2009-06-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 77</b></p>
-
-<p><b>Description</b></p>
-        <p>Allocator-specific move and copy behavior for containers
-        (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a>) complicates a little-used and already-complicated
-        portion of the standard library (allocators), and breaks
-        the conceptual model of move-constructor and
-        move-assignment operations on standard containers being
-        efficient operations. The extensions for allocator-specific
-        move and copy behavior should be removed from the working
-        paper.</p>
-        <p>With the introduction of rvalue references, we are teaching
-        programmers that moving from a standard container (e.g., a
-        <tt>vector&lt;string&gt;</tt>) is an efficient, constant-time
-        operation. The introduction of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a> removed that
-        guarantee; depending on the behavior of four different
-        traits (20.8.4), the complexity of copy and move operations
-        can be constant or linear time. This level of customization
-        greatly increases the complexity of standard containers,
-        and benefits only a tiny fraction of the C++ community.</p>
-<p><b>Suggestion</b></p>
-
-        <p>Remove 20.8.4.</p>
-        
-        <p>Remove 20.8.5.</p>
-        
-        <p>Remove all references to the facilities in
-        20.8.4 and 20.8.5 from clause 23.</p>
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1170"></a>1170. String <i>char-like types</i> no longer PODs</h3>
-<p><b>Section:</b> 21.1 [strings.general] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-06-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses UK 218</b></p>
-
-<p>Prior to the introduction of constant expressions into the library, 
-<tt>basic_string</tt> elements had to be POD types, and thus had to be both trivially 
-copyable and standard-layout. This ensured that they could be memcpy'ed and 
-would be compatible with other libraries and languages, particularly the C 
-language and its library.</p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2349.pdf">N2349</a>,
-Constant Expressions in the Standard Library Revision 2, changed the 
-requirement in 21/1 from &quot;POD type&quot; to &quot;literal type&quot;. That change had the 
-effect of removing the trivially copyable and standard-layout requirements from 
-<tt>basic_string</tt> elements.</p>
-<p>This means that <tt>basic_string</tt> elements no longer are guaranteed to be 
-memcpy'able, and are no longer guaranteed to be standard-layout types:</p>
-<blockquote>
-  <p>3.9/p2 and 3.9/p3 both make it clear that a &quot;trivially copyable type&quot; is 
-  required for memcpy to be guaranteed to work.</p>
-  <p>Literal types (3.9p12) may have a non-trivial copy assignment operator, and 
-  that violates the trivially copyable requirements given in 9/p 6, bullet item 
-  2. </p>
-  <p>Literal types (3.9p12) have no standard-layout requirement, either.</p>
-</blockquote>
-<p>This situation probably arose because the wording for &quot;Constant Expressions 
-in the Standard Library&quot; was in process at the same time the C++ POD 
-deconstruction wording was in process. </p>
-<p>Since trivially copyable types meet the C++0x requirements for literal types, 
-and thus work with constant expressions, it seems an easy fix to revert the 
-<tt>basic_string</tt> element wording to its original state.</p>
-
- <p><i>[
- 2009-07-28 Alisdair adds:
- ]</i></p>
-
- 
-<blockquote><p>
-When looking for any resolution for this issue, consider the definition of
-"character container type" in 17.3 [defns.character.container].  This
-does require the character type to be a POD, and this term is used in a
-number of places through clause 21 and 28. This suggests the PODness
-constraint remains, but is much more subtle than before.  Meanwhile, I
-suspect the change from POD type to literal type was intentional with
-the assumption that trivially copyable types with
-non-trivial-but-constexpr constructors should serve as well.  I don't
-believe the current wording offers the right guarantees for either of
-the above designs.
-</p></blockquote>
-
-<p><i>[
-2009-11-04 Howard modifies proposed wording to disallow array types as
-char-like types.
-]</i></p>
-
-
-<p><i>[
-2010-01-23 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>Change General 21.1 [strings.general] as indicated:</i></p>
-<blockquote>
-<p>This Clause describes components for manipulating sequences of any
-<del>literal</del> <ins>non-array POD</ins> (3.9) type. In this Clause
-such types are called <i>char-like types</i>, and objects of char-like
-types are called <i>char-like objects</i> or simply
-<i>characters</i>.</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1171"></a>1171. duration types should be literal</h3>
-<p><b>Section:</b> 20.12.5 [time.duration] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration">issues</a> in [time.duration].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>duration</tt> types in 20.12.5 [time.duration] are exactly the sort of type
-that should be "literal types" in the new standard.  Likewise,
-arithmetic operations on <tt>duration</tt>s should be declared <tt>constexpr</tt>.
-</p>
-
-<p><i>[
-2009-09-21 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-An alternative (and possibly preferable solution for potentially
-heap-allocating <tt>big_int</tt> representation types) would be to ask the core
-language to allow references to <tt>const</tt> literal types as feasible
-arguments for <tt>constexpr</tt> functions.
-</p></blockquote>
-
-<p><i>[
-2009-10-30 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I suggest this issue moves from New to Open.
-</p>
-
-<p>
-Half of this issue was dealt with in paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2994.htm">n2994</a>
-on constexpr constructors.
-</p>
-
-<p>
-The other half (duration arithmetic) is on hold pending Core support for
-<tt>const &amp;</tt> in <tt>constexpr</tt> functions.
-</p>
-
-</blockquote>
-
-<p><i>[
-2010-03-15 Alisdair updated wording to be consistent with
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3078.html">N3078</a>.
-]</i></p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-This issue was the motivation for Core adding the facility for <tt>constexpr</tt> 
-functions to take parameters by <tt>const &amp;</tt>.
-
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add <tt>constexpr</tt> to declaration of following functions and constructors:
-</p>
-<p>
-Modify p1 20.12 [time], and the prototype definitions in 20.12.5.5 [time.duration.nonmember], 20.12.5.6 [time.duration.comparisons],
-and 20.12.5.7 [time.duration.cast]:
-</p>
-
-<blockquote>
-<p>
-<b>Header <tt>&lt;chrono&gt;</tt> synopsis</b>
-</p>
-
-<pre>
-<i>// duration arithmetic</i>
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;&gt;::type
-   <ins>constexpr</ins> operator+(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;&gt;::type
-   <ins>constexpr</ins> operator-(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period, class Rep2&gt;
-   duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-   <ins>constexpr</ins> operator*(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-template &lt;class Rep1, class Period, class Rep2&gt;
-   duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-   <ins>constexpr</ins> operator*(const Rep1&amp; s, const duration&lt;Rep2, Period&gt;&amp; d);
-template &lt;class Rep1, class Period, class Rep2&gt;
-   duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-   <ins>constexpr</ins> operator/(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   typename common_type&lt;Rep1, Rep2&gt;::type
-   <ins>constexpr</ins> operator/(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-
-<i>// duration comparisons</i>
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   <ins>constexpr</ins> bool operator==(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   <ins>constexpr</ins> bool operator!=(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   <ins>constexpr</ins> bool operator&lt; (const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   <ins>constexpr</ins> bool operator&lt;=(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   <ins>constexpr</ins> bool operator&gt; (const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-   <ins>constexpr</ins> bool operator&gt;=(const  duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-
-<i>// duration_cast</i>
-template &lt;class ToDuration, class Rep, class Period&gt;
-   <ins>constexpr</ins> ToDuration duration_cast(const duration&lt;Rep, Period&gt;&amp; d);
-</pre>
-
-</blockquote>
-
-<p>
-Change 20.12.5 [time.duration]:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Rep, class Period = ratio&lt;1&gt;&gt;
-class duration {
-  ...
-public:
-  ...
-  <ins>constexpr</ins> duration(const duration&amp;) = default;
-  ...
-
-};
-</pre>
-</blockquote>
-<p><i>[
-Note - this edit already seems assumed by definition of the duration static members 
-<tt>zero&#47;min&#47;max</tt>. They cannot meaningfully be <tt>constexpr</tt> without 
-this change.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1172"></a>1172. <tt>select_on_container_(copy|move)_construction</tt> over-constrained</h3>
-<p><b>Section:</b> X [allocator.concepts.members] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2009-07-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I believe the two functions
-<tt>select_on_container_(copy|move)_construction()</tt> are over-constrained. For
-example, the return value of the "copy" version is (see
-X [allocator.concepts.members]/21):
-</p>
-<blockquote><p>
-<i>Returns:</i> <tt>x</tt> if the allocator should propagate from the existing
-container to the new container on copy construction, otherwise <tt>X()</tt>.
-</p></blockquote>
-<p>
-Consider the case where a user decides to provide an explicit concept
-map for Allocator to adapt some legacy allocator class, as he wishes to
-provide customizations that the <tt>LegacyAllocator</tt> concept map template
-does not provide.  Now, although it's true that the legacy class is
-required to have a default constructor, the user might have reasons to
-prefer a different constructor to implement
-<tt>select_on_container_copy_construction()</tt>. However, the current wording
-requires the use of the default constructor.
-</p>
-<p>
-Moreover, it's not said explicitly that <tt>x</tt> is supposed to be the
-allocator of the existing container. A clarification would do no harm.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Addressed by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2982.pdf">N2982</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace X [allocator.concepts.members]/21 with:
-</p>
-
-<blockquote><pre>
-X select_on_container_copy_construction(const X&amp; x);
-</pre>
-<p>
--21- <i>Returns:</i> <del><tt>x</tt> if the allocator should propagate from the existing
-container to the new container on copy construction, otherwise <tt>X()</tt>.</del>
-<ins>an allocator object to be used by the new container on copy
-construction. [<i>Note:</i> <tt>x</tt> is the allocator of the existing container that
-is being copied. The most obvious choices for the return value are <tt>x</tt>, if
-the allocator should propagate from the existing container, and <tt>X()</tt>.
-<i>&mdash; end note</i>]</ins>
-</p>
-</blockquote>
-
-<p>
-Replace X [allocator.concepts.members]/25 with:
-</p>
-
-<blockquote><pre>
-X select_on_container_move_construction(X&amp;&amp; x);
-</pre>
-<p>
--25- <i>Returns:</i> <del><tt>move(x)</tt> if the allocator should propagate from the existing
-container to the new container on move construction, otherwise <tt>X()</tt>.</del>
-<ins>an allocator object to be used by the new container on move
-construction. [<i>Note:</i> <tt>x</tt> is the allocator of the existing container that
-is being moved. The most obvious choices for the return value are <tt>move(x)</tt>, if
-the allocator should propagate from the existing container, and <tt>X()</tt>.
-<i>&mdash; end note</i>]</ins>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1174"></a>1174. Type property predicates</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jason Merrill <b>Opened:</b> 2009-07-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I've been implementing compiler support for <tt>is_standard_layout</tt>, and
-noticed a few nits about 20.10.4.3 [meta.unary.prop]:
-</p>
-
-<ol>
-<li>
-There's no trait for "trivially copyable type", which is now the
-property that lets you do bitwise copying of a type, and therefore seems
-useful to be able to query.  <tt>has_trivial_assign</tt> &amp;&amp;
-<tt>has_trivial_copy_constructor</tt> &amp;&amp; <tt>has_trivial_destructor</tt>
-is similar, but
-not identical, specifically with respect to const types.
-</li>
-<li>
-<tt>has_trivial_copy_constructor</tt> and <tt>has_trivial_assign</tt> lack the "or an
-array of such a class type" language that most other traits in that
-section, including <tt>has_nothrow_copy_constructor</tt> and <tt>has_nothrow_assign</tt>,
-have; this seems like an oversight.
-</li>
-</ol>
-
-<p><i>[
-See the thread starting with c++std-lib-24420 for further discussion.
-]</i></p>
-
-
-<p><i>[
-Addressed in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2947.html">N2947</a>.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD Editorial</del><ins>Resolved</ins>.  Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.htm">N2984</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1177"></a>1177. Improve "diagnostic required" wording</h3>
-<p><b>Section:</b> 20.12.5 [time.duration] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-07-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration">issues</a> in [time.duration].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-"diagnostic required" has been used (by me) for code words meaning "use
-<tt>enable_if</tt> to constrain templated functions.  This needs to be
-improved by referring to the function signature as not participating in
-the overload set, and moving this wording to a <i>Remarks</i> paragraph.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-<p><i>[
-2009-11-19 Pete opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-Oh, and speaking of 1177, most of the changes result in rather convoluted prose.
-Instead of saying
-</p>
-
-<blockquote><p>
-A shall be B, else C
-</p></blockquote>
-
-<p>
-it should be
-</p>
-
-<blockquote><p>
-C if A is not B
-</p></blockquote>
-
-<p>
-That is:
-</p>
-
-<blockquote><p>
-<tt>Rep2</tt> shall be implicitly convertible to <tt>CR(Rep1, Rep2)</tt>, else
-this signature shall not participate in overload resolution.
-</p></blockquote>
-
-<p>
-should be
-</p>
-
-<blockquote><p>
-This signature shall not participate in overload resolution if <tt>Rep2</tt> is
-not implicitly convertible to <tt>CR(Rep1, Rep2)</tt>.
-</p></blockquote>
-
-<p>
-That is clearer, and eliminates the false requirement that <tt>Rep2</tt> "shall
-be" convertible.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-11-19 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I've updated the wording to match Pete's suggestion and included bullet 16
-from <a href="lwg-defects.html#1195">1195</a>.
-</p></blockquote>
-
-<p><i>[
-2009-11-19 Jens adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Further wording suggestion using "unless":
-</p>
-
-<blockquote><p>
-This signature shall not participate in overload resolution unless <tt>Rep2</tt>
-is implicitly convertible to <tt>CR(Rep1, Rep2)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-11-20 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-I've updated the wording to match Jens' suggestion.
-</p></blockquote>
-
-<p><i>[
-2009-11-22 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-This proposed resolution addresses <a href="lwg-defects.html#947">947</a> and <a href="lwg-defects.html#974">974</a>. 
-]</i></p>
-
-
-<ol>
-<li>
-<p>
-Change 20.12.5.1 [time.duration.cons] (and reorder the <i>Remarks</i>
-paragraphs per 17.5.1.4 [structure.specifications]):
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Rep2&gt; 
-  explicit duration(const Rep2&amp; r);
-</pre>
-<blockquote>
-<p>
-<i><del>Requires:</del> <ins>Remarks:</ins></i> <ins>This constructor shall not
-participate in overload resolution unless</ins> <tt>Rep2</tt> <del>shall be</del>
-<ins>is</ins> implicitly convertible to <tt>rep</tt> and
-</p>
-<ul>
-<li>
-<tt>treat_as_floating_point&lt;rep&gt;::value</tt> <del>shall be</del>
-<ins>is</ins> <tt>true</tt><ins>,</ins> or
-</li>
-<li>
-<tt>treat_as_floating_point&lt;Rep2&gt;::value</tt> <del>shall be</del>
-<ins>is</ins> <tt>false</tt>.
-</li>
-</ul>
-<p>
-<del>Diagnostic required</del> [<i>Example:</i>
-</p>
-<blockquote><pre>
-duration&lt;int, milli&gt; d(3); // OK 
-duration&lt;int, milli&gt; d(3.5); // error 
-</pre></blockquote>
-
-<p>
-&mdash; <i>end example</i>]
-</p>
-
-<p>
-<i>Effects:</i> Constructs an object of type <tt>duration</tt>.
-</p>
-
-<p>
-<i>Postcondition:</i> <tt>count() == static_cast&lt;rep&gt;(r)</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Rep2, class Period2&gt;
-  duration(const duration&lt;Rep2, Period2&gt;&amp; d);
-</pre>
-<blockquote>
-<p>
-<i><del>Requires:</del> <ins>Remarks:</ins></i> <ins>This constructor shall not
-participate in overload resolution unless</ins>
-<tt>treat_as_floating_point&lt;rep&gt;::value</tt> <del>shall be</del>
-<ins>is</ins> <tt>true</tt> or <tt>ratio_divide&lt;Period2,
-period&gt;::type::den</tt> <del>shall be</del> <ins>is</ins> 1. <del>Diagnostic
-required.</del> [<i>Note:</i> This requirement prevents implicit truncation
-error when converting between integral-based duration types. Such a construction
-could easily lead to confusion about the value of the duration. &mdash; <i>end
-note</i>] [<i>Example:</i>
-</p>
-
-<blockquote><pre>
-duration&lt;int, milli&gt; ms(3); 
-duration&lt;int, micro&gt; us = ms; // OK 
-duration&lt;int, milli&gt; ms2 = us; // error 
-</pre></blockquote>
-
-<p>
-&mdash; <i>end example</i>]
-</p>
-
-<p>
-<i>Effects:</i> Constructs an object of type <tt>duration</tt>, constructing
-<tt>rep_</tt> from
-<tt>duration_cast&lt;duration&gt;(d).count()</tt>.
-</p>
-
-</blockquote>
-
-
-</blockquote>
-</li>
-
-<li>
-<p>
-Change the following paragraphs in 20.12.5.5 [time.duration.nonmember]:
-</p>
-
-<blockquote>
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt; 
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt; 
-  operator*(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <ins>This operator shall not
-participate in overload resolution unless</ins> <tt>Rep2</tt> <del>shall
-be</del> <ins>is</ins> implicitly convertible to <tt>CR(Rep1, Rep2)</tt>.
-<del>Diagnostic required.</del>
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt; 
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt; 
-  operator*(const Rep1&amp; s, const duration&lt;Rep2, Period&gt;&amp; d);
-</pre>
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <ins>This operator shall not
-participate in overload resolution unless</ins> <tt>Rep1</tt> <del>shall
-be</del> <ins>is</ins> implicitly convertible to <tt>CR(Rep1, Rep2)</tt>.
-<del>Diagnostic required.</del>
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt; 
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt; 
-  operator/(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <ins>This operator shall not
-participate in overload resolution unless</ins> <tt>Rep2</tt> <del>shall
-be</del> <ins>is</ins> implicitly convertible to <tt>CR(Rep1, Rep2)</tt> and
-<tt>Rep2</tt> <del>shall not be</del> <ins>is not</ins> an instantiation of
-<tt>duration</tt>. <del>Diagnostic required.</del>
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt; 
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt; 
-  operator%(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <ins>This operator shall not
-participate in overload resolution unless</ins> <tt>Rep2</tt> <del>shall
-be</del> <ins>is</ins> implicitly convertible to <tt>CR(Rep1, Rep2)</tt> and
-<tt>Rep2</tt> <del>shall not be</del> <ins>is not</ins> an instantiation of
-<tt>duration</tt>. <del>Diagnostic required.</del>
-</p></blockquote>
-
-</blockquote>
-</li>
-
-<li>
-<p>
-Change the following paragraphs in 20.12.5.7 [time.duration.cast]:
-</p>
-
-<blockquote><pre>
-template &lt;class ToDuration, class Rep, class Period&gt; 
-  ToDuration duration_cast(const duration&lt;Rep, Period&gt;&amp; d);
-</pre>
-
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <ins>This function shall not
-participate in overload resolution unless</ins> <tt>ToDuration</tt> <del>shall
-be</del> <ins>is</ins> an instantiation of <tt>duration</tt>. <del>Diagnostic
-required.</del>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.12.6.1 [time.point.cons]/3 as indicated:
-</p>
-
-<blockquote>
-<p>
-<del><i>Requires:</i> <tt>Duration2</tt> shall be implicitly convertible to <tt>duration</tt>.
-Diagnostic required.</del>
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless <tt>Duration2</tt> is implicitly convertible to
-<tt>duration</tt>.</ins>
-</p>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change the following paragraphs in 20.12.6.7 [time.point.cast]:
-</p>
-
-<blockquote><pre>
-template &lt;class ToDuration, class Clock, class Duration&gt; 
-  time_point&lt;Clock, ToDuration&gt; time_point_cast(const time_point&lt;Clock, Duration&gt;&amp; t);
-</pre>
-
-<blockquote><p>
-<i><del>Requires</del> <ins>Remarks</ins>:</i> <ins>This function shall not
-participate in overload resolution unless</ins> <tt>ToDuration</tt> <del>shall
-be</del> <ins>is</ins> an instantiation of <tt>duration</tt>. <del>Diagnostic
-required.</del>
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1178"></a>1178. Header dependencies</h3>
-<p><b>Section:</b> 17.6.5.2 [res.on.headers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-07-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-See Frankfurt notes of <a href="lwg-closed.html#1001">1001</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>Change 17.6.5.2 [res.on.headers], Headers, paragraph 1, as indicated:</i></p>
-
-<blockquote>
-
-<p>
-A C++ header may include other C++
-headers.<del><sup>[footnote]</sup></del> <ins>A C++ header shall provide
-the declarations and definitions that appear in its synopsis
-(3.2 [basic.def.odr]). A C++ header shown in its synopsis as including 
-other C++ headers shall provide the declarations and definitions that appear in
-the synopses of those other headers.</ins>
-</p>
-
-  <p><del><sup>[footnote]</sup> C++ headers must include a C++ header that contains 
-  any needed definition (3.2).</del></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1180"></a>1180. Missing <tt>string_type</tt> member typedef in class <tt>sub_match</tt></h3>
-<p><b>Section:</b> 28.9.1 [re.submatch.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-07-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The definition of class template <tt>sub_match</tt> is strongly dependent
-on the type <tt>basic_string&lt;value_type&gt;</tt>, both in interface and effects,
-but does not provide a corresponding typedef <tt>string_type</tt>, as e.g.
-class <tt>match_results</tt> does, which looks like an oversight to me that
-should be fixed.
-</p>
-
-<p><i>[
-2009-11-15 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>
-In the class template <tt>sub_match</tt> synopsis 28.9 [re.submatch]/1
-change as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class BidirectionalIterator&gt;
-class sub_match : public std::pair&lt;BidirectionalIterator, BidirectionalIterator&gt; {
-public:
-  typedef typename iterator_traits&lt;BidirectionalIterator&gt;::value_type value_type;
-  typedef typename iterator_traits&lt;BidirectionalIterator&gt;::difference_type difference_type;
-  typedef BidirectionalIterator iterator;
-  <ins>typedef basic_string&lt;value_type&gt; string_type;</ins>
-
-  bool matched;
-
-  difference_type length() const;
-  operator <del>basic_string&lt;value_type&gt;</del><ins>string_type</ins>() const;
-  <del>basic_string&lt;value_type&gt;</del><ins>string_type</ins> str() const;
-  int compare(const sub_match&amp; s) const;
-  int compare(const <del>basic_string&lt;value_type&gt;</del><ins>string_type</ins>&amp; s) const;
-  int compare(const value_type* s) const;
-};
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 28.9.1 [re.submatch.members]/2 change as indicated:
-</p>
-
-<blockquote><pre>
-operator <del>basic_string&lt;value_type&gt;</del><ins>string_type</ins>() const;
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>matched ? <del>basic_string&lt;value_type&gt;</del>
-<ins>string_type</ins>(first, second) : <del>basic_string&lt;value_type&gt;</del>
-<ins>string_type</ins>()</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-In 28.9.1 [re.submatch.members]/3 change as indicated:
-</p>
-
-<blockquote><pre>
-<del>basic_string&lt;value_type&gt;</del><ins>string_type</ins> str() const;
-</pre>
-
-<blockquote><p>
-<i>Returns:</i> <tt>matched ? <del>basic_string&lt;value_type&gt;</del>
-<ins>string_type</ins>(first, second) : <del>basic_string&lt;value_type&gt;</del>
-<ins>string_type</ins>()</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-In 28.9.1 [re.submatch.members]/5 change as indicated:
-</p>
-
-<blockquote><pre>
-int compare(const <del>basic_string&lt;value_type&gt;</del><ins>string_type</ins>&amp; s) const;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1181"></a>1181. Invalid <tt>sub_match</tt> comparison operators</h3>
-<p><b>Section:</b> 28.9.2 [re.submatch.op] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-07-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.submatch.op">issues</a> in [re.submatch.op].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Several heterogeneous comparison operators of class template
-<tt>sub_match</tt> are specified by return clauses that are not valid
-in general. E.g. 28.9.2 [re.submatch.op]/7:
-</p>
-
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
-bool operator==(
-  const basic_string&lt;
-    typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-  const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt>lhs == rhs.str()</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-The returns clause would be ill-formed for all cases where
-<tt>ST != std::char_traits&lt;iterator_traits&lt;BiIter&gt;::value_type&gt;</tt>
-or <tt>SA != std::allocator&lt;iterator_traits&lt;BiIter&gt;::value_type&gt;</tt>.
-</p>
-<p>
-The generic character of the comparison was intended, so
-there are basically two approaches to fix the problem: The
-first one would define the semantics of the comparison
-using the traits class <tt>ST</tt> (The semantic of <tt>basic_string::compare</tt>
-is defined in terms of the compare function of the corresponding
-traits class), the second one would define the semantics of the
-comparison using the traits class
-</p>
-
-<blockquote><pre>
-std::char_traits&lt;iterator_traits&lt;BiIter&gt;::value_type&gt;
-</pre></blockquote>
-
-<p>
-which is essentially identical to
-</p>
-
-<blockquote><pre>
-std::char_traits&lt;sub_match&lt;BiIter&gt;::value_type&gt;
-</pre></blockquote>
-
-<p>
-I suggest to follow the second approach, because
-this emphasizes the central role of the <tt>sub_match</tt>
-object as part of the comparison and would also
-make sure that a <tt>sub_match</tt> comparison using some
-<tt>basic_string&lt;char_t, ..&gt;</tt> always is equivalent to
-a corresponding comparison with a string literal
-because of the existence of further overloads (beginning
-from 28.9.2 [re.submatch.op]/19). If users really want to
-take advantage of their own <tt>traits::compare</tt>, they can
-simply write a corresponding compare function that
-does so.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<p>
-The following update is a result of the discussion during the Rapperswil meeting, the P/R expresses all comparisons by 
-delegating to sub_match's compare functions. The processing is rather mechanical: Only <tt>==</tt> and <tt>&lt;</tt>
-where defined by referring to <tt>sub_match</tt>'s compare function, all remaining ones where replaced by the canonical
-definitions in terms of these two.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-<i>The wording refers to N3126.</i>
-</p>
-
-<ol>
-<li>Change 28.9.2 [re.submatch.op]/7 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator==(
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-7 <em>Returns</em>: <tt><del>lhs == rhs.str()</del><ins>rhs.compare(lhs.c_str()) == 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/8 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator!=(
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-8 <em>Returns</em>: <tt><del>lhs != rhs.str()</del><ins>!(lhs == rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/9 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&lt;(
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-9 <em>Returns</em>: <tt><del>lhs &lt; rhs.str()</del><ins>rhs.compare(lhs.c_str()) &gt; 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/10 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&gt;(
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-10 <em>Returns</em>: <tt><del>lhs &gt; rhs.str()</del><ins>rhs &lt; lhs</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/11 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&gt;=(
-   const basic_string&lt;
-   typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
- const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-11 <em>Returns</em>: <tt><del>lhs &gt;= rhs.str()</del><ins>!(lhs &lt; rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/12 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&lt;=(
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-12 <em>Returns</em>: <tt><del>lhs &lt;= rhs.str()</del><ins>!(rhs &lt; lhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/13 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator==(const sub_match&lt;BiIter&gt;&amp; lhs,
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; rhs);
-</pre><p>
-13 <em>Returns</em>: <tt><del>lhs.str() == rhs</del><ins>lhs.compare(rhs.c_str()) == 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/14 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator!=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; rhs);
-</pre><p>
-14 <em>Returns</em>: <tt><del>lhs.str() != rhs</del><ins>!(lhs == rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/15 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&lt;(const sub_match&lt;BiIter&gt;&amp; lhs,
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; rhs);
-</pre><p>
-15 <em>Returns</em>: <tt><del>lhs.str() &lt; rhs</del><ins>lhs.compare(rhs.c_str()) &lt; 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/16 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator>(const sub_match&lt;BiIter&gt;&amp; lhs,
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; rhs);
-</pre><p>
-16 <em>Returns</em>: <tt><del>lhs.str() &gt; rhs</del><ins>rhs &lt; lhs</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/17 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&gt;=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; rhs);
-</pre><p>
-17 <em>Returns</em>: <tt><del>lhs.str() &gt;= rhs</del><ins>!(lhs &lt; rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/18 as indicated:
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
- bool operator&lt;=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   const basic_string&lt;
-     typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; rhs);
-</pre><p>
-18 <em>Returns</em>: <tt><del>lhs.str() &lt;= rhs</del><ins>!(rhs &lt; lhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/19 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator==(typename iterator_traits&lt;BiIter&gt;::value_type const* lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-19 <em>Returns</em>: <tt><del>lhs == rhs.str()</del><ins>rhs.compare(lhs) == 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/20 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator!=(typename iterator_traits&lt;BiIter&gt;::value_type const* lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-20 <em>Returns</em>: <tt><del>lhs != rhs.str()</del><ins>!(lhs == rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/21 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;(typename iterator_traits&lt;BiIter&gt;::value_type const* lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-21 <em>Returns</em>: <tt><del>lhs &lt; rhs.str()</del><ins>rhs.compare(lhs) &gt; 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/22 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;(typename iterator_traits&lt;BiIter&gt;::value_type const* lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-22 <em>Returns</em>: <tt><del>lhs &gt; rhs.str()</del><ins>rhs &lt; lhs</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/23 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;=(typename iterator_traits&lt;BiIter&gt;::value_type const* lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-23 <em>Returns</em>: <tt><del>lhs &gt;= rhs.str()</del><ins>!(lhs &lt; rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/24 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;=(typename iterator_traits&lt;BiIter&gt;::value_type const* lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-24 <em>Returns</em>: <tt><del>lhs &lt;= rhs.str()</del><ins>!(rhs &lt; lhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/25 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator==(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const* rhs);
-</pre><p>
-25 <em>Returns</em>: <tt><del>lhs.str() == rhs</del><ins>lhs.compare(rhs) == 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/26 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator!=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const* rhs);
-</pre><p>
-26 <em>Returns</em>: <tt><del>lhs.str() != rhs</del><ins>!(lhs == rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/27 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const* rhs);
-</pre><p>
-27 <em>Returns</em>: <tt><del>lhs.str() &lt; rhs</del><ins>lhs.compare(rhs) &lt; 0</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/28 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const* rhs);
-</pre><p>
-28 <em>Returns</em>: <tt><del>lhs.str() &gt; rhs</del><ins>rhs &lt; lhs</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/29 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const* rhs);
-</pre><p>
-29 <em>Returns</em>: <tt><del>lhs.str() &gt;= rhs</del><ins>!(lhs &lt; rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/30 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const* rhs);
-</pre><p>
-30 <em>Returns</em>: <tt><del>lhs.str() &lt;= rhs</del><ins>!(rhs &lt; lhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/31 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator==(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-<del>31 <em>Returns</em>: <tt>basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1,	lhs) == rhs.str()</tt>.</del><br/>
-<ins>31 <em>Returns</em>: <tt>rhs.compare(typename sub_match&lt;BiIter&gt;::string_type(1, lhs)) == 0</tt>.</ins>
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/32 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator!=(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-32 <em>Returns</em>: <tt><del>basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, lhs) !=
-rhs.str()</del><ins>!(lhs == rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/33 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-<del>33 <em>Returns</em>: <tt>basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type>(1, lhs) &lt; rhs.str()</tt>.</del><br/>
-<ins>33 <em>Returns</em>: <tt>rhs.compare(typename sub_match&lt;BiIter&gt;::string_type(1, lhs)) &gt; 0</tt>.</ins>
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/34 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-34 <em>Returns</em>: <tt><del>basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, lhs) &gt; rhs.str()</del><ins>rhs &lt; lhs</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/35 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;=(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-35 <em>Returns</em>: <tt><del>basic_string&lt;typename iterator_traits&lt;BiIter>::value_type>(1, lhs) &gt;= rhs.str()</del><ins>!(lhs &lt; rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/36 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;=(typename iterator_traits&lt;BiIter&gt;::value_type const&amp; lhs,
-   const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><p>
-36 <em>Returns</em>: <tt><del>basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, lhs) &lt;= rhs.str()</del><ins>!(rhs &lt; lhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/37 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator==(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const&amp; rhs);
-</pre><p>
-<del>37 <em>Returns</em>: <tt>lhs.str() == basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, rhs)</tt>.</del><br/>
-<ins>37 <em>Returns</em>: <tt>lhs.compare(typename sub_match&lt;BiIter&gt;::string_type(1, rhs)) == 0</tt>.</ins>
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/38 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator!=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const&amp; rhs);
-</pre><p>
-38 <em>Returns</em>: <tt><del>lhs.str() != basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, rhs)</del><ins>!(lhs == rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/39 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const&amp; rhs);
-</pre><p>
-<del>39 <em>Returns</em>: <tt>lhs.str() &lt; basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, rhs)</tt>.</del><br/>
-<ins>39 <em>Returns</em>: <tt>lhs.compare(typename sub_match&lt;BiIter&gt;::string_type(1, rhs)) &lt; 0</tt>.</ins>
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/40 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const&amp; rhs);
-</pre><p>
-40 <em>Returns</em>: <tt><del>lhs.str() &gt; basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, rhs)</del><ins>rhs &lt; lhs</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/41 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&gt;=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const&amp; rhs);
-</pre><p>
-41 <em>Returns</em>: <tt><del>lhs.str() &gt;= basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, rhs)</del><ins>!(lhs &lt; rhs)</ins></tt>.
-</p></blockquote>
-</li>
-<li>Change 28.9.2 [re.submatch.op]/42 as indicated:
-<blockquote><pre>
-template &lt;class BiIter&gt;
- bool operator&lt;=(const sub_match&lt;BiIter&gt;&amp; lhs,
-   typename iterator_traits&lt;BiIter&gt;::value_type const&amp; rhs);
-</pre><p>
-42 <em>Returns</em>: <tt><del>lhs.str() &lt;= basic_string&lt;typename iterator_traits&lt;BiIter&gt;::value_type&gt;(1, rhs)</del><ins>!(rhs &lt; lhs)</ins></tt>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1182"></a>1182. Unfortunate hash dependencies</h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 324</b></p>
-
-<p>
-The implied library dependencies created by spelling out all the <tt>hash</tt>
-template specializations in the <tt>&lt;functional&gt;</tt> synopsis are unfortunate. 
-The potential coupling is greatly reduced if the <tt>hash</tt> specialization is
-declared in the appropriate header for each library type, as it is much
-simpler to forward declare the primary template and provide a single
-specialization than it is to implement a <tt>hash</tt> function for a <tt>string</tt> or
-<tt>vector</tt> without providing a definition for the whole <tt>string/vector</tt>
-template in order to access the necessary bits.
-</p>
-
-<p>
-Note that the proposed resolution purely involves moving the
-declarations of a few specializations, it specifically does not make any
-changes to 20.9.13 [unord.hash].
-</p>
-
-<p><i>[
-2009-09-15 Daniel adds:
-]</i></p>
-
-
-<p>
-I suggest to add to the current existing
-proposed resolution the following items.
-</p>
-
-<ul>
-<li>
-<p>
-Add to the very first strike-list of the currently suggested resolution
-the following lines:
-</p>
-
-<blockquote><pre>
-<del>template &lt;&gt; struct hash&lt;std::error_code&gt;;</del>
-<del>template &lt;&gt; struct hash&lt;std::thread::id&gt;;</del>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Add the following declarations to 19.5 [syserr], header
-<tt>&lt;system_error&gt;</tt> synopsis after // 19.5.4:
-</p>
-
-<blockquote><pre>
-<ins>
-// 19.5.x hash support
-template &lt;class T&gt; struct hash;
-template &lt;&gt; struct hash&lt;error_code&gt;;
-</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Add a new clause 19.5.X (probably after 19.5.4):
-</p>
-
-<blockquote>
-<p><ins>
-19.5.X Hash support [syserr.hash]
-</ins></p>
-
-<pre><ins>
-template &lt;&gt; struct hash&lt;error_code&gt;;
-</ins></pre>
-
-<blockquote><p><ins>
-An explicit specialization of the class template hash (20.9.13 [unord.hash])
-shall be provided
-for the type <tt>error_code</tt> suitable for using this type as key in
-unordered associative
-containers (23.5 [unord]).
-</ins></p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add the following declarations to 30.3.1.1 [thread.thread.id] just after the
-declaration of
-the comparison operators:
-</p>
-
-<blockquote><pre>
-<ins>
-template &lt;class T&gt; struct hash;
-template &lt;&gt; struct hash&lt;thread::id&gt;;
-</ins></pre></blockquote>
-</li>
-
-<li>
-<p>
-Add a new paragraph at the end of 30.3.1.1 [thread.thread.id]:
-</p>
-
-<blockquote>
-<pre><ins>
-template &lt;&gt; struct hash&lt;thread::id&gt;;
-</ins></pre>
-
-<blockquote><p><ins>
-An explicit specialization of the class template hash (20.9.13 [unord.hash])
-shall be provided
-for the type <tt>thread::id</tt> suitable for using this type as key in
-unordered associative
-containers (23.5 [unord]).
-</ins></p></blockquote>
-</blockquote>
-</li>
-
-<li>
-Issue <a href="lwg-defects.html#889">889</a> independently suggests moving the specialization
-<tt>std::hash&lt;std::thread::id&gt;</tt> to header <tt>&lt;thread&gt;</tt>.
-</li>
-</ul>
-
-<p><i>[
-2009-11-13 Alisdair adopts Daniel's suggestion and the extended note from
-<a href="lwg-defects.html#889">889</a>.
-]</i></p>
-
-
-<p><i>[
-2010-01-31 Alisdair: related to <a href="lwg-defects.html#1245">1245</a> and <a href="lwg-defects.html#978">978</a>.
-]</i></p>
-
-
-<p><i>[
-2010-02-07 Proposed wording updated by Beman, Daniel, Alisdair and Ganesh.
-]</i></p>
-
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>Strike the following specializations declared in the <tt>&lt;functional&gt;</tt> 
-synopsis p2 20.9 [function.objects] </i> </p>
-<blockquote><pre>
-<del>template &lt;&gt; struct hash&lt;std::string&gt;;</del>
-<del>template &lt;&gt; struct hash&lt;std::u16string&gt;;</del>
-<del>template &lt;&gt; struct hash&lt;std::u32string&gt;;</del>
-<del>template &lt;&gt; struct hash&lt;std::wstring&gt;;</del>
-
-<del>template &lt;&gt; struct hash&lt;std::error_code&gt;;</del>
-<del>template &lt;&gt; struct hash&lt;std::thread::id&gt;;</del>
-<del>template &lt;class Allocator&gt; struct hash&lt;std::vector&lt;bool, Allocator&gt; &gt;;</del>
-<del>template &lt;std::size_t N&gt; struct hash&lt;std::bitset&lt;N&gt; &gt;;</del></pre>
-</blockquote>
-<p><i>Add the following at the end of 20.9.13 [unord.hash]:</i></p>
-<blockquote><pre>
-<ins>template &lt;&gt; struct hash&lt;bool&gt;;
-template &lt;&gt; struct hash&lt;char&gt;;
-template &lt;&gt; struct hash&lt;signed char&gt;;
-template &lt;&gt; struct hash&lt;unsigned char&gt;;
-template &lt;&gt; struct hash&lt;char16_t&gt;;
-template &lt;&gt; struct hash&lt;char32_t&gt;;
-template &lt;&gt; struct hash&lt;wchar_t&gt;;
-template &lt;&gt; struct hash&lt;short&gt;;
-template &lt;&gt; struct hash&lt;unsigned short&gt;;
-template &lt;&gt; struct hash&lt;int&gt;;
-template &lt;&gt; struct hash&lt;unsigned int&gt;;
-template &lt;&gt; struct hash&lt;long&gt;;
-template &lt;&gt; struct hash&lt;long long&gt;;
-template &lt;&gt; struct hash&lt;unsigned long&gt;;
-template &lt;&gt; struct hash&lt;unsigned long long&gt;;
-template &lt;&gt; struct hash&lt;float&gt;;
-template &lt;&gt; struct hash&lt;double&gt;;
-template &lt;&gt; struct hash&lt;long double&gt;;
-template&lt;class T&gt; struct hash&lt;T*&gt;;</ins></pre>
-  <p><ins>
-  Specializations meeting the requirements of class template <tt>hash</tt> 20.9.13 [unord.hash].</ins></p>
-</blockquote>
-<p><i>Add the following declarations to 19.5 [syserr], header <tt>&lt;system_error&gt;</tt> 
-synopsis after // 19.5.4: </i> </p>
-<blockquote>
-  <pre><ins>// [syserr.hash] hash support
-template &lt;class T&gt; struct hash;
-template &lt;&gt; struct hash&lt;error_code&gt;;</ins></pre>
-</blockquote>
-<p><i>Add a new clause 19.5.X (probably after 19.5.4): </i> </p>
-<blockquote>
-  <p><ins>19.5.X Hash support [syserr.hash] </ins></p>
-  <pre><ins>template &lt;&gt; struct hash&lt;error_code&gt;;</ins></pre>
-    <p><ins>Specialization meeting the requirements of class template <tt>hash</tt> 20.9.13 [unord.hash].</ins></p>
-</blockquote>
-<p><i>Add the following declarations to the synopsis of <tt>&lt;string&gt;</tt> in 21.3 [string.classes]
-</i>
-</p>
-<blockquote><pre>
-<ins>// [basic.string.hash] hash support
-template &lt;class T&gt; struct hash;
-template &lt;&gt; struct hash&lt;string&gt;;
-template &lt;&gt; struct hash&lt;u16string&gt;;
-template &lt;&gt; struct hash&lt;u32string&gt;;
-template &lt;&gt; struct hash&lt;wstring&gt;;</ins></pre>
-</blockquote>
-<p><i>Add a new clause 21.4.X </i> </p>
-<blockquote>
-  <p><ins>21.4.X Hash support [basic.string.hash]></ins></p>
-  <pre><ins>template &lt;&gt; struct hash&lt;string&gt;;
-template &lt;&gt; struct hash&lt;u16string&gt;;
-template &lt;&gt; struct hash&lt;u32string&gt;;
-template &lt;&gt; struct hash&lt;wstring&gt;;</ins></pre>
-    <p><ins>Specializations meeting the requirements of class template <tt>hash</tt> 20.9.13 [unord.hash].</ins></p>
-</blockquote>
-<p><i>Add the following declarations to the synopsis of <tt>&lt;vector&gt;</tt> in
-23.3 [sequences]</i> </p>
-<blockquote><pre>
-<ins>// 21.4.x hash support
-template &lt;class T&gt; struct hash;
-template &lt;class Allocator&gt; struct hash&lt;vector&lt;bool, Allocator&gt;&gt;;</ins></pre>
-</blockquote>
-<p><i>Add a new paragraph to the end of 23.3.7 [vector.bool] </i> </p>
-<blockquote>
-  <pre><ins>template &lt;class Allocator&gt; struct hash&lt;vector&lt;bool, Allocator&gt;&gt;;</ins></pre>
-    <p><ins>Specialization meeting the requirements of class template <tt>hash</tt> 20.9.13 [unord.hash].</ins></p>
-</blockquote>
-<p><i>Add the following declarations to the synopsis of <tt>&lt;bitset&gt;</tt> in 20.6 [template.bitset] </i> </p>
-<blockquote>
-  <pre><ins>// [bitset.hash] hash support
-template &lt;class T&gt; struct hash;
-template &lt;size_t N&gt; struct hash&lt;bitset&lt;N&gt; &gt;;</ins></pre>
-</blockquote>
-<p><i>Add a new subclause 20.3.7.X [bitset.hash] </i> </p>
-<blockquote>
-  <p><ins>20.3.7.X bitset hash support [bitset.hash]</ins></p>
-  <pre><ins>template &lt;size_t N&gt; struct hash&lt;bitset&lt;N&gt; &gt;;</ins></pre>
-    <p><ins>Specialization meeting the requirements of class template <tt>hash</tt> 20.9.13 [unord.hash].</ins></p>
-</blockquote>
-<p><i>Add the following declarations to 30.3.1.1 [thread.thread.id] synopsis just after the 
-declaration of the comparison operators: </i> </p>
-<blockquote>
-  <pre><ins>template &lt;class T&gt; struct hash;
-template &lt;&gt; struct hash&lt;thread::id&gt;;</ins></pre>
-</blockquote>
-<p><i>Add a new paragraph at the end of 30.3.1.1 [thread.thread.id]: </i> </p>
-<blockquote>
-  <pre><ins>template &lt;&gt; struct hash&lt;thread::id&gt;;</ins></pre>
-  <p><ins>Specialization meeting the requirements of class template <tt>hash</tt> 20.9.13 [unord.hash].</ins></p>
-</blockquote>
-
-<p><i>Change Header &lt;typeindex&gt; synopsis 20.14.1 [type.index.synopsis] as 
-indicated:</i></p>
-<blockquote>
-<pre>namespace std {
-class type_index;
-  <ins>// [type.index.hash] hash support</ins>
-  template &lt;class T&gt; struct hash;
-  template&lt;&gt; struct hash&lt;type_index&gt;<ins>;</ins> <del> : public unary_function&lt;type_index, size_t&gt; {
-    size_t operator()(type_index index) const;
-  }</del>
-}</pre>
-</blockquote>
-
-<p><i>Change Template specialization hash&lt;type_index&gt;  [type.index.templ]
-  as indicated:</i></p>
-
-<blockquote>
-
-  <p>20.11.4 <del>Template specialization hash&lt;type_index&gt; [type.index.templ]</del>
-  <ins>Hash support [type.index.hash]</ins></p>
-
-  <pre><del>size_t operator()(type_index index) const;</del></pre>
-  <blockquote>
-    <p><del><i>Returns:</i> <tt>index.hash_code()</tt></del></p>
-  </blockquote>
-  
-  <pre><ins>template&lt;&gt; struct hash&lt;type_index&gt;;</ins></pre>
-  <p><ins>Specialization meeting the requirements of class template <tt>hash</tt> [unord.hash]. 
-  For an object <tt>index</tt> of type <tt>type_index</tt>, <tt>hash&lt;type_index&gt;()(index)</tt> 
-  shall evaluate to the same value as <tt>index.hash_code()</tt>.</ins></p>
-  
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1183"></a>1183. <tt>basic_ios::set_rdbuf</tt> may break class invariants</h3>
-<p><b>Section:</b> 27.5.5.3 [basic.ios.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.members">issues</a> in [basic.ios.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The protected member function <tt>set_rdbuf</tt> had been added during the
-process of adding move and swap semantics to IO classes. A relevant
-property of this function is described by it's effects in
-27.5.5.3 [basic.ios.members]/19:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Associates the <tt>basic_streambuf</tt> object pointed to by sb with
-this stream without calling <tt>clear()</tt>.
-</p></blockquote>
-
-<p>
-This means that implementors of or those who derive from existing IO classes
-could cause an internal state where the stream buffer could be 0, but the
-IO class has the state <tt>good()</tt>. This would break several currently existing
-implementations which rely on the fact that setting a stream buffer via the
-currently only ways, i.e. either by calling
-</p>
-
-<blockquote><pre>
-void init(basic_streambuf&lt;charT,traits&gt;* sb);
-</pre></blockquote>
-
-<p>
-or by calling
-</p>
-
-<blockquote><pre>
-basic_streambuf&lt;charT,traits&gt;* rdbuf(basic_streambuf&lt;charT,traits&gt;* sb);
-</pre></blockquote>
-
-<p>
-to set <tt>rdstate()</tt> to <tt>badbit</tt>, if the buffer is 0. This has the effect that many
-internal functions can simply check <tt>rdstate()</tt> instead of <tt>rdbuf()</tt> for being 0.
-</p>
-
-<p>
-I therefore suggest that a requirement is added for callers of <tt>set_rdbuf</tt> to
-set a non-0 value.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Open.  Martin volunteers to provide new wording, where
-<tt>set_rdbuf()</tt> sets the <tt>badbit</tt> but does not cause an
-exception to be thrown like a call to <tt>clear()</tt> would.
-</p></blockquote>
-
-<p><i>[
-2009-10-20 Martin provides wording:
-]</i></p>
-
-
-<p>
-Change 27.5.5.3 [basic.ios.members] around p. 19 as indicated:
-</p>
-
-<blockquote><pre>
-void set_rdbuf(basic_streambuf&lt;charT, traits&gt;* sb);
-</pre>
-
-<blockquote>
-<p><del>
-<i>Effects:</i> Associates the <tt>basic_streambuf</tt> object pointed
-to by <tt>sb</tt> with this stream without calling <tt>clear()</tt>.
-<i>Postconditions:</i> <tt>rdbuf() == sb</tt>.
-</del></p>
-
-<p><ins>
-<i>Effects:</i> As if:
-</ins></p>
-
-<blockquote><pre><ins>
-iostate state = rdstate();
-try { rdbuf(sb); }
-catch(ios_base::failure) {
-   if (0 == (state &amp; ios_base::badbit))
-       unsetf(badbit);
-}
-</ins></pre></blockquote>
-
-<p>
-<i>Throws:</i> Nothing.
-</p>
-
-</blockquote>
-</blockquote>
-
-<p><b>Rationale:</b></p><p>
-We need to be able to call <tt>set_rdbuf()</tt> on stream objects
-for which (<tt>rdbuf() == 0</tt>) holds without causing <tt>ios_base::failure</tt> to
-be thrown. We also don't want <tt>badbit</tt> to be set as a result of
-setting <tt>rdbuf()</tt> to 0 if it wasn't set before the call. This changed
-Effects clause maintains the current behavior (as of N2914) without
-requiring that <tt>sb</tt> be non-null.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<p>
-Several reviewers and the submitter believe that the best solution would be to add a pre-condition that the 
-buffer shall not be a null pointer value.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording provided by Daniel after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Add a new pre-condition just before 27.5.4.2 [basic.ios.members]/23 as indicated:
-<blockquote><pre>
-void set_rdbuf(basic_streambuf&lt;charT, traits&gt;* sb);
-</pre>
-<blockquote><p>
-<ins>?? <em>Requires</em>: <tt>sb != nullptr</tt>.</ins>
-<p/>
-23 <em>Effects</em>: Associates the <tt>basic_streambuf</tt> object pointed to by <tt>sb</tt> with this stream without calling <tt>clear()</tt>.
-</p>
-<p>
-24 <em>Postconditions</em>: <tt>rdbuf() == sb</tt>.
-</p>
-<p>
-25 <em>Throws</em>: Nothing.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-<p><b>Rationale:</b></p><p>
-We believe that setting a <tt>nullptr</tt> stream buffer can be prevented.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1185"></a>1185. Iterator categories and output iterators</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-07-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-(wording relative to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-pending new working paper)
-</p>
-
-<p>
-According to p3 24.2 [iterator.requirements], Forward iterators,
-Bidirectional iterators and Random Access iterators all satisfy the
-requirements for an Output iterator:
-</p>
-
-<blockquote><p>
-XXX iterators satisfy all the requirements of the input and output iterators
-and can be used whenever either kind is specified ...
-</p></blockquote>
-
-<p>
-Meanwhile, p4 goes on to contradict this:
-</p>
-
-<blockquote><p>
-Besides its category, a forward, bidirectional, or random access
-iterator can also be mutable or constant...
-</p></blockquote>
-
-<blockquote><p>
-... Constant iterators do not satisfy the requirements for output iterators
-</p></blockquote>
-
-<p>
-The latter seems to be the overriding concern, as the iterator tag
-hierarchy does not define <tt>forward_iterator_tag</tt> as multiply derived from
-both <tt>input_iterator_tag</tt> and <tt>output_iterator_tag</tt>.
-</p>
-
-<p>
-The work on concepts for iterators showed us that output iterator really
-is fundamentally a second dimension to the iterator categories, rather
-than part of the linear input -&gt; forward -&gt; bidirectional -&gt;
-random-access sequence.  It would be good to clear up these words to
-reflect that, and separately list output iterator requirements in the
-requires clauses for the appropriate algorithms and operations.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1187"></a>1187. <tt>std::decay</tt></h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jason Merrill <b>Opened:</b> 2009-08-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I notice that <tt>std::decay</tt> is specified to strip the cv-quals from
-anything but an array or pointer.  This seems incorrect for values of
-class type, since class rvalues can have cv-qualified type (3.10 [basic.lval]/9).
-</p>
-
-<p><i>[
-2009-08-09 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-See the thread starting with c++std-lib-24568 for further discussion.  And
-here is a convenience link to the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2069.html">original proposal</a>.
-Also see the closely related issue <a href="lwg-defects.html#705">705</a>.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to Ready.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Add a note to <tt>decay</tt> in 20.10.7.6 [meta.trans.other]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> This behavior is similar to the lvalue-to-rvalue (4.1),
-array-to-pointer (4.2), and function-to-pointer (4.3) conversions
-applied when an lvalue expression is used as an rvalue, but also strips
-cv-qualifiers from class types in order to more closely model by-value
-argument passing. &mdash; <i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1189"></a>1189. Awkward interface for changing the number of buckets in an unordered associative container</h3>
-<p><b>Section:</b> 23.2.5 [unord.req], 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-08-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider a typical use case: I create an <tt>unordered_map</tt> and then start
-adding elements to it one at a time. I know that it will eventually need
-to store a few million elements, so, for performance reasons, I would
-like to reserve enough capacity that none of the calls to <tt>insert</tt> will
-trigger a rehash.
-</p>
-
-<p>
-Unfortunately, the existing interface makes this awkward. The user
-naturally sees the problem in terms of the number of elements, but the
-interface presents it as buckets. If <tt>m</tt> is the map and <tt>n</tt> is the expected
-number of elements, this operation is written <tt>m.rehash(n /
-m.max_load_factor())</tt> &mdash; not very novice friendly.
-</p>
-
-<p><i>[
-2009-09-30 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-I recommend to replace "<tt>resize</tt>" by a different name like
-"<tt>reserve</tt>", because that would better match the intended
-use-case. Rational: Any existing resize function has the on-success
-post-condition that the provided size is equal to <tt>size()</tt>, which
-is not satisfied for the proposal. Reserve seems to fit the purpose of
-the actual renaming suggestion.
-</p></blockquote>
-
-<p><i>[
-2009-10-28 Ganesh summarizes alternative resolutions and expresses a
-strong preference for the second (and opposition to the first):
-]</i></p>
-
-
-<blockquote>
-<ol>
-<li>
-<p>
-In the unordered associative container requirements (23.2.5 [unord.req]),
-remove the row for
-rehash and replace it with:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a.<del>rehash</del><ins>reserve</ins>(n)</tt></td>
-<td><tt>void</tt></td>
-<td>
-Post: <tt>a.bucket_count &gt; <ins>max(</ins>a.size()<ins>, n)</ins>
-/ a.max_load_factor()</tt><del> and <tt>a.bucket_count()
-&gt;= n</tt></del>.
-</td>
-<td>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Make the corresponding change in the class synopses in 23.5.4 [unord.map], 23.5.5 [unord.multimap],  23.5.6 [unord.set], and 23.5.7 [unord.multiset].
-</p>
-</li>
-<li>
-
-<p>
-In 23.2.5 [unord.req]/9, table 98, append a new row after the last one:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a.rehash(n)</tt></td>
-<td><tt>void</tt></td>
-<td>
-Post: <tt>a.bucket_count &gt; a.size()
-/ a.max_load_factor()</tt> and <tt>a.bucket_count()
-&gt;= n</tt>.
-</td>
-<td>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</td>
-</tr>
-<tr>
-<td><ins>
-<tt>a.reserve(n)</tt>
-</ins></td>
-<td><ins>
-<tt>void</tt>
-</ins></td>
-<td><ins>
-Same as <tt>a.rehash(ceil(n / a.max_load_factor()))</tt>
-</ins></td>
-<td><ins>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</ins></td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-In 23.5.4 [unord.map]/3 in the definition of class template <tt>unordered_map</tt>, in
-23.5.5 [unord.multimap]/3 in the definition of class template <tt>unordered_multimap</tt>, in
-23.5.6 [unord.set]/3 in the definition of class template <tt>unordered_set</tt> and in
-23.5.7 [unord.multiset]/3 in the definition of class template <tt>unordered_multiset</tt>, add the
-following line after member function <tt>rehash()</tt>:
-</p>
-
-<blockquote><pre>
-void reserve(size_type n);
-</pre></blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-<p><i>[
-2009-10-28 Howard:
-]</i></p>
-
-
-<blockquote>
-<p>
-Moved to Tentatively Ready after 5 votes in favor of Ganesh's option 2 above.
-The original proposed wording now appears here:
-</p>
-
-<blockquote>
-<p>
-Informally: instead of providing <tt>rehash(n)</tt> provide <tt>resize(n)</tt>, with the
-semantics "make the container a good size for <tt>n</tt> elements".
-</p>
-
-<p>
-In the unordered associative container requirements (23.2.5 [unord.req]),
-remove the row for
-rehash and replace it with:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a.<del>rehash</del><ins>resize</ins>(n)</tt></td>
-<td><tt>void</tt></td>
-<td>
-Post: <tt>a.bucket_count &gt; <ins>max(</ins>a.size()<ins>, n)</ins>
-/ a.max_load_factor()</tt><del> and <tt>a.bucket_count()
-&gt;= n</tt></del>.
-</td>
-<td>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Make the corresponding change in the class synopses in 23.5.4 [unord.map], 23.5.5 [unord.multimap],  23.5.6 [unord.set], and 23.5.7 [unord.multiset].
-</p>
-
-</blockquote>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.2.5 [unord.req]/9, table 98, append a new row after the last one:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 87 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th><th>Return type</th><th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-<tr>
-<td><tt>a.rehash(n)</tt></td>
-<td><tt>void</tt></td>
-<td>
-Post: <tt>a.bucket_count &gt; a.size()
-/ a.max_load_factor()</tt> and <tt>a.bucket_count()
-&gt;= n</tt>.
-</td>
-<td>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</td>
-</tr>
-<tr>
-<td><ins>
-<tt>a.reserve(n)</tt>
-</ins></td>
-<td><ins>
-<tt>void</tt>
-</ins></td>
-<td><ins>
-Same as <tt>a.rehash(ceil(n / a.max_load_factor()))</tt>
-</ins></td>
-<td><ins>
-Average case linear in <tt>a.size()</tt>, worst case quadratic.
-</ins></td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-In 23.5.4 [unord.map]/3 in the definition of class template <tt>unordered_map</tt>, in
-23.5.5 [unord.multimap]/3 in the definition of class template <tt>unordered_multimap</tt>, in
-23.5.6 [unord.set]/3 in the definition of class template <tt>unordered_set</tt> and in
-23.5.7 [unord.multiset]/3 in the definition of class template <tt>unordered_multiset</tt>, add the
-following line after member function <tt>rehash()</tt>:
-</p>
-
-<blockquote><pre>
-void reserve(size_type n);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1191"></a>1191. <tt>tuple get</tt> API should respect rvalues</h3>
-<p><b>Section:</b> 20.4.2.6 [tuple.elem] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.elem">issues</a> in [tuple.elem].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>tuple get</tt> API should respect rvalues.  This would allow for moving a
-single element out of a <tt>tuple</tt>-like type.
-</p>
-
-<p><i>[
-2009-10-30 Alisdair adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-The issue of rvalue overloads of get for tuple-like types was briefly
-discussed in Santa Cruz.
-</p>
-
-<p>
-The feedback was this would be welcome, but we need full wording for the
-other types (<tt>pair</tt> and <tt>array</tt>) before advancing.
-</p>
-
-<p>
-I suggest the issue moves to Open from New as it has been considered,
-feedback given, and it has not (yet) been rejected as NAD.
-</p>
-</blockquote>
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Note that wording has been provided, and this issue becomes more important 
-now that we have added a function to support forwarding argument lists as 
-<tt>tuple</tt>s.
-
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following signature to p2 20.4.1 [tuple.general]
-</p>
-
-<blockquote><pre><ins>
-template &lt;size_t I, class ... Types&gt;
-typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type&amp;&amp; get(tuple&lt;Types...&gt; &amp;&amp;);
-</ins></pre></blockquote>
-
-<p>
-And again to 20.4.2.6 [tuple.elem].
-</p>
-
-<blockquote><pre><ins>
-template &lt;size_t I, class ... Types&gt;
-typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type&amp;&amp; get(tuple&lt;Types...&gt;&amp;&amp; t);
-</ins></pre>
-
-<blockquote>
-<p><ins>
-<i>Effects:</i> Equivalent to <tt>return std::forward&lt;typename tuple_element&lt;I, tuple&lt;Types...&gt; &gt;::type&amp;&amp;&gt;(get&lt;I&gt;(t));</tt>
-</ins></p>
-
-
-<p><ins>
-[<i>Note:</i> If a <tt>T</tt> in <tt>Types</tt> is some reference type <tt>X&amp;</tt>,
-the return type is <tt>X&amp;</tt>, not <tt>X&amp;&amp;</tt>.
-However, if the element type is non-reference type <tt>T</tt>,
-the return type is <tt>T&amp;&amp;</tt>. &mdash; <i>end note</i>]
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<p>
-Add the following signature to p1 20.2 [utility]
-</p>
-
-<blockquote><pre><ins>
-template &lt;size_t I, class T1, class T2&gt;
-typename tuple_element&lt;I, pair&lt;T1,T2&gt; &gt;::type&amp;&amp; get(pair&lt;T1, T2&gt;&amp;&amp;);
-</ins></pre></blockquote>
-
-<p>
-And to p5 20.3.4 [pair.astuple]
-</p>
-
-<blockquote><pre><ins>
-template &lt;size_t I, class T1, class T2&gt;
-typename tuple_element&lt;I, pair&lt;T1,T2&gt; &gt;::type&amp;&amp; get(pair&lt;T1, T2&gt;&amp;&amp; p);
-</ins></pre>
-
-<blockquote>
-<p><ins>
-<i>Returns:</i> If <tt>I == 0</tt> returns <tt>std::forward&lt;T1&amp;&amp;&gt;(p.first)</tt>;
-if <tt>I == 1</tt>
-returns <tt>std::forward&lt;T2&amp;&amp;&gt;(p.second)</tt>; otherwise the program is ill-formed.
-</ins></p>
-
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-
-</blockquote>
-
-</blockquote>
-
-<p>
-Add the following signature to 23.3 [sequences] <tt>&lt;array&gt;</tt> synopsis
-</p>
-
-<blockquote><pre><ins>template &lt;size_t I, class T, size_t N&gt;
-T&amp;&amp; get(array&lt;T,N&gt; &amp;&amp;);
-</ins></pre></blockquote>
-
-<p>
-And after p8 23.3.2.9 [array.tuple]
-</p>
-
-<blockquote><pre>
-<ins>template &lt;size_t I, class T, size_t N&gt;
-T&amp;&amp; get(array&lt;T,N&gt; &amp;&amp; a);
-</ins></pre>
-
-<blockquote><p><ins>
-<i>Effects:</i> Equivalent to <tt>return std::move(get&lt;I&gt;(a));</tt>
-</ins></p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1192"></a>1192. <tt>basic_string</tt> missing definitions for <tt>cbegin</tt> &#47; <tt>cend</tt> &#47; <tt>crbegin</tt> &#47; <tt>crend</tt></h3>
-<p><b>Section:</b> 21.4.3 [string.iterators] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-08-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Unlike the containers in clause 23, <tt>basic_string</tt> has definitions for
-<tt>begin()</tt> and <tt>end()</tt>, but these have not been updated to include <tt>cbegin</tt>,
-<tt>cend</tt>, <tt>crbegin</tt> and <tt>crend</tt>.
-</p>
-
-<p><i>[
-2009-10-28 Howard:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively NAD after 5 positive votes on c++std-lib.  Added
-rationale.
-</p></blockquote>
-
-<p><i>[
-2009-10-28 Alisdair disagrees:
-]</i></p>
-
-
-<blockquote>
-<p>
-I'm going to have to speak up as the dissenting voice.
-</p>
-
-<p>
-I agree the issue could be handled editorially, and that would be my
-preference if Pete feels this is appropriate. Failing that, I really
-think this issue should be accepted and moved to ready.  The other
-begin&#47;end functions all have a semantic definition for this template,
-and it is confusing if a small few are missing.
-</p>
-
-<p>
-I agree that an alternative would be to strike <em>all</em> the definitions for
-<tt>begin&#47;end&#47;rbegin&#47;rend</tt> and defer completely to the requirements tables in
-clause 23.  I think that might be confusing without a forward reference
-though, as those tables are defined in a <em>later</em> clause than the
-<tt>basic_string</tt> template itself.  If someone wants to pursue this I would
-support it, but recommend it as a separate issue.
-</p>
-
-<p>
-So my preference is strongly to move Ready over NAD, and a stronger
-preference for NAD Editorial if Pete is happy to make these changes.
-</p>
-
-</blockquote>
-
-<p><i>[
-2009-10-29 Howard:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.  Removed
-rationale to mark it NAD.  :-)
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 21.4.3 [string.iterators]
-</p>
-
-<blockquote><pre>
-iterator       begin();
-const_iterator begin() const;
-<ins>const_iterator cbegin() const;</ins>
-</pre>
-
-<p>...</p>
-
-<pre>
-iterator       end();
-const_iterator end() const;
-<ins>const_iterator cend() const;</ins>
-</pre>
-
-<p>...</p>
-
-<pre>
-reverse_iterator       rbegin();
-const_reverse_iterator rbegin() const;
-<ins>const_reverse_iterator crbegin() const;</ins>
-</pre>
-
-<p>...</p>
-
-<pre>
-reverse_iterator       rend();
-const_reverse_iterator rend() const;
-<ins>const_reverse_iterator crend() const;</ins>
-</pre>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1193"></a>1193. <tt>default_delete</tt> cannot be instantiated with incomplete types</h3>
-<p><b>Section:</b> 20.8.1.1 [unique.ptr.dltr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to the general rules of 17.6.4.8 [res.on.functions] p 2 b 5 the effects
-are undefined, if an incomplete type is used to instantiate a library template. But neither in
-20.8.1.1 [unique.ptr.dltr] nor
-in any other place of the standard such explicit allowance is given.
-Since this template is intended to be instantiated with incomplete
-types, this must be fixed.
-</p>
-
-<p><i>[
-2009-11-15 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2009-11-17 Alisdair Opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-LWG 1193 tries to support <tt>unique_ptr</tt> for incomplete types.  I believe the
-proposed wording goes too far:
-</p>
-
-<blockquote><p>
-The template parameter <tt>T</tt> of <tt>default_delete</tt> may be an
-incomplete type.
-</p></blockquote>
-
-<p>
-Do we really want to support <tt>cv-void</tt>?  Suggested ammendment:
-</p>
-
-<blockquote><p>
-The template parameter <tt>T</tt> of <tt>default_delete</tt> may be an
-incomplete type <ins>other than <tt>cv-void</tt></ins>.
-</p></blockquote>
-
-<p>
-We might also consider saying something about arrays of incomplete types.
-</p>
-
-<p>
-Did we lose support for <tt>unique_ptr&lt;function-type&gt;</tt> when the
-concept-enabled work was shelved?  If so, we might want a
-<tt>default_delete</tt> partial specialization for function types that does
-nothing.  Alternatively, function types should <em>not</em> be supported by
-default, but there is no reason a user cannot support them via their own
-deletion policy.
-</p>
-
-<p>
-Function-type support might also lead to conditionally supporting a
-function-call operator in the general case, and that seems way too inventive at
-this stage to me, even if we could largely steal wording directly from
-<tt>reference_wrapper</tt>.  <tt>shared_ptr</tt> would have similar problems
-too.
-</p>
-
-</blockquote>
-
-<p><i>[
-2010-01-24 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add two new paragraphs directly to 20.8.1.1 [unique.ptr.dltr] (before
-20.8.1.1.2 [unique.ptr.dltr.dflt]) with the following
-content:
-</p>
-
-<blockquote>
-<p><ins>
-The class template <tt>default_delete</tt> serves as the default deleter (destruction policy) for
-the class template <tt>unique_ptr</tt>.
-</ins></p>
-
-<p><ins>
-The template parameter <tt>T</tt> of <tt>default_delete</tt> may be an incomplete type.
-</ins></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1194"></a>1194. Unintended <tt>queue</tt> constructor</h3>
-<p><b>Section:</b> 23.6 [container.adaptors] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-08-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.6.3.1 [queue.defn] has the following <tt>queue</tt> constructor:
-</p>
-
-<blockquote><pre>
-template &lt;class Alloc&gt; explicit queue(const Alloc&amp;);
-</pre></blockquote>
-
-<p>
-This will be implemented like so:
-</p>
-
-<blockquote><pre>
-template &lt;class Alloc&gt; explicit queue(const Alloc&amp; a) : c(a) {}
-</pre></blockquote>
-
-<p>
-The issue is that <tt>Alloc</tt> can be anything that a container will construct
-from, for example an <tt>int</tt>.  Is this intended to compile?
-</p>
-
-<blockquote><pre>
-queue&lt;int&gt; q(5);
-</pre></blockquote>
-
-<p>
-Before the addition of this constructor, <tt>queue&lt;int&gt;(5)</tt> would not compile.
-I ask, not because this crashes, but because it is new and appears to be
-unintended.  We do not want to be in a position of accidently introducing this
-"feature" in C++0X and later attempting to remove it.
-</p>
-
-<p>
-I've picked on <tt>queue</tt>.  <tt>priority_queue</tt> and <tt>stack</tt> have
-the same issue.  Is it useful to create a <tt>priority_queue</tt> of 5
-identical elements?
-</p>
-
-<p><i>[
-Daniel, Howard and Pablo collaborated on the proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[
-This resolution includes a semi-editorial clean up, giving definitions to members
-which in some cases weren't defined since C++98.
-This resolution also offers editorially different wording for <a href="lwg-defects.html#976">976</a>,
-and it also provides wording for <a href="lwg-defects.html#1196">1196</a>.
-]</i></p>
-
-
-<p>
-Change  container.adaptors, p1:
-</p>
-
-<blockquote><p>
-The container adaptors each take a <tt>Container</tt> template parameter, and
-each constructor takes a <tt>Container</tt> reference argument. This container is
-copied into the <tt>Container</tt> member of each adaptor. If the container takes
-an allocator, then a compatible allocator may be passed in to the
-adaptor's constructor. Otherwise, normal copy or move construction is
-used for the container argument. <del>[<i>Note:</i> it is not necessary for an
-implementation to distinguish between the one-argument constructor that
-takes a <tt>Container</tt> and the one- argument constructor that takes an
-allocator_type. Both forms use their argument to construct an instance
-of the container. &mdash; <i>end note</i>]</del>
-</p></blockquote>
-
-<p>
-Change  queue.defn, p1:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt;
-class queue {
-public:
-  typedef typename Container::value_type      value_type;
-  typedef typename Container::reference       reference;
-  typedef typename Container::const_reference const_reference;
-  typedef typename Container::size_type       size_type;
-  typedef Container                           container_type;
-protected:
-  Container c;
-
-public:
-  explicit queue(const Container&amp;);
-  explicit queue(Container&amp;&amp; = Container());
-  queue(queue&amp;&amp; q)<ins>;</ins><del> : c(std::move(q.c)) {}</del>
-  template &lt;class Alloc&gt; explicit queue(const Alloc&amp;);
-  template &lt;class Alloc&gt; queue(const Container&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; queue(Container&amp;&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; queue(queue&amp;&amp;, const Alloc&amp;);
-  queue&amp; operator=(queue&amp;&amp; q)<ins>;</ins><del> { c = std::move(q.c); return *this; }</del>
-
-  bool empty() const          { return c.empty(); }
-  ...
-};
-</pre></blockquote>
-
-<p>
-Add a new section after 23.6.3.1 [queue.defn], [queue.cons]:
-</p>
-
-<blockquote>
-<p><b><tt>queue</tt> constructors [queue.cons]</b></p>
-
-<pre>
-explicit queue(const Container&amp; cont);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-explicit queue(Container&amp;&amp; cont = Container());
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-queue(queue&amp;&amp; q)
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt>.
-</p>
-
-</blockquote>
-
-<p>
-For each of the following constructors,
-if <tt>uses_allocator&lt;container_type, Alloc&gt;::value</tt> is <tt>false</tt>,
-then the constructor shall not participate in overload resolution.
-</p>
-
-<pre>
-template &lt;class Alloc&gt; 
-  explicit queue(const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  queue(const container_type&amp; cont, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt> as the first
-argument and <tt>a</tt> as the second argument.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  queue(container_type&amp;&amp; cont, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  queue(queue&amp;&amp; q, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p>
-
-</blockquote>
-
-<pre>
-queue&amp; operator=(queue&amp;&amp; q);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Assigns <tt>c</tt> with <tt>std::move(q.c)</tt>.
-</p>
-
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-
-</blockquote>
-
-
-
-</blockquote>
-
-<p>
-Add to 23.6.4.1 [priqueue.cons]:
-</p>
-
-<blockquote>
-
-<pre>
-priority_queue(priority_queue&amp;&amp; q);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt> and
-initializes <tt>comp</tt> with <tt>std::move(q.comp)</tt>.
-</p>
-
-</blockquote>
-
-<p>
-For each of the following constructors,
-if <tt>uses_allocator&lt;container_type, Alloc&gt;::value</tt> is <tt>false</tt>,
-then the constructor shall not participate in overload resolution.
-</p>
-
-<pre>
-template &lt;class Alloc&gt;
-  explicit priority_queue(const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt> and value-initializes <tt>comp</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt;
-  priority_queue(const Compare&amp; compare, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt> and initializes <tt>comp</tt>
-with <tt>compare</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt;
-  priority_queue(const Compare&amp; compare, const Container&amp; cont, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt> as the first argument
-and <tt>a</tt> as the second argument,
-and initializes <tt>comp</tt> with <tt>compare</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt;
-  priority_queue(const Compare&amp; compare, Container&amp;&amp; cont, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt> as 
-the first argument and <tt>a</tt> as the second argument,
-and initializes <tt>comp</tt> with <tt>compare</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt;
-  priority_queue(priority_queue&amp;&amp; q, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(q.c)</tt> as the
-first argument and <tt>a</tt> as the second argument, 
-and initializes <tt>comp</tt> with <tt>std::move(q.comp)</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-priority_queue&amp; operator=(priority_queue&amp;&amp; q);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Assigns <tt>c</tt> with <tt>std::move(q.c)</tt> and
-assigns <tt>comp</tt> with <tt>std::move(q.comp)</tt>.
-</p>
-
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-<p>
-Change 23.6.5.2 [stack.defn]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt;
-class stack {
-public:
-  typedef typename Container::value_type      value_type;
-  typedef typename Container::reference       reference;
-  typedef typename Container::const_reference const_reference;
-  typedef typename Container::size_type       size_type;
-  typedef Container                           container_type;
-protected:
-  Container c;
-
-public:
-  explicit stack(const Container&amp;);
-  explicit stack(Container&amp;&amp; = Container());
-  <ins>stack(stack&amp;&amp; s);</ins>
-  template &lt;class Alloc&gt; explicit stack(const Alloc&amp;);
-  template &lt;class Alloc&gt; stack(const Container&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; stack(Container&amp;&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; stack(stack&amp;&amp;, const Alloc&amp;);
-  <ins>stack&amp; operator=(stack&amp;&amp; s);</ins>
-
-  bool empty() const          { return c.empty(); }
-  ...
-};
-</pre></blockquote>
-
-<p>
-Add a new section after 23.6.5.2 [stack.defn], [stack.cons]:
-</p>
-
-<blockquote>
-<p><b><tt>stack</tt> constructors [stack.cons]</b></p>
-
-<pre>
-stack(stack&amp;&amp; s);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(s.c)</tt>.
-</p>
-
-</blockquote>
-
-<p>
-For each of the following constructors,
-if <tt>uses_allocator&lt;container_type, Alloc&gt;::value</tt> is <tt>false</tt>,
-then the constructor shall not participate in overload resolution.
-</p>
-
-<pre>
-template &lt;class Alloc&gt; 
-  explicit stack(const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>a</tt>.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  stack(const container_type&amp; cont, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>cont</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  stack(container_type&amp;&amp; cont, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(cont)</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p>
-
-</blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  stack(stack&amp;&amp; s, const Alloc&amp; a);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>std::move(s.c)</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p>
-
-</blockquote>
-
-<pre>
-stack&amp; operator=(stack&amp;&amp; s);
-</pre>
-
-<blockquote>
-
-<p>
-<i>Effects:</i> Assigns <tt>c</tt> with <tt>std::move(s.c)</tt>.
-</p>
-
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1195"></a>1195. "Diagnostic required" wording is insufficient to  prevent UB</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Several parts of the library use the notion of "Diagnostic required"
-to indicate that
-in the corresponding situation an error diagnostic should occur, e.g.
-20.8.1.1.2 [unique.ptr.dltr.dflt]/2
-</p>
-<blockquote><pre>
-void operator()(T *ptr) const;
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> calls <tt>delete</tt> on <tt>ptr</tt>. A diagnostic is required if <tt>T</tt> is an
-incomplete type.
-</p></blockquote>
-</blockquote>
-
-<p>
-The problem with this approach is that such a requirement is
-insufficient to prevent undefined behavior, if this situation occurs. 
-According to 1.3 [defns.diagnostic]
-a <i>diagnostic message</i> is defined as
-</p>
-
-<blockquote><p>
-a message belonging to an implementation-defined subset of the
-implementation's output messages.
-</p></blockquote>
-
-<p>
-which doesn't indicate any relation to an ill-formed program. In fact,
-"compiler warnings" are a typical expression of such diagnostics. This means 
-that above wording can be interpreted by compiler writers that they satisfy 
-the requirements of the standard if they just produce such a "warning", if 
-the compiler happens to compile code like this:
-</p>
-
-<blockquote><pre>
-#include &lt;memory&gt;
-
-struct Ukn; // defined somewhere else
-Ukn* create_ukn(); // defined somewhere else
-
-int main() {
- std::default_delete&lt;Ukn&gt;()(create_ukn());
-}
-</pre></blockquote>
-
-<p>
-In this and other examples discussed here it was the authors intent to
-guarantee that the
-program is ill-formed with a required diagnostic, therefore such
-wording should be used instead.
-According to the general rules outlined in 1.4 [intro.compliance] it
-should be sufficient
-to require that these situations produce an ill-formed program and the
-"diagnostic
-required" part should be implied. The proposed resolution also
-suggests to remove
-several <i>redundant</i> wording of "Diagnostics required" to ensure that
-the absence of
-such saying does not cause a misleading interpretation.
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote>
-<p>
-Move to NAD.
-</p>
-<p>
-It's not clear that there's any important difference between
-"ill-formed" and "diagnostic required". From 1.4 [intro.compliance], 
-1.3 [defns.ill.formed], and 1.3 [defns.well.formed] 
-it appears that an ill-formed program is one that is not correctly constructed 
-according to the syntax rules and diagnosable semantic rules, which means 
-that... "a conforming implementation shall issue at least one diagnostic message." The
-author's intent seems to be that we should be requiring a fatal error
-instead of a mere warning, but the standard just doesn't have language
-to express that distinction. The strongest thing we can ever require is
-a "diagnostic".
-</p>
-<p>
-The proposed rewording may be a clearer way of expressing the same thing
-that the WP already says, but such a rewording is editorial.
-</p>
-</blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Considered again.  Group disagrees that the change is technical, but likes
-it editorially.  Moved to NAD Editorial.
-</p></blockquote>
-
-<p><i>[
-2009-11-19: Moved from NAD Editorial to Open.  Please see the thread starting
-with Message c++std-lib-25916.
-]</i></p>
-
-
-<p><i>[
-2009-11-20 Daniel updated wording.
-]</i></p>
-
-
-<blockquote>
-<p>
-The following resolution differs from the previous one by avoiding the unusual
-and misleading term "shall be ill-formed", which does also not follow the core
-language style. This resolution has the advantage of a minimum impact on the
-current wording, but I would like to mention that a more intrusive solution
-might be preferrable - at least as a long-term solution: Jens Maurer suggested
-the following approach to get rid of the usage of the term "ill-formed" from the
-library by introducing a new category to existing elements to the list of 17.5.1.4 [structure.specifications]/3, e.g. "type requirements" or "static
-constraints" that define conditions that can be checked during compile-time and
-any violation would make the program ill-formed. As an example, the currently
-existing phrase 20.4.2.5 [tuple.helper]/1
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <tt>I &lt; sizeof...(Types)</tt>. The program is ill-formed if
-<tt>I</tt> is out of bounds.
-</p></blockquote>
-
-<p>
-could then be written as
-</p>
-
-<blockquote><p>
-<i>Static constraints:</i> <tt>I &lt; sizeof...(Types)</tt>.
-</p></blockquote>
-
-</blockquote>
-
-<p><i>[
-2009-11-21 Daniel updated wording.
-]</i></p>
-
-
-<p><i>[
-2009-11-22 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 20.11 [ratio]/2 as indicated:
-</p>
-
-<blockquote><p>
-Throughout this subclause, <ins>if</ins> the template argument types <tt>R1</tt>
-and <tt>R2</tt> <del>shall be</del> <ins>are not</ins> specializations of the
-<tt>ratio</tt> template<ins>, the program is ill-formed</ins>. <del>Diagnostic
-required.</del>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.11.3 [ratio.ratio]/1 as indicated:
-</p>
-
-<p>
-<ins>If t</ins><del>T</del>he template argument <tt>D</tt> <del>shall not
-be</del> <ins>is</ins> zero<del>, and</del> <ins>or</ins> the absolute values of
-the template arguments <tt>N</tt> and <tt>D</tt> <del>shall be</del> <ins>are
-not</ins> representable by type <tt>intmax_t</tt><ins>, the program is
-ill-formed</ins>. <del>Diagnostic required.</del> [..]
-</p>
-
-</li>
-
-<li>
-<p>
-Change 20.11.4 [ratio.arithmetic]/1 as indicated:
-</p>
-
-<blockquote><p>
-Implementations may use other algorithms to compute these values. If overflow
-occurs, <ins>the program is ill-formed</ins> <del>a diagnostic shall be
-issued</del>.
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.11.5 [ratio.comparison]/2 as indicated:
-</p>
-
-<blockquote><p>
-[...] Implementations may use other algorithms to compute this relationship to
-avoid overflow. If overflow occurs, <ins>the program is ill-formed</ins> <del>a
-diagnostic is required</del>.
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.1.1.2 [unique.ptr.dltr.dflt]/2 as indicated:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> calls <tt>delete</tt> on <tt>ptr</tt>. <del>A diagnostic is
-required if <tt>T</tt> is an incomplete type.</del>
-</p>
-
-<p>
-<ins><i>Remarks:</i> If <tt>T</tt> is an incomplete type, the program is
-ill-formed.</ins>
-</p>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.1.1.3 [unique.ptr.dltr.dflt1]/1 as indicated:
-</p>
-
-<blockquote><pre>
-void operator()(T* ptr) const;
-</pre>
-<blockquote>
-<p>
-<ins><i>Effects:</i></ins> <del><tt>operator()</tt></del> calls
-<tt>delete[]</tt> on <tt>ptr</tt>. <del>A diagnostic is required if <tt>T</tt>
-is an incomplete type.</del>
-</p>
-<p>
-<ins><i>Remarks:</i> If <tt>T</tt> is an incomplete type, the program is
-ill-formed.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor] as indicated: <i>[Note: This
-editorially improves the currently suggested wording of <a href="lwg-defects.html#932">932</a> by
-replacing</i>
-</p>
-<blockquote><p>
-<i>"shall be ill-formed" by "is ill-formed"]</i>
-</p></blockquote>
-
-<p>
-<i>[If
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3025.html">N3025</a>
-is accepted this bullet is applied identically in that paper as well.]</i>
-</p>
-
-<blockquote>
-<p>
--1- <i>Requires:</i> <tt>D</tt> shall be default constructible, and that
-construction shall not throw an exception. <del><tt>D</tt> shall not be a
-reference type or pointer type (diagnostic required).</del>
-</p>
-
-<p>...</p>
-
-<p><ins>
-<i>Remarks:</i> If this constructor is instantiated with a pointer type
-or reference type for the template argument <tt>D</tt>, the program is
-ill-formed.
-</ins></p>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor]/8 as indicated: <i>[Note: This
-editorially improves the currently suggested wording of <a href="lwg-defects.html#932">932</a> by
-replacing</i>
-</p>
-<blockquote><p>
-<i>"shall be ill-formed" by "is ill-formed"]</i>
-</p></blockquote>
-
-<p>
-<i>[If
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3025.html">N3025</a>
-is accepted this bullet is applied identically in that paper as well.]</i>
-</p>
-
-<blockquote><pre>
-unique_ptr(pointer p);
-</pre>
-<blockquote>
-<p>...</p>
-<p><ins>
-<i>Remarks:</i> If this constructor is instantiated with a pointer type
-or reference type for the template argument <tt>D</tt>, the program is
-ill-formed.
-</ins></p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.8.1.2.1 [unique.ptr.single.ctor]/13 as indicated:
-</p>
-
-<blockquote><p>
-[..] If <tt>d</tt> is an rvalue, it will bind to the second constructor of this
-pair <ins>and the program is ill-formed</ins>. <del>That constructor shall emit
-a diagnostic.</del> [<i>Note:</i> The diagnostic could be implemented using a
-<tt>static_assert</tt> which assures that <tt>D</tt> is not a reference type.
-&mdash; <i>end note</i>] Else <tt>d</tt> is an lvalue and will bind to the first
-constructor of this pair. [..]
-</p></blockquote>
-
-</li>
-
-<li>
-20.8.1.2.1 [unique.ptr.single.ctor]/20: Solved by <a href="lwg-defects.html#950">950</a>.
-</li>
-
-<li>
-<p>
-Change 20.8.1.3 [unique.ptr.runtime]/1 as indicated:
-</p>
-
-<blockquote>
-<p>
-A specialization for array types is provided with a slightly altered interface.
-</p>
-<ul>
-<li>
-Conversions among different types of <tt>unique_ptr&lt;T[], D&gt;</tt> or to or
-from the non-array forms of <tt>unique_ptr</tt> <del>are disallowed (diagnostic
-required)</del> <ins>produce an ill-formed program</ins>.
-</li>
-<li>...</li>
-</ul>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.12.5 [time.duration]/2-4 as indicated:
-</p>
-
-<blockquote>
-<p>
-2 <i>Requires:</i> <tt>Rep</tt> shall be an arithmetic type or a class emulating
-an arithmetic type. <del>If a program instantiates <tt>duration</tt> with a
-<tt>duration</tt> type for the template argument <tt>Rep</tt> a diagnostic is
-required.</del>
-</p>
-<p>
-<ins>3 <i>Remarks:</i> If <tt>duration</tt> is instantiated with a
-<tt>duration</tt> type for the template argument <tt>Rep</tt>, the program is
-ill-formed.</ins>
-</p>
-
-<p>
-<del>3</del> <ins>4</ins> <i><del>Requires</del> <ins>Remarks</ins>:</i>
-<ins>If</ins> <tt>Period</tt> <del>shall be</del> <ins>is not</ins> a
-specialization of <tt>ratio</tt>, <del>diagnostic required</del> <ins>the
-program is ill-formed</ins>.
-</p>
-
-<p>
-<del>4</del> <ins>5</ins> <i><del>Requires</del> <ins>Remarks</ins>:</i>
-<ins>If</ins> <tt>Period::num</tt> <del>shall be</del> <ins>is not</ins>
-positive, <del>diagnostic required</del> <ins>the program is ill-formed</ins>.
-</p>
-</blockquote>
-
-</li>
-
-<li>
-20.12.5.1 [time.duration.cons]/1+4: Apply <a href="lwg-defects.html#1177">1177</a>
-</li>
-
-<li>
-20.12.5.5 [time.duration.nonmember]/4+6+8+11: Apply <a href="lwg-defects.html#1177">1177</a>
-</li>
-
-<li>
-20.12.5.7 [time.duration.cast]/1: Apply <a href="lwg-defects.html#1177">1177</a>
-</li>
-
-<li>
-<p>
-Change 20.12.6 [time.point]/2 as indicated:
-</p>
-<blockquote><p>
-<ins>If</ins> <tt>Duration</tt> <del>shall be</del> <ins>is not</ins> an
-instance of <tt>duration</tt><ins>, the program is ill-formed</ins>.
-<del>Diagnostic required.</del>
-</p></blockquote>
-</li>
-
-<li>
-20.12.6.1 [time.point.cons]/3: Apply <a href="lwg-defects.html#1177">1177</a>
-</li>
-
-<li>
-20.12.6.7 [time.point.cast]/1: Apply <a href="lwg-defects.html#1177">1177</a>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1196"></a>1196. move semantics undefined for priority_queue</h3>
-<p><b>Section:</b> 23.6.4.1 [priqueue.cons] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-08-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class template <tt>priority_queue</tt> declares signatures for a move
-constructor and move assignment operator in its class definition.
-However, it does not provide a definition (unlike <tt>std::queue</tt>, and
-proposed resolution for <tt>std::stack</tt>.) Nor does it provide a text clause
-specifying their behaviour.
-</p>
-
-<p><i>[
-2009-08-23 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-<a href="lwg-defects.html#1194">1194</a> provides wording that solves this issue.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Mark <del>NAD Editorial</del><ins>Resolved</ins>, solved by issue <a href="lwg-defects.html#1194">1194</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1197"></a>1197. Can unordered containers have <tt>bucket_count() == 0</tt>?</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-08-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 97 "Unordered associative container requirements" in
-23.2.5 [unord.req] says:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 97 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>b.bucket(k)</tt></td>
-<td><tt>size_type</tt></td>
-<td>Returns the index of the bucket in which elements with keys 
-equivalent to <tt>k</tt> would be found, 
-if any such element existed. 
-Post: the return value shall be 
-in the range <tt>[0, 
-b.bucket_count())</tt>.</td>
-<td>Constant</td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-What should <tt>b.bucket(k)</tt> return if <tt>b.bucket_count() == 0</tt>?
-</p>
-
-<p>
-I believe allowing <tt>b.bucket_count() == 0</tt> is important.  It is a
-very reasonable post-condition of the default constructor, or of a moved-from
-container.
-</p>
-
-<p>
-I can think of several reasonable results from <tt>b.bucket(k)</tt> when
-<tt>b.bucket_count() == 0</tt>:
-</p>
-
-<ol>
-<li>
-Return 0.
-</li>
-<li>
-Return <tt>numeric_limits&lt;size_type&gt;::max()</tt>.
-</li>
-<li>
-Throw a <tt>domain_error</tt>.
-</li>
-<li>
-Requires: <tt>b.bucket_count() != 0</tt>.
-</li>
-</ol>
-
-<p><i>[
-2009-08-26 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-A forth choice would be to add the pre-condition "<tt>b.bucket_count() != 0</tt>"
-and thus imply undefined behavior if this is violated.
-</p>
-
-<p><i>[
-Howard:  I like this option too, added to the list.
-]</i></p>
-
-
-<p>
-Further on here my own favorite solution (rationale see below):
-</p>
-
-<p><b>Suggested resolution:</b></p>
-
-<p>
-[Rationale: I suggest to follow choice (1). The main reason is
-that all associative container functions which take a key argument,
-are basically free of pre-conditions and non-disrupting, therefore
-excluding choices (3) and (4). Option (2) seems a bit unexpected
-to me. It would be more natural, if several similar functions
-would exist which would also justify the existence of a symbolic
-constant like npos for this situation. The value 0 is both simple
-and consistent, it has exactly the same role as a past-the-end
-iterator value. A typical use-case is:
-</p>
-
-<blockquote><pre>
-size_type pos = m.bucket(key);
-if (pos != m.bucket_count()) {
- ...
-} else {
- ...
-}
-</pre></blockquote>
-
-<p>&mdash; end Rationale]</p>
-
-<p>
-- Change Table 97 in 23.2.5 [unord.req] as follows (Row b.bucket(k), Column "Assertion/..."):
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 97 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>b.bucket(k)</tt></td>
-<td><tt>size_type</tt></td>
-<td>Returns the index of the bucket in which elements with keys 
-equivalent to <tt>k</tt> would be found, 
-if any such element existed. 
-Post: <ins>if b.bucket_count() != 0, </ins>the return value shall be 
-in the range <tt>[0, 
-b.bucket_count())</tt><ins>, otherwise 0</ins>.</td>
-<td>Constant</td>
-</tr>
-
-</table>
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-01-25 Choice 4 put into proposed resolution section.
-]</i></p>
-
-
-<p><i>[
-2010-01-31 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Table 97 in 23.2.5 [unord.req] as follows (Row b.bucket(k), Column
-"Assertion/..."):
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 97 &mdash; Unordered associative container requirements
-(in addition to container)</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td><tt>b.bucket(k)</tt></td>
-<td><tt>size_type</tt></td>
-<td><ins>Pre:  <tt>b.bucket_count() &gt; 0</tt></ins> Returns the index of the
-bucket in which elements with keys equivalent to <tt>k</tt> would be found, if
-any such element existed. Post: the return value shall be in the range <tt>[0,
-b.bucket_count())</tt>.</td>
-<td>Constant</td>
-</tr>
-
-</table>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1198"></a>1198. Container adaptor swap: member or non-member?</h3>
-<p><b>Section:</b> 23.6 [container.adaptors] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-08-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Under 23.6 [container.adaptors] of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>
-the member function of <tt>swap</tt> of <tt>queue</tt> and <tt>stack</tt> call:
-</p>
-
-<blockquote><pre>
-swap(c, q.c);
-</pre></blockquote>
-
-<p>
-But under 23.6 [container.adaptors] of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf">N2723</a>
-these members are specified to call:
-</p>
-
-<blockquote><pre>
-c.swap(q.c);
-</pre></blockquote>
-
-<p>
-Neither draft specifies the semantics of member <tt>swap</tt> for
-<tt>priority_queue</tt> though it is declared.
-</p>
-
-<p>
-Although the distinction between member <tt>swap</tt> and non-member
-<tt>swap</tt> is not important when these adaptors are adapting standard
-containers, it may be important for user-defined containers.
-</p>
-<p>
-We (Pablo and Howard) feel that
-it is more likely for a user-defined container to support a namespace scope
-<tt>swap</tt> than a member <tt>swap</tt>, and therefore these adaptors
-should use the container's namespace scope <tt>swap</tt>.
-</p>
-
-<p><i>[
-2009-09-30 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-The outcome of this issue should be considered with the outcome of <a href="lwg-defects.html#774">774</a> both in style and in content (e.g. <a href="lwg-defects.html#774">774</a> bullet 9
-suggests to define the semantic of <tt>void
-priority_queue::swap(priority_queue&amp;)</tt> in terms of the member
-<tt>swap</tt> of the container).
-</p></blockquote>
-
-<p><i>[
-2010-03-28 Daniel update to diff against N3092.
-]</i></p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Preference to move the wording into normative text, rather than inline function definitions in the class synopsis.
-
-Move to Tenatively Ready.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 23.6.3.1 [queue.defn]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt; 
-class queue {
-   ...
-   void swap(queue&amp; q) { <ins>using std::swap;</ins>
-                          <del>c.</del>swap(<ins>c, </ins>q.c); }
-   ...
-};
-</pre></blockquote>
-
-<p>
-Change 23.6.4 [priority.queue]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = vector&lt;T&gt;, 
-          class Compare = less&lt;typename Container::value_type&gt; &gt; 
-class priority_queue { 
-    ...
-    void swap(priority_queue&amp; <ins>q</ins>)<del>;</del> <ins>{ using std::swap;</ins>
-                                     <ins>swap(c, q.c);</ins>
-                                     <ins>swap(comp, q.comp); }</ins>
-    ...
-};
-</pre></blockquote>
-
-<p>
-Change 23.6.5.2 [stack.defn]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt; 
-class stack {
-   ...
-   void swap(stack&amp; s) { <ins>using std::swap;</ins>
-                          <del>c.</del>swap(<ins>c, </ins>s.c); }
-   ...
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1199"></a>1199. Missing extended copy constructor in container adaptors</h3>
-<p><b>Section:</b> 23.6 [container.adaptors] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-08-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>queue</tt> has a constructor:
-</p>
-
-<blockquote><pre>
-template &lt;class Alloc&gt;
-  queue(queue&amp;&amp;, const Alloc&amp;);
-</pre></blockquote>
-
-<p>
-but it is missing a corresponding constructor:
-</p>
-
-<blockquote><pre>
-template &lt;class Alloc&gt;
-  queue(const queue&amp;, const Alloc&amp;);
-</pre></blockquote>
-
-<p>
-The same is true of <tt>priority_queue</tt>, and <tt>stack</tt>.  This
-"extended copy constructor" is needed for consistency and to ensure that the
-user of a container adaptor can always specify the allocator for his adaptor.
-</p>
-
-<p><i>[
-2010-02-01 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-This resolution has been harmonized with the proposed resolution to issue
-<a href="lwg-defects.html#1194">1194</a>
-]</i></p>
-
-
-<p>Change 23.6.3.1 [queue.defn], p1:</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt;
-class queue {
-public:
-  typedef typename Container::value_type      value_type;
-  typedef typename Container::reference       reference;
-  typedef typename Container::const_reference const_reference;
-  typedef typename Container::size_type       size_type;
-  typedef Container                           container_type;
-protected:
-  Container c;
-
-public:
-  explicit queue(const Container&amp;);
-  explicit queue(Container&amp;&amp; = Container());
-  queue(queue&amp;&amp; q);
-
-  template &lt;class Alloc&gt; explicit queue(const Alloc&amp;);
-  template &lt;class Alloc&gt; queue(const Container&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; queue(Container&amp;&amp;, const Alloc&amp;);
-  <ins>template &lt;class Alloc&gt; queue(const queue&amp;, const Alloc&amp;);</ins>
-  template &lt;class Alloc&gt; queue(queue&amp;&amp;, const Alloc&amp;);
-  queue&amp; operator=(queue&amp;&amp; q);
-
-  bool empty() const          { return c.empty(); }
-  ...
-};
-</pre></blockquote>
-
-<p>
-To the new section 23.6.3.2 [queue.cons], introduced
-in <a href="lwg-defects.html#1194">1194</a>, add:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  queue(const queue&amp; q, const Alloc&amp; a);
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>q.c</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p></blockquote>
-
-</blockquote>
-
-<p>Change 23.6.4 [priority.queue] as follows (I've an included an editorial change to
-  move the poorly-placed move-assignment operator):</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = vector&lt;T&gt;,
-          class Compare = less&lt;typename Container::value_type&gt; &gt;
-class priority_queue {
-public:
-  typedef typename Container::value_type      value_type;
-  typedef typename Container::reference       reference;
-  typedef typename Container::const_reference const_reference;
-  typedef typename Container::size_type       size_type;
-  typedef          Container                  container_type;
-protected:
-  Container c;
-  Compare comp;
-
-public:
-  priority_queue(const Compare&amp; x, const Container&amp;);
-  explicit priority_queue(const Compare&amp; x = Compare(), Container&amp;&amp; = Container());
-  template &lt;class InputIterator&gt;
-    priority_queue(InputIterator first, InputIterator last,
-                   const Compare&amp; x, const Container&amp;);
-  template &lt;class InputIterator&gt;
-    priority_queue(InputIterator first, InputIterator last,
-                   const Compare&amp; x = Compare(), Container&amp;&amp; = Container());
-  priority_queue(priority_queue&amp;&amp;);
-  <del>priority_queue&amp; operator=(priority_queue&amp;&amp;);</del>
-  template &lt;class Alloc&gt; explicit priority_queue(const Alloc&amp;);
-  template &lt;class Alloc&gt; priority_queue(const Compare&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; priority_queue(const Compare&amp;,
-                                        const Container&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; priority_queue(const Compare&amp;,
-                                        Container&amp;&amp;, const Alloc&amp;);
-  <ins>template &lt;class Alloc&gt; priority_queue(const priority_queue&amp;, const Alloc&amp;);</ins>
-  template &lt;class Alloc&gt; priority_queue(priority_queue&amp;&amp;, const Alloc&amp;);
-
-  <ins>priority_queue&amp; operator=(priority_queue&amp;&amp;);</ins>
-  ...
-};
-</pre></blockquote>
-
-<p>
-Add to 23.6.4.1 [priqueue.cons]:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Alloc&gt;
-  priority_queue(const priority_queue&amp; q, const Alloc&amp; a);
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>q.c</tt> as the
-first argument and <tt>a</tt> as the second argument, 
-and initializes <tt>comp</tt> with <tt>q.comp</tt>.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-Change 23.6.5.2 [stack.defn]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Container = deque&lt;T&gt; &gt;
-class stack {
-public:
-  typedef typename Container::value_type      value_type;
-  typedef typename Container::reference       reference;
-  typedef typename Container::const_reference const_reference;
-  typedef typename Container::size_type       size_type;
-  typedef Container                           container_type;
-protected:
-  Container c;
-
-public:
-  explicit stack(const Container&amp;);
-  explicit stack(Container&amp;&amp; = Container());
-  stack(stack&amp;&amp; s);
-
-  template &lt;class Alloc&gt; explicit stack(const Alloc&amp;);
-  template &lt;class Alloc&gt; stack(const Container&amp;, const Alloc&amp;);
-  template &lt;class Alloc&gt; stack(Container&amp;&amp;, const Alloc&amp;);
-  <ins>template &lt;class Alloc&gt; stack(const stack&amp;, const Alloc&amp;);</ins>
-  template &lt;class Alloc&gt; stack(stack&amp;&amp;, const Alloc&amp;);
-  stack&amp; operator=(stack&amp;&amp; s);
-
-  bool empty() const          { return c.empty(); }
-  ...
-};
-</pre></blockquote>
-
-<p>
-To the new section 23.6.5.3 [stack.cons], introduced
-in <a href="lwg-defects.html#1194">1194</a>, add:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class Alloc&gt; 
-  stack(const stack&amp; s, const Alloc&amp; a);
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> Initializes <tt>c</tt> with <tt>s.c</tt> as the
-first argument and <tt>a</tt> as the second argument.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1204"></a>1204. Global permission to move</h3>
-<p><b>Section:</b> 17.6.4.9 [res.on.arguments] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.arguments">issues</a> in [res.on.arguments].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When a library function binds an rvalue reference parameter to an argument, the
-library must be able to assume that the bound argument is a temporary, and not
-a moved-from lvalue.  The reason for this is that the library function must be
-able to modify that argument without concern that such modifications will corrupt
-the logic of the calling code.  For example:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class A&gt;
-void
-vector&lt;T, A&gt;::push_back(value_type&amp;&amp; v)
-{
-    <span style="color:#C80000">// This function should move from v, potentially modifying</span>
-    <span style="color:#C80000">// the object v is bound to.</span>
-}
-</pre></blockquote>
-
-<p>
-If <tt>v</tt> is truly bound to a temporary, then <tt>push_back</tt> has the
-<em>only</em> reference to this temporary in the entire program.  Thus any
-modifications will be invisible to the rest of the program.
-</p>
-
-<p>
-If the client supplies <tt>std::move(x)</tt> to <tt>push_back</tt>, the onus is
-on the client to ensure that the value of <tt>x</tt> is no longer important to
-the logic of his program after this statement.  I.e. the client is making a statement
-that <tt>push_back</tt> may treat <tt>x</tt> as a temporary.
-</p>
-
-<blockquote><p><em>
-The above statement is the very foundation upon which move semantics is based.
-</em></p></blockquote>
-
-<p>
-The standard is currently lacking a global statement to this effect.  I propose
-the following addition to 17.6.4.9 [res.on.arguments]:
-</p>
-
-<blockquote>
-<p>
-Each of the following statements applies to all arguments to functions
-defined in the C++ standard library, unless explicitly stated otherwise.
-</p>
-<ul>
-<li>
-If an argument to a function has an invalid value (such as a value
-outside the domain of the function, or a pointer invalid for its
-intended use), the behavior is undefined.
-</li>
-<li>
-If a function argument is described as being an array, the pointer
-actually passed to the function shall have a value such that all address
-computations and accesses to objects (that would be valid if the pointer
-did point to the first element of such an array) are in fact valid.
-</li>
-<li><ins>
-If a function argument binds to an rvalue reference parameter, the C++
-standard library may assume that this parameter is a unique reference
-to this argument.  If the parameter is a generic parameter of the
-form <tt>T&amp;&amp;</tt>, and an lvalue of type <tt>A</tt> is bound,
-then the binding is considered to be to an lvalue reference
-(14.8.2.1 [temp.deduct.call]) and thus not covered by this clause.
-[<i>Note:</i>
-If a program casts an lvalue to an rvalue while passing that lvalue to
-a library function (e.g. <tt>move(x)</tt>), then the program is effectively
-asking the library to treat that lvalue as a temporary.  The library is at
-liberty to optimize away aliasing checks which might be needed if the argument
-were an lvalue.
-&mdash; <i>end note</i>]
-</ins></li>
-</ul>
-
-</blockquote>
-
-<p>
-Such a global statement will eliminate the need for piecemeal statements such as
-23.2.1 [container.requirements.general]&#47;13:
-</p>
-
-<blockquote><p>
-An object bound to an rvalue reference parameter of a member function of
-a container shall not be an element of that container; no diagnostic
-required.
-</p></blockquote>
-
-<p>
-Additionally this clarifies that move assignment operators need not perform the
-traditional <tt>if (this != &amp;rhs)</tt> test commonly found (and needed) in
-copy assignment operators.
-</p>
-
-<p><i>[
-2009-09-13 Niels adds:
-]</i></p>
-
-
-<blockquote><p>
-Note: This resolution supports the change of 27.9.1.3 [filebuf.assign]&#47;1,
-proposed by LWG <a href="lwg-defects.html#900">900</a>.
-</p></blockquote>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a bullet to 17.6.4.9 [res.on.arguments]:
-</p>
-
-<blockquote>
-<p>
-Each of the following statements applies to all arguments to functions
-defined in the C++ standard library, unless explicitly stated otherwise.
-</p>
-<ul>
-<li>
-If an argument to a function has an invalid value (such as a value
-outside the domain of the function, or a pointer invalid for its
-intended use), the behavior is undefined.
-</li>
-<li>
-If a function argument is described as being an array, the pointer
-actually passed to the function shall have a value such that all address
-computations and accesses to objects (that would be valid if the pointer
-did point to the first element of such an array) are in fact valid.
-</li>
-<li><ins>
-If a function argument binds to an rvalue reference parameter, the C++
-standard library may assume that this parameter is a unique reference
-to this argument.  If the parameter is a generic parameter of the
-form <tt>T&amp;&amp;</tt>, and an lvalue of type <tt>A</tt> is bound,
-then the binding is considered to be to an lvalue reference
-(14.8.2.1 [temp.deduct.call]) and thus not covered by this clause.
-[<i>Note:</i>
-If a program casts an lvalue to an rvalue while passing that lvalue to
-a library function (e.g. <tt>move(x)</tt>), then the program is effectively
-asking the library to treat that lvalue as a temporary.  The library is at
-liberty to optimize away aliasing checks which might be needed if the argument
-were an lvalue.
-&mdash; <i>end note</i>]
-</ins></li>
-</ul>
-</blockquote>
-
-<p>
-Delete 23.2.1 [container.requirements.general]&#47;13:
-</p>
-
-<blockquote><p><del>
-An object bound to an rvalue reference parameter of a member function of
-a container shall not be an element of that container; no diagnostic
-required.
-</del></p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1205"></a>1205. Some algorithms could more clearly document their handling of empty ranges</h3>
-<p><b>Section:</b> 25 [algorithms] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#algorithms">active issues</a> in [algorithms].</p>
-<p><b>View all other</b> <a href="lwg-index.html#algorithms">issues</a> in [algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are a number of algorithms whose result might depend on the
-handling of an empty range.  In some cases the result is not clear,
-while in others it would help readers to clearly mention the result
-rather than require some subtle intuition of the supplied wording.
-</p>
-
-<p>
-25.2.1 [alg.all_of]
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <tt>true</tt> if <tt>pred(*i)</tt> is <tt>true</tt> for every
-iterator <tt>i</tt> in the range <tt>[first,last)</tt>, ...
-</p></blockquote>
-
-<p>
-What does this mean if the range is empty?
-</p>
-
-<p>
-I believe that we intend this to be <tt>true</tt> and suggest a
-non-normative note to clarify:
-</p>
-
-<p>
-Add to p1 25.2.1 [alg.all_of]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty. 
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-25.2.3 [alg.none_of]
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <tt>true</tt> if <tt>pred(*i)</tt> is <tt>false</tt> for every
-iterator <tt>i</tt> in the range <tt>[first,last)</tt>, ...
-</p></blockquote>
-
-<p>
-What does this mean if the range empty?
-</p>
-
-<p>
-I believe that we intend this to be <tt>true</tt> and suggest a
-non-normative note to clarify:
-</p>
-
-<p>
-Add to p1 25.2.3 [alg.none_of]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty. 
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-25.2.2 [alg.any_of]
-</p>
-
-<p>
-The specification for an empty range is actually fairly clear in this
-case, but a note wouldn't hurt and would be consistent with proposals
-for <tt>all_of</tt>/<tt>none_of</tt> algorithms.
-</p>
-
-<p>
-Add to p1 25.2.2 [alg.any_of]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>false</tt> if <tt>[first,last)</tt> is empty. 
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-25.2.6 [alg.find.end]
-</p>
-
-<p>
-what does this mean if <tt>[first2,last2)</tt> is empty?
-</p>
-
-<p>
-I believe the wording suggests the algorithm should return
-<tt>last1</tt> in this case, but am not 100% sure. Is this in fact the
-correct result anyway? Surely an empty range should always match and the
-naive expected result would be <tt>first1</tt>?
-</p>
-
-<p>
-My proposed wording is a note to clarify the current semantic:
-</p>
-
-<p>
-Add to p2 25.2.6 [alg.find.end]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
-empty. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-I would prefer a normative wording treating empty ranges specially, but
-do not believe we can change semantics at this point in the process,
-unless existing implementations actually yield this result:
-</p>
-
-<p>
-Alternative wording: (NOT a note)
-</p>
-<p>
-Add to p2 25.2.6 [alg.find.end]:
-</p>
-<blockquote><p>
-Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty.
-</p></blockquote>
-
-<p>
-25.2.7 [alg.find.first.of]
-</p>
-
-<p>
-The phrasing seems precise when <tt>[first2, last2)</tt> is empty, but a small
-note to confirm the reader's understanding might still help.
-</p>
-
-<p>
-Add to p2 25.2.7 [alg.find.first.of]
-</p>
-<blockquote><p>
-[<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
-empty. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-25.2.13 [alg.search]
-</p>
-
-<p>
-What is the expected result if <tt>[first2, last2)</tt> is empty?
-</p>
-
-<p>
-I believe the wording suggests the algorithm should return <tt>last1</tt> in this
-case, but am not 100% sure. Is this in fact the correct result anyway? 
-Surely an empty range should always match and the naive expected result
-would be <tt>first1</tt>?
-</p>
-
-<p>
-My proposed wording is a note to clarify the current semantic:
-</p>
-
-<p>
-Add to p2 25.2.13 [alg.search]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
-empty. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-Again, I would prefer a normative wording treating empty ranges
-specially, but do not believe we can change semantics at this point in
-the process, unless existing implementations actually yield this result:
-</p>
-
-<p>
-Alternative wording: (NOT a note)
-</p>
-<p>
-Add to p2 25.2.13 [alg.search]:
-</p>
-
-<blockquote><p>
-Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty.
-</p></blockquote>
-
-<p>
-25.3.13 [alg.partitions]
-</p>
-
-<p>
-Is an empty range partitioned or not?
-</p>
-
-<p>
-Proposed wording:
-</p>
-
-<p>
-Add to p1 25.3.13 [alg.partitions]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty. 
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-25.4.5.1 [includes]
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <tt>true</tt> if every element in the range
-<tt>[first2,last2)</tt> is contained in the range
-<tt>[first1,last1)</tt>. ...
-</p></blockquote>
-
-<p>
-I really don't know what this means if <tt>[first2,last2)</tt> is empty.
-I could loosely guess that this implies empty ranges always match, and
-my proposed wording is to clarify exactly that:
-</p>
-
-<p>
-Add to p1 25.4.5.1 [includes]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> Returns <tt>true</tt> if <tt>[first2,last2)</tt> is empty.
-&mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-25.4.6.2 [pop.heap]
-</p>
-
-<p>
-The effects clause is invalid if the range <tt>[first,last)</tt> is empty, unlike
-all the other heap alogorithms.  The should be called out in the
-requirements.
-</p>
-
-<p>
-Proposed wording:
-</p>
-<p>
-Revise p2 25.4.6.2 [pop.heap]
-</p>
-
-<blockquote><p>
-<i>Requires:</i> The range <tt>[first,last)</tt> shall be a valid
-<ins>non-empty</ins> heap.
-</p></blockquote>
-
-<p>
-[Editorial] Reverse order of 25.4.6.2 [pop.heap] p1 and p2.
-</p>
-
-<p>
-25.4.7 [alg.min.max]
-</p>
-
-<p>
-<tt>minmax_element</tt> does not clearly specify behaviour for an empty
-range in the same way that <tt>min_element</tt> and <tt>max_element</tt> do.
-</p>
-
-<p>
-Add to p31 25.4.7 [alg.min.max]:
-</p>
-
-<blockquote><p>
-Returns <tt>make_pair(first, first)</tt> if <tt>first == last</tt>.
-</p></blockquote>
-
-<p>
-25.4.8 [alg.lex.comparison]
-</p>
-
-<p>
-The wording here seems quite clear, especially with the sample algorithm
-implementation.  A note is recommended purely for consistency with the
-rest of these issue resolutions:
-</p>
-
-<p>
-Add to p1 25.4.8 [alg.lex.comparison]:
-</p>
-
-<blockquote><p>
-[<i>Note:</i> An empty sequence is lexicographically less than any other
-non-empty sequence, but not to another empty sequence. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p><i>[
-2009-11-11 Howard changes Notes to Remarks and changed <tt>search</tt> to
-return <tt>first1</tt> instead of <tt>last1</tt>.
-]</i></p>
-
-
-<p><i>[
-2009-11-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 25.2.1 [alg.all_of]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty. 
-</ins></p></blockquote>
-
-<p>
-Add to 25.2.2 [alg.any_of]:
-</p>
-
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>false</tt> if <tt>[first,last)</tt> is empty. 
-</ins></p></blockquote>
-
-<p>
-Add to 25.2.3 [alg.none_of]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty. 
-</ins></p></blockquote>
-
-<p>
-Add to 25.2.6 [alg.find.end]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
-empty.
-</ins></p></blockquote>
-
-<p>
-Add to 25.2.7 [alg.find.first.of]
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is
-empty.
-</ins></p></blockquote>
-
-<p>
-Add to 25.2.13 [alg.search]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is
-empty.
-</ins></p></blockquote>
-
-<p>
-Add to 25.3.13 [alg.partitions]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>true</tt> if <tt>[first,last)</tt> is empty. 
-</ins></p></blockquote>
-
-<p>
-Add to 25.4.5.1 [includes]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> Returns <tt>true</tt> if <tt>[first2,last2)</tt> is empty. 
-</ins></p></blockquote>
-
-<p>
-Revise p2 25.4.6.2 [pop.heap]
-</p>
-<blockquote><p>
-<i>Requires:</i> The range <tt>[first,last)</tt> shall be a valid
-<ins>non-empty</ins> heap.
-</p></blockquote>
-
-<p>
-[Editorial] 
-</p>
-<blockquote><p>
-Reverse order of 25.4.6.2 [pop.heap] p1 and p2.
-</p></blockquote>
-
-<p>
-Add to p35 25.4.7 [alg.min.max]:
-</p>
-<blockquote><pre>
-template&lt;class ForwardIterator, class Compare&gt;
-  pair&lt;ForwardIterator, ForwardIterator&gt;
-    minmax_element(ForwardIterator first, ForwardIterator last, Compare comp);
-</pre>
-<blockquote><p>
-<i>Returns:</i> <tt>make_pair(m, M)</tt>, where <tt>m</tt> is the first iterator in
-<tt>[first,last)</tt> such that no iterator in the range refers to a smaller
-element, and where <tt>M</tt> is the last iterator in <tt>[first,last)</tt> such that no
-iterator in the range refers to a larger element. 
-<ins>Returns <tt>make_pair(first, first)</tt> if <tt>first == last</tt>.</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Add to 25.4.8 [alg.lex.comparison]:
-</p>
-<blockquote><p><ins>
-<i>Remarks:</i> An empty sequence is lexicographically less than any other
-non-empty sequence, but not less than another empty sequence.
-</ins></p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1206"></a>1206. Incorrect requires for <tt>move_backward</tt> and <tt>copy_backward</tt></h3>
-<p><b>Section:</b> 25.3.2 [alg.move] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-25.3.2 [alg.move], p6 says:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class BidirectionalIterator1, class BidirectionalIterator2&gt;
-  BidirectionalIterator2
-    move_backward(BidirectionalIterator1 first,
-                  BidirectionalIterator1 last,
-                  BidirectionalIterator2 result);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-<i>Requires:</i> <tt>result</tt> shall not be in the range
-<tt>[first,last)</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-This is essentially an "off-by-one" error.
-</p>
-
-<p>
-When <tt>result == last</tt>, which
-<em>is</em> allowed by this specification, then the range <tt>[first, last)</tt>
-is being move assigned into the range <tt>[first, last)</tt>.  The <tt>move</tt>
-(forward) algorithm doesn't allow self move assignment, and neither should
-<tt>move_backward</tt>.  So <tt>last</tt> should be included in the range which
-<tt>result</tt> can not be in.
-</p>
-
-<p>
-Conversely, when <tt>result == first</tt>, which <em>is not</em> allowed by this
-specification, then the range <tt>[first, last)</tt>
-is being move assigned into the range <tt>[first - (last-first), first)</tt>.
-I.e. into a <em>non-overlapping</em> range.  Therefore <tt>first</tt> should
-not be included in the range which <tt>result</tt> can not be in.
-</p>
-
-<p>
-The same argument applies to <tt>copy_backward</tt> though copy assigning elements
-to themselves (<tt>result == last</tt>) should be harmless (though is disallowed
-by <tt>copy</tt>).
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to Ready.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25.3.2 [alg.move], p6:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class BidirectionalIterator1, class BidirectionalIterator2&gt;
-  BidirectionalIterator2
-    move_backward(BidirectionalIterator1 first,
-                  BidirectionalIterator1 last,
-                  BidirectionalIterator2 result);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-<i>Requires:</i> <tt>result</tt> shall not be in the range
-<tt><del>[</del><ins>(</ins>first,last<ins>]</ins><del>)</del></tt>.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Change 25.3.1 [alg.copy], p13:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class BidirectionalIterator1, class BidirectionalIterator2&gt;
-  BidirectionalIterator2
-    copy_backward(BidirectionalIterator1 first,
-                  BidirectionalIterator1 last,
-                  BidirectionalIterator2 result);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-<i>Requires:</i> <tt>result</tt> shall not be in the range
-<tt><del>[</del><ins>(</ins>first,last<ins>]</ins><del>)</del></tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1207"></a>1207. Underspecified <tt>std::list</tt> operations?</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Lo&iuml;c Joly <b>Opened:</b> 2009-09-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It looks to me like some operations of <tt>std::list</tt>
-(<tt>sort</tt>, <tt>reverse</tt>, <tt>remove</tt>, <tt>unique</tt> &amp;
-<tt>merge</tt>) do not specify the validity of iterators, pointers &amp;
-references to elements of the list after those operations. Is it implied
-by some other text in the standard?
-</p>
-
-<p>
-I believe <tt>sort</tt> &amp; <tt>reverse</tt> do not invalidating
-anything, <tt>remove</tt> &amp; <tt>unique</tt> only invalidates what
-refers to erased elements, <tt>merge</tt> does not invalidate anything
-(with the same precision as <tt>splice</tt> for elements who changed of
-container). Are those assumptions correct ?
-</p>
-
-<p><i>[
-2009-12-08 Jonathan Wakely adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-23.2.1 [container.requirements.general] paragraph 11 says iterators
-aren't invalidated unless specified, so I don't think it needs to be repeated on
-every function that doesn't invalidate iterators. <tt>list::unique</tt> says it
-"eliminates" elements, that should probably be "erases" because IMHO that term
-is used elsewhere and so makes it clearer that iterators to the erased elements
-are invalidated.
-</p>
-
-<p>
-<tt>list::merge</tt> coud use the same wording as <tt>list::splice</tt> w.r.t
-iterators and references to moved elements.
-</p>
-
-<p>
-Suggested resolution:
-</p>
-
-<p>
-In 23.3.5.5 [list.ops] change paragraph 19
-</p>
-
-<blockquote><pre>
-                                 void unique();
-template &lt;class BinaryPredicate&gt; void unique(BinaryPredicate binary_pred);
-</pre>
-<blockquote><p>
-<i>Effects:</i> <del>Eliminates</del> <ins>Erases</ins> all but the first
-element from every consecutive group ...
-</p></blockquote>
-</blockquote>
-
-<p>
-Add to the end of paragraph 23
-</p>
-
-<blockquote><pre>
-void                          merge(list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-<i>Effects:</i> ... that is, for every iterator <tt>i</tt>, in the range other
-than the first, the condition <tt>comp(*i, *(i - 1)</tt> will be false.
-<ins>Pointers and references to the moved elements of <tt>x</tt> now refer to
-those same elements but as members of <tt>*this</tt>. Iterators referring to the
-moved elements will continue to refer to their elements, but they now behave as
-iterators into <tt>*this</tt>, not into <tt>x</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2009-12-12 Lo&iuml;c adds wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Alisdair opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-I object to the current resolution of #1207.  I believe it is overly strict with
-regard to <tt>list</tt> end iterators, being the only mutating operations to
-require such stability.
-</p>
-
-<p>
-More importantly, the same edits need to be applied to <tt>forward_list</tt>,
-which uses slightly different words to describe some of these operations so may
-require subtly different edits (not checked.)
-</p>
-
-<p>
-I am prepared to pick up the <tt>end()</tt> iterator as a separate (new) issue,
-as part of the FCD ballot review (BSI might tell me 'no' first ;~) but I do want
-to see <tt>forward_list</tt> adjusted at the same time.
-</p>
-</blockquote>
-
-<p><i>[
-2010-03-28 Daniel adds the first 5 bullets in an attempt to address Alisdair's
-concerns.
-]</i></p>
-
-
-
-<p><i>[
-2010 Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-The wording looks good.
-
-Move to Tentatively Ready.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-
-<li>
-<p>
-Change 23.3.4.6 [forwardlist.ops]/12 as indicated:
-</p>
-
-<blockquote><pre>
-void remove(const T&amp; value);
-template &lt;class Predicate&gt; void remove_if(Predicate pred);
-</pre>
-
-<blockquote><p>
-12 <i>Effects:</i> Erases all the elements in the list referred by a list
-iterator <tt>i</tt> for which the following conditions hold: <tt>*i == value
-(for remove()), pred(*i)</tt> is true (<tt>for remove_if()</tt>). This operation
-shall be stable: the relative order of the elements that are not removed is the
-same as their relative order in the original list. <ins>Invalidates only the
-iterators and references to the erased elements.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.4.6 [forwardlist.ops]/15 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class BinaryPredicate&gt; void unique(BinaryPredicate pred);
-</pre>
-
-<blockquote><p>
-15 <i>Effects:</i>: <del>Eliminates</del><ins>Erases</ins> all but the first
-element from every consecutive group of equal elements referred to by the
-iterator <tt>i</tt> in the range <tt>[first + 1,last)</tt> for which <tt>*i ==
-*(i-1)</tt> (for the version with no arguments) or <tt>pred(*i, *(i - 1))</tt>
-(for the version with a predicate argument) holds. <ins>Invalidates only the
-iterators and references to the erased elements.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.4.6 [forwardlist.ops]/19 as indicated:
-</p>
-
-<blockquote><pre>
-void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp)
-</pre>
-
-<blockquote>
-<p>
-[..]
-</p>
-
-<p>
-19 <i>Effects:</i>: Merges <tt>x</tt> into <tt>*this</tt>. This operation shall
-be stable: for equivalent elements in the two lists, the elements from
-<tt>*this</tt> shall always precede the elements from <tt>x</tt>. <tt>x</tt> is
-empty after the merge. If an exception is thrown other than by a comparison
-there are no effects. <ins>Pointers and references to the moved elements of
-<tt>x</tt> now refer to those same elements but as members of <tt>*this</tt>.
-Iterators referring to the moved elements will continue to refer to their
-elements, but they now behave as iterators into <tt>*this</tt>, not into
-<tt>x</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.4.6 [forwardlist.ops]/22 as indicated:
-</p>
-
-<blockquote><pre>
-void sort();
-template &lt;class Compare&gt; void sort(Compare comp);
-</pre>
-
-<blockquote>
-<p>
-[..]
-</p>
-
-<p>
-22 <i>Effects:</i>: Sorts the list according to the <tt>operator&lt;</tt> or the
-<tt>comp</tt> function object. This operation shall be stable: the relative
-order of the equivalent elements is preserved. If an exception is thrown the
-order of the elements in <tt>*this</tt> is unspecified. <ins>Does not affect the
-validity of iterators and references.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.4.6 [forwardlist.ops]/24 as indicated:
-</p>
-
-<blockquote><pre>
-void reverse();
-</pre>
-
-<blockquote><p>
-24 <i>Effects:</i>: Reverses the order of the elements in the list. <ins>Does
-not affect the validity of iterators and references.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.5.5 [list.ops], p15:
-</p>
-
-<blockquote><pre>
-                           void remove(const T&amp; value);
-template &lt;class Predicate&gt; void remove_if(Predicate pred);
-</pre>
-<blockquote><p>
-<i>Effects:</i> Erases all the elements in the list referred by a list iterator
-<tt>i</tt> for which the following conditions hold: <tt>*i == value, pred(*i) !=
-false</tt>.  <ins>Invalidates only the iterators and references to the erased
-elements.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.5.5 [list.ops], p19:
-</p>
-
-<blockquote><pre>
-                                 void unique();
-template &lt;class BinaryPredicate&gt; void unique(BinaryPredicate binary_pred);
-</pre>
-<blockquote><p>
-<i>Effects:</i> <del>Eliminates</del> <ins>Erases</ins> all but the first
-element from every consecutive group of equal elements referred to by the
-iterator <tt>i</tt> in the range <tt>[first + 1,last)</tt> for which <tt>*i ==
-*(i-1)</tt> (for the version of <tt>unique</tt> with no arguments) or
-<tt>pred(*i, *(i - 1))</tt> (for the version of <tt>unique</tt> with a predicate
-argument) holds. <ins>Invalidates only the iterators and references to the
-erased elements.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.5.5 [list.ops], p23:
-</p>
-
-<blockquote><pre>
-void                          merge(list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);
-</pre>
-<blockquote><p>
-<i>Effects:</i> If <tt>(&amp;x == this)</tt> does nothing; otherwise, merges the
-two sorted ranges <tt>[begin(), end())</tt> and <tt>[x.begin(), x.end())</tt>.
-The result is a range in which the elements will be sorted in non-decreasing
-order according to the ordering defined by <tt>comp</tt>; that is, for every
-iterator <tt>i</tt>, in the range other than the first, the condition
-<tt>comp(*i, *(i - 1)</tt> will be false.
-<ins>Pointers and references to the moved elements of <tt>x</tt> now refer to
-those same elements but as members of <tt>*this</tt>. Iterators referring to the
-moved elements will continue to refer to their elements, but they now behave as
-iterators into <tt>*this</tt>, not into <tt>x</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.5.5 [list.ops], p26:
-</p>
-
-<blockquote><pre>
-void reverse();
-</pre>
-<blockquote><p>
-<i>Effects:</i> Reverses the order of the elements in the list.
-<ins>Does not affect the validity of iterators and references.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.3.5.5 [list.ops], p30:
-</p>
-
-<blockquote><pre>
-                         void sort();
-template &lt;class Compare&gt; void sort(Compare comp);
-</pre>
-<blockquote><p>
-<i>Effects:</i> Sorts the list according to the <tt>operator&lt;</tt> or a
-<tt>Compare</tt> function object.
-<ins>Does not affect the validity of iterators and references.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1208"></a>1208. <tt>valarray initializer_list</tt> constructor has incorrect effects</h3>
-<p><b>Section:</b> 26.6.2.2 [valarray.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-09-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.cons">issues</a> in [valarray.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-26.6.2.2 [valarray.cons] says:
-</p>
-
-<blockquote>
-<pre>
-valarray(initializer_list&lt;T&gt; il);
-</pre>
-<blockquote><p>
-<i>Effects:</i> Same as <tt>valarray(il.begin(), il.end())</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-But there is no <tt>valarray</tt> constructor taking two <tt>const T*</tt>.
-</p>
-
-<p><i>[
-2009-10-29 Howard:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.6.2.2 [valarray.cons]:
-</p>
-
-<blockquote>
-<pre>
-valarray(initializer_list&lt;T&gt; il);
-</pre>
-<blockquote><p>
-<i>Effects:</i> Same as <tt>valarray(il.begin(), il.<del>end</del><ins>size</ins>())</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1209"></a>1209. <tt>match_results</tt> should be moveable</h3>
-<p><b>Section:</b> 28.10.1 [re.results.const] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2009-09-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.results.const">active issues</a> in [re.results.const].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results.const">issues</a> in [re.results.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Working Draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>,
-<tt>match_results</tt> lacks a move constructor and move
-assignment operator. Because it owns dynamically allocated memory, it
-should be moveable.
-</p>
-
-<p>
-As far as I can tell, this isn't tracked by an active issue yet; Library
-Issue <a href="lwg-defects.html#723">723</a> doesn't talk about <tt>match_results</tt>.
-</p>
-
-<p><i>[
-2009-09-21 Daniel provided wording.
-]</i></p>
-
-
-<p><i>[
-2009-11-18: Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Add the following member declarations to 28.10 [re.results]/3:
-</p>
-
-<blockquote><pre>
-// 28.10.1, construct/copy/destroy:
-explicit match_results(const Allocator&amp; a = Allocator());
-match_results(const match_results&amp; m);
-<ins>match_results(match_results&amp;&amp; m);</ins>
-match_results&amp; operator=(const match_results&amp; m);
-<ins>match_results&amp; operator=(match_results&amp;&amp; m);</ins>
-~match_results();
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Add the following new prototype descriptions to 28.10.1 [re.results.const]
-using the table numbering of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-(referring to the table titled "<tt>match_results</tt> assignment operator effects"):
-</p>
-
-<blockquote>
-<pre>
-match_results(const match_results&amp; m);
-</pre>
-
-<blockquote><p>
-4 <i>Effects:</i> Constructs an object of class <tt>match_results</tt>, as a
-copy of <tt>m</tt>.
-</p></blockquote>
-
-<pre>
-<ins>match_results(match_results&amp;&amp; m);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins>5 <i>Effects:</i> Move-constructs an object of class <tt>match_results</tt>
-from <tt>m</tt> satisfying the same postconditions as Table 131. Additionally
-the stored <tt>Allocator</tt> value is move constructed from <tt>m.get_allocator()</tt>.
-After the initialization of <tt>*this</tt> sets <tt>m</tt> to an unspecified but valid
-state.</ins>
-</p>
-
-<p>
-<ins>6 <i>Throws:</i> Nothing if the allocator's move constructor throws nothing.</ins>
-</p>
-</blockquote>
-
-<pre>
-match_results&amp; operator=(const match_results&amp; m);
-</pre>
-
-<blockquote><p>
-7 <i>Effects:</i> Assigns <tt>m</tt> to <tt>*this</tt>. The postconditions of this function are
-indicated in Table 131.
-</p></blockquote>
-
-<pre>
-<ins>match_results&amp; operator=(match_results&amp;&amp; m);</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins>8 <i>Effects:</i> Move-assigns <tt>m</tt> to <tt>*this</tt>. The postconditions of this
-function are indicated in Table 131. After the assignment, <tt>m</tt> is in
-a valid but unspecified state.</ins>
-</p>
-
-<p>
-<ins>9 <i>Throws:</i> Nothing.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1210"></a>1210. Iterator reachability should not require a container</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-p6 Iterator requirements 24.2 [iterator.requirements]
-</p>
-
-<blockquote><p>
-An iterator <tt>j</tt> is called reachable from an iterator <tt>i</tt> if and only if
-there is a finite sequence of applications of the expression <tt>++i</tt> that
-makes <tt>i == j</tt>. If <tt>j</tt> is reachable from <tt>i</tt>, they refer to the same
-container.
-</p></blockquote>
-
-<p>
-A good example would be stream iterators, which do not refer to a
-container.  Typically, the end iterator from a range of stream iterators
-will compare equal for many such ranges.  I suggest striking the second
-sentence.
-</p>
-
-<p>
-An alternative wording might be:
-</p>
-
-<blockquote><p>
-If <tt>j</tt> is reachable from <tt>i</tt>, and both <tt>i</tt> and
-<tt>j</tt> are dereferencable iterators, then they refer to the same
-range.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.2 [iterator.requirements], p6:
-</p>
-
-<blockquote><p>
-An iterator <tt>j</tt> is called <i>reachable</i> from an iterator
-<tt>i</tt> if and only if there is a finite sequence of applications of
-the expression <tt>++i</tt> that makes <tt>i == j</tt>. <del>If
-<tt>j</tt> is reachable from <tt>i</tt>, they refer to the same
-container.</del>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1211"></a>1211. Move iterators should be restricted as input iterators</h3>
-<p><b>Section:</b> 24.5.3.1 [move.iterator] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#move.iterator">issues</a> in [move.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I contend that while we can support both bidirectional and random access
-traversal, the category of a move iterator should never be better than
-<tt>input_iterator_tag</tt>.
-</p>
-
-<p>
-The contentious point is that you cannot truly have a multipass property
-when values are moved from a range.  This is contentious if you view a
-moved-from object as still holding a valid value within the range.  
-</p>
-
-<p>
-The second reason comes from the Forward Iterator requirements table:
-</p>
-
-<blockquote>
-<p>
-Forward iterators 24.2.5 [forward.iterators]
-</p>
-
-<p>
-Table 102 &mdash; Forward iterator requirements
-</p>
-
-<blockquote><p>
-For expression <tt>*a</tt> the return type is:
-"<tt>T&amp;</tt> if <tt>X</tt> is mutable, otherwise <tt>const T&amp;</tt>"
-</p></blockquote>
-</blockquote>
-
-<p>
-There is a similar constraint on <tt>a-&gt;m</tt>.
-</p>
-
-<p>
-There is no support for rvalue references, nor do I believe their should
-be.  Again, opinions may vary but either this table or the definition of
-<tt>move_iterator</tt> need updating.
-</p>
-
-<p>
-Note: this requirement probably need updating anyway if we wish to
-support proxy iterators but I am waiting to see a new working paper
-before filing that issue.
-</p>
-
-<p><i>[
-2009-10 post-Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Open. Howard to put his rationale mentioned above into the issue
-as a note.
-</p></blockquote>
-
-<p><i>[
-2009-10-26 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-<tt>vector::insert(pos, iter, iter)</tt> is significantly more effcient when
-<tt>iter</tt> is a random access iterator, as compared to when it is an
-input iterator.
-</p>
-
-<p>
-When <tt>iter</tt> is an input iterator, the best algorithm
-is to append the inserted range to the end of the <tt>vector</tt> using
-<tt>push_back</tt>.  This may involve several reallocations before the input
-range is exhausted.  After the append, then one can use <tt>std::rotate</tt>
-to place the inserted range into the correct position in the vector.
-</p>
-
-<p>
-But when <tt>iter</tt> is a random access iterator, the best algorithm
-is to first compute the size of the range to be inserted (<tt>last - first</tt>),
-do a buffer reallocation if necessary, scoot existing elements in the <tt>vector</tt>
-down to make the "hole", and then insert the new elements directly to their correct
-place.
-</p>
-
-<blockquote><p><b>
-The insert-with-random-access-iterators algorithm is considerably more efficient
-than the insert-with-input-iterators algorithm
-</b></p></blockquote>
-
-<p>
-Now consider:
-</p>
-
-<blockquote><pre>
-vector&lt;A&gt; v;
-<span style="color:#C80000">//  ... build up a large vector of A ...</span>
-vector&lt;A&gt; temp;
-<span style="color:#C80000">//  ... build up a large temporary vector of A to later be inserted ...</span>
-typedef move_iterator&lt;vector&lt;A&gt;::iterator&gt; MI;
-<span style="color:#C80000">//  Now insert the temporary elements:</span>
-v.insert(v.begin() + N, MI(temp.begin()), MI(temp.end()));
-</pre></blockquote>
-
-<p>
-A major motivation for using <tt>move_iterator</tt> in the above example is the
-expectation that <tt>A</tt> is cheap to move but expensive to copy.  I.e. the
-customer is looking for <em>high performance</em>.  If we allow <tt>vector::insert</tt>
-to subtract two <tt>MI</tt>'s to get the distance between them, the customer enjoys
-substantially better performance, compared to if we say that <tt>vector::insert</tt>
-can not subtract two <tt>MI</tt>'s.
-</p>
-
-<p>
-I can find no rationale for not giving this performance boost to our customers.
-Therefore I am strongly against restricting <tt>move_iterator</tt> to the
-<tt>input_iterator_tag</tt> category.
-</p>
-
-<p>
-I believe that the requirement that forward
-iterators have a dereference that returns an lvalue reference to cause unacceptable
-pessimization.  For example <tt>vector&lt;bool&gt;::iterator</tt> also does not return
-a <tt>bool&amp;</tt> on dereference.  Yet I am not aware of a single vendor that
-is willing to ship <tt>vector&lt;bool&gt;::iterator</tt> as an input iterator.
-Everyone classifies it as a random access iterator.  Not only does this not
-cause any problems, it prevents significant performance problems.
-</p>
-
-</blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Class template move_iterator 24.5.3.1 [move.iterator]
-</p>
-
-<blockquote><pre>
-namespace std {
-template &lt;class Iterator&gt;
-class move_iterator {
-public:
- ...
- typedef <del>typename iterator_traits&lt;Iterator&gt;::iterator_category</del> <ins>input_iterator_tag</ins> iterator_category;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1212"></a>1212. result of post-increment/decrement operator</h3>
-<p><b>Section:</b> 24.2 [iterator.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-09-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.requirements">issues</a> in [iterator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Forward iterator and bidirectional iterator place different requirements on the result of post-increment/decrement operator.  
-The same form should be used in each case.
-</p>
-
-<p>
-Merging row from:
-</p>
-
-<blockquote><pre>
-Table 102 -- Forward iterator requirements
-Table 103 -- Bidirectional iterator requirements
-
-    r++ : convertible to const X&amp;
-    r-- : convertible to const X&amp;
-    
-    *r++ : T&amp; if X is mutable, otherwise const T&amp;
-    *r-- : convertible to T
-</pre></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1214"></a>1214. Insufficient/inconsistent key immutability requirements for  associative containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Scott Meyers' mentions on a recent posting on <a
-href="http://groups.google.de/group/comp.std.c++/msg/6f9160fc428bcbea">c.s.c++</a>
-some arguments that point to an incomplete resolution
-of <a href="lwg-defects.html#103">103</a> and to an inconsistency of requirements on keys in ordered and
-unordered associative
-containers:
-</p>
-
-<blockquote>
-<p>
-1) <a href="lwg-defects.html#103">103</a> introduced the term immutable without defining it in a unique manner in
-23.2.4 [associative.reqmts]/5:
-</p>
-
-<blockquote><p>
-[..] Keys in an associative container are immutable.
-</p></blockquote>
-
-<p>
-According to conventional dictionaries immutable is an unconditional way of
-saying that something cannot be changed. So without any further explicit
-allowance a user <em>always</em> runs into undefined behavior if (s)he attempts
-to modify such a key. IMO this was not the intend of the committee to resolve
-<a href="lwg-defects.html#103">103</a> in that way because the comments suggest an interpretation that
-should give any user the freedom to modify the key in an <em>explicit</em> way
-<em>provided</em> it would not affect the sort order in that container.
-</p>
-
-<p>
-2) Another observation was that surprisingly no similar 'safety guards'
-exists against unintentional key changes for the unordered associative
-containers, specifically there is no such requirement as in
-23.2.4 [associative.reqmts]/6 that "both <tt>iterator</tt> and <tt>const_iterator</tt> are constant
-iterators". But the need for such protection against unintentional
-changes as well as the constraints in which manner any explicit
-changes may be performed are both missing and necessary, because
-such changes could potentially change the <em>equivalence</em> of keys that
-is measured by the <tt>hasher</tt> and <tt>key_equal</tt>.
-</p>
-
-<p>
-I suggest to fix the unconditional wording involved with "immutable keys"
-by at least adding a hint for the reader that users <em>may</em> perform such
-changes in an explicit manner <em>and</em> to perform similar wording changes
-as <a href="lwg-defects.html#103">103</a> did for the ordered associative containers also for the unordered
-containers.
-</p>
-</blockquote>
-
-<p><i>[
-2010-03-27 Daniel provides wording.
-]</i></p>
-
-
-<blockquote><p>
-This update attempts to provide normative wording that harmonizes the key and
-function object constraints of associative and unordered containers.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-
-<p>
-We're uncomfortable with the first agenda item, and we can live with the second agenda 
-item being applied before or after Madrid. 
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Further discussion persuades us this issue is Ready (and so moved).
-We may need a further issue clarifying the notion of key <i>value</i>
-vs. key <i>object</i>, as object identity appears to be important
-to this wording.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 23.2.4 [associative.reqmts]/2 as indicated: <i>[This ensures that
-associative containers make better clear what this "arbitrary" type is, as the
-unordered containers do in 23.2.5 [unord.req]/3]</i>
-</p>
-
-<blockquote><p>
-2 Each associative container is parameterized on <tt>Key</tt> and an ordering
-relation <tt>Compare</tt> that induces a strict weak ordering (25.4) on elements
-of <tt>Key</tt>. In addition, <tt>map</tt> and <tt>multimap</tt> associate an
-arbitrary <ins><em>mapped type</em></ins><del>type</del> <tt>T</tt> with the
-<tt>Key</tt>. The object of type <tt>Compare</tt> is called the <em>comparison
-object</em> of a container.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 23.2.4 [associative.reqmts]/5 as indicated: <i>[This removes the
-too strong requirement that keys must not be changed at all and brings this line
-in sync with 23.2.5 [unord.req]/7. We take care about the real
-constraints by the remaining suggested changes. The rationale provided by LWG
-<a href="lwg-defects.html#103">103</a> didn't really argue why that addition is necessary, and I
-believe the remaining additions make it clear that any user changes have strong
-restrictions]</i>:
-</p>
-
-<blockquote><p>
-5 For <tt>set</tt> and <tt>multiset</tt> the value type is the same as the key
-type. For <tt>map</tt> and <tt>multimap</tt> it is equal to <tt>pair&lt;const
-Key, T&gt;</tt>. <del>Keys in an associative container are immutable.</del>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 23.2.5 [unord.req]/3+4 as indicated: <i>[The current sentence of
-p.4 has doesn't say something really new and this whole subclause misses to
-define the concepts of the container-specific hasher <i>object</i> and predicate
-<i>object</i>. We introduce the term <em>key equality predicate</em> which is
-already used in the requirements table. This change does not really correct part
-of this issue, but is recommended to better clarify the nomenclature and the
-difference between the function objects and the function object <em>types</em>,
-which is important, because both can potentially be stateful.]</i>
-</p>
-
-<blockquote>
-<p>
-3 Each unordered associative container is parameterized by <tt>Key</tt>, by a
-function object type <tt>Hash</tt> that meets the <tt>Hash</tt> requirements
-(20.2.4) and acts as a hash function for argument values of type <tt>Key</tt>,
-and by a binary predicate <tt>Pred</tt> that induces an equivalence relation on
-values of type <tt>Key</tt>. Additionally, <tt>unordered_map</tt> and
-<tt>unordered_multimap</tt> associate an arbitrary <em>mapped type</em>
-<tt>T</tt> with the <tt>Key</tt>.
-</p>
-
-<p>
-4 <ins>The container's object of type <tt>Hash</tt> - denoted by
-<tt>hash</tt> - is called the <em>hash function</em> of the container.
-The container's object of type <tt>Pred</tt> - denoted by
-<tt>pred</tt> - is called the <em>key equality predicate</em> of the
-container.</ins><del>A hash function is a function object that takes a single
-argument of type <tt>Key</tt> and returns a value of type
-<tt>std::size_t</tt></del>.
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 23.2.5 [unord.req]/5 as indicated: <i>[This adds a similar
-safe-guard as the last sentence of 23.2.4 [associative.reqmts]/3]</i>
-</p>
-
-<blockquote><p>
-5 Two values <tt>k1</tt> and <tt>k2</tt> of type <tt>Key</tt> are considered
-equivalent if the container's <ins>key equality
-predicate</ins><del><tt>key_equal</tt> function object</del> returns
-<tt>true</tt> when passed those values. If <tt>k1</tt> and <tt>k2</tt> are
-equivalent, the <ins>container's</ins> hash function shall return the same value
-for both. [<i>Note:</i> thus, when an unordered associative container is
-instantiated with a non-default <tt>Pred</tt> parameter it usually needs a
-non-default <tt>Hash</tt> parameter as well. &mdash; <i>end note</i>] <ins>For
-any two keys <tt>k1</tt> and <tt>k2</tt> in the same container, calling
-<tt>pred(k1, k2)</tt> shall always return the same value. For any key <tt>k</tt>
-in a container, calling <tt>hash(k)</tt> shall always return the same
-value.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>
-After 23.2.5 [unord.req]/7 add the following new paragraph: <i>[This
-ensures the same level of compile-time protection that we already require for
-associative containers. It is necessary for similar reasons, because any change
-in the stored key which would change it's equality relation to others or would
-change it's hash value such that it would no longer fall in the same bucket,
-would break the container invariants]</i>
-</p>
-
-<blockquote>
-<p>
-7 For <tt>unordered_set</tt> and <tt>unordered_multiset</tt> the value type is
-the same as the key type. For <tt>unordered_map</tt> and
-<tt>unordered_multimap</tt> it is <tt>std::pair&lt;const Key, T&gt;</tt>.
-</p>
-<p>
-<ins>For unordered containers where the value type is the same as the key type,
-both <tt>iterator</tt> and <tt>const_iterator</tt> are constant iterators. It is
-unspecified whether or not <tt>iterator</tt> and <tt>const_iterator</tt> are the
-same type. [<i>Note:</i> <tt>iterator</tt> and <tt>const_iterator</tt> have
-identical semantics in this case, and <tt>iterator</tt> is convertible to
-<tt>const_iterator</tt>. Users can avoid violating the One Definition Rule by
-always using <tt>const_iterator</tt> in their function parameter lists. &mdash;
-<i>end note</i>]</ins>
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1215"></a>1215. <tt>list::merge</tt> with unequal allocators</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Bellevue (I think), we passed
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2525.pdf">N2525</a>,
-which, among other things, specifies that the behavior of
-<tt>list::splice</tt> is undefined if the allocators of the two lists
-being spliced do not compare equal. The same rationale should apply to
-<tt>list::merge</tt>. The intent of <tt>list::merge</tt> (AFAIK) is to
-move nodes from one sorted <tt>list</tt> into another sorted
-<tt>list</tt> without copying the elements. This is possible only if the
-allocators compare equal.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Relative to the August 2009 WP,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">N2857</a>,
-change 23.3.5.5 [list.ops],
-paragraphs 22-25 as follows:
-</p>
-
-<blockquote>
-<pre>
-void merge(list&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&amp;&amp; x, Compare comp);
-</pre>
-<blockquote>
-<p>
-<i>Requires</i>: both the list and the argument list shall be sorted
-according to operator&lt; or comp.
-</p>
-<p>
-<i>Effects</i>: If <tt>(&amp;x == this)</tt> does nothing; otherwise, merges the
-two sorted ranges <tt>[begin(), end())</tt> and <tt>[x.begin(),
-x.end())</tt>. The result is a range in which the elements will be
-sorted in non-decreasing order according to the ordering defined by
-<tt>comp</tt>; that is, for every iterator <tt>i</tt>, in the range other than the
-<tt>first</tt>, the condition <tt>comp(*i, *(i - 1)<ins>)</ins></tt> will be
-<tt>false</tt>.
-</p>
-<p>
-<i>Remarks</i>: Stable. If <tt>(&amp;x != this)</tt> the range <tt>[x.begin(), x.end())</tt> is
-empty after the merge. <ins>No elements are copied by this operation.
-The behavior is undefined if <tt>this-&gt;get_allocator() !=
-x.get_allocator()</tt>.</ins>
-</p>
-<p>
-<i>Complexity</i>: At most <tt>size() + x.size() - 1</tt> applications of <tt>comp</tt>
-if <tt>(&amp;x != this)</tt>; otherwise, no applications of <tt>comp</tt> are performed. If an
-exception is thrown other than by a comparison there are no effects.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1216"></a>1216. LWG 1066 Incomplete?</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2009-09-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG <a href="lwg-defects.html#1066">1066</a> adds <tt>[[noreturn]]</tt> to a bunch of things.
-It doesn't add it to <tt>rethrow_nested()</tt>, which seems like an obvious
-candidate. I've made the changes indicated in the issue, and haven't
-changed <tt>rethrow_nested()</tt>.
-</p>
-
-<p><i>[
-2009 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Move to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add <tt>[[noreturn]]</tt> to <tt>rethrow_nested()</tt> in 18.8.6 [except.nested].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1218"></a>1218. mutex destructor synchronization</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If an object <tt>*o</tt> contains a mutex <tt>mu</tt> and a
-correctly-maintained reference count <tt>c</tt>, is the following code
-safe?
-</p>
-
-<blockquote><pre>
-o-&gt;mu.lock();
-bool del = (--(o-&gt;c) == 0);
-o-&gt;mu.unlock();
-if (del) { delete o; }
-</pre></blockquote>
-
-<p>
-If the implementation of <tt>mutex::unlock()</tt> can touch the mutex's
-memory after the moment it becomes free, this wouldn't be safe, and
-"Construction and destruction of an object of a Mutex type need not be
-thread-safe" 30.4.1 [thread.mutex.requirements] may imply that
-it's not safe. Still, it's useful to allow mutexes to guard reference
-counts, and if it's not allowed, users are likely to write bugs.
-</p>
-
-<p><i>[
-2009-11-18: Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ul>
-<li>
-<p>
-Add a new paragraph after 30.4.1.2.1 [thread.mutex.class] p1:
-</p>
-<blockquote>
-<p>
-1 The class <tt>mutex</tt> provides a non-recursive mutex ...
-</p>
-<p><ins>
-[<i>Note:</i> After a thread <tt>A</tt> has called <tt>unlock()</tt>, releasing
-the mutex, it is possible for another thread <tt>B</tt> to lock the same mutex,
-observe that it is no longer in use, unlock and destroy it, before thread
-<tt>A</tt> appears to have returned from its unlock call. Implementations are
-required to handle such scenarios correctly, as long as thread <tt>A</tt>
-doesn't access the mutex after the unlock call returns. These cases typically
-occur when a reference-counted object contains a mutex that is used to protect
-the reference count. &mdash; <i>end note</i>]
-</ins></p>
-</blockquote>
-</li>
-
-</ul>
-
-
-
-
-
-<hr>
-<h3><a name="1220"></a>1220. What does <tt>condition_variable</tt> wait on?</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-"Class <tt>condition_variable</tt> provides a condition variable that can only
-wait on an object of type <tt>unique_lock</tt>" should say "...object of type
-<tt>unique_lock&lt;mutex&gt;</tt>"
-</p>
-
-<p><i>[
-2009-11-06 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.5 [thread.condition], p1:
-</p>
-
-<blockquote><p>
-Condition variables provide synchronization primitives used to block a
-thread until notified by some other thread that some condition is met or
-until a system time is reached. Class <tt>condition_variable</tt>
-provides a condition variable that can only wait on an object of type
-<tt>unique_lock<ins>&lt;mutex&gt;</ins></tt>, allowing maximum
-efficiency on some platforms. Class <tt>condition_variable_any</tt>
-provides a general condition variable that can wait on objects of
-user-supplied lock types.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1221"></a>1221. <tt>condition_variable</tt> wording</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.1 [thread.condition.condvar] says:
-</p>
-
-<blockquote>
-<pre>
-~condition_variable();
-</pre>
-<blockquote><p>
-<i>Precondition:</i> There shall be no thread blocked on <tt>*this</tt>.
-[<i>Note:</i> That is, all threads shall have been notified; they may
-subsequently block on the lock specified in the wait. Beware that
-destroying a <tt>condition_variable</tt> object while the corresponding
-predicate is <tt>false</tt> is likely to lead to undefined behavior.
-&mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-<p>
-The text hasn't introduced the notion of a "corresponding predicate"
-yet.
-</p>
-
-<p><i>[
-2010-02-11 Anthony provided wording.
-]</i></p>
-
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Modify 30.5.1 [thread.condition.condvar]p4 as follows:
-</p>
-
-<blockquote>
-<pre>~condition_variable();</pre>
-<blockquote><p>
-4 <i>Precondition:</i> There shall be no thread blocked on <tt>*this</tt>.
-[<i>Note:</i> That is, all threads shall have been notified; they may
-subsequently block on the lock specified in the wait. <del>Beware that
-destroying a <tt>condition_variable</tt> object while the corresponding
-predicate is false is likely to lead to undefined behavior.</del> <ins>The user
-must take care to ensure that no threads wait on <tt>*this</tt> once the
-destructor has been started, especially when the waiting threads are calling the
-wait functions in a loop or using the overloads of <tt>wait</tt>,
-<tt>wait_for</tt> or <tt>wait_until</tt> that take a predicate.</ins> &mdash;
-<i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1222"></a>1222. condition_variable incorrect effects for exception safety</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2009-09-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.1 [thread.condition.condvar] says:
-</p>
-
-<blockquote>
-<pre>
-void wait(unique_lock&lt;mutex&gt;&amp; lock);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-<i>Effects:</i>
-</p>
-<ul>
-<li>...</li>
-<li>
-If the function exits via an exception, <tt>lock.unlock()</tt> shall be
-called prior to exiting the function scope.
-</li>
-</ul>
-</blockquote>
-</blockquote>
-
-<p>
-Should that be <tt>lock.lock()</tt>?
-</p>
-
-<p><i>[
-2009-11-17 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 30.5.1 [thread.condition.condvar] p10:
-</p>
-
-<blockquote>
-<pre>
-void wait(unique_lock&lt;mutex&gt;&amp; lock);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-<i>Effects:</i>
-</p>
-<ul>
-<li>...</li>
-<li>
-If the function exits via an exception, <tt>lock.<del>un</del>lock()</tt> shall be
-called prior to exiting the function scope.
-</li>
-</ul>
-</blockquote>
-</blockquote>
-
-<p>
-And make a similar change in p16, and in 30.5.2 [thread.condition.condvarany],
-p8 and p13.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1225"></a>1225. C++0x <tt>result_of</tt> issue </h3>
-<p><b>Section:</b> X [func.ret] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Sebastian Gesemann <b>Opened:</b> 2009-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.ret">issues</a> in [func.ret].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think the text about <tt>std::result_of</tt> could be a little more precise.
-Quoting from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>...
-</p>
-
-<blockquote>
-<p>
-X [func.ret] Function object return types
-</p>
-
-<pre>
-template&lt;class&gt; class result_of;
-
-template&lt;class Fn, class... ArgTypes&gt;
-class result_of&lt;Fn(ArgTypes...)&gt; {
-public:
-  typedef <i>see below</i> type;
-};
-</pre>
-
-<p>
-Given an rvalue <tt>fn</tt> of type <tt>Fn</tt> and values <tt>t1, t2,
-..., tN</tt> of types <tt>T1, T2, ... TN</tt> in <tt>ArgTypes</tt>
-respectivly, the <tt>type</tt> member is the result type of the
-expression <tt>fn(t1,t2,...,tN)</tt>. the values <tt>ti</tt> are lvalues
-when the corresponding type <tt>Ti</tt> is an lvalue-reference type, and
-rvalues otherwise.
-</p>
-</blockquote>
-
-<p>
-This text doesn't seem to consider lvalue reference types for <tt>Fn</tt>.
-Also, it's not clear whether this class template can be used for
-"SFINAE" like <tt>std::enable_if</tt>. Example:
-</p>
-
-<blockquote><pre>
-template&lt;typename Fn, typename... Args&gt;
-typename std::result_of&lt;Fn(Args...)&gt;::type
-apply(Fn &amp;&amp; fn, Args &amp;&amp; ...args)
-{
-  // Fn may be an lvalue reference, too
-  return std::forward&lt;Fn&gt;(fn)(std::forward&lt;Args&gt;(args)...);
-}
-</pre></blockquote>
-
-<p>
-Either <tt>std::result_of&lt;...&gt;</tt> can be instantiated and simply may not have
-a typedef "<tt>type</tt>" (--&gt;SFINAE) or instantiating the class template for
-some type combinations will be a "hard" compile-time error.
-</p>
-
-<p><i>[
-2010-02-14 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-This issue should be considered resolved by <a href="lwg-defects.html#1255">1255</a> and <a href="lwg-defects.html#1270">1270</a>.  The wish to change <tt>result_of</tt> into a compiler-support
-trait was beyond the actual intention of the submitter Sebastian.
-</p></blockquote>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>, rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="lwg-defects.html#1270">1270</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[
-These changes will require compiler support
-]</i></p>
-
-
-<p>
-Change X [func.ret]:
-</p>
-
-<blockquote><pre>
-template&lt;class&gt; class result_of; // <i>undefined</i>
-
-template&lt;class Fn, class... ArgTypes&gt;
-class result_of&lt;Fn(ArgTypes...)&gt; {
-public:
-  <del>typedef</del> <i>see below</i> <del>type;</del>
-};
-</pre>
-
-<p><del>
-Given an rvalue <tt>fn</tt> of type <tt>Fn</tt> and values <tt>t1, t2,
-..., tN</tt> of types <tt>T1, T2, ... TN</tt> in <tt>ArgTypes</tt>
-respectivly, the <tt>type</tt> member is the result type of the
-expression <tt>fn(t1,t2,...,tN)</tt>. the values <tt>ti</tt> are lvalues
-when the corresponding type <tt>Ti</tt> is an lvalue-reference type, and
-rvalues otherwise.
-</del></p>
-
-<p>
-<ins>The class template <tt>result_of</tt> shall meet the requirements of a
-<i>TransformationTrait</i>: Given the types <tt>Fn</tt>, <tt>T1</tt>, <tt>T2</tt>, ..., <tt>TN</tt> every
-template specialization <tt>result_of&lt;Fn(T1,T2,...,TN)&gt;</tt> shall define the
-member typedef type equivalent to <tt>decltype(<i>RE</i>)</tt> if and only if
-the expression <tt><i>RE</i></tt>
-</ins></p>
-
-<blockquote><pre><ins>
-value&lt;Fn&gt;() ( value&lt;T1&gt;(), value&lt;T2&gt;(), ... value&lt;TN&gt;()  )
-</ins></pre></blockquote>
-
-<p><ins>
-would be well-formed. Otherwise, there shall be no member typedef
-<tt>type</tt> defined.
-</ins></p>
-
-</blockquote>
- 
-<p><i>[
-The <tt>value&lt;&gt;</tt> helper function is a utility Daniel Kr&uuml;gler
-proposed in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2958.html">N2958</a>.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1226"></a>1226. Incomplete changes of #890</h3>
-<p><b>Section:</b> 30.6.2 [futures.errors] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Defect issue <a href="lwg-defects.html#890">890</a> overlooked to adapt the <tt>future_category</tt> from
-30.6.1 [futures.overview] and 30.6.2 [futures.errors]:
-</p>
-
-<blockquote><pre>
-extern const error_category* const future_category;
-</pre></blockquote>
-
-<p>
-which should be similarly transformed into function form.
-</p>
-
-<p><i>[
-2009-10-27 Howard:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-2009-11-11 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I just observe that the proposed resolution of this issue
-is incomplete and needs to reworded. The problem is that the
-corresponding declarations
-</p>
-
-<blockquote><pre>
-constexpr error_code make_error_code(future_errc e);
-constexpr error_condition make_error_condition(future_errc e);
-</pre></blockquote>
-
-<p>
-as constexpr functions are incompatible to the requirements of constexpr
-functions given their specified implementation. Note that the incompatibility
-is <em>not</em> a result of the modifications proposed by the issue resolution,
-but already existed within the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>
-state where we have
-</p>
-
-<blockquote><pre>
-extern const error_category* const future_category;
-</pre></blockquote>
-
-<p>
-combined with
-</p>
-
-<blockquote><pre>
-constexpr error_code make_error_code(future_errc e);
-</pre>
-<blockquote><p>
-3 <i>Returns:</i> <tt>error_code(static_cast&lt;int&gt;(e), *future_category)</tt>.
-</p></blockquote>
-
-<pre>
-constexpr error_code make_error_condition(future_errc e);
-</pre>
-<blockquote><p>
-4 <i>Returns:</i> <tt>error_condition(static_cast&lt;int&gt;(e), *future_category)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Neither is any of the constructors of <tt>error_code</tt> and <tt>error_condition</tt>
-constexpr, nor does the expression <tt>*future_category</tt> satisfy the
-requirements for a constant expression (5.20 [expr.const]/2 bullet 6 in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>).
-</p>
-
-<p>
-The simple solution is just to remove the constexpr qualifiers for both
-functions, which makes sense, because none of the remaining <tt>make_error_*</tt>
-overloads in the library is constexpr. One might consider to realize that
-those <tt>make_*</tt> functions could satisfy the constexpr requirements, but this
-looks not like an easy task to me, because it would need to rely on a not
-yet existing language feature. If such a change is wanted, a new issue
-should be opened after the language extension approval (if at all) [1].
-</p>
-
-<p>
-If no-one complaints I would like to ask Howard to add the following
-modifications to this issue, alternatively a new issue could be opened but I
-don't know what the best solution is that would cause as little overhead
-as possible.
-</p>
-<p>
-What-ever the route is, the following is my proposed resolution for this issue
-interaction part of the story:
-</p>
-
-<blockquote>
-<p>
-In 30.6.1 [futures.overview]/1, Header <tt>&lt;future&gt;</tt> synopsis <em>and</em>
-in 30.6.2 [futures.errors]/3+4
-change as indicated:
-</p>
-
-<blockquote><pre>
-<del>constexpr</del> error_code make_error_code(future_errc e);
-<del>constexpr</del> error_condition make_error_condition(future_errc e);
-</pre></blockquote>
-</blockquote>
-
-<p>
-[1] Let me add that we have a related  NAD issue here: <a href="lwg-closed.html#832">832</a>
-so the chances for realization are little IMO.
-</p>
-
-<p><i>[
-Howard: I've updated the proposed wording as Daniel suggests and set to Review.
-]</i></p>
-
-</blockquote>
-
-<p><i>[
-2009-11-13 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change in 30.6.1 [futures.overview], header <tt>&lt;future&gt;</tt> synopsis:
-</p>
-
-<blockquote><pre>
-<del>extern</del> const error_category<ins>&amp;</ins><del>* const</del> future_category<ins>()</ins>;
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 30.6.1 [futures.overview]/1, Header <tt>&lt;future&gt;</tt> synopsis 
-change as indicated:
-</p>
-
-<blockquote><pre>
-<del>constexpr</del> error_code make_error_code(future_errc e);
-<del>constexpr</del> error_condition make_error_condition(future_errc e);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change in 30.6.2 [futures.errors]:
-</p>
-
-<blockquote><pre>
-<del>extern</del> const error_category<ins>&amp;</ins><del>* const</del> future_category<ins>()</ins>;
-</pre>
-
-<blockquote>
-<p>
-<del>1- <tt>future_category</tt> shall point to a statically initialized object
-of a type derived from class <tt>error_category</tt>.</del>
-</p>
-<p>
-<ins>1- <i>Returns:</i> A reference to an object of a type
-derived from class <tt>error_category</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<del>constexpr</del> error_code make_error_code(future_errc e);
-</pre>
-
-<blockquote><p>
-3 <i>Returns:</i> <tt>error_code(static_cast&lt;int&gt;(e),
-<del>*</del>future_category<ins>()</ins>)</tt>.
-</p></blockquote>
-
-<pre>
-<del>constexpr</del> error_<del>code</del><ins>condition</ins> make_error_condition(future_errc e);
-</pre>
-
-<blockquote><p>
-4 <i>Returns:</i> <tt>error_condition(static_cast&lt;int&gt;(e),
-<del>*</del>future_category<ins>()</ins>)</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1227"></a>1227. <tt>&lt;bitset&gt;</tt> synopsis overspecified</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2009-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The resolutions to some library defect reports, like <a href="lwg-defects.html#1178">1178</a>
-requires that <tt>#includes</tt> in each synopsis should be taken
-literally. This means that the <tt>&lt;bitset&gt;</tt> header now
-<em>must</em> include <tt>&lt;stdexcept&gt;</tt>, even though none of the
-exceptions are mentioned in the <tt>&lt;bitset&gt;</tt> header.
-</p>
-<p>
-Many other classes are required to throw exceptions like
-<tt>invalid_argument</tt> and <tt>out_of_range</tt>, without explicitly
-including <tt>&lt;stdexcept&gt;</tt> in their synopsis. It is totally
-possible for implementations to throw the needed exceptions from utility
-functions, whose implementations are not visible in the headers.
-</p>
-<p>
-I propose that <tt>&lt;stdexcept&gt;</tt> is removed from the
-<tt>&lt;bitset&gt;</tt> header.
-</p>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.6 [template.bitset]:
-</p>
-
-<blockquote><pre>
-#include &lt;cstddef&gt;        // for size_t
-#include &lt;string&gt;
-<del>#include &lt;stdexcept&gt;      // for invalid_argument,</del>
-                          <del>// out_of_range, overflow_error</del>
-#include &lt;iosfwd&gt;         // for istream, ostream
-namespace std {
-...
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1229"></a>1229. <tt>error_code operator=</tt> typo</h3>
-<p><b>Section:</b> 19.5.2.3 [syserr.errcode.modifiers] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2009-10-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>
-19.5.2.1 [syserr.errcode.overview] and 19.5.2.3 [syserr.errcode.modifiers] say:
-</p>
-
-<blockquote><pre> 
-template &lt;class ErrorCodeEnum&gt;
-  typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value&gt;::type&amp;
-    operator=(ErrorCodeEnum e);
-</pre></blockquote>
-
-<p>
-They should say:
-</p>
-
-<blockquote><pre> 
-template &lt;class ErrorCodeEnum&gt;
-  typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value, error_code&gt;::type&amp;
-    operator=(ErrorCodeEnum e);
-</pre></blockquote>
-
-<p>
-Or (I prefer this form):
-</p>
- 
-<blockquote><pre> 
-template &lt;class ErrorCodeEnum&gt;
-  typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value, error_code&amp;&gt;::type
-    operator=(ErrorCodeEnum e);
-</pre></blockquote>
-
-<p>
-This is because <tt>enable_if</tt> is declared as (20.10.7.6 [meta.trans.other]):
-</p>
- 
-<blockquote><pre> 
-template &lt;bool B, class T = void&gt; struct enable_if;
-</pre></blockquote>
-
-<p>
-So, the current wording makes <tt>operator=</tt> return
-<tt>void&amp;</tt>, which is not good.
-</p>
-
-<p> 
-19.5.2.3 [syserr.errcode.modifiers]/4 says
-</p>
-
-<blockquote><p>
-<i>Returns:</i> <tt>*this</tt>.
-</p></blockquote>
-<p>
-which is correct.
-</p>
-
-<p>
-Additionally,
-</p>
-
-<p>
-19.5.3.1 [syserr.errcondition.overview]/1 says:
-</p>
- 
-<blockquote><pre> 
-template&lt;typename ErrorConditionEnum&gt;
-  typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;, error_code&gt;::type &amp;
-    operator=( ErrorConditionEnum e );
-</pre></blockquote>
-
-<p>
-Which contains several problems (<tt>typename</tt> versus <tt>class</tt>
-inconsistency, lack of <tt>::value</tt>, <tt>error_code</tt> instead of
-<tt>error_condition</tt>), while 19.5.3.3 [syserr.errcondition.modifiers] says:
-</p>
- 
-<blockquote><pre> 
-template &lt;class ErrorConditionEnum&gt;
-  typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::value&gt;::type&amp;
-    operator=(ErrorConditionEnum e);
-</pre></blockquote>
-
-<p>
-Which returns <tt>void&amp;</tt>.  They should both say:
-</p>
- 
-<blockquote><pre> 
-template &lt;class ErrorConditionEnum&gt;
-  typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::value, 
-  error_condition&gt;::type&amp;
-    operator=(ErrorConditionEnum e);
-</pre></blockquote>
-
-<p>
-Or (again, I prefer this form):
-</p>
-
-<blockquote><pre> 
-template &lt;class ErrorConditionEnum&gt;
-  typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::value, 
-  error_condition&amp;&gt;::type
-    operator=(ErrorConditionEnum e);
-</pre></blockquote>
-
-<p>
-Additionally, 19.5.3.3 [syserr.errcondition.modifiers] lacks a
-"<i>Returns:</i> <tt>*this</tt>." paragraph, which is presumably
-necessary.
-</p>
-
-<p><i>[
-2009-10-18 Beman adds:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution for issue <a href="lwg-defects.html#1237">1237</a> makes this issue
-moot, so it should become NAD.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-<del>NAD</del><ins>Resolved</ins>, solved by <a href="lwg-defects.html#1237">1237</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 19.5.2.1 [syserr.errcode.overview] and 19.5.2.3 [syserr.errcode.modifiers]:
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorCodeEnum&gt;
-  typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value<ins>, 
-  error_code&amp;</ins>&gt;::type<del>&amp;</del>
-    operator=(ErrorCodeEnum e);
-</pre></blockquote>
-
-<p>
-Change 19.5.3.1 [syserr.errcondition.overview]:
-</p>
-
-<blockquote><pre>
-template&lt;<del>typename</del> <ins>class</ins> ErrorConditionEnum&gt;
-  typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;<ins>::value</ins>, 
-  error_co<ins>ndition</ins><del>de</del><ins>&amp;</ins>&gt;::type<del> &amp;</del>
-    operator=( ErrorConditionEnum e );
-</pre></blockquote>
-
-<p>
-Change 19.5.3.3 [syserr.errcondition.modifiers]:
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorConditionEnum&gt;
-  typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::value<ins>, 
-  error_condition&amp;</ins>&gt;::type<del>&amp;</del>
-    operator=(ErrorConditionEnum e);
-</pre>
-<blockquote>
-<p>
-<i>Postcondition:</i> <tt>*this == make_error_condition(e)</tt>.
-</p>
-<p><ins>
-<i>Returns:</i> <tt>*this</tt>.
-</ins></p>
-<p>
-<i>Throws:</i> Nothing.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1231"></a>1231. <tt>weak_ptr</tt> comparisons incompletely resolved</h3>
-<p><b>Section:</b> 20.8.2.3.5 [util.smartptr.weak.obs] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.weak.obs">issues</a> in [util.smartptr.weak.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf">n2637</a>
-paper suggested several updates of the ordering semantics of <tt>shared_ptr</tt>
-and <tt>weak_ptr</tt>, among those the explicit comparison operators of <tt>weak_ptr</tt> were
-removed&#47;deleted, instead a corresponding functor <tt>owner_less</tt> was added.
-The problem is that
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf">n2637</a>
-did not clearly enough specify, how the previous wording parts describing
-the comparison semantics of <tt>weak_ptr</tt> should be removed.
-</p>
-
-<p><i>[
-2009-11-06 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change 20.8.2.3 [util.smartptr.weak]/2 as described, the intention is to fix
-the now no longer valid requirement that <tt>weak_ptr</tt> is <tt>LessComparable</tt> 
-[Note the deleted comma]:
-</p>
-
-<blockquote><p>
-Specializations of <tt>weak_ptr</tt> shall be <tt>CopyConstructible</tt><del>,</del>
-<ins>and</ins> <tt>CopyAssignable</tt>, <del>and <tt>LessThanComparable</tt>,</del> 
-allowing their use in standard containers.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-In 20.8.2.3.5 [util.smartptr.weak.obs] remove the paragraphs 9-11 including prototype:
-</p>
-
-<blockquote><p>
-<del>template&lt;class T, class U&gt; bool operator&lt;(const weak_ptr&lt;T&gt;&amp; a, const weak_ptr&lt;U&gt;&amp; b);</del>
-
-<p/>
-<del><i>Returns:</i> an unspecified value such that</del>
-</p>
-<ul>
-<li>
-<del><tt>operator&lt;</tt> is a strict weak ordering as described in 25.4;</del>
-</li>
-<li>
-<del>under the equivalence relation defined by <tt>operator&lt;</tt>, <tt>!(a
-&lt; b) &amp;&amp; !(b &lt; a)</tt>, two <tt>weak_ptr</tt> instances are
-equivalent if and only if they share ownership or are both empty.</del>
-</li>
-</ul>
-
-<p>
-<del><i>Throws:</i> nothing.</del>
-</p>
-
-<p>
-<del>[<i>Note:</i> Allows <tt>weak_ptr</tt> objects to be used as keys in associative
-containers. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1234"></a>1234. "Do the right thing" and <tt>NULL</tt></h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2009-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-On g++ 4.2.4 (x86_64-linux-gnu), the following file gives a compile error:
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt;
-void foo() { std::vector&lt;int*&gt; v(500L, NULL); }
-</pre></blockquote>
-
-<p>
-Is this supposed to work? 
-</p>
-
-<p>
-The issue: if <tt>NULL</tt> happens to be defined as <tt>0L</tt>, this is an invocation of
-the constructor with two arguments of the same integral type.
-23.2.3 [sequence.reqmts]/14
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3035.pdf">N3035</a>)
-says that this will behave as if the overloaded constructor
-</p>
-
-<blockquote><pre>
-X(size_type, const value_type&amp; = value_type(),
-  const allocator_type&amp; = allocator_type())
-</pre></blockquote>
-
-<p>
-were called instead, with the arguments
-<tt>static_cast&lt;size_type&gt;(first)</tt>, <tt>last</tt> and
-<tt>alloc</tt>, respectively. However, it does not say whether this
-actually means invoking that constructor with the exact textual form of
-the arguments as supplied by the user, or whether the standard permits
-an implementation to invoke that constructor with variables of the same
-type and value as what the user passed in. In most cases this is a
-distinction without a difference. In this particular case it does make a
-difference, since one of those things is a null pointer constant and the
-other is not.
-</p>
-
-<p>
-Note that an implementation based on forwarding functions will use the
-latter interpretation.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to Open.
-]</i></p>
-
-
-<p><i>[
-2010-03-19 Daniel provides wording.
-]</i></p>
-
-
-<blockquote>
-<ul>
-<li>
-Adapts the numbering used in the discussion to the recent working paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3035.pdf">N3035</a>.
-</li>
-
-<li>
-Proposes a resolution that requires implementations to use sfinae-like means to
-possibly filter away the too generic template c'tor. In fact this resolution is
-equivalent to that used for the <tt>pair-NULL</tt> problem (<a href="lwg-defects.html#811">811</a>),
-the only difference is, that issue 1234 was already a C++03 problem.
-</li>
-</ul>
-
-<p>
-This issue can be considered as a refinement of <a href="lwg-defects.html#438">438</a>.
-</p>
-
-</blockquote>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<p>
-Wording was verified to match with the most recent WP. Jonathan Wakely and Alberto Barbati observed that the current 
-WP has a defect that should be fixed here as well: The functions signatures <tt>fx1</tt> and <tt>fx3</tt> are 
-incorrectly referring to <tt>iterator</tt> instead of <tt>const_iterator</tt>.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording after 7 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
- 
-<p>
-Change 23.2.3 [sequence.reqmts]/14+15 as indicated:
-</p>
-
-<blockquote>
-<p>
-14 For every sequence container defined in this Clause and in Clause 21:
-</p>
-
-<ul>
-<li>
-<p>
-If the constructor
-</p>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-X(InputIterator first, InputIterator last,
-  const allocator_type&amp; alloc = allocator_type())
-</pre></blockquote>
-
-<p>
-is called with a type <tt>InputIterator</tt> that does not qualify as an input
-iterator, then the constructor <ins>shall not participate in overload
-resolution.</ins><del>will behave as if the overloaded constructor:</del>
-</p>
-
-<blockquote><pre><del>
-X(size_type, const value_type&amp; = value_type(),
-  const allocator_type&amp; = allocator_type())
-</del></pre></blockquote>
-
-<p>
-<del>were called instead, with the arguments <tt>static_cast&lt;size_type&gt;(first)</tt>, 
-<tt>last</tt> and <tt>alloc</tt>, respectively</del>.
-</p>
-</li>
-
-<li>
-
-<p>
-If the member functions of the forms:
-</p>
-
-<blockquote><pre>
-template &lt;class InputIterator&gt; <i>// such as insert()</i>
-rt fx1(<ins>const_</ins>iterator p, InputIterator first, InputIterator last);
-
-template &lt;class InputIterator&gt; <i>// such as append(), assign()</i>
-rt fx2(InputIterator first, InputIterator last);
-
-template &lt;class InputIterator&gt; <i>// such as replace()</i>
-rt fx3(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2, InputIterator first, InputIterator last);
-</pre></blockquote>
-
-<p>
-are called with a type <tt>InputIterator</tt> that does not qualify as an input
-iterator, then these functions <ins>shall not participate in overload
-resolution.</ins><del>will behave as if the overloaded member functions:</del>
-</p>
-
-<blockquote><pre>
-<del>rt fx1(iterator, size_type, const value_type&amp;);</del>
-
-<del>rt fx2(size_type, const value_type&amp;);</del>
-
-<del>rt fx3(iterator, iterator, size_type, const value_type&amp;);</del>
-</pre></blockquote>
-
-<p>
-<del>were called instead, with the same arguments.</del>
-</p>
-</li>
-
-</ul>
-
-<p><del>
-15 In the previous paragraph the alternative binding will fail if <tt>first</tt>
-is not implicitly convertible to <tt>X::size_type</tt> or if <tt>last</tt> is
-not implicitly convertible to <tt>X::value_type</tt>.
-</del></p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1237"></a>1237. Constrained <tt>error_code</tt>&#47;<tt>error_condition members</tt></h3>
-<p><b>Section:</b> 19.5 [syserr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr">issues</a> in [syserr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I'm just reflecting on the now SFINAE-constrained constructors
-and assignment operators of <tt>error_code</tt> and <tt>error_condition</tt>:
-</p>
-<p>
-These are the <em>only</em> library components that are pro-actively
-announcing that they are using <tt>std::enable_if</tt> as constraining tool,
-which has IMO several disadvantages:
-</p>
-
-<ol>
-<li>
-<p>
-With the availability of template default arguments and
-decltype, using <tt>enable_if</tt> in the C++0x standard library, seems
-unnecessary restricting implementation freedom. E.g. there
-should be no need for a useless specification of a dummy
-default function argument, which only confuses the reader.
-A more reasonable implementation could e.g. be
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorCodeEnum
- class = typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value&gt;::type&gt;
-error_code(ErrorCodeEnum e);
-</pre></blockquote>
-
-<p>
-As currently specified, the function signatures are so unreadable,
-that errors quite easily happen, see e.g. <a href="lwg-defects.html#1229">1229</a>.
-</p>
-</li>
-
-<li>
-<p>
-We have a <em>lot</em> of constrained functions in other places, that
-now have a standard phrase that is easily understandable:
-</p>
-
-<blockquote><p>
-<i>Remarks:</i> This constructor&#47;function shall participate in overload
-resolution if and only if X.
-</p></blockquote>
-
-<p>
-where X describes the condition. Why should these components deviate?
-</p>
-</li>
-
-<li>
-<p>
-If <tt>enable_if</tt> would <em>not</em> be explicitly specified, the standard library
-is much better prepared for the future. It would also be possible, that
-libraries with partial support for not-yet-standard-concepts could provide
-a much better diagnostic as is possible with <tt>enable_if</tt>. This again
-would allow for experimental concept implementations in the wild,
-which as a result would make concept standardization a much more
-natural thing, similar to the way as templates were standardized
-in C++.
-</p>
-
-<p>
-In summary: I consider it as a library defect that <tt>error_code</tt> and
-<tt>error_condition</tt> explicitly require a dependency to <tt>enable_if</tt> and
-do limit implementation freedom and I volunteer to prepare a
-corresponding resolution.
-</p>
-</li>
-</ol>
-
-<p><i>[
-2009-10-18 Beman adds:
-]</i></p>
-
-
-<blockquote><p>
-I support this proposed resolution, and thank Daniel for writing it up.
-</p></blockquote>
-
-<p><i>[
-2009-10 Santa Cruz:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-Should this resolution be accepted, I recommend to resolve <a href="lwg-defects.html#1229">1229</a> as NAD
-]</i></p>
-
-
-<ol>
-<li>
-<p>
-In 19.5.2.1 [syserr.errcode.overview]/1, class <tt>error_code</tt>,
-change as indicated:
-</p>
-
-<blockquote><pre>
-// 19.5.2.2 constructors:
-error_code();
-error_code(int val, const error_category&amp; cat);
-template &lt;class ErrorCodeEnum&gt;
-  error_code(ErrorCodeEnum e<del>,
-    typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value&gt;::type * = 0</del>);
-
-// 19.5.2.3 modifiers:
-void assign(int val, const error_category&amp; cat);
-template &lt;class ErrorCodeEnum&gt;
-  <del>typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value&gt;::type</del><ins>error_code</ins>&amp;
-    operator=(ErrorCodeEnum e);
-void clear();
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 19.5.2.2 [syserr.errcode.constructors] around the prototype before p. 7:
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorCodeEnum&gt;
-error_code(ErrorCodeEnum e<del>,
-  typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value&gt;::type * = 0</del>);
-</pre>
-<blockquote>
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution, unless
-<tt>is_error_code_enum&lt;ErrorCodeEnum&gt;::value == true</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 19.5.2.3 [syserr.errcode.modifiers] around the prototype before p. 3:
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorCodeEnum&gt;
-  <del>typename enable_if&lt;is_error_code_enum&lt;ErrorCodeEnum&gt;::value&gt;::type</del><ins>error_code</ins>&amp;
-    operator=(ErrorCodeEnum e);
-</pre>
-
-<blockquote><p>
-<ins><i>Remarks:</i> This operator shall not participate in overload resolution, unless
-<tt>is_error_code_enum&lt;ErrorCodeEnum&gt;::value == true</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-In 19.5.3.1 [syserr.errcondition.overview]/1, class <tt>error_condition</tt>, change
-as indicated:
-</p>
-
-<blockquote><pre>
-// 19.5.3.2 constructors:
-error_condition();
-error_condition(int val, const error_category&amp; cat);
-template &lt;class ErrorConditionEnum&gt;
-  error_condition(ErrorConditionEnum e<del>,
-    typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::type* = 0</del>);
-
-// 19.5.3.3 modifiers:
-void assign(int val, const error_category&amp; cat);
-template&lt;<del>typename</del><ins>class</ins> ErrorConditionEnum&gt;
-  <del>typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;, error_code&gt;::type</del><ins>error_condition</ins> &amp;
-    operator=( ErrorConditionEnum e );
-void clear();
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 19.5.3.2 [syserr.errcondition.constructors] around the
-prototype before p. 7:
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorConditionEnum&gt;
-  error_condition(ErrorConditionEnum e<del>,
-    typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::value&gt;::type* = 0</del>);
-</pre>
-<blockquote><p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution, unless
-<tt>is_error_condition_enum&lt;ErrorConditionEnum&gt;::value == true</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 19.5.3.3 [syserr.errcondition.modifiers] around the
-prototype before p. 3:
-</p>
-
-<blockquote><pre>
-template &lt;class ErrorConditionEnum&gt;
-  <del>typename enable_if&lt;is_error_condition_enum&lt;ErrorConditionEnum&gt;::value&gt;::type</del><ins>error_condition</ins>&amp;
-    operator=(ErrorConditionEnum e);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Remarks:</i> This operator shall not participate in overload resolution, unless
-<tt>is_error_condition_enum&lt;ErrorConditionEnum&gt;::value == true</tt>.</ins>
-</p>
-
-<p>
-<i>Postcondition:</i> <tt>*this == make_error_condition(e)</tt>.
-</p>
-
-<p>
-<ins><i>Returns:</i> <tt>*this</tt></ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1240"></a>1240. Deleted comparison functions of <tt>std::function</tt> not needed</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class template <tt>std::function</tt> contains the following member
-declarations:
-</p>
-
-<blockquote><pre>
-// deleted overloads close possible hole in the type system
-template&lt;class R2, class... ArgTypes2&gt;
-  bool operator==(const function&lt;R2(ArgTypes2...)&gt;&amp;) = delete;
-template&lt;class R2, class... ArgTypes2&gt;
-  bool operator!=(const function&lt;R2(ArgTypes2...)&gt;&amp;) = delete;
-</pre></blockquote>
-
-<p>
-The leading comment here is part of the history of <tt>std::function</tt>, which
-was introduced with 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1402.html#undefined_operators">N1402</a>.
-During that time no explicit conversion functions existed, and the
-"safe-bool" idiom (based on pointers-to-member) was a popular
-technique. The only disadvantage of this idiom was that given two
-objects <tt>f1</tt> and <tt>f2</tt> of type <tt>std::function</tt> the expression
-</p>
-
-<blockquote><pre>
-f1 == f2;
-</pre></blockquote>
-
-<p>
-was well-formed, just because the built-in <tt>operator==</tt> for pointer to member
-was considered after a single user-defined conversion. To fix this, an
-overload set of <em>undefined</em> comparison functions was added,
-such that overload resolution would prefer those ending up in a linkage error.
-The new language facility of deleted functions provided a much better
-diagnostic mechanism to fix this issue.
-</p>
-
-<p>
-The central point of this issue is, that with the replacement of the
-safe-bool idiom by explicit conversion to bool the original "hole in the
-type system" does no longer exist and therefore the comment is wrong and
-the superfluous function definitions should be removed as well. An
-explicit conversion function is considered in direct-initialization
-situations only, which indirectly contain the so-called "contextual
-conversion to bool" (4 [conv]/3). These conversions are not considered for
-<tt>==</tt> or <tt>!=</tt> as defined by the core language.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.9.12.2 [func.wrap.func]/1, class function change as indicated:
-</p>
-
-<blockquote><pre>
-// 20.7.15.2.3, function capacity:
-explicit operator bool() const;
-
-<del>// deleted overloads close possible hole in the type system</del>
-<del>template&lt;class R2, class... ArgTypes2&gt;</del>
-  <del>bool operator==(const function&lt;R2(ArgTypes2...)&gt;&amp;) = delete;</del>
-<del>template&lt;class R2, class... ArgTypes2&gt;</del>
-  <del>bool operator!=(const function&lt;R2(ArgTypes2...)&gt;&amp;) = delete;</del>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1241"></a>1241. <tt>unique_copy</tt> needs to require <tt>EquivalenceRelation</tt></h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A lot of fixes were silently applied during concept-time and we should
-not lose them again. The Requires clause of 25.3.9 [alg.unique]/5
-doesn't mention that <tt>==</tt> and the predicate need to satisfy an
-<tt>EquivalenceRelation</tt>, as it is correctly said for <tt>unique</tt>. 
-This was intentionally fixed during conceptification, were we had:
-</p>
-
-<blockquote><pre>
-template&lt;InputIterator InIter, class OutIter&gt;
-  requires OutputIterator&lt;OutIter, RvalueOf&lt;InIter::value_type&gt;::type&gt;
-        &amp;&amp; EqualityComparable&lt;InIter::value_type&gt;
-        &amp;&amp; HasAssign&lt;InIter::value_type, InIter::reference&gt;
-        &amp;&amp; Constructible&lt;InIter::value_type, InIter::reference&gt;
-  OutIter unique_copy(InIter first, InIter last, OutIter result);
-
-template&lt;InputIterator InIter, class OutIter,
-         EquivalenceRelation&lt;auto, InIter::value_type&gt; Pred&gt;
-  requires OutputIterator&lt;OutIter, RvalueOf&lt;InIter::value_type&gt;::type&gt;
-        &amp;&amp; HasAssign&lt;InIter::value_type, InIter::reference&gt;
-        &amp;&amp; Constructible&lt;InIter::value_type, InIter::reference&gt;
-        &amp;&amp; CopyConstructible&lt;Pred&gt;
-  OutIter unique_copy(InIter first, InIter last, OutIter result, Pred pred);
-</pre></blockquote>
-
-<p>
-Note that EqualityComparable implied an equivalence relation.
-</p>
-
-<p><i>[
-N.B. <tt>adjacent_find</tt> was also specified to require
-<tt>EquivalenceRelation</tt>, but that was considered as a defect in
-concepts, see <a href="lwg-closed.html#1000">1000</a>
-]</i></p>
-
-
-<p><i>[
-2009-10-31 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 25.3.9 [alg.unique]/5 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator, class OutputIterator&gt;
-  OutputIterator
-    unique_copy(InputIterator first, InputIterator last, OutputIterator result);
-
-template&lt;class InputIterator, class OutputIterator, class BinaryPredicate&gt;
-  OutputIterator
-    unique_copy(InputIterator first, InputIterator last,
-                OutputIterator result, BinaryPredicate pred);
-</pre>
-<blockquote><p>
-<i>Requires:</i> <ins>The comparison function shall be an equivalence
-relation.</ins> The ranges <tt>[first,last)</tt> and
-<tt>[result,result+(last-first))</tt> shall not overlap. The expression
-<tt>*result = *first</tt> shall be valid. If neither
-<tt>InputIterator</tt> nor <tt>OutputIterator</tt> meets the
-requirements of forward iterator then the value type of
-<tt>InputIterator</tt> shall be <tt>CopyConstructible</tt> (34) and
-<tt>CopyAssignable</tt> (table 36). Otherwise <tt>CopyConstructible</tt>
-is not required.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1244"></a>1244. <tt>wait_*()</tt> in <tt>*future</tt> for synchronous functions</h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Detlef Vollmann <b>Opened:</b> 2009-10-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With the addition of <tt>async()</tt>, a <tt>future</tt> might be
-associated with a function that is not running in a different thread but
-is stored to by run synchronously on the <tt>get()</tt> call. It's not
-clear what the <tt>wait()</tt> functions should do in this case.
-</p>
-
-<p>
-Suggested resolution:
-</p>
-
-<p>
-Throw an exception.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1245"></a>1245. <tt>std::hash&lt;string&gt;</tt> &amp; co</h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2009-10-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.9.13 [unord.hash], <tt>operator()</tt> is specified as
-taking the argument by value. Moreover, it is said that <tt>operator()</tt> shall
-not throw exceptions.
-</p>
-
-<p>
-However, for the specializations for class types, like <tt>string</tt>, 
-<tt>wstring</tt>, etc, the former requirement seems suboptimal from the 
-performance point of view (a specific PR has been filed about this in the GCC Bugzilla)
-and, together with the latter requirement, hard if not impossible to
-fulfill. It looks like pass by const reference should be allowed in such
-cases.
-</p>
-
-<p><i>[
-2009-11-18: Ganesh updates wording.
-]</i></p>
-
-
-<blockquote><p>
-I've removed the list of types for which <tt>hash</tt> shall be instantiated
-because it's already explicit in the synopsis of header
-<tt>&lt;functional&gt;</tt> in 20.9 [function.objects]/2.
-</p></blockquote>
-
-<p><i>[
-2009-11-18: Original wording here:
-]</i></p>
-
-
-<blockquote class="note">
-<p>
-Add to 20.9.13 [unord.hash]/2:
-</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class T&gt;
-  struct hash : public std::unary_function&lt;T, std::size_t&gt; {
-    std::size_t operator()(T val) const;
-  };
-}
-</pre>
-
-<p>
-The return value of <tt>operator()</tt> is unspecified, except that
-equal arguments shall yield the same result. <tt>operator()</tt> shall
-not throw exceptions. <ins>It is also unspecified whether
-<tt>operator()</tt> of <tt>std::hash</tt> specializations for class
-types takes its argument by value or const reference.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<p><i>[
-2009-11-19 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2009-11-24 Ville Opens:
-]</i></p>
-
-
-<blockquote><p>
-I have received community requests to ask for this issue to be reopened.
-Some users feel that mandating the inheritance is overly constraining.
-</p></blockquote>
-
-<p><i>[
-2010-01-31 Alisdair: related to <a href="lwg-defects.html#978">978</a> and <a href="lwg-defects.html#1182">1182</a>.
-]</i></p>
-
-
-<p><i>[
-2010-02-07 Proposed resolution updated by Beman, Daniel and Ganesh.
-]</i></p>
-
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-  <p><i>Insert a new subclause either before or after the current 17.6.3.5 [allocator.requirements]:</i></p>
-<blockquote>
-
-  <h3><tt>Hash</tt> Requirements [hash.requirements]</h3>
-
-  <p>This subclause defines the named requirement <tt>Hash</tt>, 
-  used in several clauses of the C++ standard library. A type <tt>H</tt> meets the <tt>Hash</tt> requirement if</p>
-
-  <ul>
-    <li>
-
-  <p>it is a function object type (20.9 [function.objects]).</p>
-
-    </li>
-    <li>
-
-  <p>it satisfies the requirements of <tt>CopyConstructible</tt>, and 
-  <tt>Destructible</tt> (17.6.3.1 [utility.arg.requirements]),</p>
-
-    </li>
-    <li>
-
-  <p>the expressions shown in the following table are valid and have the 
-  indicated semantics, and</p>
-
-    </li>
-    <li>
-
-  <p>it satisfies all other requirements of this subclause.</p>
-
-    </li>
-  </ul>
-
-  <p>Given <tt>Key</tt> is an argument type for function objects of 
-  type <tt>H</tt>, in the table below <tt>h</tt> is a value of type (possibly <tt>const</tt>)
-  <tt>H</tt>, <tt>u</tt> is an lvalue of type <tt>Key</tt>,&nbsp; and <tt>
-  k</tt> 
-  is a value of a type convertible to (possibly <tt>const</tt>) <tt>Key</tt>:</p>
-
-<table border="1" cellpadding="5" cellspacing="1" style="border-collapse: collapse">
-  <caption>Table ? &mdash; <tt>Hash</tt> requirements</caption>
-  <tr>
-    <td>Expression</td>
-    <td>Return type</td>
-    <td>Requirement</td>
-  </tr>
-  <tr>
-    <td valign="top"><tt>h(k)</tt></td>
-    <td valign="top"><tt>size_t</tt></td>
-    <td valign="top">Shall not throw exceptions. The value returned shall depend only on
-the argument <tt>k</tt>. [<i>Note:</i> Thus all evaluations of the expression <tt>
-    h(k)</tt> with the 
-    same value for <tt>k</tt> yield the same result. <i>&mdash; end note</i>] [<i>Note:
-    </i>For <tt>t1</tt> and <tt>t2</tt> of different values, the probability that 
-    <tt>h(t1)</tt> 
-    and <tt>h(t2)</tt> compare equal should be very small, approaching <tt>(1.0/numeric_limits&lt;size_t&gt;::max())</tt>.
-    <i>&mdash; end note</i>] <i><span style="color:#C0C0C0">Comment 
-    (not to go in WP): The wording for the second note is based on a similar 
-    note in 22.4.4.1.2 [locale.collate.virtuals]/3</span></i></td>
-  </tr>
-  <tr>
-    <td valign="top"><tt>h(u)</tt></td>
-    <td valign="top"><tt>size_t</tt></td>
-    <td valign="top">Shall not modify <tt>u</tt>.</td>
-  </tr>
-  </table>
-
-</blockquote>
-
-<p><i>Change 20.9.13 [unord.hash] as indicated: </i>
-</p>
-<blockquote>
-  <p>1 The unordered associative containers defined in Clause 23.5 [unord] use 
-  specializations of <ins>the class template</ins> <tt>hash</tt> as the default 
-  hash function. <ins>For all object types <tt>T</tt> for which there exists a 
-  specialization <tt>hash&lt;T&gt;</tt>, the instantiation <tt>hash&lt;T&gt;</tt> shall:</ins></p>
-  <ul>
-    <li> <ins>satisfy the <tt>Hash</tt> requirements([hash.requirements]), with <tt>T</tt> as the 
-  function call argument type, the <tt>
-  DefaultConstructible</tt> requirements ([defaultconstructible]), the <tt>CopyAssignable</tt> 
-  requirements ([copyassignable]), and the <tt>
-  Swappable</tt> requirements ([swappable]),</ins>
-  </li>
-    <li> <ins>provide two nested types <tt>result_type</tt> and <tt>argument_type</tt> which shall 
-    be synonyms for <tt>size_t</tt> and <tt>T</tt>, respectively,</ins></li>
-    <li> <ins>satisfy the 
-  requirement that if <tt>k1 == k2</tt> is <tt>true</tt>, <tt>h(k1) == h(k2)</tt> 
-  is <tt>true</tt>, where <tt>h</tt> is an object of type <tt>hash&lt;T&gt;</tt>, and
-  <tt>k1</tt>, <tt>k2</tt> are objects of type <tt>T</tt>.</ins></li>
-  </ul>
-  <p> <del>This class template is only required to be instantiable 
-  for integer types (3.9.1 [basic.fundamental]), floating-point types (3.9.1 [basic.fundamental]), 
-  pointer types (8.3.1 [dcl.ptr]), and <tt>std::string</tt>, <tt>std::u16string</tt>,
-  <tt>std::u32string</tt>, <tt>std::wstring</tt>, <tt>std::error_code</tt>, <tt>
-  std::thread::id</tt>, <tt>std::bitset</tt>, and <tt>std::vector&lt;bool&gt;</tt>.</del> </p>
-  <blockquote>
-    <pre><del>namespace std {
-  template &lt;class T&gt;
-  struct hash : public std::unary_function&lt;T, std::size_t&gt; {
-    std::size_t operator()(T val) const;
-  };
-}</del></pre>
-  </blockquote>
-  <p><del>2 The return value of <tt>operator()</tt> is unspecified, except that 
-  equal arguments shall yield the same result. <tt>operator()</tt> shall not 
-  throw exceptions. </del></p>
-
-</blockquote>
-
-  <p><i>Change Unordered associative containers 23.2.5 [unord.req] as indicated:</i></p>
-<blockquote>
-  <p>Each unordered associative container is parameterized by <tt>Key</tt>, by a 
-  function object <ins>type</ins> <tt>Hash</tt><ins>([hash.requirements])</ins> that acts as a hash 
-  function for <ins>argument</ins> values of type <tt>Key</tt>, 
-  and by a binary predicate <tt>Pred</tt> that induces an equivalence relation 
-  on values of type <tt>Key</tt>. Additionally, <tt>unordered_map</tt> and <tt>
-  unordered_multimap</tt> associate an arbitrary mapped type <tt>T</tt> with the
-  <tt>Key</tt>.</p>
-  <p>A hash function is a function object that takes a single argument of type
-  <tt>Key</tt> and returns a value of type <tt>std::size_t</tt>.</p>
-<p>Two values <tt>k1</tt> and <tt>k2</tt> of type <tt>Key</tt> are considered 
-equal if the container's equality function object returns <tt>true</tt> when passed those 
-values. If <tt>k1</tt> and <tt>k2</tt> are equal, the hash function shall return 
-the same value for both. <ins>[<i>Note:</i> Thus supplying a non-default <tt>Pred</tt> 
-parameter usually implies the need to supply a non-default <tt>Hash</tt> 
-parameter. <i>&mdash; end note</i>]</ins></p>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1247"></a>1247. <tt>auto_ptr</tt> is overspecified</h3>
-<p><b>Section:</b> X [auto.ptr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#auto.ptr">issues</a> in [auto.ptr].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This issue is extracted as the ongoing point-of-interest from earlier
-issue <a href="lwg-closed.html#463">463</a>.
-</p>
-
-<p>
-<tt>auto_ptr</tt> is overspecified as the <tt>auto_ptr_ref</tt>
-implementation detail is formally specified, and the technique is
-observable so workarounds for compiler defects can cause a working
-implementation of the primary <tt>auto_ptr</tt> template become
-non-conforming.
-</p>
-
-<p>
-<tt>auto_ptr_ref</tt> is a documentation aid to describe a possible
-mechanism to implement the class.  It should be marked exposition only,
-as per similar classes, e.g., <tt>istreambuf_iterator::proxy</tt>
-</p>
-
-<p><i>[
-2009-10-25 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I wonder, whether the revised wording shouldn't be as straight as
-for <tt>istream_buf</tt> by adding one further sentence:
-</p>
-
-<blockquote><p>
-An implementation is permitted to provide equivalent functionality without
-providing a class with this name.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-11-06 Alisdair adds Daniel's suggestion to the proposed wording.
-]</i></p>
-
-
-<p><i>[
-2009-11-06 Howard moves issue to Review.
-]</i></p>
-
-
-<p><i>[
-2009-11-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the term "exposition only" in the following two places:
-</p>
-
-<p>
-Ammend X [auto.ptr]p2:
-</p>
-
-<blockquote>
-<p>
-<ins>The exposition only class </ins> <del>T</del><ins>t</ins>emplate <tt>auto_ptr_ref</tt>
-holds a reference to an <tt>auto_ptr</tt>. It is used by the
-<tt>auto_ptr</tt> conversions to allow <tt>auto_ptr</tt> objects to be
-passed to and returned from functions.
-<ins>An implementation is permitted to provide equivalent functionality
-without providing a class with this name.</ins>
-</p>
-
-<blockquote><pre>
-namespace std {
- template &lt;class Y&gt; struct auto_ptr_ref { }; <ins>// exposition only</ins>
-</pre></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1248"></a>1248. Equality comparison for unordered containers</h3>
-<p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Herb Sutter <b>Opened:</b> 2009-10-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-See
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2986.pdf">N2986</a>.
-</p>
-
-<p><i>[
-2010-01-22 Alisdair Opens.
-]</i></p>
-
-
-<p><i>[
-2010-01-24 Alisdair provides wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3068.pdf">N3068</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Apply paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2986.pdf">N2986</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1249"></a>1249. <tt>basic_ios</tt> default ctor</h3>
-<p><b>Section:</b> 27.5.5.2 [basic.ios.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2009-10-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.ios.cons">issues</a> in [basic.ios.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>basic_ios</tt> default ctor is required to leave the objects members
-uninitialized (see below). The paragraph says the object must be
-initialized by calling <tt>basic_ios::init()</tt> before it's destroyed but
-I can't find a requirement that it be initialized before calling
-any of the class other member functions. Am I not looking in the
-right place or that an issue?
-</p>
-
-<p><i>[
-2009-10-25 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I agree, that your wording makes that clearer, but suggest to write
-</p>
-
-<blockquote><p>
-... calling <tt>basic_ios::init<del>()</del></tt> before ...
-</p></blockquote>
-
-<p>
-Doing so, I recommend to adapt that of <tt>ios_base();</tt> as well, where
-we have:
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Each <tt>ios_base</tt> member has an indeterminate value
-after construction. These members shall be initialized by calling
-<tt>basic_ios::init</tt>. If an <tt>ios_base</tt> object is destroyed
-before these initializations have taken place, the behavior is
-undefined.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.5.3.7 [ios.base.cons] p1:
-</p>
-
-<blockquote><pre>
-ios_base();
-</pre>
-<blockquote><p>
-<i>Effects:</i> Each <tt>ios_base</tt> member has an indeterminate value
-after construction. <del>These</del> <ins>The object's</ins> members shall be initialized by calling
-<tt>basic_ios::init</tt> <ins>before the object's first use or before
- it is destroyed, whichever comes first; otherwise the behavior
- is undefined.</ins>. <del>If an <tt>ios_base</tt> object is destroyed
-before these initializations have taken place, the behavior is
-undefined.</del>
-</p></blockquote>
-</blockquote>
-
-<p>
-Change 27.5.5.2 [basic.ios.cons] p2:
-</p>
-
-<blockquote><pre>
-basic_ios();
-</pre>
-<blockquote><p>
-<i>Effects:</i> Constructs an object of class <tt>basic_ios</tt>
-(27.5.2.7) leaving its member objects uninitialized. The object shall be
-initialized by calling <del>its</del>
-<tt><ins>basic_ios::</ins>init</tt> <ins>before its first
-use or before it is destroyed, whichever comes first; otherwise the
-behavior is undefined.</ins> <del>member function. If it is destroyed
-before it has been initialized the behavior is undefined.</del>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1250"></a>1250. <tt>&lt;bitset&gt;</tt> still overspecified</h3>
-<p><b>Section:</b> 20.6 [template.bitset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Martin Sebor <b>Opened:</b> 2009-10-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#template.bitset">active issues</a> in [template.bitset].</p>
-<p><b>View all other</b> <a href="lwg-index.html#template.bitset">issues</a> in [template.bitset].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#1227">1227</a> &mdash; <tt>&lt;bitset&gt;</tt> synopsis overspecified makes the observation
-that <tt>std::bitset</tt>, and in fact the whole library, may be implemented
-without needing to <tt>#include &lt;stdexcept&gt;</tt> in any library header. The
-proposed resolution removes the <tt>#include &lt;stdexcept&gt;</tt> directive from
-the header.
-</p>
-
-<p>
-I'd like to add that the <tt>&lt;bitset&gt;</tt> header (as well as the rest of
-the library) has also been implemented without #including the
-<tt>&lt;cstddef&gt;</tt> header in any library header. In the case of <tt>std::bitset</tt>,
-the template is fully usable (i.e., it may be instantiated and all
-its member functions may be used) without ever mentioning <tt>size_t</tt>.
-In addition, just like no library header except for <tt>&lt;bitset&gt;</tt>
-<tt>#includes &lt;stdexcept&gt;</tt> in its synopsis, no header but <tt>&lt;bitset&gt;</tt>
-<tt>#includes &lt;cstddef&gt;</tt> either.
-</p>
-
-<p>
-Thus I suggest that the <tt>#include &lt;cstddef&gt;</tt> directive be similarly
-removed from the synopsis of <tt>&lt;bitset&gt;</tt>.
-</p>
-
-<p><i>[
-2010-02-08 Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.6 [template.bitset]:
-</p>
-
-<blockquote><pre>
-<del>#include &lt;cstddef&gt;        // for size_t</del>
-#include &lt;string&gt;
-#include &lt;iosfwd&gt;         // for istream, ostream
-namespace std {
-...
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1252"></a>1252. <tt>wbuffer_convert::state_type</tt> inconsistency</h3>
-<p><b>Section:</b> 22.3.3.2.3 [conversions.buffer] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Bo Persson  <b>Opened:</b> 2009-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.buffer">active issues</a> in [conversions.buffer].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.buffer">issues</a> in [conversions.buffer].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The synopsis for <tt>wbuffer_convert</tt> 22.3.3.2.3 [conversions.buffer]/2 contains
-</p>
-
-<blockquote><pre>
-typedef typename Tr::state_type   state_type; 
-</pre></blockquote>
-
-<p>
-making <tt>state_type</tt> a synonym for (possibly) some
-<tt>char_traits&lt;x&gt;::state_type</tt>. 
-</p>
-
-<p>
-However, in paragraph 9 of the same section, we have 
-</p>
-
-<blockquote><pre>
-typedef typename Codecvt::state_type state_type;
-</pre>
-
-<blockquote><p>
-The type shall be a synonym for <tt>Codecvt::state_type</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-From what I can see, it might be hard to implement <tt>wbuffer_convert</tt> if 
-the types were not both <tt>std::mbstate_t</tt>, but I cannot find a requirement 
-that they must be the same type.
-</p>
-
-<p><i>[
-Batavia 2010:
-]</i></p>
-
-
-<p>
-Howard to draft wording, move to Review. Run it by Bill. Need to move this in Madrid.
-</p>
-
-<p><i>[2011-03-06: Howard drafts wording]</i></p>
-
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Moved to Immediate</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Modify the <tt>state_type</tt> typedef in the synopsis of 22.3.3.2.3 [conversions.buffer] p.2 as shown
-[This makes the synopsis consistent with 22.3.3.2.3 [conversions.buffer] p.9]:</p>
-
-<blockquote><pre>
-namespace std {
-template&lt;class Codecvt,
-  class Elem = wchar_t,
-  class Tr = std::char_traits&lt;Elem&gt; &gt;
-class wbuffer_convert
-  : public std::basic_streambuf&lt;Elem, Tr&gt; {
-public:
-  typedef typename <del>Tr</del><ins>Codecvt</ins>::state_type state_type;
-  [&hellip;]
-};
-}
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1253"></a>1253. invalidation of iterators and <tt>emplace</tt> vs. <tt>insert</tt> inconsistence in assoc. containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Boris Du&scaron;ek <b>Opened:</b> 2009-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In the latest published draft
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2960.pdf">N2960</a>,
-section 23.2.4 [associative.reqmts], paragraph 8, it is specified
-that that <tt>insert</tt> does not invalidate any iterators. As per
-23.2.1 [container.requirements.general], paragraph 12, this holds
-true not only for <tt>insert</tt>, but <tt>emplace</tt> as well. This
-gives the <tt>insert</tt> member a special treatment w.r.t.
-<tt>emplace</tt> member in 23.2.4 [associative.reqmts], par. 8,
-since both modify the container. For the sake of consistency, in 23.2.4 [associative.reqmts], par. 8: either reference to <tt>insert</tt> 
-should be removed (i.e. count on 23.2.1 [container.requirements.general], 
-par. 12), or reference to <tt>emplace</tt> be added (i.e. mention all 
-members of assoc. containers that modify it).
-</p>
-
-<p><i>[
-2009-11-18 Chris provided wording.
-]</i></p>
-
-
-<blockquote><p>
-This suggested wording covers both the issue discussed, and a number of other
-identical issues (namely <tt>insert</tt> being discussed without <tt>emplace</tt>). I'm happy to
-go back and split and introduce a new issue if appropriate, but I think the
-changes are fairly mechanical and obvious.
-</p></blockquote>
-
-<p><i>[
-2010-01-23 Daniel Kr&uuml;gler and J. Daniel Garc&iacute;a updated wording to
-make the use of <tt>hint</tt> consistent with <tt>insert</tt>.
-]</i></p>
-
-
-<p><i>[
-2011-02-23 Daniel Kr&uuml;gler adapts wording to numbering changes to match the N3225 draft. During this
-action it was found that 23.2.5 [unord.req] had been changed considerably
-due to acceptance of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3068.pdf">N3068</a>
-during the Pittsburgh meeting, such that the suggested wording change to
-p. 6 can no longer be applied. The new wording is more general and should
-now include <tt>insert()</tt> and <tt>emplace()</tt> calls as well ("mutating operations").
-]</i></p>
-
-
-<p><i>[2011-03-06 Daniel Kr&uuml;gler adapts wording to numbering changes to match the N3242 draft]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Modify bullet 1 of 23.2.1 [container.requirements.general], p. 10:
-</p>
-
-<p>
-10 Unless otherwise specified (see [associative.reqmts.except], [unord.req.except], [deque.modifiers], and [vector.modifiers])
-all container types defined in this Clause meet the following additional
-requirements:
-</p>
-
-<ul>
-<li>
-if an exception is thrown by an <tt>insert()</tt> <ins>or
-<tt>emplace()</tt></ins> function while inserting a single element, that
-function has no effects.
-</li>
-<li>...</li>
-</ul>
-
-</li>
-
-<li>
-<p>
-Modify 23.2.4 [associative.reqmts], p. 4:
-</p>
-
-<blockquote><p>
-4 An associative container supports <i>unique keys</i> if it may contain at most
-one element for each key. Otherwise, it supports <i>equivalent keys</i>. The
-<tt>set</tt> and <tt>map</tt> classes support unique keys; the <tt>multiset</tt>
-and <tt>multimap</tt> classes support equivalent keys. For <tt>multiset</tt> and
-<tt>multimap</tt>, <tt>insert</tt><ins>, <tt>emplace</tt>,</ins> and
-<tt>erase</tt> preserve the relative ordering of equivalent elements.
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-Modify Table 102 &mdash; Associative container requirements in 
-23.2.4 [associative.reqmts]:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 102 &mdash; Associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note<br />pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" style="text-align:center;">[&hellip;]</td>
-</tr>
-
-<tr>
-<td><tt>a_eq.emplace(args)</tt></td>
-<td><tt>iterator</tt></td>
-<td>[&hellip;] <i>Effects:</i> Inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> and returns the iterator pointing to
-the newly inserted element. <ins>If a range containing elements equivalent to
-<tt>t</tt> exists in <tt>a_eq</tt>, <tt>t</tt> is inserted at the end of that
-range.</ins></td>
-<td>logarithmic</td>
-</tr>
-
-<tr>
-<td><tt>a.emplace_hint(p, args)</tt></td>
-<td><tt>iterator</tt></td>
-<td>equivalent to <tt>a.emplace(std::forward&lt;Args&gt;(args)...)</tt>. Return
-value is an iterator pointing to the element with the key equivalent to the
-newly inserted element. <del>The <tt>const_iterator p</tt> is a hint pointing to
-where the search should start.</del> <ins>The element is inserted as close as
-possible to the position just prior to <tt>p</tt>.</ins> <del>Implementations
-are permitted to ignore the hint.</del></td>
-<td>logarithmic in general, but amortized constant if the element is inserted
-right <del>after</del> <ins>before</ins> <tt>p</tt></td>
-</tr>
-
-<tr>
-<td colspan="4" style="text-align:center;">[&hellip;]</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Modify 23.2.4 [associative.reqmts], p. 9:
-</p>
-
-<blockquote><p>
-9 The <tt>insert</tt> <ins>and <tt>emplace</tt></ins> members shall not affect
-the validity of iterators and references to the container, and the
-<tt>erase</tt> members shall invalidate only iterators and references to the
-erased elements.
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-Modify 23.2.4.1 [associative.reqmts.except], p. 2:
-</p>
-
-<blockquote><p>
-2 For associative containers, if an exception is thrown by any operation from
-within an <tt>insert()</tt> <ins> or <tt>emplace()</tt></ins> function inserting
-a single element, the <del><tt>insert()</tt> function</del> <ins>insertion</ins>
-has no effect.
-</p></blockquote>
-
-</li>
-
-<li>
-<p>
-Modify 23.2.5 [unord.req], p. 13 and p. 14:
-</p>
-
-<blockquote>
-<p>
-6 An unordered associative container supports <i>unique keys</i> if it may
-contain at most one element for each key. Otherwise, it supports <i>equivalent
-keys</i>. <tt>unordered_set</tt> and <tt>unordered_map</tt> support unique keys.
-<tt>unordered_multiset</tt> and <tt>unordered_multimap</tt> support equivalent
-keys. In containers that support equivalent keys, elements with equivalent keys
-are adjacent to each other in the iteration order of the container. Thus, although 
-the absolute order of elements in an unordered container is not specified, its 
-elements are grouped into <i>equivalent-key groups</i> such that all elements of each 
-group have equivalent keys. Mutating operations on unordered containers shall 
-preserve the relative order of elements within each equivalent-key group unless 
-otherwise specified.
-</p>
-
-<p>[&hellip;]</p>
-
-<p>
-13 The <tt>insert</tt> <ins>and <tt>emplace</tt></ins> members shall not affect
-the validity of references to container elements, but may invalidate all
-iterators to the container. The erase members shall invalidate only iterators
-and references to the erased elements.
-</p>
-
-<p>
-14 The <tt>insert</tt> <ins>and <tt>emplace</tt></ins> members shall not affect
-the validity of iterators if <tt>(N+n) &lt; z * B</tt>, where <tt>N</tt> is the
-number of elements in the container prior to the insert operation, <tt>n</tt> is
-the number of elements inserted, <tt>B</tt> is the container's bucket count, and
-<tt>z</tt> is the container's maximum load factor.
-</p>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Modify 23.2.5.1 [unord.req.except], p. 2:
-</p>
-
-<blockquote><p>
-2 For unordered associative containers, if an exception is thrown by any
-operation other than the container's hash function from within an
-<tt>insert()</tt> <ins>or <tt>emplace()</tt></ins> function inserting a single
-element, the <del><tt>insert()</tt></del> <ins>insertion</ins>
-<del>function</del> has no effect.
-</p></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1254"></a>1254. Misleading sentence in <tt>vector&lt;bool&gt;::flip</tt></h3>
-<p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Christopher Jefferson <b>Opened:</b> 2009-11-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The effects of <tt>vector&lt;bool&gt;::flip</tt> has the line:
-</p>
-
-<blockquote><p>
-It is unspecified whether the function has any effect on allocated but
-unused bits.
-</p></blockquote>
-
-<p>
-While this is technically true, it is misleading, as any member function
-in any standard container may change unused but allocated memory. Users
-can never observe such changes as it would also be undefined behaviour
-to read such memory.
-</p>
-
-<p><i>[
-2009-11-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Strike second sentence from the definition of <tt>vector&lt;bool&gt;::flip()</tt>,
-23.3.7 [vector.bool], paragraph 5.
-</p>
-
-<blockquote><p>
-<i>Effects:</i> Replaces each element in the container with its complement.
-<del>It is unspecified whether the function has any effect on allocated
-but unused bits.</del>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1255"></a>1255. <tt>declval</tt> should be added to the library</h3>
-<p><b>Section:</b> 20.2 [utility] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-11-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#utility">active issues</a> in [utility].</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility">issues</a> in [utility].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the Santa Cruz meeting it was decided to split off the provision
-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>
-from the concrete request of the
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2939.html#UK300">UK 300</a>
-comment.
-The provision of a new library component that allows the production of
-values in unevaluated expressions is considered as important
-to realize constrained templates in C++0x where concepts are not
-available.
-</p>
-
-<p>
-The following proposed resolution is an improvement over that suggested in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2958.html">N2958</a>,
-because the proposed component can now be defined without loss of
-general usefulness and any <i>use</i> by user-code will make the program ill-formed.
-A possible prototype implementation that satisfies the core language
-requirements can be written as:
-</p>
-
-<blockquote><pre>
-template&lt;class T&gt;
-  struct declval_protector {
-    static const bool stop = false;
-    static typename std::add_rvalue_reference&lt;T&gt;::type delegate(); <span style="color:#C80000">// undefined</span>
-  };
-
-template&lt;class T&gt;
-typename std::add_rvalue_reference&lt;T&gt;::type declval() {
-  static_assert(declval_protector&lt;T&gt;::stop, "declval() must not be used!");
-  return declval_protector&lt;T&gt;::delegate();
-}
-</pre></blockquote>
-
-<p>
-Further-on the earlier suggested name <tt>value()</tt> has been changed to <tt>declval()</tt>
-after discussions with committee members.
-</p>
-
-<p>
-Finally the suggestion shown below demonstrates that it can simplify
-existing standard wording by directly using it in the library
-specification, and that it also improves an overlooked corner case for
-<tt>common_type</tt> by adding support for <tt>cv void</tt>.
-</p>
-
-<p><i>[
-2009-11-19 Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[
-The proposed resolution has been updated to
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-numbering and wording
-]</i></p>
-
-
-<ol>
-<li>
-<p>
-Change 20.2 [utility], header <tt>&lt;utility&gt;</tt> synopsis
-as indicated:
-</p>
-
-<blockquote><pre>
-// 20.3.3, forward/move:
-template &lt;class T&gt; struct identity;
-template &lt;class T, class U&gt; T&amp;&amp; forward(U&amp;&amp;);
-template &lt;class T&gt; typename remove_reference&lt;T&gt;::type&amp;&amp; move(T&amp;&amp;);
-
-<ins>// 20.3.4, declval:</ins>
-<ins>template &lt;class T&gt; typename add_rvalue_reference&lt;T&gt;::type declval(); // as unevaluated operand</ins>
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Immediately after the current section 20.2.4 [forward] insert a
-new section:
-</p>
-<p>
-<ins>20.3.4 Function template declval [declval]</ins>
-</p>
-<p>
-<ins>The library provides the function template <tt>declval</tt> to simplify
-the definition of expressions which occur as
-unevaluated operands (5 [expr]). The
-template parameter <tt>T</tt> of <tt>declval</tt> may
-be an incomplete type.</ins>
-</p>
-
-<pre>
-<ins>template &lt;class T&gt; typename add_rvalue_reference&lt;T&gt;::type declval(); // as unevaluated operand</ins>
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Remarks:</i> If this function is used according to 3.2 [basic.def.odr],
-the program is ill-formed.</ins>
-</p>
-
-<p>
-<ins>[<i>Example:</i></ins>
-</p>
-
-<blockquote><pre><ins>
-template&lt;class To, class From&gt;
-decltype(static_cast&lt;To&gt;(declval&lt;From&gt;())) convert(From&amp;&amp;);
-</ins></pre></blockquote>
-
-<p>
-<ins>
-declares a function template <tt>convert</tt>, which only participates in
-overloading if the type <tt>From</tt> can be explicitly cast to type <tt>To</tt>.
-For another example see class template <tt>common_type</tt>
-(20.10.7.6 [meta.trans.other]).
-&mdash; <i>end example</i>]</ins>
-</p>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-This bullet just makes clear that after applying 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2984.htm">N2984</a>, 
-the changes in 20.10.4.3 [meta.unary.prop], before
-table Type property queries should <em>not</em> use <tt>declval</tt>,
-because the well-formedness requirement of the specification of
-<tt>is_constructible</tt> would become more complicated, because we
-would need to make sure that the expression <i>CE</i> is checked in an
-unevaluated context.
-</p>
-</li>
-
-<li>
-<p>
-Also 20.10.6 [meta.rel]/4 is not modified similar to the previous bullet,
-because with the stricter requirements of not using <tt>declval()</tt> the well-formedness condition
-would be harder to specify. The following changes are only editorial ones (e.g.
-the removal of the duplicate declaration of <tt>create()</tt>):
-</p>
-
-<blockquote>
-<p>
-Given the following function prototype:
-</p>
-
-<blockquote><pre>
-template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create();
-</pre></blockquote>
-
-<p>
-the predicate condition for a template specialization
-<tt>is_convertible&lt;From, To&gt;</tt> shall be satisfied if and only
-if the return expression in the following code would be well-formed,
-including any
-implicit conversions to the return type of the function:
-</p>
-
-<blockquote><pre>
-<del>template &lt;class T&gt;
-typename add_rvalue_reference&lt;T&gt;::type create();</del>
-To test() {
-  return create&lt;From&gt;();
-}
-</pre></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change the entry in column "Comments" for <tt>common_type</tt> in Table 51 &mdash;
-Other transformations (20.10.7.6 [meta.trans.other]):
-</p>
-
-<p><i>[
-NB: This wording change extends the type domain of <tt>common_type</tt> for <tt>cv
-void =&gt; cv void</tt> transformations and thus makes <tt>common_type</tt> usable for
-all binary type combinations that are supported by <tt>is_convertible</tt>
-]</i></p>
-
-
-<blockquote><p>
-The member typedef <tt>type</tt> shall be defined as set out below. All
-types in the parameter pack <tt>T</tt> shall be complete <ins>or
-(possibly cv-qualified) <tt>void</tt></ins>. A program may specialize
-this trait if at least one template parameter in the specialization is a
-user-defined type. [<i>Note:</i> Such specializations are needed when
-only explicit conversions are desired among the template arguments.
-&mdash; <i>end note</i>]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.10.7.6 [meta.trans.other]/3 as indicated:
-</p>
-
-<p><i>[
-NB: This wording change is more than an editorial simplification of
-the definition of <tt>common_type</tt>: It also extends its usefulness for <tt>cv
-void</tt> types as outlined above
-]</i></p>
-
-
-<blockquote>
-<p>
-The nested typedef <tt>common_type::type</tt> shall be defined as follows:
-</p>
-
-<blockquote>
-<p>
-[..]
-</p>
-<pre>
-template &lt;class T, class U&gt;
-struct common_type&lt;T, U&gt; {
-<del>private:
-  static T&amp;&amp; __t();
-  static U&amp;&amp; __u();
-public:</del>
-  typedef decltype(true ? <del>__t</del><ins>declval&lt;T&gt;</ins>() : <del>__u</del><ins>declval&lt;U&gt;</ins>()) type;
-};
-</pre>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change X [func.ret]/1 as indicated
-[<i>This part solves some main aspects of issue <a href="lwg-defects.html#1225">1225</a></i>]:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class&gt; class result_of; // undefined
-
-  template &lt;class Fn, class... ArgTypes&gt;
-  class result_of&lt;Fn(ArgTypes...)&gt; {
-  public :
-    <del>// types</del>
-    typedef <del>see below</del><ins>decltype(declval&lt;Fn&gt;() ( declval&lt;ArgTypes&gt;()... ))</ins> type;
-  };
-}
-</pre>
-<p>
-<del>1 Given an rvalue <tt>fn</tt> of type <tt>Fn</tt> and values <tt>t1, t2, ..., tN</tt> of
-types <tt>T1, T2, ..., TN</tt> in <tt>ArgTypes</tt>,
-respectively, the <tt>type</tt> member is the result type of the expression
-<tt>fn(t1, t2, ...,tN)</tt>. The values <tt>ti</tt>
-are lvalues when the corresponding type <tt>Ti</tt> is an lvalue-reference
-type, and rvalues otherwise.</del>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1256"></a>1256. <tt>weak_ptr</tt> comparison functions should be removed</h3>
-<p><b>Section:</b> 20.8.2.3 [util.smartptr.weak] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-11-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.weak">issues</a> in [util.smartptr.weak].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Additional to the necessary cleanup of the description of the the
-<tt>weak_ptr</tt> component from 20.8.2.3 [util.smartptr.weak]
-described in <a href="lwg-defects.html#1231">1231</a> it turns out that the currently deleted
-comparison functions of <tt>weak_ptr</tt> are not needed at all: There
-is no safe-bool conversion from <tt>weak_ptr</tt>, and it won't silently
-chose a conversion to <tt>shared_ptr</tt>.
-</p>
-
-<p><i>[
-2009-11-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.8.2.3 [util.smartptr.weak]/1 as indicated:
-</p>
-
-<blockquote><pre>
-namespace std {
-template&lt;class T&gt; class weak_ptr {
-public:
-...
-  <del>// comparisons</del>
-  <del>template&lt;class Y&gt; bool operator&lt;(weak_ptr&lt;Y&gt; const&amp;) const = delete;</del>
-  <del>template&lt;class Y&gt; bool operator&lt;=(weak_ptr&lt;Y&gt; const&amp;) const = delete;</del>
-  <del>template&lt;class Y&gt; bool operator&gt;(weak_ptr&lt;Y&gt; const&amp;) const = delete;</del>
-  <del>template&lt;class Y&gt; bool operator&gt;=(weak_ptr&lt;Y&gt; const&amp;) const = delete;</del>
-};
-...
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1257"></a>1257. Header &lt;ios&gt; still contains a <code>concept_map</code></h3>
-<p><b>Section:</b> 27.5 [iostreams.base] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2009-11-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostreams.base">issues</a> in [iostreams.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current WP still contains a <tt>concept_map</tt>.
-</p>
-
-<p><i>[
-2009-11-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change Iostreams base classes 27.5 [iostreams.base], Header &lt;ios&gt; synopsis, 
-as indicated:
-</p>
-
-<blockquote><pre>
-<del>concept_map ErrorCodeEnum&lt;io_errc&gt; { };</del>
-<ins>template &lt;&gt; struct is_error_code_enum&lt;io_errc&gt; : true_type { }</ins>
-error_code make_error_code(io_errc e);
-error_condition make_error_condition(io_errc e);
-const error_category&amp; iostream_category();
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1258"></a>1258. std::function Effects clause impossible to satisfy</h3>
-<p><b>Section:</b> 20.9.12.2.2 [func.wrap.func.mod] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-11-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As of 20.9.12.2.2 [func.wrap.func.mod]/2+ we have the following
-prototype description:
-</p>
-
-<blockquote><pre>
-template&lt;class F, Allocator Alloc&gt;
-  void assign(F, const Alloc&amp;);
-</pre>
-<blockquote><p>
-<i>Effects:</i> <tt>function(f, a).swap(*this)</tt>
-</p></blockquote>
-</blockquote>
-
-<p>
-Two things: First the concept debris needs to be removed, second and
-much more importantly, the effects clause is now impossible to satisfy,
-because there is no constructor that would match the parameter sequence
-(<tt>FunctionObject</tt>, <tt>Allocator</tt>) [plus the fact that no
-<tt>f</tt> and no <tt>a</tt> is part of the signature]. The most
-probable candidate is
-</p>
-
-<blockquote><pre>
-template&lt;class F, class A&gt; function(allocator_arg_t, const A&amp;, F);
-</pre></blockquote>
-
-<p>
-and the effects clause needs to be adapted to use this signature.
-</p>
-
-<p><i>[
-2009-11-13 Daniel brought wording up to date.
-]</i></p>
-
-
-<p><i>[
-2009-11-15 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-11 Moved to Tentatively NAD Editorial after 5 positive votes on
-c++std-lib.  It was noted that this issue was in partial conflict with <a href="lwg-defects.html#1288">1288</a>, and the two issues were merged in <a href="lwg-defects.html#1288">1288</a>.
-]</i></p>
-
-
-<p><b>Rationale:</b></p>
-<p>
-Addressed by <a href="lwg-defects.html#1288">1288</a>.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change in 20.9.12.2.2 [func.wrap.func.mod] the complete prototype description as
-indicated
-</p>
-<p><i>[
-Question to
-the editor: Shouldn't there a paragraph number in front of the Effects clause?
-]</i></p>
-
-
-<blockquote><pre>
-template&lt;class F, <del>Allocator Alloc</del><ins>class A</ins>>
-  void assign(F <ins>f</ins>, const A<del>lloc</del>&amp; <ins>a</ins>);
-</pre>
-<blockquote><p>
-<ins>3</ins> <i>Effects:</i> <tt>function(<del>f, a</del><ins>allocator_arg, a,
-f</ins>).swap(*this)</tt>
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1260"></a>1260. <tt>is_constructible&lt;int*,void*&gt;</tt> reports true</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2009-11-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification of <tt>is_constructible&lt;T,Args...&gt;</tt> in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-uses
-</p>
-
-<blockquote><pre>
-static_cast&lt;T&gt;(create&lt;Args&gt;()...)
-</pre></blockquote>
-
-<p>
-for the one-argument case, but <tt>static_cast</tt> also permits
-unwanted conversions such as <tt>void*</tt> to <tt>T*</tt> and
-<tt>Base*</tt> to <tt>Derived*</tt>.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>, this issue is addressed by paper 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3047.html">n3047</a>
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.10.4.3 [meta.unary.prop], p6:
-</p>
-
-<blockquote>
-<p>
-the predicate condition for a template specialization
-<tt>is_constructible&lt;T, Args&gt;</tt> shall be satisfied, if and only
-if the following <del>expression <i>CE</i></del> <ins>variable
-definition</ins> would be well-formed:
-</p>
-
-<ul>
-<li>
-<p>
-if <tt>sizeof...(Args) == <ins>0</ins> <del>1</del></tt><del>, the expression</del>:
-</p>
-<blockquote><pre>
-<del>static_cast&lt;T&gt;(create&lt;Args&gt;()...)</del>
-<ins>T t;</ins>
-</pre></blockquote>
-</li>
-<li>
-<p>
-otherwise <del>the expression</del>:
-</p>
-<blockquote><pre>
-T<ins> t</ins>(create&lt;Args&gt;()...);
-</pre></blockquote>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1261"></a>1261. Insufficent overloads for <tt>to_string</tt> &#47; <tt>to_wstring</tt></h3>
-<p><b>Section:</b> 21.5 [string.conversions] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Christopher Jefferson <b>Opened:</b> 2009-11-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.conversions">issues</a> in [string.conversions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Reported on the gcc mailing list.
-</p>
-
-<blockquote><p>
-The code "<tt>int i; to_string(i);</tt>" fails to compile, as
-'<tt>int</tt>' is ambiguous between '<tt>long long</tt>' and '<tt>long
-long unsigned</tt>'. It seems unreasonable to expect users to cast
-numbers up to a larger type just to use <tt>to_string</tt>.
-</p></blockquote>
-
-<p><i>[
-2009-11-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-21.3 [string.classes], change <tt>to_string</tt> and
-<tt>to_wstring</tt> to:
-</p>
-
-<blockquote><pre>
-<ins>string to_string(int val);</ins>
-<ins>string to_string(unsigned val);</ins>
-<ins>string to_string(long val);</ins>
-<ins>string to_string(unsigned long val);</ins>
-string to_string(long long val); 
-string to_string(unsigned long long val); 
-<ins>string to_string(float val);</ins>
-<ins>string to_string(double val);</ins>
-string to_string(long double val);
-
-<ins>wstring to_wstring(int val);</ins>
-<ins>wstring to_wstring(unsigned val);</ins>
-<ins>wstring to_wstring(long val);</ins>
-<ins>wstring to_wstring(unsigned long val);</ins>
-wstring to_wstring(long long val); 
-wstring to_wstring(unsigned long long val); 
-<ins>wstring to_wstring(float val);</ins>
-<ins>wstring to_wstring(double val);</ins>
-wstring to_wstring(long double val);
-</pre></blockquote>
-
-<p>
-In 21.5 [string.conversions], paragraph 7, change to:
-</p>
-
-<blockquote><pre>
-<ins>string to_string(int val);</ins>
-<ins>string to_string(unsigned val);</ins>
-<ins>string to_string(long val);</ins>
-<ins>string to_string(unsigned long val);</ins>
-string to_string(long long val); 
-string to_string(unsigned long long val); 
-<ins>string to_string(float val);</ins>
-<ins>string to_string(double val);</ins>
-string to_string(long double val);
-</pre>
-
-<blockquote><p>
-7 <i>Returns:</i> each function returns a <tt>string</tt> object holding
-the character representation of the value of its argument that would be
-generated by calling <tt>sprintf(buf, fmt, val)</tt> with a format
-specifier of <ins> <tt>"%d"</tt>, <tt>"%u"</tt>, <tt>"%ld"</tt>,
-<tt>"%lu"</tt>, </ins> <tt>"%lld"</tt>, <tt>"%llu"</tt>,
-<ins><tt>"%f"</tt>, <tt>"%f"</tt>,</ins> or <tt>"%Lf"</tt>, respectively,
-where <tt>buf</tt> designates an internal character buffer of sufficient
-size.
-</p></blockquote>
-</blockquote>
-
-<p>
-In 21.5 [string.conversions], paragraph 14, change to:
-</p>
-
-<blockquote><pre>
-<ins>wstring to_wstring(int val);</ins>
-<ins>wstring to_wstring(unsigned val);</ins>
-<ins>wstring to_wstring(long val);</ins>
-<ins>wstring to_wstring(unsigned long val);</ins>
-wstring to_wstring(long long val); 
-wstring to_wstring(unsigned long long val); 
-<ins>wstring to_wstring(float val);</ins>
-<ins>wstring to_wstring(double val);</ins>
-wstring to_wstring(long double val);
-</pre>
-
-<blockquote><p>
-14	<i>Returns:</i> Each function returns a <tt>wstring</tt> object
-holding the character representation of the value of its argument that
-would be generated by calling <tt>swprintf(buf, buffsz, fmt, val)</tt>
-with a format specifier of <ins> <tt>L"%d"</tt>, <tt>L"%u"</tt>,
-<tt>L"%ld"</tt>, <tt>L"%lu"</tt>, </ins><tt>L"%lld"</tt>,
-<tt>L"%llu"</tt>, <ins><tt>L"%f"</tt>, <tt>L"%f"</tt>,</ins> or
-<tt>L"%Lf"</tt>, respectively, where <tt>buf</tt> designates an internal
-character buffer of sufficient size <tt>buffsz</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1262"></a>1262. <tt>std::less&lt;std::shared_ptr&lt;T&gt;&gt;</tt> is underspecified</h3>
-<p><b>Section:</b> 20.8.2.2.7 [util.smartptr.shared.cmp] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-11-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.2.2.7 [util.smartptr.shared.cmp]/5 says:
-</p>
-
-<blockquote><p>
-For templates <tt>greater</tt>, <tt>less</tt>, <tt>greater_equal</tt>, and <tt>less_equal</tt>, the
-partial specializations for <tt>shared_ptr</tt> shall yield a total order, even if
-the built-in operators <tt>&lt;</tt>, <tt>&gt;</tt>, <tt>&lt;=</tt>, and <tt>&gt;=</tt> do not. 
-Moreover, <tt>less&lt;shared_ptr&lt;T&gt; &gt;::operator()(a, b)</tt> shall return
-<tt>std::less&lt;T*&gt;::operator()(a.get(), b.get())</tt>.
-</p></blockquote>
-
-<p>
-This is necessary in order to use <tt>shared_ptr</tt> as the key in associate
-containers because
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf">n2637</a>
-changed <tt>operator&lt;</tt> on <tt>shared_ptr</tt>s to be
-defined in terms of <tt>operator&lt;</tt> on the stored pointers (a mistake IMHO
-but too late now.)  By 5.9 [expr.rel]/2 the result of comparing builtin
-pointers is unspecified except in special cases which generally do not
-apply to <tt>shared_ptr</tt>.
-</p>
-
-<p>
-Earlier versions of the WP
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf">n2798</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2857.pdf">n2857</a>)
-had the following note on that paragraph:
-</p>
-
-<blockquote><p>
-[Editor's note: It's not clear to me whether the first sentence is a requirement
-or a note. The second sentence seems to be a requirement, but it doesn't really belong 
-here, under <tt>operator&lt;</tt>.]
-</p></blockquote>
-
-<p>
-I agree completely - if partial specializations are needed they should
-be properly specified.
-</p>
-
-<p>
-20.8.2.2.7 [util.smartptr.shared.cmp]/6 has a note saying the comparison operator
-allows <tt>shared_ptr</tt> objects to be used as keys in associative
-containers, which is misleading because something else like a
-<tt>std::less</tt> partial specialization is needed.  If it is not correct that
-note should be removed.
-</p>
-
-<p>
-20.8.2.2.7 [util.smartptr.shared.cmp]/3 refers to '<tt>x</tt>' and
-'<tt>y</tt>' but the prototype has parameters '<tt>a</tt>' and
-'<tt>b</tt>' - that needs to be fixed even if the rest of the issue is
-NAD.
-</p>
-
-<p>
-I see two ways to fix this, I prefer the first because it removes the
-need for any partial specializations and also fixes <tt>operator&gt;</tt> and
-other comparisons when defined in terms of <tt>operator&lt;</tt>.
-</p>
-
-<ol>
-<li>
-<p>
-Replace 20.8.2.2.7 [util.smartptr.shared.cmp]/3 with the following and
-remove p5:
-</p>
-
-<blockquote><pre>
-template&lt;class T, class U&gt; bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b);
-</pre>
-<blockquote>
-<p>
-3  <i>Returns:</i> <del><tt>x.get() &lt; y.get()</tt>.</del>
-<ins><tt>std::less&lt;V&gt;()(a.get(), b.get())</tt>, where <tt>V</tt> is the
-composite pointer type (5.9 [expr.rel]).</ins>
-</p>
-
-<p>
-4 <i>Throws:</i> nothing.
-</p>
-
-<p><del>
-5 For templates <tt>greater</tt>, <tt>less</tt>, <tt>greater_equal</tt>, and <tt>less_equal</tt>, the
-partial specializations for <tt>shared_ptr</tt> shall yield a total order, even if
-the built-in operators <tt>&lt;</tt>, <tt>&gt;</tt>,
-<tt>&lt;=</tt>, and <tt>&gt;=</tt> do not. Moreover,
-<tt>less&lt;shared_ptr&lt;T&gt; &gt;::operator()(a, b)</tt> shall return
-<tt>std::less&lt;T*&gt;::operator()(a.get(), b.get())</tt>.
-</del></p>
-<p>
-6 [<i>Note:</i> Defining a comparison operator allows
-<tt>shared_ptr</tt> objects to be used as keys in associative
-containers. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-
-<li>
-<p>
-Add to 20.8.2.2 [util.smartptr.shared]/1 (after the <tt>shared_ptr</tt> comparisons)
-</p>
-
-<blockquote><pre>
-template&lt;class T&gt; struct greater&lt;shared_ptr&lt;T&gt;&gt;;
-template&lt;class T&gt; struct less&lt;shared_ptr&lt;T&gt;&gt;;
-template&lt;class T&gt; struct greater_equal&lt;shared_ptr&lt;T&gt;&gt;;
-template&lt;class T&gt; struct less_equal&lt;shared_ptr&lt;T&gt;&gt;;
-</pre></blockquote>
-
-<p>
-Remove 20.8.2.2.7 [util.smartptr.shared.cmp]/5 and /6 and replace with:
-</p>
-
-<blockquote><pre>
-template&lt;class T, class U&gt; bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b);
-</pre>
-<blockquote>
-<p>
-3  <i>Returns:</i> <tt><del>x</del><ins>a</ins>.get() &lt; <del>y</del><ins>b</ins>.get()</tt>.
-</p>
-
-<p>
-4 <i>Throws:</i> nothing.
-</p>
-
-<p><del>
-5 For templates <tt>greater</tt>, <tt>less</tt>, <tt>greater_equal</tt>, and <tt>less_equal</tt>, the
-partial specializations for <tt>shared_ptr</tt> shall yield a total order, even if
-the built-in operators <tt>&lt;</tt>, <tt>&gt;</tt>,
-<tt>&lt;=</tt>, and <tt>&gt;=</tt> do not. Moreover,
-<tt>less&lt;shared_ptr&lt;T&gt; &gt;::operator()(a, b)</tt> shall return
-<tt>std::less&lt;T*&gt;::operator()(a.get(), b.get())</tt>.
-</del></p>
-<p><del>
-6 [<i>Note:</i> Defining a comparison operator allows
-<tt>shared_ptr</tt> objects to be used as keys in associative
-containers. &mdash; <i>end note</i>]
-</del></p>
-</blockquote>
-
-<pre><ins>
-template&lt;class T&gt; struct greater&lt;shared_ptr&lt;T&gt;&gt; :
-binary_function&lt;shared_ptr&lt;T&gt;, shared_ptr&lt;T&gt;, bool&gt; {
-  bool operator()(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;T&gt;&amp; b) const;
-};
-</ins></pre>
-
-<blockquote><p><ins>
-<tt>operator()</tt> returns <tt>greater&lt;T*&gt;()(a.get(), b.get())</tt>.
-</ins></p></blockquote>
-
-<pre><ins>
-template&lt;class T&gt; struct less&lt;shared_ptr&lt;T&gt;&gt; :
-binary_function&lt;shared_ptr&lt;T&gt;, shared_ptr&lt;T&gt;, bool&gt; {
-  bool operator()(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;T&gt;&amp; b) const;
-};
-</ins></pre>
-
-<blockquote><p><ins>
-<tt>operator()</tt> returns <tt>less&lt;T*&gt;()(a.get(), b.get())</tt>.
-</ins></p></blockquote>
-
-<pre><ins>
-template&lt;class T&gt; struct greater_equal&lt;shared_ptr&lt;T&gt;&gt; :
-binary_function&lt;shared_ptr&lt;T&gt;, shared_ptr&lt;T&gt;, bool&gt; {
-  bool operator()(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;T&gt;&amp; b) const;
-};
-</ins></pre>
-
-<blockquote><p><ins>
-<tt>operator()</tt> returns <tt>greater_equal&lt;T*&gt;()(a.get(), b.get())</tt>.
-</ins></p></blockquote>
-
-<pre><ins>
-template&lt;class T&gt; struct less_equal&lt;shared_ptr&lt;T&gt;&gt; :
-binary_function&lt;shared_ptr&lt;T&gt;, shared_ptr&lt;T&gt;, bool&gt; {
-  bool operator()(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;T&gt;&amp; b) const;
-};
-</ins></pre>
-
-<blockquote><p><ins>
-<tt>operator()</tt> returns <tt>less_equal&lt;T*&gt;()(a.get(), b.get())</tt>.
-</ins></p></blockquote>
-
-</blockquote>
-</li>
-</ol>
-
-<p><i>[
-2009-11-18: Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace 20.8.2.2.7 [util.smartptr.shared.cmp]/3 with the following and
-remove p5:
-</p>
-
-<blockquote><pre>
-template&lt;class T, class U&gt; bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b);
-</pre>
-<blockquote>
-<p>
-3  <i>Returns:</i> <del><tt>x.get() &lt; y.get()</tt>.</del>
-<ins><tt>less&lt;V&gt;()(a.get(), b.get())</tt>, where <tt>V</tt> is the
-composite pointer type (5.9 [expr.rel]) of <tt>T*</tt> and <tt>U*</tt>.</ins>
-</p>
-
-<p>
-4 <i>Throws:</i> nothing.
-</p>
-
-<p><del>
-5 For templates <tt>greater</tt>, <tt>less</tt>, <tt>greater_equal</tt>, and <tt>less_equal</tt>, the
-partial specializations for <tt>shared_ptr</tt> shall yield a total order, even if
-the built-in operators <tt>&lt;</tt>, <tt>&gt;</tt>,
-<tt>&lt;=</tt>, and <tt>&gt;=</tt> do not. Moreover,
-<tt>less&lt;shared_ptr&lt;T&gt; &gt;::operator()(a, b)</tt> shall return
-<tt>std::less&lt;T*&gt;::operator()(a.get(), b.get())</tt>.
-</del></p>
-<p>
-6 [<i>Note:</i> Defining a comparison operator allows
-<tt>shared_ptr</tt> objects to be used as keys in associative
-containers. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1264"></a>1264. <tt>quick_exit</tt> support for freestanding implementations</h3>
-<p><b>Section:</b> 17.6.1.3 [compliance] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-11-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#compliance">issues</a> in [compliance].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 172</b></p>
-
-<p>
-This issue is a response to NB comment UK-172
-</p>
-
-<p>
-The functions <tt>quick_exit</tt> and <tt>at_quick_exit</tt> should be
-added to the required features of <tt>&lt;cstdlib&gt;</tt> in a
-freestanding implementation.
-</p>
-
-<p>
-This comment was rejected in Summit saying neither <tt>at_exit</tt> nor
-<tt>at_quick_exit</tt> should be required.  This suggests the comment was
-misread, as <tt>atexit</tt> is already required to be supported.  If the LWG
-really did wish to not require the registration functions be supported,
-then a separate issue should be opened to change the current standard.
-</p>
-
-<p>
-Given both <tt>exit</tt> and <tt>atexit</tt> are required, the UK panel feels it is
-appropriate to require the new <tt>quick_exit</tt> facility is similarly
-supported.
-</p>
-
-<p><i>[
-2009-12-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Ammend p3 Freestanding implementations 17.6.1.3 [compliance]
-</p>
-
-<blockquote><p>
-3 The supplied version of the header <tt>&lt;cstdlib&gt;</tt> shall
-declare at least the functions <tt>abort<del>()</del></tt>, <tt>atexit<del>()</del></tt>,
-<ins><tt>at_quick_exit</tt>,</ins> <del>and</del> <tt>exit<del>()</del></tt><ins>, and
-<tt>quick_exit</tt></ins>(18.5 [support.start.term]). The other
-headers listed in this table shall meet the same requirements as for a
-hosted implementation.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1266"></a>1266. <tt>shared_future::get</tt> and deferred <tt>async</tt> functions</h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2009-11-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-If a <tt>shared_future</tt> is constructed with the result of an <tt>async</tt> call with a
-deferred function, and two or more copies of that <tt>shared_future</tt> are created,
-with multiple threads calling <tt>get()</tt>, it is not clear which thread runs the
-deferred function. 30.6.7 [futures.shared_future]p22 from
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-says (minus editor's note):
-</p>
-
-<blockquote><p>
-<i>Effects:</i> if the associated state contains a deferred function, executes
-the deferred function. Otherwise, blocks until the associated state is ready.
-</p></blockquote>
-
-<p>
-In the absence of wording to the contrary, this implies that every thread that
-calls <tt>wait()</tt> will execute the deferred function.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Replace 30.6.7 [futures.shared_future]p22 with the following:
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i> If the associated state 
-<del>contains a deferred function, executes the deferred function. Otherwise,
-blocks until the associated state is ready.</del>
-<ins>was created by a <tt>promise</tt> or <tt>packaged_task</tt> object, block
-until the associated state is ready. If the associated state is associated with
-a thread created for an <tt>async</tt> call (30.6.8 [futures.async]), as
-if <tt>associated-thread.join()</tt>.
-</ins></p>
-
-<p><ins>
-If the associated state contains a deferred function, calls to <tt>wait()</tt>
-on all <tt>shared_future</tt> objects that share the same associated state are
-serialized. The first call to <tt>wait()</tt> that shares a given associated
-state executes the deferred function and stores the return value or exception in
-the associated state.
-</ins></p>
-
-<p><ins>
-<i>Synchronization:</i> if the associated state was created by a
-<tt>promise</tt> object, the completion of <tt>set_value()</tt> or
-<tt>set_exception()</tt> to that <tt>promise</tt> happens before (1.10 [intro.multithread]) <tt>wait()</tt> returns. If the associated state
-was created by a <tt>packaged_task</tt> object, the completion of the associated
-task happens before <tt>wait()</tt> returns. If the associated state is
-associated with a thread created for an <tt>async</tt> call (30.6.8 [futures.async]), the completion of the associated thread happens-before
-<tt>wait()</tt> returns.
-</ins></p>
-
-<p><ins>
-If the associated state contained a deferred function, the invocation of the
-deferred function happens-before any call to <tt>wait()</tt> on a
-<tt>future</tt> that shares that state returns.
-</ins></p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1267"></a>1267. Incorrect wording for <tt>condition_variable_any::wait_for</tt></h3>
-<p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2009-11-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.5.2 [thread.condition.condvarany]p18 and 30.5.2 [thread.condition.condvarany]p27 specify incorrect preconditions for
-<tt>condition_variable_any::wait_for</tt>. The stated preconditions require that
-<tt>lock</tt> has a <tt>mutex()</tt> member function, and that this produces the
-same result for all concurrent calls to <tt>wait_for()</tt>. This is
-inconsistent with <tt>wait()</tt> and <tt>wait_until()</tt> which do not impose
-such a requirement.
-</p>
-
-<p><i>[
-2009-12-24 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove 30.5.2 [thread.condition.condvarany]p18 and 30.5.2 [thread.condition.condvarany]p27.
-</p>
-<blockquote>
-<pre>
-template &lt;class Lock, class Rep, class Period&gt;
-  cv_status wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre>
-<blockquote>
-<p><del>
-18 <i>Precondition:</i> lock is locked by the calling thread, and either
-</del></p>
-<ul>
-<li><del>
-no other thread is waiting on this <tt>condition_variable</tt> object or
-</del></li>
-<li><del>
-<tt>lock.mutex()</tt> returns the same value for each of the lock arguments
-supplied by all concurrently waiting (via <tt>wait</tt>, <tt>wait_for</tt>, or
-<tt>wait_until</tt>) threads.
-</del></li>
-</ul>
-</blockquote>
-
-<p>...</p>
-
-<pre>
-template &lt;class Lock, class Rep, class Period, class Predicate&gt;
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, Predicate pred);
-</pre>
-
-<blockquote>
-
-<p><del>
-27 Precondition: lock is locked by the calling thread, and either
-</del></p>
-<ul>
-<li><del>
-no other thread is waiting on this <tt>condition_variable</tt> object or
-</del></li>
-<li><del>
-<tt>lock.mutex()</tt> returns the same value for each of the lock arguments
-supplied by all concurrently waiting (via <tt>wait</tt>, <tt>wait_for</tt>, or
-<tt>wait_until</tt>) threads.
-</del></li>
-</ul>
-
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1268"></a>1268. The Mutex requirements in 30.4.1 and 30.4.2 are wrong</h3>
-<p><b>Section:</b> 30.4 [thread.mutex] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2009-11-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex">issues</a> in [thread.mutex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>Mutex</tt> requirements in 30.4.1 [thread.mutex.requirements] and
-30.4.1.3 [thread.timedmutex.requirements] confuse the requirements on the
-behaviour of <tt>std::mutex</tt> et al with the requirements on
-<tt>Lockable</tt> types for use with <tt>std::unique_lock</tt>,
-<tt>std::lock_guard</tt> and <tt>std::condition_variable_any</tt>.
-</p>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-Concepts of threads chapter and issue presentation are: Lockable &lt; Mutex &lt;
-TimedMutex and Lockable &lt; TimedLockable &lt; TimedMutex.
-</p>
-<p>
-Typo in failed deletion of Mutex in 30.4.4 p4 edits.
-</p>
-<p>
-Lockable requirements are too weak for condition_variable_any, but the Mutex
-requirements are too strong.
-</p>
-<p>
-Need subset of Lockable requirements for condition_variable_any that does not
-include try_lock. E.g. CvLockable &lt; Lockable.
-</p>
-<p>
-Text needs updating to recent draft changes.
-</p>
-<p>
-Needs to specify exception behavior in Lockable.
-</p>
-<p>
-The current standard is fine for what it says, but it places requirements that
-are too strong on authors of mutexes and locks.
-</p>
-<p>
-Move to open status. Suggest Anthony look at condition_variable_any
-requirements. Suggest Anthony refine requirements/concepts categories.
-</p>
-<p>
-Related to <a href="lwg-defects.html#964">964</a> and <a href="lwg-defects.html#966">966</a>
-</p>
-</blockquote>
-
-<p><i>[
-2010-03-28 Daniel synced with N3092.
-]</i></p>
-
-
-<p><i>[
-2010-10-25 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3130.html">n3130</a> 
-would solve this issue.
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia:
-]</i></p>
-
-
-<blockquote><p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3197.htm">n3197</a>.
-</p></blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new section to 30.2 [thread.req] after 30.2.4 [thread.req.timing] 
-as follows:
-</p>
-
-<blockquote>
-<p>
-30.2.5 Requirements for Lockable types
-</p>
-
-<p>
-The standard library templates <tt>unique_lock</tt> (30.4.2.2 [thread.lock.unique]), <tt>lock_guard</tt> (30.4.2.1 [thread.lock.guard]), <tt>lock</tt>, <tt>try_lock</tt> (30.4.3 [thread.lock.algorithm]) and <tt>condition_variable_any</tt> (30.5.2 [thread.condition.condvarany]) all operate on user-supplied
-<tt>Lockable</tt> objects. Such an object must support the member functions
-specified for either the <tt>Lockable</tt> Requirements or the
-<tt>TimedLockable</tt> requirements as appropriate to acquire or release
-ownership of a <tt>lock</tt> by a given <tt>thread</tt>. [<i>Note:</i> the
-nature of any lock ownership and any synchronization it may entail are not part
-of these requirements. &mdash; <i>end note</i>]
-</p>
-
-<p>
-30.2.5.1  Lockable Requirements
-</p>
-
-<p>
-In order to qualify as a <tt>Lockable</tt> type, the following expressions must
-be supported, with the specified semantics, where <tt>m</tt> denotes a value of
-type <tt>L</tt> that supports the <tt>Lockable</tt>:
-</p>
-
-<p>
-The expression <tt>m.lock()</tt> shall be well-formed and have the following
-semantics:
-</p>
-
-<dl>
-  <dt>Effects:</dt><dd>Block until a lock can be acquired for the current thread.</dd>
-  <dt>Return type:</dt><dd><tt>void</tt></dd>
-</dl>
-
-<p>
-The expression <tt>m.try_lock()</tt> shall be well-formed and have the
-following semantics:
-</p>
-
-<dl>
-  <dt>Effects:</dt><dd>Attempt to acquire a lock for the current thread without blocking.</dd>
-  <dt>Return type:</dt><dd><tt>bool</tt></dd>
-  <dt>Returns:</dt><dd><tt>true</tt> if the lock was
-  acquired, <tt>false</tt> otherwise.</dd>
-</dl>
-
-<p>
-The expression <tt>m.unlock()</tt> shall be well-formed and have the
-following semantics:
-</p>
-
-<dl>
-  <dt>Effects:</dt><dd>Release a lock on <tt>m</tt> held by the current thread.</dd>
-  <dt>Return type:</dt><dd><tt> void</tt></dd>
-  <dt>Throws:</dt><dd> Nothing if the current thread holds a lock on <tt>m</tt>.</dd>
-</dl>
-
-<p>
-30.2.5.2 <tt>TimedLockable</tt> Requirements
-</p>
-
-<p>
-For a type to qualify as <tt>TimedLockable</tt> it must meet the
-<tt>Lockable</tt> requirements, and additionally the following
-expressions must be well-formed, with the specified semantics,
-where <tt>m</tt> is an instance of a type <tt>TL</tt> that supports
-the <tt>TimedLockable</tt> requirements, <tt>rel_time</tt> denotes
-instantiation of <tt>duration</tt> (20.12.5 [time.duration]) and <tt>abs_time</tt>
-denotes an instantiation of <tt>time_point</tt> (20.12.6 [time.point])
-
-</p>
-
-<p>
-The expression <tt>m.try_lock_for(rel_time)</tt> shall be well-formed and have the
-following semantics:
-</p>
-
-<dl>
-  <dt>Effects:</dt><dd>Attempt to acquire a lock for the current
-  thread within the specified time period.</dd>
-  <dt>Return type:</dt><dd><tt>bool</tt></dd>
-  <dt>Returns:</dt><dd><tt>true</tt> if the lock was
-  acquired, <tt>false</tt> otherwise.</dd>
-</dl>
-
-<p>
-The expression <tt>m.try_lock_until(abs_time)</tt> shall be well-formed and have the
-following semantics:
-</p>
-
-<dl>
-  <dt>Effects:</dt><dd>Attempt to acquire a lock for the current
-  thread before the specified point in time.</dd>
-  <dt>Return type:</dt><dd><tt>bool</tt></dd>
-  <dt>Returns:</dt><dd><tt>true</tt> if the lock was
-  acquired, <tt>false</tt> otherwise.</dd>
-</dl>
-</blockquote>
-
-<p>
-Replace 30.4.1 [thread.mutex.requirements] paragraph 2 with the
-following:
-</p>
-
-<blockquote><p>
-2 This section describes requirements on <del>template argument types
-used to instantiate templates defined in</del> <ins>the mutex types
-supplied by</ins> the C++ standard library. <del>The template
-definitions in the C++ standard library refer</del> These types shall
-conform to the named <tt>Mutex</tt> requirements whose details are set
-out below.  In this description, <tt>m</tt> is an object
-of <del>a <tt>Mutex</tt> type</del>
-<ins>one of the standard library mutex types <tt>std::mutex</tt>,
-<tt>std::recursive_mutex</tt>, <tt>std::timed_mutex</tt> or
-<tt>std::recursive_timed_mutex</tt>.</ins>.
-</p></blockquote>
-
-<p>
-Add the following paragraph after 30.4.1 [thread.mutex.requirements]
-paragraph 2:
-</p>
-
-<blockquote><p><ins>
-A <tt>Mutex</tt> type shall conform to the <tt>Lockable</tt>
-requirements (30.2.5.1).
-</ins></p></blockquote>
-
-<p>
-Replace 30.4.1.3 [thread.timedmutex.requirements] paragraph 1 with the
-following:
-</p>
-
-<blockquote><p>
-<ins>The C++ standard library <tt>TimedMutex</tt> types <tt>std::timed_mutex</tt>
-  and <tt>std::recursive_timed_mutex</tt> </ins>
-<del>A <tt>TimedMutex</tt> type</del> shall meet the requirements for
-a <tt>Mutex</tt> type. In addition, <del>it</del><ins>they</ins> shall
-meet the requirements set out <del>in this Clause 30.4.2</del><ins>below</ins>,
-where <tt>rel_time</tt> denotes an instantiation of <tt>duration</tt>
-(20.12.5 [time.duration]) and <tt>abs_time</tt> denotes an instantiation
-of <tt>time_point</tt> (20.12.6 [time.point]).
-</p></blockquote>
-
-<p>
-Add the following paragraph after 30.4.1.3 [thread.timedmutex.requirements] paragraph 1:
-</p>
-
-<blockquote><p><ins>
-A <tt>TimedMutex</tt> type shall conform to the <tt>TimedLockable</tt>
-requirements (30.2.5.1).
-</ins></p></blockquote>
-
-
-<p>
-Add the following paragraph following 30.4.2.1 [thread.lock.guard]
-paragraph 1:
-</p>
-
-<blockquote><p><ins>
-The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> 
-requirements (30.2.5.1).
-</ins></p></blockquote>
-
-<p>
-Add the following paragraph following 30.4.2.2 [thread.lock.unique]
-paragraph 1:
-</p>
-
-<blockquote><p><ins>
-The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> 
-requirements
-(30.2.5.1). <tt>unique_lock&lt;Mutex&gt;</tt> meets the <tt>Lockable</tt>
-requirements. If <tt>Mutex</tt> meets the <tt>TimedLockable</tt> 
-requirements
-(30.2.5.2) then <tt>unique_lock&lt;Mutex&gt;</tt> also meets the
-<tt>TimedLockable</tt> requirements.
-</ins></p></blockquote>
-
-<p>
-Replace the use of "mutex" or "mutex object" with "lockable object"
-throughout clause 30.4.2 [thread.lock] paragraph 1:
-</p>
-
-<blockquote><p>
-1 A lock is an object that holds a reference to
-a <del>mutex</del><ins>lockable object</ins> and may unlock
-the <del>mutex</del><ins>lockable object</ins> during the lock's
-destruction (such as when leaving block scope). A thread of execution
-may use a lock to aid in managing <del>mutex</del> ownership <ins>of a
-lockable object</ins> in an exception safe manner. A lock is said to
-own a <del>mutex</del><ins>lockable object</ins> if it is currently
-managing the ownership of that <del>mutex</del><ins>lockable
-object</ins> for a thread of execution. A lock does not manage the
-lifetime of the <del>mutex</del><ins>lockable object</ins> it
-references.  [ Note: Locks are intended to ease the burden of
-unlocking the <del>mutex</del><ins>lockable object</ins> under both
-normal and exceptional circumstances. &mdash; end note ]
-</p></blockquote>
-
-<p>30.4.2 [thread.lock] paragaph 2:</p>
-
-<blockquote><p>
-2 Some lock constructors take tag types which describe what should be
-done with the <del>mutex</del><ins>lockable</ins> object during the
-lock's constuction.
-</p></blockquote>
-
-<p>30.4.2.1 [thread.lock.guard] paragaph 1:</p>
-
-<blockquote><p>
-1 An object of type <tt>lock_guard</tt> controls the ownership of a
-  <del>mutex</del><ins>lockable</ins> object within a scope. A
-<tt>lock_guard</tt> object maintains ownership of
-a <del>mutex</del><ins>lockable</ins> object throughout
-the <tt>lock_guard</tt> object's lifetime. The behavior of a program
-is undefined if the <del>mutex</del><ins>lockable object</ins>
-referenced by <tt>pm</tt> does not exist for the entire lifetime (3.8)
-of the <tt>lock_guard</tt> object. <ins><tt>Mutex</tt> shall meet
-  the <tt>Lockable</tt> requirements (30.2.5.1).</ins>
-</p></blockquote>
-
-<p>30.4.2.2 [thread.lock.unique] paragaph 1:</p>
-
-<blockquote><p>
-1 An object of type <tt>unique_lock</tt> controls the ownership of
-a <del>mutex</del><ins>lockable object</ins> within a
-scope. <Del>Mutex</Del> <del>o</del><ins>O</ins>wnership <Ins>of the
-lockable object</Ins> may be acquired at construction or after
-construction, and may be transferred, after acquisition, to
-another <tt>unique_lock</tt> object. Objects of
-type <tt>unique_lock</tt> are not copyable but are movable. The
-behavior of a program is undefined if the contained
-pointer <tt>pm</tt> is not null and the mutex pointed to
-by <tt>pm</tt> does not exist for the entire remaining lifetime (3.8)
-of the <tt>unique_lock</tt> object. <ins><tt>Mutex</tt> shall meet
-the <tt>Lockable</tt> requirements (30.2.5.1).</ins>
-</p></blockquote>
-
-
-<p>
-Add the following to the precondition of <tt>unique_lock(mutex_type&amp;
-m, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time)</tt> in 
-30.4.2.2.1 [thread.lock.unique.cons] paragraph 18:
-</p>
-
-<blockquote><pre>template &lt;class Clock, class Duration&gt;
-  unique_lock(mutex_type&amp; m, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre>
-
-<blockquote><p>
-18 <i>Requires:</i> If <tt>mutex_type</tt> is not a recursive mutex 
-the calling thread does not own the mutex. <ins>The supplied <tt>mutex_type</tt>
-type shall meet the <tt>TimedLockable</tt> requirements (30.2.5.2).</ins>
-</p></blockquote>
-</blockquote>
-
-<p>
-Add the following to the precondition of <tt>unique_lock(mutex_type&amp;
- m,
-const chrono::duration&lt;Rep, Period&gt;&amp; rel_time)</tt> in 
-30.4.2.2.1 [thread.lock.unique.cons]
-paragraph 22
-</p>
-
-<blockquote><p>
-22  <i>Requires:</i> If <tt>mutex_type</tt> is not a recursive mutex
- the
-calling thread does not own the mutex. <ins>The supplied <tt>mutex_type</tt>
-type shall meet the <tt>TimedLockable</tt> requirements (30.2.5.2).</ins>
-</p></blockquote>
-
-<p>
-Add the following as a precondition of <tt>bool try_lock_until(const
-chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time)</tt> before
-30.4.2.2.2 [thread.lock.unique.locking] paragraph 8
-</p>
-
-<blockquote><pre>template &lt;class Clock, class Duration&gt;
-  bool try_lock_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre>
-<blockquote><p><ins>
-<i>Requires:</i> The supplied <tt>mutex_type</tt> type shall meet the
-<tt>TimedLockable</tt> requirements (30.2.5.2).
-</ins></p></blockquote>
-</blockquote>
-
-<p>
-Add the following as a precondition of <tt>bool try_lock_for(const
-chrono::duration&lt;Rep, Period&gt;&amp; rel_time)</tt> before 
-30.4.2.2.2 [thread.lock.unique.locking] paragraph 12
-</p>
-
-<blockquote><pre>template &lt;class Rep, class Period&gt;
-  bool try_lock_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre>
-<blockquote><p><ins>
-<i>Requires:</i> The supplied <tt>mutex_type</tt> type shall meet the
-<tt>TimedLockable</tt> requirements (30.2.5.2).
-</ins></p></blockquote>
-</blockquote>
-
-<p>
-Replace 30.4.3 [thread.lock.algorithm] p1 with the following:
-</p>
-
-<blockquote><pre>template &lt;class L1, class L2, class... L3&gt; int try_lock(L1&amp;, L2&amp;, L3&amp;...);
-</pre>
-<blockquote><p>
-1 <i>Requires:</i> Each template parameter type shall meet the
-<tt><del>Mutex</del> <ins>Lockable</ins></tt> requirements
-<ins>(30.2.5.1).</ins><del>, except that a call to <tt>try_lock()</tt> 
-may throw an exception.</del> [<i>Note:</i> The <tt>unique_lock</tt> class 
-template meets these requirements when suitably instantiated. &mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-<p>
-Replace 30.4.3 [thread.lock.algorithm] p4 with the following:
-</p>
-
-<blockquote><pre>template &lt;class L1, class L2, class... L3&gt; void lock(L1&amp;, L2&amp;, L3&amp;...);
-</pre>
-<blockquote><p>
-4 <i>Requires:</i> Each template parameter type shall meet the
-<tt>Mutex<del>Mutex</del> <ins>Lockable</ins></tt>
-requirements <ins>(30.2.5.1).</ins><del>, except that a call to
-<tt>try_lock()</tt> may throw an exception.</del> [<i>Note:</i> The
-<tt>unique_lock</tt> class template meets these requirements when 
-suitably instantiated. &mdash; <i>end note</i>]
-</p></blockquote>
-</blockquote>
-
-<p>
-Replace 30.5.2 [thread.condition.condvarany] paragraph 1 with:
-</p>
-
-<blockquote><p>
-1 A <tt>Lock</tt> type shall meet the <del>requirements for a <tt>Mutex</tt>
-type</del> <ins><tt>Lockable</tt> requirements (30.2.5.1)</ins>, except 
-that <tt>try_lock</tt> is not required. [<i>Note:</i> All of the standard 
-mutex types meet this requirement. &mdash; <i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1269"></a>1269. Associated state doesn't account for <tt>async</tt></h3>
-<p><b>Section:</b> 30.6.4 [futures.state] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2009-11-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.state">issues</a> in [futures.state].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current description of the associated state in 30.6.4 [futures.state]
-does not allow for futures created by an <tt>async</tt> call. The description
-therefore needs to be extended to cover that.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new sentence to 30.6.4 [futures.state] p2:
-</p>
-
-<blockquote><p>
-2 This <i>associated state</i> consists of some state information and some
-(possibly not yet evaluated) <i>result</i>, which can be a (possibly
-<tt>void</tt>) value or an exception. <ins>If the associated state was created
-by a call to <tt>async</tt> (30.6.8 [futures.async]) then it may also
-contain a deferred function or an associated <tt>thread</tt>.</ins>
-</p></blockquote>
-
-<p>
-Add an extra bullet to 30.6.4 [futures.state] p3:
-</p>
-
-<blockquote>
-<p>
-The result of an associated state can be set by calling:
-</p>
-<ul>
-<li>
-<tt>promise::set_value</tt>,
-</li>
-<li>
-<tt>promise::set_exception</tt>, <del>or</del>
-</li>
-<li>
-packaged_task::operator()<del>.</del><ins>, or</ins>
-</li>
-<li>
-<ins>a call to <tt>async</tt> (30.6.8 [futures.async]).</ins>
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1270"></a>1270. <tt>result_of</tt> should be moved to <tt>&lt;type_traits&gt;</tt></h3>
-<p><b>Section:</b> X [func.ret] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-11-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.ret">issues</a> in [func.ret].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 198</b></p>
-
-<p>
-NB Comment: UK-198 makes this request among others.  It refers to a more
-detailed issue that BSI did not manage to submit by the CD1 ballot deadline
-though.
-</p>
-
-<p>
-<tt>result_of</tt> is essentially a metafunction to return the type of an
-expression, and belongs with the other library metafunctions in
-<tt>&lt;type_traits&gt;</tt> rather than lurking in <tt>&lt;functional&gt;</tt>.
- The current definition in <tt>&lt;functional&gt;</tt> made sense when
-<tt>result_of</tt> was nothing more than a protocol to enable several components
-in <tt>&lt;functional&gt;</tt> to provide their own result types, but it has
-become a more general tool.  For instance, <tt>result_of</tt> is now used in the
-threading and futures components.
-</p>
-
-<p>
-Now that <tt>&lt;type_traits&gt;</tt> is a required header for free-standing
-implementations it will be much more noticeable (in such environments) that a
-particularly useful trait is missing, unless that implementation also chooses to
-offer <tt>&lt;functional&gt;</tt> as an extension.
-</p>
-
-<p>
-The simplest proposal is to simply move the wording (editorial direction below)
-although a more consistent form for type_traits would reformat this as a table.
-</p>
-
-<p>
-Following the acceptance of <a href="lwg-defects.html#1255">1255</a>, <tt>result_of</tt> now
-depends on the <tt>declval</tt> function template, tentatively provided
-in <tt>&lt;utility&gt;</tt> which is <em>not</em> (yet) required of a
-free-standing implementation.
-</p>
-
-<p>
-This dependency is less of an issue when <tt>result_of</tt> continues to
-live in <tt>&lt;functional&gt;</tt>.
-</p>
-
-<p>
-Personally, I would prefer to clean up the dependencies so both
-<tt>result_of</tt> and <tt>declval</tt> are available in a free-standing
-implementation, but that would require slightly more work than suggested
-here.  A minimal tweak would be to require <tt>&lt;utility&gt;</tt> in a
-free-standing implementation, although there are a couple of subtle
-issues with <tt>make_pair</tt>, which uses <tt>reference_wrapper</tt> in
-its protocol and that is much harder to separate cleanly from
-<tt>&lt;functional&gt;</tt>.
-</p>
-
-<p>
-An alternative would be to enact the other half of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2979.html">N2979</a>
-and create a new minimal header for the new C++0x library facilities to
-be added to the freestanding requirements (plus <tt>swap</tt>.)
-</p>
-
-<p>
-I have a mild preference for the latter, although there are clearly
-reasons to consider better library support for free-standing in general,
-and adding the whole of <tt>&lt;utility&gt;</tt> could be considered a step in that
-direction.  See NB comment
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3009.html#JP23">JP-23</a>
-for other suggestions (<tt>array</tt>, <tt>ratio</tt>)
-</p>
-
-<p><i>[
-2010-01-27 Beman updated wording.
-]</i></p>
-
-
-<blockquote>
-<p>
-The original wording is preserved here:
-</p>
-<blockquote>
-
-<p>
-Move X [func.ret] to a heading below 20.10 [meta].  Note
-that in principle we should not change the tag, although this is a new tag for
-0x.  If it has been stable since TR1 it is clearly immutable though.
-</p>
-
-<p>
-This wording should obviously adopt any other changes currently in (Tentatively)
-Ready status that touch this wording, such as <a href="lwg-defects.html#1255">1255</a>.
-</p>
-
-</blockquote>
-</blockquote>
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>From Function objects 20.9 [function.objects], Header <tt>&lt;functional&gt;</tt> 
-synopsis, remove:</i></p>
-<blockquote>
-  <pre>// 20.7.4 result_of:
-template &lt;class&gt; class result_of; <i>// undefined</i>
-template &lt;class F, class... Args&gt; class result_of&lt;F(ArgTypes...)&gt;;</pre>
-</blockquote>
-
-<p><i>Remove Function object return types X [func.ret] in its entirety. 
-This sub-section reads:</i></p>
-<blockquote>
-  <pre>namespace std {
-  template &lt;class&gt; class result_of; <i>// undefined</i>
-
-  template &lt;class Fn, class... ArgTypes&gt;
-  class result_of&lt;Fn(ArgTypes...)&gt; {
-  public :
-    // types
-    typedef see below type;
-  };
-}</pre>
-  <p>Given an rvalue <code>fn</code> of type <code>Fn</code> and values <code>
-  t1, t2, ..., tN</code> of types T1, T2, ..., TN in <code>ArgTypes</code>, 
-  respectively, the type member is the result type of the expression <code>
-  fn(t1, t2, ...,tN)</code>. The values <code>ti</code> are lvalues when the 
-  corresponding type <code>Ti</code> is an lvalue-reference type, and rvalues 
-  otherwise.</p>
-</blockquote>
-<p><i>To Header &lt;type_traits&gt; synopsis 20.10.2 [meta.type.synop], add at 
-the indicated location:</i></p>
-<blockquote>
-  <pre>template &lt;class T&gt; struct underlying_type;
-<ins>template &lt;class T&gt; struct result_of; <i>// not defined
-</i>template &lt;class Fn, class... ArgTypes&gt; struct result_of&lt;Fn(ArgTypes...)&gt;;</ins></pre>
-</blockquote>
-<p><i>To Other transformations 20.10.7.6 [meta.trans.other], Table 51 &mdash; 
-Other transformations, add:</i></p>
-<blockquote>
-  <table style="border-collapse: collapse;" border="1" cellpadding="3" cellspacing="0">
-    <tr>
-      <td><b>Template</b></td>
-      <td><b>Condition</b></td>
-      <td><b>Comments</b></td>
-    </tr>
-    <tr>
-      <td valign="top"><code>template &lt;class T&gt;<br/>
-      struct underlying_type;</code></td>
-      <td valign="top"><code>T</code> shall be an enumeration type 
-      (7.2)</td>
-      <td valign="top">The member typedef <code>type</code> shall 
-      name the underlying type of <code>T</code>.</td>
-    </tr>
-    <tr>
-      <td valign="top"><ins><code>template &lt;class Fn, class... ArgTypes&gt;
-      struct result_of&lt;Fn(ArgTypes...)&gt;;</code></ins></td>
-      <td valign="top"><ins><code>Fn</code> shall be a function object type
-      20.9 [function.objects], reference to function, or reference to
-      function object type.
-      <tt>decltype(declval&lt;Fn&gt;()(declval&lt;ArgTypes&gt;()...))</tt> shall
-      be well formed.</ins></td>
-      <td valign="top"><ins>The member typedef <code>type</code> 
-      shall name the type <code>decltype(declval&lt;Fn&gt;()(declval&lt;ArgTypes&gt;()...))</code>.</ins></td>
-    </tr>
-  </table>
-</blockquote>
-<p>At the end of Other transformations 20.10.7.6 [meta.trans.other] add:</p>
-
-<blockquote>
-<p>[<i>Example:</i> Given these definitions:</p>
-
-  <pre>typedef bool(&amp;PF1)();
-typedef short(*PF2)(long);
-
-struct S {
-&nbsp; operator PF2() const;
-&nbsp; double operator()(char, int&amp;);
- };</pre>
-<p>the following assertions will hold:</p>
-  <pre>static_assert(std::is_same&lt;std::result_of&lt;S(int)&gt;::type, short&gt;::value, &quot;Error!&quot;);
-static_assert(std::is_same&lt;std::result_of&lt;S&amp;(unsigned char, int&amp;)&gt;::type, double&gt;::value, &quot;Error!&quot;);
-static_assert(std::is_same&lt;std::result_of&lt;PF1()&gt;::type, bool&gt;::value, &quot;Error!&quot;);</pre>
-  <p><i>&nbsp;&mdash; end example</i>]</p>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1271"></a>1271. <tt>CR</tt> undefined in duration operators</h3>
-<p><b>Section:</b> 20.12.5.5 [time.duration.nonmember] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-11-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.nonmember">issues</a> in [time.duration.nonmember].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-IMO <tt>CR</tt> alone is not really defined (it should be <tt>CR(Rep1,
-Rep2)</tt>).
-</p>
-
-<p><i>[
-2009-12-24 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.12.5.5 [time.duration.nonmember] paragraphs 9 and 12:
-</p>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator/(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote><p>
-9 <i>Returns:</i> <tt>duration&lt;CR<ins>(Rep1, Rep2)</ins>, Period&gt;(d) /= s</tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-  duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-  operator%(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre>
-<blockquote><p>
-12 <i>Returns:</i> <tt>duration&lt;CR<ins>(Rep1, Rep2)</ins>, Period&gt;(d) %= s</tt>.
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1272"></a>1272. confusing declarations of <tt>promise::set_value</tt></h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-11-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The definitions of <tt>promise::set_value</tt> need tidying up, the
-synopsis says:
-</p>
-
-<blockquote><pre>
-// setting the result
-void set_value(const R&amp; r);
-void set_value(<i>see below</i>);
-</pre></blockquote>
-
-<p>
-Why is the first one there?  It implies it is always present for all
-specialisations of promise, which is not true.
-</p>
-
-<p>
-The definition says:
-</p>
-
-<blockquote><pre>
-void set_value(const R&amp; r);
-void promise::set_value(R&amp;&amp; r);
-void promise&lt;R&amp;&gt;::set_value(R&amp; r);
-void promise&lt;void&gt;::set_value();
-</pre></blockquote>
-
-<p>
-The lack of qualification on the first one again implies it's present
-for all specialisations, again not true.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the synopsis in 30.6.5 [futures.promise]:
-</p>
-
-<blockquote><pre>
-// setting the result
-<del>void set_value(const R&amp; r);</del>
-void set_value(<i>see below</i>);
-</pre></blockquote>
-
-<p>
-And the definition be changed by qualifying the first signature:
-</p>
-
-<blockquote><pre>
-void <ins>promise::</ins>set_value(const R&amp; r);
-void promise::set_value(R&amp;&amp; r);
-void promise&lt;R&amp;&gt;::set_value(R&amp; r);
-void promise&lt;void&gt;::set_value();
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1273"></a>1273. <tt>future::valid</tt> should be callable on an invalid future</h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-11-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.6.6 [futures.unique_future]/3 says:
-</p>
-
-<blockquote><p>
-The effect of calling any member function other than the destructor or
-the move-assignment operator on a <tt>future</tt> object for which 
-<tt>valid() == false</tt> is undefined.
-</p></blockquote>
-
-<p>
-This means calling <tt>future::valid()</tt> is undefined unless it will
-return <tt>true</tt>, so you can only use it if you know the answer!
-</p>
-
-<p><i>[
-2009-12-08 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.6.6 [futures.unique_future]/3:
-</p>
-
-<blockquote><p>
-The effect of calling any member function other than the
-destructor<ins>,</ins> or the move-assignment operator<ins>, or
-<tt>valid</tt>,</ins> on a <tt>future</tt> object for which <tt>valid()
-== false</tt> is undefined.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1274"></a>1274. <tt>atomic_future</tt> constructor</h3>
-<p><b>Section:</b> X [futures.atomic_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-11-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.atomic_future">issues</a> in [futures.atomic_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In X [futures.atomic_future] this constructor:
-</p>
-
-<blockquote><pre>
-atomic_future(future&lt;R&gt;&amp;&amp;);
-</pre></blockquote>
-
-<p>
-is declared in the synopsis, but not defined. Instead
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2997.htm">n2997</a>
-defines:
-</p>
-
-<blockquote><pre>
-atomic_future(const future&lt;R&gt;&amp;&amp; rhs);
-</pre></blockquote>
-
-<p>
-and
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">n3000</a>
-defines
-</p>
-
-<blockquote><pre>
-atomic_future(atomic_future&lt;R&gt;&amp;&amp; rhs);
-</pre></blockquote>
-
-<p>
-both of which are wrong. The constructor definition should be changed
-to match the synopsis.
-</p>
-
-<p><i>[
-2009-12-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Adjust the signature above X [futures.atomic_future]/6 like so:
-</p>
-
-<blockquote><pre>
-atomic_future(<del>atomic_</del>future<ins>&lt;R&gt;</ins>&amp;&amp; rhs);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1275"></a>1275. Creating and setting futures</h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-11-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.6.6 [futures.unique_future]/1 should be updated to mention
-<tt>async</tt>.
-</p>
-
-<p>
-30.6.7 [futures.shared_future]/1 should also be updated for
-<tt>async</tt>. That paragraph also says
-</p>
-
-<blockquote><p>
-... Its value or exception can be set by use of a
-<tt>shared_future</tt>, <tt>promise</tt> (30.6.5 [futures.promise]), or <tt>packaged_task</tt> (30.6.9 [futures.task]) object that shares the same associated state.
-</p></blockquote>
-
-<p>
-How can the value be set by a <tt>shared_future</tt>?
-</p>
-
-<p>
-X [futures.atomic_future]/1 says
-</p>
-
-<blockquote><p>
-An <tt>atomic_future</tt> object can only be created by use of a
-<tt>promise</tt> (30.6.5 [futures.promise]) or
-<tt>packaged_task</tt> (30.6.9 [futures.task]) object.
-</p></blockquote>
-
-<p>
-which is wrong, it's created from a <tt>std::future</tt>, which could
-have been default-constructed. That paragraph should be closer to the
-text of 30.6.7 [futures.shared_future]/1, and should also mention
-<tt>async</tt>.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1276"></a>1276. <tt>forwardlist</tt> missing allocator constructors</h3>
-<p><b>Section:</b> 23.3.4 [forwardlist] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist">issues</a> in [forwardlist].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I found that forward_list has only
-</p>
-
-<blockquote><pre>
-forward_list(const forward_list&lt;T,Allocator&gt;&amp; x);
-forward_list(forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-</pre></blockquote>
-
-<p>
-but misses
-</p>
-
-<blockquote><pre>
-forward_list(const forward_list&amp; x, const Allocator&amp;);
-forward_list(forward_list&amp;&amp; x, const Allocator&amp;);
-</pre></blockquote>
-
-<p>
-Note to other reviewers: I also checked the container adaptors for similar
-inconsistencies, but as far as I can see these are already handled by the
-current active issues <a href="lwg-defects.html#1194">1194</a> and <a href="lwg-defects.html#1199">1199</a>.
-</p>
-
-<p><i>[
-2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 23.3.4 [forwardlist]/3, class template forward_list synopsis change as
-indicated:
-</p>
-
-<blockquote><pre>
-forward_list(const forward_list<del>&lt;T,Allocator&gt;</del>&amp; x);
-forward_list(forward_list<del>&lt;T,Allocator&gt;</del>&amp;&amp; x);
-<ins>forward_list(const forward_list&amp;, const Allocator&amp;);</ins>
-<ins>forward_list(forward_list&amp;&amp;, const Allocator&amp;);</ins>
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1277"></a>1277. <tt>std::thread::id</tt> should be trivially copyable</h3>
-<p><b>Section:</b> 30.3.1.1 [thread.thread.id] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2009-11-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.id">issues</a> in [thread.thread.id].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The class definition of <tt>std::thread::id</tt> in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-is:
-</p>
-
-<blockquote><pre>
-class thread::id {
-public:
-  id();
-};
-</pre></blockquote>
-
-<p>
-Typically, I expect that the internal data members will either be
-pointers or integers, so that in practice the class will be trivially
-copyable. However, I don't think the current wording guarantees it, and
-I think it would be useful. In particular, I can see a use for
-<tt>std::atomic&lt;std::thread::id&gt;</tt> to allow a <tt>thread</tt>
-to claim ownership of a data structure atomicly, and
-<tt>std::atomic&lt;T&gt;</tt> requires that <tt>T</tt> is trivially
-copyable.
-</p>
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 7 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new sentence to 30.3.1.1 [thread.thread.id] p1:
-</p>
-
-<blockquote><p>
-1 An object of type <tt>thread::id</tt> provides a unique identifier for
-each thread of execution and a single distinct value for all
-<tt>thread</tt> objects that do not represent a thread of execution
-(30.3.1 [thread.thread.class]). Each thread of execution has an
-associated <tt>thread::id</tt> object that is not equal to the
-<tt>thread::id</tt> object of any other thread of execution and that is
-not equal to the <tt>thread::id</tt> object of any <tt>std::thread</tt>
-object that does not represent threads of execution. The library may
-reuse the value of a <tt>thread::id</tt> of a terminated thread that can
-no longer be joined. <ins><tt>thread::id</tt> shall be a trivially
-copyable class (9 [class]).</ins>
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1278"></a>1278. Inconsistent return values for <tt>forward_list::insert_after</tt></h3>
-<p><b>Section:</b> 23.3.4.5 [forwardlist.modifiers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2009-11-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.modifiers">issues</a> in [forwardlist.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-After applying LDR<a href="lwg-defects.html#149">149</a>, <tt>forward_list</tt> now has 5
-overloads of <tt>insert_after</tt>, all returning an iterator.
-</p>
-
-<p>
-However, two of those - inserting a single object - return "An iterator
-pointing to a copy of <tt>x</tt> [the inserted object]" while the other
-three - inserting zero or more objects - return an iterator equivalent
-to the position parameter, pointing before any possibly inserted
-objects.
-</p>
-
-<p>
-Is this the intended change? 
-</p>
-
-<p>
-I don't really know what <tt>insert_after(position, empty_range)</tt>
-should really return, but always returning <tt>position</tt> seems less
-than useful.
-</p>
-
-<p><i>[
-2010-02-04 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-I agree this inconsistency will be error prone and needs to be fixed. 
-Additionally <tt>emplace_after</tt>'s return value is unspecified.
-</p>
-</blockquote>
-
-<p><i>[
-2010-02-04 Nico provides wording.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-We prefer to return an iterator to the last inserted element.  Modify the
-proposed wording and then set to Ready.
-</p></blockquote>
-
-<p><i>[
-2010-03-15 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-Wording updated and set to Ready.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In <tt>forward_list</tt> modifiers 23.3.4.5 [forwardlist.modifiers]
-make the following modifications:
-</p>
-
-<blockquote>
-<pre>
-iterator insert_after(const_iterator position, size_type n, const T&amp; x);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-10 <i>Returns:</i> <del>position.</del> <ins>An iterator pointing to the last
-inserted copy of <tt>x</tt> or <tt>position</tt> if <tt>n == 0</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-template &lt;class InputIterator&gt;
-  iterator insert_after(const_iterator position, InputIterator first, InputIterator last);
-</pre>
-<blockquote>
-<p>...</p>
-
-<p>
-13 <i>Returns:</i> <del>position.</del> <ins>An iterator pointing to the last
-inserted element or <tt>position</tt> if <tt>first == last</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-iterator insert_after(const_iterator position, initializer_list&lt;T&gt; il);
-</pre>
-<blockquote>
-<p>...</p>
-
-<p>
-15 <i>Returns:</i> <del>position.</del> <ins>An iterator pointing to the last
-inserted element or <tt>position</tt> if <tt>il</tt> is empty.</ins>
-</p>
-</blockquote>
-
-<pre>
-template &lt;class... Args&gt;
-  iterator emplace_after(const_iterator position, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>...</p>
-<p>17 ...</p>
-
-<p><ins>
-<i>Returns:</i> An iterator pointing to the new constructed element from
-args.
-</ins></p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1279"></a>1279. forbid <tt>[u|bi]nary_function</tt> specialization</h3>
-<p><b>Section:</b> X [depr.base] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2009-11-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#depr.base">issues</a> in [depr.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A program should not be allowed to add specialization of class templates
-<tt>unary_function</tt> and <tt>binary_function</tt>, in force of 17.6.4.2.1 [namespace.std]/1.
-If a program were allowed to specialize these templates, the library could no
-longer rely on them to provide the intended typedefs or there might be other
-undesired interactions.
-</p>
-
-<p><i>[
-2010-03-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting issue <a href="lwg-defects.html#1290">1290</a> would resolve this issue as NAD editorial.
-</p></blockquote>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3145.html">n3145</a> would resolve this issue as NAD editorial.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-
-<blockquote><p>
-Pete: Is this issue actually addressed by N3198, or did deprecating unary/binary_function?
-<p/>
-We determined that this issue is NOT resolved and that it must be resolved or else 
-N3198 could break code that does specialize unary&#47;binary function.
-<p/>
-Matt: don't move to NAD
-<p/>
-Howard: I suggest we go further and move 1279 to ready for Madrid.
-<p/>
-Group: Agrees move 1279 to ready for Madrid 
-</p></blockquote>
-
-<p>
-Previous proposed resolution:
-</p>
-
-<blockquote><p>
-1 The following <del>classes</del> <ins>class templates</ins> are provided to
-simplify the typedefs of the argument and result types<del>:</del><ins>. A
-program shall not declare specializations of these templates.</ins>
-</p></blockquote>
-
-<p><i>[2011-03-06 Daniel comments]</i></p>
-
-
-<blockquote><p>
-This meeting outcome was not properly reflected in the proposed resolution. I
-also adapted the suggested wording to the N3242 numbering and content state.
-During this course of action it turned out that the first suggested wording
-change has already been applied.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change paragraph X [depr.base]/1 as follows:
-</p>
-
-<blockquote><p>
-1 The class templates <tt>unary_function</tt> and <tt>binary_function</tt> are deprecated. 
-<ins>A program shall not declare specializations of these templates.</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1280"></a>1280. Initialization of stream iterators</h3>
-<p><b>Section:</b> 24.6.1.1 [istream.iterator.cons], 24.6.2.1 [ostream.iterator.cons.des] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-12-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.iterator.cons">issues</a> in [istream.iterator.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-24.6.1.1 [istream.iterator.cons] describes the effects in terms of:
-</p>
-
-<blockquote><pre>
-basic_istream&lt;charT,traits&gt;* in_stream; // exposition only
-</pre>
-
-<p>
-3 <i>Effects:</i> Initializes <i>in_stream</i> with <tt>s</tt>.
-</p>
-</blockquote>
-
-<p>
-That should be <tt>&amp;s</tt> and similarly for 24.6.2.1 [ostream.iterator.cons.des].
-</p>
-
-<p><i>[
-2009-12-23 Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 24.6.1.1 [istream.iterator.cons] like so:
-</p>
-
-<blockquote><pre>
-istream_iterator(istream_type&amp; s);
-</pre>
-<blockquote><p>
-3 <i>Effects:</i> Initializes <i>in_stream</i> with <tt><ins>&amp;</ins>s</tt>.
-<i>value</i> ...
-</p></blockquote>
-</blockquote>
-
-<p>
-And 24.6.2.1 [ostream.iterator.cons.des] like so:
-</p>
-
-<blockquote><pre>
-ostream_iterator(ostream_type&amp; s);
-</pre>
-<blockquote><p>
-1 <i>Effects:</i> Initializes <i>out_stream</i> with <tt><ins>&amp;</ins>s</tt>
-and <i>delim</i> with null.
-</p></blockquote>
-
-<pre>
-ostream_iterator(ostream_type&amp; s, const charT* delimiter);
-</pre>
-<blockquote><p>
-2 <i>Effects:</i> Initializes <i>out_stream</i> with <tt><ins>&amp;</ins>s</tt>
-and <i>delim</i> with <tt>delimiter</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1281"></a>1281. CopyConstruction and Assignment between ratios having the same normalized form</h3>
-<p><b>Section:</b> 20.11.3 [ratio.ratio] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Vicente Juan Botet Escrib&aacute; <b>Opened:</b> 2009-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.ratio">issues</a> in [ratio.ratio].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-CopyConstruction and Assignment between <tt>ratio</tt>s having the same
-normalized form. Current
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-do not allows to copy-construct or assign <tt>ratio</tt> instances of
-<tt>ratio</tt> classes having the same normalized form.
-</p>
-
-<p>
-Two <tt>ratio</tt> classes <tt>ratio&lt;N1,D1&gt;</tt> and
-<tt>ratio&lt;N2,D2&gt;</tt> have the same normalized form if
-</p>
-
-<blockquote><pre>
-ratio&lt;N1, D1&gt;::num == ratio&lt;N2, D2&gt;::num &amp;&amp;
-ratio&lt;N1, D1&gt;::den == ratio&lt;N2, D2&gt;::den
-</pre></blockquote>
-
-<p>
-This simple example
-</p>
-
-<blockquote><pre>
-ratio&lt;1,3&gt; r1;
-ratio&lt;3,9&gt; r2;
-r1 = r2; // (1)
-</pre></blockquote>
-
-<p>
-fails to compile in (1). Other example
-</p>
-
-<blockquote><pre>
-ratio&lt;1,3&gt; r1;
-ratio_subtract&lt;ratio&lt;2,3&gt;, ratio&lt;1,3&gt;&gt;::type r2;
-r1 = r2;  
-</pre></blockquote>
-
-<p>
-The nested type of <tt>ratio_subtract&lt;ratio&lt;2,3&gt;,
-ratio&lt;1,3&gt;&gt;</tt> could be <tt>ratio&lt;3,9&gt;</tt> so the compilation
-could fail. It could also be <tt>ratio&lt;1,3&gt;</tt> and the compilation
-succeeds.
-</p>
-
-<p>
-In 20.11.4 [ratio.arithmetic] 3 and similar clauses
-</p>
-
-<blockquote><p>
-3 The nested typedef <tt>type</tt> shall be a synonym for <tt>ratio&lt;T1,
-T2&gt;</tt> where <tt>T1</tt> has the value <tt>R1::num * R2::den - R2::num *
-R1::den</tt> and <tt>T2</tt> has the value <tt>R1::den * R2::den</tt>.
-</p></blockquote>
-
-<p>
-the meaning of synonym let think that the result shall be a normalized
-<tt>ratio</tt> equivalent to <tt>ratio&lt;T1, T2&gt;</tt>, but there is not an
-explicit definition of what synonym means in this context.
-</p>
-
-<p>
-Additionally we should add a typedef for accessing the normalized
-<tt>ratio</tt>, and  change 20.11.4 [ratio.arithmetic] to return only this
-<em>normalized</em> result.
-</p>
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote>
-<p>
-There is no consensus to add the converting copy constructor or converting copy
-assignment operator.  However there was consensus to add the typedef.
-</p>
-
-<p>
-Proposed wording modified.  Original proposed wording preserved here.  Moved to
-Review.
-</p>
-
-<blockquote class="note">
-<p>
-Make <tt>ratio</tt> default constructible, copy-constructible and assignable
-from any <tt>ratio</tt> which has the same reduced form.
-</p>
-
-<p>
-Add to 20.11.3 [ratio.ratio] synopsis
-</p>
-
-<blockquote><pre>
-template &lt;intmax_t N, intmax_t D = 1&gt;
-class ratio {
-public:
-  static constexpr intmax_t num;
-  static constexpr intmax_t den;
-
-  <ins>typedef ratio&lt;num, den&gt; type;</ins>
-
-  <ins>ratio() = default;
-  template &lt;intmax_t N2, intmax_t D2&gt;
-    ratio(const ratio&lt;N2, D2&gt;&amp;);
-  template &lt;intmax_t N2, intmax_t D2&gt;
-    ratio&amp; operator=(const ratio&lt;N2, D2&gt;&amp;);</ins>
-};
-</pre></blockquote>
-
-<p>
-Add to 20.11.3 [ratio.ratio]:
-</p>
-
-<blockquote>
-<p>
-Two ratio classes <tt>ratio&lt;N1,D1&gt;</tt> and <tt>ratio&lt;N2,D2&gt;</tt>
-have the same reduced form if <tt>ratio&lt;N1,D1&gt;::type</tt> is the same
-type as <tt>ratio&lt;N2,D2&gt;::type</tt>
-</p>
-
-</blockquote>
-
-<p>
-Add a new section: [ratio.cons]
-</p>
-
-<blockquote>
-<p><b>
-Construction and assignment  [ratio.cons]
-</b></p>
-
-<pre>
-template &lt;intmax_t N2, intmax_t D2&gt;
-  ratio(const ratio&lt;N2, D2&gt;&amp; r);
-</pre>
-
-<blockquote>
-<p>
-<i>Effects:</i> Constructs a <tt>ratio</tt> object.
-</p>
-<p>
-<i>Remarks:</i> This constructor shall not participate in overload resolution
-unless <tt>r</tt> has the same reduced form as <tt>*this</tt>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;intmax_t N2, intmax_t D2&gt;
-  ratio&amp; operator=(const ratio&lt;N2, D2&gt;&amp; r);
-</pre>
-
-<blockquote>
-<p>
-<i>Effects:</i> None.
-</p>
-<p>
-<i>Returns:</i> <tt>*this</tt>.
-</p>
-<p>
-<i>Remarks:</i> This operator shall not participate in overload resolution
-unless <tt>r</tt> has the same reduced form as <tt>*this</tt>.
-</p>
-</blockquote>
-
-</blockquote>
-
-<p>
-Change 20.11.4 [ratio.arithmetic] 
-</p>
-
-<blockquote>
-<p>
-Implementations may use other algorithms to compute these values. If overflow
-occurs, a diagnostic shall be issued.
-</p>
-
-<pre>
-template &lt;class R1, class R2&gt; struct ratio_add {
-  typedef <i>see below</i> type;
-};
-</pre>
-
-<blockquote><p>
-The nested typedef <tt>type</tt> shall be a synonym for <tt>ratio&lt;T1,
-T2&gt;<ins>::type</ins></tt> where <tt>T1</tt> has the value <tt>R1::num *
-R2::den + R2::num * R1::den</tt> and <tt>T2</tt> has the value <tt>R1::den *
-R2::den</tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class R1, class R2&gt; struct ratio_subtract {
-  typedef <i>see below</i> type;
-};
-</pre>
-
-<blockquote><p>
-The nested typedef <tt>type</tt> shall be a synonym for <tt>ratio&lt;T1,
-T2&gt;<ins>::type</ins></tt> where <tt>T1</tt> has the value <tt>R1::num *
-R2::den - R2::num * R1::den</tt> and <tt>T2</tt> has the value <tt>R1::den *
-R2::den</tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class R1, class R2&gt; struct ratio_multiply {
-  typedef <i>see below</i> type;
-};
-</pre>
-
-<blockquote><p>
-The nested typedef <tt>type</tt> shall be a synonym for <tt>ratio&lt;T1,
-T2&gt;<ins>::type</ins></tt> 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>.
-</p></blockquote>
-
-<pre>
-template &lt;class R1, class R2&gt; struct ratio_divide {
-  typedef <i>see below</i> type;
-};
-</pre>
-
-<blockquote><p>
-The nested typedef <tt>type</tt> shall be a synonym for <tt>ratio&lt;T1,
-T2&gt;<ins>::type</ins></tt> 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>.
-</p></blockquote>
-
-</blockquote>
-
-</blockquote>
-
-</blockquote>
-
-<p><i>[
-2010-03-27 Howard adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Daniel brought to my attention the recent addition of the typedef <tt>type</tt>
-to the FCD
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf">N3092</a>:
-</p>
-
-<blockquote><pre>
-typedef ratio type;
-</pre></blockquote>
-
-<p>
-This issue was discussed in Pittsburgh, and the decision there was to accept the
-typedef as proposed and move to Review.  Unfortunately the issue was accidently
-applied to the FCD, and incorrectly.  The FCD version of the typedef refers to
-<tt>ratio&lt;N, D&gt;</tt>, but the typedef is intended to refer to
-<tt>ratio&lt;num, den&gt;</tt> which in general is not the same type.
-</p>
-
-<p>
-I've updated the wording to diff against
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf">N3092</a>.
-</p>
-
-</blockquote>
-
-<p><i>[Batavia: <del>NAD Editorial</del><ins>Resolved</ins> - see rationale below]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p><p>Already fixed in working draft</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.11.3 [ratio.ratio] synopsis
-</p>
-
-<blockquote><pre>
-template &lt;intmax_t N, intmax_t D = 1&gt;
-class ratio {
-public:
-  static constexpr intmax_t num;
-  static constexpr intmax_t den;
-
-  typedef ratio<ins>&lt;num, den&gt;</ins> type;
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1283"></a>1283. <tt>MoveConstructible</tt> and <tt>MoveAssignable</tt> need clarification
-of moved-from state</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-12-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 150</b></p>
-
-<p>
-There is on going confusion over what one can and can not do with a moved-from
-object (e.g.
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3009.html#UK150">UK 150</a>,
-<a href="lwg-closed.html#910">910</a>).
-This issue attempts to clarify that moved-from objects are valid objects with an
-unknown state.
-</p>
-
-<p><i>[
-2010-01-22 Wording tweaked by Beman.
-]</i></p>
-
-
-<p><i>[
-2010-01-22 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-01-23 Alisdair opens:
-]</i></p>
-
-
-<blockquote>
-<p>
-I'm afraid I must register an objection.
-</p>
-
-<p>
-My primary objection is that I have always been opposed to this kind of a
-resolution as over-constraining.  My preferred example is a call implementing
-the pImpl idiom via <tt>unique_ptr</tt>.  Once the pImpl has been moved from, it
-is no longer safe to call the vast majority of the object's methods, yet I see
-no reason to make such a type unusable in the standard library.  I would prefer
-a resolution along the lines suggested in the UK comment, which only requires
-that the object can be safely destroyed, and serve as the target of an
-assignment operator (if supported.)
-</p>
-
-<p>
-However, I will not hold the issue up if I am a lone dissenting voice on this
-(yes, that is a call to hear more support, or I will drop that objection in
-Pittsburgh)
-</p>
-
-<p>
-With the proposed wording, I'm not clear what the term 'valid object' means.  In
-my example above, is a pImpl holding a null pointer 'valid'?  What about a float
-holding a signalling NaN?  What determines if an object is valid?  Without a
-definition of a valid/invalid object, I don't think this wording adds anything,
-and this is an objection that I do want resolved.
-</p>
-
-<p><i>[
-2010-01-24 Alisdair removes his objection.
-]</i></p>
-
-
-<p><i>[
-2010-01-24 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-</blockquote>
-
-<p><i>[
-2010-02-10 Reopened.  The wording here has been merged into <a href="lwg-defects.html#1309">1309</a>.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Moved to Tentatively <del>NAD Editorial</del><ins>Resolved</ins> after 5 postive votes on
-c++std-lib.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-This issue is now addressed by <a href="lwg-defects.html#1309">1309</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the follwing tables in 17.6.3.1 [utility.arg.requirements] as shown:
-</p>
-
-<blockquote>
-
-<table border="1">
-<caption>Table 33 &mdash; <tt>MoveConstructible</tt> requirements <b>[moveconstructible]</b></caption>
-<tr>
-<th>Expression</th>
-<th>Post-condition</th>
-</tr>
-<tr>
-<td>
-<tt>T t(rv)</tt>
-</td>
-<td>
-<tt>t</tt> is equivalent to the value of <tt>rv</tt> before the construction.
-</td>
-</tr>
-<tr>
-<td colspan="2">
-[<i>Note:</i>
-<del>There is no requirement on the value of <tt>rv</tt> after the
-construction.</del>
-<ins><tt>rv</tt> remains a valid object.  Its state is unspecified.</ins>
-&mdash; <i>end note</i>]
-</td>
-</tr>
-</table>
-
-</blockquote>
-<blockquote>
-
-<table border="1">
-<caption>Table 35 &mdash; <tt>MoveAssignable</tt> requirements <b>[moveassignable]</b></caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Return value</th>
-<th>Post-condition</th>
-</tr>
-<tr>
-<td>
-<tt>t = rv</tt>
-</td>
-<td>
-<tt>T&amp;</tt>
-</td>
-<td>
-<tt>t</tt>
-</td>
-<td>
-<tt>t</tt> is equivalent to the value of <tt>rv</tt> before the assigment.
-</td>
-</tr>
-<tr>
-<td colspan="4">
-[<i>Note:</i>
-<del>There is no requirement on the value of <tt>rv</tt> after the
-assignment.</del>
-<ins><tt>rv</tt> remains a valid object.  Its state is unspecified.</ins>
-&mdash; <i>end note</i>]
-</td>
-</tr>
-</table>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1284"></a>1284. <tt>vector&lt;bool&gt; initializer_list</tt> constructor missing an allocator argument</h3>
-<p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2009-12-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specialization for <tt>vector&lt;bool&gt;</tt> (23.3.7 [vector.bool])
-has a constructor
-</p>
-
-<blockquote><pre>
-vector(initializer_list&lt;bool&gt;);
-</pre></blockquote>
-
-<p>
-which differs from the base template's constructor (and other containers) in
-that it has no <tt>allocator</tt> parameter.
-</p>
-
-<p><i>[
-2009-12-16 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the signature in the synopsis of 23.3.7 [vector.bool] to 
-</p>
-
-<blockquote><pre>
-vector(initializer_list&lt;bool&gt;<ins>, const Allocator&amp; = Allocator()</ins>);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1285"></a>1285. <tt>allocator_traits</tt> call to <tt>new</tt></h3>
-<p><b>Section:</b> 20.7.8.2 [allocator.traits.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-12-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.traits.members">issues</a> in [allocator.traits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG issue <a href="lwg-defects.html#402">402</a> added "<tt>::</tt>" to the call to <tt>new</tt>
-within <tt>allocator::construct</tt>.  I suspect we want to retain that fix.
-</p>
-
-<p><i>[
-2009-12-13 Moved to Tentatively Ready after 7 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.6.3.5 [allocator.requirements], table 40 "Allocator requirements":
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 40 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Default</th>
-</tr>
-<tr>
-<td>
-<tt>a.construct(c,args)</tt>
-</td>
-<td>
-(not used)
-</td>
-<td>
-Effect: Constructs an object of type <tt>C</tt> at <tt>c</tt>
-</td>
-<td>
-<tt><ins>::</ins>new ((void*)c) C(forward&lt;Args&gt;(args)...)</tt>
-</td>
-</tr>
-</table>
-</blockquote>
-
-<p>
-Change 20.7.8.2 [allocator.traits.members], p4:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class... Args&gt;
-  static void construct(Alloc&amp; a, T* p, Args&amp;&amp;... args);
-</pre>
-<blockquote><p>
-4 <i>Effects:</i> calls <tt>a.construct(p,
-std::forward&lt;Args&gt;(args)...)</tt> if that call is well-formed; otherwise,
-invokes <tt><ins>::</ins>new (static_cast&lt;void*&gt;(p))
-T(std::forward&lt;Args&gt;(args)...)</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1286"></a>1286. <tt>allocator_traits::select_on_container_copy_construction</tt> type-o</h3>
-<p><b>Section:</b> 20.7.8.2 [allocator.traits.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2009-12-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.traits.members">issues</a> in [allocator.traits.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>allocator_traits::select_on_container_copy_construction</tt> refers to an
-unknown "<tt>a</tt>":
-</p>
-
-<blockquote><pre>
-static Alloc select_on_container_copy_construction(const Alloc&amp; rhs);
-</pre>
-
-<blockquote><p>
-7 <i>Returns:</i> <tt>rhs.select_on_container_copy_construction(a)</tt> if that
-expression is well-formed; otherwise, <tt>rhs</tt>.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2009-12-13 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.7.8.2 [allocator.traits.members], p7:
-</p>
-
-<blockquote><pre>
-static Alloc select_on_container_copy_construction(const Alloc&amp; rhs);
-</pre>
-
-<blockquote><p>
-7 <i>Returns:</i>
-<tt>rhs.select_on_container_copy_construction(<del>a</del>)</tt> if that
-expression is well-formed; otherwise, <tt>rhs</tt>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1287"></a>1287. <tt>std::function</tt> requires <tt>CopyConstructible</tt> target object</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-12-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think <tt>std::function</tt> should require <tt>CopyConstructible</tt> for the
-target object.
-</p>
-
-<p>
-I initially thought that <tt>MoveConstructible</tt> was enough, but it's not. If
-<tt>F</tt> is move-only then function's copy constructor cannot be called, but
-because function uses type erasure, <tt>F</tt> is not known and so the copy
-constructor cannot be disabled via <tt>enable_if</tt>.  One option would be to
-throw an exception if you try to copy a function with a non-copyable target
-type, but I think that would be a terrible idea.
-</p>
-
-<p>
-So although the constructors require that the target be initialised by
-<tt>std::move(f)</tt>, that's only an optimisation, and a copy constructor is
-required.
-</p>
-
-<p><i>[
-2009-12-24 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to 20.9.12.2.1 [func.wrap.func.con] paragraph 9:
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function(F f);
-template &lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-
-<blockquote><p>
-9  <i>Requires:</i> <ins><tt>F</tt> shall be <tt>CopyConstructible</tt>.</ins>
-<tt>f</tt> shall be callable for argument types <tt>ArgTypes</tt> and return
-type <tt>R</tt>. The copy constructor and destructor of <tt>A</tt> shall not
-throw exceptions.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1288"></a>1288. <tt>std::function</tt> assignment from rvalues</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-12-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.9.12.2.1 [func.wrap.func.con]
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function&amp; operator=(F f);
-</pre>
-<blockquote>
-<p>
-20        <i>Effects:</i> <tt>function(f).swap(*this);</tt>
-</p>
-<p>
-21        <i>Returns:</i> <tt>*this</tt>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-This assignment operator can be called such that <tt>F</tt> is an rvalue-reference e.g.
-</p>
-
-<blockquote><pre>
-func.operator=&lt;F&amp;&amp;&gt;(f);
-</pre></blockquote>
-
-<p>
-There are two issues with this.
-</p>
-
-<ol>
-<li>
-the effects mean that <tt>f</tt> is passed as an lvalue and so there will be an
-unnecessary copy. The argument should be forwarded, so that the copy can be
-avoided.
-</li>
-<li>
-It should not be necessary to use that syntax to pass an rvalue. As <tt>F</tt>
-is a deduced context it can be made to work with either lvalues or rvalues.
-</li>
-</ol>
-
-<p>
-The same issues apply to <tt>function::assign</tt>.
-</p>
-
-<p>
-N.B. this issue is not related to <a href="lwg-defects.html#1287">1287</a> and applies whether that
-issue is resolved or not. The wording below assumes the resolution of LWG <a href="lwg-defects.html#1258">1258</a> has been applied.
-</p>
-
-<p><i>[
-2009-12-16 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-201002-11 Opened by Alisdair for the purpose of merging <a href="lwg-defects.html#1258">1258</a> into
-this issue as there is a minor conflict.
-]</i></p>
-
-
-<p><i>[
-2010-02-11 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.9.12.2.1 [func.wrap.func.con]
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function&amp; operator=(F<ins>&amp;&amp;</ins> f);
-</pre>
-<blockquote>
-<p>
-20 <i>Effects:</i>
-<tt>function(<ins>std::forward&lt;F&gt;(</ins>f<ins>)</ins>).swap(*this);</tt>
-</p>
-<p>
-21        <i>Returns:</i> <tt>*this</tt>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-In 20.9.12.2.2 [func.wrap.func.mod]
-</p>
-
-<blockquote><pre>
-template&lt;class F, <del>Allocator Alloc</del><ins>class A</ins>&gt;
-  void assign(F<ins>&amp;&amp; f</ins>, const A<del>lloc</del>&amp; a);
-</pre>
-<blockquote>
-<p>
-<ins>3</ins> <i>Effects:</i> <tt>function(<del>f, a</del><ins>allocator_arg, a,
-std::forward&lt;F&gt;(f)</ins>).swap(*this);</tt>
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Update member function signature for class template in 20.9.12.2 [func.wrap.func]
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function&amp; operator=(F<ins>&amp;&amp;</ins>);
-
-template&lt;class F, class A&gt; void assign(F<ins>&amp;&amp;</ins>, const A&amp;);
-</pre></blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1290"></a>1290. Don't require <tt>[u|bi]nary_function</tt> inheritance</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-12-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This issue is a follow-up of the discussion on issue <a href="lwg-defects.html#870">870</a> during
-the 2009 Santa Cruz meeting.
-</p>
-
-<p>
-The class templates <tt>unary_function</tt> and <tt>binary_function</tt> are
-actually very simple typedef providers,
-</p>
-
-<blockquote><pre>
-namespace std {
-
-template &lt;class Arg, class Result&gt;
-struct unary_function {
- typedef Arg argument_type;
- typedef Result result_type;
-};
-
-template &lt;class Arg1, class Arg2, class Result&gt;
-struct binary_function {
- typedef Arg1 first_argument_type;
- typedef Arg2 second_argument_type;
- typedef Result result_type;
-};
-
-}
-</pre></blockquote>
-
-<p>
-which <i>may</i> be used as base classes (similarly to the iterator template),
-but were originally <i>not</i> intended as a customization point. The SGI
-documentation introduced the concept 
-<a href="http://www.sgi.com/tech/stl/AdaptableUnaryFunction.html">Adaptable Unary
-Function</a> as function objects "with nested typedefs that define its argument
-type and result type" and a similar definition for 
-<a href="http://www.sgi.com/tech/stl/AdaptableBinaryFunction.html">Adaptable Binary
-Function</a> related to <tt>binary_function</tt>. But as of TR1 a protocol was
-introduced that relies on inheritance relations based on these types. 20.9.4 [refwrap]/3 b. 3 requires that a specialization of
-<tt>reference_wrapper&lt;T&gt;</tt> shall derive from <tt>unary_function</tt>,
-if type <tt>T</tt> is "a class type that is derived from
-<tt>std::unary_function&lt;T1, R&gt;</tt>" and a similar inheritance-based rule
-for <tt>binary_function</tt> exists as well.
-</p>
-
-<p>
-As another disadvantage it has been pointed out in the TR1 issue list, <a
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1837.pdf">N1837</a>
-(see section 10.39), that the requirements of <tt>mem_fn</tt> 20.9.11 [func.memfn]/2+3 to <em>derive</em> from
-<tt>std::unary_function/std::binary_function</tt> under circumstances, where the
-provision of corresponding typedefs would be sufficient, unnecessarily prevent
-implementations that take advantage of empty-base-class optimizations.
-</p>
-
-<p>
-Both requirements should be relaxed in the sense that the
-<tt>reference_wrapper</tt> should provide typedef's <tt>argument_type</tt>,
-<tt>first_argument_type</tt>, and <tt>second_argument_type</tt> based on similar
-rules as the <i>weak result type</i> rule (20.9.2 [func.require]/3) does
-specify the presence of <tt>result_type</tt> member types.
-</p>
-
-<p>
-For a related issue see also <a href="lwg-defects.html#1279">1279</a>.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3145.html">n3145</a> 
-would resolve this issue as NAD editorial.
-</p></blockquote>
-
-
-
-<p><i>[
-2010-11 Batavia: Solved by N3198
-]</i></p>
-
-<p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3198.htm">n3198</a>.
-</p>
-
-<p>
-Previous proposed resolution:
-</p>
-<p><i>[
-The here proposed resolution is an attempt to realize the common denominator of
-the reflector threads c++std-lib-26011, c++std-lib-26095, and c++std-lib-26124.
-]</i></p>
-
-<blockquote class="note">
-<ol>
-<li>
-<p>
-Change  [base]/1 as indicated: <i>[The intend is to provide an
-alternative fix for issue <a href="lwg-defects.html#1279">1279</a> and some editorial harmonization
-with existing wording in the library, like 24.4.2 [iterator.basic]/1]</i>
-</p>
-
-<blockquote>
-<p>
-1 The following class<ins> templat</ins>es are provided to simplify the
-<ins>definition of</ins> typedefs of the argument and result types <ins>for
-function objects. The behavior of a program that adds specializations for any of
-these templates is undefined.</ins><del>:</del>
-</p>
-
-<blockquote><pre>
-namespace std {
- template &lt;class Arg, class Result&gt;
- struct unary_function {
-   typedef Arg argument_type;
-   typedef Result result_type;
- };
-}
-
-namespace std {
- template &lt;class Arg1, class Arg2, class Result&gt;
- struct binary_function {
-   typedef Arg1 first_argument_type;
-   typedef Arg2 second_argument_type;
-   typedef Result result_type;
- };
-}
-</pre></blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.4 [refwrap], class template <tt>reference_wrapper</tt>
-synopsis as indicated: <i>[The intent is to remove the requirement that
-<tt>reference_wrapper</tt> derives from <tt>unary_function</tt> or
-<tt>binary_function</tt> if the situation requires the definition of the
-typedefs <tt>argument_type</tt>, <tt>first_argument_type</tt>, or
-<tt>second_argument_type</tt>. This change is suggested, because the new way of
-definition uses the same strategy as the <em>weak result type</em> specification
-applied to argument types, which provides the following advantages: It creates
-less potential conflicts between <tt>[u|bi]nary_function</tt> bases and typedefs
-in a function object and it ensures that user-defined function objects which
-provide typedefs but no such bases are handled as first class citizens.]</i>
-</p>
-
-<blockquote><pre>
-namespace std {
- template &lt;class T&gt; class reference_wrapper
-   <del>: public unary_function&lt;T1, R&gt; // <i>see below</i></del>
-   <del>: public binary_function&lt;T1, T2, R&gt; // <i>see below</i></del>
- {
- public :
-   // types
-   typedef T type;
-   typedef <i>see below</i> result_type; // not always defined
-   <ins>typedef <i>see below</i> argument_type; // not always defined</ins>
-   <ins>typedef <i>see below</i> first_argument_type; // not always defined</ins>
-   <ins>typedef <i>see below</i> second_argument_type; // not always defined</ins>
-
-   // construct/copy/destroy
-   ...
- };
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.4 [refwrap]/3 as indicated: <i>[The intent is to remove the
-requirement that <tt>reference_wrapper</tt> derives from <tt>unary_function</tt>
-if the situation requires the definition of the typedef <tt>argument_type</tt>
-and <tt>result_type</tt>. Note that this clause does concentrate on
-<tt>argument_type</tt> alone, because the <tt>result_type</tt> is already ruled
-by p. 2 via the <em>weak result type</em> specification. The new way of
-specifying <tt>argument_type</tt> is equivalent to the <em>weak result type</em>
-specification]</i>
-</p>
-
-<blockquote>
-<p>
-3 The template instantiation <tt>reference_wrapper&lt;T&gt;</tt> shall <del>be
-derived from <tt>std::unary_function&lt;T1, R&gt;</tt></del><ins>define a nested
-type named <tt>argument_type</tt> as a synonym for <tt>T1</tt></ins> only if the
-type <tt>T</tt> is any of the following:
-</p>
-<ul>
-<li>a function type or a pointer to function type taking one argument
-of type <tt>T1</tt><del> and returning <tt>R</tt></del>
-</li>
-<li>a pointer to member function <tt>R T0::f</tt> <em>cv</em> (where
-<em>cv</em> represents the member function's cv-qualifiers);
-the type <tt>T1</tt> is <em>cv</em> <tt>T0*</tt>
-</li>
-<li>a class type <del>that is derived from
-<tt>std::unary_function&lt;T1, R&gt;</tt></del><ins>with a member type
-<tt>argument_type</tt>;
-	the type <tt>T1</tt> is <tt>T::argument_type</tt></ins>
-</li>
-</ul>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.4 [refwrap]/4 as indicated: <i>[The intent is to remove the
-requirement that <tt>reference_wrapper</tt> derives from
-<tt>binary_function</tt> if the situation requires the definition of the typedef
-<tt>first_argument_type</tt>, <tt>second_argument_type</tt>, and
-<tt>result_type</tt>. Note that this clause does concentrate on
-<tt>first_argument_type</tt> and <tt>second_argument_type</tt> alone, because
-the <tt>result_type</tt> is already ruled by p. 2 via the <em>weak result
-type</em> specification. The new way of specifying <tt>first_argument_type</tt>
-and <tt>second_argument_type</tt> is equivalent to the <em>weak result type</em>
-specification]</i>
-</p>
-
-<blockquote>
-<p>
-The template instantiation <tt>reference_wrapper&lt;T&gt;</tt> shall <del>be
-derived from <tt>std::binary_function&lt;T1, T2, R&gt;</tt></del><ins>define two
-nested types named <tt>first_argument_type</tt> and
-<tt>second_argument_type</tt> as a synonym for <tt>T1</tt> and <tt>T2</tt>,
-respectively,</ins> only if the type <tt>T</tt> is any of the following:
-</p>
-<ul>
-<li>a function type or a pointer to function type taking two arguments
-of types <tt>T1</tt> and <tt>T2</tt><del> and returning
-<tt>R</tt></del>
-</li>
-<li>a pointer to member function <tt>R T0::f(T2)</tt> <em>cv</em>
-(where <em>cv</em> represents the member function's cv-qualifiers);
-	the type <tt>T1</tt> is <em>cv</em> <tt>T0*</tt>
-</li>
-<li>a class type <del>that is derived from
-<tt>std::binary_function&lt;T1, T2, R&gt;</tt></del><ins>with member
-types <tt>first_argument_type</tt>
-	and <tt>second_argument_type</tt>; the type <tt>T1</tt> is
-<tt>T::first_argument_type</tt> and the type <tt>T2</tt> is
-	<tt>T::second_argument_type</tt></ins>
-</li>
-</ul>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.11 [func.memfn]/2+3 as indicated: <i>[The intent is to remove
-the requirement that mem_fn's return type has to derive
-from <tt>[u|bi]nary_function</tt>. The reason for suggesting the
-change here is to better support empty-base-class optimization
-choices as has been pointed out in 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1837.pdf">N1837</a>]</i>
-</p>
-
-<blockquote>
-<p>
-2 The simple call wrapper shall <del>be derived from
-<tt>std::unary_function&lt;<em>cv</em> T*, <i>Ret</i>&gt;</tt></del><ins>define
-two nested types named <tt>argument_type</tt> and <tt>result_type</tt> as a
-synonym for <tt><em>cv</em> T*</tt> and <tt><i>Ret</i></tt>, respectively,</ins>
-when <tt>pm</tt> is a pointer to member function with cv-qualifier <em>cv</em>
-and taking no arguments, where <tt><i>Ret</i></tt> is <tt>pm</tt>'s return type.
-</p>
-<p>
-3 The simple call wrapper shall <del>be derived from
-<tt>std::binary_function&lt;<em>cv</em> T*, T1,
-<i>Ret</i>&gt;</tt></del><ins>define three nested types named
-<tt>first_argument_type</tt>, <tt>second_argument_type</tt>, and
-<tt>result_type</tt> as a synonym for <tt><em>cv</em> T*</tt>, <tt>T1</tt>, and
-<tt><i>Ret</i></tt>, respectively,</ins> when <tt>pm</tt> is a pointer to member
-function with cv-qualifier <em>cv</em> and taking one argument of type
-<tt>T1</tt>, where <tt><i>Ret</i></tt> is <tt>pm</tt>'s return type.
-</p>
-</blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-<p><b>Proposed resolution:</b></p><p>
-Addressed by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3198.htm">n3198</a>.
-</p>
-
-
-
-<hr>
-<h3><a name="1291"></a>1291. Exceptions thrown during <tt>promise::set_value</tt></h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-12-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 30.6.5 [futures.promise]
-</p>
-
-<p>
-Does <tt>promise&lt;R&gt;::set_value</tt> return normally if the copy&#47;move
-constructor of <tt>R</tt> throws?
-</p>
-
-<p>
-The exception could be caught and set using
-<tt>promise&lt;R&gt;::set_exception</tt>, or it could be allowed to leave the
-<tt>set_value</tt> call, but it's not clear which is intended. I suggest the
-exception should not be caught.
-</p>
-
-<p>
-N.B. This doesn't apply to <tt>promise&lt;R&amp;&gt;::set_value</tt> or
-<tt>promise&lt;void&gt;::set_value</tt> because they don't construct a new
-object.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.6.5 [futures.promise]/18:
-</p>
-
-<blockquote><p>
-18 <i>Throws:</i> <tt>future_error</tt> if its associated state is already
-ready<ins> or, for the first version an exception thrown by the copy constructor
-of <tt>R</tt>, or for the second version an exception thrown by the move
-constructor of <tt>R</tt></ins>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1292"></a>1292. <tt>std::function</tt> should support all callable types</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-12-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Some parts of the specification of <tt>std::function</tt> is unnecessarily
-restricted to a subset of all callable types (as defined in 20.9.1 [func.def]/3), even though the intent clearly is to be usable for
-<em>all</em> of them as described in 20.9.12.2 [func.wrap.func]/1. This
-argument becomes strengthened by the fact that current C++0x-compatible
-compilers work fine with them:
-</p>
-
-<blockquote><pre>
-#include &lt;functional&gt;
-#include &lt;iostream&gt;
-
-struct A
-{
-  int foo(int i) const {return i+1;}
-};
-
-struct B
-{
-  int mem;
-};
-
-int main()
-{
-  std::function&lt;int(const A&amp;, int)&gt; f(&amp;A::foo);
-  A a;
-  std::cout &lt;&lt; f(a, 1) &lt;&lt; '\n';
-  std::cout &lt;&lt; f.target_type().name() &lt;&lt; '\n';
-  typedef int (A::* target_t)(int) const;
-  target_t* p = f.target&lt;target_t&gt;();
-  std::cout &lt;&lt; (p != 0) &lt;&lt; '\n';
-  std::function&lt;int(B&amp;)&gt; f2(&amp;B::mem);
-  B b = { 42 };
-  std::cout &lt;&lt; f2(b) &lt;&lt; '\n';
-  std::cout &lt;&lt; f2.target_type().name() &lt;&lt; '\n';
-  typedef int (B::* target2_t);
-  target2_t* p2 = f2.target&lt;target2_t&gt;();
-  std::cout &lt;&lt; (p2 != 0) &lt;&lt; '\n';
-}
-</pre></blockquote>
-
-<p>
-The problematic passages are 20.9.12.2.1 [func.wrap.func.con]/10:
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function(F f);
-template &lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-10 <i>Postconditions:</i> <tt>!*this</tt> if any of the following hold:
-</p>
-<ul>
-<li>
-<tt>f</tt> is a <tt>NULL</tt> function pointer.
-</li>
-<li>
-<tt>f</tt> is a <tt>NULL</tt> member function pointer.
-</li>
-<li>
-<tt>F</tt> is an instance of the function class template, and <tt>!f</tt>
-</li>
-</ul>
-</blockquote>
-</blockquote>
-
-<p>
-because it does not consider pointer to data member and all constraints based on
-<em>function objects</em> which like 20.9.12.2 [func.wrap.func]/2 or 20.9.12.2.5 [func.wrap.func.targ]/3. The latter two will be resolved by the proposed
-resolution of <a href="lwg-defects.html#870">870</a> and are therefore not handled here.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.12.2.1 [func.wrap.func.con]/10+11 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class F&gt; function(F f);
-template &lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-<blockquote>
-<p>...</p>
-<p>
-10 <i>Postconditions:</i> <tt>!*this</tt> if any of the following hold:
-</p>
-<ul>
-<li>
-<tt>f</tt> is a <tt>NULL</tt> function pointer.
-</li>
-<li>
-<tt>f</tt> is a <tt>NULL</tt> <ins>pointer to</ins> member <del>function pointer</del>.
-</li>
-<li>
-<tt>F</tt> is an instance of the function class template, and <tt>!f</tt>
-</li>
-</ul>
-
-<p>
-11 Otherwise, <tt>*this</tt> targets a copy of <tt>f</tt> <del>or</del><ins>,
-initialized with</ins> <tt>std::move(f)</tt> <del>if <tt>f</tt> is not a pointer
-to member function, and targets a copy of <tt>mem_fn(f)</tt> if <tt>f</tt> is a
-pointer to member function</del>. [<i>Note:</i> implementations are encouraged
-to avoid the use of dynamically allocated memory for small function objects, for
-example, where <tt>f</tt>'s target is an object holding only a pointer or
-reference to an object and a member function pointer. &mdash; <i>end note</i>]
-</p>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1293"></a>1293. <tt>unique_ptr&lt;T[], D&gt;</tt> needs to get rid of <i>unspecified-pointer-type</i></h3>
-<p><b>Section:</b> 20.8.1.3 [unique.ptr.runtime] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-12-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.runtime">issues</a> in [unique.ptr.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses UK 211</b></p>
-
-<p>
-As a response to UK 211 LWG issue <a href="lwg-defects.html#1021">1021</a> has replaced the
-<i>unspecified-pointer-type</i> by <tt>nullptr_t</tt> to allow assignment of
-type-safe null-pointer literals in the non-array form of
-<tt>unique_ptr::operator=</tt>, but did not the same for the specialization for
-arrays of runtime length. But without this parallel change of the signature we
-have a status quo, where <tt>unique_ptr&lt;T[], D&gt;</tt> declares a member
-function which is completely unspecified.
-</p>
-
-<p><i>[
-2009-12-21 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-03-14 Howard adds:
-]</i></p>
-
-
-<blockquote><p>
-We moved
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>
-to the formal motions page in Pittsburgh which should obsolete this issue.  I've
-moved this issue to NAD Editorial, solved by N3073.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.8.1.3 [unique.ptr.runtime], class template <tt>unique_ptr&lt;T[],
-D&gt;</tt> synopsis, change as indicated:
-</p>
-
-<blockquote><pre>
-// assignment
-unique_ptr&amp; operator=(unique_ptr&amp;&amp; u);
-unique_ptr&amp; operator=(<del><i>unspecified-pointer-type</i></del><ins>nullptr_t</ins>);
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1294"></a>1294. Difference between callable wrapper and forwarding  call wrapper unclear</h3>
-<p><b>Section:</b> 20.9.2 [func.require] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2009-12-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.require">active issues</a> in [func.require].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.require">issues</a> in [func.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current wording in the standard makes it hard to discriminate the difference
-between a "call wrapper" as defined in 20.9.1 [func.def]/5+6:
-</p>
-
-<blockquote>
-<p>
-5 A <i>call wrapper type</i> is a type that holds a callable object and supports
-a call operation that forwards to that object.
-</p>
-<p>
-6 A <i>call wrapper</i> is an object of a call wrapper type.
-</p>
-</blockquote>
-
-<p>
-and a "forwarding call wrapper" as defined in 20.9.2 [func.require]/4:
-</p>
-
-<blockquote>
-<p>
-4 [..] A <i>forwarding call wrapper</i> is a call wrapper that can be called
-with an argument list. [<i>Note:</i> in a typical implementation forwarding call
-wrappers have an overloaded function call operator of the form
-</p>
-
-<blockquote><pre>
-template&lt;class... ArgTypes&gt;
-R operator()(ArgTypes&amp;&amp;... args) <i>cv-qual</i>;
-</pre></blockquote>
-
-<p>
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<p>
-Reason for this lack of clear difference seems to be that the wording adaption
-to variadics and rvalues that were applied after it's original proposal in <a
-href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1673.html#call%20wrapper">N1673</a>:
-</p>
-
-<blockquote>
-<p>
-[..] A <b>forwarding call wrapper</b> is a call wrapper that can be called
-with an argument list <tt>t1, t2, ..., tN</tt> where each <tt>ti</tt> is an lvalue.
-The effect of calling a forwarding call wrapper with one or more
-arguments that are rvalues is implementation defined. [<i>Note:</i> in
-a typical implementation forwarding call wrappers have overloaded
-function call operators of the form
-</p>
-
-<blockquote><pre>
-template&lt;class T1, class T2, ..., class TN&gt;
-R operator()(T1&amp; t1, T2&amp; t2, ..., TN&amp; tN) <i>cv-qual</i>;
-</pre></blockquote>
-
-<p>
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<p>
-combined with the fact that the word "forward" has two different meanings in
-this context. This issue attempts to clarify the difference better.
-</p>
-
-<p><i>[
-2010-09-14 Daniel provides improved wording and verified that it is correct against N3126. Previous resolution is shown here:
-]</i></p>
-
-
-<blockquote>
-<p>
-4 [..] A <i>forwarding call wrapper</i> is a call wrapper that can be called
-with an <ins>arbitrary</ins> argument list<ins> and uses perfect forwarding to
-deliver the arguments to the wrapped callable object</ins>. [<i>Note:</i> in a
-typical implementation forwarding call wrappers have an overloaded function call
-operator of the form
-</p>
-
-<blockquote><pre>
-template&lt;class... ArgTypes&gt;
-R operator()(ArgTypes&amp;&amp;... args) <i>cv-qual</i>;
-</pre></blockquote>
-
-<p>
-&mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.2 [func.require]/4 as indicated:
-</p>
-
-<blockquote><p>
-[..] A <em>forwarding call wrapper</em> is a call wrapper that can be called with an <ins>arbitrary</ins> argument 
-list <ins>and delivers the arguments as references to the wrapped callable object. This forwarding step shall ensure
-that rvalue arguments are delivered as rvalue-references and lvalue arguments are delivered as lvalue-references</ins>. 
-[<em>Note</em>: in a typical implementation forwarding call wrappers have an overloaded function call operator of the 
-form
-</p>
-
-<blockquote><pre>
-template&lt;class... UnBoundArgs&gt;
-R operator()(UnBoundArgs&amp;&amp;... unbound_args) <em>cv-qual</em>;
-</pre></blockquote>
-<p>
-&mdash; <em>end note</em> ]
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1295"></a>1295. Contradictory call wrapper requirements</h3>
-<p><b>Section:</b> 20.9.2 [func.require] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-12-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.require">active issues</a> in [func.require].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.require">issues</a> in [func.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.9.2 [func.require]/3 b 1 says
-</p>
-
-<blockquote>
-<p>
-3 If a call wrapper (20.9.1 [func.def]) has a <i>weak result type</i> the
-type of its member type <tt>result_type</tt> is based on the type <tt>T</tt> of
-the wrapper's target object (20.9.1 [func.def]):
-</p>
-
-<ul>
-<li>
-if <tt>T</tt> is a function, reference to function, or pointer to function type,
-<tt>result_type</tt> shall be a synonym for the return type of <tt>T</tt>;
-</li>
-<li>
-[..]
-</li>
-</ul>
-</blockquote>
-
-<p>
-The first two enumerated types (function and reference to function)
-can never be valid types for <tt>T</tt>, because
-</p>
-
-<p>
-20.9.1 [func.def]/7
-</p>
-
-<blockquote><p>
-7 A <i>target object</i> is the callable object held by a call wrapper.
-</p></blockquote>
-
-<p>
-and 20.9.1 [func.def]/3
-</p>
-
-<blockquote><p>
-3 A <i>callable type</i> is a pointer to function, a pointer to member function,
-a pointer to member data, or a class type whose objects can appear immediately
-to the left of a function call operator.
-</p></blockquote>
-
-<p>
-exclude functions and references to function as "target objects".
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.2 [func.require]/3 b 1 as indicated:
-</p>
-
-<blockquote>
-<p>
-3 If a call wrapper (20.9.1 [func.def]) has a <i>weak result type</i> the
-type of its member type <tt>result_type</tt> is based on the type <tt>T</tt> of
-the wrapper's target object (20.9.1 [func.def]):
-</p>
-
-<ul>
-<li>
-if <tt>T</tt> is a <del>function, reference to function, or</del> pointer to
-function type, <tt>result_type</tt> shall be a synonym for the return type of
-<tt>T</tt>;
-</li>
-<li>
-[..]
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1297"></a>1297. <tt>unique_ptr</tt>'s relational operator functions should induce a total order</h3>
-<p><b>Section:</b> 20.8.1.5 [unique.ptr.special] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2009-12-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The comparison functions of <tt>unique_ptr</tt> currently directly delegate to
-the underlying comparison functions of <tt>unique_ptr&lt;T, D&gt;::pointer</tt>.
-This is disadvantageous, because this would not guarantee to induce a total
-ordering for native pointers and it is hard to define a total order for mixed
-types anyway.
-</p>
-<p>
-The currently suggested resolution for <tt>shared_ptr</tt> comparison as of
-<a href="lwg-defects.html#1262">1262</a> uses a normalization strategy: They perform the comparison on
-the <em>composite pointer type</em> (5.9 [expr.rel]). This is not
-exactly possible for <tt>unique_ptr</tt> in the presence of user-defined
-pointer-like types but the existing definition of <tt>std::duration</tt>
-comparison as of 20.12.5.6 [time.duration.comparisons] via
-<tt>common_type</tt> of both argument types demonstrates a solution of this
-problem. The approach can be seen as the general way to define a <em>composite
-pointer type</em> and this is the approach which is used for here suggested
-wording change.
-</p>
-<p>
-For consistency reasons I would have preferred the same normalization strategy
-for <tt>==</tt> and <tt>!=</tt>, but Howard convinced me not to do so (now).
-</p>
-
-<p><i>[
-2010-11-03 Daniel comments and adjustes the currently proposed wording changes:
-]</i></p>
-
-
-<p>
-Issue <a href="lwg-defects.html#1401">1401</a> is remotely related. <a href="#1401_extra_bullet">Bullet A</a> of its proposed resolution 
-provides an alternative solution for issue discussed here and addresses NB comment GB-99.
-Additionally I updated the below suggested wording in regard to the following:
-It is an unncessary requirement that the below defined effective composite pointer-like
-type <tt>CT</tt> satisfies the <tt>LessThanComparable</tt> requirements. All what is 
-needed is, that the function object type <tt>less&lt;CT&gt;</tt> induces a strict
-weak ordering on the pointer values.
-</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Resolved by <a href="lwg-defects.html#1401">1401</a></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Change 20.8.1.5 [unique.ptr.special]/4-7 as indicated: <i>[The implicit
-requirements and remarks imposed on the last three operators are the same as for
-the first one due to the normative "equivalent to" usage within a Requires
-element, see 17.5.1.4 [structure.specifications]/4. The effects of this
-change are that all real pointers wrapped in a <tt>unique_ptr</tt> will order
-like <tt>shared_ptr</tt> does.]</i>
-</p>
-
-<blockquote><pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>? <i>Requires:</i> Let <tt>CT</tt> be <tt>common_type&lt;unique_ptr&lt;T1,
-D1&gt;::pointer, unique_ptr&lt;T2, D2&gt;::pointer&gt;::type</tt>. Then
-the specialization <tt>less&lt;CT&gt;</tt> shall be a function object type ([function.objects]) 
-that induces a strict weak ordering ([alg.sorting]) on the pointer values.</ins>
-</p>
-
-<p>
-4 <i>Returns:</i> <tt><ins>less&lt;CT&gt;()(x.get(), y.get())</ins><del>x.get()
-&lt; y.get()</del></tt>.
-</p>
-
-<p>
-<ins>? <i>Remarks:</i> If <tt>unique_ptr&lt;T1, D1&gt;::pointer</tt> is not
-implicitly convertible to <tt>CT</tt> or <tt>unique_ptr&lt;T2,
-D2&gt;::pointer</tt> is not implicitly convertible to <tt>CT</tt>, the program
-is ill-formed.</ins>
-</p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-5 <ins><i>Effects:</i> Equivalent to <tt>return !(y &lt; x)</tt></ins>
-<del><i>Returns:</i> <tt>x.get() &lt;= y.get()</tt></del>.
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-6 <ins><i>Effects:</i> Equivalent to <tt>return (y &lt; x)</tt></ins>
-<del><i>Returns:</i> <tt>x.get() &gt; y.get()</tt></del>.
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-7 <ins><i>Effects:</i> Equivalent to <tt>return !(x &lt; y)</tt></ins>
-<del><i>Returns:</i> <tt>x.get() &gt;= y.get()</tt></del>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1298"></a>1298. Missing specialization of <tt>ctype_byname&lt;char&gt;</tt></h3>
-<p><b>Section:</b> 22.2 [locale.syn] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-12-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>&lt;locale&gt;</tt> synopsis in 22.2 [locale.syn] calls out an
-explicit specialization for <tt>ctype_byname&lt;char&gt;</tt>, however no such
-specialization is defined in the standard.  The only reference I can find to
-<tt>ctype_byname&lt;char&gt;</tt> is 22.3.1.1.2 [locale.facet]:Table 77
-&mdash; Required specializations (for facets) which also refers to
-<tt>ctype_byname&lt;wchar_t&gt;</tt> which has no special consideration.
-</p>
-
-<p>
-Is the intent an explicit <em>instantiation</em> which would use a slightly
-different syntax? Should the explicit specialization simply be struck?
-</p>
-
-<p><i>[
-2010-01-31 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-22.2 [locale.syn]
-</p>
-
-<blockquote>
-<p>
-Strike the explicit specialization for <tt>ctype_byname&lt;char&gt;</tt> from
-the <tt>&lt;locale&gt;</tt> synopsis
-</p>
-<blockquote><pre>
-...
-template &lt;class charT&gt; class ctype_byname;
-<del>template &lt;&gt;            class ctype_byname&lt;char&gt;;  // <i>specialization</i></del>
-...
-</pre></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1299"></a>1299. Confusing typo in specification for <tt>get_time</tt></h3>
-<p><b>Section:</b> 27.7.5 [ext.manip] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2009-12-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ext.manip">issues</a> in [ext.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Extended Manipulators 27.7.5 [ext.manip] p8 defines the semantics of
-<tt>get_time</tt> in terms of a function <tt>f</tt>.
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits&gt;
-void f(basic_ios&lt;charT, traits&gt;&amp; str, struct tm* tmb, const charT* fmt) {
-   typedef istreambuf_iterator&lt;charT, traits&gt; Iter;
-   typedef time_get&lt;charT, Iter&gt; TimeGet;
-
-   ios_base::iostate err = ios_base::goodbit;
-   const TimeGet&amp; tg = use_facet&lt;TimeGet&gt;(str.getloc());
-
-   tm.get(Iter(str.rdbuf()), Iter(), str, err, tmb, fmt, fmt + traits::length(fmt));
-
-   if (err != ios_base::goodbit)
-       str.setstate(err):
-}
-</pre></blockquote>
-
-<p>
-Note the call to <tt>tm.get</tt>.  This is clearly an error, as <tt>tm</tt> is a
-type and not an object.  I believe this should be <tt>tg.get</tt>, rather than
-<tt>tm</tt>, but this is not my area of expertise.
-</p>
-
-<p><i>[
-2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 27.7.5 [ext.manip] p8:
-</p>
-
-<blockquote><pre>
-template &lt;class charT, class traits&gt;
-void f(basic_ios&lt;charT, traits&gt;&amp; str, struct tm* tmb, const charT* fmt) {
-   typedef istreambuf_iterator&lt;charT, traits&gt; Iter;
-   typedef time_get&lt;charT, Iter&gt; TimeGet;
-
-   ios_base::iostate err = ios_base::goodbit;
-   const TimeGet&amp; tg = use_facet&lt;TimeGet&gt;(str.getloc());
-
-   t<ins>g</ins><del>m</del>.get(Iter(str.rdbuf()), Iter(), str, err, tmb, fmt, fmt + traits::length(fmt));
-
-   if (err != ios_base::goodbit)
-       str.setstate(err):
-}
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1300"></a>1300. Circular definition of <tt>promise::swap</tt></h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2009-12-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-30.6.5 [futures.promise]/12 defines the effects of
-<tt>promise::swap(promise&amp;)</tt> as
-</p>
-
-<blockquote><pre>
-void swap(promise&amp; other);
-</pre>
-<blockquote><p>
-12 <i>Effects:</i> <tt>swap(*this, other)</tt>
-</p></blockquote>
-</blockquote>
-
-<p>
-and 30.6.5 [futures.promise]/25 defines <tt>swap(promise&lt;R&amp;&gt;,
-promise&lt;R&gt;&amp;)</tt> as
-</p>
-
-<blockquote><pre>
-template &lt;class R&gt;
-  void swap(promise&lt;R&gt;&amp; x, promise&lt;R&gt;&amp; y);
-</pre>
-<blockquote><p>
-25 <i>Effects:</i> <tt>x.swap(y)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2010-01-13 Daniel added "Throws: Nothing."
-]</i></p>
-
-
-<p><i>[
-2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 30.6.5 [futures.promise] paragraph 12
-</p>
-
-<blockquote><pre>
-void swap(promise&amp; other);
-</pre>
-<blockquote>
-<p>
-12 <i>Effects:</i> <del><tt>swap(*this, other)</tt></del> <ins>Exchanges the
-associated
-states of <tt>*this</tt> and <tt>other</tt>.</ins>
-</p>
-<p>
-13 ...
-</p>
-<p><ins>
-<i>Throws:</i> Nothing.
-</ins></p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1303"></a>1303. <tt>shared_ptr</tt>, <tt>unique_ptr</tt>, and rvalue references v2</h3>
-<p><b>Section:</b> 20.8.1.2 [unique.ptr.single], 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2010-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>
-20.8.2.2 [util.smartptr.shared]/1 still says:
-</p>
-
-<blockquote><pre>
-template &lt;class Y, class D&gt; explicit shared_ptr(const unique_ptr&lt;Y, D&gt;&amp; r) = delete;
-template &lt;class Y, class D&gt; shared_ptr&amp; operator=(const unique_ptr&lt;Y, D&gt;&amp; r) = delete;
-</pre></blockquote>
-
-<p>
-I believe that this is unnecessary now that "rvalue references v2"
-prevents rvalue references from binding to lvalues, and I didn't
-see a Library Issue tracking this.
-</p>
-
-<p><i>[
-2010-02-12 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Strike from 20.8.1.2 [unique.ptr.single]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class D = default_delete&lt;T&gt;&gt; class unique_ptr {
-  ...
-  unique_ptr(const unique_ptr&amp;) = delete;
-  <del>template &lt;class U, class E&gt; unique_ptr(const unique_ptr&lt;U, E&gt;&amp;) = delete;</del>
-  unique_ptr&amp; operator=(const unique_ptr&amp;) = delete;
-  <del>template &lt;class U, class E&gt; unique_ptr&amp; operator=(const unique_ptr&lt;U, E&gt;&amp;) = delete;</del>
-};
-</pre></blockquote>
-
-<p>
-Strike from 20.8.2.2 [util.smartptr.shared]:
-</p>
-
-<blockquote><pre>
-template&lt;class T&gt; class shared_ptr {
-  ...
-  <del>template &lt;class Y, class D&gt; explicit shared_ptr(const unique_ptr&lt;Y, D&gt;&amp; r) = delete;</del>
-  ...
-  <del>template &lt;class Y, class D&gt; shared_ptr&amp; operator=(const unique_ptr&lt;Y, D&gt;&amp; r) = delete;</del>
-  ...
-};
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1304"></a>1304. Missing preconditions for <tt>shared_future</tt></h3>
-<p><b>Section:</b> 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.shared_future">issues</a> in [futures.shared_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The revised futures package in the current working paper simplified the
-<tt>is_ready/has_exception/has_value</tt> set of APIs, replacing them with a
-single 'valid' method.  This method is used in many places to signal pre- and
-post- conditions, but that edit is not complete.  Each method on a
-<tt>shared_future</tt> that requires an associated state should have a
-pre-condition that <tt>valid() == true</tt>.
-</p>
-
-<p><i>[
-2010-01-28 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:
-]</i></p>
-
-
-<blockquote><p>
-Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-</p></blockquote>
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert the following extra paragraphs:
-</p>
-
-<p>
-In 30.6.7 [futures.shared_future]
-</p>
-
-<blockquote><pre>
-shared_future();
-</pre>
-<blockquote>
-<p>
-4 <i>Effects:</i> constructs ...
-</p>
-
-<p><ins>
-<i>Postcondition:</i> <tt>valid() == false</tt>.
-</ins></p>
-
-<p><ins>
-<i>Throws:</i> nothing.
-</ins></p>
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-void wait() const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-22 <i>Effects:</i> if the associated ...
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-  bool wait_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-23 <i>Effects:</i> if the associated ...
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-  bool wait_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-25 <i>Effects:</i> blocks until ...
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1305"></a>1305. preconditions for <tt>atomic_future</tt></h3>
-<p><b>Section:</b> X [futures.atomic_future] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.atomic_future">issues</a> in [futures.atomic_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The revised futures package in the current working paper simplified the
-<tt>is_ready/has_exception/has_value</tt> set of APIs, replacing them with a
-single 'valid' method.  This method is used in many places to signal pre- and
-post- conditions, but that edit is not complete.  
-</p>
-
-<p>
-Atomic future retains the extended earlier API, and provides defined,
-synchronized behaviour for all calls.  However, some preconditions and throws
-clauses are missing, which can easily be built around the new <tt>valid()</tt>
-api.  Note that for consistency, I suggest <tt>is_ready/has_exception/has_value
-throw</tt> an exception if <tt>valid()</tt> is not <tt>true</tt>, rather than
-return <tt>false</tt>.  I think this is implied by the existing pre-condition on
-<tt>is_ready</tt>.
-</p>
-
-<p><i>[
-2010-01-23 See discussion starting with Message c++std-lib-26666.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3058.html">N3058</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Insert the following extra paragraphs:
-</p>
-
-<p>
-In X [futures.atomic_future]
-</p>
-
-<blockquote><pre>
-bool is_ready() const;
-</pre>
-<blockquote>
-<p>
-17 <i><del>Precondition</del> <ins>Requires</ins>:</i> <tt>valid() == true</tt>.
-</p>
-
-<p>
-18 <i>Returns:</i> <tt>true</tt> only if the associated state is ready.
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>future_error</tt> with an error condition of
-<tt>no_state</tt> if the precondition is not met.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-bool has_exception() const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-19 <i>Returns:</i> <tt>true</tt> only if the associated state is ready and
-contains an exception.
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>future_error</tt> with an error condition of
-<tt>no_state</tt> if the precondition is not met.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-bool has_value() const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-20 <i>Returns:</i> <tt>true</tt> only if the associated state is ready and
-contains a value.
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>future_error</tt> with an error condition of
-<tt>no_state</tt> if the precondition is not met.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-void wait() const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-22 <i>Effects:</i> blocks until ...
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>future_error</tt> with an error condition of
-<tt>no_state</tt> if the precondition is not met.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-  bool wait_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-23 <i>Effects:</i> blocks until ...
-</p>
-
-<p>
-24 <i>Returns:</i> <tt>true</tt> only if ...
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>future_error</tt> with an error condition of
-<tt>no_state</tt> if the precondition is not met.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-  bool wait_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) const;
-</pre>
-<blockquote>
-
-<p><ins>
-<i>Requires:</i> <tt>valid() == true</tt>.
-</ins></p>
-
-<p>
-25 <i>Effects:</i> blocks until ...
-</p>
-
-<p>
-26 <i>Returns:</i> <tt>true</tt> only if ...
-</p>
-
-<p><ins>
-<i>Throws:</i> <tt>future_error</tt> with an error condition of
-<tt>no_state</tt> if the precondition is not met.
-</ins></p>
-
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1306"></a>1306. <tt>pointer</tt> and <tt>const_pointer</tt> for <tt>&lt;array&gt;</tt></h3>
-<p><b>Section:</b> 23.3.2 [array] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2010-01-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#array">active issues</a> in [array].</p>
-<p><b>View all other</b> <a href="lwg-index.html#array">issues</a> in [array].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class <tt>&lt;array&gt;</tt> is the only sequence container class that has no
-types <tt>pointer</tt> and <tt>const_pointer</tt> defined. You might argue that
-this makes no sense because there is no allocator support, but on the other
-hand, types <tt>reference</tt> and <tt>const_reference</tt> are defined for
-<tt>array</tt>.
-</p>
-
-<p><i>[
-2010-02-11 Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to Class template array 23.3.2 [array]:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class T, size_t N &gt;
-  struct array {
-    ...
-    typedef T value_type;
-    <ins>typedef T * pointer;</ins>
-    <ins>typedef const T * const_pointer;</ins>
-    ...
-  };
-}
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1307"></a>1307. <tt>exception_ptr</tt> and <tt>allocator</tt> pointers don't understand !=</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-01-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current requirements for a conforming implementation of
-<tt>std::exception_ptr</tt> (18.8.5 [propagation]/1-6) does not clarify
-whether the expression
-</p>
-
-<blockquote><pre>
-e1 != e2
-e1 != nullptr
-</pre></blockquote>
-
-<p>
-with <tt>e1</tt> and <tt>e2</tt> being two values of type
-<tt>std::exception_ptr</tt> are supported or not. Reason for this oddity is that
-the concept <tt>EqualityComparable</tt> does not provide operator <tt>!=</tt>.
-</p>
-
-<p>
-For the same reason programmers working against the types <tt>X::pointer</tt>,
-<tt>X::const_pointer</tt>, <tt>X::void_pointer</tt>, and
-<tt>X::const_void_pointer</tt> of any allocator concept <tt>X</tt> (17.6.3.5 [allocator.requirements]/4 + Table 40) in a generic context can not rely
-on the availability of the != operation, which is rather unnatural and
-error-prone.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">N3073</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1309"></a>1309. Missing expressions for <tt>Move/CopyConstructible</tt></h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-02-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 33 &mdash; MoveConstructible requirements [moveconstructible] and
-Table 34 &mdash; CopyConstructible requirements [copyconstructible] support
-solely the following expression:
-</p>
-
-<blockquote><pre>
-T t(rv)
-</pre></blockquote>
-
-<p>
-where <tt>rv</tt> is defined to be as "non-const rvalue of type <tt>T</tt>"  and
-<tt>t</tt> as a "modifiable lvalue of type <tt>T</tt>" in 17.6.3.1 [utility.arg.requirements]/1.
-</p>
-
-<p>
-This causes two different defects:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-We cannot move/copy-initialize a <em>const</em> lvalue of type <tt>T</tt> as in:
-</p>
-
-<blockquote><pre>
-int get_i();
-
-const int i1(get_i());
-</pre></blockquote>
-
-<p>
-both in Table 33 and in Table 34.
-</p>
-</li>
-
-<li>
-<p>
-The single support for
-</p>
-
-<blockquote><pre>
-T t(rv)
-</pre></blockquote>
-
-<p>
-in case of <tt>CopyConstructible</tt> means that we cannot provide an
-lvalue as a source of a copy as in
-</p>
-
-<blockquote><pre>
-const int&amp; get_lri();
-
-int i2(get_lri());
-</pre></blockquote>
-</li>
-</ol>
-
-<p>
-I believe this second defect is due to the fact that this single
-expression supported <em>both</em> initialization situations according
-to the old (implicit) lvalue reference -&gt; rvalue reference
-conversion rules.
-</p>
-
-<p>
-Finally [copyconstructible] refers to some name <tt>u</tt> which is not part of
-the expression, and both [copyconstructible] and [moveconstructible] should
-support construction expressions from temporaries - this would be a stylistic
-consequence in the light of the new <tt>DefaultConstructible</tt> requirements
-and compared with existing requirements (see e.g. Container requirements or the
-output/forward iterator requirements)..
-</p>
-
-<p><i>[
-2010-02-09 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Reopened. The proposed wording of <a href="lwg-defects.html#1283">1283</a> has been
-merged here.
-]</i></p>
-
-
-<p><i>[
-2010-02-10 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-
-<li>
-<p>
-Change 17.6.3.1 [utility.arg.requirements]/1 as indicated: <i>[This change
-suggestion is motivated to make type descriptions clearer: First, <tt>a</tt>,
-<tt>b</tt>, and <tt>c</tt> <em>may</em> also be non-<tt>const T</tt>. Second, <tt>u</tt>
-is described in a manner consistent with the container requirements tables.]</i>
-</p>
-
-<blockquote><p>
-1 The template definitions in the C++ standard library refer to various named
-requirements whose details are set out in tables 31-38. In these tables,
-<tt>T</tt> is a<ins>n object or reference</ins> type to be supplied by a C++
-program instantiating a template; <tt>a</tt>, <tt>b</tt>, and <tt>c</tt> are
-values of type <ins>(possibly</ins> <tt>const<ins>)</ins> T</tt>; <tt>s</tt> and
-<tt>t</tt> are modifiable lvalues of type <tt>T</tt>; <tt>u</tt> <ins>denotes an
-identifier;</ins> <del>is a value of type (possibly <tt>const</tt>) <tt>T</tt>;
-and</del> <tt>rv</tt> is a<ins>n</ins> <del>non-const</del> rvalue of type
-<tt>T</tt><ins>; and <tt>v</tt> is an lvalue of type (possibly <tt>const</tt>)
-<tt>T</tt> or an rvalue of type <tt>const T</tt></ins>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-In 17.6.3.1 [utility.arg.requirements] Table 33 ([moveconstructible])
-change as indicated <i>[Note: The symbol <tt>u</tt> is defined to be either a
-const or a non-const value and is the right one we need here]</i>:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 33 &mdash; <tt>MoveConstructible</tt> requirements [moveconstructible]</caption>
-
-<tr>
-<th>Expression</th>
-<th>Post-condition</th>
-</tr>
-
-<tr>
-<td>
-<tt>T <del>t</del><ins>u</ins>(rv)<ins>;</ins></tt>
-</td>
-<td>
-<tt><del>t</del><ins>u</ins></tt> is equivalent
-to the value of <tt>rv</tt> before the construction
-</td>
-</tr>
-
-<tr>
-<td><ins><tt>T(rv)</tt></ins></td>
-<td><ins><tt>T(rv)</tt> is equivalent to the value of <tt>rv</tt> before the
-construction</ins></td>
-</tr>
-
-<tr>
-<td colspan="2">[<i>Note:</i>
-<del>There is no requirement on the value of <tt>rv</tt> after the
-construction.</del>
-<ins><tt>rv</tt> remains a valid object.  Its state is unspecified.</ins>
-&mdash; <i>end note</i>]</td>
-</tr>
-</table>
-</blockquote>
-</li>
-
-<li>
-<p>
-In 17.6.3.1 [utility.arg.requirements] Table 34 ([copyconstructible])
-change as indicated <i>[Note: The symbol <tt>u</tt> is defined to be either a
-const or a non-const value and is the right one we need here. The expressions
-using <tt>a</tt> are recommended to ensure that lvalues are supported as sources
-of the copy expression]</i>:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 34 &mdash; <tt>CopyConstructible</tt> requirements [copyconstructible]<br/>
-<ins>(in addition to <tt>MoveConstructible</tt>)</ins></caption>
-
-<tr>
-<th>Expression</th>
-<th>Post-condition</th>
-</tr>
-
-<tr>
-<td>
-<tt>T <del>t</del><ins>u</ins>(<del>r</del>v)<ins>;</ins></tt>
-</td>
-<td>
-the value of <tt><del>u</del><ins>v</ins></tt>
-is unchanged and is equivalent to <tt><del>t</del><ins>u</ins></tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>T(v)</tt></ins>
-</td>
-<td><ins>the value of <tt>v</tt> is unchanged and is equivalent to <tt>T(v)</tt></ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="2"><del>[<i>Note:</i> A type that satisfies the
-<tt>CopyConstructible</tt> requirements also satisfies the <tt>MoveConstructible</tt>
-requirements. &mdash; <i>end note</i>]</del></td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-In Table 35 &mdash; MoveAssignable requirements [moveassignable] change as
-indicated:
-</p>
-
-<blockquote>
-
-<table border="1">
-<caption>Table 35 &mdash; <tt>MoveAssignable</tt> requirements <b>[moveassignable]</b></caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Return value</th>
-<th>Post-condition</th>
-</tr>
-<tr>
-<td>
-<tt>t = rv</tt>
-</td>
-<td>
-<tt>T&amp;</tt>
-</td>
-<td>
-<tt>t</tt>
-</td>
-<td>
-<tt>t</tt> is equivalent to the value of <tt>rv</tt> before the assigment.
-</td>
-</tr>
-<tr>
-<td colspan="4">
-[<i>Note:</i>
-<del>There is no requirement on the value of <tt>rv</tt> after the
-assignment.</del>
-<ins><tt>rv</tt> remains a valid object.  Its state is unspecified.</ins>
-&mdash; <i>end note</i>]
-</td>
-</tr>
-</table>
-
-</blockquote>
-</li>
-
-<li>
-<p>
-In 17.6.3.1 [utility.arg.requirements] change Table 36 as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 36 &mdash; <tt>CopyAssignable</tt> requirements
-[copyassignable]<br/><ins>(in addition to <tt>MoveAssignable</tt>)</ins></caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Return value</th>
-<th>Post-condition</th>
-</tr>
-
-<tr>
-<td><tt>t = <del>u</del><ins>v</ins></tt></td>
-<td><tt>T&amp;</tt></td>
-<td><tt>t</tt></td>
-<td><tt>t</tt> is equivalent to <tt><del>u</del><ins>v</ins></tt>, the value of
-<tt><del>u</del><ins>v</ins></tt> is unchanged</td>
-</tr>
-
-<tr>
-<td colspan="4"><del>[<i>Note:</i> A type that satisfies the <tt>CopyAssignable</tt>
-requirements also satisfies the <tt>MoveAssignable</tt> requirements. &mdash;
-<i>end note</i>]</del></td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1310"></a>1310. <tt>forward_list splice_after</tt> from lvalues</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2010-02-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We've moved <a href="lwg-defects.html#1133">1133</a> to Tentatively Ready and I'm fine with that.
-</p>
-
-<p>
-<a href="lwg-defects.html#1133">1133</a> adds lvalue-references to the <tt>splice</tt> signatures for <tt>list</tt>.  So now
-<tt>list</tt> can <tt>splice</tt> from lvalue and rvalue lists (which was the intent of the
-original move papers btw).  During the discussion of this issue it was mentioned
-that if we want to give the same treatment to <tt>forward_list</tt>, that should be a
-separate issue.
-</p>
-
-<p>
-This is that separate issue.
-</p>
-
-<p>
-Consider the following case where you want to splice elements from one place in
-a <tt>forward_list</tt> to another.  Currently this must be coded like so:
-</p>
-
-<blockquote><pre>
-fl.splice_after(to_here, std::move(fl), from1, from2);
-</pre></blockquote>
-
-<p>
-This looks pretty shocking to me.  I would expect to be able to code instead:
-</p>
-
-<blockquote><pre>
-fl.splice_after(to_here, fl, from1, from2);
-</pre></blockquote>
-
-<p>
-but we currently don't allow it.
-</p>
-
-<p>
-When I say <tt>move(fl)</tt>, I consider that as saying that I don't care about
-the value of <tt>fl</tt> any more (until I assign it a new value).  But in the
-above example, this simply isn't true.  I do care about the value of <tt>fl</tt>
-after the move, and I'm not assigning it a new value.  I'm merely permuting its
-current value.
-</p>
-
-<p>
-I propose adding <tt>forward_list&amp;</tt> overloads to the 3
-<tt>splice_after</tt> members.  For consistency's sake (principal of least
-surprise) I'm also proposing to overload <tt>merge</tt> this way as well.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add to the synopsis of 23.3.4.1 [forwardlist.overview]:
-</p>
-
-<blockquote><pre>
-template &lt;class T, class Allocator = allocator&lt;T&gt; &gt;
-class forward_list {
-public:
-  ...
-  // <i>[forwardlist.ops], forward_list operations:</i>
-  <ins>void splice_after(const_iterator p, forward_list&amp; x);</ins>
-  void splice_after(const_iterator p, forward_list&amp;&amp; x);
-  <ins>void splice_after(const_iterator p, forward_list&amp; x, const_iterator i);</ins>
-  void splice_after(const_iterator p, forward_list&amp;&amp; x, const_iterator i);
-  <ins>void splice_after(const_iterator p, forward_list&amp; x,
-                    const_iterator first, const_iterator last);</ins>
-  void splice_after(const_iterator p, forward_list&amp;&amp; x,
-                    const_iterator first, const_iterator last);
-  ...
-  <ins>void merge(forward_list&amp; x);</ins>
-  void merge(forward_list&amp;&amp; x);
-  <ins>template &lt;class Compare&gt; void merge(forward_list&amp; x, Compare comp);</ins>
-  template &lt;class Compare&gt; void merge(forward_list&amp;&amp; x, Compare comp);
-  ...
-};
-</pre></blockquote>
-
-<p>
-Add to the signatures of 23.3.4.6 [forwardlist.ops]:
-</p>
-
-<blockquote>
-<pre>
-<ins>void splice_after(const_iterator p, forward_list&amp; x);</ins>
-void splice_after(const_iterator p, forward_list&amp;&amp; x);
-</pre>
-<blockquote>
-<p>1 ...</p>
-</blockquote>
-
-<pre>
-<ins>void splice_after(const_iterator p, forward_list&amp; x, const_iterator i);</ins>
-void splice_after(const_iterator p, forward_list&amp;&amp; x, const_iterator i);
-</pre>
-<blockquote>
-<p>4 ...</p>
-</blockquote>
-
-<pre>
-<ins>void splice_after(const_iterator p, forward_list&amp; x,
-                const_iterator first, const_iterator last);</ins>
-void splice_after(const_iterator p, forward_list&amp;&amp; x,
-                const_iterator first, const_iterator last);
-</pre>
-<blockquote>
-<p>7 ...</p>
-</blockquote>
-
-<pre>
-<ins>void merge(forward_list&amp; x);</ins>
-void merge(forward_list&amp;&amp; x);
-<ins>template &lt;class Compare&gt; void merge(forward_list&amp; x, Compare comp);</ins>
-template &lt;class Compare&gt; void merge(forward_list&amp;&amp; x, Compare comp);
-</pre>
-<blockquote>
-<p>16 ...</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1311"></a>1311. multi-pass property of Forward Iterator underspecified</h3>
-<p><b>Section:</b> 24.2.5 [forward.iterators] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forward.iterators">issues</a> in [forward.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following example demonstrates code that would meet the guarantees of a
-Forward Iterator, but only permits a single traversal of the underlying
-sequence:
-</p>
-
-<blockquote><pre>
-template&lt; typename ForwardIterator&gt;
-struct bad_iterator {
-  shared_ptr&lt;ForwardIterator&gt; impl;
-
-  bad_iterator( ForwardIterator iter ) {
-     : impl{new ForwardIterator{iter} } 
-     {
-  }
-
-  auto operator*() const -&gt; decltype(*ForwardIterator{}) {
-     return **impl;
-  }
-
-  auto operator-&gt;() const -&gt; ForwardIterator {
-     return *impl;
-  }
-
-  auto operator==(bad_iterator const &amp; rhs) const -&gt; bool {
-     return impl == rhs.impl;
-  }
-
-  auto operator++() -&gt; bad_iterator&amp; {
-     ++(*impl);
-     return *this;
-  }
-  // other operations as necessary...
-};
-</pre></blockquote>
-
-<p>
-Here, we use <tt>shared_ptr</tt> to wrap a forward iterator, so all iterators
-constructed from the same original iterator share the same 'value', and
-incrementing any one copy increments all others.
-</p>
-
-<p>
-There is a missing guarantee, expressed by the following code sequence
-</p>
-
-<blockquote><pre>
-FwdIter x = seq.begin();  // obtain forward iterator from a sequence
-FwdIter y = x;            // copy the iterator
-assert(x == y);           // iterators must be the same
-++x;                      // increment *just one* iterator
-assert(x != y);           // iterators *must now be different*
-++y;                      // increment the other iterator
-assert(x == y);           // now the iterators must be the same again
-</pre></blockquote>
-
-<p>
-That inequality in the middle is an essential guarantee.  Note that this list is
-simplified, as each assertion should also note that they refer to exactly the
-same element <tt>(&amp;*x == &amp;*y)</tt> but I am not complicating the issue
-with tests to support proxy iterators, or value types overloading unary
-<tt>operator+</tt>.
-</p>
-
-<p>
-I have not yet found a perverse example that can meet this additional
-constraint, and not meet the multi-pass expectations of a Forward Iterator
-without also violating other Forward Iterator requirements.
-</p>
-
-<p>
-Note that I do not yet have standard-ready wording to resolve the problem, as
-saying this neatly and succinctly in 'standardese' is more difficult.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="1312"></a>1312. <tt>vector::data</tt> no longer returns a raw pointer</h3>
-<p><b>Section:</b> 23.3.6.4 [vector.data] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The original intent of <tt>vector::data</tt> was to match <tt>array::data</tt>
-in providing a simple API with direct access to the contiguous buffer of
-elements that could be passed to a "classic" C API.  At some point, the return
-type became the '<tt>pointer</tt>' typedef, which is not derived from the
-<tt>allocator</tt> via allocator traits - it is no longer specified to precisely
-<tt>T *</tt>.  The return type of this function should be corrected to no longer
-use the typedef.
-</p>
-
-<p><i>[
-2010-02-10 Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-23.3.6 [vector]
-</p>
-
-<p>
-Update the class definition in p2:
-</p>
-
-<blockquote><pre>
-// 23.3.6.3 data access
-<del>pointer</del><ins>T *</ins> data();
-<del>const_pointer</del><ins>const T *</ins> data() const;
-</pre></blockquote>
-
-<p>
-23.3.6.4 [vector.data]
-</p>
-
-<p>
-Adjust signatures:
-</p>
-
-<blockquote><pre>
-<del>pointer</del><ins>T *</ins> data();
-<del>const_pointer</del><ins>const T *</ins> data() const;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1316"></a>1316. <tt>scoped_allocator_adaptor operator==</tt> has no definition</h3>
-<p><b>Section:</b> 20.13 [allocator.adaptor] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2009-02-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.adaptor">issues</a> in [allocator.adaptor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The WP 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">N3000</a>)
-contains these declarations:
-</p>
-
-<blockquote>
-<pre>template &lt;class OuterA1, class OuterA2, class... InnerAllocs&gt;
-  bool operator==(const scoped_allocator_adaptor&lt;OuterA1, InnerAllocs...&gt;&amp; a,
-                  const scoped_allocator_adaptor&lt;OuterA2, InnerAllocs...&gt;&amp; b);
-template &lt;class OuterA1, class OuterA2, class... InnerAllocs&gt;
-  bool operator!=(const scoped_allocator_adaptor&lt;OuterA1, InnerAllocs...&gt;&amp; a,
-                  const scoped_allocator_adaptor&lt;OuterA2, InnerAllocs...&gt;&amp; b);</pre>
-</blockquote>
-
-<p>
-But does not define what the behavior of these operators are.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a new section after 20.13.4 [allocator.adaptor.members]:
-</p>
-
-<blockquote>
-<p><b>Scoped allocator operators  [scoped.adaptor.operators]</b></p>
-
-<pre>template &lt;class OuterA1, class OuterA2, class... InnerAllocs&gt;
-  bool operator==(const scoped_allocator_adaptor&lt;OuterA1, InnerAllocs...&gt;&amp; a,
-                  const scoped_allocator_adaptor&lt;OuterA2, InnerAllocs...&gt;&amp; b);</pre>
-
-<blockquote><p>
-<i>Returns:</i> <code>a.outer_allocator() == b.outer_allocator()</code>
-if <code>sizeof...(InnerAllocs)</code> is zero; otherwise,
-<code>a.outer_allocator() == b.outer_allocator() &amp;&amp;
-a.inner_allocator() == b.inner_allocator()</code>.
-</p></blockquote>
-
-<pre>template &lt;class OuterA1, class OuterA2, class... InnerAllocs&gt;
-  bool operator!=(const scoped_allocator_adaptor&lt;OuterA1, InnerAllocs...&gt;&amp; a,
-                  const scoped_allocator_adaptor&lt;OuterA2, InnerAllocs...&gt;&amp; b);</pre>
-
-<blockquote><p>
-<i>Returns:</i> <code>!(a == b)</code>.
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1319"></a>1319. Containers should require an iterator that is at least a Forward Iterator</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-02-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements on container iterators are spelled out in
-23.2.1 [container.requirements.general], table 91.
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 91 &mdash; Container requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational semantics</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="5" align="center"><tt>...</tt></td>
-</tr>
-
-<tr>
-<td><tt>X::iterator</tt></td>
-<td>iterator type whose value type is <tt>T</tt></td>
-<td></td>
-<td>any iterator category except output iterator. Convertible to
-<tt>X::const_iterator</tt>.</td>
-<td>compile time</td>
-</tr>
-
-<tr>
-<td><tt>X::const_iterator</tt></td>
-<td>constant iterator type whose value type is <tt>T</tt></td>
-<td></td>
-<td>any iterator category except output iterator</td>
-<td>compile time</td>
-</tr>
-
-<tr>
-<td colspan="5" align="center"><tt>...</tt></td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-As input iterators do not have the multi-pass guarantee, they are not suitable
-for iterating over a container.  For example, taking two calls to
-<tt>begin()</tt>, incrementing either iterator might invalidate the other. 
-While data structures might be imagined where this behaviour produces
-interesting and useful results, it is very unlikely to meet the full set of
-requirements for a standard container.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<p>
-Daniel notes: I changed the currently suggested P/R slightly, because it is not robust in regard to new fundamental iterator
-catagories. I recommend to say instead that each container::iterator shall satisfy (and thus may refine) the forward 
-iterator requirements.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>Change Table 93 &mdash; Container requirements in [container.requirements.general] as indicated:
-<blockquote>
-<table border="1">
-<caption>Table 93 &mdash; Container requirements</caption>
-
-<tbody>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational<br/>semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="5" align="center"><tt>...</tt></td>
-</tr>
-
-<tr>
-<td><tt>X::iterator</tt></td>
-<td>iterator type<br/>whose value<br/>type is <tt>T</tt></td>
-<td></td>
-<td>any iterator category<br/><del>except output iterator</del><ins><br/>that 
-meets the forward iterator requirements</ins>. convertible<br/>to<br/><tt>X::const_iterator</tt></td>
-<td>compile time</td>
-</tr>
-
-<tr>
-<td><tt>X::const_iterator</tt></td>
-<td>constant iterator type<br/>whose value<br/>type is <tt>T</tt></td>
-<td></td>
-<td>any iterator category<br/><del>except output iterator</del><ins><br/>that 
-meets the forward iterator requirements</ins>.</td>
-<td>compile time</td>
-</tr>
-
-<tr>
-<td colspan="5" align="center"><tt>...</tt></td>
-</tr>
-
-</tbody></table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1321"></a>1321. <tt>scoped_allocator_adaptor construct</tt> and <tt>destroy</tt> don't
-use <tt>allocator_traits</tt></h3>
-<p><b>Section:</b> 20.13.4 [allocator.adaptor.members] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2010-02-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.adaptor.members">issues</a> in [allocator.adaptor.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.13.4 [allocator.adaptor.members] p8-9 says:
-</p>
-
-<blockquote>
-
-<pre>
-template &lt;class T, class... Args&gt;
-  void construct(T* p, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>
-8 <i>Effects:</i> let <tt><i>OUTERMOST</i>(x)</tt> be <tt>x</tt> if <tt>x</tt>
-does not have an <tt>outer_allocator()</tt> function and
-<tt><i>OUTERMOST</i>(x.outer_allocator())</tt> otherwise.
-</p>
-
-<ul>
-<li>
-If <tt>uses_allocator&lt;T, inner_allocator_type&gt;::value</tt> is
-<tt>false</tt> and <tt>is_constructible&lt;T, Args...&gt;::value</tt> is
-<tt>true</tt>, calls <tt><i>OUTERMOST</i>(*this).construct(p,
-std::forward&lt;Args&gt;(args)...)</tt>.
-</li>
-
-<li>
-Otherwise, if <tt>uses_allocator&lt;T, inner_allocator_type&gt;::value</tt> is
-<tt>true</tt> and <tt>is_constructible&lt;T, allocator_arg_t,
-inner_allocator_type, Args...&gt;::value</tt> is <tt>true</tt>, calls
-<tt><i>OUTERMOST</i>(*this).construct(p, allocator_arg,
-inner_allocator(),std::forward&lt;Args&gt;(args)...)</tt>.
-</li>
-
-<li>
-Otherwise, if <tt>uses_allocator&lt;T, inner_allocator_type&gt;::value</tt> is
-<tt>true</tt> and <tt>is_constructible&lt;T, Args...,
-inner_allocator_type&gt;::value</tt> is <tt>true</tt>, calls
-<tt><i>OUTERMOST</i>(*this).construct(p, std::forward&lt;Args&gt;(args)...,
-inner_allocator())</tt>.
-</li>
-
-<li>
-Otherwise, the program is ill-formed. [<i>Note:</i> an error will result if
-<tt>uses_allocator</tt> evaluates to <tt>true</tt> but the specific constructor
-does not take an allocator. This definition prevents a silent failure to pass an
-inner allocator to a contained element. &mdash; <i>end note</i>]
-</li>
-</ul>
-
-</blockquote>
-
-<pre>
-template &lt;class T&gt;
-  void destroy(T* p);
-</pre>
-<blockquote><p>
-9 <i>Effects:</i> calls <tt>outer_allocator().destroy(p)</tt>.
-</p></blockquote>
-
-</blockquote>
-
-<p>
-In all other calls where applicable <tt>scoped_allocator_adaptor</tt> does not
-call members of an allocator directly, but rather does so indirectly via
-<tt>allocator_traits</tt>.  For example:
-</p>
-
-<blockquote>
-<pre>
-size_type max_size() const;
-</pre>
-<blockquote><p>
-7 <i>Returns:</i>
-<tt><b>allocator_traits&lt;OuterAlloc&gt;::</b>max_size(outer_allocator())</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-Indeed, without the indirection through <tt>allocator_traits</tt> the
-definitions for <tt>construct</tt> and <tt>destroy</tt> are likely to fail at
-compile time since the <tt>outer_allocator()</tt> may not have the members
-<tt>construct</tt> and <tt>destroy</tt>.
-</p>
-
-<p><i>[
-The proposed wording is a product of Pablo, Daniel and Howard.
-]</i></p>
-
-
-<p><i>[
-2010 Pittsburgh:  Moved to NAD Editorial.  Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3059.pdf">N3059</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.13.4 [allocator.adaptor.members] move and change p8
-as indicated, and change p9 as indicated:
-</p>
-
-<blockquote>
-
-<p>
-<ins>Let <tt><i>OUTERMOST(x)</i></tt> be <tt><i>x</i></tt> if <tt><i>x</i></tt>
-does not have an <tt>outer_allocator()</tt> <ins>member</ins> function and
-<tt><i>OUTERMOST(x.outer_allocator())</i></tt> otherwise. Let
-<tt><i>OUTERMOST_ALLOC_TRAITS(x)</i></tt> be
-<tt>allocator_traits&lt;decltype(<i>OUTERMOST(x)</i>)&gt;</tt>.
-[<i>Note:</i> <tt><i>OUTERMOST(x)</i></tt> and
-<tt><i>OUTERMOST_ALLOC_TRAITS(x)</i></tt> are recursive operations.  It is
-incumbent upon the definition of <tt>outer_allocator()</tt> to ensure that the
-recursion terminates.  It <em>will</em> terminate for all instantiations
-of <tt>scoped_allocator_adaptor</tt>. &mdash; <i>end note</i>]
-</ins>
-</p>
-
-<pre>
-template &lt;class T, class... Args&gt;
-  void construct(T* p, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-
-<p>
-8 <i>Effects:</i> <del>let <tt><i>OUTERMOST(x)</i></tt> be <tt><i>x</i></tt> if
-<tt><i>x</i></tt> does not have an <tt>outer_allocator()</tt> function and
-<tt><i>OUTERMOST(x.outer_allocator())</i></tt> otherwise.</del>
-</p>
-
-<ul>
-<li>
-If <tt>uses_allocator&lt;T, inner_allocator_type&gt;::value</tt> is
-<tt>false</tt> and <tt>is_constructible&lt;T, Args...&gt;::value</tt> is
-<tt>true</tt>, calls <tt><del><i>OUTERMOST(*this)</i>.</del>
-<ins><i>OUTERMOST_ALLOC_TRAITS(outer_allocator())</i>::</ins>construct(
-<ins><i>OUTERMOST(outer_allocator())</i>,</ins> p,
-std::forward&lt;Args&gt;(args)... )</tt>.
-</li>
-
-<li>
-Otherwise, if <tt>uses_allocator&lt;T, inner_allocator_type&gt;::value</tt> is
-<tt>true</tt> and <tt>is_constructible&lt;T, allocator_arg_t,
-inner_allocator_type, Args...&gt;::value</tt> is <tt>true</tt>, calls
-<tt><del><i>OUTERMOST(*this)</i>.</del>
-<ins><i>OUTERMOST_ALLOC_TRAITS(outer_allocator())</i>::</ins>construct(
-<ins><i>OUTERMOST(outer_allocator())</i>,</ins> p, allocator_arg,
-inner_allocator(), std::forward&lt;Args&gt;(args)... )</tt>.
-</li>
-
-<li>
-Otherwise, if <tt>uses_allocator&lt;T, inner_allocator_type&gt;::value</tt> is
-<tt>true</tt> and <tt>is_constructible&lt;T, Args...,
-inner_allocator_type&gt;::value</tt> is <tt>true</tt>, calls
-<tt><del><i>OUTERMOST(*this)</i>.</del>
-<ins><i>OUTERMOST_ALLOC_TRAITS(outer_allocator())</i>::</ins>construct(
-<ins><i>OUTERMOST(outer_allocator())</i>,</ins> p,
-std::forward&lt;Args&gt;(args)..., inner_allocator() )</tt>.
-</li>
-
-<li>
-Otherwise, the program is ill-formed. [<i>Note:</i> an error will result if
-<tt>uses_allocator</tt> evaluates to <tt>true</tt> but the specific constructor
-does not take an allocator. This definition prevents a silent failure to pass an
-inner allocator to a contained element. &mdash; <i>end note</i>]
-</li>
-</ul>
-
-</blockquote>
-
-<pre>
-template &lt;class T&gt;
-  void destroy(T* p);
-</pre>
-<blockquote><p>
-9 <i>Effects:</i> calls <tt><del>outer_allocator().</del>
-<ins><i>OUTERMOST_ALLOC_TRAITS(outer_allocator())</i>::</ins>destroy(
-<ins><i>OUTERMOST(outer_allocator())</i>,</ins> p)</tt>.
-</p></blockquote>
-
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1322"></a>1322. Explicit <tt>CopyConstructible</tt> requirements are insufficient</h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-02-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-With the acceptance of library defect <a href="lwg-closed.html#822">822</a> only
-direct-initialization is supported, and not copy-initialization in the
-requirement sets <tt>MoveConstructible</tt> and <tt>CopyConstructible</tt>. This
-is usually a good thing, if only the library implementation needs to obey these
-restrictions, but the Empire strikes back quickly:
-</p>
-
-<ol>
-<li>
-<p>
-<em>Affects user-code</em>: <tt>std::exception_ptr</tt> is defined purely via
-requirements, among them <tt>CopyConstructible</tt>. A strict reading of the
-standard would make implementations conforming where <tt>std::exception_ptr</tt>
-has an explicit copy-c'tor and user-code must code defensively. This is a very
-unwanted effect for such an important component like
-<tt>std::exception_ptr</tt>.
-</p>
-</li>
-
-<li>
-<p>
-<em>Wrong re-use</em>: Recently proposed requirement sets
-(<tt>NullablePointer</tt> as of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3025.html">N3025</a>,
-Hash) or cleanup of existing requirement sets (e.g. iterator requirements as of
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3046.html">N3046</a>)
-tend to reuse existing requirement sets, so reusing <tt>CopyConstructible</tt>
-is attempting, even in cases, where the intend is to support copy-initialization
-as well.
-</p>
-</li>
-
-<li>
-<p>
-<em>Inconsistency</em>: The current iterator requirements set Table 102 (output
-iterator requirements) and Table 103 (forward iterator requirements) demonstrate
-quite clearly a strong divergence of copy-semantics: The specified semantics of
-</p>
-
-<blockquote><pre>
-X u(a);
-X u = a;
-</pre></blockquote>
-
-<p>
-are underspecified compared to the most recent clarifications of the
-<tt>CopyConstructible</tt> requirements, c.f. issue <a href="lwg-defects.html#1309">1309</a> which is
-very unsatisfactory. This will become worse for each further issue that involves
-the <tt>CopyConstructible</tt> specification (for possible directions see <a href="lwg-active.html#1173">1173</a>).
-</p>
-</li>
-</ol>
-
-<p>
-The suggested resolution is to define two further requirements
-<tt>implicit-MoveConstructible</tt> and <tt>implicit-CopyConstructible</tt> (or
-any other reasonable name like <tt>MoveConvertible</tt> and
-<tt>CopyConvertible</tt>) each with a very succinct but precise meaning solving
-all three problems mentioned above.
-</p>
-
-<p><i>[Batavia: Resolved by accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3215.htm">n3215</a>.]</i></p>
-
-
-
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Add the following new table ?? after Table 34 &mdash; <tt>MoveConstructible</tt>
-requirements [moveconstructible]:
-</p>
-
-<blockquote>
-
-<table border="1">
-<caption><ins>Table ?? &mdash; <tt>Implicit MoveConstructible</tt> requirements
-[implicit.moveconstructible] (in addition to
-<tt>MoveConstructible</tt>)</ins></caption>
-
-<tr>
-<th><ins>Expression</ins></th>
-<th><ins>Operational Semantics</ins></th>
-</tr>
-
-<tr>
-<td><ins><tt>T u = rv;</tt></ins></td>
-<td><ins>Equivalent to: <tt>T u(rv);</tt></ins></td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Add the following new table ?? after Table 35 &mdash; <tt>CopyConstructible</tt>
-requirements [copyconstructible]:
-</p>
-
-<blockquote>
-
-<table border="1">
-<caption><ins>Table ?? &mdash; <tt>Implicit CopyConstructible</tt> requirements
-[implicit.copyconstructible] (in addition to
-<tt>CopyConstructible</tt>)</ins></caption>
-
-<tr>
-<th><ins>Expression</ins></th>
-<th><ins>Operational Semantics</ins></th>
-</tr>
-
-<tr>
-<td><ins><tt>T u = v;</tt></ins></td>
-<td><ins>Equivalent to: <tt>T u(v);</tt></ins></td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 17.6.3.3 [nullablepointer.requirements]/1 as follows:
-</p>
-
-<blockquote>
-<p>
-A <tt>NullablePointer</tt> type is a pointer-like type that supports null
-values. A type <tt>P</tt> meets the requirements of <tt>NullablePointer</tt> if:
-</p>
-
-<ul>
-<li>
-<tt>P</tt> satisfies the requirements of <tt>EqualityComparable</tt>,
-<tt>DefaultConstructible</tt>, <tt><ins>implicit</ins> CopyConstructible</tt>,
-<tt>CopyAssignable</tt>, and <tt>Destructible</tt>,
-</li>
-
-<li>[..]</li>
-</ul>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 17.6.3.4 [hash.requirements]/1 as indicated: <i>[explicit
-copy-constructible functors could not be provided as arguments
-to any algorithm that takes these by value. Also a typo is fixed.]</i>
-</p>
-
-<blockquote>
-<p>
-1 A type <tt>H</tt> meets the <i>Hash</i> requirements if:
-</p>
-<ul>
-<li>
-it is a function object type (20.8),
-</li>
-<li>
-it satis<ins>fies</ins><del>ifes</del> the requirements of
-<tt><ins>implicit</ins> CopyConstructible</tt> and <tt>Destructible</tt>
-(20.2.1),
-</li>
-<li>
-[..]
-</li>
-</ul>
-
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.10.1 [meta.rqmts]/1+2 as indicated:
-</p>
-
-<blockquote>
-<p>
-1 A <i>UnaryTypeTrait</i> describes a property of a type. It shall be a class
-template that takes one template type argument and, optionally, additional
-arguments that help define the property being described. It shall be
-<tt>DefaultConstructible</tt>, <tt><ins>implicit</ins> CopyConstructible</tt>,
-[..]
-</p>
-
-<p>
-2 A <tt>BinaryTypeTrait</tt> describes a relationship between two types. It
-shall be a class template that takes two template type arguments and,
-optionally, additional arguments that help define the relationship being
-described. It shall be <tt>DefaultConstructible</tt>,
-<tt><ins>implicit </ins>CopyConstructible</tt>, and [..]
-</p>
-
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.9.2 [func.require]/4 as indicated: <i>[explicit
-copy-constructible functors could not be provided as arguments to any algorithm
-that takes these by value]</i>
-</p>
-
-<blockquote><p>
-4 Every call wrapper (20.8.1) shall be <tt><ins>implicit</ins>
-MoveConstructible</tt>. A simple call wrapper is a call wrapper that is
-<tt><ins>implicit</ins> CopyConstructible</tt> and <tt>CopyAssignable</tt> and
-whose copy constructor, move constructor, and assignment operator do not throw
-exceptions. [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.4 [refwrap]/1 as indicated:
-</p>
-
-<blockquote><p>
-1 <tt>reference_wrapper&lt;T&gt;</tt> is a<ins>n <tt>implicit</tt></ins>
-<tt>CopyConstructible</tt> and <tt>CopyAssignable</tt> wrapper around a
-reference to an object or function of type <tt>T</tt>.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.9.10.3 [func.bind.bind]/5+9 as indicated:
-</p>
-
-<blockquote>
-<p>
-5 <i>Remarks:</i> The return type shall satisfy the requirements of
-<tt><ins>implicit</ins> MoveConstructible</tt>. If all of <tt>FD</tt> and
-<tt>TiD</tt> satisfy the requirements of <tt>CopyConstructible</tt>, then the
-return type shall satisfy the requirements of <tt><ins>implicit</ins>
-CopyConstructible</tt>. [<i>Note:</i> this implies that all of <tt>FD</tt> and
-<tt>TiD</tt> are <tt>MoveConstructible</tt>. &mdash; <i>end note</i>]
-</p>
-
-<p>
-[..]
-</p>
-
-<p>
-9 <i>Remarks:</i> The return type shall satisfy the requirements of
-<tt><ins>implicit</ins> MoveConstructible</tt>. If all of <tt>FD</tt> and
-<tt>TiD</tt> satisfy the requirements of <tt>CopyConstructible</tt>, then the
-return type shall satisfy the requirements of <tt><ins>implicit</ins>
-CopyConstructible</tt>. [<i>Note:</i> this implies that all of <tt>FD</tt> and
-<tt>TiD</tt> are <tt>MoveConstructible</tt>. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.9.10.4 [func.bind.place] as indicated:
-</p>
-
-<blockquote><p>
-1 All placeholder types shall be <tt>DefaultConstructible</tt> and
-<tt><ins>implicit</ins> CopyConstructible</tt>, and [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.1 [unique.ptr]/5 as indicated:
-</p>
-
-<blockquote><p>
-5 Each object of a type <tt>U</tt> instantiated form the <tt>unique_ptr</tt>
-template specified in this subclause has the strict ownership semantics,
-specified above, of a unique pointer. In partial satisfaction of these
-semantics, each such <tt>U</tt> is <tt><ins>implicit</ins>
-MoveConstructible</tt> and <tt>MoveAssignable</tt>, but is not
-<tt>CopyConstructible</tt> nor <tt>CopyAssignable</tt>. The template parameter
-<tt>T</tt> of <tt>unique_ptr</tt> may be an incomplete type.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.2.2 [util.smartptr.shared]/2 as indicated:
-</p>
-
-<blockquote><p>
-2 Specializations of <tt>shared_ptr</tt> shall be
-<tt><ins>implicit</ins> CopyConstructible</tt>, <tt>CopyAssignable</tt>, and
-<tt>LessThanComparable</tt>, [..]
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 20.8.2.3 [util.smartptr.weak]/2 as indicated:
-</p>
-
-<blockquote><p>
-2 Specializations of <tt>weak_ptr</tt> shall be <tt><ins>implicit</ins>
-CopyConstructible</tt> and <tt>CopyAssignable</tt>, allowing their use in
-standard containers. The template parameter <tt>T</tt> of <tt>weak_ptr</tt> may
-be an incomplete type.
-</p></blockquote>
-</li>
-
-<li>
-<p>
-Change 24.2.2 [iterator.iterators]/2 as indicated: <i>[This fixes a
-defect in the Iterator requirements. None of the usual algorithms accepting
-iterators would be usable with iterators with explicit copy-constructors]</i>
-</p>
-
-<blockquote>
-<p>
-2 A type <tt>X</tt> satisfies the Iterator requirements if:
-</p>
-
-<ul>
-<li>
-<tt>X</tt> satisfies the <tt><ins>implicit</ins> CopyConstructible</tt>,
-<tt>CopyAssignable</tt>, and <tt>Destructible</tt> requirements (20.2.1)
-and lvalues of type <tt>X</tt> are swappable (20.2.2), and [..]
-</li>
-<li>...</li>
-</ul>
-
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change X [auto.ptr]/3 as indicated:
-</p>
-
-<blockquote><p>
-3 [..] Instances of <tt>auto_ptr</tt> meet the requirements of
-<tt><ins>implicit</ins> MoveConstructible</tt> and <tt>MoveAssignable</tt>, but
-do not meet the requirements of <tt>CopyConstructible</tt> and
-<tt>CopyAssignable</tt>. &mdash; <i>end note</i>]
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1323"></a>1323. <tt>basic_string::replace</tt> should use <tt>const_iterator</tt></h3>
-<p><b>Section:</b> 21.4.6.6 [string::replace] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-02-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string::replace">issues</a> in [string::replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In contrast to all library usages of purely positional iterator values several
-overloads of <tt>std::basic_string::replace</tt> still use iterator instead of
-<tt>const_iterator</tt> arguments. The paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3021.pdf">N3021</a>
-quite nicely visualizes the purely positional responsibilities of the function
-arguments.
-</p>
-
-<p>
-This should be fixed to make the library consistent, the proposed changes are
-quite mechanic.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-
-<li>
-<p>
-In 21.4 [basic.string], class template <tt>basic_string</tt> synopsis
-change as indicated:
-</p>
-
-<blockquote><pre>
-// 21.4.6 modifiers:
-...
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                      const basic_string&amp; str);
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                      const charT* s, size_type n);
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                      const charT* s);
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                      size_type n, charT c);
-template&lt;class InputIterator&gt;
-  basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                        InputIterator j1, InputIterator j2);
-basic_string&amp; replace(<ins>const_</ins>iterator, <ins>const_</ins>iterator,
-                      initializer_list&lt;charT&gt;);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 21.4.6.6 [string::replace] before p.18, change the following signatures
-as indicated:
-</p>
-
-<blockquote><pre>
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2, const basic_string&amp; str);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 21.4.6.6 [string::replace] before p.21, change the following signatures
-as indicated:
-</p>
-
-<blockquote><pre>
-basic_string&amp;
-  replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2, const charT* s, size_type n);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 21.4.6.6 [string::replace] before p.24, change the following signatures
-as indicated:
-</p>
-
-<blockquote><pre>
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2, const charT* s);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 21.4.6.6 [string::replace] before p.27, change the following signatures
-as indicated:
-</p>
-
-<blockquote><pre>
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2, size_type n,
-                      charT c);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 21.4.6.6 [string::replace] before p.30, change the following signatures
-as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class InputIterator&gt;
-  basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                        InputIterator j1, InputIterator j2);
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-In 21.4.6.6 [string::replace] before p.33, change the following signatures
-as indicated:
-</p>
-
-<blockquote><pre>
-basic_string&amp; replace(<ins>const_</ins>iterator i1, <ins>const_</ins>iterator i2,
-                      initializer_list&lt;charT&gt; il);
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1324"></a>1324. Still too many implicit conversions for <tt>pair</tt> and  <tt>tuple</tt></h3>
-<p><b>Section:</b> 20.3.2 [pairs.pair], 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-03-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs.pair">issues</a> in [pairs.pair].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In analogy to library defect <a href="lwg-defects.html#811">811</a>, <tt>tuple</tt>'s variadic constructor
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-explicit tuple(UTypes&amp;&amp;... u);
-</pre></blockquote>
-
-<p>
-creates the same problem as pair:
-</p>
-
-<blockquote><pre>
-#include &lt;tuple&gt;
-
-int main()
-{
-  std::tuple&lt;char*&gt; p(0);
-}
-</pre></blockquote>
-
-<p>
-produces a similar compile error for a recent gcc implementation.
-</p>
-
-<p>
-I suggest to follow the same resolution path as has been applied to
-<tt>pair</tt>'s corresponding c'tor, that is require that these c'tors should
-not participate in overload resolution, if the arguments are not implicitly
-convertible to the element types.
-</p>
-
-<p>
-Further-on both <tt>pair</tt> and <tt>tuple</tt> provide converting constructors
-from different <tt>pairs</tt>/<tt>tuples</tt> that should be not available, if
-the corresponding element types are not implicitly convertible. It seems
-astonishing that in the following example
-</p>
-
-<blockquote><pre>
-struct A {
-  explicit A(int);
-};
-
-A  a = 1; <span style="color:#C80000">// Error</span>
-
-std::tuple&lt;A&gt; ta = std::make_tuple(1); <span style="color:#C80000">// # OK?</span>
-</pre></blockquote>
-
-<p>
-the initialization marked with # could be well-formed.
-</p>
-
-<p><i>[
-Only constraints on constructors are suggested. Adding similar constraints on
-assignment operators is considered as QoI, because the assigments wouldn't be
-well-formed anyway.
-]</i></p>
-
-
-<ol>
-
-<li>
-<p>
-Following 20.3.2 [pairs.pair]/5 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair(const pair&lt;U, V&gt;&amp; p);
-</pre>
-
-<blockquote>
-<p>
-5 <i>Effects:</i> Initializes members from the corresponding members of the
-argument<del>, performing implicit conversions as needed</del>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless <tt>U</tt> is implicitly convertible to <tt>first_type</tt>
-and <tt>V</tt> is implicitly convertible to <tt>second_type</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Following 20.3.2 [pairs.pair]/6 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair(pair&lt;U, V&gt;&amp;&amp; p);
-</pre>
-
-<blockquote>
-<p>
-6 <i>Effects:</i> The constructor initializes <tt>first</tt> with
-<tt>std::move(p.first)</tt> and second with <tt>std::move(p.second)</tt>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless <tt>U</tt> is implicitly convertible to <tt>first_type</tt>
-and <tt>V</tt> is implicitly convertible to <tt>second_type</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Following 20.4.2.1 [tuple.cnstr]/7 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-explicit tuple(UTypes&amp;&amp;... u);
-</pre>
-
-<blockquote>
-<p>
-6 <i>Requires:</i> Each type in <tt>Types</tt> shall satisfy the requirements of
-<tt>MoveConstructible</tt> (Table 33) from the corresponding type in
-<tt>UTypes</tt>. <tt>sizeof...(Types) == sizeof...(UTypes)</tt>.
-</p>
-
-<p>
-7 <i>Effects:</i> Initializes the elements in the <tt>tuple</tt> with the
-corresponding value in <tt>std::forward&lt;UTypes&gt;(u)</tt>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless each type in <tt>UTypes</tt> is implicitly convertible to its
-corresponding type in <tt>Types</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Following 20.4.2.1 [tuple.cnstr]/13 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt; tuple(const tuple&lt;UTypes...&gt;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-12 <i>Requires:</i> Each type in <tt>Types</tt> shall be constructible from the
-corresponding type in <tt>UTypes</tt>. <tt>sizeof...(Types) ==
-sizeof...(UTypes)</tt>.
-</p>
-
-<p>
-13 <i>Effects:</i> Constructs each element of <tt>*this</tt> with the
-corresponding element of <tt>u</tt>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless each type in <tt>UTypes</tt> is implicitly convertible to its
-corresponding type in <tt>Types</tt>.</ins>
-</p>
-
-<p>
-14 [<i>Note:</i> <tt>enable_if</tt> can be used to make the converting
-constructor and assignment operator exist only in the cases where the source and
-target have the same number of elements. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Following 20.4.2.1 [tuple.cnstr]/16 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt; tuple(tuple&lt;UTypes...&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-15 <i>Requires:</i> Each type in <tt>Types</tt> shall shall satisfy the
-requirements of <tt>MoveConstructible</tt> (Table 33) from the corresponding
-type in <tt>UTypes</tt>. <tt>sizeof...(Types) == sizeof...(UTypes)</tt>.
-</p>
-
-<p>
-16 <i>Effects:</i> Move-constructs each element of <tt>*this</tt> with the
-corresponding element of <tt>u</tt>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless each type in <tt>UTypes</tt> is implicitly convertible to its
-corresponding type in <tt>Types</tt>.</ins>
-</p>
-
-<p>
-[<i>Note:</i> <tt>enable_if</tt> can be used to make the converting constructor
-and assignment operator exist only in the cases where the source and target have
-the same number of elements. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Following 20.4.2.1 [tuple.cnstr]/18 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template &lt;class U1, class U2&gt; tuple(const pair&lt;U1, U2&gt;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-17 <i>Requires:</i> The first type in <tt>Types</tt> shall be constructible from
-<tt>U1</tt> and the second type in <tt>Types</tt> shall be constructible from
-<tt>U2</tt>. <tt>sizeof...(Types) == 2</tt>.
-</p>
-
-<p>
-18 <i>Effects:</i> Constructs the first element with <tt>u.first</tt> and the
-second element with <tt>u.second</tt>.
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless <tt>U1</tt> is implicitly convertible to the first type in
-<tt>Types</tt> and <tt>U2</tt> is implicitly convertible to the second type in
-<tt>Types</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Following 20.4.2.1 [tuple.cnstr]/20 add a new Remarks element:
-</p>
-
-<blockquote><pre>
-template &lt;class U1, class U2&gt; tuple(pair&lt;U1, U2&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-19 <i>Requires:</i> The first type in <tt>Types</tt> shall shall satisfy the
-requirements of <tt>MoveConstructible</tt>(Table 33) from <tt>U1</tt> and the
-second type in <tt>Types</tt> shall be move-constructible from <tt>U2</tt>.
-<tt>sizeof...(Types) == 2</tt>.
-</p>
-
-<p>
-20 <i>Effects:</i> Constructs the first element with <tt>std::move(u.first)</tt>
-and the second element with <tt>std::move(u.second)</tt>
-</p>
-
-<p>
-<ins><i>Remarks:</i> This constructor shall not participate in overload
-resolution unless <tt>U1</tt> is implicitly convertible to the first type in
-<tt>Types</tt> and <tt>U2</tt> is implicitly convertible to the second type in
-<tt>Types</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> 
-would solve this issue.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1325"></a>1325. <tt>bitset</tt></h3>
-<p><b>Section:</b> 20.6.1 [bitset.cons] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Christopher Jefferson <b>Opened:</b> 2010-03-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitset.cons">issues</a> in [bitset.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As mentioned on the boost mailing list:
-</p>
-
-<p>
-The following code, valid in C++03, is broken in C++0x due to ambiguity
-between the "<tt>unsigned long long</tt>" and "<tt>char*</tt>"
-constructors.
-</p>
-
-<blockquote><pre>
-#include &lt;bitset&gt;
-std::bitset&lt;10&gt; b(0);
-</pre></blockquote>
-
-<p><i>[
-The proposed resolution has been reviewed by Stephan T. Lavavej.
-]</i></p>
-
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<p>
-The proposed resolution has two problems:
-</p>
-<ul>
-<li>
-<p>it fails to provide support for non-terminated strings, which
-could be easily added and constitutes an important use-case. For
-example, the following code would invoke UB with the current
-P/R:</p>
-<blockquote>
-<pre>
-char s[4] = { '0', '1', '0', '1' }; // notice: not null-terminated!
-bitset&lt;4&gt; b(s, 0, 4);
-</pre></blockquote>
-because it requires the evaluation (under the as-if rule, to be fair,
-but it doesn't matter) of <tt>basic_string&lt;char&gt;(s)</tt>
-</li>
-<li>
-<p>it promotes a consistency between the two <tt>bitset</tt>
-constructors that take a <tt>const std::string&amp;</tt> and a
-<tt>const char*</tt>, respectively, while practice established by
-<tt>std::basic_string</tt> would recommend a different set of
-parameters. In particular, the constructor of
-<tt>std::basic_string</tt> that takes a <tt>const char*</tt> does
-not have a <tt>pos</tt> parameter</p>
-</li>
-</ul>
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording provided by Alberto 
-Ganesh Babati after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<ol>
-<li>In the synopsis of header <tt>&lt;bitset&gt;</tt> in
-20.6 [template.bitset]/1, replace the fourth bitset constructor:
-<blockquote>
-<pre>
-<del>explicit bitset(const char *str);</del>
-<ins>template &lt;class charT&gt;
-  explicit bitset(
-    const charT *str,
-    typename basic_string&lt;charT&gt;::size_type n = basic_string&lt;charT&gt;::npos,
-    charT zero = charT('0'), charT one = charT('1'));</ins>
-</pre></blockquote>
-</li>
-<li>In 20.6.1 [bitset.cons]/8:
-<blockquote>
-<pre>
-<del>explicit bitset(const char *str);</del>
-<ins>template &lt;class charT&gt;
-explicit
-bitset(const charT *str,
-       typename basic_string&lt;charT&gt;::size_type n = basic_string&lt;charT&gt;::npos,
-       charT zero = charT('0'), charT one = charT('1'));</ins>
-</pre></blockquote>
-<p>
-Effects: Constructs an object of class
-<tt>bitset&lt;N&gt;</tt> as if by
-<del>bitset(string(str)).</del>
-</p>
-<blockquote><pre><ins>
-bitset(
-  n == basic_string&lt;charT&gt;::npos
-    ? basic_string&lt;charT&gt;(str)
-    : basic_string&lt;charT&gt;(str, n),
-  0, n, zero, one)
-</ins></pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1326"></a>1326. Missing&#47;wrong preconditions for <tt>pair</tt> and <tt>tuple</tt> functions</h3>
-<p><b>Section:</b> 20.3.2 [pairs.pair], 20.4.2.1 [tuple.cnstr] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-03-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs.pair">issues</a> in [pairs.pair].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are several constructors and creation functions of std::tuple
-that impose requirements on it's arguments, that are unnecessary
-restrictive and don't match the intention for the supported argument
-types. This is related to the fact that tuple is supposed to accept both
-object types and lvalue-references and the usual MoveConstructible and
-CopyConstructible requirements are bad descriptions for non-const
-references. Some examples:
-</p>
-
-<ol style="list-style-type:lower-alpha">
-<li>
-<p>
-20.4.2.1 [tuple.cnstr] before p.4 and p.8, resp.:
-</p>
-
-<blockquote><pre>
-explicit tuple(const Types&amp;...);
-</pre>
-<blockquote><p>
-4 <i>Requires:</i> Each type in <tt>Types</tt> shall be copy constructible.
-</p></blockquote>
-
-<pre>
-tuple(const tuple&amp; u) = default;
-</pre>
-<blockquote><p>
-8 <i>Requires:</i> Each type in <tt>Types</tt> shall satisfy the requirements of
-<tt>CopyConstructible</tt> (Table 34).
-</p></blockquote>
-</blockquote>
-
-<p>
-A tuple that contains lvalue-references to non-const can never
-satisfy the <tt>CopyConstructible</tt> requirements. <tt>CopyConstructible</tt>
-requirements <i>refine</i> the <tt>MoveConstructible</tt> requirements and
-this would require that these lvalue-references could bind
-rvalues. But the core language does not allow that. Even, if we
-would interpret that requirement as referring to the underlying
-non-reference type, this requirement would be wrong as well,
-because there is no reason to disallow a type such as
-</p>
-
-<blockquote><pre>
-struct NoMoveNoCopy {
-  NoMoveNoCopy(NoMoveNoCopy&amp;&amp;) = delete;
-  NoMoveNoCopy(const NoMoveNoCopy&amp;) = delete;
-  ...
-}:
-</pre></blockquote>
-
-<p>
-for the instantiation of <tt>std::tuple&lt;NoMoveNoCopy&amp;&gt;</tt> and
-that of it's copy constructor.
-</p>
-
-<p>
-A more reasonable requirement for this example would be to require that
-"<tt>is_constructible&lt;Ti, const Ti&amp;&gt;::value</tt> shall
-evaluate to true for all <tt>Ti</tt> in <tt>Types</tt>". In this case
-the special reference-folding and const-merging rules of references
-would make this well-formed in all cases. We could also add the further
-constraint "if <tt>Ti</tt> is an object type, it shall satisfy the
-<tt>CopyConstructible</tt> requirements", but this additional
-requirement seems not really to help here. Ignoring it would only mean
-that if a user would provide a curious object type <tt>C</tt> that
-satisfies the <tt>std::is_constructible&lt;C, const C&amp;&gt;</tt>
-test, but not the "<tt>C</tt> is <tt>CopyConstructible</tt>" test would
-produce a <tt>tuple&lt;C&gt;</tt> that does not satisfy the
-<tt>CopyConstructible</tt> requirements as well.
-</p>
-</li>
-
-<li>
-<p>
-20.4.2.1 [tuple.cnstr] before p.6 and p.10, resp.:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-explicit tuple(UTypes&amp;&amp;... u);
-</pre>
-
-<blockquote><p>
-6 <i>Requires:</i> Each type in <tt>Types</tt> shall satisfy the
-requirements of <tt>MoveConstructible</tt> (Table 33) from the
-corresponding type in <tt>UTypes</tt>. <tt>sizeof...(Types) ==
-sizeof...(UTypes)</tt>.
-</p></blockquote>
-
-<pre>
-tuple(tuple&amp;&amp; u);
-</pre>
-<blockquote><p>
-10 <i>Requires:</i> Each <tt>type</tt> in <tt>Types</tt> shall shall
-satisfy the requirements of <tt>MoveConstructible</tt> (Table 33).
-</p></blockquote>
-</blockquote>
-
-<p>
-We have a similar problem as in (a): Non-const lvalue-references
-are intended template arguments for <tt>std::tuple</tt>, but cannot satisfy
-the <tt>MoveConstructible</tt> requirements. In this case the correct
-requirements would be
-</p>
-
-<blockquote><p>
-<tt>is_constructible&lt;Ti, Ui&gt;::value</tt> shall evaluate to true
-for all <tt>Ti</tt> in <tt>Types</tt> and for all <tt>Ui</tt> in
-<tt>UTypes</tt>
-</p></blockquote>
-
-<p>
-and
-</p>
-
-<blockquote><p>
-<tt>is_constructible&lt;Ti, Ti&gt;::value</tt> shall evaluate to true
-for all <tt>Ti</tt> in <tt>Types</tt>
-</p></blockquote>
-
-<p>
-respectively.
-</p>
-</li>
-</ol>
-
-<p>
-Many <tt>std::pair</tt> member functions do not add proper requirements, e.g.
-the default c'tor does not require anything. This is corrected within the
-suggested resolution. Further-on the P/R has been adapted to the FCD numbering.
-</p>
-
-<p><i>[
-2010-03-25 Daniel updated wording:
-]</i></p>
-
-
-<blockquote><p>
-The issue became updated to fix some minor inconsistencies and to ensure a
-similarly required fix for <tt>std::pair</tt>, which has the same specification
-problem as <tt>std::tuple</tt>, since <tt>pair</tt> became extended to support
-reference members as well.
-</p></blockquote>
-
-<p><i>[Original proposed resolution:]</i></p>
-
-<ol>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair]/1 as indicated <i>[The changes for the effects
-elements are not normative changes, they just ensure
-harmonization with existing wording style]</i>:
-</p>
-
-<blockquote><pre>
-constexpr pair();
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>first_type</tt> and <tt>second_type</tt> shall satisfy
-the <tt>DefaultConstructible</tt> requirements.</ins>
-</p>
-
-<p>
-1 <i>Effects:</i> <ins>Value-initializes <tt>first</tt> and
-<tt>second</tt>.</ins><del>Initializes its members as if implemented: <tt>pair()
-: first(), second() { }</tt>.</del>
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair]/2 as indicated:
-</p>
-
-<blockquote><pre>
-pair(const T1&amp; x, const T2&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>is_constructible&lt;T1, const T1&amp;&gt;::value</tt>
-is <tt>true</tt> and <tt>is_constructible&lt;T2, const T2&amp;&gt;::value</tt>
-is <tt>true</tt>.</ins>
-</p>
-
-<p>
-2 <i>Effects:</i> The constructor initializes <tt>first</tt> with <tt>x</tt> and
-<tt>second</tt> with <tt>y</tt>.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair]/3 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair(U&amp;&amp; x, V&amp;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>is_constructible&lt;first_type, U&gt;::value</tt> is
-<tt>true</tt> and <tt>is_constructible&lt;second_type, V&gt;::value</tt> is
-<tt>true</tt>.</ins>
-</p>
-
-<p>
-3 <i>Effects:</i> The constructor initializes <tt>first</tt> with
-<tt>std::forward&lt;U&gt;(x)</tt> and <tt>second</tt> with
-<tt>std::forward&lt;V&gt;(y)</tt>.
-</p>
-
-<p>
-4 <i>Remarks:</i> If <tt>U</tt> is not implicitly convertible to
-<tt>first_type</tt> or <tt>V</tt> is not implicitly convertible to
-<tt>second_type</tt> this constructor shall not participate in overload
-resolution.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair]/5 as indicated <i>[The change in the effects
-element should be non-normatively and is in compatible to the change suggestion
-of <a href="lwg-defects.html#1324">1324</a>]</i>:
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair(const pair&lt;U, V&gt;&amp; p);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>is_constructible&lt;first_type, const
-U&amp;&gt;::value</tt> is <tt>true</tt> and <tt>is_constructible&lt;second_type,
-const V&amp;&gt;::value</tt> is <tt>true</tt>.</ins>
-</p>
-
-<p>
-5 <i>Effects:</i> Initializes members from the corresponding members of the
-argument<del>, performing implicit conversions as needed</del>.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair]/6 as indicated:
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair(pair&lt;U, V&gt;&amp;&amp; p);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>is_constructible&lt;first_type, U&gt;::value</tt> is
-<tt>true</tt> and <tt>is_constructible&lt;second_type, V&gt;::value</tt> is
-<tt>true</tt>.</ins>
-</p>
-
-<p>
-6 <i>Effects:</i> The constructor initializes <tt>first</tt> with
-<tt>std::<del>move</del><ins>forward&lt;U&gt;</ins>(p.first)</tt> and
-<tt>second</tt> with
-<tt>std::<del>move</del><ins>forward&lt;V&gt;</ins>(p.second)</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair]/7+8 as indicated [The deletion in the effects
-element should be non-normatively]:
-</p>
-
-<blockquote><pre>
-template&lt;class... Args1, class... Args2&gt;
-  pair(piecewise_construct_t,
-       tuple&lt;Args1...&gt; first_args, tuple&lt;Args2...&gt; second_args);
-</pre>
-
-<blockquote>
-<p>
-7 <i>Requires:</i> <ins><tt>is_constructible&lt;first_type,
-Args1...&gt;::value</tt> is <tt>true</tt> and
-<tt>is_constructible&lt;second_type, Args2...&gt;::value</tt> is
-<tt>true</tt>.</ins> <del>All the types in <tt>Args1</tt> and <tt>Args2</tt>
-shall be <tt>CopyConstructible</tt> (Table 35). <tt>T1</tt> shall be
-constructible from <tt>Args1</tt>. <tt>T2</tt> shall be constructible from
-<tt>Args2</tt>.</del>
-</p>
-
-<p>
-8 <i>Effects:</i> The constructor initializes <tt>first</tt> with arguments of
-types <tt>Args1...</tt> obtained by forwarding the elements of
-<tt>first_args</tt> and initializes <tt>second</tt> with arguments of types
-<tt>Args2...</tt> obtained by forwarding the elements of <tt>second_args</tt>.
-<del>(Here, forwarding an element <tt>x</tt> of type <tt>U</tt> within a
-<tt>tuple</tt> object means calling <tt>std::forward&lt;U&gt;(x)</tt>.)</del>
-This form of construction, whereby constructor arguments for <tt>first</tt> and
-<tt>second</tt> are each provided in a separate <tt>tuple</tt> object, is called
-piecewise construction.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.3.2 [pairs.pair] before 12 as indicated:
-</p>
-
-<blockquote><pre>
-pair&amp; operator=(pair&amp;&amp; p);
-</pre>
-
-<blockquote>
-<p>
-<ins><i>Requires:</i> <tt>first_type</tt> and <tt>second_type</tt> shall satisfy
-the <tt>MoveAssignable</tt> requirements.</ins>
-</p>
-
-<p>
-12 <i>Effects:</i> Assigns to <tt>first</tt> with <tt>std::move(p.first)</tt>
-and to <tt>second</tt> with <tt>std::move(p.second)</tt>.
-</p>
-
-<p>
-13 <i>Returns:</i> <tt>*this</tt>.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change [pairs.pair] before 14 as indicated: [The heterogeneous usage
-of MoveAssignable is actually not defined,
-but the library uses it at several places, so we follow this tradition
-until a better term has been agreed on. One
-alternative could be to write "first_type shall be assignable from an
-rvalue of U [..]"]
-</p>
-
-<blockquote><pre>
-template&lt;class U, class V&gt; pair&amp; operator=(pair&lt;U, V&gt;&amp;&amp; p);
-</pre>
-
-<blockquote>
-
-<p>
-<ins><i>Requires:</i> <tt>first_type</tt> shall be <tt>MoveAssignable</tt> from
-<tt>U</tt> and <tt>second_type</tt> shall be <tt>MoveAssignable</tt> from
-<tt>V</tt>.</ins>
-</p>
-
-<p>
-14 <i>Effects:</i> Assigns to <tt>first</tt> with <tt>std::move(p.first)</tt>
-and to <tt>second</tt> with <tt>std::move(p.second)</tt>.
-</p>
-
-<p>
-15 <i>Returns:</i> <tt>*this</tt>.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.4.2.1 [tuple.cnstr]/4+5 as indicated:
-</p>
-
-<blockquote><pre>
-explicit tuple(const Types&amp;...);
-</pre>
-
-<blockquote>
-<p>
-4 <i>Requires:</i> <ins><tt>is_constructible&lt;Ti, const
-Ti&amp;&gt;::value == true</tt> for e</ins><del>E</del>ach type
-<ins><tt>Ti</tt></ins> in <tt>Types</tt><del> shall be copy
-constructible</del>.
-</p>
-
-<p>
-5 <i>Effects:</i> <del>Copy i</del><ins>I</ins>nitializes each element with the
-value of the corresponding parameter.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.4.2.1 [tuple.cnstr]/6 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt;
-explicit tuple(UTypes&amp;&amp;... u);
-</pre>
-
-<blockquote>
-<p>
-6 <i>Requires:</i> <ins><tt>is_constructible&lt;Ti, Ui&gt;::value ==
-true</tt> for e</ins><del>E</del>ach type <ins><tt>Ti</tt></ins> in
-<tt>Types</tt> <del>shall satisfy the requirements of
-<tt>MoveConstructible</tt> (Table 33) from</del><ins>and for</ins> the
-corresponding type <ins><tt>Ui</tt></ins> in <tt>UTypes</tt>.
-<tt>sizeof...(Types) == sizeof...(UTypes)</tt>.
-</p>
-
-<p>
-7 <i>Effects:</i> Initializes the elements in the <tt>tuple</tt> with the
-corresponding value in <tt>std::forward&lt;UTypes&gt;(u)</tt>.
-</p>
-
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.4.2.1 [tuple.cnstr]/8+9 as indicated:
-</p>
-
-<blockquote><pre>
-tuple(const tuple&amp; u) = default;
-</pre>
-
-<blockquote>
-<p>
-8 <i>Requires:</i> <ins><tt>is_constructible&lt;Ti, const
-Ti&amp;&gt;::value == true</tt> for e</ins><del>E</del>ach type
-<ins><tt>Ti</tt></ins> in <tt>Types</tt><del> shall satisfy the
-requirements of <tt>CopyConstructible</tt>(Table 34)</del>.
-</p>
-
-<p>
-9 <i>Effects:</i> <ins>Initializes</ins><del>Copy constructs</del> each element
-of <tt>*this</tt> with the corresponding element of <tt>u</tt>.
-</p>
-
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.4.2.1 [tuple.cnstr]/10+11 as indicated:
-</p>
-
-<blockquote><pre>
-tuple(tuple&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-10 <i>Requires:</i> <ins>Let <tt>i</tt> be in <tt>[0, sizeof...(Types))</tt> and
-let <tt>Ti</tt> be the <tt>i</tt><sup><i>th</i></sup> type in <tt>Types</tt>.
-Then <tt>is_constructible&lt;Ti, Ti&gt;::value</tt> shall be <tt>true</tt> for
-all <tt>i</tt>.</ins> <del>Each type in <tt>Types</tt> shall shall satisfy the
-requirements of <tt>MoveConstructible</tt> (Table 34)</del>.
-</p>
-
-<p>
-11 <i>Effects:</i> <ins>For each <tt>Ti</tt> in <tt>Types</tt>, initializes the
-<tt>i</tt><sup><i>th</i></sup></ins> <del>Move-constructs each</del> element of
-<tt>*this</tt> with <del>the corresponding element of</del>
-<ins><tt>std::forward&lt;Ti&gt;(get&lt;i&gt;(</tt></ins><tt>u</tt><ins><tt>))</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.4.2.1 [tuple.cnstr]/15+16 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class... UTypes&gt; tuple(tuple&lt;UTypes...&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-15 <i>Requires:</i> <ins>Let <tt>i</tt> be in <tt>[0, sizeof...(Types))</tt>,
-<tt>Ti</tt> be the <tt>i</tt><sup><i>th</i></sup> type in <tt>Types</tt>, and
-<tt>Ui</tt> be the <tt>i</tt><sup><i>th</i></sup> type in <tt>UTypes</tt>. Then
-<tt>is_constructible&lt;Ti, Ui&gt;::value</tt> shall be <tt>true</tt> for all
-<tt>i</tt>.</ins> <del>Each type in <tt>Types</tt> shall shall satisfy the
-requirements of <tt>MoveConstructible</tt> (Table 34) from the corresponding
-type in <tt>UTypes</tt></del>. <tt>sizeof...(Types) == sizeof...(UTypes)</tt>.
-</p>
-
-<p>
-16 <i>Effects:</i> <ins>For each type <tt>Ti</tt>, initializes the
-<tt>i</tt><sup><i>th</i></sup></ins> <del>Move-constructs each</del> element of
-<tt>*this</tt> with <del>the corresponding element of</del>
-<ins><tt>std::forward&lt;Ui&gt;(get&lt;i&gt;(</tt></ins><tt>u</tt><ins><tt>))</tt></ins>.
-</p>
-
-</blockquote>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Change 20.4.2.1 [tuple.cnstr]/19+20 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class U1, class U2&gt; tuple(pair&lt;U1, U2&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-19 <i>Requires:</i> <ins><tt>is_constructible&lt;T1, U1&gt;::value ==
-true</tt> for <tt>t</tt></ins><del><tt>T</tt></del>he first type
-<ins><tt>T1</tt></ins> in <tt>Types</tt> <del>shall shall satisfy the
-requirements of <tt>MoveConstructible</tt>(Table 33) from
-<tt>U1</tt></del> and <ins><tt>is_constructible&lt;T2, U2&gt;::value ==
-true</tt> for</ins> the second type <ins><tt>T2</tt></ins> in
-<tt>Types</tt> <del>shall be move-constructible from <tt>U2</tt></del>.
-<tt>sizeof...(Types) == 2</tt>.
-</p>
-
-<p>
-20 <i>Effects:</i> <ins>Initializes</ins><del>Constructs</del> the first
-element with
-<tt>std::<ins>forward&lt;U1&gt;</ins><del>move</del>(u.first)</tt> and
-the second element with
-<tt>std::<ins>forward&lt;U2&gt;</ins><del>move</del>(u.second)</tt>.
-</p>
-
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change 20.4.2.4 [tuple.creation]/9-16 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class... TTypes, class... UTypes&gt;
-tuple&lt;TTypes..., UTypes...&gt; tuple_cat(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-9 <i>Requires:</i> <ins><tt>is_constructible&lt;Ti, const
-Ti&amp;&gt;::value == true</tt> for each type <tt>Ti</tt></ins><del>All
-the types</del> in <tt>TTypes</tt> <del>shall be
-<tt>CopyConstructible</tt> (Table 34)</del>.
-<ins><tt>is_constructible&lt;Ui, const Ui&amp;&gt;::value == true</tt>
-for each type <tt>Ui</tt></ins><del>All the types</del> in
-<tt>UTypes</tt> <del>shall be <tt>CopyConstructible</tt> (Table
-34)</del>.
-</p>
-
-<p>
-10 <i>Returns:</i> A <tt>tuple</tt> object constructed by
-<ins>initializing</ins><del>copy constructing</del> its first
-<tt>sizeof...(TTypes)</tt> elements from the corresponding elements of
-<tt>t</tt> and <ins>initializing</ins><del>copy constructing</del> its
-last <tt>sizeof...(UTypes)</tt> elements from the corresponding elements
-of <tt>u</tt>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class... TTypes, class... UTypes&gt;
-tuple&lt;TTypes..., UTypes...&gt; tuple_cat(tuple&lt;TTypes...&gt;&amp;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-11 <i>Requires:</i> <ins>Let <tt>i</tt> be in <tt>[0, sizeof...(TTypes))</tt>,
-<tt>Ti</tt> be the <tt>i</tt><sup><i>th</i></sup> type in <tt>Types</tt>,
-<tt>j</tt> be in <tt>[0, sizeof...(UTypes))</tt>, and <tt>Uj</tt> be the
-<tt>j</tt><sup><i>th</i></sup> type in <tt>UTypes</tt>.
-<tt>is_constructible&lt;Ti, Ti&gt;::value</tt> shall be <tt>true</tt> for each
-type <tt>Ti</tt> and <tt>is_constructible&lt;Uj, const Uj&amp;&gt;::value</tt>
-shall be <tt>true</tt> for each type <tt>Uj</tt></ins> <del>All the types in
-<tt>TTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34). All the types in
-<tt>UTypes</tt> shall be <tt>CopyConstructible</tt> (Table 35)</del>.
-</p>
-
-<p>
-12 <i>Returns:</i> A <tt>tuple</tt> object constructed by <ins>initializing the
-<tt>i</tt><sup><i>th</i></sup> element with
-<tt>std::forward&lt;Ti&gt;(get&lt;i&gt;(t))</tt> for all <tt>Ti</tt> in
-<tt>TTypes</tt> and initializing the
-<tt>(j+sizeof...(TTypes))</tt><sup><i>th</i></sup> element with
-<tt>get&lt;j&gt;(u)</tt> for all <tt>Uj</tt> in <tt>UTypes</tt>.</ins> <del>move
-constructing its first <tt>sizeof...(TTypes)</tt> elements from the
-corresponding elements of <tt>t</tt> and copy constructing its last
-<tt>sizeof...(UTypes)</tt> elements from the corresponding elements of
-<tt>u</tt></del>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class... TTypes, class... UTypes&gt;
-tuple&lt;TTypes..., UTypes...&gt; tuple_cat(const tuple&lt;TTypes...&gt;&amp; t, tuple&lt;UTypes...&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-13 <i>Requires:</i> <ins>Let <tt>i</tt> be in <tt>[0, sizeof...(TTypes))</tt>,
-<tt>Ti</tt> be the <tt>i</tt><sup><i>th</i></sup> type in <tt>Types</tt>,
-<tt>j</tt> be in <tt>[0, sizeof...(UTypes))</tt>, and <tt>Uj</tt> be the
-<tt>j</tt><sup><i>th</i></sup> type in <tt>UTypes</tt>.
-<tt>is_constructible&lt;Ti, const Ti&amp;&gt;::value</tt> shall be <tt>true</tt>
-for each type <tt>Ti</tt> and <tt>is_constructible&lt;Uj, Uj&gt;::value</tt>
-shall be <tt>true</tt> for each type <tt>Uj</tt></ins> <del>All the types in
-<tt>TTypes</tt> shall be <tt>CopyConstructible</tt> (Table 35). All the types in
-<tt>UTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34)</del>.
-</p>
-
-<p>
-14 <i>Returns:</i> A <tt>tuple</tt> object constructed by <ins>initializing the
-<tt>i</tt><sup><i>th</i></sup> element with <tt>get&lt;i&gt;(t)</tt> for each
-type <tt>Ti</tt> and initializing the
-<tt>(j+sizeof...(TTypes))</tt><sup><i>th</i></sup> element with
-<tt>std::forward&lt;Uj&gt;(get&lt;j&gt;(u))</tt> for each type <tt>Uj</tt></ins>
-<del>copy constructing its first <tt>sizeof...(TTypes)</tt> elements from the
-corresponding elements of <tt>t</tt> and move constructing its last
-<tt>sizeof...(UTypes)</tt> elements from the corresponding elements of
-<tt>u</tt></del>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class... TTypes, class... UTypes&gt;
-tuple&lt;TTypes..., UTypes...&gt; tuple_cat(tuple&lt;TTypes...&gt;&amp;&amp; t, tuple&lt;UTypes...&gt;&amp;&amp; u);
-</pre>
-
-<blockquote>
-<p>
-15 <i>Requires:</i> <ins>Let <tt>i</tt> be in <tt>[0, sizeof...(TTypes))</tt>,
-<tt>Ti</tt> be the <tt>i</tt><sup><i>th</i></sup> type in <tt>Types</tt>,
-<tt>j</tt> be in <tt>[0, sizeof...(UTypes))</tt>, and <tt>Uj</tt> be the
-<tt>j</tt><sup><i>th</i></sup> type in <tt>UTypes</tt>.
-<tt>is_constructible&lt;Ti, Ti&gt;::value</tt> shall be <tt>true</tt> for each
-type <tt>Ti</tt> and <tt>is_constructible&lt;Uj, Uj&gt;::value</tt> shall be
-<tt>true</tt> for each type <tt>Uj</tt></ins> <del>All the types in
-<tt>TTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34). All the types in
-<tt>UTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34)</del>.
-</p>
-
-<p>
-16 <i>Returns:</i> A <tt>tuple</tt> object constructed by <ins>initializing the
-<tt>i</tt><sup><i>th</i></sup> element with
-<tt>std::forward&lt;Ti&gt;(get&lt;i&gt;(t))</tt> for each type <tt>Ti</tt> and
-initializing the <tt>(j+sizeof...(TTypes))</tt><sup><i>th</i></sup> element with
-<tt>std::forward&lt;Uj&gt;(get&lt;j&gt;(u))</tt> for each type <tt>Uj</tt></ins>
-<del>move constructing its first <tt>sizeof...(TTypes)</tt> elements from the
-corresponding elements of <tt>t</tt> and move constructing its last
-<tt>sizeof...(UTypes)</tt> elements from the corresponding elements of
-<tt>u</tt></del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> 
-would solve this issue.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1327"></a>1327. templates defined in <tt>&lt;cmath&gt;</tt> replacing C macros with the same name</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Michael Wong <b>Opened:</b> 2010-03-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 26.8 [c.math]p12
-The templates defined in <tt>&lt;cmath&gt;</tt> replace the C99 macros
-with the same names. The templates have the following declarations:
-</p>
-
-<blockquote><pre>
-namespace std {
-template &lt;class T&gt; bool signbit(T x);
-template &lt;class T&gt; int fpclassify(T x);
-template &lt;class T&gt; bool isfinite(T x);
-template &lt;class T&gt; bool isinf(T x);
-template &lt;class T&gt; bool isnan(T x);
-template &lt;class T&gt; bool isnormal(T x);
-template &lt;class T&gt; bool isgreater(T x, T y);
-template &lt;class T&gt; bool isgreaterequal(T x, T y);
-template &lt;class T&gt; bool isless(T x, T y);
-template &lt;class T&gt; bool islessequal(T x, T y);
-template &lt;class T&gt; bool islessgreater(T x, T y);
-template &lt;class T&gt; bool isunordered(T x, T y);
-}
-</pre></blockquote>
-
-<p>
-and p13:
-</p>
-
-<blockquote><p>
-13 The templates behave the same as the C99 macros with corresponding
-names defined in C99 7.12.3, Classification macros, and C99 7.12.14,
-Comparison macros in the C standard.
-</p></blockquote>
-
-<p>
-The C Std versions look like this:
-</p>
-
-<blockquote>
-<p>
-7.12.14.1/p1:
-</p>
-<blockquote>
-<p>
-Synopsis
-</p>
-<p>
-1 <tt>#include &lt;math.h&gt;</tt>
-</p>
-<pre>
-int isgreaterequal(real-floating x, real-floating y);
-</pre>
-</blockquote>
-</blockquote>
-
-<p>
-which is not necessarily the same types as is required by C++ since the
-two parameters may be different. Would it not be better if it were truly
-aligned with C?
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Bill to ask WG-14 if heterogeneous support for the
-two-parameter macros is intended.
-]</i></p>
-
-
-<p><i>[
-2010-09-13 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-I recommend to resolve this issue as NAD Editorial because
-the accepted resolution for NB comment <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3162.html#US136">US-136</a>
-by motion 27 does address this.
-</p></blockquote>
-
-<p><i>[
-2010-09-14 Bill comments:
-]</i></p>
-
-
-<blockquote><p>
-Motion 27 directly addresses LWG 1327 and solves the problem
-presented there. Moreover, the solution has been aired before
-WG14 with no dissent. These functions now behave the same for
-mixed-mode calls in both C and C++
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Apply proposed resolution for 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3162.html#US136">US-136</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1328"></a>1328. istream extractors not setting <tt>failbit</tt> if <tt>eofbit</tt> is already set</h3>
-<p><b>Section:</b> 27.7.2.1.3 [istream::sentry] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2010-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream::sentry">issues</a> in [istream::sentry].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Basing on the recent discussion on the library reflector, see c++std-lib-27728
-and follow ups, I hereby formally ask for LWG 419 to be re-opened, the rationale
-being that according to the current specifications, per
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n3000.pdf">n3000</a>,
-it seems actually impossible to seek away from end of file, contrary to the
-rationale which led <a href="lwg-closed.html#342">342</a> to its closure as NAD. My request is also
-supported by Martin Sebor, and I'd like also to add, as tentative proposed
-resolution for the re-opened issue, the wording suggested by Sebor, thus, change
-the beginning of 27.7.2.1.3 [istream::sentry]/2, to:
-</p>
-
-<blockquote><p>
-2 <i>Effects:</i> If <tt><ins>(!noskipws &amp;&amp; !</ins>is.good())</tt> is
-<tt><del>false</del> <ins>true</ins></tt>, calls <tt>is.setstate(failbit)</tt>.
-Otherwise prepares for formatted or unformatted input. ...
-</p></blockquote>
-
-<p><i>[
-2010-10 Batavia
-]</i></p>
-
-
-<p>
-Resolved by adopting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm">n3168</a>.
-</p>
-
-<p>
-Previous proposed resolution:
-<p/>
-Change 27.7.2.1.3 [istream::sentry] p.2:
-</p>
-
-<blockquote><p>
-2 <i>Effects:</i> If <tt><ins>(!noskipws &amp;&amp; !</ins>is.good())</tt> is
-<tt><del>false</del> <ins>true</ins></tt>, calls <tt>is.setstate(failbit)</tt>.
-Otherwise prepares for formatted or unformatted input. ...
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Addressed by paper 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm">n3168</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1329"></a>1329. Data races on <code>vector&lt;bool&gt;</code></h3>
-<p><b>Section:</b> 23.2.2 [container.requirements.dataraces] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jeffrey Yaskin <b>Opened:</b> 2010-03-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.dataraces">issues</a> in [container.requirements.dataraces].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The common implementation of <tt>vector&lt;bool&gt;</tt> is as an
-unsynchronized bitfield.  The addition of 23.2.2 [container.requirements.dataraces]/2 would require either a
-change in representation or a change in access synchronization, both of
-which are undesireable with respect to compatibility and performance.
-</p>
-
-<p><i>[
-2010 Pittsburgh:  Moved to <del>NAD Editorial</del><ins>Resolved</ins>. Rationale added below.
-]</i></p>
-
-
-
-
-<p><b>Rationale:</b></p>
-<p>
-Solved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3069.html">N3069</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Container data races 23.2.2 [container.requirements.dataraces]
-</p>
-
-<p>
-Paragraph 1 is unchanged as follows:
-</p>
-
-<blockquote><p>
-1 For purposes of avoiding data races (17.6.4.8), implementations shall
-consider the following functions to be <code>const</code>:
-<code>begin</code>, <code>end</code>, <code>rbegin</code>,
-<code>rend</code>, <code>front</code>, <code>back</code>,
-<code>data</code>, <code>find</code>, <code>lower_bound</code>,
-<code>upper_bound</code>, <code>equal_range</code>, and, except in
-associative containers, <code>operator[]</code>.
-</p></blockquote>
-
-<p>
-Edit paragraph 2 as follows:
-</p>
-
-<blockquote><p>
-2 Notwithstanding (17.6.4.8), implementations are required to avoid data
-races when the contents of the contained object in different elements in
-the same sequence<ins>, excepting <code>vector&lt;bool&gt;</code>,</ins>
-are modified concurrently.
-</p></blockquote>
-
-<p>
-Edit paragraph 3 as follows:
-</p>
-
-<blockquote><p>
-3 [<i>Note:</i>
-For a <code>vector&lt;int&gt; x</code> with a size greater than one,
-<code>x[1] = 5</code> and <code>*x.begin() = 10</code>
-can be executed concurrently without a data race,
-but <code>x[0] = 5</code> and <code>*x.begin() = 10</code>
-executed concurrently may result in a data race.
-<ins>As an exception to the general rule,
-for a <code>vector&lt;bool&gt; y</code>,
-<code>y[i] = true</code> may race with <code>y[j] = true</code>.</ins>
-&mdash;<i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1332"></a>1332. Let Hash objects throw!</h3>
-<p><b>Section:</b> 17.6.3.4 [hash.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-03-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#hash.requirements">issues</a> in [hash.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The currently added <tt>Hash</tt> requirements demand in Table 40 &mdash; <tt>Hash</tt>
-requirements [hash]:
-</p>
-
-<blockquote>
-<table border="1">
-
-<caption>Table 40 &mdash; Hash requirements [hash]</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Requirement</th>
-</tr>
-
-<tr>
-<td><tt>h(k)</tt></td>
-<td><tt>size_t</tt></td>
-<td>Shall not throw exceptions. [..]</td>
-</tr>
-
-</table>
-</blockquote>
-
-<p>
-While it surely is a generally accepted idea that hash function objects
-<i>should</i> not throw exceptions, this basic constraint for such a fundamental
-requirement set does neither match the current library policy nor real world
-cases:
-</p>
-
-<ol>
-<li>
-There are little known situations where a swap or move operation may throw an
-exception and in some popular domains such functions are <em>required</em> not
-to throw. But the library invested already efforts for good reasons to require
-"working" container implementations in the presence of throwing move or swap
-operations, see e.g. 23.2.4.1 [associative.reqmts.except], 23.2.5.1 [unord.req.except].
-</li>
-
-<li>
-The container library is already specified to cope with potentially throwing
-comparers, predicates, <i>and</i> hash function objects, see above.
-</li>
-
-<li>
-<p>
-The new definition goes beyond the original hash requirements as specified
-by SGI library in regard to the exception requirement:
-</p>
-<blockquote><p>
-<a href="http://www.sgi.com/tech/stl/HashFunction.html">http://www.sgi.com/tech/stl/HashFunction.html</a>
-</p></blockquote>
-</li>
-
-<li>
-There are indeed real-world examples of potentially throwing hash functions,
-typically when the proxy pattern is used and when the to-be hashed proxied
-instance is some <i>volatile</i> object, e.g. a file or internet resource, that
-might suddenly be unavailable at the time of hashing.
-</li>
-
-<li>
-With the new <tt>noexcept</tt> language facility libraries can still take
-advantage of no-throw guarantees of hasher functions with stricter guarantees.
-</li>
-</ol>
-
-<p>
-Even though the majority of all known move, swap, and hash functions won't throw
-and in some cases <em>must</em> not throw, it seems like unnecessary
-over-constraining the definition of a Hash functor not to propagate exceptions
-in any case and it contradicts the general principle of C++ to impose such a
-requirement for this kind of fundamental requirement.
-</p>
-
-<p><i>[
-2010-11-11 Daniel asks the working group whether they would prefer a replacement
-for the second bullet of the proposed resolution (a result of discussing this
-with Alberto) of the form:
-]</i></p>
-
-
-<p>
-Add to 20.9.13 [unord.hash]/1 a new bullet:
-</p>
-
-<blockquote>
-<p>
-1 The unordered associative containers defined in Clause 23.5 use
-specializations of the class template <tt>hash</tt>
-as the default hash function. For all object types <tt>Key</tt> for which there
-exists a specialization <tt>hash&lt;Key&gt;</tt>, the
-instantiation <tt>hash&lt;Key&gt;</tt> shall:
-</p>
-<ul>
-<li>
-satisfy the <tt>Hash</tt> requirements (20.2.4), with <tt>Key</tt> as the
-function call argument type, the <tt>DefaultConstructible</tt> requirements
-(33), the <tt>CopyAssignable</tt> requirements (37),
-</li>
-<li>
-be swappable (20.2.2) for lvalues,
-</li>
-<li>
-provide two nested types <tt>result_type</tt> and <tt>argument_type</tt> which
-shall be synonyms for <tt>size_t</tt> and <tt>Key</tt>, respectively,
-</li>
-<li>
-satisfy the requirement that if <tt>k1 == k2</tt> is true, <tt>h(k1) ==
-h(k2)</tt> is also true, where <tt>h</tt> is an object of type
-<tt>hash&lt;Key&gt;</tt> and <tt>k1</tt> and <tt>k2</tt> are objects of type
-<tt>Key</tt><ins>,</ins><del>.</del>
-</li>
-<li>
-<ins>satisfy the requirement <tt>noexcept(h(k)) == true</tt>, where <tt>h</tt> is an object
-of type <tt>hash&lt;Key&gt;</tt> and <tt>k</tt> is an object of type <tt>Key</tt>, unless 
-<tt>hash&lt;Key&gt;</tt> is a user-defined specialization that depends on at least one user-defined type.</ins>
-</li>
-</ul>
-</blockquote>
-
-
-
-<p><i>[Batavia: Closed as NAD Future, then reopened. See the wiki for Tuesday.]</i></p>
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change Table 26 &mdash; <tt>Hash</tt> requirements [tab:hash] as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-
-<caption>Table 26 &mdash; <tt>Hash</tt> requirements [tab:hash]</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Requirement</th>
-</tr>
-
-<tr>
-<td><tt>h(k)</tt></td>
-<td><tt>size_t</tt></td>
-<td><del>Shall not throw exceptions.</del> [&hellip;]</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li>
-<p>
-Add to 20.9.13 [unord.hash] p. 1 a new bullet:
-</p>
-
-<blockquote>
-<p>
-1 The unordered associative containers defined in Clause 23.5 [unord] use
-specializations of the class template <tt>hash</tt>
-as the default hash function. For all object types <tt>Key</tt> for which there
-exists a specialization <tt>hash&lt;Key&gt;</tt>, the
-instantiation <tt>hash&lt;Key&gt;</tt> shall:
-</p>
-<ul>
-<li>
-satisfy the <tt>Hash</tt> requirements ([hash.requirements]), with <tt>Key</tt> as the
-function call argument type, the <tt>DefaultConstructible</tt> requirements
-(Table [defaultconstructible]), the <tt>CopyAssignable</tt> requirements (Table [copyassignable]),
-</li>
-<li>
-be swappable ([swappable.requirements]) for lvalues,
-</li>
-<li>
-provide two nested types <tt>result_type</tt> and <tt>argument_type</tt> which
-shall be synonyms for <tt>size_t</tt> and <tt>Key</tt>, respectively,
-</li>
-<li>
-satisfy the requirement that if <tt>k1 == k2</tt> is true, <tt>h(k1) ==
-h(k2)</tt> is also true, where <tt>h</tt> is an object of type
-<tt>hash&lt;Key&gt;</tt> and <tt>k1</tt> and <tt>k2</tt> are objects of type
-<tt>Key</tt><ins>,</ins><del>.</del>
-</li>
-<li>
-<ins>satisfy the requirement that the expression <tt>h(k)</tt>, where <tt>h</tt>
-is an object of type <tt>hash&lt;Key&gt;</tt> and <tt>k</tt> is an object of
-type <tt>Key</tt>, shall not throw an exception, unless
-<tt>hash&lt;Key&gt;</tt> is a user-defined specialization that depends on at
-least one user-defined type.</ins>
-</li>
-</ul>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1333"></a>1333. Missing forwarding during <tt>std::function</tt> invocation</h3>
-<p><b>Section:</b> 20.9.12.2.4 [func.wrap.func.inv] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-03-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.inv">issues</a> in [func.wrap.func.inv].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current wording of 20.9.12.2.4 [func.wrap.func.inv]/1:
-</p>
-
-<blockquote><pre>
-R operator()(ArgTypes... args) const
-</pre>
-
-<blockquote><p>
-<i>Effects:</i> <tt><i>INVOKE</i>(f, t1, t2, ..., tN, R)</tt> (20.8.2), where
-<tt>f</tt> is the target object (20.8.1) of <tt>*this</tt> and <tt>t1, t2, ...,
-tN</tt> are the values in <tt>args...</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-uses an unclear relation between the actual args and the used variables
-<tt>ti</tt>. It should be made clear, that <tt>std::forward</tt> has to be used
-to conserve the expression lvalueness.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 20.9.12.2.4 [func.wrap.func.inv]/1+2 as indicated:
-</p>
-
-<blockquote><pre>
-R operator()(ArgTypes... args) const
-</pre>
-
-<blockquote>
-<p>
-1 <i>Effects:</i>: <tt><i>INVOKE</i>(f,
-<ins>std::forward&lt;ArgTypes&gt;(args)...</ins><del>t1, t2, ..., tN</del>,
-R)</tt> (20.8.2), where <tt>f</tt> is the target object (20.8.1) of
-<tt>*this</tt> <del>and <tt>t1, t2, ..., tN</tt> are the values in
-<tt>args...</tt></del>.
-</p>
-
-<p>
-2 <i>Returns:</i> Nothing if <tt>R</tt> is <tt>void</tt>, otherwise the return
-value of <tt><i>INVOKE</i>(f,
-<ins>std::forward&lt;ArgTypes&gt;(args)...</ins><del>t1, t2, ..., tN</del>,
-R)</tt>.
-</p>
-
-<p>
-3 <i>Throws:</i> <tt>bad_function_call</tt> if <tt>!*this</tt>; otherwise, any
-exception thrown by the wrapped callable object.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1334"></a>1334. Insert iterators are broken for some proxy containers compared to C++03</h3>
-<p><b>Section:</b> 24.5.2.2.2 [back.insert.iter.op=], 24.5.2.4.2 [front.insert.iter.op=], X [insert.insert.iter.op=] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-03-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In C++03 this was valid code:
-</p>
-
-<blockquote><pre>
-#include &lt;vector&gt;
-#include &lt;iterator&gt;
-
-int main() {
-  typedef std::vector&lt;bool&gt; Cont;
-  Cont c;
-  std::back_insert_iterator&lt;Cont&gt; it = std::back_inserter(c);
-  *it = true;
-}
-</pre></blockquote>
-
-<p>
-In C++0x this code does no longer compile because of an ambiguity error for this
-<tt>operator=</tt> overload pair:
-</p>
-
-<blockquote><pre>
-back_insert_iterator&lt;Container&gt;&amp;
-operator=(typename Container::const_reference value);
-
-back_insert_iterator&lt;Container&gt;&amp;
-operator=(typename Container::value_type&amp;&amp; value);
-</pre></blockquote>
-
-<p>
-This is so, because for proxy-containers like <tt>std::vector&lt;bool&gt;</tt>
-the <tt>const_reference</tt> usually is a non-reference type and in this case
-it's identical to <tt>Container::value_type</tt>, thus forming the ambiguous
-overload pair
-</p>
-
-<blockquote><pre>
-back_insert_iterator&lt;Container&gt;&amp;
-operator=(bool value);
-
-back_insert_iterator&lt;Container&gt;&amp;
-operator=(bool&amp;&amp; value);
-</pre></blockquote>
-
-<p>
-The same problem exists for <tt>std::back_insert_iterator</tt>,
-<tt>std::front_insert_iterator</tt>, and <tt>std::insert_iterator</tt>.
-</p>
-
-<p>
-One possible fix would be to require that <tt>const_reference</tt> of a proxy
-container must not be the same as the <tt>value_type</tt>, but this would break
-earlier valid code. The alternative would be to change the first signature to
-</p>
-
-<blockquote><pre>
-back_insert_iterator&lt;Container&gt;&amp;
-operator=(const typename Container::const_reference&amp; value);
-</pre></blockquote>
-
-<p>
-This would have the effect that this signature <em>always</em> expects an lvalue
-or rvalue, but it would not create an ambiguity relative to the second form with
-rvalue-references. [For all non-proxy containers the signature will be the same
-as before due to reference-collapsing and const folding rules]
-</p>
-
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<p>
-This problem is not restricted to the unspeakable <tt>vector&lt;bool&gt;</tt>, but is already existing for other proxy 
-containers like gcc's <tt>rope</tt> class. The following code does no longer work ([Bug libstdc++/44963]):
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;ext/rope&gt;
-
-using namespace std;
-
-int main()
-{
-     __gnu_cxx::crope line("test");
-     auto ii(back_inserter(line));
-
-     *ii++ = 'm'; // #1
-     *ii++ = 'e'; // #2
-
-     cout &lt;&lt; line &lt;&lt; endl;
-}
-</pre></blockquote>
-<p>
-Both lines marked with #1 and #2 issue now an error because the library has properly implemented the current
-wording state (Thanks to Paolo Calini for making me aware of this real-life example).
-</p>
-<p>
-The following P/R is a revision of the orignal P/R and was initially suggested by Howard 
-Hinnant. Paolo verified that the approach works in gcc.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording after 6 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>The wording refers to N3126.</i></p>
-
-<ol>
-<li>Change [back.insert.iterator], class <tt>back_insert_iterator</tt> synopsis as indicated:
-<blockquote><pre>
-template &lt;class Container&gt;
-class back_insert_iterator :
- public iterator&lt;output_iterator_tag,void,void,void,void&gt; {
-protected:
- Container* container;
-public:
- [..]
- back_insert_iterator&lt;Container&gt;&amp;
-   operator=(<ins>const</ins> typename Container::<del>const_reference</del><ins>value_type&amp;</ins> value);
- back_insert_iterator&lt;Container&gt;&amp;
-   operator=(typename Container::value_type&amp;&amp; value);
- [..]
-};
-</pre></blockquote>
-</li>
-<li>Change [back.insert.iter.op=] before p. 1 as indicated:
-<blockquote><pre>
-back_insert_iterator&lt;Container&gt;&amp;
-   operator=(<ins>const</ins> typename Container::<del>const_reference</del><ins>value_type&amp;</ins> value);
-</pre>
-<blockquote><p>
-1 <em>Effects</em>: <tt>container-&gt;push_back(value)</tt>;<br/>
-2 <em>Returns</em>: <tt>*this</tt>.
-</p></blockquote></blockquote>
-</li>
-<li>Change [front.insert.iterator], class <tt>front_insert_iterator</tt> synposis as indicated:
-<blockquote><pre>
-template &lt;class Container&gt;
-class front_insert_iterator :
- public iterator&lt;output_iterator_tag,void,void,void,void&gt; {
-protected:
- Container* container;
-public:
- [..]
- front_insert_iterator&lt;Container&gt;&amp;
-   operator=(<ins>const</ins> typename Container::<del>const_reference</del><ins>value_type&amp;</ins> value);
- front_insert_iterator&lt;Container&gt;&amp;
-   operator=(typename Container::value_type&amp;&amp; value);
- [..]
-};
-</pre></blockquote>
-</li>
-<li>Change [front.insert.iter.op=] before p.1 as indicated:
-<blockquote><pre>
-front_insert_iterator&lt;Container&gt;&amp;
-   operator=(<ins>const</ins> typename Container::<del>const_reference</del><ins>value_type&amp;</ins> value);
-</pre>
-<blockquote><p>
-1 <em>Effects</em>: <tt>container-&gt;push_front(value)</tt>;<br/>
-2 <em>Returns</em>: <tt>*this</tt>.
-</p></blockquote></blockquote>
-</li>
-<li>Change [insert.iterator], class insert_iterator synopsis as indicated:
-<blockquote><pre>
-template &lt;class Container&gt;
-   class insert_iterator :
-     public iterator&lt;output_iterator_tag,void,void,void,void&gt; {
-   protected:
-     Container* container;
-     typename Container::iterator iter;
-   public:
-     [..]
-     insert_iterator&lt;Container&gt;&amp;
-       operator=(<ins>const</ins> typename Container::<del>const_reference</del><ins>value_type&amp;</ins> value);
-     insert_iterator&lt;Container&gt;&amp;
-       operator=(typename Container::value_type&amp;&amp; value);
-     [..]
-   };
-</pre></blockquote>
-</li>
-<li>Change [insert.iter.op=] before p. 1 as indicated:
-<blockquote><pre>
-insert_iterator&lt;Container&gt;&amp;
-    operator=(<ins>const</ins> typename Container::<del>const_reference</del><ins>value_type&amp;</ins> value);
-</pre>
-<blockquote><p>
-1 <em>Effects</em>: 
-</p><blockquote><pre>
-  iter = container-&gt;insert(iter, value);
-  ++iter;
-</pre></blockquote><p>
-2 <em>Returns</em>: <tt>*this</tt>.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1335"></a>1335. Insufficient requirements for <tt>tuple::operator&lt;()</tt></h3>
-<p><b>Section:</b> 20.4.2.7 [tuple.rel] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2010-05-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#tuple.rel">active issues</a> in [tuple.rel].</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.rel">issues</a> in [tuple.rel].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The requirements section for <tt>std::tuple</tt> says the following: 
-</p>
-
-<blockquote><p>
-<i>Requires:</i> For all <tt>i</tt>, where <tt>0 &lt;= i and i &lt;
-sizeof...(Types)</tt>, <tt>get&lt;i&gt;(t) &lt; get&lt;i&gt;(u)</tt> is a valid
-expression returning a type that is convertible to <tt>bool</tt>.
-<tt>sizeof...(TTypes) == sizeof...(UTypes)</tt>.
-</p></blockquote>
-
-<p>
-This is necessary but not sufficient, as the algorithm for comparing
-<tt>tuple</tt>s also computes <tt>get&lt;i&gt;(u) &lt; get&lt;i&gt;(t)</tt>
-(note the order)
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready with updated wording correcting change-bars after 6 
-positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>Change [tuple.rel] before p. 4 as indicated [<strong>Remark to the editor: This paragraph doesn't have a number yet,
-but it seems to me as if it should have one</strong>]:
-<blockquote><pre>
-template&lt;class... TTypes, class... UTypes&gt;
-bool operator&lt;(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);
-</pre>
-<blockquote><p>
-<em>Requires</em>: For all <tt>i</tt>, where <tt>0 &lt;= i</tt> and <tt>i &lt; sizeof...(Types)</tt>, 
-<tt>get&lt;i&gt;(t) &lt; get&lt;i&gt;(u)</tt> <ins>and <tt>get&lt;i&gt;(u) &lt; get&lt;i&gt;(t)</tt></ins><del>is 
-a valid expression returning a type that is</del><ins> are valid expressions returning types that 
-are</ins> convertible to <tt>bool</tt>. <tt>sizeof...(TTypes) == sizeof...(UTypes)</tt>.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1337"></a>1337. Swapped arguments in <tt>regex_traits::isctype</tt></h3>
-<p><b>Section:</b> 28.7 [re.traits] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2010-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.traits">issues</a> in [re.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.7 [re.traits]/12 describes <tt>regex_traits::isctype</tt> in terms
-of <tt>ctype::is(c, m)</tt>, where <tt>c</tt> is a <tt>charT</tt> and <tt>m</tt>
-is a <tt>ctype_base::mask</tt>.  Unfortunately 22.4.1.1.1 [locale.ctype.members]
-specifies this function as <tt>ctype::is(m, c)</tt>
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 28.7 [re.traits] p.12:
-</p>
-
-<blockquote><pre>
-bool isctype(charT c, char_class_type f) const;
-</pre>
-<blockquote>
-<p>
-11 ...
-</p>
-<p>
-12 <i>Returns:</i> Converts <tt>f</tt> into a value <tt>m</tt> of type
-<tt>std::ctype_base::mask</tt> in an unspecified manner, and returns
-<tt>true</tt> if <tt>use_facet&lt;ctype&lt;charT&gt;
-&gt;(getloc()).is(<del>c</del><ins>m</ins>, <del>m</del><ins>c</ins>)</tt> is
-<tt>true</tt>. Otherwise returns <tt>true</tt> if <tt>f</tt> bitwise or'ed with
-the result of calling <tt>lookup_classname</tt> with an iterator pair that
-designates the character sequence <tt>"w"</tt> is not equal to 0 and <tt>c ==
-'_'</tt>, or if <tt>f</tt> bitwise or'ed with the result of calling
-<tt>lookup_classname</tt> with an iterator pair that designates the character
-sequence <tt>"blank"</tt> is not equal to 0 and <tt>c</tt> is one of an
-implementation-defined subset of the characters for which <tt>isspace(c,
-getloc())</tt> returns <tt>true</tt>, otherwise returns <tt>false</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1338"></a>1338. LWG 1205 incorrectly applied</h3>
-<p><b>Section:</b> 25.2.13 [alg.search] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2010-06-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.search">issues</a> in [alg.search].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG <a href="lwg-defects.html#1205">1205</a> (currently in WP) clarified the return value of several
-algorithms when dealing with empty ranges.  In particular it recommended for
-25.2.13 [alg.search]:
-</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-  ForwardIterator1
-    search(ForwardIterator1 first1, ForwardIterator1 last1,
-           ForwardIterator2 first2, ForwardIterator2 last2);
-
-template&lt;class ForwardIterator1, class ForwardIterator2,
-         class BinaryPredicate&gt;
-  ForwardIterator1
-    search(ForwardIterator1 first1, ForwardIterator1 last1,
-           ForwardIterator2 first2, ForwardIterator2 last2,
-           BinaryPredicate pred);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i> ...
-</p>
-<p>
-2 <i>Returns:</i> ... Returns <tt>last1</tt> if no such iterator is found.
-</p>
-<p><ins>
-3 <i>Remarks:</i> Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty.
-</ins></p>
-</blockquote>
-</blockquote>
-
-<p>
-Unfortunately this got translated to an incorrect specification for what gets
-returned when no such iterator is found (N3092):
-</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-  ForwardIterator1
-    search(ForwardIterator1 first1, ForwardIterator1 last1,
-           ForwardIterator2 first2, ForwardIterator2 last2);
-
-template&lt;class ForwardIterator1, class ForwardIterator2,
-         class BinaryPredicate&gt;
-  ForwardIterator1
-    search(ForwardIterator1 first1, ForwardIterator1 last1,
-           ForwardIterator2 first2, ForwardIterator2 last2,
-           BinaryPredicate pred);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i> ...
-</p>
-<p>
-2 <i>Returns:</i> ... Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is
-empty or if no such iterator is found.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-LWG <a href="lwg-defects.html#1205">1205</a> is correct and N3092 is not equivalent nor correct.
-</p>
-
-<p>
-I have not reviewed the other 10 recommendations of <a href="lwg-defects.html#1205">1205</a>.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-It was verified that none of the remaining possibly affected algorithms does 
-have any similar problems and a concrete P/R was added that used a similar 
-style as has been applied to the other cases.
-</p></blockquote>
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change [alg.search] p.2 as indicated:
-<blockquote><pre>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-  ForwardIterator1
-    search(ForwardIterator1 first1, ForwardIterator1 last1,
-           ForwardIterator2 first2, ForwardIterator2 last2);
-
-template&lt;class ForwardIterator1, class ForwardIterator2,
-            class BinaryPredicate&gt;
-  ForwardIterator1
-    search(ForwardIterator1 first1, ForwardIterator1 last1,
-           ForwardIterator2 first2, ForwardIterator2 last2,
-           BinaryPredicate pred);
-</pre>
-<blockquote><p>
-1 - [...]
-<p/>
-2 - <em>Returns</em>: The first iterator <tt>i</tt> in the range <tt>[first1,last1 - (last2-first2))</tt> such that for any nonnegative
-integer <tt>n</tt> less than <tt>last2 - first2</tt> the following corresponding conditions hold: <tt>*(i + n) == *(first2 + n)</tt>, 
-<tt>pred(*(i + n), *(first2 + n)) != false</tt>. Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty <del>or</del><ins>, otherwise
-	returns <tt>last1</tt></ins> if no such iterator is found.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1339"></a>1339. <tt>uninitialized_fill_n</tt> should return the end of its range</h3>
-<p><b>Section:</b> 20.7.12.4 [uninitialized.fill.n] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jared Hoberock <b>Opened:</b> 2010-07-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf">N3092's</a>
-specification of <tt>uninitialized_fill_n</tt> discards useful information and
-is inconsistent with other algorithms such as <tt>fill_n</tt> which accept an
-iterator and a size.  As currently specified, <tt>unintialized_fill_n</tt>
-requires an additional linear traversal to find the end of the range.
-</p>
-
-<p>
-Instead of returning <tt>void</tt>, <tt>unintialized_fill_n</tt> should return
-one past the last iterator it dereferenced.
-</p>
-
-<p><i>[
-Post-Rapperswil:
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In section 20.7 [memory] change:,
-</p>
-
-<blockquote><pre>
-template &lt;class ForwardIterator, class Size, class T&gt;
-  <del>void</del> <ins>ForwardIterator</ins> uninitialized_fill_n(ForwardIterator first, Size n, const T&amp; x);
-</pre></blockquote>
-
-
-<p>
-In section 20.7.12.4 [uninitialized.fill.n] change,
-</p>
-
-<blockquote><pre>
-template &lt;class ForwardIterator, class Size, class T&gt;
-  <del>void</del> <ins>ForwardIterator</ins> uninitialized_fill_n(ForwardIterator first, Size n, const T&amp; x);
-</pre>
-<blockquote>
-<p>
-1 <i>Effects:</i>
-</p>
-<blockquote><pre>
-for (; n--; ++first)
-  ::new (static_cast&lt;void*&gt;(&amp;*first))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(x);
-<ins>return first;</ins>
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1340"></a>1340. Why does <tt>forward_list::resize</tt> take the object to be copied by value?</h3>
-<p><b>Section:</b> 23.3.4.5 [forwardlist.modifiers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> James McNellis <b>Opened:</b> 2010-07-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.modifiers">issues</a> in [forwardlist.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf">N3092</a>
-23.3.4.5 [forwardlist.modifiers], the <tt>resize()</tt> member function is 
-declared as:
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, value_type c); 
-</pre></blockquote>
-
-<p>
-The other sequence containers (<tt>list</tt>, <tt>deque</tt>, and
-<tt>vector</tt>) take <tt>'c'</tt> by const reference.
-</p>
-
-<p>
-Is there a reason for this difference?  If not, then <tt>resize()</tt> should 
-be declared as: 
-</p>
-
-<blockquote><pre>
-void resize(size_type sz, const value_type&amp; c); 
-</pre></blockquote>
-
-<p>
-The declaration would need to be changed both at its declaration in the class
-definition at 23.3.4 [forwardlist]/3 and where its behavior is specified
-at 23.3.4.5 [forwardlist.modifiers]/22.
-</p>
-
-<p>
-This would make <tt>forward_list</tt> consistent with the CD1 issue <a href="lwg-defects.html#679">679</a>.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<p>
-Daniel changed the P&#47;R slightly, because one paragraph number has been changed since the issue
-had been submitted. He also added a similar Requires element that exists in all other containers with
-a <tt>resize</tt> member function. He deliberately did not touch the wrong usage of "default-constructed" because that
-will be taken care of by LWG issue <a href="lwg-defects.html#868">868</a>.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with revised wording after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-<ol>
-<li>Change [forwardlist]/3, class template <tt>forward_list</tt> synopsis, as indicated:
-<blockquote><pre>
-...
-void resize(size_type sz);
-void resize(size_type sz, <ins>const</ins> value_type<ins>&amp;</ins> c);
-void clear();
-...
-</pre></blockquote>
-</li>
-<li>Change [forwardlist.modifiers]/27 as indicated: 
-<blockquote><pre>	
-void resize(size_type sz);
-void resize(size_type sz, <ins>const</ins> value_type<ins>&amp;</ins> c);
-</pre>
-<blockquote><p>
-27 <em>Effects</em>: If <tt>sz &lt; distance(begin(), end())</tt>, erases the last <tt>distance(begin(), end()) - sz</tt> elements
-from the list. Otherwise, inserts <tt>sz - distance(begin(), end())</tt> elements at the end of the list. For the first 
-signature the inserted elements are default constructed, and for the second signature they are copies of <tt>c</tt>.
-<p/>
-<ins>28 - <em>Requires</em>: <tt>T</tt> shall be <tt>DefaultConstructible</tt> for the first form and	it shall be <tt>CopyConstructible</tt> 
-	for the second form.</ins>
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1344"></a>1344. Replace <tt>throw()</tt> with <tt>noexcept</tt></h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1351">1351</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-60, CH-16</b></p>
-<p>
-Dynamic exception specifications are deprecated; the
-library should recognise this by replacing all non-throwing
-exception specifications of the form <tt>throw()</tt> with the
-<tt>noexcept</tt> form.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Replace all non-throwing exception specifications
-of the form 'throw()' with the 'noexcept' form.
-</p>
-
-<p><i>[
-2010-10-31 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3148.html">n3148</a>
-would satisfy this request.
-</p></blockquote>
-
-<p><i>[
-2010-Batavia:
-]</i></p>
-
-
-<blockquote><p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3148.html">n3148</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3148.html">n3148</a>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3150.html">n3150</a>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3195.htm">n3195</a>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3155.html">n3155</a>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3156.html">n3156</a>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1345"></a>1345. Library classes should have <tt>noexcept</tt> move operations</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-61</b></p>
-<p>
-All library types should have non-throwing move
-constructors and move-assignment operators unless
-wrapping a type with a potentially throwing move operation.
-When such a type is a class-template, these
-operations should have a conditional <tt>noexcept</tt>
-specification.
-</p>
-<p>
-There are many other places where a <tt>noexcept</tt>
-specification may be considered, but the move operations
-are a special case that must be called out, to effectively
-support the <tt>move_if_noexcept</tt> function template.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<p>
-Review every class and class template in the library. If <tt>noexcept</tt> 
-move constructor/assignment operators can be implicitly declared, then they
-should be implicitly declared, or explicitly defaulted. Otherwise, a move 
-constructor/move assignment operator with a <tt>noexcept</tt> exception
-specification should be provided.
-</p>
-
-<p><i>[
-2010-10-31 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3157.html">n3157</a>
-would satisfy this request.
-</p></blockquote>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Resolved by papers to be listed later</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3157.html">n3157</a>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1346"></a>1346. Apply <tt>noexcept</tt> where library specification does not permit exceptions</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1352">1352</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-62, CH-17</b></p>
-<p>
-Issues with efficiency and unsatisfactory semantics mean
-many library functions document they do not throw
-exceptions with a Throws: Nothing clause, but do not
-advertise it with an exception specification. The semantic
-issues are largely resolved with the new 'noexcept'
-specifications, and the noexcept operator means we will
-want to detect these guarantees programatically in order
-to construct programs taking advantage of the guarantee.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<p>
-Add a <tt>noexcept</tt> exception specification on each
-libary API that offers an unconditional <i>Throws</i>:
-Nothing guarantee. Where the guarantee is
-conditional, add the appropriate
-<tt>noexcept(<i>constant-expression</i>)</tt> if an appropriate
-constant expression exists.
-</p>
-
-<p><i>[
-2010-10-31 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3149.html">n3149</a>
-would satisfy this request.
-</p></blockquote>
-
-<p><i>[
-2010-Batavia:
-]</i></p>
-
-
-<blockquote><p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3149.html">n3149</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-This issue is resolved by the adoption of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3195.htm">n3195</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1347"></a>1347. Apply <tt>noexcept</tt> judiciously throughout the library</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-63, US-80</b></p>
-<p>
-Since the newly introduced operator <tt>noexcept</tt> makes it
-easy (easier than previously) to detect whether or not a
-function has been declared with the empty exception
-specification (including <tt>noexcept</tt>) library functions that
-cannot throw should be decorated with the empty
-exception specification. Failing to do so and leaving it as a
-matter of QoI would be detrimental to portability and
-efficiency.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-
-<p>
-Review the whole library, and apply the <tt>noexcept</tt>
-specification where it is appropriate.
-</p>
-
-<p><i>[
-2010-10-31 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of the combination of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3155.html">n3155</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3156.html">n3156</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3157.html">n3157</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3167.html">n3167</a>
-would satisfy this request. The paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3150.html">n3150</a> is related
-to this as well.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-<p>
-While the LWG expects to see further papers in this area, sufficient action was taken in Batavia to close the issue as Resolved by the listed papers.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3155.html">n3155</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3156.html">n3156</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3157.html">n3157</a>,
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3167.html">n3167</a> and remotely
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3150.html">n3150</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1349"></a>1349. <tt>swap</tt> should not throw</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-65</b></p>
-<p>
-Nothrowing <tt>swap</tt> operations are key to many C++ idioms,
-notably the common copy/swap idiom to provide the
-strong exception safety guarantee.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-
-<p>
-Where possible, all library types should provide a
-<tt>swap</tt> operation with an exception specification
-guaranteeing no exception shall propagate.
-Where <tt>noexcept(true)</tt> cannot be guaranteed to
-not terminate the program, and the <tt>swap</tt> in
-questions is a template, an exception specification
-with the appropriate conditional expression could
-be specified.
-</p>
-
-<p><i>[2011-03-13: Daniel comments and drafts wording]</i></p>
-
-
-<p>During a survey of the library some main categories for
-potential <tt>noexcept</tt> <tt>swap</tt> function could be isolated:</p>
-
-<ol>
-<li>Free <tt>swap</tt> functions that are specified in terms of already
-<tt>noexcept</tt> <tt>swap</tt> member functions, like that of <tt>valarray</tt>.</li>
-
-<li>Free <tt>swap</tt> of <tt>std::function</tt>, and member and free <tt>swap</tt> 
-functions of stream buffers and streams where considered but rejected as good candidates, 
-because of the danger to potentially impose requirements of existing implementations. 
-These functions could be reconsidered as candidates in the future.</li>
-</ol>
-
-<p>Negative list:</p>
-
-<ol>
-<li>Algorithms related to swap, like <tt>iter_swap</tt>, have <em>not</em> been touched,
-because there are no fundamental exceptions constraints on iterator operations in general
-(only for specific types, like library container iterators)</li>
-</ol>
-
-<p>While evaluating the current state of <tt>swap</tt> functions 
-of library components it was observed that several conditional <tt>noexcept</tt>
-functions have turned into unconditional ones, e.g. in the
-header <tt>&lt;utility&gt;</tt> synopsis:</p>
-
-<blockquote><pre>
-template&lt;class T&gt; void swap(T&amp; a, T&amp; b) noexcept;
-</pre></blockquote>
-
-<p>The suggested resolution shown below also attempts to fix
-these cases.</p>
-
-<p><i>[2011-03-22 Daniel redrafts to satisfy new criteria for applying <tt>noexcept</tt>.
-Parts resolved by N3263-v2 and D3267 are not added here.]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Edit 20.2 [utility] p. 2, header <tt>&lt;utility&gt;</tt> synopsis <em>and</em> 
-20.2.2 [utility.swap] before p. 1, as indicated (The intent is to fix an editorial
-omission):</p>
-
-<blockquote><pre>
-template&lt;class T&gt; void swap(T&amp; a, T&amp; b) noexcept<ins>(<i>see below</i>)</ins>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit the prototype declaration in 20.3.2 [pairs.pair] before p. 34 as indicated (The intent 
-is to fix an editorial omission):</p>
-
-<blockquote><pre>
-void swap(pair&amp; p) noexcept<ins>(<i>see below</i>)</ins>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit 20.4.1 [tuple.general] p. 2 header <tt>&lt;tuple&gt;</tt> synopsis <em>and</em> 
-20.4.2.9 [tuple.special] before p. 1 as indicated (The intent is to fix an editorial omission):</p>
-
-<blockquote><pre>
-template &lt;class... Types&gt;
-void swap(tuple&lt;Types...&gt;&amp; x, tuple&lt;Types...&gt;&amp; y) noexcept<ins>(<i>see below</i>)</ins>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit 20.4.2 [tuple.tuple], class template <tt>tuple</tt> synopsis <em>and</em>
-20.4.2.3 [tuple.swap] before p. 1 as indicated (The intent is to fix an editorial omission):</p>
-
-<blockquote><pre>
-void swap(tuple&amp;) noexcept<ins>(<i>see below</i>)</ins>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit 20.7.2 [memory.syn] p. 1, header <tt>&lt;memory&gt;</tt> synopsis as indicated (The 
-intent is to fix an editorial omission of the proposing paper N3195).</p>
-
-<blockquote><pre>
-template&lt;class T&gt; void swap(shared_ptr&lt;T&gt;&amp; a, shared_ptr&lt;T&gt;&amp; b) <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit header <tt>&lt;valarray&gt;</tt> synopsis, 26.6.1 [valarray.syn] <em>and</em> 
-26.6.3.4 [valarray.special] before p. 1 as indicated 
-<em>[Drafting comment: The corresponding member swap is already noexcept]</em>:</p>
-
-<blockquote><pre>
-template&lt;class T&gt; void swap(valarray&lt;T&gt;&amp;, valarray&lt;T&gt;&amp;) <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1353"></a>1353. Clarify the state of a <i>moved-from</i> object</h3>
-<p><b>Section:</b> 17 [library] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#library">active issues</a> in [library].</p>
-<p><b>View all other</b> <a href="lwg-index.html#library">issues</a> in [library].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-18</b></p>
-<p>
-The general approach on moving is that a library object
-after moving out is in a "valid but unspecified state". But
-this is stated at the single object specifications, which is
-error prone (especially if the move operations are implicit)
-and unnecessary duplication.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Consider putting a general statement to the same
-effect into clause 17.
-</p>
-
-<p><i>[2010-11-05 Beman provides exact wording.
-The wording was inspired by Dave Abrahams'
-message c++std-lib-28958, and refined with help from Alisdair, Daniel, and Howard.
-]</i></p>
-
-
-<p><i>[2011-02-25 P/R wording superseded by N3241.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3241.html">N3241</a></p>
-
-
-
-
-
-<hr>
-<h3><a name="1354"></a>1354. The definition of deadlock excludes cases involving a single thread</h3>
-<p><b>Section:</b> 17.3 [defns.deadlock] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-52</b></p>
-<p>
-The definition of deadlock in 17.3.7 excludes cases
-involving a single thread making it incorrect.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-The definition should be corrected.
-</p>
-
-<p><i>[
-2010 Batavia Concurrency group provides a Proposed Resolution
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 17.3 [defns.deadlock] as indicated:
-</p>
-<blockquote><p>
-<b>deadlock</b>
-<p/>
-<del>two</del><ins>one</ins> or more threads are unable to continue execution because each is blocked waiting for one or more of the
-others to satisfy some condition.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1355"></a>1355. The definition of move-assignment operator is redundant</h3>
-<p><b>Section:</b> X [defns.move.assign.op] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-50</b></p>
-<p>
-This definition of move-assignment operator is redundant
-and confusing now that the term move-assignment
-operator is defined by the core language in subclause
-12.8p21.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a> 
-provides a superior resolution.
-</p></blockquote>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Strike subclause X [defns.move.assign.op].
-Add a cross-reference to (12.8) to 17.3.12.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1356"></a>1356. The definition of move-constructor is redundant</h3>
-<p><b>Section:</b> X [defns.move.ctor] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-51</b></p>
-<p>
-This definition of move-constructor is redundant and
-confusing now that the term constructor is defined by the
-core language in subclause 12.8p3.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a> provides a superior resolution.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia: resolved as NAD Editorial by adopting paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>.
-]</i></p>
-
-<p>
-Original proposed resolution preserved for reference:
-</p>
-<blockquote>
-<p>
-Strike subclause 17.3.14, [defns.move.ctor]
-</p>
-
-<blockquote><p><del>
-<b>17.3.14	[defns.move.ctor]</b><br/>
-move constructor a constructor which accepts only an rvalue argument of the type being constructed and might modify the argument as a side effect during construction.
-</del></p></blockquote>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1357"></a>1357. Library bitmask types to not satisfy the bimask type requirements</h3>
-<p><b>Section:</b> 17.5.2.1.3 [bitmask.types] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#bitmask.types">issues</a> in [bitmask.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-53</b></p>
-<p>
-The bitmask types defined in 27.5.2 and 28.5 contradict
-the bitmask type requirements in 17.5.2.1.3, and have
-missing or incorrectly defined operators.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-See Appendix 1 - Additional Details
-</p>
-
-<p><i>[
-2010 - Rapperswil
-]</i></p>
-
-<p>
-The paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3110.html">n3110</a>
-was made available during the meeting to resolve this comment, but withdrawn from formal motions
-to give others time to review the document.  There was no technical objection, and it is expected
-that this paper will go forward at the next meeting. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3110.html">n3110</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1360"></a>1360. Add <tt>&lt;atomic&gt;</tt> to free-standing implementations</h3>
-<p><b>Section:</b> 17.6.1.3 [compliance] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#compliance">issues</a> in [compliance].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-57</b></p>
-<p>
-The atomic operations facility is closely tied to clause 1
-and the memory model. It is not easily supplied as an
-after-market extension, and should be trivial to implement
-of a single-threaded serial machine. The consequence of
-not having this facility will be poor interoperability with
-future C++ libraries that memory model concerns
-seriously, and attempt to treat them in a portable way.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Add <tt>&lt;atomic&gt;</tt> to table 15, headers required for a
-free-standing implementation.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1362"></a>1362. Description of binding to rvalue-references should use the new 'xvalue' vocabulary</h3>
-<p><b>Section:</b> 17.6.4.9 [res.on.arguments] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#res.on.arguments">issues</a> in [res.on.arguments].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-82</b></p>
-<p>
-17.6.4.9 [res.on.arguments] p.1. b.3: The second Note can benefit by adopting recent nomenclature.
-</p>
-
-
-<p><i>[
-Resolution proposed by the ballot comment:
-]</i></p>
-
-<p>
-Rephrase the Note in terms of xvalue.
-</p>
-
-<p><i>[
-Pre-Batavia:
-]</i></p>
-
-<p>
-Walter Brown provides wording.
-</p>
-
-<p><i>[Batavia: Immediate]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Amend the note in 17.6.3.9 [res.on.arguments] p1 bullet 3.
-</p>
-<blockquote><p>
-[ <i>Note</i>: If a program casts an lvalue to an <del>rvalue</del><ins>xvalue</ins> while 
-passing that lvalue to a library function (e.g. by calling the function with the argument 
-<tt>move(x)</tt>), the program is effectively asking that function to treat that lvalue as 
-a temporary. The implementation is free to optimize away aliasing checks which might be 
-needed if the argument was anlvalue. &mdash; <i>end note</i>]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1363"></a>1363. <tt>offsetof</tt> should be marked <tt>noexcept</tt></h3>
-<p><b>Section:</b> 18.2 [support.types] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.types">issues</a> in [support.types].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-68</b></p>
-
-<p>
-There is no reason for the offsetof macro to invoke
-potentially throwing operations, so the result of
-noexcept(offsetof(type,member-designator)) should be
-true.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to the end of 18.2p4:</p>
-<blockquote><p><ins>
-No operation invoked by the offsetof macro shall
-throw an exception, and
-<tt>noexcept(offsetof(type,member-designator))</tt> shall
-be true.</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1364"></a>1364. It is not clear how <tt>exception_ptr</tt> is synchronized</h3>
-<p><b>Section:</b> 18.8.5 [propagation] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#propagation">issues</a> in [propagation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-19</b></p>
-<p>
-It is not clear how <tt>exception_ptr</tt> is synchronized.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Make clear that accessing in different threads
-multiple <tt>exception_ptr</tt> objects that all refer to the
-same exception introduce a race.
-</p>
-
-<p><i>[2011-03-08: Lawrence comments and drafts wording]</i></p>
-
-
-<p>I think fundamentally, this issue is NAD, but clarification would not hurt.</p>
-
-<blockquote>
-<p>Proposed resolution</p>
-<p>Add a new paragraph to 18.8.5 [propagation] after paragraph 6 as follows:</p>
-
-<p><ins>
-[<i>Note:</i> Exception objects have no synchronization requirements, and expressions 
-using them may conflict (1.10 [intro.multithread]). &mdash; <i>end note</i>]
-</ins></p>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1365"></a>1365. Thread-safety of handler functions</h3>
-<p><b>Section:</b> 18.6.2 [alloc.errors] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-71</b></p>
-<p>
-The thread safety of <tt>std::set_new_handler()</tt>,
-<tt>std::set_unexpected()</tt>, <tt>std::set_terminate()</tt>, is
-unspecified making the the functions impossible to use in a thread
-safe manner.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-The thread safety guarantees for the functions
-must be specified and new interfaces should be
-provided to make it possible to query and install
-handlers in a thread safe way.
-</p></blockquote>
-
-<p><i>[
-2010-10-31 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-The proposed resolution of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3122.html">n3122</a>
-partially addresses this request. This issue is related to <a href="lwg-defects.html#1366">1366</a>.
-</p></blockquote>
-
-
-<p><i>[
-2010-Batavia:
-]</i></p>
-
-<blockquote><p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm">n3189</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved in Batavia by accepting  <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm">n3189</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1366"></a>1366. New-handler and data races</h3>
-<p><b>Section:</b> 18.6.1.4 [new.delete.dataraces] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.dataraces">issues</a> in [new.delete.dataraces].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-14</b></p>
-<p>
-It is unclear how a user replacement function can
-simultaneously satisfy the race-free conditions imposed in
-this clause and query the new-handler in case of a failed
-allocation with the only available, mutating interface
-<tt>std::set_new_handler</tt>.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Offer a non-mutating interface to query the current new-handler.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3122.html">n3122</a> would solve this issue.
-This issue is related to <a href="lwg-defects.html#1365">1365</a>.
-</p></blockquote>
-
-<p><i>[
-2010-Batavia:
-]</i></p>
-
-<blockquote><p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm">n3189</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved in Batavia by accepting  <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm">n3189</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1367"></a>1367. Deprecate library support for checking dynamic exception specifications</h3>
-<p><b>Section:</b> D.8 [exception.unexpected] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-72</b></p>
-<p>
-Dynamic exception specifications are deprecated, so
-clause 18.8.2 that describes library support for this facility
-should move to Annex D, with the exception of the
-<tt>bad_exception</tt> class which is retained to indicate other
-failures in the exception dispatch mechanism (e.g. calling
-<tt>current_exception()</tt>).
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-With the exception of 18.8.2.1 [bad.exception],
-move clause 18.8.2 directly to Annex D.
-[bad.exception] should simply become the new
-18.8.2.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1368"></a>1368. Thread safety of <tt>std::uncaught_exception()</tt></h3>
-<p><b>Section:</b> X [uncaught] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-73</b></p>
-<p>
-The thread safety <tt>std::uncaught_exception()</tt> and the
-result of the function when multiple threads throw
-exceptions at the same time are unspecified. To make the
-function safe to use in the presence of exceptions in
-multiple threads the specification needs to be updated.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Update this clause to support safe calls from
-multiple threads without placing synchronization
-requirements on the user.
-</p>
-
-<p><i>[
-2010 Batavia Concurrency group provides a Proposed Resolution
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change X [uncaught] p. 1 as follows:</p>
-<p>
-<i>Returns</i>: <tt>true</tt> after <ins> the current thread has initialized </ins><del>initializing</del>
- an exception object (15.1) until a handler for the exception (including <tt>unexpected()</tt> or <tt>terminate()</tt>) 
- is activated (15.3). [ <i>Note</i>: This includes stack unwinding (15.2). &mdash; <i>end note</i> ]
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="1370"></a>1370. <tt>throw_with_nested</tt> should not use perfect forwarding</h3>
-<p><b>Section:</b> 18.8.6 [except.nested] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#except.nested">active issues</a> in [except.nested].</p>
-<p><b>View all other</b> <a href="lwg-index.html#except.nested">issues</a> in [except.nested].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-84</b></p>
-<p>
-The <tt>throw_with_nested</tt> specification passes in its argument as
-<tt>T&amp;&amp;</tt> (perfect forwarding pattern), but then discusses
-requirements on <tt>T</tt> without taking into account that <tt>T</tt>
-may be an lvalue-reference type. It is also not clear in the spec that
-<tt>t</tt> is intended to be perfectly forwarded.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Patch [except.nested] p6-7 to match the intent with regards to
-requirements on <tt>T</tt> and the use of
-<tt>std::forward&lt;T&gt;(t)</tt>.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3144.html">n3144</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[2010-11-10 Batavia: LWG accepts Howard's updated wording with
-corrected boo boos reported by Sebastian Gesemann and Pete Becker,
-which is approved for Immediate adoption this meeting.]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p> 
-<p><i>Change 18.8.7 nested_exception [except.nested] as indicated:</i></p>
-<blockquote>
-  <pre>[[noreturn]] template &lt;class T&gt; void throw_with_nested(T&amp;&amp; t);
-</pre>
-  <blockquote>
-    <p><ins>Let <tt>U</tt> be <tt>remove_reference&lt;T&gt;::type</tt> </ins></p>
-    <p>6 <i>Requires:</i> <tt><del>T</del> <ins>U</ins></tt> shall be <tt>
-    CopyConstructible</tt>. </p>
-    <p>7 <i>Throws:</i> If <tt><del>T</del> <ins>U</ins></tt> is a non-union 
-    class type not derived from <tt>nested_exception</tt>, an exception of 
-    unspecified type that is publicly derived from both <tt><del>T</del> <ins>U</ins></tt> 
-    and <tt>nested_exception</tt> <ins>and constructed from <tt>std::forward&lt;T&gt;(t)</tt></ins>, 
-    otherwise <ins>throws</ins> <tt><ins>std::forward&lt;T&gt;(</ins>t<ins>)</ins></tt>.
-    </p>
-  </blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1372"></a>1372. Adopt recommended practice for standard error categories</h3>
-<p><b>Section:</b> 19.5.1.5 [syserr.errcat.objects] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-76</b></p>
-
-<p>
-The C++0x FCD recommends, in a note (see 19.5.1.1/1), that users
-create a single <tt>error_category</tt> object for each user defined error
-category and specifies <tt>error_category</tt> equality comparsions based on
-equality of addresses (19.5.1.3). The Draft apparently ignores this
-when specifying standard error category objects in section 19.5.1.5,
-by allowing the <tt>generic_category()</tt> and <tt>system_category()</tt>
-functions to return distinct objects for each invocation.
-</p>
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Append a new sentence to 19.5.1.5 [syserr.errcat.objects]/1, and append
-the same sentence to 19.5.1.5/3.
-</p>
-<blockquote><p><ins>
-All calls of this function return references to the same object.
-</ins></p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1377"></a>1377. The revised <tt>forward</tt> is not compatible with access-control</h3>
-<p><b>Section:</b> 20.2 [utility] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#utility">active issues</a> in [utility].</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility">issues</a> in [utility].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-90</b></p>
-<p>
-In n3090, at variance with previous iterations of the idea
-discussed in papers and incorporated in WDs,
-<tt>std::forward</tt> is constrained via <tt>std::is_convertible</tt>,
-thus is not robust wrt access control. This causes problems in
-normal uses as implementation detail of member
-functions. For example, the following snippet leads to a
-compile time failure, whereas that was not the case for an
-implementation along the lines of n2835 (using <tt>enable_if</tt>s
-instead of concepts for the constraining, of course)
-</p>
-<pre>
-#include &lt;utility&gt;
-struct Base { Base(Base&amp;&amp;); };
-
-struct Derived
-  : private Base
-{
-  Derived(Derived&amp;&amp; d)
-    : Base(std::forward&lt;Base&gt;(d)) { }
-};
-</pre>
-<p>
-In other terms, LWG 1054 can be resolved in a better
-way, the present status is not acceptable.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3143.html">n3143</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved as NAD Editorial by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3143.html">n3143</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1378"></a>1378. <tt>pair</tt> and <tt>tuple</tt> have too many conversions</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-15</b></p>
-<p>
-Several function templates of <tt>pair</tt> and <tt>tuple</tt> allow for too
-many implicit conversions, for example:
-</p>
-<pre>
-#include &lt;tuple&gt;
-std::tuple&lt;char*&gt; p(0); // Error?
-
-struct A { explicit A(int){} };
-A a = 1; // Error
-std::tuple&lt;A&gt; ta = std::make_tuple(1); // OK?
-</pre>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Consider to add wording to constrain these function templates.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> would solve this issue.
-</p></blockquote>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1379"></a>1379. <tt>pair</tt> copy-assignment not consistent for references</h3>
-<p><b>Section:</b> 20.3.2 [pairs.pair] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs.pair">issues</a> in [pairs.pair].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-95</b></p>
-<p>
-Copy-assignment for <tt>pair</tt> is defaulted and does not work
-for pairs with reference members. This is inconsistent with
-conversion-assignment, which deliberately succeeds even
-if one or both elements are reference types, just as for
-<tt>tuple</tt>. The copy-assignment operator should be
-consistent with the conversion-assignment operator and
-with <tt>tuple</tt>'s assignment operators.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> would provide a superior resolution,
-because <tt>pair</tt> does not depend on the semantic requirements of <tt>CopyAssignable</tt>.
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia
-]</i></p>
-
-<p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to <tt>pair</tt> synopsis:</p>
-<blockquote><p>
-<tt>pair&amp; operator=(const pair&amp; p);</tt>
-</p></blockquote>
-<p>
-Add before paragraph 9:
-</p>
-<blockquote><p>
-<tt>pair&amp; operator=(const pair&amp; p);</tt>
-</p><blockquote>
-<p>
-<i>Requires</i>: <tt>T1</tt> and <tt>T2</tt> shall satisfy the
-requirements of <tt>CopyAssignable</tt>.
-</p>
-<p>
-<i>Effects</i>: Assigns <tt>p.first</tt> to <tt>first</tt> and <tt>p.second</tt> to
-<tt>second</tt>.
-<i>Returns</i>: <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1380"></a>1380. <tt>pair</tt> and <tt>tuple</tt> of references need to better specify move-semantics</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-16</b></p>
-<p>
-Several <tt>pair</tt> and <tt>tuple</tt> functions in regard to move
-operations are incorrectly specified if the member types
-are references, because the result of a <tt>std::move</tt> cannot
-be assigned to lvalue-references. In this context the usage
-of the requirement sets <tt>MoveConstructible</tt> and
-<tt>CopyConstructible</tt> also doesn't make sense, because
-non-const lvalue-references cannot satisfy these requirements.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Replace the usage of <tt>std::move</tt> by that of
-<tt>std::forward</tt> and replace <tt>MoveConstructible</tt> and
-<tt>CopyConstructible</tt> requirements by other requirements.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia:
-]</i></p>
-
-
-<blockquote><p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1381"></a>1381. Replace <tt>pair</tt>'s range support by proper range facility</h3>
-<p><b>Section:</b> X [pair.range] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-85</b></p>
-<p>
-While <tt>std::pair</tt> may happen to hold a pair of iterators
-forming a valid range, this is more likely a coincidence
-than a feature guaranteed by the semantics of the <tt>pair</tt>
-template. A distinct range-type should be supplied to
-enable the new for-loop syntax rather than overloading an
-existing type with a different semantic.
-</p>
-
-<p>
-If a replacement facility is required for C++0x, consider n2995.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Strike 20.3.5.4 and the matching declarations in 20.3 header synopsis.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1382"></a>1382. <tt>pair</tt> and <tt>tuple</tt> constructors should <tt>forward</tt> arguments</h3>
-<p><b>Section:</b> 20.3 [pairs] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-96</b></p>
-<p>
-<tt>pair</tt> and <tt>tuple</tt> constructors and assignment operators use
-<tt>std::move</tt> when they should use <tt>std::forward</tt>. This
-causes lvalue references to be erroneously converted to
-rvalue references. Related requirements clauses are also
-wrong.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<blockquote><p>
-See Appendix 1 - Additional Details
-</p></blockquote>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia
-]</i></p>
-
-<p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1383"></a>1383. Inconsistent defaulted move&#47;copy members in <tt>pair</tt> and <tt>tuple</tt></h3>
-<p><b>Section:</b> 20.3 [pairs], 20.4 [tuple] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#pairs">issues</a> in [pairs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-97</b></p>
-<p>
-<tt>pair</tt>'s class definition in N3092 20.3.2 [pairs.pair]
-contains "<tt>pair(const pair&amp;) = default;</tt>" and 
-"<tt>pair&amp; operator=(pair&amp;&amp; p);</tt>". The latter is described by
-20.3.2 [pairs.pair] p.12-13.
-<p/>
-"<tt>pair(const pair&amp;) = default;</tt>" is a user-declared explicitly defaulted
-copy constructor. According to 12.8 [class.copy]&#47;10, this inhibits 
-the implicitly-declared move constructor. <tt>pair</tt> should be move constructible. 
-(12.8 [class.copy]&#47;7 explains that "<tt>pair(pair&lt;U, V&gt;&amp;&amp; p)</tt>" 
-will never be instantiated to move <tt>pair&lt;T1, T2&gt;</tt> to <tt>pair&lt;T1, T2&gt;</tt>.)<br/>
-"<tt>pair&amp; operator=(pair&amp;&amp; p);</tt>" is a user-provided move
-assignment operator (according to 8.4.2 [dcl.fct.def.default]&#47;4: "A 
-special member function is user-provided if it is user-declared and not explicitly defaulted
-on its first declaration."). According to 12.8 [class.copy]&#47;20, this inhibits
-the implicitly-declared copy assignment operator. <tt>pair</tt>
-should be copy assignable, and was in C++98&#47;03. (Again,
-12.8 [class.copy]&#47;7 explains that "<tt>operator=(const pair&lt;U, V&gt;&amp; p)</tt>" 
-will never be instantiated to copy <tt>pair&lt;T1, T2&gt;</tt> to <tt>pair&lt;T1, T2&gt;</tt>.)<br/>
-Additionally, "<tt>pair&amp; operator=(pair&amp;&amp; p);</tt>" is
-unconditionally defined, whereas according to 12.8 [class.copy]&#47;25,
-defaulted copy&#47;move assignment operators are defined as
-deleted in several situations, such as when non-static data
-members of reference type are present.
-<p/>
-If "<tt>pair(const pair&amp;) = default;</tt>" and "<tt>pair&amp; operator=(pair&amp;&amp; p);</tt>" 
-were removed from <tt>pair</tt>'s class definition in 20.3.2 [pairs.pair] and from 
-20.3.2 [pairs.pair]&#47;12-13, <tt>pair</tt> would
-receive implicitly-declared copy&#47;move constructors and
-copy&#47;move assignment operators, and 12.8 [class.copy]&#47;25 would
-apply. The implicitly-declared copy&#47;move constructors
-would be trivial when <tt>T1</tt> and <tt>T2</tt> have trivial copy&#47;move
-constructors, according to 12.8 [class.copy]&#47;13, and similarly for the
-assignment operators, according to12.8 [class.copy]&#47;27. Notes could
-be added as a reminder that these functions would be
-implicitly-declared, but such notes would not be necessary
-(the Standard Library specification already assumes a
-high level of familiarity with the Core Language, and
-casual readers will simply assume that <tt>pair</tt> is copyable
-and movable).
-<p/>
-Alternatively, <tt>pair</tt> could be given explicitly-defaulted
-copy&#47;move constructors and copy&#47;move assignment
-operators. This is a matter of style.
-<p/>
-<tt>tuple</tt> is also affected. <tt>tuple</tt>'s class definition in 20.4 [tuple] contains:
-</p>
-<pre>
-tuple(const tuple&amp;) = default;
-tuple(tuple&amp;&amp;);
-tuple&amp; operator=(const tuple&amp;);
-tuple&amp; operator=(tuple&amp;&amp;);
-</pre>
-<p>
-They should all be removed or all be explicitly-defaulted,
-to be consistent with <tt>pair</tt>. Additionally, 20.4.2.1 [tuple.cnstr]&#47;8-9 specifies the 
-behavior of an explicitly defaulted function, which is currently inconsistent with
-<tt>pair</tt>.
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Either remove "<tt>pair(const pair&amp;) = default;</tt>" and
-"<tt>pair&amp; operator=(pair&amp;&amp; p);</tt>" from <tt>pair</tt>'s class
-definition in  20.3.2 [pairs.pair] and from  20.3.2 [pairs.pair] p.12-13, or
-give pair explicitly-defaulted copy&#47;move constructors and copy&#47;move assignment operators.<BR/>
-Change <tt>tuple</tt> to match.
-</p></blockquote>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a> would solve this issue:
-The move&#47;copy constructor will be defaulted, but the corresponding assignment operators need a non-default implementation
-because they are supposed to work for references as well.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1384"></a>1384. Function <tt>pack_arguments</tt> is poorly named</h3>
-<p><b>Section:</b> 20.4.2.4 [tuple.creation] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.creation">issues</a> in [tuple.creation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-98</b></p>
-<p>
-<tt>pack_arguments</tt> is poorly named. It does not reflect the
-fact that it is a tuple creation function and that it forwards
-arguments.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Rename <tt>pack_arguments</tt> to <tt>forward_as_tuple</tt> throughout the standard.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1385"></a>1385. <tt>tuple_cat</tt> should be a single variadic signature</h3>
-<p><b>Section:</b> 20.4.2.4 [tuple.creation] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.creation">issues</a> in [tuple.creation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-88</b></p>
-<p>
-The <tt>tuple_cat</tt> template consists of four overloads and that
-can concatenate only two <tt>tuple</tt>s. A single variadic
-signature that can concatenate an arbitrary number of
-<tt>tuple</tt>s would be preferred.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Adopt a simplified form of the proposal in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2975.pdf">n2975</a>,
-restricted to <tt>tuple</tt>s and neither requiring nor outlawing support for other <tt>tuple</tt>-like types.
-</p></blockquote>
-
-<p><i>[
-2010 Rapperswil: Alisdair to provide wording.
-]</i></p>
-
-
-<p><i>[
-2010-11-06: Daniel comments and proposes some alternative wording:
-]</i></p>
-
-
-<p>
-There are some problems in the wording: First, even though the result type <tt>tuple&lt;<i>see below</i>&gt;</tt>
-implies it, the specification of the contained tuple element types is missing. Second, the term &quot;<tt>tuple</tt> 
-protocol&quot; is not defined anywhere and I see no reason why this normative wording should not be a non-normative
-note. We could at least give a better approximation, maybe "tuple-like protocol" as indicated from header
-<tt>&lt;utility&gt;</tt> synopsis. Further, it seems to me that the effects need to contain a combination of <tt>std::forward</tt>
-with the call of <tt>get</tt>. Finally I suggest to replace the requirements <tt>Move/CopyConstructible</tt>
-by proper usage of <tt>is_constructible</tt>, as indicated by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3140.html">n3140</a>.
-</p>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-Moved to Ready with Daniel's improved wording.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Note: This alternate proposed resolution works only if <a href="lwg-defects.html#1191">1191</a> has been accepted.</p>
-
-<ol>
-<li>Change 20.4.1 [tuple.general] p. 2, header <tt>&lt;tuple&gt;</tt> synopsis, as indicated:
-<blockquote><pre>
-namespace std {
-
-...
-
-// <i>20.4.2.4, tuple creation functions:</i>
-const unspecified ignore;
-
-template &lt;class... Types&gt;
-  tuple&lt;<i>VTypes</i>...&gt; make_tuple(Types&amp;&amp;...);
-  template &lt;class... Types&gt;
-  tuple&lt;<i>ATypes</i>...&gt; forward_as_tuple(Types&amp;&amp;...);
-  
-template&lt;class... Types&gt;
-  tuple&lt;Types&amp;...&gt; tie(Types&amp;...);
-  
-<del>template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(const tuple&lt;TTypes...&gt;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(tuple&lt;TTypes...&gt;&amp;&amp;, const tuple&lt;UTypes...&gt;&amp;);
-template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(const tuple&lt;TTypes...&gt;&amp;, tuple&lt;UTypes...&gt;&amp;&amp;);
-template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(tuple&lt;TTypes...&gt;&amp;&amp;, tuple&lt;UTypes...&gt;&amp;&amp;);</del>
-<ins>template &lt;class... Tuples&gt;
-  tuple&lt;<i>CTypes</i>...&gt; tuple_cat(Tuples&amp;&amp;...);</ins>
-
-...
-
-</pre></blockquote>
-</li>
-<li>Change 20.4.2.4 [tuple.creation] as indicated:
-<blockquote>
-<pre><del>template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(const tuple&lt;TTypes...&gt;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);</del></pre>
-<blockquote><p><del>
-8 <i>Requires</i>: All the types in <tt>TTypes</tt> shall be <tt>CopyConstructible</tt> (Table 35). All the types in 
-<tt>UTypes</tt> shall be <tt>CopyConstructible</tt> (Table 35).
-</del></p></blockquote>
-<blockquote><p><del>
-9 <i>Returns</i>: A <tt>tuple</tt> object constructed by copy constructing its first <tt>sizeof...(TTypes)</tt> elements 
-from the corresponding elements of <tt>t</tt> and copy constructing its last <tt>sizeof...(UTypes)</tt> elements from the 
-corresponding elements of <tt>u</tt>.
-</del></p></blockquote>
-<pre><del>template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(tuple&lt;TTypes...&gt;&amp;&amp; t, const tuple&lt;UTypes...&gt;&amp; u);</del></pre>
-<blockquote><p><del>
-10 <i>Requires</i>: All the types in <tt>TTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34). All the types in 
-<tt>UTypes</tt> shall be <tt>CopyConstructible</tt> (Table 35).
-</del></p></blockquote>
-<blockquote><p><del>
-11 <i>Returns</i>: A <tt>tuple</tt> object constructed by move constructing its first <tt>sizeof...(TTypes)</tt> elements 
-from the corresponding elements of <tt>t</tt> and copy constructing its last <tt>sizeof...(UTypes)</tt> elements from the 
-corresponding elements of <tt>u</tt>.
-</del></p></blockquote>
-<pre><del>template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(const tuple&lt;TTypes...&gt;&amp; t, tuple&lt;UTypes...&gt;&amp;&amp; u);</del></pre>
-<blockquote><p><del>
-12 <i>Requires</i>: All the types in <tt>TTypes</tt> shall be <tt>CopyConstructible</tt> (Table 35). All the types in 
-<tt>UTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34).
-</del></p></blockquote>
-<blockquote><p><del>
-13 <i>Returns</i>: A <tt>tuple</tt> object constructed by copy constructing its first <tt>sizeof...(TTypes)</tt> elements 
-from the corresponding elements of <tt>t</tt> and move constructing its last <tt>sizeof...(UTypes)</tt> elements from the 
-corresponding elements of <tt>u</tt>.
-</del></p></blockquote>
-<pre><del>template &lt;class... TTypes, class... UTypes&gt;
-  tuple&lt;TTypes..., UTypes...&gt; tuple_cat(tuple&lt;TTypes...&gt;&amp;&amp; t, tuple&lt;UTypes...&gt;&amp;&amp; u);</del></pre>
-<blockquote><p><del>
-14 <i>Requires</i>: All the types in <tt>TTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34). All the types in 
-<tt>UTypes</tt> shall be <tt>MoveConstructible</tt> (Table 34).
-</del></p></blockquote>
-<blockquote><p><del>
-15 <i>Returns</i>: A <tt>tuple</tt> object constructed by move constructing its first <tt>sizeof...(TTypes)</tt> elements 
-from the corresponding elements of <tt>t</tt> and move constructing its last <tt>sizeof...(UTypes)</tt> elements from the 
-corresponding elements of <tt>u</tt>.
-</del></p></blockquote>
-<pre><ins>template &lt;class... Tuples&gt;
-  tuple&lt;<i>CTypes</i>...&gt; tuple_cat(Tuples&amp;&amp;... tpls);
-</ins></pre>
-<blockquote><p><ins>
-8 Let <tt>Ti</tt> be the <tt><i>i</i></tt><sup>th</sup> type in <tt>Tuples</tt>, <tt>Ui</tt> be <tt>remove_reference&lt;Ti&gt;::type</tt>,
-and <tt>tp<sub><i>i</i></sub></tt> be the <tt><i>i</i></tt><sup>th</sup> parameter in the function parameter pack <tt>tpls</tt>, where all 
-indexing is zero-based in the following paragraphs of this sub-clause [tuple.creation].
-</ins></p></blockquote>
-<blockquote><p><ins>
-9 <i>Requires</i>: For all <tt><i>i</i></tt>, <tt>Ui</tt> shall be the type <i>cv<sub><tt>i</tt></sub>&nbsp;</i><tt>tuple&lt;Args<sub><i>i</i></sub>...&gt;</tt>, 
-where <i>cv<sub><tt>i</tt></sub></i> is the (possibly empty) <tt><i>i</i></tt><sup>th</sup> <i>cv</i>-qualifier-seq, and 
-<tt>Args<sub><i>i</i></sub></tt> is the parameter pack representing the element types in <tt>Ui</tt>. Let <tt>Aik</tt> be the 
-<tt><i>k<sub>i</sub></i></tt><sup>th</sup> type in <tt>Args<sub><i>i</i></sub></tt>, then for all <tt>Aik</tt> the following 
-requirements shall be satisfied: If <tt>Ti</tt> is deduced as an lvalue reference type, then 
-<tt>is_constructible&lt;Aik, <i>cv<sub>i</sub>&nbsp;</i>Aik&amp;&gt;::value == true</tt>, otherwise 
-<tt>is_constructible&lt;Aik, <i>cv<sub>i</sub>&nbsp;</i>Aik&amp;&amp;&gt;::value == true</tt>.
-</ins></p></blockquote>
-<blockquote><p><ins>
-10 <i>Remarks</i>: The types in <tt><i>CTypes</i></tt> shall be equal to the ordered sequence of the expanded types
-<tt>Args<sub>0</sub>..., Args<sub>1</sub>..., Args<sub><i>n</i>-1</sub>...</tt>, where <tt><i>n</i></tt> equals 
-<tt>sizeof...(Tuples)</tt>. Let <tt><i>e<sub>i</sub></i>...</tt> be the <tt><i>i</i></tt><sup>th</sup> ordered 
-sequence of tuple elements of the result <tt>tuple</tt> object corresponding to the type sequence 
-<tt>Args<sub><i>i</i></sub></tt>.
-</ins></p></blockquote>
-<blockquote><p><ins>
-11 <i>Returns</i>: A <tt>tuple</tt> object constructed by initializing
-the <tt><i>k<sub>i</sub></i></tt><sup>th</sup> type element <tt>eik</tt> in <tt><i>e<sub>i</sub></i>...</tt>
-with <tt>get&lt;<i>k<sub>i</sub></i>&gt;(std::forward&lt;Ti&gt;(tp<sub>i</sub>))</tt>
-for each valid <tt><i>k<sub>i</sub></i></tt> and each element group <tt><i>e<sub>i</sub></i></tt> in order. 
-</ins></p></blockquote>
-<blockquote><p><ins>
-12 [<i>Note</i>: An implementation may support additional types in the parameter pack <tt>Tuples</tt>, such as
-<tt>pair</tt> and <tt>array</tt> that support the <tt>tuple</tt>-like protocol. &mdash; <i>end note</i>]
-</ins></p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1386"></a>1386. <tt>pack_arguments</tt> overly complex</h3>
-<p><b>Section:</b> 20.4.2.4 [tuple.creation] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.creation">issues</a> in [tuple.creation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-99</b></p>
-<p>
-<tt>pack_arguments</tt> is overly complex.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-This issue resulted from a lack of understanding of
-how references are forwarded. The definition of
-<tt>pack_arguments</tt> should be simply:<br/>
-<tt>template &lt;class... Types&gt;
-tuple&lt;<del>A</del>Types<ins>&amp;&amp;</ins>&gt;
-pack_arguments(Types&amp;&amp;...t);</tt><br/>
-<del>Types: Let <tt>Ti</tt> be each type in <tt>Types</tt>....</del><br/>
-<i>Effects</i>: ...<br/>
-<i>Returns</i>:<br/>
-<tt>tuple&lt;<del>A</del>Types<ins>&amp;&amp;</ins>...&gt;(std::forward&lt;Types&gt;(t)...)</tt><br/>
-The synopsis should also change to reflect this simpler signature.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1387"></a>1387. Range support by <tt>tuple</tt> should be removed</h3>
-<p><b>Section:</b> X [tuple.range] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-87</b></p>
-<p>
-There is no compelling reason to assume a
-heterogeneous tuple of two elements holds a pair of
-iterators forming a valid range. Unlike <tt>std::pair</tt>, there are
-no functions in the standard library using this as a return
-type with a valid range, so there is even less reason to try
-to adapt this type for the new for-loop syntax.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Strike 20.4.2.10 and the matching declarations in
-the header synopsis in 20.4.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1388"></a>1388. LWG 1281 incorrectly accepted</h3>
-<p><b>Section:</b> 20.11.3 [ratio.ratio] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.ratio">issues</a> in [ratio.ratio].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-100</b></p>
-<p>
-LWG 1281 was discussed in Pittsburgh, and the decision
-there was to accept the typedef as proposed and move to
-Review. Unfortunately the issue was accidentally applied
-to the FCD, and incorrectly. The FCD version of the
-typedef refers to <tt>ratio&lt;N, D&gt;</tt>, but the typedef is intended
-to refer to <tt>ratio&lt;num, den&gt;</tt> which in general is not the
-same type.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Accept the current proposed wording of LWG <a href="lwg-defects.html#1281">1281</a> which adds:<br/>
-<tt>typedef ratio&lt;num, den&gt; type;</tt>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1389"></a>1389. Compile-time rational arithmetic and overflow</h3>
-<p><b>Section:</b> 20.11.4 [ratio.arithmetic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ratio.arithmetic">issues</a> in [ratio.arithmetic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-89</b></p>
-<p>
-The alias representations of the <tt>ratio</tt> arithmetic templates
-do not allow implementations to avoid overflow, since they
-explicitly specify the form of the aliased template
-instantiation. For example
-<tt>ratio_multiply</tt>, <tt>ratio&lt;2, LLONG_MAX&gt;</tt> is <em>required</em> to
-alias <tt>ratio&lt;2*LLONG_MAX, LLONG_MAX*2&gt;</tt>, which
-overflows, so is ill-formed. However, this is trivially equal
-to <tt>ratio&lt;1, 1&gt;</tt>. It also contradicts the opening statement of
-20.11.4 [ratio.arithmetic] p. 1 "implementations may use other algorithms to
-compute these values".
-</p>
-
-<p><i>[
-2010-10-25 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3131.html">n3131</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[Batavia: Resolved by accepting
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3210.pdf">n3210</a>.]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change the wording in 20.11.4 [ratio.arithmetic] p. 2-5 as follows:</p>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; using ratio_add = <em>see below</em>;
-</pre><blockquote><p>
-2 The type <tt>ratio_add&lt;R1, R2&gt;</tt> shall be a synonym for <del><tt>ratio&lt;T1, T2&gt;</tt></del>
-<ins><tt>ratio&lt;U, V&gt;</tt> such that <tt>ratio&lt;U, V&gt;::num</tt> and <tt>ratio&lt;U, V&gt;::den</tt> 
-are the same as the corresponding members of <tt>ratio&lt;T1, T2&gt;</tt> would be in the absence of 
-arithmetic overflow</ins> where <tt>T1</tt> has the value <tt>R1::num * R2::den + R2::num * R1::den</tt> 
-and <tt>T2</tt> has the value <tt>R1::den * R2::den</tt>. <ins>If the required values of <tt>ratio&lt;U, V&gt;::num</tt> 
-and <tt>ratio&lt;U, V&gt;::den</tt> cannot be represented in <tt>intmax_t</tt> then the program is ill-formed.</ins>
-</p></blockquote></blockquote>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; using ratio_subtract = <em>see below</em>;
-</pre><blockquote><p>
-3 The type <tt>ratio_subtract&lt;R1, R2&gt;</tt> shall be a synonym for <del><tt>ratio&lt;T1, T2&gt;</tt></del>
-<ins><tt>ratio&lt;U, V&gt;</tt> such that <tt>ratio&lt;U, V&gt;::num</tt> and <tt>ratio&lt;U, V&gt;::den</tt> 
-are the same as the corresponding members of <tt>ratio&lt;T1, T2&gt;</tt> would be in the absence of 
-arithmetic overflow</ins> where <tt>T1</tt> has the value <tt>R1::num * R2::den - R2::num * R1::den</tt> 
-and <tt>T2</tt> has the value <tt>R1::den * R2::den</tt>. <ins>If the required values of <tt>ratio&lt;U, V&gt;::num</tt> 
-and <tt>ratio&lt;U, V&gt;::den</tt> cannot be represented in <tt>intmax_t</tt> then the program is ill-formed.</ins>
-</p></blockquote></blockquote>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; using ratio_multiply = <em>see below</em>;
-</pre><blockquote><p>
-4 The type <tt>ratio_multiply&lt;R1, R2&gt;</tt> shall be a synonym for <del><tt>ratio&lt;T1, T2&gt;</tt></del>
-<ins><tt>ratio&lt;U, V&gt;</tt> such that <tt>ratio&lt;U, V&gt;::num</tt> and <tt>ratio&lt;U, V&gt;::den</tt> 
-are the same as the corresponding members of <tt>ratio&lt;T1, T2&gt;</tt> would be in the absence of 
-arithmetic overflow</ins> 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>. <ins>If the required values of <tt>ratio&lt;U, V&gt;::num</tt> 
-and <tt>ratio&lt;U, V&gt;::den</tt> cannot be represented in <tt>intmax_t</tt> then the program is ill-formed.</ins>
-</p></blockquote></blockquote>
-<blockquote><pre>
-template &lt;class R1, class R2&gt; using ratio_divide = <em>see below</em>;
-</pre><blockquote><p>
-5 The type <tt>ratio_divide&lt;R1, R2&gt;</tt> shall be a synonym for <del><tt>ratio&lt;T1, T2&gt;</tt></del>
-<ins><tt>ratio&lt;U, V&gt;</tt> such that <tt>ratio&lt;U, V&gt;::num</tt> and <tt>ratio&lt;U, V&gt;::den</tt> 
-are the same as the corresponding members of <tt>ratio&lt;T1, T2&gt;</tt> would be in the absence of 
-arithmetic overflow</ins> 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>. <ins>If the required values of <tt>ratio&lt;U, V&gt;::num</tt> 
-and <tt>ratio&lt;U, V&gt;::den</tt> cannot be represented in <tt>intmax_t</tt> then the program is ill-formed.</ins>
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1390"></a>1390. Limit speculative compilation for constructible&#47;convertible traits</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-17</b></p>
-<p>
-Speculative compilation for <tt>std::is_constructible</tt> and
-<tt>std::is_convertible</tt> should be limited, similar to the core
-language (see 14.8.2 paragraph 8).
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1391"></a>1391. constructible&#47;convertible traits and access control</h3>
-<p><b>Section:</b> 20.10 [meta] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta">active issues</a> in [meta].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta">issues</a> in [meta].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-18</b></p>
-<p>
-Several type traits require compiler support, e.g.
-<tt>std::is_constructible</tt> or <tt>std::is_convertible</tt>.
-Their current specification seems to imply, that the corresponding
-test expressions should be well-formed, even in absense of access:
-</p>
-<pre>
-class X { X(int){} };
-constexpr bool test = std::is_constructible&lt;X, int&gt;::value;
-</pre>
-<p>
-The specification does not clarify the context of this test
-and because it already goes beyond normal language
-rules, it's hard to argue by means of normal language
-rules what the context and outcome of the test should be.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Specify that <tt>std::is_constructible</tt> and
-<tt>std::is_convertible</tt> will return <tt>true</tt> only for
-public constructors&#47;conversion functions.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1392"></a>1392. <tt>result_of</tt> should support pointer-to-data-member</h3>
-<p><b>Section:</b> 20.10.4 [meta.unary] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary">issues</a> in [meta.unary].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-102</b></p>
-<p>
-Despite Library Issue 520's ("<tt>result_of</tt> and pointers to
-data members") resolution of CD1, the FCD's <tt>result_of</tt>
-supports neither pointers to member functions nor
-pointers to data members. It should.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Ensure <tt>result_of</tt> supports pointers to member
-functions and pointers to data members.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3123.html">n3123</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3123.html">n3123</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1393"></a>1393. Trivial traits imply <tt>noexcept</tt></h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-92</b></p>
-<p>
-Trivial functions implicitly declare a <tt>noexcept</tt> exception
-specification, so the references to <tt>has_trivial_*</tt> traits in the
-<tt>has_nothrow_*</tt> traits are redundant, and should be struck for clarity.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-For each of the <tt>has_nothrow_<i>something</i></tt> traits,
-remove all references to the matching <tt>has_trivial_<i>something</i></tt> traits.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3142.html">n3142</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1394"></a>1394. <tt>is_constructible</tt> reports false positives</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-19</b></p>
-<p>
-The fundamental trait <tt>is_constructible</tt> reports false
-positives, e.g.
-</p>
-<pre>
-is_constructible&lt;char*, void*&gt;::value
-</pre>
-<p>
-evaluates to true, even though a corresponding variable initialization would be ill-formed.
-</p>
-<p><i>[
-Resolved in Rapperswil by paper N3047.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Remove all false positives from the domain of <tt>is_constructible</tt>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1397"></a>1397. Deprecate '98 binders</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-95</b></p>
-<p>
-The adaptable function protocol supported by
-<tt>unary_function&#47;binary_function</tt> has been superceded by
-lambda expressions and <tt>std::bind</tt>. Despite the name, the
-protocol is not very adaptable as it requires intrusive
-support in the adaptable types, rather than offering an
-external traits-like adaption mechanism. This protocol and
-related support functions should be deprecated, and we
-should not make onerous requirements for the
-specification to support this protocol for callable types
-introduced in this standard revision, including those
-adopted from TR1. It is expected that high-quality
-implementations will provide such support, but we should
-not have to write robust standard specifications mixing this
-restricted support with more general components such as
-<tt>function</tt>, <tt>bind</tt> and <tt>reference_wrapper</tt>.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Move clauses 20.8.3, 20.8.9, 20.8.11 and 20.8.12
-to Annex D.
-<p/>
-Remove the requirements to conditionally derive from
-<tt>unary&#47;binary_function</tt> from <tt>function</tt>,
-<tt>reference_wrapper</tt>, and the results of calling <tt>mem_fn</tt>
-and <tt>bind</tt>.
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3145.html">n3145</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3198.htm">N3198</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1399"></a>1399. <tt>function</tt> does not need an <tt>explicit</tt> default constructor</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-3</b></p>
-<p>
-<tt>explicit</tt> default contructor is defined in <tt>std::function</tt>.
-Although it is allowed according to 12.3.1, it seems
-unnecessary to qualify the constructor as <tt>explicit</tt>.
-If it is <tt>explicit</tt>, there will be a limitation in <tt>initializer_list</tt>.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove <tt>explicit</tt>.</p>
-<pre>
-namespace std {
-template&lt;class&gt; class function;
-// undefined
-template&lt;class R, class... ArgTypes&gt;
-class function&lt;R(ArgTypes...)&gt;
-: public unary_function&lt;T1, R&gt;
-// iff sizeof...(ArgTypes) == 1 and ArgTypes contains T1
-: public binary_function&lt;T1, T2, R&gt;
-// iff sizeof...(ArgTypes) == 2 and ArgTypes contains T1 andT2
-{
-public:typedef R result_type;
-// 20.8.14.2.1, construct/copy/destroy:
-  <del>explicit</del> function();
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1400"></a>1400. FCD <tt>function</tt> does not need an <tt>explicit</tt> default constructor</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-4</b></p>
-<p>
-Really does the <tt>function</tt> require that default constructor is <tt>explicit</tt>?
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Remove <tt>explicit</tt>.</p>
-<pre>
-function();
-template &lt;class A&gt;
-function(allocator_arg_t, const A&amp; a);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1401"></a>1401. Provide support for <tt>unique_ptr&lt;T&gt; == nullptr</tt></h3>
-<p><b>Section:</b> 20.7 [memory] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#memory">issues</a> in [memory].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-99</b></p>
-<p>
-One reason that the <tt>unique_ptr</tt> constructor taking a
-<tt>nullptr_t</tt> argument is not <tt>explicit</tt> is to allow conversion
-of <tt>nullptr</tt> to <tt>unique_ptr</tt> in contexts like equality
-comparison. Unfortunately <tt>operator==</tt> for <tt>unique_ptr</tt> is a
-little more clever than that, deducing template parameters for both
-arguments. This means that <tt>nullptr</tt> does not get deduced
-as <tt>unique_ptr</tt> type, and there are no other comparison
-functions to match.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Add the following signatures to 20.7 [memory] p.1, <tt>&lt;memory&gt;</tt>
-header synopsis:
-</p><blockquote><pre>
-template&lt;typename T, typename D&gt;
-bool operator==(const unique_ptr&lt;T, D&gt; &amp; lhs, nullptr_t);
-template&lt;typename T, typename D&gt;
-bool operator==(nullptr_t, const unique_ptr&lt;T, D&gt; &amp; rhs);
-template&lt;typename T, typename D&gt;
-bool operator!=(const unique_ptr&lt;T, D&gt; &amp; lhs, nullptr_t);
-template&lt;typename T, typename D&gt;
-bool operator!=(nullptr_t, const unique_ptr&lt;T, D&gt; &amp; rhs);
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2010-11-02 Daniel comments and provides a proposed resolution:
-]</i></p>
-
-
-<blockquote><p>
-The same problem applies to <tt>shared_ptr</tt> as well: In both cases there are no
-conversions considered because the comparison functions are templates. I agree with
-the direction of the proposed resolution, but I believe it would be very surprising
-and inconsistent, if given a smart pointer object <tt>p</tt>, the expression
-<tt>p == nullptr</tt> would be provided, but not <tt>p &lt; nullptr</tt> and the
-other relational operators. According to 5.9 [expr.rel] they are defined
-if null pointer values meet other pointer values, even though the result is unspecified
-for all except some trivial ones. But null pointer values are nothing special here: 
-The Library already defines the relational operators for both <tt>unique_ptr</tt> and 
-<tt>shared_ptr</tt> and the outcome of comparing non-null pointer values will be equally 
-unspecified. If the idea of supporting <tt>nullptr_t</tt> arguments for relational
-operators is not what the committee prefers, I suggest at least to consider to remove 
-the existing relational operators for both <tt>unique_ptr</tt> and <tt>shared_ptr</tt>
-for consistency. But that would not be my preferred resolution of this issue.
-<p/>
-The number of overloads triple the current number, but I think it is much clearer to 
-provide them explicitly instead of adding wording that attempts to say that "sufficient overloads" are
-provided. The following proposal makes the declarations explicit.
-<p/>
-Additionally, the proposal adds the missing declarations for some <tt>shared_ptr</tt>
-comparison functions for consistency.
-</p></blockquote>
-
-<p><i>[
-2010-11-03 Daniel adds:
-]</i></p>
-
-
-<p>
-Issue <a href="lwg-defects.html#1297">1297</a> is remotely related. The following proposed resolution splits
-<a href="#1401_extra_bullet">this bullet</a> into sub-bullets A and B. Sub-bullet A would 
-also solve <a href="lwg-defects.html#1297">1297</a>, but sub-bullet B would not.
-<p/>
-A further remark in regard to the proposed semantics of the ordering of <tt>nullptr</tt>
-against other pointer(-like) values: One might think that the following definition might
-be superior because of simplicity:
-</p>
-<blockquote><pre>
-template&lt;class T&gt;
-bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, nullptr_t);
-template&lt;class T&gt;
-bool operator&gt;(nullptr_t, const shared_ptr&lt;T&gt;&amp; a);
-</pre><blockquote><p>
-<i>Returns</i>: <tt>false</tt>.
-</p></blockquote></blockquote>
-<p>
-The underlying idea behind this approach is the assumption that nullptr corresponds
-to the least ordinal pointer value. But this assertion does not hold for all supported
-architectures, therefore this approach was not followed because it would lead to
-the inconsistency, that the following assertion could fire: 
-</p>
-<blockquote><pre>
-shared_ptr&lt;int&gt; p(new int);
-shared_ptr&lt;int&gt; null;
-bool v1 = p &lt; nullptr;
-bool v2 = p &lt; null;
-assert(v1 == v2);
-</pre></blockquote>
-
-<p><i>[2011-03-06: Daniel comments]</i></p>
-
-
-<p>The current issue state is not acceptable, because the Batavia meeting
-did not give advice whether choice A or B of bullet 3 should be applied.
-Option B will now be removed and if this resolution is accepted, issue
-<a href="lwg-defects.html#1297">1297</a> should be declared as resolved by <a href="lwg-defects.html#1401">1401</a>.
-This update also resyncs the wording with N3242.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Wording changes are against N3242.
-</p>
-<ol>
-<li>Change 20.7.2 [memory.syn] p. 1, header <tt>&lt;memory&gt;</tt> synopsis as indicated.
-<tt>noexcept</tt> specifications are only added, where the guarantee exists, that the function
-shall no throw an exception (as replacement of &quot;<i>Throws</i>: Nothing&quot;. Note that
-the <tt>noexcept</tt> additions to the <tt>shared_ptr</tt> comparisons are editorial, because
-they are already part of the accepted paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3195.htm">n3195</a>:
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  // <i>[unique.ptr] Class unique_ptr:</i>
-  template &lt;class T&gt; class default_delete;
-  template &lt;class T&gt; class default_delete&lt;T[]&gt;;
-  template &lt;class T, class D = default_delete&lt;T&gt;&gt; class unique_ptr;
-  template &lt;class T, class D&gt; class unique_ptr&lt;T[], D&gt;;
-
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator==(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator!=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator==(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator==(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator!=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator!=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  
-  // <i>[util.smartptr.weakptr], Class bad_weak_ptr:</i>
-  class bad_weak_ptr;
-
-  // <i>[util.smartptr.shared], Class template shared_ptr:</i>
-  template&lt;class T&gt; class shared_ptr;
-
-  // <i>[util.smartptr.shared.cmp], shared_ptr comparisons:</i>
-  template&lt;class T, class U&gt;
-  bool operator==(shared_ptr&lt;T&gt; const&amp; a, shared_ptr&lt;U&gt; const&amp; b) <ins> noexcept</ins>;
-  template&lt;class T, class U&gt;
-  bool operator!=(shared_ptr&lt;T&gt; const&amp; a, shared_ptr&lt;U&gt; const&amp; b) <ins> noexcept</ins>;
-  template&lt;class T, class U&gt;
-  bool operator&lt;(shared_ptr&lt;T&gt; const&amp; a, shared_ptr&lt;U&gt; const&amp; b) <ins> noexcept</ins>;
-  template&lt;class T, class U&gt;
-  bool operator&gt;(shared_ptr&lt;T&gt; const&amp; a, shared_ptr&lt;U&gt; const&amp; b) <ins> noexcept</ins>;
-  template&lt;class T, class U&gt;
-  bool operator&lt;=(shared_ptr&lt;T&gt; const&amp; a, shared_ptr&lt;U&gt; const&amp; b) <ins> noexcept</ins>;
-  template&lt;class T, class U&gt;
-  bool operator&gt;=(shared_ptr&lt;T&gt; const&amp; a, shared_ptr&lt;U&gt; const&amp; b) <ins> noexcept</ins>;
-
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator==(shared_ptr&lt;T&gt; const&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator==(nullptr_t, shared_ptr&lt;T&gt; const&amp; a) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator!=(shared_ptr&lt;T&gt; const&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator!=(nullptr_t, shared_ptr&lt;T&gt; const&amp; a) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;(shared_ptr&lt;T&gt; const&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;(nullptr_t, shared_ptr&lt;T&gt; const&amp; a) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;(shared_ptr&lt;T&gt; const&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;(nullptr_t, shared_ptr&lt;T&gt; const&amp; a) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;=(shared_ptr&lt;T&gt; const&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;=(nullptr_t, shared_ptr&lt;T&gt; const&amp; a) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;=(shared_ptr&lt;T&gt; const&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;=(nullptr_t, shared_ptr&lt;T&gt; const&amp; a) noexcept;</ins>
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-<li>Change the synopsis just after 20.8.1 [unique.ptr] p. 6 as indicated:
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator==(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator!=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-  template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator==(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator==(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator!=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator!=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x) noexcept;</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&lt;=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-  <ins>template &lt;class T, class D&gt;</ins>
-  <ins>bool operator&gt;=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-
-}
-</pre></blockquote>
-</li>
-<li><a name="1401_extra_bullet">This bullet does now only suggest the first approach:</a>
-<p>Change 20.8.1.5 [unique.ptr.special] p. 4-7 as indicated and add a series of prototype
-descriptions:</p>
-<blockquote><pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote>
-<p>
-<ins>? <i>Requires:</i> Let <tt>CT</tt> be <tt>common_type&lt;unique_ptr&lt;T1,
-D1&gt;::pointer, unique_ptr&lt;T2, D2&gt;::pointer&gt;::type</tt>. Then
-the specialization <tt>less&lt;CT&gt;</tt> shall be a function object type ([function.objects]) 
-that induces a strict weak ordering ([alg.sorting]) on the pointer values.</ins>
-</p>
-
-<p>
-4 <i>Returns:</i> <tt><ins>less&lt;CT&gt;()(x.get(), y.get())</ins><del>x.get()
-&lt; y.get()</del></tt>.
-</p>
-
-<p>
-<ins>? <i>Remarks:</i> If <tt>unique_ptr&lt;T1, D1&gt;::pointer</tt> is not
-implicitly convertible to <tt>CT</tt> or <tt>unique_ptr&lt;T2,
-D2&gt;::pointer</tt> is not implicitly convertible to <tt>CT</tt>, the program
-is ill-formed.</ins>
-</p>
-</blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&lt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-5 <i>Returns:</i> <tt><ins>!(y &lt; x)</ins><del>x.get() &lt;= y.get()</del></tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-6 <i>Returns:</i> <tt><ins>(y &lt; x)</ins><del>x.get() &gt; y.get()</del></tt>.
-</p></blockquote>
-
-<pre>
-template &lt;class T1, class D1, class T2, class D2&gt;
-  bool operator&gt;=(const unique_ptr&lt;T1, D1&gt;&amp; x, const unique_ptr&lt;T2, D2&gt;&amp; y);
-</pre>
-
-<blockquote><p>
-7 <i>Returns:</i> <tt><ins>!(x &lt; y)</ins><del>x.get() &gt;= y.get()</del></tt>.
-</p></blockquote>
-</blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator==(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t) noexcept;</ins>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator==(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>!x</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator!=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t) noexcept;</ins>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator!=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>(bool) x</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&lt;(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&gt;(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-</pre>
-<blockquote><p>
-<ins>? <i>Requires:</i> The specialization <tt>less&lt;unique_ptr&lt;T, D&gt;::pointer&gt;</tt> 
-shall be a function object type ([function.objects]) that induces a strict weak ordering ([alg.sorting])
-on the pointer values.</ins>
-</p></blockquote>
-<blockquote><p>
-<ins>? <i>Returns</i>: <tt>less&lt;unique_ptr&lt;T, D&gt;::pointer&gt;()(x.get(), nullptr)</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&lt;(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&gt;(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-</pre>
-<blockquote><p>
-<ins>? <i>Requires:</i> The specialization <tt>less&lt;unique_ptr&lt;T, D&gt;::pointer&gt;</tt> 
-shall be a function object type ([function.objects]) that induces a strict weak ordering ([alg.sorting])
-on the pointer values.</ins>
-</p></blockquote>
-<blockquote><p>
-<ins>? <i>Returns</i>: <tt>less&lt;unique_ptr&lt;T, D&gt;::pointer&gt;()(nullptr, x.get())</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&lt;=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&gt;=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>!(nullptr &lt; x)</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&lt;=(nullptr_t, const unique_ptr&lt;T, D&gt;&amp; x);</ins>
-<ins>template &lt;class T, class D&gt;</ins>
-<ins>bool operator&gt;=(const unique_ptr&lt;T, D&gt;&amp; x, nullptr_t);</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>!(x &lt; nullptr)</tt>.</ins>
-</p></blockquote></blockquote>
-
-
-</li>
-<li><p>Change 20.8.2.2 [util.smartptr.shared] p. 1, class template <tt>shared_ptr</tt>
-synopsis as indicated. For consistency reasons the remaining normal relation
-operators are added as well:
-</p>
-<blockquote><pre>
-namespace std {
-
-  [&hellip;]
-
-  // <i>[util.smartptr.shared.cmp], shared_ptr comparisons:</i>
-  template&lt;class T, class U&gt;
-  bool operator==(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b) noexcept;
-  template&lt;class T, class U&gt;
-  bool operator!=(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b) noexcept;
-  template&lt;class T, class U&gt;
-  bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b) noexcept;
-  <ins>template&lt;class T, class U&gt;</ins>
-  <ins>bool operator&gt;(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b) noexcept;</ins>
-  <ins>template&lt;class T, class U&gt;</ins>
-  <ins>bool operator&lt;=(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b) noexcept;</ins>
-  <ins>template&lt;class T, class U&gt;</ins>
-  <ins>bool operator&gt;=(const shared_ptr&lt;T&gt;&amp; a, const shared_ptr&lt;U&gt;&amp; b) noexcept;</ins>
-
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator==(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator==(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator!=(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator!=(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;=(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&lt;class T&gt;</ins>
-  <ins>bool operator&lt;=(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;=(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-  <ins>template&gt;class T&gt;</ins>
-  <ins>bool operator&gt;=(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-<li>Add the following series of prototype specifications at the very end of 20.8.2.2.7 [util.smartptr.shared.cmp].
-For mixed comparison the general &quot;generation&quot; rule of 20.2.1 [operators] p. 10 does not apply, 
-therefore all of them are defined. Below wording takes advantage of the simplified definition of the
-<em>composite pointer type</em> if one partner is a null pointer constant:
-<blockquote><pre>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator==(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator==(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>!a</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator!=(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator!=(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>(bool) a</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&lt;(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&gt;(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>less&lt;T*&gt;()(a.get(), nullptr)</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&lt;(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&gt;(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>less&lt;T*&gt;()(nullptr, a.get())</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&lt;=(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&gt;=(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>!(nullptr &lt; a)</tt>.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&lt;=(nullptr_t, const shared_ptr&lt;T&gt;&amp; a) noexcept;</ins>
-<ins>template&lt;class T&gt;</ins>
-<ins>bool operator&gt;=(const shared_ptr&lt;T&gt;&amp; a, nullptr_t) noexcept;</ins>
-</pre><blockquote><p>
-<ins>? <i>Returns</i>: <tt>!(a &lt; nullptr)</tt>.</ins>
-</p></blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1402"></a>1402. <tt>nullptr</tt> constructors for smart pointers should be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 20.7 [memory] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#memory">issues</a> in [memory].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-100</b></p>
-<p>
-The <tt>unique_ptr</tt> and <tt>shared_ptr</tt> constructors taking
-<tt>nullptr_t</tt> delegate to a <tt>constexpr</tt> constructor, and could be
-<tt>constexpr</tt> themselves.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In the 20.8.1.2 [unique.ptr.single] synopsis add
-"constexpr" to <tt>unique_ptr(nullptr_t)</tt>.<br/>
-In the 20.8.1.3 [unique.ptr.runtime] synopsis add
-"constexpr" to <tt>unique_ptr(nullptr_t)</tt>.<br/>
-In the 20.8.2.2 [util.smartptr.shared] synopsis
-add "constexpr" to <tt>shared_ptr(nullptr_t)</tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1403"></a>1403. Inconsistent definitions for <tt>allocator_arg</tt></h3>
-<p><b>Section:</b> 20.7.6 [allocator.tag] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-85</b></p>
-<p>
-There are inconsistent definitions for <tt>allocator_arg</tt>.
-In 20.7 [memory] paragraph 1,
-</p>
-<pre>
-constexpr allocator_arg_t allocator_arg = allocator_arg_t();
-</pre>
-<p>
-and in 20.9.1,
-</p>
-<pre>
-const allocator_arg_t allocator_arg = allocator_arg_t();
-</pre>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change "const" to "constexpr" in 20.9.1 as follows.</p>
-<pre>
-constexpr allocator_arg_t allocator_arg = allocator_arg_t();
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1404"></a>1404. <tt>pointer_traits</tt> should have a <tt>size_type</tt> member</h3>
-<p><b>Section:</b> 20.7.3 [pointer.traits] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-106</b></p>
-<p>
-<tt>pointer_traits</tt> should have a <tt>size_type</tt> member for completeness.
-</p>
-<p>
-Add <tt>typedef <i>see below</i> size_type;</tt> to the generic
-<tt>pointer_traits</tt> template and <tt>typedef size_t
-size_type;</tt> to <tt>pointer_traits&lt;T*></tt>. Use
-<tt>pointer_traits::size_type</tt> and
-<tt>pointer_traits::difference_type</tt> as the defaults for
-<tt>allocator_traits::size_type</tt> and
-<tt>allocator_traits::difference_type</tt>.
-</p>
-<p>
-See Appendix 1 - Additional Details
-</p>
-
-<p><i>[
-Post-Rapperswil, Pablo provided wording:
-]</i></p>
-
-
-<p>
-The original ballot comment reads simply: "<tt>pointer_traits</tt> should have a 
-<tt>size_type</tt> for completeness."  The additional details reveal, however,
-that the desire for a <tt>size_type</tt> is actually driven by the needs
-of <tt>allocator_traits</tt>.  The <tt>allocator_traits</tt> template should get its
-default <tt>difference_type</tt> from <tt>pointer_traits</tt> but if it did,
-it should get its <tt>size_type</tt> from the same source.  Unfortunately,
-there is no obvious meaning for <tt>size_type</tt> in <tt>pointer_traits</tt>.
-</p>
-<p>
-Alisdair suggested, however, that the natural relationship between
-<tt>difference_type</tt> and <tt>size_type</tt> can be expressed simply by the
-<tt>std::make_unsigned&lt;T></tt> metafunction.  Using this metafunction,
-we can easily define <tt>size_type</tt> for <tt>allocator_traits</tt> without
-artificially adding <tt>size_type</tt> to <tt>pointer_traits</tt>.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In [allocator.requirements], Table 42, change two rows as follows:
-</p>
-<blockquote>
-<table border="1">
-  <tr>
-    <td><tt>X::size_type</tt></td>
-    <td>unsigned integral type</td>
-    <td>a type that can represent the size of the largest object in the
-    allocation model</td>
-    <td><tt>
-      <del>size_t</del>
-      <ins>make_unsigned&lt;X::difference_type&gt;::type</ins>
-    </tt></td>
-  </tr>
-  <tr>
-    <td><tt>X::difference_type</tt></td>
-    <td>signed integral type</td>
-    <td>a type that can represent the difference between any two pointers in
-    the allocation model</td>
-    <td><tt>
-      <del>ptrdiff_t</del>
-      <ins>pointer_traits&lt;X::pointer&gt;::difference_type</ins>
-    </tt></td>
-  </tr>
-</table>
-</blockquote>
-<p>
-In [allocator.traits.types], Change the definition of <tt>difference_type</tt> and
-<tt>size_type</tt> as follows:
-</p>
-<blockquote><p>
-  <tt>typedef</tt> <i>see below</i> <tt>difference_type;</tt>
-  </p><blockquote><p>
-    <i>Type:</i> <tt>Alloc::difference_type</tt> if such a type exists,
-    else <tt><del>ptrdiff_t</del>
-    <ins>pointer_traits&lt;pointer&gt;::difference_type</ins></tt>.
-  </p></blockquote>
-  <p>
-  <tt>typedef</tt> <i>see below</i> <tt>size_type;</tt>
-  </p><blockquote><p>
-    <i>Type:</i> <tt>Alloc::size_type</tt> if such a type exists,
-    else <tt><del>size_t</del>
-    <ins>make_unsigned&lt;difference_type&gt;::type</ins></tt>.
-  </p></blockquote>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1405"></a>1405. Move <tt>scoped_allocator_adaptor</tt> into separate header</h3>
-<p><b>Section:</b> 20.13 [allocator.adaptor] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.adaptor">issues</a> in [allocator.adaptor].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-107</b></p>
-<p>
-<tt>scoped_allocator_adaptor</tt> should have its own header.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-See Appendix 1 - Additional Details
-</p>
-
-
-
-
-<hr>
-<h3><a name="1407"></a>1407. Synch <tt>shared_ptr</tt> constructors taking movable types</h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-108</b></p>
-
-<p>
-<tt>shared_ptr</tt> should have the same policy for constructing
-from <tt>auto_ptr</tt> as <tt>unique_ptr</tt>. Currently it does not.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by paper N3109.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add 
-</p><pre>
-template &lt;class Y&gt; explicit shared_ptr(auto_ptr&lt;Y&gt;&amp;); 
-</pre><p>
-to [util.smartptr.shared.const] (and to the synopsis).
-</p>
-
-
-
-
-<hr>
-<h3><a name="1408"></a>1408. Allow recycling of pointers after <tt>undeclare_no_pointers</tt></h3>
-<p><b>Section:</b> 20.7.4 [util.dynamic.safety] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.dynamic.safety">issues</a> in [util.dynamic.safety].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-103</b></p>
-<p>
-The precondition to calling <tt>declare_no_pointers</tt> is that no
-bytes in the range "have been previously registered" with
-this call. As written, this precondition includes bytes in
-ranges, even after they have been explicitly unregistered
-with a later call to <tt>undeclare_no_pointers</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Update 20.7.4 [util.dynamic.safety] p.9:
-</p>
-<blockquote><pre>
-void declare_no_pointers(char *p, size_t n);
-</pre><blockquote><p>
-<tt>9</tt> <em>Requires</em>: No bytes in the specified range <del>have been
-previously registered</del><ins>are currently registered</ins> with <tt>declare_no_pointers()</tt>.
-If the specified range is in an allocated object, then it must be entirely within a single allocated object.
-The object must be live until the corresponding <tt>undeclare_no_pointers()</tt> call. [..]
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1409"></a>1409. Specify whether <tt>monotonic_clock</tt> is a distinct type or a typedef</h3>
-<p><b>Section:</b> X [time.clock.monotonic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.monotonic">issues</a> in [time.clock.monotonic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-111</b></p>
-<p>
-What it means for <tt>monotonic_clock</tt> to be a synonym is
-undefined. If it may or may not be a typedef, then certain
-classes of programs become unportable.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment:
-]</i></p>
-
-<p>
-Require that it be a distinct class type.
-</p>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-<blockquote><p>
-Paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3128.html">n3128</a> addresses
-this issue by replacing <tt>monotonic_clock</tt> with <tt>steady_clock</tt>, which is not a typedef.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This is resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3191.htm">n3191</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1410"></a>1410. Add a feature-detect macro for <tt>monotonic_clock</tt></h3>
-<p><b>Section:</b> X [time.clock.monotonic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.monotonic">issues</a> in [time.clock.monotonic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1411">1411</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-107, DE-20</b></p>
-<p>
-1.4 [intro.compliance] p.9 states that which conditionally
-supported constructs are available should be provided in the 
-documentation for the implementation. This doesn't help programmers trying
-to write portable code, as they must then rely on
-implementation-specific means to determine the
-availability of such constructs. In particular, the presence
-or absence of <tt>std::chrono::monotonic_clock</tt> may require
-different code paths to be selected. This is the only
-conditionally-supported library facility, and differs from the
-conditionally-supported language facilities in that it has
-standard-defined semantics rather than implementation-defined
-semantics.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment:
-]</i></p>
-
-<p>
-Provide feature test macro for determining the
-presence of <tt>std::chrono::monotonic_clock</tt>. Add
-<tt>_STDCPP_HAS_MONOTONIC_CLOCK</tt> to the
-<tt>&lt;chrono&gt;</tt> header, which is defined if
-<tt>monotonic_clock</tt> is present, and not defined if it is
-not present.
-</p>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-<blockquote><p>
-Paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3128.html">n3128</a> addresses
-this issue by replacing <tt>monotonic_clock</tt> with <tt>steady_clock</tt>, which is not conditionally supported,
-so there is no need to detect it.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-This is resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3191.htm">n3191</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1412"></a>1412. Make monotonic clocks mandatory</h3>
-<p><b>Section:</b> X [time.clock.monotonic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.clock.monotonic">issues</a> in [time.clock.monotonic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-21</b></p>
-<p>
-Monotonic clocks are generally easy to provide on all
-systems and are implicitely required by some of the library
-facilities anyway.
-</p>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-<blockquote><p>
-Paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3128.html">n3128</a> addresses
-this issue by replacing <tt>monotonic_clock</tt> with <tt>steady_clock</tt>, which is mandatory.
-</p></blockquote>
-
-<p><i>[
-2010-11-13 Batavia meeting:
-]</i></p>
-
-<p>
-This is resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3191.htm">n3191</a>.
-The original resolution is preserved for reference:
-</p>
-<blockquote>
-<p>Make monotonic clocks mandatory.</p>
-<p>Strike X [time.clock.monotonic] p.2</p>
-<blockquote><p>
-<tt>2</tt> <del>The class <tt>monotonic_clock</tt> is conditionally supported.</del>
-</p></blockquote>
-
-<p>Change 30.2.4 [thread.req.timing] p.2 accordingly</p>
-<blockquote><p>
-The member functions whose names end in <tt>_for</tt> take an argument that
-specifies a relative time. Implementations should use a monotonic clock to
-measure time for these functions. <del>[ <em>Note</em>: Implementations are not
-required to use a monotonic clock because such a clock may not be available.
-&mdash; <em>end note</em> ]</del>
-</p></blockquote>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-This is resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3191.htm">n3191</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1414"></a>1414. Fixing remaining dead links to <tt>POS_T</tt> and <tt>OFF_T</tt></h3>
-<p><b>Section:</b> 21.2.3.2 [char.traits.specializations.char16_t] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1444">1444</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-109, GB-123</b></p>
-
-<p>
-It is not clear what the specification means for
-<tt>u16streampos</tt>, <tt>u32streampos</tt> or <tt>wstreampos</tt> when they
-refer to the requirements for <tt>POS_T</tt> in 21.2.2, as there
-are no longer any such requirements. Similarly the annex
-D.7 refers to the requirements of type <tt>POS_T</tt> in 27.3 that
-no longer exist either.
-</p>
-<p>
-Clarify the meaning of all cross-reference to the
-removed type <tt>POS_T</tt>.
-</p>
-
-
-<p><i>[
-Post-Rapperswil, Daniel provides the wording.
-]</i></p>
-
-
-<p>
-When preparing the wording for this issue I first thought about adding both <tt>u16streampos</tt> and <tt>u32streampos</tt>
-to the [iostream.forward] header <tt>&lt;iosfwd&gt;</tt> synopsis similar to <tt>streampos</tt> and <tt>wstreampos</tt>,
-but decided not to do so, because the IO library does not yet actively support the <tt>char16_t</tt> and <tt>char32_t</tt> 
-character types. Adding those would misleadingly imply that they would be part of the iostreams. Also, the addition
-would make them also similarly equal to a typedef to <tt>fpos&lt;mbstate_t&gt;</tt>, as for <tt>streampos</tt> and 
-<tt>wstreampos</tt>, so there is no loss for users that would like to use the proper <tt>fpos</tt> instantiation for
-these character types.
-</p>
-<p>
-Additionally the way of referencing was chosen to follow the style suggested by NB comment 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3118.html#GB108">GB 108</a>.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with proposed wording after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-<i>The following wording changes are against N3126.</i>
-</p>
-
-<ol>
-<li><p>Change [char.traits.specializations.char16_t]p.1 as indicated:</p>
-<blockquote><p>
-1 - The type <tt>u16streampos</tt> shall be an implementation-defined type that satisfies the requirements 
-for <del><tt>POS_T</tt> in 21.2.2</del><ins><tt>pos_type</tt> in [iostreams.limits.pos]</ins>.
-</p></blockquote>
-</li>
-<li><p>Change [char.traits.specializations.char32_t]p.1 as indicated:</p>
-<blockquote><p>
-1 - The type <tt>u32streampos</tt> shall be an implementation-defined type that satisfies the requirements 
-for <del><tt>POS_T</tt> in 21.2.2</del><ins><tt>pos_type</tt> in [iostreams.limits.pos]</ins>.
-</p></blockquote>
-</li>
-<li><p>Change [char.traits.specializations.wchar.t]p.2 as indicated:</p>
-<blockquote><p>
-2 - The type <tt>wstreampos</tt> shall be an implementation-defined type that satisfies the requirements 
-for <del><tt>POS_T</tt> in 21.2.2</del><ins><tt>pos_type</tt> in [iostreams.limits.pos]</ins>.
-</p></blockquote>
-</li>
-<li><p>Change [fpos.operations], Table 124 &mdash; Position type requirements as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 124 &mdash; Position type requirements</caption>
-
-<tbody>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th><tt>...</tt></th>
-</tr>
-
-<tr>
-<td><tt>...</tt></td>
-<td><tt>...</tt></td>
-<td><tt>...</tt></td>
-</tr>
-<tr>
-<td><tt>O(p)</tt></td>
-<td><del><tt>OFF_T</tt></del><ins><tt>streamoff</tt></ins></td>
-<td>...</td>
-</tr>
-<tr>
-<td><tt>...</tt></td>
-<td><tt>...</tt></td>
-<td><tt>...</tt></td>
-</tr>
-<tr>
-<td><tt>o = p - q</tt></td>
-<td><del><tt>OFF_T</tt></del><ins><tt>streamoff</tt></ins></td>
-<td><tt>...</tt></td>
-</tr>
-<tr>
-<td><tt>streamsize(o)</tt><br/><tt>O(sz)</tt></td>
-<td><tt>streamsize</tt><br/><del><tt>OFF_T</tt></del><ins><tt>streamoff</tt></ins></td>
-<td><tt>...</tt></td>
-</tr>
-
-</tbody></table>
-</blockquote>
-</li>
-<li><p>Change [depr.ios.members]p.1 as indicated:</p>
-<blockquote><pre>
-namespace std {
- class ios_base {
- public:
-   typedef T1 io_state;
-   typedef T2 open_mode;
-   typedef T3 seek_dir;
-   typedef <del>OFF_T</del><ins><em>implementation-defined</em></ins> streamoff;
-   typedef <del>POS_T</del><ins><em>implementation-defined</em></ins> streampos;
-   // remainder unchanged
- };
-}
-</pre></blockquote>
-</li>
-<li><p>Change [depr.ios.members]p.5+6 as indicated:</p>
-<blockquote><p>
-5 - The type <tt>streamoff</tt> is an implementation-defined type that satisfies the requirements 
-of <del>type <tt>OFF_T</tt> (27.5.1)</del><ins><tt>off_type</tt> in [iostreams.limits.pos]</ins>.
-</p>
-<p>
-6 - The type <tt>streampos</tt> is an implementation-defined type that satisfies the requirements 
-of <del>type <tt>POS_T</tt> (27.3)</del><ins><tt>pos_type</tt> in [iostreams.limits.pos]</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1416"></a>1416. <tt>forward_list::erase_after</tt> should not be allowed to throw</h3>
-<p><b>Section:</b> 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements">active issues</a> in [container.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements">issues</a> in [container.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses DE-21</b></p>
-
-<p>
-23.2.1&#47;11 provides a general no-throw guarantee for
-erase() container functions, exceptions from this are
-explicitly mentioned for individual containers. Because of
-its different name, forward_list's erase_after() function is
-not ruled by this but should so.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add a "<i>Throws</i>: Nothing" clause to both
-<tt>erase_after</tt> overloads in 23.3.3.4, [forwardlist.modifiers].
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1417"></a>1417. <tt>front&#47;back</tt> on a zero-sized <tt>array</tt> should be undefined</h3>
-<p><b>Section:</b> 23.3.2.8 [array.zero] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#array.zero">issues</a> in [array.zero].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-112</b></p>
-
-<p>
-Should the effect of calling <tt>front&#47;back</tt> on a zero-sized
-<tt>array</tt> really be implementation defined i.e. require the
-implementor to define behaviour?
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Change "implementation defined" to "undefined"
-</p>
-
-
-
-
-<hr>
-<h3><a name="1418"></a>1418. Effects of <tt>resize(size())</tt> on a <tt>deque</tt></h3>
-<p><b>Section:</b> 23.3.3.3 [deque.capacity] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.capacity">issues</a> in [deque.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-113</b></p>
-<p>
-There is no mention of what happens if <tt>sz==size()</tt>. While
-it obviously does nothing I feel a standard needs to say
-this explicitely.
-</p>
-
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-Accepted with a simplified resolution turning one of the <tt>&lt;</tt>
-comparisons into <tt>&lt;=.</tt>
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>Ammend [deque.capacity]</p>
-<p><tt>void resize(size_type sz);</tt></p>
-<p>
-<i>Effects</i>: If <tt>sz &lt;<ins>=</ins> size()</tt>, equivalent to <tt>erase(begin() +
-sz, end());</tt>. If <tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> <del>default 
-constructed</del><ins>value initialized</ins> elements to the sequence.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1420"></a>1420. Effects of <tt>resize(size())</tt> on a <tt>list</tt></h3>
-<p><b>Section:</b> 23.3.5.3 [list.capacity] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.capacity">issues</a> in [list.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-115</b></p>
-<p>
-There is no mention of what happens if <tt>sz==size()</tt>. While
-it obviously does nothing I feel a standard needs to say
-this explicitely.
-</p>
-
-<p><i>[
-Resolution proposed in ballot comment
-]</i></p>
-
-<p>
-Express the semantics as pseudo-code similarly
-to the way it is done for the copying overload that
-follows (in p3). Include an else clause that does
-nothing and covers the <tt>sz==size()</tt> case.
-</p>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-Accepted with a simplified resolution turning one of the <tt>&lt;</tt>
-comparisons into <tt>&lt;=.</tt>
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Ammend [list.capacity] p1:
-</p>
-<blockquote>
-<p><tt>void resize(size_type sz);</tt></p>
-<blockquote><p>
-<i>Effects</i>: If <tt>sz &lt;<ins>=</ins> size()</tt>, equivalent to <tt>list&lt;T&gt;::iterator
-it = begin(); advance(it, sz); erase(it, end());</tt>. If
-<tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> <del>default constructed</del>
-<ins>value initialized</ins> elements to the sequence<del></del>.
-</p></blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1421"></a>1421. Accidental move-only library types due to new core language rules</h3>
-<p><b>Section:</b> 23.6 [container.adaptors] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> DIN <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1350">1350</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses DE-22, CH-15</b></p>
-<p>
-With the final acceptance of move operations as special
-members and introduction of corresponding suppression
-rules of implicitly generated copy operations the some
-library types that were copyable in C++03 are no longer
-copyable (only movable) in C++03, among them <tt>queue</tt>,
-<tt>priority_queue</tt>, and <tt>stack</tt>.
-</p>
-
-<p><i>[
-2010-10-26: Daniel comments:
-]</i></p>
-
-
-<p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3112.pdf">n3112</a> should fix this.
-</p>
-
-<p><i>[2011-02-17: Lawrence comments:]</i></p>
-
-
-<p>
-The only open issue in CH 15 with respect to the concurrency group
-was the treatment of <tt>atomic_future</tt>. Since we removed <tt>atomic_future</tt>
-in Batavia, I think all that remains is to remove the open issue from 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3112.pdf">N3112</a> and adopt it.
-</p>
-
-<p><i>[2011-03-23 Madrid meeting]</i></p>
-
-
-<p>Resolved by N3264</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3112.pdf">n3112</a>
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1423"></a>1423. <tt>map</tt> constructor accepting an allocator as single parameter should be explicit</h3>
-<p><b>Section:</b> 23.4.4 [map] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map">issues</a> in [map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-6</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter should be qualified as explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key, class T, class Compare =
-less&lt;Key&gt;,
-class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-class map {
-public:
-...
-map(const Allocator&amp;);
-</pre>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key, class T, class Compare =
-less&lt;Key&gt;,
-class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-class map {
-public:
-...
-<ins>explicit</ins> map(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1424"></a>1424. <tt>multimap</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.4.5 [multimap] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-7</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key, class T, class Compare =
-less&lt;Key&gt;,
-class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt;
-class multimap {
-public:
-...
-<ins>explicit</ins> multimap(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1425"></a>1425. <tt>set</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.4.6 [set] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#set">issues</a> in [set].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-8</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key, class Compare = less&lt;Key&gt;,
-class Allocator = allocator&lt;Key&gt; &gt;
-class set {
-public:
-...
-<ins>explicit</ins> set(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1426"></a>1426. <tt>multiset</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.4.7 [multiset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-9</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key, class Compare = less&lt;Key&gt;,
-class Allocator = allocator&lt;Key&gt; &gt;
-class multiset {
-public:
-...
-<ins>explicit</ins> multiset(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1427"></a>1427. <tt>unordered_map</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.5.4 [unord.map] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.map">issues</a> in [unord.map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-10</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key,
-template &lt;class Key,
-class T,
-class Hash = hash&lt;Key&gt;,
-class Pred = std::equal_to&lt;Key&gt;,
-class Alloc = std::allocator&lt;std::pair&lt;const Key,
-T&gt; &gt; &gt;
-class unordered_map
-{
-public:
-...
-<ins>explicit</ins> unordered_map(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1428"></a>1428. <tt>unordered_multimap</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.5.5 [unord.multimap] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-11</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key,
-class T,
-class Hash = hash&lt;Key&gt;,
-class Pred = std::equal_to&lt;Key&gt;,
-class Alloc = std::allocator&lt;std::pair&lt;const Key,
-T&gt; &gt; &gt;
-class unordered_multimap
-{
-public:
-...
-<ins>explicit</ins> unordered_multimap(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1429"></a>1429. <tt>unordered_set</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.5.6 [unord.set] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-12</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key,
-class Hash = hash&lt;Key&gt;,
-class Pred = std::equal_to&lt;Key&gt;,
-class Alloc = std::allocator&lt;Key&gt; &gt;
-class unordered_set
-{
-public:
-...
-<ins>explicit</ins> unordered_set(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1430"></a>1430. <tt>unordered_multiset</tt> constructor accepting an allocator as a single parameter should be explicit</h3>
-<p><b>Section:</b> 23.5.7 [unord.multiset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Japan <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses JP-13</b></p>
-
-<p>
-Constructor accepting an allocator as a single parameter
-should be qualified as explicit.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add explicit.</p>
-<pre>
-namespace std {
-template &lt;class Key,
-class Hash = hash&lt;Key&gt;,
-class Pred = std::equal_to&lt;Key&gt;,
-class Alloc = std::allocator&lt;Key&gt; &gt;
-class unordered_multiset
-{
-public:
-...
-explicit unordered_multiset(const Allocator&amp;);
-</pre>
-
-
-
-
-
-<hr>
-<h3><a name="1431"></a>1431. <tt>is_permutation</tt> must be more restrictive</h3>
-<p><b>Section:</b> 25.2.12 [alg.is_permutation] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-120</b></p>
-
-<p>
-<tt>is_permutation</tt> is underspecified for anything but the
-simple case where both ranges have the same value type
-and the comparison function is an equivalence relation.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Restrict <tt>is_permutation</tt> to the case where it is well
-specified. See Appendix 1 - Additional Details
-</p>
-
-
-
-
-<hr>
-<h3><a name="1432"></a>1432. <tt>random_shuffle</tt> signatures are inconsistent</h3>
-<p><b>Section:</b> 25.3.12 [alg.random.shuffle] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.random.shuffle">issues</a> in [alg.random.shuffle].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1433">1433</a></p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US-121, GB-119</b></p>
-
-<p>
-<tt>random_shuffle</tt> and <tt>shuffle</tt> should be consistent in how
-they accept their source of randomness: either both by rvalue reference or 
-both by lvalue reference.
-</p>
-
-<p><i>[
-Post-Rapperswil, Daniel provided wording
-]</i></p>
-
-
-<p>
-The signatures of the <tt>shuffle</tt> and <tt>random_shuffle</tt> algorithms are different
-in regard to the support of rvalues and lvalues of the provided generator:
-</p>
-
-<blockquote><pre>
-template&lt;class RandomAccessIterator, class RandomNumberGenerator&gt;
-void random_shuffle(RandomAccessIterator first,
-RandomAccessIterator last,
-RandomNumberGenerator<b>&amp;&amp;</b> rand);
-</pre></blockquote>
-
-<blockquote><pre>
-template&lt;class RandomAccessIterator, class UniformRandomNumberGenerator&gt;
-void shuffle(RandomAccessIterator first,
-RandomAccessIterator last,
-UniformRandomNumberGenerator<b>&amp;</b> g);
-</pre></blockquote>
-
-<p>
-The first form uses the perfect forwarding signature and that change compared to
-<tt>C++03</tt> was done intentionally as shown in the first rvalue proposal 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1690.html#Improved%20random_shuffle">papers</a>.
-</p>
-
-<p>
-While it is true, that random generators are excellent examples of stateful
-functors, there still exist good reasons to support rvalues as arguments:
-</p>
-
-<ol>
-<li>If one of the shuffle algorithms is called with the intention to shuffle items with a reproducible ordering 
-	from a given generator class, it makes sense to create a generator exactly at the call point.
-</li>
-<li>Other algorithms with similar need for stateful functors (like <tt>std::generate</tt> and <tt>std::generate_n</tt>) 
-	accept both rvalues and lvalues as well.
-</li>
-<li>Given the deduction rules for perfect forwarding it is hard for a user to produce code that does the wrong thing 
-unintentionally. Any lvalue generator will deduce an lvalue-reference and behave as in <tt>C++03</tt>. In the specific 
-cases, where rvalues are provided, the argument will be accepted instead of being rejected.
-</li>
-</ol>
-
-<p>
-Arguments have been raised that accepting rvalues is error-prone or even fundamentally wrong. The author of this 
-proposal disagrees with that position for two additional reasons:
-</p>
-
-<ol>
-<li>Enforcing lvalues as arguments won't prevent user code to enforce what they
-want. So given
-<blockquote><pre>
-my_generator get_generator(int size);
-</pre></blockquote>
-instead of writing
-<blockquote><pre>
-std::vector&lt;int&gt; v = ...;
-std::shuffle(v.begin(), v.end(), get_generator(v.size()));
-</pre></blockquote>
-they will just write
-<blockquote><pre>
-std::vector&lt;int&gt; v = ...;
-auto gen = get_generator(v.size());
-std::shuffle(v.begin(), v.end(), gen);
-</pre></blockquote>
-and feel annoyed about the need for it.
-</li>
-<li>Generators may be copyable and movable, and random number engines are <em>required</em> to be <tt>CopyConstructible</tt> 
-and this is obviously a generally useful property for such objects. It is also useful and sometimes necessary to start a 
-generator with exactly a specific seed again and again and thus to provide a new generator (or a copy) for each call. The 
-<tt>CopyConstructible</tt> requirements allow providing rvalues of generators and thus this idiom must be useful as well. 
-Therefore preventing <tt>[random_]shuffle</tt> to accept rvalues is an unnecessary restriction which doesn't prevent any 
-user-error, if there would exist one.
-</li>
-</ol>
-
-<p>
-Thus this proposal recommends to make both <tt>shuffle</tt> functions consistent and perfectly forward-able.
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready after 6 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>Change [algorithms.general], header <tt>&lt;algorithm&gt;</tt> synopsis as indicated:
-<blockquote><pre>
-template&lt;class RandomAccessIterator, class UniformRandomNumberGenerator&gt;
-void shuffle(RandomAccessIterator first, RandomAccessIterator last,
-UniformRandomNumberGenerator&amp;<ins>&amp;</ins> rand);
-</pre></blockquote>
-</li>
-<li>Change the prototype description of [alg.random.shuffle] as indicated:
-<blockquote><pre>
-template&lt;class RandomAccessIterator, class UniformRandomNumberGenerator&gt;
-void shuffle(RandomAccessIterator first, RandomAccessIterator last,
-UniformRandomNumberGenerator&amp;<ins>&amp;</ins> rand);
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1435"></a>1435. Unclear returns specifications for C99 complex number functions</h3>
-<p><b>Section:</b> 26.4.7 [complex.value.ops] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.value.ops">issues</a> in [complex.value.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-120</b></p>
-
-<p>
-The complex number functions added for compatibility
-with the C99 standard library are defined purely as a
-cross-reference, with no hint of what they should return.
-This is distinct from the style of documentation for the
-functions in the earlier standard. In the case of the
-inverse-trigonometric and hyperbolic functions, a
-reasonable guess of the functionality may be made from
-the name, this is not true of the cproj function, which
-apparently returns the projection on the Reimann Sphere.
-A single line description of each function, associated with
-the cross-reference, will greatly improve clarity.
-</p>
-
-<p><i>[2010-11-06 Beman provides proposed resolution wording.]</i></p>
-
-
-<p><i>[
-2010 Batavia: The working group concurred with the issue's Proposed Resolution
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>Change 26.4.7 complex value operations [complex.value.ops] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; proj(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i> the projection of <tt>x</tt> onto the Riemann 
-    sphere.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>cproj</tt>, 
-    defined in 7.3.9.4.</p>
-  </blockquote>
-</blockquote>
-
-<p><i>Change 26.4.8 complex transcendentals [complex.transcendentals] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; acos(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i>&nbsp; the complex arc cosine  of <tt>x</tt>.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>cacos</tt>, 
-    defined in 7.3.5.1.</p>
-  </blockquote>
-</blockquote>
-
-<p><i>Change 26.4.8 complex transcendentals [complex.transcendentals] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; asin(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i>&nbsp; the complex arc sine  of <tt>x</tt>.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>casin</tt>, 
-    defined in 7.3.5.2.</p>
-  </blockquote>
-</blockquote>
-
-<p><i>Change 26.4.8 complex transcendentals [complex.transcendentals] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; atan(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i>&nbsp; the complex arc tangent  of <tt>x</tt>.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>catan</tt>, 
-    defined in 7.3.5.3.</p>
-  </blockquote>
-</blockquote>
-
-<p><i>Change 26.4.8 complex transcendentals [complex.transcendentals] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; acosh(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i>&nbsp; the complex arc hyperbolic cosine of
-    <tt>x</tt>.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>cacosh</tt>, 
-    defined in 7.3.6.1.</p>
-  </blockquote>
-</blockquote>
-
-<p><i>Change 26.4.8 complex transcendentals [complex.transcendentals] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; asinh(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i>&nbsp; the complex arc hyperbolic sine  of <tt>
-    x</tt>.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>casinh</tt>, 
-    defined in 7.3.6.2.</p>
-  </blockquote>
-</blockquote>
-
-<p><i>Change 26.4.8 complex transcendentals [complex.transcendentals] as indicated:</i></p>
-<blockquote>
-  <p><tt>template&lt;class T&gt; complex&lt;T&gt; atanh(const complex&lt;T&gt;&amp; x);</tt></p>
-  <blockquote>
-    <p><ins><i>Returns:</i>&nbsp; the complex arc hyperbolic tangent  of
-    <tt>x</tt>.</ins></p>
-    <p><del><i>Effects:</i></del> <ins><i>Remarks:</i></ins> Behaves the same as the C function <tt>catanh</tt>, 
-    defined in 7.3.6.2.</p>
-  </blockquote>
-</blockquote>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="1436"></a>1436. Random number engine constructor concerns</h3>
-<p><b>Section:</b> 26.5.3 [rand.eng] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng">issues</a> in [rand.eng].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-121</b></p>
-
-<p>
-All the random number engine types in this clause have a
-constructor taking an unsigned integer type, and a
-constructor template for seed sequences. This means that
-an attempt to create a random number engine seeded by
-an integer literal must remember to add the appropriate
-unsigned suffix to the literal, as a signed integer will
-attempt to use the seed sequence template, yielding
-undefined behaviour, as per 26.5.1.1p1a. It would be
-helpful if at least these anticipated cases produced a
-defined behaviour, either an erroneous program with
-diagnostic, or a conversion to unsigned int forwarding to
-the appropriate constructor.
-</p>
-
-<p><i>[
-2010-11-03 Daniel comments and provides a proposed resolution:
-]</i></p>
-
-
-<p>
-I suggest to apply a similar solution as recently suggested for <a href="lwg-defects.html#1234">1234</a>.
-It is basically a requirement for an implementation to constrain the template.
-</p>
-
-<p><i>[
-2010-11-04 Howard suggests to use <tt>!is_convertible&lt;Sseq, result_type&gt;::value</tt>
-as minimum requirement instead of the originally proposed <tt>!is_scalar&lt;Sseq&gt;::value</tt>.
-This would allow for a user-defined type <tt>BigNum</tt>, that is convertible to <tt>result_type</tt>,
-to be used as argument for a seed instead of a seed sequence. The wording has been updated to 
-reflect this suggestion.
-]</i></p>
-
-
-<p><i>[
-2010 Batavia: There were some initial concerns regarding the portability and reproducibility of results 
-when seeded with a negative signed value, but these concerns were allayed after discussion. Thus, after
-reviewing the issue, the working group concurred with the issue's Proposed Resolution. 
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Add the following paragraph at the end of 26.5.3 [rand.eng]:
-</p>
-<blockquote>
-<blockquote><p>
-5 Each template specified in this section [rand.eng] requires one or more relationships, involving the value(s) of
-its non-type template parameter(s), to hold. A program instantiating any of these templates is ill-formed if
-any such required relationship fails to hold.
-</p></blockquote>
-
-<blockquote><p>
-<ins>? For every random number engine and for every random number engine adaptor <tt>X</tt> defined in this sub-clause 
-[rand.eng] and in sub-clause [rand.adapt]:</ins></p>
-<ul>
-<li><ins>If the constructor</ins>
-<blockquote><pre>
-<ins>template&lt;class Sseq&gt; explicit X(Sseq&amp; q);</ins>
-</pre></blockquote><p>
-<ins>is called with a type <tt>Sseq</tt> that does not qualify as a seed sequence, then this constructor 
-shall not participate in overload resolution.
-</ins></p>
-</li>
-<li><ins>If the member function</ins>
-<blockquote><pre>
-<ins>template&lt;class Sseq&gt; void seed(Sseq&amp; q);</ins>
-</pre></blockquote><p>
-<ins>is called with a type <tt>Sseq</tt> that does not qualify as a seed sequence, then this function 
-shall not participate in overload resolution.
-</ins></p>
-</li>
-</ul>
-<p>
-<ins>The extent to which an implementation determines that a type cannot be a seed sequence is unspecified,
-except that as a minimum a type shall not qualify as seed sequence, if it is implicitly convertible
-to <tt>X::result_type</tt>.</ins>
-</p>
-</blockquote>
-
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1437"></a>1437. Mersenne twister meaningless for word sizes less than two</h3>
-<p><b>Section:</b> 26.5.3.2 [rand.eng.mers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.eng.mers">issues</a> in [rand.eng.mers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-124</b></p>
-
-<p>
-The Mersenne twister algorithm is meaningless for word
-sizes less than two, as there are then insufficient bits
-available to be &#8220;twisted&#8221;.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Insert the following among the relations that are required to hold: <tt>2u &lt; w</tt>.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia: The working group concurred with the issue's Proposed Resolution
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change 26.5.3.2 [rand.eng.mers] p. 4 as indicated:
-</p>
-<blockquote><p>
-4 The following relations shall hold: <tt>0 &lt; m</tt>, <tt>m &lt;= n</tt>, <ins><tt>2u &lt; w</tt>,</ins>
-<tt>r &lt;= w</tt>, <tt>u &lt;= w</tt>, <tt>s &lt;= w</tt>, <tt>t &lt;= w</tt>, 
-<tt>l &lt;= w</tt>, <tt>w &lt;= numeric_limits&lt;UIntType&gt;::digits</tt>, 
-<tt>a &lt;= (1u&lt;&lt;w) - 1u</tt>, <tt>b &lt;= (1u&lt;&lt;w) - 1u</tt>, 
-<tt>c &lt;= (1u&lt;&lt;w) - 1u</tt>, <tt>d &lt;= (1u&lt;&lt;w) - 1u</tt>, 
-and <tt>f &lt;= (1u&lt;&lt;w) - 1u</tt>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1438"></a>1438. No definition for <tt>base()</tt></h3>
-<p><b>Section:</b> 26.5.4.2 [rand.adapt.disc] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.adapt.disc">issues</a> in [rand.adapt.disc].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-126</b></p>
-
-<p>Each adaptor has a member function called <tt>base()</tt> which has no definition.</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Give it the obvious definition.
-</p></blockquote>
-
-<p><i>[
-2010-11-03 Daniel comments and provides a proposed resolution:
-]</i></p>
-
-
-<p>The following proposal adds <tt>noexcept</tt> specifiers to the declarations of
-the <tt>base()</tt> functions as replacement for a &quot;<i>Throws</i>: Nothing&quot; element.
-</p>
-
-<p><i>[
-2010 Batavia: The working group reviewed this issue, and recommended to add the following to the Proposed Resolution.
-]</i></p>
-
-<ul><li>
-Append to paragraph 1 of [rand.req.adapt] (or at the Editor's discretion insert as a new paragraph following that paragraph): 
-The expression <tt>a.base()</tt> shall be valid and shall return a const reference to <tt>a</tt>'s base engine. 
-</li>
-</ul>
-<p>
-After further review, the working group concurred with the Proposed Resolution.
-</p>
-
-
-<p><i>[Batavia: waiting for WEB to review wording]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-Add the following sentence to the end of 26.5.1.5 [rand.req.adapt]/1:
-<blockquote><p>
-A <i>random number engine adaptor</i> (commonly shortened to <i>adaptor</i>) <tt>a</tt> of type <tt>A</tt> is a
-random number engine that takes values produced by some other random number engine, and applies an algorithm to
-those values in order to deliver a sequence of values with different randomness properties. An engine <tt>b</tt>
-of type <tt>B</tt> adapted in this way is termed a <i>base engine</i> in this context.<ins> The expression
-<tt>a.base()</tt> shall be valid and shall return a const reference to <tt>a</tt>'s base engine.</ins>
-</p></blockquote>
-</li>
-<li>Change in [rand.adapt.disc]/3, class template <tt>discard_block_engine</tt> synopsis, the following declaration:
-<blockquote><pre>
-// <em>property functions</em>
-const Engine&amp; base() const <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-<li>Add the following new prototype description at the end of sub-clause 26.5.4.2 [rand.adapt.disc]:
-<blockquote>
-<pre><ins>const Engine&amp; base() const noexcept;</ins>
-</pre>
-<blockquote><p>
-<ins>? <i>Returns</i>: <tt>e</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-<li>Change in [rand.adapt.ibits]/4, class template <tt>independent_bits_engine</tt> synopsis, the following declaration:
-<blockquote><pre>
-// <em>property functions</em>
-const Engine&amp; base() const <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-<li>Add the following new prototype description at the end of sub-clause 26.5.4.3 [rand.adapt.ibits]:
-<blockquote>
-<pre><ins>const Engine&amp; base() const noexcept;</ins>
-</pre>
-<blockquote><p>
-<ins>? <i>Returns</i>: <tt>e</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-<li>Change in 26.5.4.4 [rand.adapt.shuf]/3, class template <tt>shuffle_order_engine</tt> synopsis, the following declaration:
-<blockquote><pre>
-// <em>property functions</em>
-const Engine&amp; base() const <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-<li>Add the following new prototype description at the end of sub-clause 26.5.4.4 [rand.adapt.shuf]:
-<blockquote>
-<pre><ins>const Engine&amp; base() const noexcept;</ins>
-</pre>
-<blockquote><p>
-<ins>? <i>Returns</i>: <tt>e</tt>.</ins>
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1439"></a>1439. Return from <tt>densities()</tt> functions?</h3>
-<p><b>Section:</b> 26.5.8.6.2 [rand.dist.samp.pconst] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.dist.samp.pconst">issues</a> in [rand.dist.samp.pconst].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-134</b></p>
-
-<p>
-These two distributions have a member function called
-<tt>densities()</tt> which returns a <tt>vector&lt;double&gt;</tt>. The
-distribution is templated on <tt>RealType</tt>. The distribution
-also has another member called <tt>intervals()</tt> which returns
-a <tt>vector&lt;RealType&gt;</tt>. Why doesn't densities return
-<tt>vector&lt;RealType&gt;</tt> as well? If <tt>RealType</tt> is <tt>long double</tt>,
-the computed densities property isn't being computed to
-the precision the client desires. If <tt>RealType</tt> is <tt>float</tt>, the
-densities vector is taking up twice as much space as the client desires.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote>
-<p>
-Change the piecewise constant and linear
-distributions to hold / return the densities in a
-<tt>vector&lt;result_type&gt;</tt>.
-<p/>
-If this is not done, at least correct 26.5.8.6.2 [rand.dist.samp.pconst] p. 13 which describes
-the return of densities as a <tt>vector&lt;result_type&gt;</tt>.
-</p></blockquote>
-
-<p><i>[
-Batavia 2010: After reviewing this issue, the working group concurred with the first of the 
-suggestions proposed by the NB comment: "Change the piecewise constant and linear distributions 
-to hold&#47;return the densities in a vector. "
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 26.5.8.6.2 [rand.dist.samp.pconst] p. 2, class template <tt>piecewise_constant_distribution</tt> synopsis
-and the prototype description 26.5.8.6.2 [rand.dist.samp.pconst] before p. 13 as indicated:
-<blockquote><pre>
-vector&lt;<del>double</del><ins>result_type</ins>&gt; densities() const;
-</pre></blockquote>
-</li>
-
-<li>Change 26.5.8.6.3 [rand.dist.samp.plinear] p. 2, class template <tt>piecewise_linear_distribution</tt> synopsis
-and the prototype description 26.5.8.6.3 [rand.dist.samp.plinear] before p. 13 as indicated:
-<blockquote><pre>
-vector&lt;<del>double</del><ins>result_type</ins>&gt; densities() const;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1440"></a>1440. Incorrect specification for <tt>piecewise_linear_distribution</tt></h3>
-<p><b>Section:</b> 26.5.8.6.3 [rand.dist.samp.plinear] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-135</b></p>
-
-<p>
-This paragraph says: Let bk = xmin+k&middot;&delta; for k = 0,...,n,
-and wk = fw(bk +&delta;) for k = 0,...,n.
-However I believe that fw(bk) would be far more desirable.
-I strongly suspect that this is nothing but a type-o.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Change p. 10 to read:<br/>
-Let bk = xmin+k&middot;&delta; for k = 0,...,n, and wk = fw(bk)
-for k = 0,...,n.
-</p></blockquote>
-
-<p><i>[
-2010-11-02 Daniel translates into a proposed resolution
-]</i></p>
-
-
-<p><i>[
-2010 Batavia: The working group concurred with the issue's Proposed Resolution
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 26.5.8.6.3 [rand.dist.samp.plinear] p. 10 as indicated:</p>
-<blockquote><p>
-10 <em>Effects</em>: Constructs a <tt>piecewise_linear_distribution</tt> object with parameters taken or calculated
-from the following values: Let <tt><em>b<sub>k</sub></em> = xmin+<em>k</em>&middot;&delta;</tt> for 
-<tt><em>k</em> = 0, . . . , <em>n</em></tt>, and <tt><em>w<sub>k</sub></em> = fw(<em>b</em><sub><em>k</em></sub><del> +&delta;</del>)</tt> 
-for <tt><em>k</em> = 0, . . . , <em>n</em></tt>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1441"></a>1441. Floating-point test functions are incorrectly specified</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-136</b></p>
-
-<p>
-Floating-point test functions are incorrectly specified.
-</p>
-
-<p><i>[
-Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>See Appendix 1 - Additional Details</p>
-
-
-
-
-
-<hr>
-<h3><a name="1445"></a>1445. Several iostreams member functions incorrectly specified</h3>
-<p><b>Section:</b> 27.7 [iostream.format] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS&#47;PJ Plauger <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.format">issues</a> in [iostream.format].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-137</b></p>
-
-<p>
-Several iostreams member functions are incorrectly
-specified.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-See Appendix 1 - Additional Details
-</p>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm">n3168</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Addressed by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm">n3168</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1447"></a>1447. Request to resolve issue LWG 1328</h3>
-<p><b>Section:</b> 27.7 [iostream.format] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostream.format">issues</a> in [iostream.format].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-139</b></p>
-
-<p>
-Resolve issue LWG 1328 one way or the other, but
-preferably in the direction outlined in the proposed
-resolution, which, however, is not complete as-is: in any
-case, the sentry must not set <tt>ok_ = false</tt> if <tt>is.good() == false</tt>, 
-otherwise <tt>istream::seekg</tt>, being an unformatted
-input function, does not take any action because the
-sentry object returns false when converted to type <tt>bool</tt>.
-Thus, it remains impossible to seek away from end of file.
-</p>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Addressed by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3168.htm">n3168</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1448"></a>1448. Concerns about <tt>basic_stringbuf::str(basic_string)</tt> postconditions</h3>
-<p><b>Section:</b> 27.8.2.3 [stringbuf.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-124</b></p>
-
-<p>
-N3092 27.8.2.3 [stringbuf.members] contains this text specifying the postconditions of
-<tt>basic_stringbuf::str(basic_string)</tt>:
-</p>
-<blockquote><p>
-Postconditions: If <tt>mode &amp; ios_base::out</tt> is <tt>true</tt>,
-<tt>pbase()</tt> points to the first underlying character and <tt>epptr() >=
-pbase() + s.size()</tt> holds; in addition, if <tt>mode &amp; ios_base::in</tt>
-is <tt>true</tt>, <tt>pptr() == pbase() + s.data()</tt> holds, otherwise
-<tt>pptr() == pbase()</tt> is <tt>true</tt>. [...]
-</p></blockquote>
-<p>
-Firstly, there's a simple mistake: It should be <tt>pbase() + s.length()</tt>,
-not <tt>pbase() + s.data()</tt>.
-</p>
-<p>
-Secondly, it doesn't match existing implementations. As far as I can tell,
-GCC 4.5 does not test for <tt>mode &amp; ios_base::in</tt> in the second part
-of that sentence, but for <tt>mode &amp; (ios_base::app | ios_base_ate)</tt>,
-and Visual C++ 9 for <tt>mode &amp; ios_base::app</tt>. Besides, the wording of
-the C++0x draft doesn't make any sense to me. I suggest changing the second part
-of the sentence to one of the following:
-</p>
-<p>
-Replace <tt>ios_base::in</tt> with <tt>(ios_base::ate | ios_base::app)</tt>,
-but this would require Visual C++ to change (replacing only with
-<tt>ios_base::ate</tt> would require GCC to change, and would make
-<tt>ios_base::app</tt> completely useless with <tt>stringstreams</tt>):
-</p>
-<p>
-in addition, if <tt>mode &amp; (ios_base::ate | ios_base::app)</tt> is <tt>true</tt>,
-<tt>pptr() == pbase() + s.length()</tt> holds, otherwise <tt>pptr() == pbase()</tt>
-is <tt>true</tt>.
-</p>
-<p>
-Leave <tt>pptr()</tt> unspecified if <tt>mode &amp; ios_base::app</tt>, but not
-<tt>mode &amp; ios_base::ate</tt> (implementations already differ in this case, and it
-is always possible to use <tt>ios_base::ate</tt> to get the effect of appending, so it
-is not necessary to require any implementation to change):
-</p>
-<p>
-in addition, if <tt>mode &amp; ios_base::ate</tt> is <tt>true</tt>,
-<tt>pptr() == pbase() + s.length()</tt> holds, if neither <tt>mode &amp; ios_base::ate</tt>
-nor <tt>mode &amp; ios_base::app</tt> is <tt>true</tt>, <tt>pptr() == pbase()</tt> holds,
-otherwise <tt>pptr() >= pbase() &amp;&amp; pptr() &lt;= pbase() + s.length()</tt>
-(which of the values in this range is unspecified).
-</p>
-<p>
-Slightly stricter:
-</p>
-<p>
-in addition, if <tt>mode &amp; ios_base::ate</tt> is <tt>true</tt>,
-<tt>pptr() == pbase() + s.length()</tt> holds, if neither
-<tt>mode &amp; ios_base::ate</tt> nor <tt>mode &amp; ios_base::app</tt> is <tt>true</tt>,
-<tt>pptr() == pbase()</tt> holds, otherwise <tt>pptr() == pbase() || pptr() == pbase() + s.length()</tt>
-(which of these two values is unspecified). A small table might help to better explain the three cases.
-BTW, at the end of the postconditions is this text: &quot;<tt>egptr() == eback() + s.size()</tt> hold&quot;.
-Is there a perference for <tt>basic_string::length</tt> or <tt>basic_string::size</tt>? It doesn't really
-matter, but it looks a bit inconsistent.
-</p>
-
-<p><i>[2011-03-09: Nicolai Josuttis comments and drafts wording]</i></p>
-
-
-<p>First, it seems the current wording is just an editorial mistake.
-When we added issue <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#432">432</a>
-to the draft standard (in <a href="http://www.open-std.org/jtc1/sc22/wg21/prot/14882fdis/n1733.pdf">n1733</a>), 
-the wording in the issue:
-</p>
-
-<blockquote><p>
-If <tt>mode &amp; ios_base::out</tt> is true, initializes the output sequence
-such that <tt>pbase()</tt> points to the first underlying character, <tt>epptr()</tt> 
-points one past the last underlying character, and if <tt>(mode &amp; ios_base::ate)</tt> is true,
-<tt>pptr()</tt> is set equal to <tt>epptr()</tt> else <tt>pptr()</tt> is set equal to 
-<tt>pbase()</tt>.
-</p></blockquote>
-
-<p>became:</p>
-
-<blockquote><p>
-If <tt>mode &amp; ios_base::out</tt> is true, initializes the output sequence
-such that <tt>pbase()</tt> points to the first underlying character, <tt>epptr()</tt> 
-points one past the last underlying character, and <tt>pptr()</tt> is equal to <tt>epptr()</tt>
-if <tt>mode &amp; ios_base::in</tt> is true, otherwise <tt>pptr()</tt> is equal to 
-<tt>pbase()</tt>.
-</p></blockquote>
-
-<p>
-which beside some changes of the order of words changed
-</p>
-<blockquote><pre>
-ios_base::ate
-</pre></blockquote>
-<p>
-into
-</p>
-<blockquote><pre>
-ios_base::in
-</pre></blockquote>
-<p>
-So, from this point of view, clearly <tt>mode &amp; ios_base::ate</tt> was meant.
-</p>
-
-<p>
-Nevertheless, with this proposed resolution we'd have no wording regarding <tt>ios_base::app</tt>.
-Currently the only statements about <tt>app</tt> in the Standard are just in two tables:
-</p>
-<ul>
-<li>Table 125 &mdash; &quot;<tt>openmode</tt> effects&quot; says that the effect of 
-<tt>app</tt> is "seek to end before each write"
-</li>
-
-<li>Table 132 &mdash; &quot;File open modes&quot; says that the stdio equivalent 
-for <tt>app</tt> is <tt>"a"</tt>
-</li>
-</ul>
-<p>
-Indeed we seem to have different behavior currently in respect to <tt>app</tt>: For
-</p>
-
-<blockquote><pre>
-stringstream s2(ios_base::out|ios_base::in|ios_base::app);
-s2.str("s2 hello");
-s1 &lt;&lt; "more";
-</pre></blockquote>
-
-<ul>
-<li>Visual C++ 10 does overwrite (=> <tt>"moreello"</tt>)</li>
-<li>G++ 4.5 does append (=> <tt>"s2 hellomore"</tt>)</li>
-</ul>
-
-<p>BTW, for fstreams, both implementations append when <tt>app</tt> is set:
-If <tt>f2.txt</tt> has contents <tt>"xy"</tt>,</p>
-
-<blockquote><pre>
-fstream f2("f2.txt",ios_base::out|ios_base::in|ios_base::app);
-f1 &lt;&lt; "more";
-</pre></blockquote>
-
-<p>appends <tt>"more"</tt> so that the contents is <tt>"xymore"</tt>.</p>
-
-<p>So IMO <tt>app</tt> should set the write pointer to the end so that each writing 
-appends.
-<p/>
-I don't know whether what the standard says is enough. You can argue the 
-statement in Table 125 clearly states that such a buffer should always append, 
-which of course also applies to <tt>str()</tt> of stringbuffer.
-<p/>
-Nevertheless, it doesn't hurt IMO if we clarify the behavior of <tt>str()</tt>
-here in respect to <tt>app</tt>.
-</p>
-
-<p><i>[2011-03-10: P.J.Plauger comments:]</i></p>
-
-
-<p>I think we should say nothing special about <tt>app</tt> at construction
-time (thus leaving the write pointer at the beginning of the buffer).
-Leave implementers wiggle room to ensure subsequent append writes as they see 
-fit, but don't change existing rules for initial seek position.</p>
-
-<p><i>[Madrid meeting: It was observed that a different issue should be opened that
-clarifies the meaning of <tt>app</tt> for <tt>stringstream</tt>]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Change 27.8.2.3 [stringbuf.members] p. 3 as indicated:</p>
-
-<blockquote><pre>
-void str(const basic_string&lt;charT,traits,Allocator&gt;&amp; s);
-</pre><blockquote>
-<p>
-2 <i>Effects</i>: Copies the content of <tt>s</tt> into the <tt>basic_stringbuf</tt> 
-underlying character sequence and initializes the input and output sequences according 
-to <tt>mode</tt>.
-<p/>
-3 <i>Postconditions</i>: If <tt>mode &amp; ios_base::out</tt> is true, <tt>pbase()</tt> 
-points to the first underlying character and <tt>epptr() &gt;= pbase() + s.size()</tt> 
-holds; in addition, if <tt>mode &amp; <del>ios_base::in</del><ins>ios_base::ate</ins></tt> 
-is true, <tt>pptr() == pbase() + <del>s.data()</del><ins>s.size()</ins></tt> holds, 
-otherwise <tt>pptr() == pbase()</tt> is true. If <tt>mode &amp; ios_base::in</tt> 
-is true, <tt>eback()</tt> points to the first underlying character, and both 
-<tt>gptr() == eback() and egptr() == eback() + s.size()</tt> 
-hold.
-</p>
-</blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1449"></a>1449. Incomplete specification of header <tt>&lt;cinttypes&gt;</tt></h3>
-<p><b>Section:</b> 27.8.3 [istringstream] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Canada <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CA-4</b></p>
-
-<p>
-Subclause 27.9.2 [c.files] specifies that &lt;cinttypes&gt; has
-declarations for abs() and div(); however, the signatures
-are not present in this subclause. The signatures
-proposed under TR1 ([tr.c99.inttypes]) are not present in
-FCD (unless if intmax_t happened to be long long). It is
-unclear as to which, if any of the abs() and div() functions
-in [c.math] are meant to be declared by &lt;cinttypes&gt;. This
-subclause mentions imaxabs() and imaxdiv(). These
-functions, among other things, are not specified in FCD to
-be the functions from Subclause 7.8 of the C Standard.
-Finally, &lt;cinttypes&gt; is not specified in FCD to include
-&lt;cstdint&gt; (whereas &lt;inttypes.h&gt; includes &lt;stdint.h&gt; in C).
-</p>
-
-<p><i>[
-Post-Rapperswil, Daniel provides wording
-]</i></p>
-
-
-<p>
-Subclause [c.files] specifies that <tt>&lt;cinttypes&gt;</tt> has declarations for <tt>abs()</tt> and <tt>div()</tt>; 
-however, the signatures are not present in this subclause. The signatures proposed under TR1 ([tr.c99.inttypes]) are not 
-present in FCD (unless if <tt>intmax_t</tt> happened to be <tt>long long</tt>). It is unclear as to which, if any of the 
-<tt>abs()</tt> and <tt>div()</tt> functions in [c.math] are meant to be declared by <tt>&lt;cinttypes&gt;</tt>. This
-subclause mentions <tt>imaxabs()</tt> and <tt>imaxdiv()</tt>. These functions, among other things, are not specified in 
-FCD to be the functions from subclause 7.8 of the <tt>C</tt> Standard. Finally, <tt>&lt;cinttypes&gt;</tt> is not specified 
-in FCD to include <tt>&lt;cstdint&gt;</tt> (whereas <tt>&lt;inttypes.h&gt;</tt> includes <tt>&lt;stdint.h&gt;</tt> in <tt>C</tt>).
-</p>
-
-<blockquote><p>
-Moved to Tentatively Ready with proposed wording after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-<i>The wording refers to N3126.</i>
-</p>
-<ol>
-<li>Add the following series of new paragraphs following [c.files] p.1:
-<blockquote><p>
-Table 132 describes header <tt>&lt;cinttypes&gt;</tt>. [<em>Note</em>: The macros defined by <tt>&lt;cinttypes&gt;</tt> are provided unconditionally.
-In particular, the symbol <tt>__STDC_FORMAT_MACROS</tt>, mentioned in footnote 182 of the <tt>C</tt> standard, plays no role in <tt>C++</tt>. 
-&mdash; <em>end note</em> ]
-<p/>
-<ins>2 - The contents of header <tt>&lt;cinttypes&gt;</tt> are the same as the Standard <tt>C</tt> library header <tt>&lt;inttypes.h&gt;</tt>, 
-with the following changes:</ins>
-<p/>
-<ins>3 - The header <tt>&lt;cinttypes&gt;</tt> includes the header <tt>&lt;cstdint&gt;</tt> instead of <tt>&lt;stdint.h&gt;</tt>.</ins>
-<p/>
-<ins>4 - If and only if the type <tt>intmax_t</tt> designates an extended integer type ([basic.fundamental]), the following function 
-signatures are added:</ins>
-</p>
-<blockquote><pre>
-<ins>intmax_t abs(intmax_t);</ins>
-<ins>imaxdiv_t div(intmax_t, intmax_t);</ins>
-</pre></blockquote>
-<p>
-<ins>which shall have the same semantics as the function signatures <tt>intmax_t imaxabs(intmax_t)</tt> and 
-<tt>imaxdiv_t imaxdiv(intmax_t, intmax_t)</tt>, respectively.</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1450"></a>1450. Contradiction in <tt>regex_constants</tt></h3>
-<p><b>Section:</b> 28.5.2 [re.matchflag] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-127</b></p>
-
-<p>
-The Bitmask Type requirements in 17.5.2.1.3 [bitmask.types] p.3 say that
-all elements on a bitmask type have distinct values, but
-28.5.2 [re.matchflag] defines <tt>regex_constants::match_default</tt> and
-<tt>regex_constants::format_default</tt> as elements of the
-bitmask type <tt>regex_constants::match_flag_type</tt>, both with
-value 0. This is a contradiction.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-One of the bitmask elements should be removed
-from the declaration and should be defined
-separately, in the same manner as
-<tt>ios_base::adjustfield</tt>, <tt>ios_base::basefield</tt> and
-<tt>ios_base::floatfield</tt> are defined by 27.5.3.1.2 [ios::fmtflags] p.2
-and Table 120. These are constants of a bitmask
-type, but are not distinct elements, they have
-more than one value set in the bitmask.
-<tt>regex_constants::format_default</tt> should be
-specified as a constant with the same value as
-<tt>regex_constants::match_default</tt>.
-</p></blockquote>
-
-<p><i>[
-2010-10-31 Daniel comments:
-]</i></p>
-
-<p>
-Strictly speaking, a bitmask type cannot have any element of value 0 at all, because
-any such value would contradict the requirement expressed in 17.5.2.1.3 [bitmask.types] p. 3:
-</p>
-<blockquote><p>
-for any pair <em>Ci</em> and <em>Cj</em>, <em>Ci</em> &amp; <em>Ci</em> is nonzero
-</p></blockquote>
-<p>
-So, actually <em>both</em> <tt>regex_constants::match_default</tt> and
-<tt>regex_constants::format_default</tt> are only constants of the type
-<tt>regex_constants::match_flag_type</tt>, and no bitmask elements.
-</p>
-
-<p><i>[
-2010-11-03 Daniel comments and provides a proposed resolution:
-]</i></p>
-
-
-<p>The proposed resolution is written against N3126 and considered as a further improvement
-of the fixes suggested by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3110.html">n3110</a>.
-</p>
-
-<blockquote>
-<p>
-Add the following sentence to 28.5.2 [re.matchflag]  paragraph 1:
-</p>
-<blockquote><p>
-1 The type <tt>regex_constants::match_flag_type</tt> is an implementation-defined bitmask type (17.5.2.1.3).
-Matching a regular expression against a sequence of characters [first,last) proceeds according to the
-rules of the grammar specified for the regular expression object, modified according to the effects listed in
-Table 136 for any bitmask elements set. <ins>Type <tt>regex_constants::match_flag_type</tt> also defines the 
-constants <tt>regex_constants::match_default</tt> and <tt>regex_constants::format_default</tt>.</ins>
-</p></blockquote>
-</blockquote>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-It appears the key problem is the phrasing of the bitmask requirements.  Jeremiah supplies updated wording.
-</p>
-
-<p>
-Pete Becker has also provided an alternative resolution.
-</p>
-
-<p>
-Ammend 17.5.2.1.3 [bitmask.types]:
-</p>
-<p>
-Change the list of values for "enum bit mask" in p2 from
-</p>
-<p>
-<tt><i>V0</i> = 1 &lt;&lt; 0, <i>V1</i> = 1 &lt;&lt; 1, <i>V2</i> = 1 &lt;&lt; 2, <i>V3</i> = 1 &lt;&lt; 3, ...</tt>.
-</p>
-<p>
-to
-</p>
-<p>
-<tt><i>V0</i> = 0, <i>V1</i> = 1 &lt;&lt; 0, <i>V2</i> = 1 &lt;&lt; 1, <i>V3</i> = 1 &lt;&lt; 2,  ...</tt>.
-</p>
-<p>
-Here, the names <i>C0</i>, <i>C1</i>, etc. represent <i>bitmask elements</i> for this particular
-bitmask type. All such <ins>non-zero</ins> elements have distinct values such that, for any pair
-<i>Ci</i> and <i>Cj</i> <ins>where <i>i</i> != <i>j</i></ins>, <del><i>Ci &amp; Ci</i> is nonzero
-and</del> <i>Ci &amp; Cj</i> is zero.
-</p>
-<p>
-Change bullet 3 of paragraph 4:
-</p>
-<p>
-<del>The</del><ins>A non-zero</ins> value Y is set in the object X if the expression X &amp; Y is nonzero.
-</p>
-
-<p><i>[2014-02-13 Issaquah:]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Ammend 17.5.2.1.3 [bitmask.types] p3:
-</p>
-<p>
-Here, the names <i>C0</i>, <i>C1</i>, etc. represent <i>bitmask elements</i> for this particular
-bitmask type. All such elements have distinct<ins>, nonzero</ins> values such that, for any pair
-<i>Ci</i> and <i>Cj</i> <ins>where <i>i</i> != <i>j</i>,</ins> <i>Ci &amp; Ci</i> is nonzero
-and <i>Ci &amp; Cj</i> is zero. <ins>Additionally, the value 0 is used to represent an
-<i>empty bitmask</i>, in which no bitmask elements are set.</ins>
-</p>
-
-<p>
-Add the following sentence to 28.5.2 [re.matchflag]  paragraph 1:
-</p>
-<blockquote><p>
-1 The type <tt>regex_constants::match_flag_type</tt> is an implementation-defined bitmask type (17.5.2.1.3).
-<ins>The constants of that type, except for <tt>match_default</tt> and <tt>format_default</tt>, are bitmask
-elements. The <tt>match_default</tt> and <tt>format_default</tt> constants are empty bitmasks.</ins> Matching
-a regular expression against a sequence of characters [first,last) proceeds according to the rules of the
-grammar specified for the regular expression object, modified according to the effects listed in Table 136
-for any bitmask elements set.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1453"></a>1453. Default constructed <tt>match_results</tt> behavior for certain operations </h3>
-<p><b>Section:</b> 28.10.4 [re.results.acc] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results.acc">issues</a> in [re.results.acc].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-126</b></p>
-
-<p>
-It's unclear how match_results should behave if it has
-been default-constructed. The sub_match objects
-returned by operator[], prefix and suffix cannot point to the
-end of the sequence that was searched if no search was
-done. The iterators held by unmatched sub_match objects
-might be singular.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Add to match_results::operator[],
-match_results::prefix and match_results::suffix:<br/>
-Requires: !empty()
-</p></blockquote>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3158.html">n3158</a> would solve this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Addressed by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3158.html">n3158</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1455"></a>1455. C language compatibility for atomics</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1454">1454</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-22, GB-128</b></p>
-
-<p>
-WG14 currently plans to introduce atomic facilities that are
-intended to be compatible with the facilities of clause 29.
-They should be compatible.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment
-]</i></p>
-
-<p>
-Make sure the headers in clause 29 are defined in
-a way that is compatible with the planned C
-standard.
-</p>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-Resolved by adoption of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1457"></a>1457. Splitting lock-free properties</h3>
-<p><b>Section:</b> 29.2 [atomics.syn] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.syn">issues</a> in [atomics.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-130</b></p>
-
-<p>
-The synopsis for the <tt>&lt;atomic&gt;</tt> header lists the macros
-<tt>ATOMIC_INTEGRAL_LOCK_FREE</tt> and <tt>ATOMIC_ADDRESS_LOCK_FREE</tt>.
-</p>
-<p>
-The <tt>ATOMIC_INTEGRAL_LOCK_FREE</tt> macro has been replaced with a set of macros 
-for each integral type, as listed in 29.4 [atomics.lockfree].
-</p>
-
-<p><i>[Proposed resolution as of comment]</i></p>
-
-
-<blockquote>
-<p>
-Against FCD, N3092:
-</p>
-<p>
-In [atomics.syn], header <tt>&lt;atomic&gt;</tt> synopsis replace as indicated:
-</p>
-<blockquote><pre>
-// 29.4, lock-free property
-<del>#define ATOMIC_INTEGRAL_LOCK_FREE <em>unspecified</em></del>
-<ins>#define ATOMIC_CHAR_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_CHAR16_T_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_CHAR32_T_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_WCHAR_T_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_SHORT_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_INT_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_LONG_LOCK_FREE <em>implementation-defined</em></ins>
-<ins>#define ATOMIC_LLONG_LOCK_FREE <em>implementation-defined</em></ins>
-#define ATOMIC_ADDRESS_LOCK_FREE <em>unspecified</em>
-</pre></blockquote>
-</blockquote>
-
-<p><i>[
-2010-10-26: Daniel adds:
-]</i></p>
-
-
-<p>
-The proposed resolution below is against the FCD working draft. After application
-of the editorial issues <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3162.html#US144">US-144</a>
-and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3162.html#US146">US-146</a> the remaining difference
-against the working draft is the usage of <em>implementation-defined</em> instead of <em>unspecified</em>, effectively
-resulting in this delta:
-</p>
-
-<blockquote><pre>
-// 29.4, lock-free property
-#define ATOMIC_CHAR_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_CHAR16_T_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_CHAR32_T_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_WCHAR_T_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_SHORT_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_INT_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_LONG_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_LLONG_LOCK_FREE <del><em>unspecified</em></del><ins><em>implementation-defined</em></ins>
-#define ATOMIC_ADDRESS_LOCK_FREE <em>unspecified</em>
-</pre></blockquote>
-
-<p>
-It is my understanding that the intended wording should be <em>unspecified</em> as for <tt>ATOMIC_ADDRESS_LOCK_FREE</tt>
-but if this is right, we need to use the same wording in 29.4 [atomics.lockfree], which consequently uses
-the term <em>implementation-defined</em>. I recommend to keep 29.2 [atomics.syn] as it currently is and to
-fix 29.4 [atomics.lockfree] instead as indicated:
-</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-<p><i>[2011-02-20: Daniel adapts the proposed wording to N3225 and fixes an editorial omission of
-applying <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">N3193</a>]</i></p>
-
-
-<p><i>[2011-03-06: Daniel adapts the wording to N3242]</i></p>
-
-
-<p><i>[Proposed Resolution]</i></p>
-
-<blockquote>
-<p>
-Change 29.4 [atomics.lockfree] as indicated:
-</p>
-<blockquote><pre>
-#define ATOMIC_CHAR_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_CHAR16_T_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_CHAR32_T_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_WCHAR_T_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_SHORT_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_INT_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_LONG_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-#define ATOMIC_LLONG_LOCK_FREE <del><em>implementation-defined</em></del><ins><em>unspecified</em></ins>
-</pre></blockquote>
-</blockquote>
-    
-
-
-    
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1460"></a>1460. Missing lock-free property for type <tt>bool</tt> should be added</h3>
-<p><b>Section:</b> 29.4 [atomics.lockfree] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.lockfree">issues</a> in [atomics.lockfree].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-154</b></p>
-
-<p>There is no <tt>ATOMIC_BOOL_LOCK_FREE</tt> macro.</p>
-
-<p>Proposed resolution suggested by the NB comment:</p>
-
-<p>
-Add <tt>ATOMIC_BOOL_LOCK_FREE</tt> to 29.4 [atomics.lockfree] and to 29.2 [atomics.syn]:
-</p>
-<blockquote><pre>
-[..]
-<ins>#define ATOMIC_BOOL_LOCK_FREE <em>unspecified</em></ins>
-#define ATOMIC_CHAR_LOCK_FREE <em>unspecified</em>
-#define ATOMIC_CHAR16_T_LOCK_FREE <em>unspecified</em>
-#define ATOMIC_CHAR32_T_LOCK_FREE <em>unspecified</em>
-[..]
-</pre></blockquote>
-
-
-<p><i>[2011-03-12: Lawrence comments and drafts wording]</i></p>
-
-
-<p>Point: We were missing a macro test for <tt>bool</tt>.</p>
-
-<p>Comment: The <tt>atomic&lt;bool&gt;</tt> type is the easiest to make lock-free.
-There is no harm in providing a macro.</p>
-
-<p>Action: Add an <tt>ATOMIC_BOOL_LOCK_FREE</tt>.</p>
-
-<p>Point: We were missing a macro test for pointers.</p>
-
-<p>Comment: The national body comment noting the missing macro
-for <tt>bool</tt> did not note the lack of a macro for pointers because
-<tt>ATOMIC_ADDRESS_LOCK_FREE</tt> was present at the time of the comment.
-Its removal appears to be an overzealous consequence of removing
-<tt>atomic_address</tt>.</p>
-
-<p>Action: Add an <tt>ATOMIC_POINTER_LOCK_FREE</tt>.</p>
-
-<p>Point: Presumably <tt>atomic_is_lock_free()</tt> will be an inline function
-producing a constant in those cases in which the macros are useful.</p>
-
-<p>Comment: The point is technically correct, but could use some
-exposition. Systems providing forward binary compatibility, e.g.
-mainstream desktop and server systems, would likely have these
-functions as inline constants only when the answer is true.
-Otherwise, the function should defer to a platform-specific dynamic
-library to take advantage of future systems that do provide lock-free
-support.</p>
-
-<p>Comment: Such functions are not useful in the preprocessor, and not
-portably useful in <tt>static_assert</tt>.</p>
-
-<p>Action: Preserve the macros.</p>
-
-<p>Point: The required explicit instantiations are <tt>atomic&lt;X&gt;</tt> for each
-of the types <tt>X</tt> in Table 145. Table 145 does not list <tt>bool</tt>, so 
-<tt>atomic&lt;bool&gt;</tt> is not a required instantiation.</p>
-
-<p>Comment: I think specialization was intended in the point instead of
-instantiation. In any event, 29.5 [atomics.types.generic] paragraph 5 does
-indirectly require a specialization for <tt>atomic&lt;bool&gt;</tt>.  Confusion
-arises because the specialization for other integral types have a
-wider interface than the generic <tt>atomic&lt;T&gt;</tt>, but 
-<tt>atomic&lt;bool&gt;</tt> does not.</p>
-
-<p>Action: Add clarifying text.</p>
-
-<p>Point: The name of Table 145, "atomic integral typedefs", is perhaps
-misleading, since the types listed do not contain all of the
-"integral" types.</p>
-
-<p>Comment: Granted, though the table describe those with extra operations.</p>
-
-<p>Action: Leave the text as is.</p>
-
-<p>Point: The macros correspond to the types in Table 145, "with the
-signed and unsigned variants grouped together". That's a rather
-inartful way of saying that <tt>ATOMIC_SHORT_LOCK_FREE</tt> applies to
-<tt>signed short</tt> and <tt>unsigned short</tt>. Presumably this also means that
-<tt>ATOMIC_CHAR_LOCK_FREE</tt> applies to all three char types.</p>
-
-<p>Comment: Yes, it is inartful.</p>
-
-<p>Comment: Adding additional macros to distinguish signed and unsigned
-would provide no real additional information given the other
-constraints in the language.</p>
-
-<p>Comment: Yes, it applies to all three <tt>char</tt> types.</p>
-
-<p>Action: Leave the text as is.</p>
-
-<p>Point: The standard says that "There are full specializations over the
-integral types (<tt>char</tt>, <tt>signed char</tt>, ...)" <tt>bool</tt> 
-is not in the list. But this text is not normative. It simply tells you 
-that "there are" specializations, not "there shall be" specializations, which would
-impose a requirement. The requirement, to the extent that there is
-one, is in the header synopsis, which, in N3242, sort of pulls in the
-list of types in Table 145.</p>
-
-<p>Comment: The intent was for the specializations to be normative.
-Otherwise the extra member functions could not be present.</p>
-
-<p>Action: Clarify the text.</p>
-
-<p><i>[Proposed Resolution]</i></p>
-
-<blockquote>
-<ol>
-<li><p>Edit header <tt>&lt;atomic&gt;</tt> synopsis 29.2 [atomics.syn]:</p>
-
-<blockquote><pre>
-namespace std {
-  <i>// 29.3, order and consistency</i>
-  enum memory_order;
-  template &lt;class T&gt;
-  T kill_dependency(T y);
-
-  <i>// 29.4, lock-free property</i>
-  <ins>#define ATOMIC_BOOL_LOCK_FREE <i>unspecified</i></ins>
-  #define ATOMIC_CHAR_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_CHAR16_T_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_CHAR32_T_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_WCHAR_T_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_SHORT_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_INT_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_LONG_LOCK_FREE <i>unspecified</i>
-  #define ATOMIC_LLONG_LOCK_FREE <i>unspecified</i>
-  <ins>#define ATOMIC_POINTER_LOCK_FREE <i>unspecified</i></ins>
-  
-  <i>// 29.5, generic types</i>
-  template&lt;class T&gt; struct atomic;
-  template&lt;&gt; struct atomic&lt;<i>integral</i>&gt;;
-  template&lt;class T&gt; struct atomic&lt;T*&gt;;
-
-  <i>// 29.6.1, general operations on atomic types
-  // In the following declarations, </i>atomic_type<i> is either
-  // </i>atomic&lt;T&gt;<i> or a named base class for </i>T<i> from
-  // Table 145 or inferred from
-  // Table 146 </i><ins><i>or from</i> bool</ins><i>.</i> 
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Edit the synopsis of 29.4 [atomics.lockfree] and paragraph 1 as follows:</p>
-
-<blockquote><pre>
-<ins>#define ATOMIC_BOOL_LOCK_FREE <i>unspecified</i></ins>
-#define ATOMIC_CHAR_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_CHAR16_T_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_CHAR32_T_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_WCHAR_T_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_SHORT_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_INT_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_LONG_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-#define ATOMIC_LLONG_LOCK_FREE <i><del>implementation-defined</del><ins>unspecified</ins></i>
-<ins>#define ATOMIC_POINTER_LOCK_FREE <i>unspecified</i></ins>
-</pre><blockquote>
-<p>
-1 The <tt>ATOMIC_&hellip;_LOCK_FREE</tt> macros indicate the lock-free property of the corresponding atomic types, with
-the signed and unsigned variants grouped together. The properties also apply to the corresponding <ins>(partial)</ins> 
-specializations of the <tt>atomic</tt> template. A value of 0 indicates that the types are never lock-free. A value of 1
-indicates that the types are sometimes lock-free. A value of 2 indicates that the types are always lock-free.
-</p>
-</blockquote></blockquote>  
-</li>
-
-<li><p>Edit 29.5 [atomics.types.generic] paragraph 3, 4, and 6-8 as follows:</p>
-
-<blockquote><p>
-2 The semantics of the operations on specializations of <tt>atomic</tt> are defined in 29.6 [atomics.types.operations].
-<p/>
-3 Specializations <ins>and instantiations</ins> of the <tt>atomic</tt> template shall have a deleted copy constructor, 
-a deleted copy assignment operator, and a <tt>constexpr</tt> value constructor.
-<p/>
-4 There <del>are</del><ins>shall be</ins> full specializations <del>over</del><ins>for</ins> the integral types <del>(</del>
-<tt>char</tt>, <tt>signed char</tt>, <tt>unsigned char</tt>, <tt>short</tt>, <tt>unsigned short</tt>, <tt>int</tt>, 
-<tt>unsigned int</tt>, <tt>long</tt>, <tt>unsigned long</tt>, <tt>long long</tt>, <tt>unsigned long long</tt>, 
-<tt>char16_t</tt>, <tt>char32_t</tt>, <ins>and</ins> <tt>wchar_t</tt>, and any other types needed by the typedefs in the header 
-<tt>&lt;cstdint&gt;</tt><del>)</del> on the <tt>atomic</tt> class
-template. For each integral type integral, the specialization <tt>atomic&lt;<i>integral</i>&gt;</tt> provides additional atomic
-operations appropriate to integral types. <del>[Editor's note: I'm guessing that this is the correct rendering of
-the text in the paper; if this sentence was intended to impose a requirement, rather than a description, it
-will have to be changed.]</del> <ins>There shall be a specialization <tt>atomic&lt;bool&gt;</tt> which provides
-the general atomic operations as specified in 29.6.1 [atomics.types.operations.general].</ins>
-<p/>
-5 The atomic integral specializations and the specialization <tt>atomic&lt;bool&gt;</tt> shall have standard layout. They
-shall each have a trivial default constructor and a trivial destructor. They shall each support aggregate
-initialization syntax.
-<p/>
-6 There <del>are</del><ins>shall be</ins> pointer partial specializations <del>on</del><ins>of</ins> the <tt>atomic</tt> 
-class template. These specializations shall have trivial default constructors and trivial destructors.
-<p/>
-7 There <del>are</del><ins>shall be</ins> named types corresponding to the integral specializations of <tt>atomic</tt>, as 
-specified in Table 145. <ins>In addition, there shall be named type <code>atomic_bool</code> corresponding to the specialization 
-<code>atomic&lt;bool&gt;</code>.</ins> Each named type is <ins>either</ins> a typedef to the corresponding specialization 
-or a base class of the corresponding specialization. If it is a base class, it shall support the same member functions 
-as the corresponding specialization.
-<p/>
-8 There <del>are</del><ins>shall be</ins> atomic typedefs corresponding to the typedefs in the header <tt>&lt;inttypes.h&gt;</tt> 
-as specified in Table 146.
-</p>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1462"></a>1462. Ambiguous value assignment to <tt>atomic_bool</tt></h3>
-<p><b>Section:</b> X [atomics.types.integral] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.integral">issues</a> in [atomics.types.integral].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1463">1463</a></p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-132, US-157</b></p>
-
-<p>
-The <tt>atomic_<em>itype</em></tt> types and <tt>atomic_address</tt> have two
-overloads of <tt>operator=</tt>; one is <tt>volatile</tt> qualified, and the
-other is not. <tt>atomic_bool</tt> only has the <tt>volatile</tt> qualified
-version:
-</p>
-<blockquote><pre>
-bool operator=(bool) volatile;
-</pre></blockquote>
-<p>
-On a non-<tt>volatile</tt>-qualified object this is ambiguous with
-the deleted copy-assignment operator
-</p>
-<blockquote><pre>
-atomic_bool&amp; operator=(atomic_bool const&amp;) = delete;
-</pre></blockquote>
-<p>
-due to the need for a single standard conversion in each
-case when assigning a bool to an <tt>atomic_bool</tt> as in:
-</p>
-<blockquote><pre>
-atomic_bool b;
-b = true;
-</pre></blockquote>
-<p>
-The conversions are: 
-</p>
-<blockquote><pre>
-atomic_bool&amp; &rarr; atomic_bool volatile&amp;
-</pre></blockquote>
-<p>
- vs 
-</p>
-<blockquote><pre>
-bool &rarr; atomic_bool
-</pre></blockquote>
-
-<p><i>[
-Proposed resolution as of NB comment:
-]</i></p>
-
-
-<p>
-Change X [atomics.types.integral] as indicated:
-</p>
-<blockquote><pre>
-namespace std {
-  typedef struct atomic_bool {
-    [..]
-    bool operator=(bool) volatile;
-    <ins>bool operator=(bool);</ins>
-  } atomic_bool;
-  [..]
-}
-</pre></blockquote>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue
-by replacing <tt>atomic_bool</tt> by <tt>atomic&lt;bool&gt;</tt>.
-</p></blockquote>
-
-<p><i>[
-2010 Batavia
-]</i></p>
-
-<p>
-Resolved by adoption of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1464"></a>1464. Underspecified typedefs for atomic integral types</h3>
-<p><b>Section:</b> X [atomics.types.integral] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.integral">issues</a> in [atomics.types.integral].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-160</b></p>
-
-<p>
-The last sentence of X [atomics.types.integral] p.1 says:
-</p>
-<blockquote><p>
-Table 143 shows typedefs to atomic integral classes and the corresponding <tt>&lt;cstdint&gt;</tt> typedefs.
-</p></blockquote>
-<p>
-That's nice, but nothing says these are supposed to be part of the implementation, and
-they are not listed in the synopsis.
-</p>
-
-<p><i>[
-Proposed resolution as of NB comment
-]</i></p>
-
-
-<ol>
-<li>Remove Table 143 &mdash; Atomics for standard typedef types.
-<p>
-</p>
-</li>
-<li>Change X [atomics.types.integral] p.1 as indicated:
-<blockquote><p>
-1 The name <tt>atomic_<em>itype</em></tt> and the functions operating on it in the preceding synopsis are placeholders for a
-set of classes and functions. Throughout the preceding synopsis, <tt>atomic_<em>itype</em></tt> should be replaced by each
-of the class names in Table 142 and integral should be replaced by the integral type corresponding to the
-class name. <del>Table 143 shows typedefs to atomic integral classes and the corresponding <tt>&lt;cstdint&gt;</tt> typedefs.</del>
-</p></blockquote>
-</li>
-</ol>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue.
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia
-]</i></p>
-
-<p>
-Resolved by adopting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1465"></a>1465. Missing arithmetic operators for <tt>atomic_address</tt></h3>
-<p><b>Section:</b> X [atomics.types.address] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.address">issues</a> in [atomics.types.address].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-161</b></p>
-
-<p>
-<tt>atomic_address</tt> has <tt>operator+=</tt> and <tt>operator-=</tt>, but no
-<tt>operator++</tt> or <tt>operator--</tt>. The template specialization
-<tt>atomic&lt;Ty*&gt;</tt> has all of them.
-</p>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue by
-replacing <tt>atomic_address</tt> by <tt>atomic&lt;void*&gt;</tt>.
-</p></blockquote>
-
-<p><i>[
-Resolved in Batavia by accepting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change X [atomics.types.address], class <tt>atomic_address</tt> synopsis, as indicated:</p>
-<blockquote><pre>
-namespace std {
-  typedef struct atomic_address {
-    [&hellip;]
-    void* operator=(const void*) volatile;
-    void* operator=(const void*);
-    <ins>void* operator++(int) volatile;</ins>
-    <ins>void* operator++(int);</ins>
-    <ins>void* operator--(int) volatile;</ins>
-    <ins>void* operator--(int);</ins>
-    <ins>void* operator++() volatile;</ins>
-    <ins>void* operator++();</ins>
-    <ins>void* operator--() volatile;</ins>
-    <ins>void* operator--();</ins>
-    void* operator+=(ptrdiff_t) volatile;
-    void* operator+=(ptrdiff_t);
-    void* operator-=(ptrdiff_t) volatile;
-    void* operator-=(ptrdiff_t);
-  } atomic_address;
-  [&hellip;]
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1466"></a>1466. Silent <tt>const</tt> breakage by <tt>compare_exchange_*</tt> member functions</h3>
-<p><b>Section:</b> X [atomics.types.address] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.address">issues</a> in [atomics.types.address].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-162</b></p>
-
-<p>
-The <tt>compare_exchange_weak</tt> and <tt>compare_exchange_strong</tt> member functions that take
-<tt>const void*</tt> arguments lead to a silent removal of <tt>const</tt>, because the <tt>load</tt> 
-member function and other acessors return the stored value as a <tt>void*</tt>.
-</p>
-
-<p><i>[
-Proposed resolution as of NB comment:
-]</i></p>
-
-
-<p>
-Change X [atomics.types.address], class <tt>atomic_address</tt> synopsis, as indicated:
-</p>
-<blockquote><pre>
-namespace std {
-  typedef struct atomic_address {
-    [..]
-    <del>bool compare_exchange_weak(const void*&amp;, const void*,
-      memory_order, memory_order) volatile;</del>
-    <del>bool compare_exchange_weak(const void*&amp;, const void*,
-      memory_order, memory_order);</del>
-    <del>bool compare_exchange_strong(const void*&amp;, const void*,
-      memory_order, memory_order) volatile;</del>
-    <del>bool compare_exchange_strong(const void*&amp;, const void*,
-      memory_order, memory_order);</del>
-    <del>bool compare_exchange_weak(const void*&amp;, const void*,
-      memory_order = memory_order_seq_cst) volatile;</del>
-    <del>bool compare_exchange_weak(const void*&amp;, const void*,
-      memory_order = memory_order_seq_cst);</del>
-    <del>bool compare_exchange_strong(const void*&amp;, const void*,
-      memory_order = memory_order_seq_cst) volatile;</del>
-    <del>bool compare_exchange_strong(const void*&amp;, const void*,
-      memory_order = memory_order_seq_cst);</del>
-    [..]
-  } atomic_address;
-  [..]
-}
-</pre></blockquote>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> 
-would solve this issue by replacing <tt>atomic_address</tt> by <tt>atomic&lt;void*&gt;</tt>.
-</p></blockquote>
-
-<p><i>[
-Resolved in Batavia by accepting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Solved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1467"></a>1467. Deriving <tt>atomic&lt;T*&gt;</tt> from <tt>atomic_address</tt> breaks type safety</h3>
-<p><b>Section:</b> X [atomics.types.address] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.address">issues</a> in [atomics.types.address].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-163</b></p>
-
-<p>
-Requiring <tt>atomic&lt;T*&gt;</tt> to be derived from <tt>atomic_address</tt> breaks type safety:
-</p>
-<blockquote><pre>
-atomic&lt;double*&gt; ip;
-char ch;
-atomic_store(&amp;ip, &amp;ch);
-*ip.load() = 3.14159;
-</pre></blockquote>
-<p>
-The last line overwrites <tt>ch</tt> with a value of type <tt>double</tt>.
-</p>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Resolving this issue will also solve <a href="lwg-defects.html#1469">1469</a>
-<p/>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue by
-removing <tt>atomic_address</tt>.
-</p>
-</blockquote>
-
-<p><i>[
-Resolved in Batavia by accepting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 29.5 [atomics.types.generic], class template specialization <tt>atomic&lt;T*&gt;</tt> synopsis, as indicated:
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; struct atomic&lt;T*&gt; <del>: atomic_address</del> {
-    [..]
-  };
-  [..]
-}
-</pre></blockquote>
-</li>
-<li>Change 29.5 [atomics.types.generic] p. 4 as indicated:
-<blockquote><p>
-4 There are pointer partial specializations on the <tt>atomic</tt> class template. <del>These specializations shall be publicly
-derived from <tt>atomic_address</tt>.</del> The unit of addition/subtraction for these specializations shall be the size
-of the referenced type. These specializations shall have trivial default constructors and trivial destructors.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1468"></a>1468. <tt>atomic_address::compare_exchange_*</tt> member functions should match <tt>atomic_compare_exchange_*</tt> free functions</h3>
-<p><b>Section:</b> X [atomics.types.address] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.address">issues</a> in [atomics.types.address].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-164</b></p>
-
-<p>
-<tt>atomic_address</tt> has member functions <tt>compare_exchange_weak</tt> and
-<tt>compare_exchange_strong</tt> that take arguments of type <tt>const void*</tt>, 
-in addition to the <tt>void*</tt> versions. If these member functions survive, 
-there should be corresponding free functions.
-</p>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue 
-differently by removing the overloads with <tt>const void*</tt> arguments, because they break type-safety.
-</p></blockquote>
-<p><i>[
-Resolved in Batavia by accepting 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Extend the synopsis around <tt>atomic_address</tt> in X [atomics.types.address]
-as indicated:
-</p>
-<blockquote><pre>
-namespace std {
-  [..]
-  bool atomic_compare_exchange_weak(volatile atomic_address*, void**, void*);
-  bool atomic_compare_exchange_weak(atomic_address*, void**, void*);
-  bool atomic_compare_exchange_strong(volatile atomic_address*, void**, void*);
-  bool atomic_compare_exchange_strong(atomic_address*, void**, void*);
-  bool atomic_compare_exchange_weak_explicit(volatile atomic_address*, void**, void*,
-    memory_order, memory_order);
-  bool atomic_compare_exchange_weak_explicit(atomic_address*, void**, void*,
-    memory_order, memory_order);
-  bool atomic_compare_exchange_strong_explicit(volatile atomic_address*, void**, void*,
-    memory_order, memory_order);
-  bool atomic_compare_exchange_strong_explicit(atomic_address*, void**, void*,
-    memory_order, memory_order);
-  <ins>bool atomic_compare_exchange_weak(volatile atomic_address*, const void**, const void*);</ins>
-  <ins>bool atomic_compare_exchange_weak(atomic_address*, const void**, const void*);</ins>
-  <ins>bool atomic_compare_exchange_strong(volatile atomic_address*, const void**, const void*);</ins>
-  <ins>bool atomic_compare_exchange_strong(atomic_address*, const void**, const void*);</ins>
-  <ins>bool atomic_compare_exchange_weak_explicit(volatile atomic_address*, const void**, const void*,
-    memory_order, memory_order);</ins>
-  <ins>bool atomic_compare_exchange_weak_explicit(atomic_address*, const void**, const void*,
-    memory_order, memory_order);</ins>
-  <ins>bool atomic_compare_exchange_strong_explicit(volatile atomic_address*, const void**, const void*,
-    memory_order, memory_order);</ins>
-  <ins>bool atomic_compare_exchange_strong_explicit(volatile atomic_address*, const void**, const void*,
-    memory_order, memory_order);</ins>
-  <ins>bool atomic_compare_exchange_strong_explicit(atomic_address*, const void**, const void*,
-    memory_order, memory_order);</ins>
-  [..]
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1469"></a>1469. <tt>atomic&lt;T*&gt;</tt> inheritance from <tt>atomic_address</tt> breaks type safety</h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-133</b></p>
-
-<p>
-The free functions that operate on <tt>atomic_address</tt> can be
-used to store a pointer to an unrelated type in an <tt>atomic&lt;T*&gt;</tt> 
-without a cast. e.g.
-</p>
-<blockquote><pre>
-int i;
-atomic&lt;int*&gt; ai(&amp;i);
-string s;
-atomic_store(&amp;ai,&amp;s);
-</pre></blockquote>
-<p>
-Overload the <tt>atomic_store</tt>, <tt>atomic_exchange</tt> and
-<tt>atomic_compare_exchange_[weak/strong]</tt> operations for 
-<tt>atomic&lt;T*&gt;</tt> to allow storing only pointers to <tt>T</tt>.
-</p>
-
-<p><i>[
-2010-10-27 Daniel adds:
-]</i></p>
-
-
-<blockquote>
-<p>
-Resolving this issue will also solve <a href="lwg-defects.html#1467">1467</a>
-<p/>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3164.html">n3164</a> would solve this issue by
-removing <tt>atomic_address</tt>.
-</p>
-</blockquote>
-
-<p><i>[Resolved in Batavia by accepting
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">n3193</a>.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add the following overloads to 29.5 [atomics.types.generic], the synopsis around the specialization
-<tt>atomic&lt;T*&gt;</tt>, as indicated:</p>
-<blockquote><pre>
-namespace std {
-  [..]
-  template &lt;class T&gt; struct atomic&lt;T*&gt; : atomic_address {
-    [..]
-  };
-
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>void atomic_store(atomic&lt;T*&gt;&amp;,T*);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>void atomic_store(atomic&lt;T*&gt;&amp;,void*) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>void atomic_store_explicit(atomic&lt;T*&gt;&amp;,T*,memory_order);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>void atomic_store_explicit(atomic&lt;T*&gt;&amp;,void*,memory_order) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_exchange(atomic&lt;T*&gt;&amp;,T*);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_exchange(atomic&lt;T*&gt;&amp;,void*) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_exchange_explicit(atomic&lt;T*&gt;&amp;,T*,memory_order);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_exchange_explicit(atomic&lt;T*&gt;&amp;,void*,memory_order) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_weak(atomic&lt;T*&gt;&amp;,T**,T*);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_weak(atomic&lt;T*&gt;&amp;,void**,void*) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_weak_explicit(atomic&lt;T*&gt;&amp;,T**,T*,memory_order);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_weak_explicit(atomic&lt;T*&gt;&amp;,void**,void*,memory_order) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_strong(atomic&lt;T*&gt;&amp;,T**,T*);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_strong(atomic&lt;T*&gt;&amp;,void**,void*) = delete;</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_strong_explicit(atomic&lt;T*&gt;&amp;,T**,T*,memory_order);</ins>
-  <ins>template&lt;typename T&gt;</ins>
-  <ins>T* atomic_compare_exchange_strong_explicit(atomic&lt;T*&gt;&amp;,void**,void*,memory_order) = delete;</ins>
-
-}
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1474"></a>1474. weak compare-and-exchange confusion</h3>
-<p><b>Section:</b> 29.6.5 [atomics.types.operations.req] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.operations.req">active issues</a> in [atomics.types.operations.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations.req">issues</a> in [atomics.types.operations.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Duplicate of:</b> <a href="lwg-closed.html#1470">1470</a>, <a href="lwg-closed.html#1475">1475</a>, <a href="lwg-closed.html#1476">1476</a>, <a href="lwg-closed.html#1477">1477</a></p>
-<p><b>Discussion:</b></p>
-
-
-
-<p><b>Addresses US-175, US-165, CH-23, GB-135</b></p>
-<p>
-29.6.5 [atomics.types.operations.req] p. 25: The first sentence is grammatically incorrect.
-</p>
-<p><i>[
-2010-10-28 Daniel adds:
-]</i></p>
-
-<p>
-Duplicate issue <a href="lwg-closed.html#1475">1475</a> also has a proposed resolution, but both issues are resolved with
-below proposed resolution.
-</p>
-
-<p><i>[
-2011-02-15 Howard fixes numbering, Hans improves the wording
-]</i></p>
-
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 6 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>Change 29.6.5 [atomics.types.operations.req] p. 23 as indicated:</p>
-
-<blockquote><p>
-[ <em>Note</em>: <ins>For example, t</ins><del>T</del>he effect of 
-<del>the compare-and-exchange operations</del><ins><tt>atomic_compare_exchange_strong</tt></ins> is
-</p><blockquote><pre>
-if (memcmp(object, expected, sizeof(*object)) == 0)
-  memcpy(object, &amp;desired, sizeof(*object));
-else
-  memcpy(expected, object, sizeof(*object));
-</pre></blockquote>
-<p> &mdash; <em>end note</em> ] [..]</p>
-</blockquote>
-</li>
-
-<li>
-<p>Change 29.6.5 [atomics.types.operations.req] p. 25 as indicated:</p>
-<blockquote><p>
-25 <em>Remark</em>: <del>The weak compare-and-exchange operations may fail spuriously, that is, return false while
-leaving the contents of memory pointed to by <tt>expected</tt> before the operation is the same that same
-as that of the <tt>object</tt> and the same as that of <tt>expected</tt> after the operation</del><ins>A weak 
-compare-and-exchange operation may fail spuriously. That is, even when the contents of memory referred to by 
-<tt>expected</tt> and <tt>object</tt> are equal, it may return false and store back to <tt>expected</tt> the same 
-memory contents that were originally there.</ins>. [ <em>Note</em>: This spurious
-failure enables implementation of compare-and-exchange on a broader class of machines, e.g., loadlocked
-store-conditional machines. A consequence of spurious failure is that nearly all uses of weak
-compare-and-exchange will be in a loop.
-<p/>
-When a compare-and-exchange is in a loop, the weak version will yield better performance on some
-platforms. When a weak compare-and-exchange would require a loop and a strong one would not, the
-strong one is preferable. &mdash; <em>end note</em> ]
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1478"></a>1478. Clarify race conditions in atomics initialization</h3>
-<p><b>Section:</b> 29.6 [atomics.types.operations] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.operations">issues</a> in [atomics.types.operations].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-136</b></p>
-<p>
-GB requests normative clarification in 29.6 [atomics.types.operations] p.4 that
-concurrent access constitutes a race, as already done on p.6 and p.7.
-</p>
-<p><i>[
-Resolution proposed in ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Initialisation of atomics:
-<p/>
-We believe the intent is that for any atomics there is a distinguished
-initialisation write, but that this need not happens-before all the
-other operations on that atomic - specifically so that the
-initialisation write might be non-atomic and hence give rise to a data
-race, and hence undefined behaviour, in examples such as this (from
-Hans):
-</p>
-<blockquote><pre>
-atomic&lt;atomic&lt;int&gt; *&gt; p
-f()                      |
-{ atomic&lt;int&gt;x;          | W_na x
-  p.store(&amp;x,mo_rlx);    | W_rlx p=&amp;x
-}                        |
-</pre></blockquote><p>
-(where na is nonatomic and rlx is relaxed). We suspect also that no
-other mixed atomic/nonatomic access to the same location is intended
-to be permitted. Either way, a note would probably help.
-</p></blockquote>
-
-<p><i>[2011-02-26: Hans comments and drafts wording]</i></p>
-
-
-<p>I think the important point here is to clarify that races on atomics
-are possible, and can be introduced as a result of non-atomic
-initialization operations.  There are other parts of this that remain unclear
-to me, such as whether there are other ways to introduce data races on atomics,
-or whether the races with initialization also introduce undefined behavior
-by the 3.8 lifetime rules.  But I don't think that it is necessary to resolve
-those issues before releasing the standard.  That's particularly true
-since we've introduced <tt>atomic_init</tt>, which allows easier ways to
-construct initialization races.
-</p>
-
-<p><i>[2011-03 Madrid]</i></p>
-
-<p>Accepted to be applied immediately to the WP</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Update 29.6.5 [atomics.types.operations.req] p. 5 as follows:</p>
-
-<blockquote><pre>
-constexpr A::A(C desired);
-</pre><blockquote><p>
-5 <i>Effects</i>: Initializes the object with the value <tt>desired</tt>. <del>[ <i>Note</i>: 
-Construction is not atomic. &mdash; <i>end note</i> ]</del><ins> Initialization is not an 
-atomic operation (1.10) [intro.multithread]. [<i>Note</i>: It is possible to have an
-access to an atomic object <tt>A</tt> race with its construction, for example
-by communicating the address of the just-constructed object <tt>A</tt> to another thread 
-via <code>memory_order_relaxed</code> atomic operations on a suitable atomic pointer variable, 
-and then immediately accessing <tt>A</tt> in the receiving thread.  This results in undefined 
-behavior. &mdash; <i>end note</i>]</ins>
-</p></blockquote></blockquote>
-</li>
-
-<li><p>In response to the editor comment to 29.6.5 [atomics.types.operations.req] p. 8: 
-The first <i>Effects</i> element is the correct and intended one:</p>
-
-<blockquote><pre>
-void atomic_init(volatile A *object, C desired);
-void atomic_init(A *object, C desired);
-</pre><blockquote><p>
-8 <i>Effects</i>: Non-atomically initializes <tt>*object</tt> with value <tt>desired</tt>.
-This function shall only be applied to objects that have been default constructed, and then only once.
-[ <i>Note</i>: these semantics ensure compatibility with C. &mdash; <i>end note</i> ] [ <i>Note</i>: 
-Concurrent access from another thread, even via an atomic operation, constitutes a data 
-race. &mdash; <i>end note</i> ] <del>[<i>Editor's note</i>: The preceding text is from the WD as 
-amended by N3196. N3193 makes different changes, marked up in the paper as follows:]
-<i>Effects</i>: Dynamically initializes an atomic variable. Non-atomically That is, non-atomically assigns the
-value desired to <tt>*object</tt>. [ <i>Note</i>: this operation may need to initialize 
-locks. &mdash; <i>end note</i> ] Concurrent access from another thread, even via an atomic 
-operation, constitutes a data race.</del>
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1479"></a>1479. Fence functions should be <tt>extern "C"</tt></h3>
-<p><b>Section:</b> 29.8 [atomics.fences] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.fences">issues</a> in [atomics.fences].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-179</b></p>
-<p>
-The fence functions (29.8 [atomics.fences] p.5 + p.6) should be <tt>extern "C"</tt>, for <tt>C</tt> compatibility.
-</p>
-
-<p><i>[2011-02-16 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 6 votes.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 29.2 [atomics.syn], header <tt>&lt;atomic&gt;</tt> synopsis as indicated:
-<blockquote><pre>
-namespace std {
-  [..]
-  // <em>29.8, fences</em>
-  <ins>extern "C"</ins> void atomic_thread_fence(memory_order);
-  <ins>extern "C"</ins> void atomic_signal_fence(memory_order);  
-}
-</pre></blockquote>
-</li>
-<li><p>Change 29.8 [atomics.fences], p. 5 and p. 6 as indicated:</p>
-<blockquote><pre>
-<ins>extern "C"</ins> void atomic_thread_fence(memory_order);
-</pre><blockquote><p>
-5 <em>Effects</em>: depending on the value of <tt>order</tt>, this operation: [..]
-</p></blockquote></blockquote>
-<blockquote><pre>
-<ins>extern "C"</ins> void atomic_signal_fence(memory_order);  
-</pre><blockquote><p>
-6 <em>Effects</em>: equivalent to <tt>atomic_thread_fence(order)</tt>, except that synchronizes with relationships are
-established only between a thread and a signal handler executed in the same thread.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1480"></a>1480. Atomic fences don't have <em>synchronizes with</em> relation</h3>
-<p><b>Section:</b> 29.8 [atomics.fences] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.fences">issues</a> in [atomics.fences].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-137</b></p>
-<p>
-Thread fence not only establish synchronizes with relationships,
-there are semantics of fences that are expressed not in
-terms of <em>synchronizes with</em> relationships (for example see 29.3 [atomics.order] p.5).
-These semantics also need to apply to the use of
-<tt>atomic_signal_fence</tt> in a restricted way.
-</p>
-<p><i>[Batavia: Concurrency group discussed issue, and is OK with the proposed resolution.]</i></p>
-
-
-<p><i>[2011-02-26 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 29.8 [atomics.fences] p. 6 as indicated:</p>
-<blockquote><pre>
-void atomic_signal_fence(memory_order);  
-</pre><blockquote><p>
-6 <em>Effects</em>: equivalent to <tt>atomic_thread_fence(order)</tt>, except that <del>synchronizes 
-with relationships</del><ins>the resulting ordering constraints</ins> are established only between a 
-thread and a signal handler executed in the same thread.
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1481"></a>1481. Missing Lockable requirements</h3>
-<p><b>Section:</b> 30.2 [thread.req] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-138</b></p>
-
-<p>
-The FCD combines the requirements for lockable objects
-with those for the standard mutex objects. These should
-be separate. This is LWG issue <a href="lwg-defects.html#1268">1268</a>.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-See attached Appendix 1 - Additional Details
-</p></blockquote>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-<blockquote><p>
-Paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3130.html">n3130</a> addresses
-this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3197.htm">n3197</a>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="1482"></a>1482. Timeout operations are under-specified</h3>
-<p><b>Section:</b> 30.2.4 [thread.req.timing] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.req.timing">issues</a> in [thread.req.timing].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-181</b></p>
-
-<p>
-The timeout operations are under-specified.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Define precise semantics for <tt>timeout_until</tt> and <tt>timeout_for</tt>. See 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3141.pdf">n3141</a> page 193 - Appendix 1 - Additional Details
-</p></blockquote>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3128.html">n3128</a> would solve this issue.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3128.html">n3191</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1487"></a>1487. Clock related operations exception specifications conflict</h3>
-<p><b>Section:</b> 30.3.2 [thread.thread.this] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.thread.this">issues</a> in [thread.thread.this].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-25</b></p>
-<p>
-Clock related operations are currently not required not to
-throw. So "Throws: Nothing." is not always true.
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Either require clock related operations not to throw
-(in 20.10) or change the Throws clauses in 30.3.2.
-Also possibly add a note that <tt>abs_time</tt> in the past
-or negative <tt>rel_time</tt> is allowed.
-</p></blockquote>
-
-<p><i>[2011-02-10: Howard Hinnant provides a resolution proposal]</i></p>
-
-
-<p><i>[Previous proposed resolution:]</i></p>
-
-<ol>
-<li>
-<p>Change the Operational semantics of <tt>C1::now()</tt> in 20.12.3 [time.clock.req], 
-Table 59 &mdash; <tt>Clock</tt> requirements as follows:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 59 &mdash; <tt>Clock</tt> requirements</caption>
-<tr>
-<th>
-Expression
-</th>
-
-<th>
-Return type
-</th>
-
-<th>
-Operational semantics
-</th>
-
-</tr>
-
-<tr>
-<td><tt>C1::now()</tt></td>
-
-<td><tt>C1::time_point</tt></td>
-
-<td>Returns a <tt>time_point</tt> object<br/>
-representing the current point in time.<br/>
-<ins>Shall not throw an exception.</ins></td>
-</tr>
-
-</table>
-</blockquote>
-
-
-</li>
-</ol>
-
-<p><i>[2011-02-19: Daniel comments and suggests an alternative wording]</i></p>
-
-
-<p>Imposing the no-throw requirement on <tt>C1::now()</tt> of any clock time
-is an overly radical step: It has the indirect consequences that representation
-types for <tt>C1::rep</tt> can never by types with dynamic memory managment,
-e.g. my <tt>big_int</tt>, which are currently fully supported by the time
-utilities. Further-on this strong constraint does not even solve the problem
-described in the issue, because we are still left with the fact that any
-of the arithmetic operations of <tt>C1::rep</tt>, <tt>C1::duration</tt>,
-and <tt>C1::time_point</tt> may throw exceptions.
-</p>
-<p>The alternative proposal uses the following strategy: The general <tt>Clock</tt>
-requirements remain untouched, but we require that any functions of the library-provided
-clocks from sub-clause 20.12.7 [time.clock] and their associated types shall not
-throw exceptions. Second, we replace existing <tt>noexcept</tt> specifications of
-functions from Clause 30 that depend on durations, clocks, or time points by wording that
-clarifies that these functions can only throw, if the operations of user-provided durations,
-clocks, or time points used as arguments to these functions throw exceptions.
-</p>
-
-<p><i>[2011-03-23 Daniel and Peter check and simplify the proposed resolution resulting in this paper]</i></p>
-
-
-<p>There is an inherent problem with <tt>std::time_point</tt> that it doesn't seem to have an equivalent value 
-for <tt>((time_t)-1)</tt> that gets returned by C's <tt>time()</tt> function to signal a problem, e.g., because 
-the underlying hardware is unavailable. After a lot of thinking and checks we came to the resolution that 
-<tt>timepoint::max()</tt> should be the value to serve as a value signaling errors in cases where we
-prefer to stick with no-throw conditions. Of-course, user-provided representation types don't need to
-follow this approach if they prefer exceptions to signal such failures.
-<p/>
-the functions <tt>now()</tt> and <tt>from_time_t()</tt> can remain <tt>noexcept</tt> with the solution to 
-return <tt>timepoint::max()</tt> in case the current time cannot be determined or <tt>(time_t)-1</tt> is passed 
-in, respectively.
-<p/>
-Based on the previous proposed solution to LWG 1487 we decided that the new <tt>TrivialClock</tt> requirements 
-should define that <tt>now()</tt> mustn't throw and return <tt>timepoint::max()</tt> to signal a problem. That 
-is in line with the C standard where <tt>(time_t)-1</tt> signals a problem. Together with a fix to a - we assumed - 
-buggy specifcation in 20.11.3 p2 which uses "happens-before" relationship with something that isn't any action:
-</p>
-<blockquote><p>
-2 In Table 59 <tt>C1</tt> and <tt>C2</tt> denote clock types. <tt>t1</tt> and <tt>t2</tt> are values returned by 
-<tt>C1::now()</tt> where the call returning <tt>t1</tt> happens before (1.10) the call returning <tt>t2</tt> and 
-both of these calls happen before <tt>C1::time_point::max()</tt>. 
-</p></blockquote>
-
-<p><i>[2011-03-23 Review with Concurrency group suggested further simplifications and Howard pointed out, that
-we do not need time_point::max() as a special value.]</i></p>
-
-
-<p>also the second "happens before" will be changed to "occurs before" in the english meaning. this is
-to allow a steady clock to wrap.
-<p/>
-Peter updates issue accordingly to discussion.
-</p>
-
-<p><i>[Note to the editor: we recommend removal of the following redundant paragraphs in 
- 30.5.2 [thread.condition.condvarany] p. 18 to p. 21, p. 27, p. 28, p. 30, and p. 31 that are 
-defining details for the wait functions that are given by the <i>Effects</i> element. 
-]</i></p>
-
-
-<p><i>[Note to the editor: we recommend removal of the following redundant paragraphs in 
-30.5.1 [thread.condition.condvar]: p24-p26, p33-p34, and p36-p37 that are defining details for the 
-<tt>wait_for</tt> functions. We believe these paragraphs are redundant with respect to the <i>Effects</i> clauses that 
-define semantics based on <tt>wait_until</tt>. An example of such a specification is the <tt>wait()</tt> with a predicate.
-]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Change p2 in 20.11.3 [time.clock.req] as follows</p>
-<blockquote><p>
-2 In Table 59 <tt>C1</tt> and <tt>C2</tt> denote clock types. <tt>t1</tt> and 
-<tt>t2</tt> are values returned by <tt>C1::now()</tt> where the call returning <tt>t1</tt> 
-happens before (1.10) the call returning <tt>t2</tt> and both of these calls <del>happen</del>
-<ins>occur</ins> before <tt>C1::time_point::max()</tt>. 
-<ins>[ <i>Note</i>: This means <tt>C1</tt> didn't wrap around between <tt>t1</tt> and <tt>t2</tt> &mdash; <i>end note</i> ]</ins>
-</p></blockquote>
-</li>
-
-<li><p>Add the following new requirement set at the end of sub-clause 20.12.3 [time.clock.req]: [<i>Comment</i>:
-This requirement set is <strong>intentionally</strong> incomplete. The reason for
-this incompleteness is the based on the fact, that if we would make it right for C++0x, we would end up defining
-something like a complete <tt>ArithmeticLike</tt> concept for <tt>TC::rep</tt>, <tt>TC::duration</tt>, and <tt>TC::time_point</tt>. 
-But this looks out-of scope for C++0x to me. The effect is that we essentially do not exactly say, which arithmetic 
-or comparison operations can be used in the time-dependent functions from Clause 30, even though I expect that
-all declared functions of <tt>duration</tt> and <tt>time_point</tt> are well-formed and well-defined. &mdash; <i>end comment</i>]</p>
-<blockquote><p>
-3 [ <i>Note</i>: the relative difference in durations between those reported by a given clock and the SI definition is
-a measure of the quality of implementation. &mdash; <i>end note</i> ]
-</p></blockquote>
-
-<blockquote><p>
-<ins>? A type <tt>TC</tt> meets the <tt><i>TrivialClock</i></tt> requirements if:</ins>
-</p>
-<ul>
-<li><p>
-<ins><tt>TC</tt> satisfies the <tt>Clock</tt> requirements (20.12.3 [time.clock.req]),</ins>
-</p></li>
-<li><p>
-<ins>the types <tt>TC::rep</tt>, <tt>TC::duration</tt>, and <tt>TC::time_point</tt> satisfy 
-the requirements of <tt>EqualityComparable</tt> ( [equalitycomparable]), <tt>LessThanComparable</tt> 
-( [lessthancomparable]), <tt>DefaultConstructible</tt> ( [defaultconstructible]), 
-<tt>CopyConstructible</tt> ( [copyconstructible]), <tt>CopyAssignable</tt> ( [copyassignable]), 
-<tt>Destructible</tt> ( [destructible]), and of numeric types ([numeric.requirements]) [<i>Note</i>: This means in 
-particular, that operations of these types will not throw exceptions &mdash; <i>end note</i> ],</ins>
-</p></li>
-<li><p>
-<ins>lvalues of the types <tt>TC::rep</tt>, <tt>TC::duration</tt>, and <tt>TC::time_point</tt> are swappable 
-(17.6.3.2 [swappable.requirements]),</ins>
-</p></li>
-<li><p>
-<ins>the function <tt>TC::now()</tt> does not throw exceptions, and</ins>
-</p></li>
-<li><p>
-<ins>the type <tt>TC::time_point::clock</tt> meets the <tt>TrivialClock</tt> requirements, recursively.</ins>
-</p></li>
-</ul>
-</blockquote>
-</li>
-
-<li>
-<p>Modify 20.12.7 [time.clock] p. 1 as follows:</p>
-
-<blockquote><p>
-1 - The types defined in this subclause shall satisfy the <tt><ins>Trivial</ins>Clock</tt> requirements (20.11.1). 
-</p></blockquote>
-</li>
-
-<li>
-<p>Modify 20.12.7.1 [time.clock.system] p. 1, class <tt>system_clock</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-class system_clock {
-public:
-  typedef <i>see below</i> rep;
-  typedef ratio&lt;<i>unspecified</i> , <i>unspecified</i> &gt; period;
-  typedef chrono::duration&lt;rep, period&gt; duration;
-  typedef chrono::time_point&lt;system_clock&gt; time_point;
-  static const bool is_monotonic is_steady = <i>unspecified</i>;
-  static time_point now() <ins>noexcept</ins>;
-  // Map to C API
-  static time_t to_time_t (const time_point&amp; t) <ins>noexcept</ins>;
-  static time_point from_time_t(time_t t) <ins>noexcept</ins>;
-};
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>Modify the prototype declarations in 20.12.7.1 [time.clock.system] p. 3 + p. 4 as indicated (This 
-edit also fixes the miss of the <tt>static</tt> specifier in these prototype declarations):</p>
-
-<blockquote><pre>
-<ins>static</ins> time_t to_time_t(const time_point&amp; t) <ins>noexcept</ins>;
-</pre>
-
-<pre>
-<ins>static</ins> time_point from_time_t(time_t t) <ins>noexcept</ins>;
-</pre>
-</blockquote>
-
-</li>
-
-<li>
-<p>Modify 20.12.7.2 [time.clock.steady] p. 1, class <tt>steady_clock</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-class steady_clock {
-public:
-  typedef <i>unspecified</i> rep;
-  typedef ratio&lt;<i>unspecified</i> , <i>unspecified</i> &gt; period;
-  typedef chrono::duration&lt;rep, period&gt; duration;
-  typedef chrono::time_point&lt;<i>unspecified</i>, duration&gt; time_point;
-  static const bool is_monotonic is_steady = true;
-
-  static time_point now() <ins>noexcept</ins>;
-};
-</pre></blockquote>
-
-</li>
-
-<li>
-<p> Modify 20.12.7.3 [time.clock.hires] p. 1, class <tt>high_resolution_clock</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-class high_resolution_clock {
-public:
-  typedef <i>unspecified</i> rep;
-  typedef ratio&lt;<i>unspecified</i> , <i>unspecified</i> &gt; period;
-  typedef chrono::duration&lt;rep, period&gt; duration;
-  typedef chrono::time_point&lt;<i>unspecified</i>, duration&gt; time_point;
-  static const bool is_monotonic is_steady = <i>unspecified</i>;
-
-  static time_point now() <ins>noexcept</ins>;
-};
-</pre></blockquote>
-
-</li>
-
-<li><p>Add a new paragraph at the end of 30.2.4 [thread.req.timing]:</p>
-
-<blockquote><p>
-6 The resolution of timing provided by an implementation depends on both operating system and hardware.
-The finest resolution provided by an implementation is called the <i>native resolution</i>.
-</p></blockquote>
-
-<blockquote><p>
-<ins>? Implementation-provided clocks that are used for these functions shall meet the <tt>TrivialClock</tt>
-requirements (20.12.3 [time.clock.req]).</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>Edit the synopsis of 30.3.2 [thread.thread.this] before p. 1. 
-<i>[Note: this duplicates edits also in D/N3267]</i>:
-</p>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-void sleep_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) <del>noexcept</del>;
-template &lt;class Rep, class Period&gt;
-void sleep_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) <del>noexcept</del>;
-</pre></blockquote>
-</li>
-
-<li>
-<p>Modify the prototype specifications in 30.3.2 [thread.thread.this] before p. 4 and p. 6 and
-re-add a <i>Throws</i> element following the <i>Synchronization</i> elements at p. 5 and p. 7:</p>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-void sleep_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) <del>noexcept</del>;
-</pre><blockquote><p>
-4 - [...]
-<p/>
-5 - <i>Synchronization</i>: None.
-<p/>
-<ins>? - <i>Throws</i>: Nothing if <tt>Clock</tt> satisfies the <tt>TrivialClock</tt> requirements (20.12.3 [time.clock.req]) and
-operations of <tt>Duration</tt> do not throw exceptions.
-[<i>Note</i>: Instantiations of time point types and clocks supplied by the implementation as specified in 20.12.7 [time.clock] 
-do not throw exceptions. &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-void sleep_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) <del>noexcept</del>;
-</pre><blockquote><p>
-6 [...]
-<p/>
-7 <i>Synchronization</i>: None.
-<p/>
-<ins>? <i>Throws</i>: Nothing if operations of <tt>chrono::duration&lt;Rep, Period&gt;</tt> do not throw exceptions.
-[<i>Note</i>: Instantiations of duration types supplied by the implementation as specified in 20.12.7 [time.clock] 
-do not throw exceptions. &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Fix a minor incorrectness in p. 5: Duration types need to compare against <tt>duration&lt;&gt;::zero()</tt>,
-not <tt>0</tt>:</p>
-
-<blockquote><p>
-3 The expression <tt>m.try_lock_for(rel_time)</tt> shall be well-formed and have the following semantics:
-<p/>
-[...]
-<p/>
-5 <i>Effects</i>: The function attempts to obtain ownership of the mutex within the relative timeout (30.2.4)
-specified by <tt>rel_time</tt>. If the time specified by <tt>rel_time</tt> is less than or equal to <del><tt>0</tt></del><ins><tt>rel_time.zero()</tt></ins>, 
-the function attempts to obtain ownership without blocking (as if by calling <tt>try_lock()</tt>). The function shall return
-within the timeout specified by <tt>rel_time</tt> only if it has obtained ownership of the mutex object.
-[ <i>Note</i>: As with <tt>try_lock()</tt>, there is no guarantee that ownership will be obtained if the lock is
-available, but implementations are expected to make a strong effort to do so. &mdash; <i>end note</i> ]
-</p>
-</blockquote>
-</li>
-
-<li><p>Modify the class <tt>timed_mutex</tt> synopsis in 30.4.1.3.1 [thread.timedmutex.class] as indicated:
-<i>[Note: this duplicates edits also in D/N3267]</i>:
-</p>
-
-<blockquote><pre>
-class timed_mutex {
-public:
-  [...]
-  template &lt;class Rep, class Period&gt;
-    bool try_lock_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) <del>noexcept</del>;
-  template &lt;class Clock, class Duration&gt;
-    bool try_lock_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) <del>noexcept</del>;
-  [...]
-};
-</pre></blockquote>
-</li>
-
-<li><p>Modify the class <tt>recursive_timed_mutex</tt> synopsis in 30.4.1.3.2 [thread.timedmutex.recursive] as indicated:
-<i>[Note: this duplicates edits also in D/N3267]</i>:
-</p>
-
-<blockquote><pre>
-class recursive_timed_mutex {
-public:
-  [...]
-  template &lt;class Rep, class Period&gt;
-    bool try_lock_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) <del>noexcept</del>;
-  template &lt;class Clock, class Duration&gt;
-    bool try_lock_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) <del>noexcept</del>;
-  [...]
-};
-</pre></blockquote>
-</li>
-
-<li><p>Modify the class template <tt>unique_lock</tt> synopsis in 30.4.2.2 [thread.lock.unique] as indicated.
-<i>[Note: this duplicates edits also in D/N3267]</i>:
-</p>
-
-<blockquote><pre>
-template &lt;class Mutex&gt;
-class unique_lock {
-public:
-  [...]
-  template &lt;class Clock, class Duration&gt;
-    unique_lock(mutex_type&amp; m, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) <del>noexcept</del>;
-  template &lt;class Rep, class Period&gt;
-    unique_lock(mutex_type&amp; m, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) <del>noexcept</del>;
-  [...]
-};
-</pre></blockquote>
-</li>
-
-<li><p>Modify the constructor prototypes in 30.4.2.2.1 [thread.lock.unique.cons] before p. 14 and p. 17 
-<i>[Note: this duplicates edits also in D&#47;N3267]</i>:
-</p>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-  unique_lock(mutex_type&amp; m, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) <del>noexcept</del>;
-</pre></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-  unique_lock(mutex_type&amp; m, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) <del>noexcept</del>;
-</pre></blockquote>
-</li>
-
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1490"></a>1490. Mutex requirements too stringent</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-27</b></p>
-
-<p>
-The mutex requirements force <tt>try_lock</tt> to be
-<tt>noexcept(true)</tt>. However, where they are used by the
-generic algorithms, those relax this requirement and say
-that <tt>try_lock</tt> may throw. This means the requirement is
-too stringent, also a non-throwing <tt>try_lock</tt> does not allow
-for a diagnostic such as <tt>system_error</tt> that <tt>lock()</tt> 
-will give us.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-delete p18, adjust 30.4.4 p1 and p4 accordingly
-</p></blockquote>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3130.html">n3130</a> would solve this issue.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3197.htm">n3197</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1491"></a>1491. <tt>try_lock</tt> does not guarantee forward progress</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-186</b></p>
-
-<p>
-<tt>try_lock</tt> does not provide a guarantee of forward progress
-because it is allowed to spuriously fail.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-The standard mutex types must not fail spuriously
-in <tt>try_lock</tt>. See <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3141.pdf">n3141</a> 
-page 205 - Appendix 1 - Additional Details
-</p></blockquote>
-
-<p><i>[
-2010-11-01 Daniel comments:
-]</i></p>
-
-<blockquote><p>
-Paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3152.html">n3152</a> addresses
-this issue.
-</p></blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3209.htm">n3209</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1492"></a>1492. Mutex requirements should not be bound to threads</h3>
-<p><b>Section:</b> 30.4.1 [thread.mutex.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#thread.mutex.requirements">active issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.mutex.requirements">issues</a> in [thread.mutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-188</b></p>
-
-<p>
-Mutex requirements should not be bound to threads.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-See Appendix 1 of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3141.pdf">n3141</a> - Additional Details, p. 208.
-</p></blockquote>
-
-<p><i>[
-2010-10-24 Daniel adds:
-]</i></p>
-
-
-<blockquote><p>
-Accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3130.html">n3130</a> would solve this issue.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3197.htm">n3197</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1494"></a>1494. Term "are serialized" not defined</h3>
-<p><b>Section:</b> 30.4.4.2 [thread.once.callonce] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.once.callonce">issues</a> in [thread.once.callonce].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-190</b></p>
-<p>
-The term "are serialized" is never defined (30.4.4.2 [thread.once.callonce] p. 2).
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Remove the sentence with "are serialized" from
-paragraph 2. Add "Calls to <tt>call_once</tt> on the same
-<tt>once_flag</tt> object shall not introduce data races
-(17.6.4.8)." to paragraph 3.
-</p>
-
-<p><i>[
-2010-11-01 Daniel translates NB comment into wording
-]</i></p>
-
-
-
-<p><i>[
-2011-02-17: Hans proposes an alternative resolution
-]</i></p>
-
-
-<p><i>[
-2011-02-25: Hans, Clark, and Lawrence update the suggested wording
-]</i></p>
-
-
-<p><i>[2011-02-26 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 30.4.4.2 [thread.once.callonce] p.2+3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class Callable, class ...Args&gt;
-void call_once(once_flag&amp; flag, Callable&amp;&amp; func, Args&amp;&amp;... args);
-</pre><blockquote><p>
-[..]
-<p/>
-2 <em>Effects</em>: <del>Calls to <tt>call_once</tt> on the same <tt>once_flag</tt> object are serialized.
-If there has been a prior effective call to <tt>call_once</tt> on the same <tt>once_flag object</tt>, the call to <tt>call_once</tt> 
-returns without invoking <tt>func</tt>. If there has been no prior effective call to <tt>call_once</tt> 
-on the same <tt>once_flag</tt> object, <tt>INVOKE(decay_copy( std::forward&lt;Callable&gt;(func)), 
-decay_copy(std::forward&lt;Args&gt;(args))...)</tt> is executed. The call to <tt>call_once</tt> is effective 
-if and only if <tt>INVOKE(decay_copy( std::forward&lt;Callable&gt;(func)), decay_copy(std::forward&lt;Args&gt;(args))...)</tt> 
-returns without throwing an exception. If an exception is thrown it is propagated to the caller.</del>
-<ins>An execution of <code>call_once</code> that does not call its <code>func</code> is a passive execution.
-An execution of <code>call_once</code> that calls its <code>func</code> is an active execution.
-An active execution shall call <code><var>INVOKE</var>(decay_copy(std::forward&lt;Callable&gt;(func)),
-decay_copy(std::forward&lt;Args&gt;(args))...)</code>. If such a call to <code>func</code> throws an exception,
-the execution is exceptional, otherwise it is returning.
-An exceptional execution shall propagate the exception to the caller of <code>call_once</code>.
-Among all executions of <code>call_once</code> for any given <code>once_flag</code>: at most one shall be a 
-returning execution; if there is a returning execution, it shall be the last active execution; and
-there are passive executions only if there is a returning execution.
-[<i>Note:</i> Passive executions allow other threads to reliably observe the results produced by the 
-earlier returning execution. &mdash; <i>end note</i>]</ins>
-<p/>
-3 <em>Synchronization</em>: <del>The completion of an effective call to <tt>call_once</tt> on a <tt>once_flag</tt> 
-object <em>synchronizes with</em> (1.10 [intro.multithread]) all subsequent calls to <tt>call_once</tt> 
-on the same <tt>once_flag</tt> object.</del><ins>For any given <code>once_flag</code>: all active executions occur in a total 
-order; completion of an active execution synchronizes with (1.10 [intro.multithread]) the start of 
-the next one in this total order; and the returning execution synchronizes with the return from all passive 
-executions.</ins>
-</p></blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1497"></a>1497. <tt>lock()</tt> postcondition can not be generally achieved</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-30</b></p>
-<p>
-If <tt>lock.lock()</tt> throws an exception, the postcondition can not be generally achieved.
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Either state that the postcondition might not be achieved, depending on the error condition, or
-state that <tt>terminate()</tt> is called in this case.
-</p></blockquote>
-
-<p><i>[
-2010-08-13 Peter Sommerlad comments and provides wording
-]</i></p>
-
-
-<blockquote><p>
-30.5.1 [thread.condition.condvar], 30.5.2 [thread.condition.condvarany]
-<p/>
-p. 13, last bullet, and corresponding paragraphs in all wait functions
-<p/>
-Problem:<br/>
-Condition variable wait might fail, because the lock cannot be acquired when notified.
-CH-30 says: "If lock.lock() throws an exception, the postcondition can not be generally achieved."
-CH-30 proposes: "Either state that the postcondition might not be achieved, depending on the error 
-condition, or state that terminate() is called in this case."
-<p/>
-The discussion in Rapperswil concluded that calling <tt>terminate()</tt> might be too drastic in 
-this case and a corresponding exception should be thrown&#47;passed on and one should use a lock type 
-that allows querying its status, which <tt>unique_lock</tt> allows for <tt>std::condition_variable</tt>
-<p/>
-We also had some additional observations while discussing in Rapperswil:
-</p>
-<ul>
-<li>in 30.5.1 [thread.condition.condvar] <tt>wait</tt> with predicate and <tt>wait_until</tt> with 
-predicate lack the precondition, postcondition and Error conditions sections. the lack of the precondition 
-would allow to call <tt>pred()</tt> without holding the lock.
-</li>
-<li>in 30.5.1 [thread.condition.condvar] <tt>wait_until</tt> and <tt>wait_for</tt> and 
-30.5.2 [thread.condition.condvarany] <tt>wait_for</tt> still specify an 
-error condition for a violated precondition. This should be removed.
-</li>
-</ul>
-<p>
-and add the following proposed solution:
-</p>
-</blockquote>
-
-<p><i>[2011-02-27: Daniel adapts numbering to n3225]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 30.5.1 [thread.condition.condvar] as indicated:
-<blockquote><pre>
-void wait(unique_lock&lt;mutex&gt;&amp; lock);
-</pre></blockquote>
-<blockquote><p>
- 9 <i>Requires</i>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread, and either
-</p>
-<ul>
-<li>no other thread is waiting on this <tt>condition_variable</tt> object or
-</li>
-<li><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt> arguments supplied by all concurrently
-waiting (via <tt>wait</tt> or <tt>timed_wait</tt>) threads.
-</li>
-</ul>
-</blockquote>
-[..]
-<blockquote><p>
-11 <em>Postcondition</em>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread.
-</p></blockquote>
-[..]
-<blockquote><pre>
-template &lt;class Predicate&gt;
-void wait(unique_lock&lt;mutex&gt;&amp; lock, Predicate pred);
-</pre></blockquote>
-<blockquote><p>
-<ins>?? <i>Requires</i>: <tt>lock.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt> is locked by the calling thread, and either</ins>
-</p>
-<ul>
-<li><ins>no other thread is waiting on this <tt>condition_variable</tt> object or</ins>
-</li>
-<li><ins><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt> arguments supplied by all concurrently
-waiting (via <tt>wait</tt> or <tt>timed_wait</tt>) threads.</ins>
-</li>
-</ul>
-</blockquote>
-<blockquote><p>
-14 <i>Effects</i>:
-</p><blockquote><pre>
-while (!pred())
-  wait(lock);
-</pre></blockquote>
-</blockquote>
-
-<blockquote><p>
-<ins>?? <i>Postcondition</i>: <tt>lock.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt> is locked by the calling thread.</ins>
-</p></blockquote>
-<blockquote><p>
-<ins>?? <i>Throws</i>: <tt>std::system_error</tt> when an exception is required (30.2.2).</ins>
-</p></blockquote>
-<blockquote><p>
-<ins>?? <em>Error conditions</em>:</ins>
-</p>
-<ul>
-<li><ins>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</ins>
-</li>
-</ul>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-cv_status wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-  const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre></blockquote>
-<blockquote><p>
-15 <i>Requires</i>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread, and either
-</p>
-<ul>
-<li>no other thread is waiting on this <tt>condition_variable</tt> object or
-</li>
-<li><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt> arguments supplied by all concurrently
-waiting (via <tt>wait</tt>, <tt>wait_for</tt>, or <tt>wait_until</tt>) threads.
-</li>
-</ul>
-</blockquote><p>
-[..]
-</p><blockquote><p>
-17 <em>Postcondition</em>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread.
-</p></blockquote>
-[..]
-<blockquote><p>
-20 <em>Error conditions</em>:
-</p>
-<ul>
-<li><del><tt>operation_not_permitted</tt> &mdash; if the thread does not own the lock.</del>
-</li>
-<li>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</li>
-</ul>
-</blockquote>
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-cv_status wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre></blockquote>
-<blockquote><p>
-21 <i>Requires</i>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread, and either
-</p>
-<ul>
-<li>no other thread is waiting on this <tt>condition_variable</tt> object or
-</li>
-<li><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt> arguments supplied by all concurrently
-waiting (via <tt>wait</tt>, <tt>wait_for</tt>, or <tt>wait_until</tt>) threads.
-</li>
-</ul>
-</blockquote><p>
-[..]
-</p><blockquote><p>
-24 <em>Postcondition</em>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread.
-</p></blockquote>
-[..]
-<blockquote><p>
-26 <em>Error conditions</em>:
-</p>
-<ul>
-<li><del><tt>operation_not_permitted</tt> &mdash; if the thread does not own the lock.</del>
-</li>
-<li>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</li>
-</ul>
-</blockquote>
-<blockquote><pre>
-template &lt;class Clock, class Duration, class Predicate&gt;
-bool wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-  const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time,
-    Predicate pred);
-</pre></blockquote>
-<blockquote><p>
-<ins>?? <i>Requires</i>: <tt>lock.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt> is locked by the calling thread, and either</ins>
-</p>
-<ul>
-<li><ins>no other thread is waiting on this <tt>condition_variable</tt> object or</ins>
-</li>
-<li><ins><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt> arguments supplied by all concurrently
-waiting (via <tt>wait</tt> or <tt>timed_wait</tt>) threads.</ins>
-</li>
-</ul>
-</blockquote>
-<blockquote><p>
-27 <i>Effects</i>:
-</p><blockquote><pre>
-while (!pred())
-  if (wait_until(lock, abs_time) == cv_status::timeout)
-    return pred();
-return true;
-</pre></blockquote>
-</blockquote>
-<blockquote><p>
-28 <i>Returns</i>: <tt>pred()</tt>
-</p></blockquote>
-
-<blockquote><p>
-<ins>?? <i>Postcondition</i>: <tt>lock.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt> is locked by the calling thread.</ins>
-</p></blockquote>
-
-<blockquote><p>
-29 [ <i>Note</i>: The returned value indicates whether the predicate evaluates to true regardless of whether the
-timeout was triggered. &mdash; <i>end note</i> ]
-</p></blockquote>
-
-<blockquote><p>
-<ins>?? <i>Throws</i>: <tt>std::system_error</tt> when an exception is required (30.2.2).</ins>
-</p></blockquote>
-<blockquote><p>
-<ins>?? <em>Error conditions</em>:</ins>
-</p>
-<ul>
-<li><ins>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</ins>
-</li>
-</ul>
-</blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period, class Predicate&gt;
-bool wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time,
-    Predicate pred);
-</pre></blockquote>
-<blockquote><p>
-30 <i>Requires</i>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread, and either
-</p>
-<ul>
-<li>no other thread is waiting on this <tt>condition_variable</tt> object or
-</li>
-<li><tt>lock.mutex()</tt> returns the same value for each of the <tt>lock</tt> arguments supplied by all concurrently
-waiting (via <tt>wait</tt>, <tt>wait_for</tt>, or <tt>wait_until</tt>) threads.
-</li>
-</ul>
-</blockquote><p>
-[..]
-</p><blockquote><p>
-33 <em>Postcondition</em>: <tt>lock</tt><ins><tt>.owns_lock()</tt> is <tt>true</tt> and <tt>lock.mutex()</tt></ins> is locked by the calling thread.
-</p></blockquote><p>
-[..]
-</p><blockquote><p>
-37 <em>Error conditions</em>:
-</p>
-<ul>
-<li><del><tt>operation_not_permitted</tt> &mdash; if the thread does not own the lock.</del>
-</li>
-<li>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</li>
-</ul>
-</blockquote>
-
-</li>
-
-<li>Change 30.5.2 [thread.condition.condvarany] as indicated:
-<p/>
-[..]
-<blockquote><pre>
-template &lt;class Lock, class Predicate&gt;
-void wait(Lock&amp; lock, Predicate pred);
-</pre></blockquote>
-<blockquote><p>
-<ins>[<i>Note</i>: if any of the wait functions exits with an exception it is indeterminate if the <tt>Lock</tt> is held. 
-One can use a <tt>Lock</tt> type that allows to query that, such as the <tt>unique_lock</tt> wrapper. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-<blockquote><p>
-11 <i>Effects</i>:
-</p><blockquote><pre>
-while (!pred())
-  wait(lock);
-</pre></blockquote>
-</blockquote><p>
-[..]
-</p><blockquote><p>
-31 <em>Error conditions</em>:
-</p>
-<ul>
-<li><del><tt>operation_not_permitted</tt> &mdash; if the thread does not own the lock.</del>
-</li>
-<li>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.
-</li>
-</ul>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1498"></a>1498. Unclear specification for [thread.condition]</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-29</b></p>
-
-<p>
-It is unclear if a spurious wake-up during the loop and reentering
-of the blocked state due to a repeated execution
-of the loop will adjust the timer of the blocking with the
-respect to the previously specified <tt>rel_time</tt> value.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Make it clear (e.g. by a note) that when reexecuting
-the loop the waiting time when blocked
-will be adjusted with respect to the elapsed time of
-the previous loop executions.
-</p></blockquote>
-
-<p><i>[
-2010-08-13 Peter Sommerlad comments and provides wording:
-]</i></p>
-
-
-<blockquote><p>
-Problem: It is unclear if a spurious wake-up during the loop and re-entering of the blocked state due 
-to a repeated execution of the loop will adjust the timer of the blocking with the respect to the 
-previously specified <tt>rel_time</tt> value.
-<p/>
-Proposed Resolution from CH29:
-<p/>
-Make it clear (e.g. by a note) that when re-executing the loop the waiting time when blocked will be 
-adjusted with respect to the elapsed time of the previous loop executions.
-<p/>
-Discussion in Rapperswil:
-<p/>
-Assuming the introduction of a mandatory <tt>steady_clock</tt> proposed by US-181 to the FCD the 
-specification of <tt>condition_variable::wait_for</tt> can be defined in terms of <tt>wait_until</tt> 
-using the <tt>steady_clock</tt>. This is also interleaving with US-181, because that touches the 
-same paragraph (30.5.1 p 25, p34 and 30.5.2 p 20, p 28 in n3092.pdf)
-<p/>
-(The "as if" in the proposed solutions should be confirmed by the standardization terminology experts)
-</p></blockquote>
-
-<p><i>[
-2010-11 Batavia: Resolved by applying <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3191.htm">n3191</a>
-]</i></p>
-
-
-<blockquote>
-<ol>
-<li>Change 30.5.1 [thread.condition.condvar] paragraph 25, <tt>wait_for</tt> <i>Effects</i> as indicated:
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-cv_status wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre></blockquote>
-<blockquote><p>
-[..]
-<p/>
-25 <i>Effects</i>: <ins>as if</ins>
-</p>
-<blockquote><pre>
-<ins>return wait_until(lock, chrono::steady_clock::now() + rel_time);</ins>
-</pre></blockquote>
-<ul>
-<li><del>Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.</del>
-</li>
-<li><del>When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock), then returns.</del>
-</li>
-<li><del>The function will unblock when signaled by a call to <tt>notify_one()</tt> or a call to <tt>notify_all()</tt>,
-by the elapsed time <tt>rel_time</tt> passing (30.2.4), or spuriously.</del>
-</li>
-<li><del>If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function scope.</del>
-</li>
-</ul>
-</blockquote>
-</li>
-<li>Change 30.5.1 [thread.condition.condvar] paragraph 34, <tt>wait_for</tt> with predicate <i>Effects</i> as indicated:
-<blockquote><pre>
-template &lt;class Rep, class Period, class Predicate&gt;
-bool wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-  const chrono::duration&lt;Rep, Period&gt;&amp; rel_time,
-  Predicate pred);
-</pre></blockquote>
-<blockquote><p>
-[..]
-<p/>
-34 <i>Effects</i>: <ins>as if</ins>
-</p>
-<blockquote><pre>
-<ins>return wait_until(lock, chrono::steady_clock::now() + rel_time, std::move(pred));</ins>
-</pre></blockquote>
-<ul>
-<li><del>Executes a loop: Within the loop the function first evaluates <tt>pred()</tt> and exits the loop if the
-result is <tt>true</tt>.
-</del></li>
-
-<li><del>Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</del></li>
-
-<li><del>When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock).
-</del></li>
-
-<li><del>The function will unblock when signaled by a call to <tt>notify_one()</tt> or a call to <tt>notify_all()</tt>,
-by the elapsed time <tt>rel_time</tt> passing (30.2.4), or spuriously.
-</del></li>
-
-<li><del>If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function
-scope.
-</del></li>
-
-<li><del>The loop terminates when <tt>pred()</tt> returns <tt>true</tt> or when the time duration specified by <tt>rel_time</tt>
-has elapsed.
-</del></li>
-
-</ul>
-</blockquote>
-</li>
-
-<li>Change 30.5.2 [thread.condition.condvarany] paragraph 20, <tt>wait_for</tt> <i>Effects</i> as indicated:
-<blockquote><pre>
-template &lt;class Lock, class Rep, class Period&gt;
-cv_status wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre></blockquote>
-<blockquote><p>
-20 <i>Effects</i>: <ins>as if</ins>
-</p><blockquote><pre>
-<ins>return wait_until(lock, chrono::steady_clock::now() + rel_time);</ins>
-</pre></blockquote>
-<ul>
-<li><del>Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</del></li>
-
-<li><del>When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock), then returns.
-</del></li>
-
-<li><del>The function will unblock when signaled by a call to <tt>notify_one()</tt> or a call to <tt>notify_all()</tt>,
-by the elapsed time <tt>rel_time</tt> passing (30.2.4), or spuriously.
-</del></li>
-
-<li><del>If the function exits via an exception, <tt>lock.unlock()</tt> shall be called prior to exiting the function
-scope.
-</del></li>
-</ul>
-</blockquote>
-</li>
-
-<li>Change 30.5.2 [thread.condition.condvarany] paragraph 28, <tt>wait_for</tt> with predicate <i>Effects</i> as indicated:
-<blockquote><pre>
-template &lt;class Lock, class Rep, class Period, class Predicate&gt;
-bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, Predicate pred);
-</pre></blockquote>
-<blockquote><p>
-28 <i>Effects</i>: <ins>as if</ins>
-</p><blockquote><pre>
-<ins>return wait_until(lock, chrono::steady_clock::now() + rel_time, std::move(pred));</ins>
-</pre></blockquote>
-<ul>
-<li><del>Executes a loop: Within the loop the function first evaluates <tt>pred()</tt> and exits the loop if the
-result is <tt>true</tt>.
-</del></li>
-
-<li><del>Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.
-</del></li>
-
-<li><del>When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock).
-</del></li>
-
-<li><del>The function will unblock when signaled by a call to <tt>notify_one()</tt> or a call to <tt>notify_all()</tt>,
-by the elapsed time <tt>rel_time</tt> passing (30.2.4), or spuriously.
-</del></li>
-
-<li><del>If the function exits via an exception, <tt>lock.unlock()</tt> shall be called prior to exiting the function
-scope.
-</del></li>
-
-<li><del>The loop terminates when <tt>pred()</tt> returns <tt>true</tt> or when the time duration specified by <tt>rel_time</tt>
-has elapsed.
-</del></li>
-</ul>
-</blockquote>
-</li>
-
-</ol>
-
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3191.htm">n3191</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1501"></a>1501. Specification for managing associated asynchronous state has problems</h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-194</b></p>
-
-<p>
-The specification for managing associated asynchronous
-state is confusing, sometimes omitted, and redundantly
-specified.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-
-<blockquote><p>
-Define terms-of-art for releasing, making ready,
-and abandoning an associated asynchronous
-state. Use those terms where appropriate. See
-Appendix 1 - Additional Details
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved in Batavia by accepting
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3192.htm">n3192</a>.
-</p>
-
-
-
-
-<hr>
-<h3><a name="1502"></a>1502. Specification of [futures.state] unclear</h3>
-<p><b>Section:</b> 30.6.4 [futures.state] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.state">issues</a> in [futures.state].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-195</b></p>
-
-<p>The intent and meaning of 30.6.4 [futures.state] p10 is not apparent.</p>
-
-<blockquote><p>
-10 Accesses to the same shared state conflict (1.10).
-</p></blockquote>
-
-<p><i>[
-2011-03-07 Jonathan Wakely adds:
-]</i></p>
-
-<blockquote><p>
-It's not clear which paragraph this refers to, I had to go to the
-ballot comments where US-195 reveals it's para 8, which in the FCD
-(N3092) says:
-</p><blockquote><p>
- Accesses to the same associated asynchronous state conflict (1.10).
-</p></blockquote>
-<p>This is now para 10 in N3242:</p>
-<blockquote><p>
- Accesses to the same shared state conflict (1.10).
-</p></blockquote>
-</blockquote>
-
-<p><i>[2011-03-07: Lawrence comments and drafts wording]</i></p>
-
-
-<p>The intent of this paragraph is to deal with operations,
-such as <code>shared_future::get()</code>, that return a reference
-to a value held in the shared state.  User code could potentially
-conflict when accessing that value.</p>
-
-<p>Lawrence proposed resolution:</p>
-
-<p>Modify 30.6.4 [futures.state] p10 as follows:</p>
-
-<blockquote><p>
-10 <del>Accesses to the same shared state conflict (1.10 [intro.multithread]).</del><ins>Some 
-  operations, e.g. <code>shared_future::get()</code>
- (30.6.7 [futures.shared_future]), may return a reference to a
- value held in their shared state. Accesses and modifications through
- those references by concurrent threads to the same 
- shared state may potentially conflict (1.10 [intro.multithread]).
- [<i>Note:</i> As a consequence, accesses must either use
- read-only operations or provide additional synchronization.
- &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-
-<p><i>[2011-03-19: Detlef suggests an alternative resolution, shown below.]</i></p>
-
-
-<blockquote class="note">
-<p>Proposed Resolution</p>
-<p>Modify 30.6.4 [futures.state] p10 as follows:</p>
-
-<blockquote><p>
-10 Accesses to the same shared state conflict (1.10 [intro.multithread]). <ins>[<i>Note</i>: 
-This explicitely specifies that the shared state is visible in the objects that reference this state 
-in the sense of data race avoidance 17.6.5.9 [res.on.data.races]. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1504"></a>1504. Term "are serialized" is not defined</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-196</b></p>
-<p>
-The term "are serialized" is not defined (30.6.5 [futures.promise] p. 21, 25).
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Replace "are serialized" with "shall not introduce a data race (17.6.4.8)".
-</p></blockquote>
-
-<p><i>[
-2010-11-02 Daniel translates proposal into proper wording changes
-]</i></p>
-
-
-<p><i>[2011-03-19: Detlef comments]</i></p>
-
-
-<p>The proposed resolution for <a href="lwg-defects.html#1507">1507</a> would cover this issue as well.</p>
-
-<p><i>[Proposed Resolution]</i></p>
-
-<blockquote>
-<ol>
-<li>Change 30.6.5 [futures.promise] p. 21 as indicated:
-<blockquote><p>
-21 <em>Synchronization</em>: calls to <tt>set_value</tt> and <tt>set_exception</tt> on a single 
-<tt>promise</tt> object <del>are serialized</del><ins>shall not introduce a data race ([res.on.data.races])</ins>.
-[ <em>Note</em>: and they synchronize and serialize with other functions through the referred associated asynchronous
-state. &mdash; <em>end note</em> ]
-</p></blockquote>
-</li>
-<li>Change 30.6.5 [futures.promise] p. 25 as indicated:
-<blockquote><p>
-25 <em>Synchronization</em>: calls to <tt>set_value</tt> and <tt>set_exception</tt> on a single 
-<tt>promise</tt> object <del>are serialized</del><ins>shall not introduce a data race ([res.on.data.races])</ins>.
-[ <em>Note</em>: and they synchronize and serialize with other functions through the referred associated asynchronous
-state. &mdash; <em>end note</em> ]
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2001-03 Madrid by issue 1507.
-</p>
-
-
-
-<hr>
-<h3><a name="1505"></a>1505. Synchronization between <tt>promise::set_value</tt> and <tt>future::get</tt></h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-197</b></p>
-<p>
-There is no defined synchronization between <tt>promise::set_value</tt> and <tt>future::get</tt> 
-(30.6.5 [futures.promise] p. 21, 25).
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Replace "[<i>Note</i>: and they synchronize and
-serialize with other functions through the referred
-associated asynchronous state. &mdash; <i>end note</i>]" with
-the normative "They synchronize with (1.10) any
-operation on a future object with the same
-associated asynchronous state marked ready."
-</p></blockquote>
-
-<p><i>[
-2010-11-02 Daniel translates proposal into proper wording changes
-]</i></p>
-
-
-<p><i>[2011-03-19: Detlef comments]</i></p>
-
-
-<p>The proposed resolution for <a href="lwg-defects.html#1507">1507</a> would cover this issue as well.
-Effectively it will reject the request but a clarification is added that the 
-normative wording is already in 30.6.4 [futures.state].</p>
-
-<blockquote class="note">
-<ol>
-<li>Change 30.6.5 [futures.promise] p. 21 as indicated:
-<blockquote><p>
-21 <em>Synchronization</em>: calls to <tt>set_value</tt> and <tt>set_exception</tt> on a single 
-<tt>promise</tt> object are serialized.
-<del>[ <em>Note</em>: and they synchronize and serialize with other functions through the referred associated asynchronous
-state. &mdash; <em>end note</em> ]</del><ins>They <em>synchronize with</em> ([intro.multithread]) any
-operation on a future object with the same associated asynchronous state marked ready.</ins>
-</p></blockquote>
-</li>
-<li>Change 30.6.5 [futures.promise] p. 25 as indicated:
-<blockquote><p>
-25 <em>Synchronization</em>: calls to <tt>set_value</tt> and <tt>set_exception</tt> on a single 
-<tt>promise</tt> object are serialized.
-<del>[ <em>Note</em>: and they synchronize and serialize with other functions through the referred associated asynchronous
-state. &mdash; <em>end note</em> ]</del><ins>They <em>synchronize with</em> ([intro.multithread]) any
-operation on a future object with the same associated asynchronous state marked ready.</ins>
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2001-03 Madrid by issue 1507.
-</p>
-
-
-
-<hr>
-<h3><a name="1507"></a>1507. <tt>promise::<i>XXX</i>_at_thread_exit</tt> functions have no
-synchronization requirements</h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-199</b></p>
-<p>
-<tt>promise::<i>XXX</i>_at_thread_exit</tt> functions have no
-synchronization requirements. Specifying synchronization
-for these member functions requires coordinating with the
-words in 30.6.5 [futures.promise]/21 and 25, which give synchronization
-requirements for <tt>promise::set_value</tt> and
-<tt>promise::set_exception</tt> (30.6.5 [futures.promise] p. 26 ff., p. 29 ff.).
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Change 30.6.5 [futures.promise]/21 to mention <tt>set_value_at_thread_exit</tt> and
-<tt>set_exception_at_thread_exit;</tt> with this text, replace 30.6.5 [futures.promise]/25 
-and add two new paragraphs, after 30.6.5 [futures.promise]/28 and 30.6.5 [futures.promise]/31.
-</p></blockquote>
-
-<p><i>[2011-03-8: Lawrence comments and drafts wording]</i></p>
-
-
-<p>This comment applies as well to other <tt>*_at_thread_exit</tt>
-functions.  The following resolution adds synchronization paragraphs
-to all of them and edits a couple of related synchronization
-paragraphs.</p>
-
-<p><i>[2011-03-09: Hans and Anthony add some improvements]</i></p>
-
-
-<p><i>[2011-03-19: Detlef comments]</i></p>
-
-
-<p>In regard to the suggested part:</p>
-
-<blockquote><p>
-These operations do not provide any ordering guarantees with
-respect to other operations, except through operations on futures
-that reference the same shared state.
-</p></blockquote>
-
-<p>I would like this to change to:</p>
-
-<blockquote><p>
-These operations do not provide any ordering guarantees with
-respect to other operations on the same promise object.
-[<i>Note</i>: They synchronize with calls to operations on
-objects that refer to the same shared state according to
-30.6.4 [futures.state]. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>The current proposed resolution has exactly the same paragraph at
-for places. I propose to have it only once as new paragraph 2.</p>
-
-<p>This also covers <a href="lwg-defects.html#1504">1504</a> (US-196) and <a href="lwg-defects.html#1505">1505</a> (US-197).
-US-197 is essentially rejected with this resolution, but a clarification is added 
-that the normative wording is already in 30.6.4 [futures.state].</p>
-
-<blockquote class="note">
-<p>Proposed Resolution</p>
-<ol>
-<li><p>Edit 30.4.1.2 [thread.mutex.requirements.mutex] paragraph 5 as follows:</p>
-
-<blockquote><p>
-5 The implementation shall provide lock and unlock operations, as described below. <del>The implementation 
-shall serialize those operations.</del><ins>For purposes of determining the existence of a data race, these
-behave as atomic operations (1.10 [intro.multithread]).  The lock and unlock operations on
-a single mutex shall appear to occur in a single total order. [<i>Note</i>: this can be viewed as the 
-modification order (1.10 [intro.multithread]) of the mutex. &mdash; <i>end note</i>]</ins> [ <i>Note</i>: 
-Construction and destruction of an object of a mutex type need not be thread-safe; other synchronization 
-should be used to ensure that mutex objects are initialized and visible to other threads. &mdash; <i>end note</i> ]
-</p></blockquote>
-</li>
-
-<li><p>Edit 30.5 [thread.condition] paragraphs 6-9 as follows:</p>
-
-<blockquote><pre>
-void notify_all_at_thread_exit(condition_variable&amp; cond, unique_lock&lt;mutex&gt; lk);
-</pre>
-<blockquote>
-<p>
--6- <i>Requires</i>: <tt>lk</tt> is locked by the calling thread and either
-</p>
-<ul>
-<li>no other thread is waiting on <tt>cond</tt>, or</li>
-<li><tt>lk.mutex()</tt> returns the same value for each of the lock arguments supplied by all concurrently
-waiting (via <tt>wait</tt>, <tt>wait_for</tt>, or <tt>wait_until</tt>) threads.</li>
-</ul>
-<p>
--7- <i>Effects</i>: transfers ownership of the lock associated with <tt>lk</tt> into internal storage and schedules 
-<tt>cond</tt> to be notified when the current thread exits, after all objects of thread storage duration 
-associated with the current thread have been destroyed. This notification shall be as if
-</p>
-<blockquote><pre>
-lk.unlock();
-cond.notify_all();
-</pre></blockquote>
-<p>
-<ins>-?- <i>Synchronization:</i> The call to <code>notify_all_at_thread_exit</code>
-and the completion of the destructors for all the current thread's variables of 
-thread storage duration synchronize with (1.10 [intro.multithread]) calls 
-to functions waiting on <code>cond</code>.</ins>
-<p/>
--8- <i>Note</i>: The supplied lock will be held until the thread exits, and care must be taken to ensure that
-this does not cause deadlock due to lock ordering issues. After calling <tt>notify_all_at_thread_exit</tt>
-it is recommended that the thread should be exited as soon as possible, and that no blocking or
-time-consuming tasks are run on that thread.
-<p/>
--9- <i>Note</i>: It is the user's responsibility to ensure that waiting threads do not erroneously 
-assume that the thread has finished if they experience spurious wakeups. This typically requires 
-that the condition being waited for is satisfied while holding the lock on <tt>lk</tt>, and that 
-this lock is not released and reacquired prior to calling <tt>notify_all_at_thread_exit</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 30.6.5 [futures.promise], paragraphs 14-27 as follows:</p>
-
-<blockquote><pre>
-void promise::set_value(const R&amp; r);
-void promise::set_value(R&amp;&amp; r);
-void promise&lt;R&amp;&gt;::set_value(R&amp; r);
-void promise&lt;void&gt;::set_value();
-</pre>
-<blockquote>
-<p>
--14- <i>Effects</i>: atomically stores the value <tt>r</tt> in the shared state and makes that state 
-ready (30.6.4 [futures.state]).
-<p/>
--15- <i>Throws</i>:
-</p>
-<ul>
-<li><tt>future_error</tt> if its shared state already has a stored value or exception, or</li>
-<li>for the first version, any exception thrown by the copy constructor of <tt>R</tt>, or</li>
-<li>for the second version, any exception thrown by the move constructor of <tt>R</tt>.</li>
-</ul>
-<p>
--16- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>promise_already_satisfied</tt> if its shared state already has a stored value or exception.</li>
-<li><tt>no_state</tt> if <tt>*this</tt> has no shared state.</li>
-</ul>
-<p>
--17- <i>Synchronization</i>: <del>calls to <tt>set_value</tt> and <tt>set_exception</tt> on a single 
-<tt>promise</tt> object are serialized. [ <i>Note</i>: And they synchronize and serialize with other functions 
-through the referred shared state. &mdash; <i>end note</i> ]</del><ins>For purposes of determining the 
-existence of a data race, <tt>set_value</tt>, <tt>set_exception</tt>, <tt>set_value_at_thread_exit</tt>,
-and <tt>set_exception_at_thread_exit</tt> behave as atomic operations (1.10 [intro.multithread]) on
-the memory location associated with the <tt>promise</tt>. Calls to these operations on a single promise shall 
-appear to occur in a single total order.  [<i>Note</i>: this can be viewed as the modification order
-(1.10 [intro.multithread]) of the promise. &mdash; <i>end note</i>] These operations do not 
-provide any ordering guarantees with respect to other operations, except through operations on futures
-that reference the same shared state.</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-void set_exception(exception_ptr p);
-</pre>
-<blockquote>
-<p>
--18- <i>Effects</i>: atomically stores the exception pointer <tt>p</tt> in the shared state and makes that 
-state ready (30.6.4 [futures.state]).
-</p>
-
-<p>
--19- <i>Throws</i>: <tt>future_error</tt> if its shared state already has a stored value or exception.
-</p>
-
-<p>
--20- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>promise_already_satisfied</tt> if its shared state already has a stored value or exception.</li>
-<li><tt>no_state</tt> if <tt>*this</tt> has no shared state.</li>
-</ul>
-
-<p>
--21- <i>Synchronization</i>: <del>calls to <tt>set_value</tt> and <tt>set_exception</tt> on a single 
-<tt>promise</tt> object are serialized. [ <i>Note</i>: And they synchronize and serialize with 
-other functions through the referred shared state. &mdash; <i>end note</i> ]</del><ins>For purposes of determining the 
-existence of a data race, <tt>set_value</tt>, <tt>set_exception</tt>, <tt>set_value_at_thread_exit</tt>,
-and <tt>set_exception_at_thread_exit</tt> behave as atomic operations (1.10 [intro.multithread]) on
-the memory location associated with the <tt>promise</tt>. Calls to these operations on a single promise shall 
-appear to occur in a single total order.  [<i>Note</i>: this can be viewed as the modification order
-(1.10 [intro.multithread]) of the promise. &mdash; <i>end note</i>] These operations do not 
-provide any ordering guarantees with respect to other operations, except through operations on futures
-that reference the same shared state.</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-void promise::set_value_at_thread_exit(const R&amp; r);
-void promise::set_value_at_thread_exit(R&amp;&amp; r);
-void promise&lt;R&amp;&gt;::set_value_at_thread_exit(R&amp; r);
-void promise&lt;void&gt;::set_value_at_thread_exit();
-</pre>
-<blockquote>
-<p>
--22- <i>Effects</i>: Stores the value <tt>r</tt> in the shared state without making that state 
-ready immediately. Schedules that state to be made ready when the current thread exits, after 
-all objects of thread storage duration associated with the current thread have been destroyed.
-<p/>
--23- <i>Throws</i>: <tt>future_error</tt> if an error condition occurs.
-<p/>
--24- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>promise_already_satisfied</tt> if its shared state already has a stored value or exception.</li>
-<li><tt>no_state</tt> if <tt>*this</tt> has no shared state.</li>
-</ul>
-<p>
-<ins>-??- <i>Synchronization</i>: For purposes of determining the existence of a data race, <tt>set_value</tt>, 
-<tt>set_exception</tt>, <tt>set_value_at_thread_exit</tt>, and <tt>set_exception_at_thread_exit</tt> behave as 
-atomic operations (1.10 [intro.multithread]) on the memory location associated with the <tt>promise</tt>. 
-Calls to these operations on a single promise shall appear to occur in a single total order.  [<i>Note</i>: 
-this can be viewed as the modification order (1.10 [intro.multithread]) of the promise. &mdash; 
-<i>end note</i>] These operations do not provide any ordering guarantees with respect to other operations, 
-except through operations on futures that reference the same shared state.</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-void promise::set_exception_at_thread_exit(exception_ptr p);
-</pre>
-<blockquote>
-<p>
--25- <i>Effects</i>: Stores the exception pointer <tt>p</tt> in the shared state without 
-making that state ready immediately. Schedules that state to be made ready when the current 
-thread exits, after all objects of thread storage duration associated with the current 
-thread have been destroyed.
-<p/>
--26- <i>Throws</i>: <tt>future_error</tt> if an error condition occurs.
-<p/>
--27- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>promise_already_satisfied</tt> if its shared state already has a stored value or exception.</li>
-<li><tt>no_state</tt> if <tt>*this</tt> has no shared state.</li>
-</ul>
-<p>
-<ins>-??- <i>Synchronization</i>: For purposes of determining the existence of a data race, <tt>set_value</tt>, 
-<tt>set_exception</tt>, <tt>set_value_at_thread_exit</tt>, and <tt>set_exception_at_thread_exit</tt> behave as 
-atomic operations (1.10 [intro.multithread]) on the memory location associated with the <tt>promise</tt>. 
-Calls to these operations on a single promise shall appear to occur in a single total order.  [<i>Note</i>: 
-this can be viewed as the modification order (1.10 [intro.multithread]) of the promise. &mdash; 
-<i>end note</i>] These operations do not provide any ordering guarantees with respect to other operations, 
-except through operations on futures that reference the same shared state.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 30.6.9.1 [futures.task.members], paragraph 15-21 as follows:</p>
-
-<blockquote><pre>
-void operator()(ArgTypes... args);
-</pre>
-<blockquote>
-<p>
--15- <i>Effects</i>: <tt><var>INVOKE</var>(f, t1, t2, ..., tN, R)</tt>, where <tt>f</tt> is the stored task 
-of <tt>*this</tt> and <tt>t1</tt>, <tt>t2</tt>, <tt>...</tt>, <tt>tN</tt> are the values in 
-<tt>args...</tt>. If the task returns normally, the return value is stored as the asynchronous 
-result in the shared state of <tt>*this</tt>, otherwise the exception thrown by the task is 
-stored. The shared state of <tt>*this</tt> is made ready, and any threads blocked in a function 
-waiting for the shared state of <tt>*this</tt> to become ready are unblocked.
-<p/>
--16- <i>Throws</i>: a <tt>future_error</tt> exception object if there is no shared state or the stored 
-task has already been invoked.
-<p/>
--17- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>promise_already_satisfied</tt> if the shared state is already ready.</li>
-<li><tt>no_state</tt> if <tt>*this</tt> has no shared state.</li>
-</ul>
-<p>
--18- <i>Synchronization</i>: a successful call to <tt>operator()</tt> synchronizes with (1.10 [intro.multithread]) 
-a call to any member function of a <tt>future</tt> or <tt>shared_future</tt> object that shares the 
-shared state of <tt>*this</tt>. The completion of the invocation of the stored task and the storage 
-of the result (whether normal or exceptional) into the shared state synchronizes with (1.10 [intro.multithread]) 
-the successful return from any member function that detects that the state is set to ready. [ <i>Note</i>: 
-<tt>operator()</tt> synchronizes and serializes with other functions through the shared state. &mdash; <i>end note</i> ]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-void make_ready_at_thread_exit(ArgTypes... args);
-</pre>
-<blockquote>
-<p>
--19- <i>Effects</i>: <tt><var>INVOKE</var>(f, t1, t2, ..., tN, R)</tt>, where <tt>f</tt> is the 
-stored task and <tt>t1</tt>, <tt>t2</tt>, <tt>...</tt>, <tt>tN</tt> are the values in <tt>args...</tt>. 
-If the task returns normally, the return value is stored as the asynchronous result in the shared 
-state of <tt>*this</tt>, otherwise the exception thrown by the task is stored. In either case, 
-this shall be done without making that state ready (30.6.4 [futures.state]) immediately. 
-Schedules the shared state to be made ready when the current thread exits, after all objects of 
-thread storage duration associated with the current thread have been destroyed.
-<p/>
--20- <i>Throws</i>: <tt>future_error</tt> if an error condition occurs.
-<p/>
--21- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>promise_already_satisfied</tt> if the shared state already has a stored value or exception.</li>
-<li><tt>no_state</tt> if <tt>*this</tt> has no shared state.</li>
-</ul>
-<p>
-<ins>-??- <i>Synchronization:</i> a successful call to <code>make_ready_at_thread_exit</code>
-synchronizes with (1.10 [intro.multithread]) a call to any member function of
-a <code>future</code> or <code>shared_future</code> object that shares the shared state of 
-<code>*this</code>. The completion of</ins>
-</p>
-<ul>
-<li><p><ins>the invocation of the stored task and the storage of the result (whether normal or 
-exceptional) into the shared state</ins></p></li>
-<li><p><ins>the destructors for all the current thread's variables of thread storage duration</ins></p></li>
-</ul>
-<p>
-<ins>synchronize with (1.10 [intro.multithread]) the successful return from any member function
-that detects that the state is set to ready. [<i>Note:</i> <code>make_ready_at_thread_exit</code>
-synchronizes and serializes with other functions through the shared state. &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote></blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1508"></a>1508. Rename <tt>packaged_task::operator bool()</tt></h3>
-<p><b>Section:</b> 30.6.9 [futures.task] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task">issues</a> in [futures.task].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-201</b></p>
-<p>
-<tt>packaged_task</tt> provides <tt>operator bool()</tt> to check whether
-an object has an associated asynchronous state. The various <tt>future</tt> 
-types provide a member function <tt>valid()</tt> that does the same thing. 
-The names of these members should be the same.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<blockquote><p>
-Replaced the name <tt>packaged_task::operator bool()</tt> with <tt>packaged_task::valid()</tt> in the synopsis
-(30.6.9 [futures.task]/2) and the member function specification (before 30.6.9.1 [futures.task.members]/15).
-</p></blockquote>
-
-<p><i>[
-2010-11-02 Daniel translates proposed wording changes into a proper proposed resolution
-and verified that no other places implicitly take advantage of <tt>packaged_task</tt> 
-conversion to bool.
-]</i></p>
-
-
-<p><i>[Resolved in Batavia by accepting
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3194.htm">n3194</a>.
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>Change 30.6.9 [futures.task]/2, class template <tt>packaged_task</tt> synopsis as indicated:
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-class packaged_task&lt;R(ArgTypes...)&gt; {
-public:
-  typedef R result_type;
-  [..]
-  <del>explicit operator</del> bool <ins>valid</ins>() const;
-  [..]
-};
-</pre></blockquote>
-</li>
-<li>Change 30.6.9 [futures.task] before p. 15 as indicated:
-<blockquote><pre>
-<del>explicit operator</del> bool <ins>valid</ins>() const;
-</pre><blockquote><p>
-15 <em>Returns</em>: true only if <tt>*this</tt> has an associated asynchronous state.
-<p/>
-16 <em>Throws</em>: nothing.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1513"></a>1513. 'launch' enum too restrictive</h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Switzerland <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses CH-36</b></p>
-<p>
-Providing only three different possible values for the enum
-<tt>launch</tt> and saying that <tt>launch::any</tt> means either
-<tt>launch::sync</tt> or <tt>launch::async</tt> is very restricting. This
-hinders future implementors to provide clever
-infrastructures that can simply by used by a call to
-<tt>async(launch::any,...)</tt>. Also there is no hook for an
-implementation to provide additional alternatives to <tt>launch</tt>
-enumeration and no useful means to combine those (i.e.
-interpret them like flags). We believe something like
-<tt>async(launch::sync | launch::async, ...)</tt> should be allowed
-and can become especially useful if one could say also
-something like <tt>async(launch::any &amp; ~launch::sync, ....)</tt>
-respectively. This flexibility might limit the features usable
-in the function called through <tt>async()</tt>, but it will allow a
-path to effortless profit from improved hardware/software
-without complicating the programming model when just
-using <tt>async(launch::any,...)</tt>
-</p>
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Change in 30.6.1 [futures.overview] 'enum class launch' to allow
-further implementation defined values and provide
-the following bit-operators on the launch values
-(<tt>operator|</tt>, <tt>operator&amp;</tt>, <tt>operator~</tt> delivering a
-<tt>launch</tt> value).
-<p/>
-Note: a possible implementation might use an
-unsigned value to represent the <tt>launch</tt> enums,
-but we shouldn't limit the standard to just 32 or 64
-available bits in that case and also should keep
-the launch enums in their own enum namespace.
-<p/>
-Change [future.async] p3 according to the
-changes to <tt>enum launch</tt>. change --<tt>launch::any</tt> to
-"the implementation may choose any of the
-policies it provides." Note: this can mean that an
-implementation may restrict the called function to
-take all required information by copy in case it will
-be called in a different address space, or even, on
-a different processor type. To ensure that a call is
-either performed like <tt>launch::async</tt> or
-<tt>launch::sync</tt> describe one should call
-<tt>async(launch::sync|launch::async,...)</tt>
-</p>
-
-<p><i>[
-2010-11-02 Daniel comments:
-]</i></p>
-
-
-<blockquote><p>
-The new paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3113.html">n3113</a> provides concrete wording.
-</p></blockquote>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Resolved by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3188.htm">n3188</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1514"></a>1514. <tt>packaged_task</tt> constructors need review</h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-207</b></p>
-<p>
-The constructor that takes <tt>R(*)(ArgTypes...)</tt> is not
-needed; the constructor that takes a callable type works
-for this argument type. More generally, the constructors
-for packaged_task should parallel those for function.
-</p>
-<p><i>[
-US-207 Suggested Resolution:
-]</i></p>
-
-
-<blockquote><p>
-Review the constructors for packaged_task and
-provide the same ones as function, except where
-inappropriate.
-</p></blockquote>
-
-<p><i>[
-2010-10-22 Howard provides wording, as requested by the LWG in Rapperswil.
-]</i></p>
-
-
-<p><i>[2011-02-10 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Alter the list of constructors in both 30.6.9 [futures.task] and in 30.6.9.1 [futures.task.members] as indicated:
-</p>
-<blockquote>
-<pre><del>template &lt;class F&gt;
-explicit packaged_task(F f);
-template &lt;class F, class Allocator&gt;
-explicit packaged_task(allocator_arg_t, const Allocator&amp; a, F f);
-explicit packaged_task(R(*f)(ArgTypes...));</del>
-template &lt;class F&gt;
-explicit packaged_task(F&amp;&amp; f);
-template &lt;class F, class Allocator&gt;
-explicit packaged_task(allocator_arg_t, const Allocator&amp; a, F&amp;&amp; f);
-</pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1515"></a>1515. <tt>packaged_task::make_ready_at_thread_exit</tt> has no synchronization requirements</h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> INCITS <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-208</b></p>
-
-<p>
-<tt>packaged_task::make_ready_at_thread_exit</tt> has no synchronization requirements.
-</p>
-
-<p><i>[
-Resolution proposed by ballot comment:
-]</i></p>
-
-<p>
-Figure out what the synchronization requirements
-should be and write them.
-</p>
-
-<p><i>[2011-02-09 Anthony provides a proposed resolution]</i></p>
-
-
-<p><i>[2011-02-19 Additional edits by Hans, shown in the proposed resolution section]</i></p>
-
-
-<p><i>[2011-02-22 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-<blockquote class="note">
-<p>Proposed Resolution</p>
-
-<p>Add a new paragraph following 30.6.9.1 [futures.task.members] p. 19:</p>
-
-<blockquote><pre>
-void make_ready_at_thread_exit(ArgTypes... args);
-</pre></blockquote>
-<blockquote>
-<p>
-19 - ...
-</p>
-<p>
-<ins>?? - <i>Synchronization</i>: Following a successful call to <tt>make_ready_at_thread_exit</tt>, the
-destruction of all objects with thread storage duration associated with
-the current thread happens before the associated asynchronous state is
-made ready. The marking of the associated asynchronous state as ready
-synchronizes with (1.10 [intro.multithread]) the successful return from any function that
-detects that the state is set to ready.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="1516"></a>1516. No specification for which header contains <tt>auto_ptr</tt></h3>
-<p><b>Section:</b> X [depr.auto.ptr] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2010-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-142</b></p>
-<p>
-<tt>auto_ptr</tt> does not appear in the <tt>&lt;memory&gt;</tt> synopsis and
-[depr.auto.ptr] doesn't say which header declares it.
-Conversely, the deprecated binders <tt>bind1st</tt> etc. are in the
-<tt>&lt;functional&gt;</tt> synopsis, this is inconsistent
-</p>
-<p>
-Either <tt>auto_ptr</tt> should be declared in the
-<tt>&lt;memory&gt;</tt> synopsis, or the deprecated binders
-should be removed from the <tt>&lt;functional&gt;</tt> synopsis
-and appendix D should say which header declares
-the binders and <tt>auto_ptr</tt>.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add the following lines to the synopsis of header <tt>&lt;memory&gt;</tt>
-in [memory]&#47;1:<br/></p>
-<blockquote>
-<pre>
-<ins>// [depr.auto.ptr], Class auto_ptr (deprecated):
-template &lt;class X&gt; class auto_ptr;<br/></ins>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1517"></a>1517. default_delete's default constructor should be trivial</h3>
-<p><b>Section:</b> 20.8.1.1.2 [unique.ptr.dltr.dflt] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-09-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.dltr.dflt">issues</a> in [unique.ptr.dltr.dflt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The current working draft does specify the default c'tor of <tt>default_delete</tt> in a manner
-to guarantee static initialization for default-constructed objects of static storage duration
-as a consequence of the acceptance of the proposal <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2976.html">n2976</a>
-but this paper overlooked the fact that the suggested declaration does not ensure that the type 
-will be a trivial type. The type <tt>default_delete</tt> was always considered as a simple wrapper for 
-calling <tt>delete</tt> or <tt>delete[]</tt>, respectivly and should be a trivial type.
-</p>
-<p>
-In agreement with the new settled core language rules this easy to realize by just changing the declaration to
-</p>
-<blockquote><pre>
-constexpr default_delete()<ins> = default</ins>;
-</pre></blockquote>
-<p>
-This proposal also automatically solves the problem, that the semantics of the default constructor of the 
-partial specialization <tt>default_delete&lt;T[]&gt;</tt> is not specified at all. By defaulting its default constructor 
-as well, the semantics are well-defined.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>The following wording changes are against N3126.</i></p>
-
-<ol>
-<li>Change the synopsis of the primary template definition of <tt>default_delete</tt> in [unique.ptr.dltr.dflt] as indicated:
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; struct default_delete {
-    constexpr default_delete()<ins> = default</ins>;
-    template &lt;class U&gt; default_delete(const default_delete&lt;U&gt;&amp;);
-    void operator()(T*) const;
-  };
-}
-</pre></blockquote>
-</li>
-<li>
-Remove the prototype specification of the <tt>default_delete</tt> default constructor in [unique.ptr.dltr.dflt]/1. This
-brings it in harmony with the style used in the partial specialization <tt>default_delete&lt;T[]&gt;</tt>. Since there are
-neither implied nor explicit members, there is no possibility to misinterpret what the constructor does:
-<blockquote><pre>
-<del>constexpr default_delete();</del>
-</pre><blockquote><p>
-<del>1 <em>Effects</em>: Default constructs a <tt>default_delete</tt> object.</del>
-</p></blockquote></blockquote>
-</li>
-<li>Change the synopsis of the partial specialization of <tt>default_delete</tt> in [unique.ptr.dltr.dflt1] as indicated:
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; struct default_delete&lt;T[]&gt; {
-    constexpr default_delete()<ins> = default</ins>;
-    void operator()(T*) const;
-    template &lt;class U&gt; void operator()(U*) const = delete;
-  };
-}</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="1518"></a>1518. Waiting for deferred functions</h3>
-<p><b>Section:</b> 30.6 [futures] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2010-09-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures">issues</a> in [futures].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The current WP N3126 contains ambiguous statements about the
-behaviour of functions <tt>wait_for</tt>/<tt>wait_until</tt> in
-case the future refers to a deferred function. Moreover, I believe
-it describes a disputable intent, different from the one contained
-in the original async proposals, that may have been introduced
-inadvertently during the "async cleanup" that occurred recently.
-Consider the following case:</p>
-<blockquote>
-<pre>
-int f();  
-future&lt;int&gt; x = async(launch::deferred, f);
-future_status s = x.wait_for(chrono::milliseconds(100));
-</pre></blockquote>
-<p>This example raises two questions:</p>
-<ol>
-<li>is <tt>f</tt> invoked?</li>
-<li>what is the value of <tt>s</tt>?</li>
-</ol>
-<p>According to the current WP, the answer to question 1 is yes,
-because 30.6.9/3 says "The first call to a function waiting for the
-associated asynchronous state created by this async call to become
-ready shall invoke the deferred function in the thread that called
-the waiting function". The answer to question 2, however, is not as
-clear. According to 30.6.6/23, s should be
-<tt>future_status::deferred</tt> because <tt>x</tt> refers to a
-deferred function that is not running, but it should also be
-<tt>future_status::ready</tt> because after executing <tt>f</tt>
-(and we saw that <tt>f</tt> is always executed) the state becomes
-ready. By the way, the expression "deferred function that is not
-running" is very unfortunate in itself, because it may apply to
-both the case where the function hasn't yet started, as well as the
-case where it was executed and completed.</p>
-<p>While we clearly have a defect in the WP answering to question
-2, it is my opinion that the answer to question 1 is wrong, which
-is even worse. Consider that the execution of the function
-<tt>f</tt> can take an arbitrarily long time. Having
-<tt>wait_for()</tt> invoke <tt>f</tt> is a potential violation of
-the reasonable expectation that the execution of
-<tt>x.wait_for(chrono::milliseconds(100))</tt> shall take <span style="text-decoration:underline">at most</span>
-100 milliseconds plus a delay dependent on the quality of implementation
-and the quality of management (as described in paper N3128).
-In fact, previous versions of the WP
-clearly specified that only function <tt>wait()</tt> is required to
-execute the deferred function, while <tt>wait_for()</tt> and
-<tt>wait_until()</tt> shouldn't.</p>
-<p>The proposed resolution captures the intent that
-<tt>wait_for()</tt> and <tt>wait_until()</tt> should never attempt
-to invoke the deferred function. In other words, the P/R provides
-the following answers to the two questions above:</p>
-<ol>
-<li>no</li>
-<li><tt>future_status::deferred</tt></li>
-</ol>
-<p>In order to simplify the wording, the definition of <i>deferred
-function</i> has been tweaked so that the function is no longer
-considered deferred once its evaluation has started, as suggested
-by Howard.</p>
-<p>Discussions in the reflector questioned whether
-<tt>wait_for()</tt> and <tt>wait_until()</tt> should return
-immediately or actually wait hoping for a second thread to execute
-the deferred function. I believe that waiting could be useful only
-in a very specific scenario but detrimental in the general case and
-would introduce another source of ambiguity: should
-<tt>wait_for()</tt> return <tt>future_status::deferred</tt> or
-<tt>future_status::timeout</tt> after the wait? Therefore the P/R
-specifies that <tt>wait_for</tt>/<tt>wait_until</tt> shall return
-immediately, which is simpler, easier to explain and more useful in
-the general case.</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>The proposed wording changes are relative to the Final Committee Draft,
-N3126.</p>
-<p><b>Note to the editor:</b> the proposed wording is meant not be in conflict
-with any change proposed by paper N3128 "C++ Timeout Specification".
-Ellipsis are deliberately used to avoid any unintended overlapping.</p>
-<ol>
-<li>
-<p>In [futures.unique_future] 30.6.6/22:</p>
-<p>Effects: <ins>none if the associated asynchronous state contains
-a deferred function (30.6.9), otherwise</ins> blocks until the
-associated asynchronous state is ready or [...].</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.6/23 first bullet:</p>
-<p>&mdash; future_status::deferred if the associated asynchronous
-state contains a deferred function <del>that is not
-running</del>.</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.6/25:</p>
-<p>Effects: <ins>none if the associated asynchronous state contains
-a deferred function (30.6.9), otherwise</ins> blocks until the
-associated asynchronous state is ready or [...].</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.6/26 first bullet:</p>
-<p>&mdash; future_status::deferred if the associated asynchronous
-state contains a deferred function <del>that is not
-running</del>.</p>
-</li>
-<li>
-<p>In [futures.shared_future] 30.6.7/27</p>
-<p>Effects: <ins>none if the associated asynchronous state contains
-a deferred function (30.6.9), otherwise</ins> blocks until the
-associated asynchronous state is ready or [...].</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.7/28 first bullet:</p>
-<p>&mdash; future_status::deferred if the associated asynchronous
-state contains a deferred function <del>that is not
-running</del>.</p>
-</li>
-<li>
-<p>In [futures.shared_future] 30.6.6/30:</p>
-<p>Effects: <ins>none if the associated asynchronous state contains
-a deferred function (30.6.9), otherwise</ins> blocks until the
-associated asynchronous state is ready or [...].</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.7/31 first bullet:</p>
-<p>&mdash; future_status::deferred if the associated asynchronous
-state contains a deferred function <del>that is not
-running</del>.</p>
-</li>
-<li>
-<p>In [futures.atomic_future] 30.6.8/23</p>
-<p>Effects: <ins>none if the associated asynchronous state contains
-a deferred function (30.6.9), otherwise</ins> blocks until the
-associated asynchronous state is ready or [...].</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.8/24 first bullet:</p>
-<p>&mdash; future_status::deferred if the associated asynchronous
-state contains a deferred function <del>that is not
-running</del>.</p>
-</li>
-<li>
-<p>In [futures.atomic_future] 30.6.8/27:</p>
-<p>Effects: <ins>none if the associated asynchronous state contains
-a deferred function (30.6.9), otherwise</ins> blocks until the
-associated asynchronous state is ready or [...].</p>
-</li>
-<li>
-<p>In [futures.unique_future] 30.6.8/28 first bullet:</p>
-<p>&mdash; future_status::deferred if the associated asynchronous
-state contains a deferred function <del>that is not
-running</del>.</p>
-</li>
-<li>
-<p>In [futures.async] 30.6.9/3 second bullet:</p>
-<p>[...] The first call to a function
-<del>waiting</del><ins>requiring a non-timed wait</ins> for the
-associated asynchronous state created by this async call to become
-ready shall invoke the deferred function in the thread that called
-the waiting function; <ins>once evaluation of <tt><i>INVOKE</i>(g,
-xyz)</tt> begins, the function is no longer considered
-deferred</ins> <del>all other calls waiting for the same associated
-asynchronous state to become ready shall block until the deferred
-function has completed</del>.</p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1519"></a>1519. bucketsize() const only for unordered set</h3>
-<p><b>Section:</b> 23.5.4 [unord.map], 23.5.5 [unord.multimap], 23.5.7 [unord.multiset] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2010-10-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.map">issues</a> in [unord.map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-While <tt>bucket_size()</tt> is const for <tt>unordered_set</tt>, for all other unordered containers it is not defined as
-constant member function.
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>The wording refers to N3126.</i></p>
-
-<ol>
-<li>Change 23.7.1 Class template unordered_map [unord.map]/3, as indicated:
-<blockquote><pre>
-  namespace std {
-    template &lt;class Key,
-      class T,
-      class Hash = hash&lt;Key&gt;,
-      class Pred = std::equal_to&lt;Key&gt;,
-      class Alloc = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt;
-    class unordered_map
-    {
-    public:
-      [..]
-      // bucket interface
-      size_type bucket_count() const;
-      size_type max_bucket_count() const;
-      size_type bucket_size(size_type n) <ins>const</ins>;
-      [..]
-</pre></blockquote>
-</li>
-<li>Change 23.7.2 Class template unordered_multimap [unord.multimap]/3, as indicated:
-<blockquote><pre>
-  namespace std {
-    template &lt;class Key,
-      class T,
-      class Hash = hash&lt;Key&gt;,
-      class Pred = std::equal_to&lt;Key&gt;,
-      class Alloc = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt;
-    class unordered_multimap
-    {
-    public:
-      [..]
-      // bucket interface
-      size_type bucket_count() const;
-      size_type max_bucket_count() const;
-      size_type bucket_size(size_type n) <ins>const</ins>;
-      [..]
-</pre></blockquote>
-</li>
-<li>Change 23.7.4 Class template unordered_multiset [unord.multiset]/3, as indicated:
-<blockquote><pre>
-  namespace std {
-    template &lt;class Key,
-      class Hash = hash&lt;Key&gt;,
-      class Pred = std::equal_to&lt;Key&gt;,
-      class Alloc = std::allocator&lt;Key&gt; &gt;
-    class unordered_multiset
-    {
-    public:
-      [..]
-      // bucket interface
-      size_type bucket_count() const;
-      size_type max_bucket_count() const;
-      size_type bucket_size(size_type n) <ins>const</ins>;
-      [..]
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="1520"></a>1520. <tt>INVOKE</tt> on member data pointer with too many arguments</h3>
-<p><b>Section:</b> 20.9.2 [func.require] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2010-10-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.require">active issues</a> in [func.require].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.require">issues</a> in [func.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-20.8.2 [func.require] p1 says:
-</p>
-
-<blockquote>
-<p>
-1 Define <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> as follows:
-</p>
-
-<ul>
-<li>
-<tt>(t1.*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member function
-of a class <tt>T</tt> and <tt>t1</tt> is an object of type <tt>T</tt> or a
-reference to an object of type <tt>T</tt> or a reference to an object of a type
-derived from <tt>T</tt>;
-</li>
-<li>
-<tt>((*t1).*f)(t2, ..., tN)</tt> when <tt>f</tt> is a pointer to a member
-function of a class <tt>T</tt> and <tt>t1</tt> is not one of the types described
-in the previous item;
-</li>
-<li>
-<tt>t1.*f</tt> when <tt>f</tt> is a pointer to member data of a class <tt>T</tt>
-and <tt>t1</tt> is an object of type <tt>T</tt> or a reference to an object of
-type <tt>T</tt> or a reference to an object of a type derived from <tt>T</tt>;
-</li>
-<li>
-<tt>(*t1).*f</tt> when <tt>f</tt> is a pointer to member data of a class
-<tt>T</tt> and <tt>t1</tt> is not one of the types described in the previous
-item;
-</li>
-<li>
-<tt>f(t1, t2, ..., tN)</tt> in all other cases.
-</li>
-</ul>
-</blockquote>
-
-<p>
-The question is:  What happens in the 3<sup><i>rd</i></sup> and
-4<sup><i>th</i></sup> bullets when <tt>N &gt; 1</tt>?
-</p>
-
-<p>
-Does the presence of <tt>t2, ..., tN</tt> get ignored, or does it make the
-<tt><i>INVOKE</i></tt> ill formed?
-</p>
-
-<p>
-Here is sample code which presents the problem in a concrete example:
-</p>
-
-<blockquote><pre>
-#include &lt;functional&gt;
-#include &lt;cassert&gt;
-
-struct S {
-   char data;
-};
-
-typedef char S::*PMD;
-
-int main()
-{
-   S s;
-   PMD pmd = &amp;S::data;
-   std::reference_wrapper&lt;PMD&gt; r(pmd);
-   r(s, 3.0) = 'a';  // well formed?
-   assert(s.data == 'a');
-}
-</pre></blockquote>
-
-<p>
-Without the "<tt>3.0</tt>" the example is well formed.
-</p>
-<p>
-[Note: Daniel provided wording to make it explicit that the above example is ill-formed. &mdash; end note ]
-</p>
-
-<p><i>[
-Post-Rapperswil
-]</i></p>
-
-
-<blockquote><p>
-Moved to Tentatively Ready after 5 positive votes on c++std-lib.
-</p></blockquote>
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>The wording refers to N3126.</i></p>
-
-<p>
-Change 20.8.2 [func.require]/1 as indicated:
-</p>
-<blockquote>
-<p>
-1 Define <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> as follows:
-</p>
-
-<ul>
-<li>
-...
-</li>
-<li>
-...
-</li>
-<li>
-<tt>t1.*f</tt> when <ins><tt>N == 1</tt> and</ins> <tt>f</tt> is a pointer to
-member data of a class <tt>T</tt> and <tt>t1</tt> is an object of type
-<tt>T</tt> or a reference to an object of type <tt>T</tt> or a reference to an
-object of a type derived from <tt>T</tt>;
-</li>
-<li>
-<tt>(*t1).*f</tt> when <ins><tt>N == 1</tt> and</ins> <tt>f</tt> is a pointer to
-member data of a class <tt>T</tt> and <tt>t1</tt> is not one of the types
-described in the previous item;
-</li>
-<li>
-...
-</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="1522"></a>1522. <tt>conj</tt> specification is now nonsense</h3>
-<p><b>Section:</b> 26.4.9 [cmplx.over] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2010-10-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#cmplx.over">issues</a> in [cmplx.over].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In Pittsburgh, we accepted the resolution of library issue <a href="lwg-defects.html#1137">1137</a>, to add
-a sentence 3 to [cmplx.over]:
-</p>
-<blockquote><p>
-All the specified overloads shall have a return type which is the nested
-<tt>value_type</tt> of the effectively cast arguments.
-</p></blockquote>
-<p>
-This was already true for four of the six functions except <tt>conj</tt> and
-<tt>proj</tt>. It is not completely unreasonable to make <tt>proj</tt> return
-the real value only, but the IEC specification does call for an imaginary part
-of -0 in some circumstances. The people who care about these distinctions really
-care, and it <em>is</em> required by an international standard.
-</p>
-<p>
-Making <tt>conj</tt> return just the real part breaks it horribly, however. It is
-well understood in mathematics that <tt>conj(re + i*im)</tt> is <tt>(re - i*im)</tt>,
-and it is widely used. The accepted new definition makes <tt>conj</tt> useful only
-for pure real operations. This botch <em>absolutely must</em> be fixed.
-</p>
-
-<p><i>[
-2010 Batavia: The working group concurred with the issue's Proposed Resolution
-]</i></p>
-
-
-<p><i>[
-Adopted at 2010-11 Batavia
-]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove the recently added paragraph 3 from [cmplx.over]:
-</p>
-<blockquote><p>
-<del>3 All the specified overloads shall have a return type which is the nested 
-<tt>value_type</tt> of the effectively cast arguments.</del>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1523"></a>1523. <tt>noexcept</tt> for Clause 29</h3>
-<p><b>Section:</b> 29 [atomics] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2010-11-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics">issues</a> in [atomics].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-63 for Clause 29</b></p>
-
-<p>Clause 29 does not specify noexcept for any of the atomic operations.
-It probably should, though that's not completely clear.
-In particular, atomics may want to throw in implementations that support transactional memory.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Apply paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3251.html">N3251</a>,
-noexcept for the Atomics Library.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="1524"></a>1524. Allocation functions are missing <i>happens-before</i> requirements and guarantees</h3>
-<p><b>Section:</b> 18.6.1.4 [new.delete.dataraces] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2011-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete.dataraces">issues</a> in [new.delete.dataraces].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US-34</b></p>
-
-<p>Technical details:
-<p/>
-When the same unit of storage is allocated and deallocated repeatedly, operations on it can't be allowed to
-race between the allocator and the user program. But I don't see any mention of <i>happens-before</i> in the
-descriptions of allocation and deallocation functions.
-<p/>
-Proposed resolution (not wording yet):
-</p>
-<ul>
-<li><p>The call to an allocation function returning a pointer <tt>P</tt> must happen-before the matching
-deallocation call with <tt>P</tt> as a parameter. Otherwise the behavior is undefined. I don't know whether
-receiving <tt>P</tt> with <tt>memory_order_consume</tt> fits this requirement. <tt>memory_order_relaxed</tt> does not.</p>
-</li>
-<li><p>If some memory is passed to a deallocation function, the implementation must ensure that the
-deallocation call happens-before any allocation call that returns the same memory address.</p>
-</li>
-</ul>
-
-<p><i>[2011-02-26: Hans comments and drafts wording]</i></p>
-
-
-<p>The second requirement already exists, almost verbatim, as 18.6.1.4 [new.delete.dataraces] p. 1. 
-I think this is where the statement belongs.  However, this paragraph requires work to correctly address 
-the first part of the issue.
-</p>
-
-<p><i>[Adopted at Madrid, 2011-03]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 18.6.1.4 [new.delete.dataraces] p. 1 as follows:</p>
-
-<blockquote><p>
-1 <del>The library versions of <tt>operator new</tt> and <tt>operator delete</tt>, user replacement versions of global 
-<tt>operator new</tt> and <tt>operator delete</tt>, and the C standard library functions <tt>calloc</tt>, <tt>malloc</tt>, 
-<tt>realloc</tt>, and <tt>free</tt> shall not introduce data races (1.10 [intro.multithread]) as a result 
-of concurrent calls from different threads.</del><ins> For purposes of determining the existence of data races,
-the library versions of <tt>operator new</tt>, user replacement versions of global <tt>operator new</tt>, and the C 
-standard library functions <tt>calloc</tt> and <tt>malloc</tt> shall behave as though they accessed and modified only 
-the storage referenced by the return value. The library versions of <tt>operator delete</tt>, user replacement
-versions of <tt>operator delete</tt>, and the C standard library function <tt>free</tt> shall behave as though they 
-accessed and modified only the storage referenced by their first argument. The C standard library <tt>realloc</tt> 
-function shall behave as though it accessed and modified only the storage referenced by its first argument and by 
-its return value.</ins> Calls to these functions that allocate or deallocate a particular unit of storage 
-shall occur in a single total order, and each such deallocation call shall happen before the next allocation 
-(if any) in this order.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1525"></a>1525. Effects of <tt>resize(size())</tt> on a <tt>vector</tt></h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2011-03-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-117</b></p>
-
-<p>23.3.6.3 [vector.capacity] p. 9 (Same as for 23.3.3.3 [deque.capacity] p. 1 i.e. 
-<tt>deque::resize</tt>). There is no mention of what happens if <tt>sz==size()</tt>. While 
-it obviously does nothing I feel a standard needs to say this explicitely.</p>
-<p>Suggested resolution:</p>
-<p>Append "If <tt>sz == size()</tt>, does nothing" to the effects.</p>
-
-<p><i>[2011-03-24 Daniel comments]</i></p>
-
-
-<p>During the edit of this issue some non-conflicting overlap with <a href="lwg-defects.html#2033">2033</a> became obvious. 
-<tt>CopyInsertable</tt> should be <tt>MoveInsertable</tt> and there is missing the <tt>DefaultConstructible</tt> 
-requirements, but this should be fixed by <a href="lwg-defects.html#2033">2033</a>.</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Change 23.3.6.3 [vector.capacity] p. 9 as follows:</p>
-
-<blockquote><pre>
-void resize(size_type sz);
-</pre>
-<blockquote><p>
-9 <i>Effects</i>: If <tt>sz &lt;<ins>=</ins> size()</tt>, equivalent to <tt>erase(begin() + sz, end());</tt>. 
-If <tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> value-initialized elements to the sequence.
-<p/>
-10 <i>Requires</i>: <tt>T</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>.
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="1526"></a>1526. C++ should not impose thread safety requirements on C99 library implementations</h3>
-<p><b>Section:</b> 17.6.5.9 [res.on.data.races] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> BSI <b>Opened:</b> 2011-03-24 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB-111</b></p>
-
-<p>Section 17.6.5.9 [res.on.data.races], Data Race Avoidance, requires the C++ Standard Library to avoid data races 
-that might otherwise result from two threads making calls to C++ Standard Library functions on 
-distinct objects. The C standard library is part of the C++ Standard Library and some C++ Standary library 
-functions (parts of the Localization library, as well as Numeric Conversions in 21.5), are specified 
-to make use of the C standard library. Therefore, the C++ standard indirectly imposes a requirement 
-on the thread safety of the C standard library. However, since the C standard does not address the 
-concept of thread safety conforming C implementations exist that do no provide such guarantees. 
-This conflict needs to be reconciled.</p>
-
-<p>Suggested resolution by national body comment:</p>
-
-<blockquote><p>
-remove the requirement to make use of <tt>strtol()</tt> and <tt>sprintf()</tt> since these functions depend on the 
-global C locale and thus cannot be made thread safe.
-</p></blockquote>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>Deferred</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-<p>
-Alisdair: PJ, does this cause a problem in C?
-</p>
-<p>
-PJ: Every implementation know of is thread safe.
-</p>
-<p>
-Pete: There a couple of effects that are specified on strtol() and sprintf() which is a problem.
-</p>
-<p>
-PJ: When C++ talks about C calls it should be "as if" calling the function.
-</p>
-<p>
-Pete: Culprit is to string stuff. My fault.
-</p>
-<p>
-PJ: Not your fault. You did what you were told. Distinct resolution to change wording.
-</p>
-<p>
-Dietmar: What would we break if we change it back?
-</p>
-<p>
-Pete: Nothing. If implemented on top of thread safe C library you are just fine.
-</p>
-<p>
-Alisdair: Anyone want to clean up wording and put it back to what Pete gave us?
-</p>
-<p>
-Alisdair: No volunteers. Do we want to mark as NAD? We could leave it as deferred.
-</p>
-<p>
-Stefanus: Did original submitter care about this?
-</p>
-<p>
-Lawrence: There is some work to make local calls thread safe. The resolution would be to call those thread safe version.
-</p>
-<p>
-Pete: "As if called under single threaded C program"
-</p>
-<p>
-<b>Action Item</b> (Alisdair): Write wording for this issue.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Re-opened at the request of the concurrency subgroup, who feel there is an issue that needs
-clarifying for the (planned) 2017 standard.
-</p>
-
-<p><b>Rationale:</b></p><p>No consensus to make a change at this time</p>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-The concurrency subgroup decided to encourage the LWG to consider a change to 17.2 [library.c] or thereabouts 
-to clarify that we are requiring C++-like thread-safety for <tt>setlocale</tt>, so that races are not introduced 
-by C locale accesses, even when the C library allows it. This would require e.g. adding "and data race avoidance" 
-at the end of 17.2 [library.c] p1:
-</p>
-<p>
-"The C++ standard library also makes available the facilities of the C standard library, suitably adjusted to 
-ensure static type safety <ins>and data race avoidance</ins>.",
-</p>
-<p>
-with some further clarifications in the sections mentioned in <a href="lwg-defects.html#1526">1526</a>.
-</p>
-<p>
-This seems to be consistent with existing implementations. This would technically not be constraining C implementation, 
-but it would be further constraining C libraries used for both C and C++.
-</p>
-
-<p><i>[Lenexa 2015-05-05: Move to Resolved]</i></p>
-
-<p>JW: it's a bit odd that the issue title says sould not impose requirements on C libs, then the P/R does exactly that. Does make sense though, previously we imposed an implicit requirement which would not have been met. Now we say it explicitly and require it is met.</p>
-<p>STL: I think this is Resolved, it has been fixed in the working paper [support.runtime]/6 is an example where we call out where things can race. That implies that for everything else they don't create races.</p>
-<p>JW: I'm not sure, I think we still need the "and data race avoidance" to clarify that the features from C avoid races, even though C99 says no such thing.</p>
-<p>STL: [library.c] says that something like sqrt is part of the C++ Standard LIbrary. [res.on.data.races] then applies to them. Would be OK with a note there, but am uncomfortable with "and data race avoidance" which sounds like it's making a very strong guarantee.</p>
-<p>ACTION ITEM JW to editorially add note to [library.c] p1: "Unless otherwise specified, the C Standard Library functions shall meet the requirements for data race avoidance (xref [res.on.data.races])"</p>
-<p>Move to Resolved?</p>
-<p>10 in favor, 0 opposed, 3 abstentions</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 17.2 [library.c] p1 as indicated:</p>
-
-<blockquote><p>
--1- The C++ standard library also makes available the facilities of the C standard library, suitably adjusted to
-ensure static type safety <ins>and data race avoidance</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2000"></a>2000. Missing definition of <tt>packaged_task</tt> specialization of <tt>uses_allocator</tt></h3>
-<p><b>Section:</b> 30.6.9.2 [futures.task.nonmembers] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2010-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-[futures.task.nonmembers]/3 says:
-</p>
-<blockquote><pre>
-   template &lt;class R, class Alloc&gt;
-     struct uses_allocator&lt;packaged_task&lt;R&gt;, Alloc&gt;;
-</pre></blockquote>
-<p>
-This is a declaration, but should be a definition.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change [futures.task.nonmembers]/3:
-</p>
-
-<blockquote><pre>
-   template &lt;class R, class Alloc&gt;
-     struct uses_allocator&lt;packaged_task&lt;R&gt;, Alloc&gt;<del>;</del>
-        <ins>: true_type {};</ins>
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2001"></a>2001. Class template <tt>basic_regex</tt> uses non existent <tt>string_type</tt></h3>
-<p><b>Section:</b> 28.8.3 [re.regex.assign] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Volker Lukas <b>Opened:</b> 2010-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex.assign">issues</a> in [re.regex.assign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In working draft N3126, subclause 28.8.3 [re.regex.assign], paragraphs 12, 13 and 19, 
-the name <tt>string_type</tt> is used. This is presumably a typedef for <tt>basic_string&lt;value_type&gt;</tt>, where 
-<tt>value_type</tt> is the character type used by <tt>basic_regex</tt>. The <tt>basic_regex</tt> 
-template however defines no such typedef, and neither does the <tt>&lt;regex&gt;</tt> 
-header or the <tt>&lt;initializer_list&gt;</tt> header included by <tt>&lt;regex&gt;</tt>.
-</p>
-
-<p><i>[
-2010-11-03 Daniel comments and suggests alternative wording:
-]</i></p>
-
-<blockquote><p>
-The proposed resolution needs to use <tt>basic_string&lt;<strong>charT</strong>&gt;</tt> instead of <tt>basic_string&lt;char&gt;</tt>
-</p></blockquote>
-
-<p>
-Previous Proposed Resolution:
-<p/>
-Make the following changes to [re.regex.assign]:
-</p>
-<blockquote>
-<pre>
-basic_regex&amp; assign(const charT* ptr, flag_type f = regex_constants::ECMAScript);
-</pre>
-<blockquote><p>
-12 <i>Returns</i>: <tt>assign(<del>string_type</del><ins>basic_string&lt;charT&gt;</ins>(ptr), f)</tt>. 
-</p></blockquote>
-
-<pre>
-basic_regex&amp; assign(const charT* ptr, size_t len,
-  flag_type f = regex_constants::ECMAScript);
-</pre>
-<blockquote><p>
-13 <i>Returns</i>: <tt>assign(<del>string_type</del><ins>basic_string&lt;charT&gt;</ins>(ptr, len), f)</tt>.
-</p></blockquote>
-
-<pre>
-[..]
-
-template &lt;class InputIterator&gt; 
-  basic_regex&amp; assign(InputIterator first, InputIterator last, 
-                          flag_type f = regex_constants::ECMAScript);
-</pre>
-
-<blockquote><p>
-18 <i>Requires</i>: The type <tt>InputIterator</tt> shall satisfy the requirements for an Input Iterator (24.2.3).
-</p></blockquote>
-
-<blockquote><p>
-19 <i>Returns</i>: <tt>assign(<del>string_type</del><ins>basic_string&lt;charT&gt;</ins>(first, last), f)</tt>.
-</p></blockquote>
-
-</blockquote>
-
-<p><i>[
-2010 Batavia 
-]</i></p>
-
-
-<p>
-Unsure if we should just give <tt>basic_regex</tt> a <tt>string_type</tt> typedef. Looking for when <tt>string_type</tt> was 
-introduced into <tt>regex</tt>. Howard to draft wording for <tt>typedef typename traits::string_type string_type</tt>, then move to Review. 
-</p>
-
-<p><i>[
-2011-02-16: Daniel comments and provides an alternative resolution.
-]</i></p>
-
-
-<p>
-I'm strongly in favour with the Batavia idea to provide a separate <tt>string_type</tt> within
-<tt>basic_regex</tt>, but it seems to me that the issue resultion should add one more
-important typedef, namely that of the traits type! Currently, <tt>basic_regex</tt> is the
-<em>only</em> template that does not publish the type of the associated traits type. Instead
-of opening a new issue, I added this suggestion as part of the proposed wording.
-</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 6 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the class template <tt>basic_regex</tt> synopsis, 28.8 [re.regex] p. 3, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class charT,
-            class traits = regex_traits&lt;charT&gt; &gt;
-  class basic_regex {
-  public:
-    // types:
-    typedef charT value_type;
-    <ins>typedef traits traits_type;</ins>
-    <ins>typedef typename traits::string_type string_type;</ins>
-    typedef regex_constants::syntax_option_type flag_type;
-    typedef typename traits::locale_type locale_type;
-
-    [..]
-  };
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2002"></a>2002. Class template <tt>match_results</tt> does not specify the semantics of <tt>operator==</tt></h3>
-<p><b>Section:</b> 28.10.8 [re.results.nonmember] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <em>Returns</em> element of <tt>operator==</tt> says:
-</p>
-
-<blockquote><p>
-<tt>true</tt> only if the two objects refer to the same match
-</p></blockquote>
-
-<p>
-It is not really clear what this means: The current specification would allow for an
-implementation to return <tt>true</tt>, only if the address values of <tt>m1</tt> and
-<tt>m2</tt> are the same. While this approach is unproblematic in terms of used operations 
-this is also a bit unsatisfactory. With identity equality alone there seems to be no convincing
-reason to provide this operator at all. It could for example also refer to an comparison based
-on iterator values. In this case a user should better know that this will be done, because 
-there is no guarantee at all that inter-container comparison of iterators 
-is a feasible operation. This was a clear outcome of the resolution provided in 
-<a href= "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3066.html">N3066</a> 
-for LWG issue <a href= "http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-closed.html#446">446</a>.
-It could also mean that a character-based comparison of the individual <tt>sub_match</tt>
-elements should be done - this would be equivalent to applying <tt>operator==</tt> to
-the subexpressions, prefix and suffix.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Addressed by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3158.html">n3158</a>.</p>
-
-
-
-
-
-<hr>
-<h3><a name="2003"></a>2003. String exception inconsistency in erase.</h3>
-<p><b>Section:</b> 21.4.1 [string.require] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jos&eacute; Daniel Garc&iacute;a S&aacute;nchez <b>Opened:</b> 2010-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.require">issues</a> in [string.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Clause 21.4.1 [string.require]p3 states:
-</p>
-<blockquote><p>
-No <tt>erase()</tt> or <tt>pop_back()</tt> member function shall throw
-any exceptions.
-</p></blockquote>
-<p>
-However in 21.4.6.5 [string::erase] p2 the first version of <tt>erase</tt> has
-</p>
-<blockquote><p>
-<i>Throws</i>: <tt>out_of_range</tt> if <tt>pos > size()</tt>.
-</p></blockquote>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>
-Beman: Don't want to just change this, can we just say "unless otherwise specified"?
-<p/>
-Alisdair: Leave open, but update proposed resolution to say something like "unless otherwise specified".
-<p/>
-General agreement that it should be corrected but not a stop-ship.
-<p/>
-Action: Update proposed wording for issue 2003 as above, but leave Open. 
-</p>
-
-<p><i>[2014-02-12 Issaquah meeting]</i></p>
-
-
-<p>
-Jeffrey: Madrid meeting's proposed wording wasn't applied, and it's better than the original proposed wording.
-However, this sentence is only doing 3 functions' worth of work, unlike the similar paragraphs in 23.2.1 [container.requirements.general].
-Suggest just putting "<i>Throws:</i> Nothing" on the 3 functions.
-</p>
-
-<p><i>[2014-02-13 Issaquah meeting]</i></p>
-
-<p>
-Move as Immmediate
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Remove [string.require]p/3:
-</p>
-<blockquote><p>
-<del>3 No <tt>erase()</tt> or <tt>pop_back()</tt> member function shall throw any exceptions.</del>
-</p></blockquote>
-
-<p>
-Add to the specifications of <tt>iterator erase(const_iterator p);</tt>, <tt>iterator erase(const_iterator first, const_iterator last);</tt>,
- and <tt>void pop_back();</tt> in 21.4.6.5 [string::erase]:
-</p>
-<blockquote><p><ins><i>Throws:</i> Nothing</ins></p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2004"></a>2004. <tt>duration::operator*</tt> has template parameters in funny order</h3>
-<p><b>Section:</b> 20.12.5.5 [time.duration.nonmember] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2010-10-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.nonmember">issues</a> in [time.duration.nonmember].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In [time] and [time.duration.nonmember] we have:
-</p>
-<blockquote><pre>
-template &lt;class Rep1, class Period, class Rep2>
-    duration&lt;typename common_type&lt;Rep1, Rep2>::type, Period>
-        operator*(const Rep1&amp; s, const duration&lt;Rep2, Period>&amp; d);
-</pre></blockquote>
-<p>
-Everywhere else, we always have <tt>&lt;rep, period></tt> in that order for a given
-type. But here, we have <tt>Period</tt> and <tt>Rep2</tt> in reverse order for
-<tt>&lt;Rep2, Period></tt>. This is probably of little importance, since the
-template parameters are seldom spelled out for a function like this. But changing it
-now will eliminate a potential source of future errors and confusion.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the signature in [time] and [time.duration.nonmember] to:
-</p>
-<blockquote><pre>
-template &lt;class Rep1, class <del>Period</del><ins>Rep2</ins>, class <del>Rep2</del><ins>Period</ins>>
-    duration&lt;typename common_type&lt;Rep1, Rep2>::type, Period>
-        operator*(const Rep1&amp; s, const duration&lt;Rep2, Period>&amp; d);
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2005"></a>2005. <tt>unordered_map::insert(T&amp;&amp;)</tt> protection should apply to <tt>map</tt> too</h3>
-<p><b>Section:</b> 23.4.4.4 [map.modifiers], 23.4.5.3 [multimap.modifiers], 23.5.4.4 [unord.map.modifiers], 23.5.5.3 [unord.multimap.modifiers] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> P.J. Plauger <b>Opened:</b> 2010-10-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.modifiers">issues</a> in [map.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In [unord.map.modifiers], the signature:
-</p>
-<blockquote><pre>
-template &lt;class P&gt;
-    pair&lt;iterator, bool&gt; insert(P&amp;&amp; obj);
-</pre></blockquote>
-<p>
-now has an added Remarks paragraph:
-</p>
-<blockquote><p>
-<i>Remarks</i>: This signature shall not participate in overload resolution unless <tt>P</tt>
-is implicitly convertible to <tt>value_type</tt>.
-</p></blockquote>
-<p>
-The same is true for <tt>unordered_multimap</tt>.
-<p/>
-But neither <tt>map</tt> nor <tt>multimap</tt> have this constraint, even though it is a
-Good Thing(TM) in those cases as well.
-</p>
-
-<p><i>[
-The submitter suggests: Add the same Remarks clause to [map.modifiers] and [multimap.modifiers].
-]</i></p>
-
-
-<p><i>[
-2010-10-29 Daniel comments:
-]</i></p>
-
-
-<p>
-I believe both paragraphs need more cleanup: First, the current Requires element conflict with the Remark; 
-second, it seems to me that the whole single Requires element is intended to be split into a Requires
-and an Effects element; third, the reference to <tt>tuple</tt> is incorrect (noticed by Paolo Carlini);
-fourth, it refers to some non-existing <tt>InputIterator</tt> parameter relevant for a completely different
-overload; sixth, the return type of the overload with hint is wrong.
-The following proposed resolution tries to solve these issues as well and uses similar wording as for
-the corresponding unordered containers. Unfortunately it has some redundancy over Table&nbsp;99, but I did
-not remove the specification because of the more general template parameter <tt>P</tt> - the Table&nbsp;99 
-requirements apply only for an argument <em>identical</em> to <tt>value_type</tt>.
-<p/>
-Daniel's Proposed resolution (not current):
-</p>
-
-<blockquote class="note">
-<ol>
-<li>Change 23.4.4.4 [map.modifiers] around p. 1 as indicated:
-<blockquote><pre>
-template &lt;class P&gt; pair&lt;iterator, bool&gt; insert(P&amp;&amp; x);
-template &lt;class P&gt; <del>pair&lt;</del>iterator<del>, bool&gt;</del> insert(const_iterator position, P&amp;&amp; x);
-</pre><blockquote><p>
-1 <em>Requires</em>: <del><tt>P</tt> shall be convertible to </del><tt>value_type</tt><ins> is constructible 
-from <tt>std::forward&lt;P&gt;(x)</tt>.</ins>.
-<p/>
-<del>If <tt>P</tt> is instantiated as a reference type, then the argument <tt>x</tt> is copied from. Otherwise <tt>x</tt> is considered
-to be an rvalue as it is converted to <tt>value_type</tt> and inserted into the map. Specifically, in
-such cases <tt>CopyConstructible</tt> is not required of <tt>key_type</tt> or <tt>mapped_type</tt> unless the conversion
-from <tt>P</tt> specifically requires it (e.g., if <tt>P</tt> is a <tt>tuple&lt;const key_type, mapped_type&gt;</tt>, then <tt>key_type</tt>
-must be <tt>CopyConstructible</tt>). The signature taking <tt>InputIterator</tt> parameters does not require
-<tt>CopyConstructible</tt> of either <tt>key_type</tt> or <tt>mapped_type</tt> if the dereferenced <tt>InputIterator</tt> returns a
-non-const rvalue <tt>pair&lt;key_type,mapped_type&gt;</tt>. Otherwise <tt>CopyConstructible</tt> is required for both
-<tt>key_type</tt> and <tt>mapped_type</tt>.</del><br/>
-<ins>? <em>Effects</em>: Inserts <tt>x</tt> converted to <tt>value_type</tt> if and only if there is no element in the container with
-key equivalent to the key of <tt>value_type(x)</tt>. For the second form, the iterator <tt>position</tt> is a hint pointing to where the
-search should start.</ins>
-<p/>
-<ins>? <em>Returns</em>: For the first form, the <tt>bool</tt> component of the returned <tt>pair</tt> object indicates whether the 
-insertion took place and the iterator component - or for the second form the returned iterator - points to the element with key equivalent 
-to the key of <tt>value_type(x)</tt>.</ins>
-<p/>
-<ins>? <em>Complexity</em>: Logarithmic in general, but amortized constant if <tt>x</tt> is inserted right before <tt>position</tt>.</ins>
-<p/>
-<ins>? <em>Remarks</em>: These signatures shall not participate in overload resolution unless <tt>P</tt> 
-is implicitly convertible to <tt>value_type</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-<li>Change 23.4.5.3 [multimap.modifiers] around p. 1 as indicated:
-<blockquote><pre>
-template &lt;class P&gt; iterator insert(P&amp;&amp; x);
-template &lt;class P&gt; iterator insert(const_iterator position, P&amp;&amp; x);
-</pre><blockquote><p>
-1 <em>Requires</em>: <del><tt>P</tt> shall be convertible to </del><tt>value_type</tt> <ins>is constructible from 
-<tt>std::forward&lt;P&gt;(x)</tt></ins>.
-<p/>
-<del>If <tt>P</tt> is instantiated as a reference type, then the argument <tt>x</tt> is copied from. Otherwise 
-<tt>x</tt> is considered to be an rvalue as it is converted to <tt>value_type</tt> and inserted into the map. 
-Specifically, in such cases <tt>CopyConstructible</tt> is not required of <tt>key_type</tt> or <tt>mapped_type</tt> 
-unless the conversion from <tt>P</tt> specifically requires it (e.g., if <tt>P</tt> is a <tt>tuple&lt;const key_type, mapped_type&gt;</tt>, 
-then <tt>key_type</tt> must be <tt>CopyConstructible</tt>). The signature taking <tt>InputIterator</tt> parameters 
-does not require <tt>CopyConstructible</tt> of either <tt>key_type</tt> or <tt>mapped_type</tt> if the dereferenced 
-<tt>InputIterator</tt> returns a non-const rvalue <tt>pair&lt;key_type, mapped_type&gt;</tt>. Otherwise <tt>CopyConstructible</tt> 
-is required for both <tt>key_type</tt> and <tt>mapped_type</tt>.</del><br/>
-<ins>? <em>Effects</em>: Inserts <tt>x</tt> converted to <tt>value_type</tt>. For the second form, the iterator <tt>position</tt> 
-is a hint pointing to where the search should start.</ins>
-<p/>
-<ins>? <em>Returns</em>: An iterator that points to the element with key equivalent to the key of <tt>value_type(x)</tt>.</ins>
-<p/>
-<ins>? <em>Complexity</em>: Logarithmic in general, but amortized constant if <tt>x</tt> is inserted right before <tt>position</tt>.</ins>
-<p/>
-<ins>? <em>Remarks</em>: These signatures shall not participate in overload resolution unless <tt>P</tt> 
-is implicitly convertible to <tt>value_type</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[
-2010 Batavia:
-]</i></p>
-
-
-<p>
-We need <tt>is_convertible</tt>, not <tt>is_constructible</tt>, both in ordered and unordered containers. 
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-The effects of these inserts can be concisely stated in terms of emplace().
-Also, the correct term is "EmplaceConstructible", not "constructible".
-</p>
-
-<p>
-New wording by Pablo, eliminating duplicate requirements already implied by the effects clause.  Move to Review.
-</p>
-
-<p><i>[
-2011-10-02 Daniel comments and refines the proposed wording
-]</i></p>
-
-
-<blockquote><p>
-Unfortunately the template constraints expressed as "<tt>P</tt> is implicitly convertible to <tt>value_type</tt>"
-reject the intended effect to support move-only key types, which was the original intention when
-the library became move-enabled through the rvalue-reference proposals by Howard (This can clearly be deduced
-from existing carefully selected wording that emphasizes that <tt>CopyConstructible</tt> is only required
-for special situations involving lvalues or const rvalues as arguments). The root of the problem is based
-on current core rules, where an "implicitly converted" value has copy-initialization semantics. Consider
-a move-only key type <tt>KM</tt>, some mapped type <tt>T</tt>, and a source value <tt>p</tt> of type <tt>P</tt> 
-equal to <tt>std::pair&lt;KM, T&gt;</tt>, this is equivalent to:
-</p>
-<blockquote><pre>
-std::pair&lt;const KM, T&gt; dest = std::move(p);
-</pre></blockquote>
-<p>
-Now 8.5 [dcl.init] p16 b6 sb2 says that the effects of this heterogeneous copy-initialization (<tt>p</tt>
-has a different type than <tt>dest</tt>) are as-if a temporary of the target type <tt>std::pair&lt;const KM, T&gt;</tt>
-is produced from the rvalue <tt>p</tt> of type <tt>P</tt> (which is fine), and this temporary is used to initialize 
-<tt>dest</tt>. This second step cannot succeed, because we cannot move from <tt>const KM</tt> to <tt>const KM</tt>. This 
-means that <tt>std::is_convertible&lt;P, std::pair&lt;const KM, T&gt;&gt;::value</tt> is false.
-<p/>
-But the actual code that is required (with the default allocator) is simply a direct-initialization
-from <tt>P</tt> to <tt>value_type</tt>, so imposing an implicit conversion is more than necessary. Therefore
-I strongly recommend to reduce the "overload participation" constraint to  
-<tt>std::is_constructible&lt;std::pair&lt;const KM, T&gt;, P&gt;::value</tt> instead. This change is the
-only change that has been performed to the previous proposed wording from Pablo shown below. 
-</p></blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Tentatively Ready by the post-Kona issues processing subgroup, after much discussion
-on Daniel's analysis of Copy Initialization and move semantics, which we ultimately agreed with.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>Change 23.4.4.4 [map.modifiers] around p. 1 as indicated:
-<blockquote><pre>
-template &lt;class P&gt; pair&lt;iterator, bool&gt; insert(P&amp;&amp; x);
-template &lt;class P&gt; <del>pair&lt;</del>iterator<del>, bool&gt;</del> insert(const_iterator position, P&amp;&amp; x);
-</pre><blockquote>
-<del>1 <em>Requires</em>: <tt>P</tt> shall be convertible to <tt>value_type</tt>.</del>
-<p/>
-<del>If <tt>P</tt> is instantiated as a reference type, then the argument <tt>x</tt> is copied from. Otherwise <tt>x</tt> is considered
-to be an rvalue as it is converted to <tt>value_type</tt> and inserted into the map. Specifically, in
-such cases <tt>CopyConstructible</tt> is not required of <tt>key_type</tt> or <tt>mapped_type</tt> unless the conversion
-from <tt>P</tt> specifically requires it (e.g., if <tt>P</tt> is a <tt>tuple&lt;const key_type, mapped_type&gt;</tt>, then <tt>key_type</tt>
-must be <tt>CopyConstructible</tt>). The signature taking <tt>InputIterator</tt> parameters does not require
-<tt>CopyConstructible</tt> of either <tt>key_type</tt> or <tt>mapped_type</tt> if the dereferenced <tt>InputIterator</tt> returns a
-non-const rvalue <tt>pair&lt;key_type,mapped_type&gt;</tt>. Otherwise <tt>CopyConstructible</tt> is required for both
-<tt>key_type</tt> and <tt>mapped_type</tt>.</del><br/>
-<ins>? <em>Effects</em>: The first form is equivalent to
-<tt>return emplace(std::forward&lt;P&gt;(x))</tt>.
-The second form is equivalent to
-<tt>return emplace_hint(position, std::forward&lt;P&gt;(x))</tt>.</ins>
-<p/>
-<ins>? <em>Remarks</em>: These signatures shall not participate in overload resolution unless 
-<tt>std::is_constructible&lt;value_type, P&amp;&amp;&gt;::value</tt> is true.</ins>
-<p/>
-</blockquote></blockquote>
-</li>
-<li>Change 23.4.5.3 [multimap.modifiers] around p. 1 as indicated:
-<blockquote><pre>
-template &lt;class P&gt; iterator insert(P&amp;&amp; x);
-template &lt;class P&gt; iterator insert(const_iterator position, P&amp;&amp; x);
-</pre><blockquote>
-<del>1 <em>Requires</em>: <tt>P</tt> shall be convertible to <tt>value_type</tt>.</del>
-<p/>
-<del>If <tt>P</tt> is instantiated as a reference type, then the argument <tt>x</tt> is copied from. Otherwise 
-<tt>x</tt> is considered to be an rvalue as it is converted to <tt>value_type</tt> and inserted into the map. 
-Specifically, in such cases <tt>CopyConstructible</tt> is not required of <tt>key_type</tt> or <tt>mapped_type</tt> 
-unless the conversion from <tt>P</tt> specifically requires it (e.g., if <tt>P</tt> is a <tt>tuple&lt;const key_type, mapped_type&gt;</tt>, 
-then <tt>key_type</tt> must be <tt>CopyConstructible</tt>). The signature taking <tt>InputIterator</tt> parameters 
-does not require <tt>CopyConstructible</tt> of either <tt>key_type</tt> or <tt>mapped_type</tt> if the dereferenced 
-<tt>InputIterator</tt> returns a non-const rvalue <tt>pair&lt;key_type, mapped_type&gt;</tt>. Otherwise <tt>CopyConstructible</tt> 
-is required for both <tt>key_type</tt> and <tt>mapped_type</tt>.</del><br/>
-<ins>? <em>Effects</em>: The first form is equivalent to
-<tt>return emplace(std::forward&lt;P&gt;(x))</tt>.
-The second form is equivalent to
-<tt>return emplace_hint(position, std::forward&lt;P&gt;(x))</tt>.</ins>
-<p/>
-<ins>? <em>Remarks</em>: These signatures shall not participate in overload resolution unless 
-<tt>std::is_constructible&lt;value_type, P&amp;&amp;&gt;::value</tt> is true.</ins>
-<p/>
-</blockquote></blockquote>
-</li>
-<li>Change  [unord.map.modifers] around p. 1 as indicated:
-<blockquote><pre>
-template &lt;class P&gt;
-pair&lt;iterator, bool&gt; insert(P&amp;&amp; obj);
-</pre>
-<blockquote>
-<del>1 <em>Requires</em>: <tt>value_type</tt> is constructible from <tt>std::forward&lt;P&gt;(obj)</tt>.</del>
-<p/>
-2 <em>Effects</em>:
-<ins>equivalent to <tt>return emplace(std::forward&lt;P&gt;(obj))</tt>.</ins>
-<del>Inserts obj converted to <tt>value_type</tt> if and only if there is no element in the container with
-key equivalent to the key of <tt>value_type(obj)</tt>.</del>
-<p/>
-<del>3 <em>Returns</em>: The bool component of the returned pair object indicates whether the insertion took place
-and the iterator component points to the element with key equivalent to the key of <tt>value_type(obj)</tt>.</del>
-<p/>
-<del>4 <em>Complexity</em>: Average case O(1), worst case O(size()).</del>
-<p/>
-<del>5</del><ins>3</ins> <em>Remarks</em>: This signature shall not participate in overload resolution unless 
-<del><tt>P</tt> is implicitly convertible to <tt>value_type</tt></del><ins><tt>std::is_constructible&lt;value_type, 
-P&amp;&amp;&gt;::value</tt> is true</ins>.
-<p/>
-</blockquote>
-<pre>template &lt;class P&gt;
-iterator insert(const_iterator hint, P&amp;&amp; obj);
-</pre>
-<blockquote>
-<del>6 <em>Requires</em>: <tt>value_type</tt> is constructible from <tt>std::forward&lt;P&gt;(obj)</tt>.</del>
-<p/>
-<del>7</del><em>?</em> <em>Effects</em>:
-<ins>equivalent to <tt>return emplace_hint(hint, std::forward&lt;P&gt;(obj))</tt>.</ins>
-<del>Inserts obj converted to <tt>value_type</tt> if and only if there is no element in the container with
-key equivalent to the key of <tt>value_type(obj)</tt>. The iterator hint is a hint pointing to where the
-search should start.</del>
-<p/>
-<del>8 <em>Returns</em>: An iterator that points to the element with key equivalent to the key of 
-<tt>value_type(obj)</tt>.</del>
-<p/>
-<del>9 <em>Complexity</em>: Average case O(1), worst case O(size()).</del>
-<p/>
-<del>10</del><em>?</em> <em>Remarks</em>: This signature shall not participate in overload resolution unless 
-<del><tt>P</tt> is implicitly convertible to <tt>value_type</tt></del><ins><tt>std::is_constructible&lt;value_type, 
-P&amp;&amp;&gt;::value</tt> is true</ins>.
-</blockquote></blockquote>
-</li>
-<li>Change  [unord.multimap.modifers] around p. 1 as indicated:
-<blockquote><pre>
-template &lt;class P&gt;
-iterator insert(P&amp;&amp; obj);
-</pre>
-<blockquote>
-<del>1 <em>Requires</em>: <tt>value_type</tt> is constructible from <tt>std::forward&lt;P&gt;(obj)</tt>.</del>
-<p/>
-2 <em>Effects</em>:
-<ins>equivalent to <tt>return emplace(std::forward&lt;P&gt;(obj))</tt>.</ins>
-<del>Inserts obj converted to <tt>value_type</tt>.</del>
-<p/>
-<del>3 <em>Returns</em>: An iterator that points to the element with key equivalent to the key of <tt>value_type(obj)</tt>.</del>
-<p/>
-<del>4 <em>Complexity</em>: Average case O(1), worst case O(size()).</del>
-<p/>
-<del>5</del><ins>3</ins> <em>Remarks</em>: This signature shall not participate in overload resolution 
-unless <del><tt>P</tt> is implicitly convertible to <tt>value_type</tt></del><ins><tt>std::is_constructible&lt;value_type, 
-P&amp;&amp;&gt;::value</tt> is true</ins>.
-</blockquote>
-<pre>
-template &lt;class P&gt;
-iterator insert(const_iterator hint, P&amp;&amp; obj);
-</pre>
-<blockquote>
-<del>6 <em>Requires</em>: <tt>value_type</tt> is constructible from <tt>std::forward&lt;P&gt;(obj)</tt>.</del>
-<p/>
-<del>7</del><em>?</em> <em>Effects</em>:
-<ins>equivalent to <tt>return emplace_hint(hint, std::forward&lt;P&gt;(obj))</tt>.</ins>
-<del>Inserts obj converted to <tt>value_type</tt>. The iterator hint is a hint pointing to where the search
-should start.</del>
-<p/>
-<del>8 <em>Returns</em>: An iterator that points to the element with key equivalent to the key of <tt>value_type</tt>(obj).</del>
-<p/>
-<del>9 <em>Complexity</em>: Average case O(1), worst case O(size()).</del>
-<p/>
-<del>10</del><ins><em>?</em></ins> <em>Remarks</em>: This signature shall not participate in overload resolution 
-unless <del><tt>P</tt> is implicitly convertible to <tt>value_type</tt></del><ins><tt>std::is_constructible&lt;value_type, 
-P&amp;&amp;&gt;::value</tt> is true</ins>.
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2007"></a>2007. Incorrect specification of return value for <tt>map&lt;&gt;::at()</tt></h3>
-<p><b>Section:</b> 23.4.4.3 [map.access] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2010-11-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.access">issues</a> in [map.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In [map.access]/9, the <i>Returns</i> clause for <tt>map&lt;Key, T&gt;::at(x)</tt> says 
-that it returns "a reference to the element whose key is equivalent to <tt>x</tt>." That can't be right. 
-The signature for <tt>at()</tt> says that its return type is <tt>T</tt>, but the elements 
-of <tt>map&lt;Key, T&gt;</tt> have type <tt>pair&lt;const K, T&gt;</tt>.  (I checked [unord.map.elem] 
-and found that its specification of <tt>at()</tt> is correct. This is a problem for <tt>map</tt> only.)
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Change the wording in [map.access]/9 so it's identical to what we already say for <tt>operator[]</tt>, 
-which is unambiguous and correct.
-</p>
-<blockquote><p>
-<i>Returns</i>: A reference to the <del>element whose key is equivalent</del><ins><tt>mapped_type</tt> 
-corresponding</ins> to <tt>x</tt><ins> in <tt>*this</tt></ins>.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2008"></a>2008. Conflicting Error Conditions for <tt>packaged_task::operator()</tt></h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2010-06-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Throws clause for <tt>packaged_task::operator()</tt> says that it throws "a
-<tt>future_error</tt> exception object if there is no associated asynchronous
-state or the stored task has already been invoked." However, the Error
-Conditions clause does not define an error condition when the stored task has
-already been invoked, only when the associated state is already ready (i.e. the
-invocation has completed).
-</p>
-
-<p><i>[2011-02-17 Anthony provides an alternative resolution]</i></p>
-
-
-<p><strong>Previous</strong> proposed resolution:</p>
-
-<p>
-Change the first bullet item in 30.6.9.1 [futures.task.members] /22:
-</p>
-
-<blockquote><pre>
-void operator()(ArgTypes... args);
-</pre>
-<blockquote>
-<p>
-20 ...
-</p>
-<p>
-21 ...
-</p>
-<p>
-22 <i>Error conditions:</i>
-</p>
-<ul>
-<li>
-<tt>promise_already_satisfied</tt> if <del>the associated asynchronous state is
-already ready</del> <ins><tt>operator()</tt> has already been called</ins>.
-</li>
-<li>
-<tt>no_state</tt> if <tt>*this</tt> has no associated asynchronous state.
-</li>
-</ul>
-</blockquote>
-</blockquote>
-
-<p><i>[Adopted at Madrid, 2011-03]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change the first bullet item in 30.6.9.1 [futures.task.members] p. 17:
-</p>
-
-<blockquote><pre>
-void operator()(ArgTypes... args);
-</pre>
-<blockquote>
-<p>
-15 ...
-</p>
-<p>
-16 ...
-</p>
-<p>
-17 <i>Error conditions:</i>
-</p>
-<ul>
-<li>
-<tt>promise_already_satisfied</tt> if the <del>associated asynchronous state is already 
-ready</del><ins>stored task has already been invoked</ins>.
-</li>
-<li>
-<tt>no_state</tt> if <tt>*this</tt> has no associated asynchronous state.
-</li>
-</ul>
-</blockquote>
-</blockquote>
-</li>
-
-<li>
-<p>
-Change the first bullet item in 30.6.9.1 [futures.task.members] p. 21:
-</p>
-
-<blockquote><pre>
-void make_ready_at_thread_exit(ArgTypes... args);
-</pre>
-<blockquote>
-<p>
-19 ...
-</p>
-<p>
-20 ...
-</p>
-<p>
-21 <i>Error conditions:</i>
-</p>
-<ul>
-<li>
-<tt>promise_already_satisfied</tt> if the <del>associated asynchronous state already has a stored value or
-exception</del><ins>stored task has already been invoked</ins>.
-</li>
-<li>
-<tt>no_state</tt> if <tt>*this</tt> has no associated asynchronous state.
-</li>
-</ul>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2009"></a>2009. Reporting out-of-bound values on numeric string conversions</h3>
-<p><b>Section:</b> 21.5 [string.conversions] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2010-07-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.conversions">issues</a> in [string.conversions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The functions (<tt>w</tt>)<tt>stoi</tt> and (<tt>w</tt>)<tt>stof</tt>
-are specified in terms of calling C library APIs for potentially wider
-types.  The integer and floating-point versions have subtly different
-behaviour when reading values that are too large to convert.  The
-floating point case will throw <tt>out_of_bound</tt> if the read value
-is too large to convert to the wider type used in the implementation,
-but behaviour is undefined if the converted value cannot narrow to a
-float.  The integer case will throw <tt>out_of_bounds</tt> if the
-converted value cannot be represented in the narrower type, but throws
-<tt>invalid_argument</tt>, rather than <tt>out_of_range</tt>, if the
-conversion to the wider type fails due to overflow.
-</p>
-
-<p>
-Suggest that the Throws clause for both specifications should be
-consistent, supporting the same set of fail-modes with the matching set
-of exceptions.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-21.5p3 [string.conversions]
-</p>
-
-<blockquote><pre>
-int stoi(const string&amp; str, size_t *idx = 0, int base = 10);
-long stol(const string&amp; str, size_t *idx = 0, int base = 10);
-unsigned long stoul(const string&amp; str, size_t *idx = 0, int base = 10);
-long long stoll(const string&amp; str, size_t *idx = 0, int base = 10);
-unsigned long long stoull(const string&amp; str, size_t *idx = 0, int base = 10);
-</pre>
-
-<blockquote>
-<p>
-...
-</p>
-<p>
-3 <i>Throws:</i> <tt>invalid_argument</tt> if <tt>strtol</tt>,
-<tt>strtoul</tt>, <tt>strtoll</tt>, or <tt>strtoull</tt> reports that no
-conversion could be performed. Throws <tt>out_of_range</tt> if
-<ins><tt>strtol</tt>, <tt>strtoul</tt>, <tt>strtoll</tt> or
-<tt>strtoull</tt> sets <tt>errno</tt> to <tt>ERANGE</tt>, or if</ins>
-the converted value is outside the range of representable values for the
-return type.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-21.5p6 [string.conversions]
-</p>
-
-<blockquote><pre>
-float stof(const string&amp; str, size_t *idx = 0);
-double stod(const string&amp; str, size_t *idx = 0);
-long double stold(const string&amp; str, size_t *idx = 0);
-</pre>
-
-<blockquote>
-<p>
-...
-</p>
-<p>
-6 <i>Throws:</i> <tt>invalid_argument</tt> if <tt>strtod</tt> or
-<tt>strtold</tt> reports that no conversion could be performed. Throws
-<tt>out_of_range</tt> if <tt>strtod</tt> or <tt>strtold</tt> sets
-<tt>errno</tt> to <tt>ERANGE</tt> <ins> or if the converted value is
-outside the range of representable values for the return type</ins>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2010"></a>2010. <tt>is_* traits</tt> for binding operations can't be meaningfully specialized</h3>
-<p><b>Section:</b> 20.9.10.1 [func.bind.isbind] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Sean Hunt <b>Opened:</b> 2010-07-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.isbind">issues</a> in [func.bind.isbind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.9.10.1 [func.bind.isbind] says for <tt>is_bind_expression</tt>:
-</p>
-
-<blockquote><p>
-Users may specialize this template to indicate that a type should be
-treated as a subexpression in a <tt>bind</tt> call.
-</p></blockquote>
-
-<p>
-But it also says:
-</p>
-
-<blockquote><p>
-If <tt>T</tt> is a type returned from <tt>bind</tt>,
-<tt>is_bind_expression&lt;T&gt;</tt> shall be publicly derived from
-<tt>integral_constant&lt;bool, true&gt;</tt>, otherwise from
-<tt>integral_constant&lt;bool, false&gt;</tt>.
-</p></blockquote>
-
-<p>
-This means that while the user is free to specialize, any specialization
-would have to be <tt>false</tt> to avoid violating the second
-requirement. A similar problem exists for <tt>is_placeholder</tt>.
-</p>
-
-<p><i>[
-2010 Batavia (post meeting session)
-]</i></p>
-
-<p>
-Alisdair recognises this is clearly a bug introduced by some wording he
-wrote, the sole purpose of this metafunction is as a customization point
-for users to write their own <tt>bind</tt>-expression types that participate
-in the standard library <tt>bind</tt> protocol.  The consensus was that this
-should be fixed in Madrid, moved to Open.
-</p>
-
-<p><i>[2011-05-13 Jonathan Wakely comments and provides proposed wording]</i></p>
-
-
-<p>
-The requirements are that <tt>is_bind_expression&lt;T&gt;::value</tt> is true when <tt>T</tt>
-is a type returned from <tt>bind</tt>, false for any other type, except when
-there's a specialization involving a user-defined type (N.B. 17.6.4.2.1 [namespace.std] 
-means we don't need to say e.g. <tt>is_bind_expression&lt;string&gt;</tt> is false.)
-<p/>
-The obvious way to meet the requirements is for the primary template
-to derive from <tt>integral_constant&lt;bool, false&gt;</tt> and for implementations
-to provide specializations for the unspecified types returned from
-<tt>bind</tt>.  User-defined specializations can do whatever they like, as long
-as <tt>is_bind_expression::value</tt> is sane. There's no reason to forbid
-users from defining <tt>is_bind_expression&lt;<i>user_defined_type</i>&gt;::value=false</tt>
-if that's what they want to do.
-<p/>
-Similar reasoning applies to <tt>is_placeholder</tt>, but a further issue is
-that 20.9.10.1 [func.bind.isbind] contains wording for <tt>is_placeholder</tt> but
-contains no definition of it and the sub-clause name only refers to
-<tt>is_bind_expression</tt>. The wording below proposes splitting paragraphs 3
-and 4 of 20.9.10.1 [func.bind.isbind] into a new sub-clause covering
-<tt>is_placeholder</tt>.
-<p/>
-If the template specializations added by the proposed wording are too
-vague then they could be preceded by "for exposition only" comments
-</p>
-
-<p><i>[2011-05-18 Daniel comments and provides some refinements to the P&#47;R]</i></p>
-
-
-<p>
-Both <tt>bind</tt>-related type traits should take advantage of the
-UnaryTypeTrait requirements. Additionally, the updated wording does not
-imply that the implementation provides several specializations. Wording was 
-used similar to the specification of the <tt>uses_allocator</tt> type trait 
-(which unfortunately is not expressed in terms of BinaryTypeTrait requirements).
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Change 20.9.10.1 [func.bind.isbind] to:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class T&gt; struct is_bind_expression<ins>; <i>// see below</i></ins>
-    <del>: integral_constant&lt;bool, <i>see below</i>&gt; { };</del>
-}
-</pre><blockquote><p>
--1- <tt>is_bind_expression</tt> can be used to detect function objects generated by <tt>bind</tt>. <tt>bind</tt> 
-uses <tt>is_bind_expression</tt> to detect subexpressions. <del>Users may specialize this template to indicate 
-that a type should be treated as a subexpression in a <tt>bind</tt> call.</del>
-<p/>
--2- <del>If <tt>T</tt> is a type returned from <tt>bind</tt>, <tt>is_bind_expression&lt;T&gt;</tt> shall 
-be publicly derived from <tt>integral_constant&lt;bool, true&gt;</tt>, otherwise from 
-<tt>integral_constant&lt;bool, false&gt;</tt></del><ins>Instantiations of the <tt>is_bind_expression</tt> template
-shall meet the UnaryTypeTrait requirements ([meta.rqmts]). The implementation shall provide a definition
-that has a BaseCharacteristic of <tt>true_type</tt> if <tt>T</tt> is a type returned from <tt>bind</tt>, otherwise 
-it shall have a BaseCharacteristic of <tt>false_type</tt>. A program may specialize this template for a user-defined 
-type <tt>T</tt> to have a BaseCharacteristic of <tt>true_type</tt> to indicate that <tt>T</tt> should be treated 
-as a subexpression in a <tt>bind</tt> call.</ins>.
-<p/>
-<del>-3- <tt>is_placeholder</tt> can be used to detect the standard placeholders <tt>_1</tt>, <tt>_2</tt>, and so on. 
-<tt>bind</tt> uses <tt>is_placeholder</tt> to detect placeholders. Users may specialize this template to indicate 
-a placeholder type.</del>
-<p/>
-<del>-4- If <tt>T</tt> is the type of <tt>std::placeholders::_J</tt>, <tt>is_placeholder&lt;T&gt;</tt> shall be 
-publicly derived from <tt>integral_constant&lt;int, J&gt;</tt>, otherwise from <tt>integral_constant&lt;int, 0&gt;</tt>.</del>
-</p></blockquote></blockquote>
-</li>
-<li><p>Insert a new sub-clause immediately following sub-clause 20.9.10.1 [func.bind.isbind], the suggested
-sub-clause tag is [func.bind.isplace]:
-</p>
-<h3><ins>20.8.9.1.?  Class template <tt>is_placeholder</tt>  [func.bind.isplace]</ins></h3> 
-<blockquote><pre>
-<ins>namespace std {
-  template&lt;class T&gt; struct is_placeholder; <i>// see below</i>
-}</ins>
-</pre><blockquote><p>
-<ins>-?- <tt>is_placeholder</tt> can be used to detect the standard placeholders <tt>_1</tt>, <tt>_2</tt>, and so on. 
-<tt>bind</tt> uses <tt>is_placeholder</tt> to detect placeholders.</ins>
-<p/>
-<ins>-?- Instantiations of the <tt>is_placeholder</tt> template shall meet the UnaryTypeTrait requirements ([meta.rqmts]). 
-The implementation shall provide a definition that has a BaseCharacteristic of <tt>integral_constant&lt;int, J&gt;</tt> 
-if <tt>T</tt> is the type of <tt>std::placeholders::_J</tt>, otherwise it shall have a BaseCharacteristic of 
-<tt>integral_constant&lt;int, 0&gt;</tt>. A program may specialize this template for a user-defined type <tt>T</tt> 
-to have a BaseCharacteristic of <tt>integral_constant&lt;int, <i>N</i>&gt;</tt> with <tt><i>N</i> &gt; 0</tt> 
-to indicate that <tt>T</tt> should be treated as a placeholder type.</ins>
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2011"></a>2011. Unexpected output required of strings</h3>
-<p><b>Section:</b> 21.4.8.9 [string.io] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> James Kanze <b>Opened:</b> 2010-07-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.io">issues</a> in [string.io].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-What should the following code output? 
-</p>
-
-<blockquote><pre>
-#include &lt;string&gt;
-#include &lt;iostream&gt;
-#include &lt;iomanip&gt;
-
-int main() 
-{ 
-   std::string test("0X1Y2Z"); 
-   std::cout.fill('*'); 
-   std::cout.setf(std::ios::internal, std::ios::adjustfield); 
-   std::cout &lt;&lt; std::setw(8) &lt;&lt; test &lt;&lt; std::endl; 
-} 
-</pre></blockquote>
-
-<p>
-I would expect "<tt>**0X1Y2Z</tt>", and this is what the compilers I have access
-to (VC++, g++ and Sun CC) do.  But according to the standard, it should be
-"<tt>0X**1Y2Z</tt>":
-</p>
-
-<p>
-21.4.8.9 [string.io]&#47;5: 
-</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_ostream&lt;charT, traits&gt;&amp;
-    operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp; os, const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-</pre><blockquote><p>
-<i>Effects:</i> Behaves as a formatted output function (27.7.3.6.1 [ostream.formatted.reqmts]). After constructing 
-a <tt>sentry</tt> object, if this object returns <tt>true</tt> when converted to a value of type <tt>bool</tt>, 
-determines padding as described in 22.4.2.2.2 [facet.num.put.virtuals], then inserts the resulting sequence of
-characters seq as if by calling <tt>os.rdbuf()-&gt;sputn(seq, n)</tt>, where <tt>n</tt> is the larger of 
-<tt>os.width()</tt> and <tt>str.size()</tt>; then calls <tt>os.width(0)</tt>.
-</p></blockquote>
-</blockquote>
-
-<p>
-22.4.2.2.2 [facet.num.put.virtuals]&#47;5: 
-</p>
-
-<blockquote>
-<p>
-[&hellip;] 
-</p>
-
-<p>
-<b>Stage 3:</b> A local variable is initialized as
-</p>
-
-<blockquote><pre>
-fmtflags adjustfield= (flags &amp; (ios_base::adjustfield));
-</pre></blockquote>
-
-<p>
-The location of any padding is determined according to Table 88. 
-</p>
-
-<p>
-If <tt>str.width()</tt> is nonzero and the number of <tt>charT</tt>'s in the
-sequence after stage 2 is less than <tt>str.width()</tt>, then enough fill
-characters are added to the sequence at the position indicated for padding to
-bring the length of the sequence to <tt>str.width()</tt>. <tt>str.width(0)</tt>
-is called.
-</p>
-
-<table border="1">
-<caption>Table 88 &mdash; Fill padding</caption>
-<tr>
-<th>State</th>
-<th>Location</th>
-</tr>
-
-<tr>
-<td><tt>adjustfield == ios_base::left</tt></td>
-<td>pad after</td>
-</tr>
-
-<tr>
-<td><tt>adjustfield == ios_base::right</tt></td>
-<td>pad before</td>
-</tr>
-
-<tr>
-<td><tt>adjustfield == internal</tt> and a sign occurs in the representation</td>
-<td>pad after the sign</td>
-</tr>
-
-<tr>
-<td><tt>adjustfield == internal</tt> and representation after stage 1 began with 0x or 0X</td>
-<td>pad after x or X</td>
-</tr>
-
-<tr>
-<td><i>otherwise</i></td>
-<td>pad before</td>
-</tr>
-</table>
-
-</blockquote>
-
-<p>
-Although it's not 100% clear what "the sequence after stage 2" should mean here,
-when there is no stage 2, the only reasonable assumption is that it is the
-contents of the string being output.  In the above code, the string being output
-is "<tt>0X1Y2Z</tt>", which starts with "<tt>0X</tt>", so the padding should be
-inserted "after x or X", and not before the string. I believe that this is a
-defect in the standard, and not in the three compilers I tried.
-</p>
-
-<p><i>[
-2010 Batavia (post meeting session)
-]</i></p>
-
-<p>
-Consensus that all known implementations are consistent, and disagree with the
-standard. Preference is to fix the standard before implementations start trying
-to conform to the current spec, as the current implementations have the preferred
-form. Howard volunteered to drught for Madrid, move to Open.
-</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>
-Daniel Kr&uuml;gler volunteered to provide wording, interacting with Dietmar and
-Bill. 
-</p>
-
-<p><i>[2011-06-24 Daniel comments and provides wording]</i></p>
-
-
-<p>
-The same problem applies to the output provided by <tt>const char*</tt> and similar
-character sequences as of 27.7.3.6.4 [ostream.inserters.character] p. 5. and even for
-single character output (!) as described in 27.7.3.6.4 [ostream.inserters.character] p. 1,
-just consider the character value '-' where '-' is the sign character. In this case
-Table 91 &mdash; "Fill padding" requires to pad after the sign, i.e. the output
-for the program
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;iomanip&gt;
-
-int main() 
-{ 
-   char c = '-'; 
-   std::cout.fill('*'); 
-   std::cout.setf(std::ios::internal, std::ios::adjustfield); 
-   std::cout &lt;&lt; std::setw(2) &lt;&lt; c &lt;&lt; std::endl; 
-} 
-</pre></blockquote>
-
-<p>
-According to the current wording this program should output "<tt>-*</tt>", but
-all tested implementations output "<tt>*-</tt>" instead.
-
-<p/>
-I suggest to replace the reference to 22.4.2.2.2 [facet.num.put.virtuals] in all three places. 
-It is not very complicated to describe the padding rules for simple character sequences "inline". 
-A similar approach is used as for the <tt>money_put</tt> functions.
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Move to Review, the resolution seems correct but it would be nice if some factoring of the
-common words were proposed.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Tentatively Ready by the post-Kona issues processing subgroup.
-</p>
-<p>
-While better factoring of the common words is desirable, it is also editorial and
-should not hold up the progress of this issue.  As the edits impact two distinct
-clauses, it is not entirely clear what a better factoring should look like.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-The new wording refers to the FDIS numbering.
-</p>
-<ol>
-<li><p>Change 21.4.8.9 [string.io]&#47;5 as indicated:</p>
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  basic_ostream&lt;charT, traits&gt;&amp;
-    operator&lt;&lt;(basic_ostream&lt;charT, traits&gt;&amp; os,
-               const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-</pre><blockquote><p>
--5- <i>Effects</i>: Behaves as a formatted output function ([ostream.formatted.reqmts]). After constructing a sentry object,
-if this object returns <tt>true</tt> when converted to a value of type <tt>bool</tt>, determines padding as <del>described
-in [facet.num.put.virtuals],</del><ins>follows: A <tt>charT</tt> character sequence is produced, initially consisting of 
-the elements defined by the range <tt>[str.begin(), str.end())</tt>. If <tt>str.size()</tt> is less than <tt>os.width()</tt>, 
-then enough copies of <tt>os.fill()</tt> are added to this sequence as necessary to pad to a width of <tt>os.width()</tt> 
-characters. If <tt>(os.flags() &amp; ios_base::adjustfield) == ios_base::left</tt> is <tt>true</tt>, the fill characters 
-are placed after the character sequence; otherwise, they are placed before the character sequence. T</ins><del>t</del>hen 
-inserts the resulting sequence of characters <tt>seq</tt> as if by calling <tt>os.rdbuf()-&gt;sputn(seq, n)</tt>, where 
-<tt>n</tt> is the larger of <tt>os.width()</tt> and <tt>str.size()</tt>; then calls <tt>os.width(0)</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li><p>Change 27.7.3.6.4 [ostream.inserters.character]&#47;1 as indicated (An additional editorial
-fix is suggested for the first prototype declaration):</p>
-<blockquote><pre>
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          charT c<del>}</del><ins>)</ins>;
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          char c);
-<i>// specialization</i>
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         char c);
-<i>// signed and unsigned</i>
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         signed char c);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         unsigned char c);
-</pre><blockquote><p>
--1- <i>Effects</i>: Behaves like a formatted inserter (as described in [ostream.formatted.reqmts]) of <tt>out</tt>. 
-After a sentry object is constructed it inserts characters. In case <tt>c</tt> has type <tt>char</tt> and the 
-character type of the stream is not <tt>char</tt>, then the character to be inserted is <tt>out.widen(c)</tt>; 
-otherwise the character is <tt>c</tt>. Padding is determined as <del>described in [facet.num.put.virtuals]</del><ins>follows: 
-A character sequence is produced, initially consisting of the insertion character. If <tt>out.width()</tt> is greater
-than one, then enough copies of <tt>out.fill()</tt> are added to this sequence as necessary to pad to a width of 
-<tt>out.width()</tt> characters. If <tt>(out.flags() &amp; ios_base::adjustfield) == ios_base::left</tt> is <tt>true</tt>, 
-the fill characters are placed after the insertion character; otherwise, they are placed before the insertion 
-character</ins>. <del><tt>width(0)</tt> is called.</del> The insertion character and any required padding are 
-inserted into <tt>out</tt><ins>; then calls <tt>os.width(0)</tt></ins>.
-</p></blockquote></blockquote>
-</li>
-
-<li><p>Change 27.7.3.6.4 [ostream.inserters.character]&#47;5 as indicated:</p>
-<blockquote><pre>
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          const charT* s);
-template&lt;class charT, class traits&gt;
-  basic_ostream&lt;charT,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;charT,traits&gt;&amp; out,
-                                          const char* s);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         const char* s);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         const signed char* s);
-template&lt;class traits&gt;
-  basic_ostream&lt;char,traits&gt;&amp; operator&lt;&lt;(basic_ostream&lt;char,traits&gt;&amp; out,
-                                         const unsigned char* s);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--5- Padding is determined as <del>described in [facet.num.put.virtuals]. The <tt>n</tt> characters starting at <tt>s</tt> 
-are widened using <tt>out.widen</tt> ([basic.ios.members])</del><ins>follows: A character sequence is produced, initially 
-consisting of the elements defined by the <tt>n</tt> characters starting at <tt>s</tt> widened using 
-<tt>out.widen</tt> ([basic.ios.members]). If <tt>n</tt> is less than <tt>out.width()</tt>, then enough copies of 
-<tt>out.fill()</tt> are added to this sequence as necessary to pad to a width of <tt>out.width()</tt> characters. 
-If <tt>(out.flags() &amp; ios_base::adjustfield) == ios_base::left</tt> is <tt>true</tt>, the fill characters are 
-placed after the character sequence; otherwise, they are placed before the character sequence</ins>. The 
-widened characters and any required padding are inserted into <tt>out</tt>. Calls <tt>width(0)</tt>.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2012"></a>2012. Associative maps should insert <tt>pair</tt>, not <tt>tuple</tt></h3>
-<p><b>Section:</b> 23.4 [associative] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2010-10-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative">active issues</a> in [associative].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative">issues</a> in [associative].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I'm seeing something strange in the paragraphs 23.4.4.4 [map.modifiers] and 23.4.5.3 [multimap.modifiers]:
-they both talk about <tt>tuple&lt;const key_type, mapped_type&gt;</tt> but I think they
-should be talking about <tt>pair&lt;const key_type, mapped_type&gt;</tt> because, among
-other reasons, a <tt>tuple</tt> is not convertible to a <tt>pair</tt>. If I replace <tt>tuple</tt>
-with <tt>pair</tt> everything makes sense to me.
-<p/>
-The proposed resolution is obvious. 
-</p>
-
-<p><i>[
-2010-11-07 Daniel comments
-]</i></p>
-
-
-<p>
-This is by far not the only necessary fix within both sub-clauses. For details see the 2010-10-29 comment in 
-<a href="lwg-defects.html#2005">2005</a>.
-</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>
-Paolo: Don't think we can do it now.
-<p/>
-Daniel K: Agrees. 
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Consensus that this issue will be resolved by <a href="lwg-defects.html#2005">2005</a>, but held open until that issue is resolved.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Apply the resolution proposed by the 2010-10-29 comment in <a href="lwg-defects.html#2005">2005</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2013"></a>2013. Do library implementers have the freedom to add <tt>constexpr</tt>?</h3>
-<p><b>Section:</b> 17.6.5.6 [constexpr.functions] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2010-11-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>Suppose that a particular function is not tagged as constexpr in the standard,
-but that, in some particular implementation, it is possible to write it within
-the constexpr constraints. If an implementer tags such a function as constexpr,
-is that a violation of the standard or is it a conforming extension?</p>
-
-<p>There are two questions to consider. First, is this allowed under the
-as-if rule? Second, if it does not fall under as-if, is there
-(and should there be) any special license granted to implementers
-to do this anyway, sort of the way we allow elision of copy constructors
-even though it is detectable by users?</p>
-
-<p>I believe that this does not fall under "as-if", so implementers
-probably don't have that freedom today. I suggest changing the WP
-to grant it. Even if we decide otherwise, however, I suggest that
-we make it explicit.</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-General surprise this was not already in 'Ready' status, and so moved.
-</p>
-
-<p><i>[
-2012 Kona
-]</i></p>
-
-
-<p>
-Some concern expressed when presented to full committee for the vote to WP status
-that this issue had been resolved without sufficient thought of the consequences
-for diverging library implementations, as users may use SFINAE to observe
-different behavior from otherwise identical code.  Issue moved back to Review
-status, and will be discussed again in Portland with a larger group.
-
-Note for Portland: John Spicer has agreed to represent Core's concerns during
-any such discussion within LWG.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-
-<p>
-Straw poll: LWG strongly favoured to remove from implementations the freedom to add <tt>constexpr</tt>.
-</p>
-<p>
-Matt provides new wording.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-
-<p>
-Move to Immediate after reviewing Matt's new wording, apply the new wording to the Working Paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>In 17.6.5.6 [constexpr.functions], change paragraph 1 to:</i></p>
-
-<blockquote><p>
-<ins>This standard explicitly requires that certain standard library functions
-are <tt>constexpr</tt> [dcl.constexpr]. 
-An implementation shall not declare any standard library function signature as <tt>constexpr</tt> 
-except for those where it is explicitly required.</ins>
-Within any header that provides any non-defining declarations of <tt>constexpr</tt>
-functions or constructors an implementation shall provide corresponding definitions. 
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2014"></a>2014. More restrictions on macro names</h3>
-<p><b>Section:</b> 17.6.4.3.1 [macro.names] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2010-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#macro.names">issues</a> in [macro.names].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A program is currently forbidden to use keywords as macro names. This restriction should be strengthened to include all identifiers 
-that could be used by the library as attribute-tokens (for example <tt>noreturn</tt>, which is used by header <tt>&lt;cstdlib&gt;</tt>) 
-and the special identifiers introduced recently for override control (these are not currently used in the library public interface,
-but could potentially be used by the implementation or in future revisions of the library).
-</p>
-<p><i>[2011-02-10 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Modify 17.6.4.3.1 [macro.names] paragraph 2 as follows:</p>
-
-<blockquote><p>
-A translation unit shall not <tt>#define</tt> or <tt>#undef</tt> names
-lexically identical to keywords<ins>, to the identifiers listed in Table
-X [Identifiers with special meaning], or to the <i>attribute-tokens</i>
-described in clause 7.6 [dcl.attr]</ins>.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2015"></a>2015. Incorrect pre-conditions for some type traits</h3>
-<p><b>Section:</b> 20.10.4 [meta.unary] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2010-11-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary">issues</a> in [meta.unary].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>According to N3126&nbsp;&#x2011;&nbsp;3.9/9,</p>
-
-<p>&quot;Scalar types, trivial class types (Clause 9), arrays of such types
-and <i>cv</i>&#x2011;qualified versions of these types (3.9.3) are collectively
-called <i>trivial types</i>.&quot;</p>
-
-<p>Thus, an array (possibly of unknown bound) can be trivial type, non&#x2011;trivial type, 
-or an array type whose triviality cannot be determined because its element type is incomplete.</p>
-
-<p>According to N3126&nbsp;&#x2011;&nbsp;Table 45, preconditions for <tt>std::is_trivial</tt> are
-defined as follows:</p>
-
-<p>&quot;<tt>T</tt> shall be a complete type, (possibly <i>cv</i>-qualified) <tt>void</tt>, 
-or an array of unknown bound&quot;</p>
-
-<p>It seems that &quot;an array of unknown bound&quot; should be changed to &quot;an
-array of unknown bound of a complete element type&quot;. Preconditions for
-some other templates (e.g., <tt>std::is_trivially_copyable</tt>,
-<tt>std::is_standard_layout</tt>, <tt>std::is_pod</tt>, and <tt>std::is_literal_type</tt>) should
-be changed similarly.</p>
-
-<p>On the other hand, some preconditions look too restrictive. For
-example, <tt>std::is_empty</tt> and <tt>std::is_polymorphic</tt> might accept any
-incomplete non&#x2011;class type.</p>
-
-<p><i>[2011-02-18: Daniel provides wording proposal]</i></p>
-
-
-<p>
-While reviewing the individual preconditions I could find three different groups of
-either too weakening or too strengthening constraints:
-</p>
-<ol>
-<li><pre>is_empty/is_polymorphic/is_abstract/has_virtual_destructor:</pre>
-
-<p>These traits can only apply for <em>non&#x2011;union class types</em>, otherwise the result must
-always be false</p>
-</li>
-
-<li><pre>is_base_of:</pre>
-
-<p>Similar to the previous bullet, but the current wording comes already near to that ideal,
-it only misses to add the <em>non&#x2011;union</em> aspect.</p>
-</li>
-
-<li><pre>is_trivial/is_trivially_copyable/is_standard_layout/is_pod/is_literal_type:</pre>
-
-<p>These traits always require that <tt>std::remove_all_extents&lt;T&gt;::type</tt> to be <tt><i>cv</i> void</tt> or 
-a complete type.</p>
-</li>
-</ol>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Modify the pre-conditions of the following type traits in 20.10.4.3 [meta.unary.prop], Table 48 &mdash; Type property predicates:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 48 &mdash; Type property predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Preconditions</th>
-</tr>
-
-<tr>
-<td colspan="3" style="text-align:center;">...</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_trivial;</tt></td>
-<td><tt>T</tt> is a trivial type (3.9)</td>
-<td><tt><ins>remove_all_extents&lt;</ins>T<ins>&gt;::type</ins></tt><br/>
-shall be a complete type<del>,</del><ins> or</ins> (possibly<br/>
-cv-qualified) <tt>void</tt><del>, or an array of<br/>
-unknown bound</del>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_trivially_copyable;</tt></td>
-<td><tt>T</tt> is a trivially copyable<br/>
-type (3.9)</td>
-<td><tt><ins>remove_all_extents&lt;</ins>T<ins>&gt;::type</ins></tt><br/>
-shall be a complete type<del>,</del><ins> or</ins> (possibly<br/>
-cv-qualified) <tt>void</tt><del>, or an array of<br/>
-unknown bound</del>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_standard_layout;</tt></td>
-<td><tt>T</tt> is a standard-layout<br/>
-type (3.9)</td>
-<td><tt><ins>remove_all_extents&lt;</ins>T<ins>&gt;::type</ins></tt><br/>
-shall be a complete type<del>,</del><ins> or</ins> (possibly<br/>
-cv-qualified) <tt>void</tt><del>, or an array of<br/>
-unknown bound</del>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_pod;</tt></td>
-<td><tt>T</tt> is a POD type (3.9)</td>
-<td><tt><ins>remove_all_extents&lt;</ins>T<ins>&gt;::type</ins></tt><br/>
-shall be a complete type<del>,</del><ins> or</ins> (possibly<br/>
-cv-qualified) <tt>void</tt><del>, or an array of<br/>
-unknown bound</del>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_literal_type;</tt></td>
-<td><tt>T</tt> is a literal type (3.9)</td>
-<td><tt><ins>remove_all_extents&lt;</ins>T<ins>&gt;::type</ins></tt><br/>
-shall be a complete type<del>,</del><ins> or</ins> (possibly<br/>
-cv-qualified) <tt>void</tt><del>, or an array of<br/>
-unknown bound</del>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_empty;</tt></td>
-<td><tt>T</tt> is a class type, but not a<br/>
-union type, with no<br/>
-non-static data members<br/>
-other than bit-fields of<br/>
-length 0, no virtual<br/>
-member functions, no<br/>
-virtual base classes, and<br/>
-no base class B for which<br/>
-<tt>is_empty&lt;B&gt;::value</tt> is<br/>
-false.</td>
-<td><del><tt>T</tt> shall be a complete type,<br/>
-(possibly cv-qualified) <tt>void</tt>, or<br/>
-an array of unknown bound</del><ins>If <tt>T</tt><br/>
-is a non&#x2011;union class type, <tt>T</tt><br/>
-shall be a complete type</ins>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_polymorphic;</tt></td>
-<td><tt>T</tt> is a polymorphic<br/>
-class (10.3)</td>
-<td><del><tt>T</tt> shall be a complete type,<br/>
-type, (possibly cv-qualified) <tt>void</tt>, or<br/>
-an array of unknown bound</del><ins>If <tt>T</tt><br/>
-is a non&#x2011;union class type, <tt>T</tt><br/>
-shall be a complete type</ins>.</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct is_abstract;</tt></td>
-<td><tt>T</tt> is an abstract<br/>
-class (10.4)</td>
-<td><del><tt>T</tt> shall be a complete type,<br/>
-type, (possibly cv-qualified) <tt>void</tt>, or<br/>
-an array of unknown bound</del><ins>If <tt>T</tt><br/>
-is a non&#x2011;union class type, <tt>T</tt><br/>
-shall be a complete type</ins>.</td>
-</tr>
-
-<tr>
-<td colspan="3" style="text-align:center;">...</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class T&gt;<br/>
-struct has_virtual_destructor;</tt></td>
-<td><tt>T</tt> has a virtual<br/>
-destructor (12.4)</td>
-<td><del><tt>T</tt> shall be a complete type,<br/>
-(possibly cv-qualified) <tt>void</tt>, or<br/>
-an array of unknown bound</del><ins>If <tt>T</tt><br/>
-is a non&#x2011;union class type, <tt>T</tt><br/>
-shall be a complete type</ins>.</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Modify the pre-conditions of the following type traits in 20.10.6 [meta.rel], Table 50 &mdash; Type relationship predicates:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 50 &mdash; Type relationship predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" style="text-align:center;">...</td>
-</tr>
-
-<tr>
-<td><tt>template &lt;class Base, class<br/>
-Derived&gt;<br/>
-struct is_base_of;</tt></td>
-<td><tt>Base</tt> is a base class of<br/>
-<tt>Derived</tt> (10) without<br/>
-regard to cv-qualifiers<br/>
-or <tt>Base</tt> and <tt>Derived</tt><br/>
-are not unions and<br/>
-name the same class<br/>
-type without regard to<br/>
-cv-qualifiers</td>
-<td>If <tt>Base</tt> and <tt>Derived</tt> are<br/>
-<ins>non&#x2011;union</ins> class types<br/>
-and are different types<br/>
-(ignoring possible cv-qualifiers)<br/>
-then <tt>Derived</tt> shall be a complete<br/>
-type. [ <i>Note</i>: Base classes that<br/>
-are private, protected, or<br/>
-ambigious are, nonetheless, base<br/>
-classes. &mdash; <i>end note</i> ]</td>
-</tr>
-
-<tr>
-<td colspan="3" style="text-align:center;">...</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2016"></a>2016. <tt>Allocators</tt> must be no-throw <i>swappable</i></h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-11-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the Batavia meeting it turned out that there is a definition
-hole for types satisfying the <tt>Allocators</tt> requirements: The problem
-became obvious when it was discussed whether all <tt>swap</tt> functions 
-of <tt>Containers</tt> with internal data handles can be safely tagged
-with <tt>noexcept</tt> or not. While it is correct that the implicit
-<tt>swap</tt> function of an allocator is required to be a no-throw
-operation (because move/copy-constructors and assignment operators are
-required to be no-throw functions), there are no such requirements
-for specialized <tt>swap</tt> overloads for a particular allocator.
-<p/>
-But this requirement is essential because the <tt>Containers</tt> are
-required to support <i>swappable</i> <tt>Allocators</tt>, when the value
-<tt>allocator_traits&lt;&gt;::propagate_on_container_swap</tt> evaluates
-to <tt>true</tt>.
-</p>
-<p><i>[2011-02-10 Alberto, Daniel, and Pablo collaborated on the proposed wording]</i></p>
-
-<p>
-The proposed resolution (based on N3225) attempts to solve the following problems:
-</p>
-<ol>
-<li>Table 44 &mdash; Allocator requirements, expression rows 
-<tt>X::propagate_on_container_copy_assignment</tt>, <tt>X::propagate_on_container_move_assignment</tt>, and
-<tt>X::propagate_on_container_swap</tt> only describe operations, but no requirements. In fact, if and only
-if these compile-time predicates evaluate to <tt>true</tt>, the <em>additional</em> requirements
-<tt>CopyAssignable</tt>,  no-throw <tt>MoveAssignable</tt>, and no-throw lvalue <tt>Swappable</tt>, 
-respectively, are imposed on the allocator types.</li>
-<li>23.2.1 [container.requirements.general] p. 9 misses to refer to the correct swap conditions: The current wording does not relate to
-17.6.3.2 [swappable.requirements] as it should and omits to mention that lvalues shall be swapped. Additional there is one
-situation described twice in p. 8 and p. 9 (undefined behaviour unless <tt>a.get_allocator() == b.get_allocator()</tt>
-or <tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_swap::value == true</tt>), which should be cleaned up.</li>
-</ol>
-
-<p><i>[2011-04-08 Pablo comments]</i></p>
-
-<p>
-I'm implementing a version of list now and I actually do find it impossible to write an exception-safe assignment 
-operator unless I can assume that allocator assignment does not throw.  (The problem is that I use a sentinel node 
-and I need to allocate a new sentinel using the new allocator without destroying the old one -- then swap the 
-allocator and sentinel pointer in atomically, without risk of an exception leaving one inconsistent with the other.
-<p/>
-Please update the proposed resolution to add the nothrow requirement to copy-assignment.
-</p>
-
-<p><i>[2014-02-14 Issaquah: Move to Ready]</i></p>
-
-<p>
-Fix a couple of grammar issues related to calling <tt>swap</tt> and move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Adapt the following three rows from Table 44 &mdash; Allocator requirements:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 44 &mdash; Allocator requirements</caption>
-<tr>
-<th>
-Expression
-</th>
-
-<th>
-Return type
-</th>
-
-<th>
-Assertion/note<br/>pre-/post-condition
-</th>
-
-<th>
-Default
-</th>
-
-</tr>
-
-<tr>
-<td><tt>X::propagate_on_container_copy_assignment</tt></td>
-
-<td>Identical to or derived from <tt>true_type</tt><br/>
-or <tt>false_type</tt></td>
-
-<td><tt>true_type</tt> only if an allocator of type <tt>X</tt> should be copied<br/> 
-when the client container is copy-assigned. <ins>See Note B, below.</ins></td>
-
-<td><tt>false_type</tt></td>
-</tr>
-
-<tr>
-<td><tt>X::propagate_on_container_move_assignment</tt></td>
-
-<td>Identical to or derived from <tt>true_type</tt><br/>
-or <tt>false_type</tt></td>
-
-<td><tt>true_type</tt> only if an allocator of type <tt>X</tt> should be moved<br/>
-when the client container is move-assigned. <ins>See Note B, below.</ins></td>
-
-<td><tt>false_type</tt></td>
-</tr>
-
-<tr>
-<td><tt>X::propagate_on_container_swap</tt></td>
-
-<td>Identical to or derived from <tt>true_type</tt><br/>
-or <tt>false_type</tt></td>
-
-<td><tt>true_type</tt> only if an allocator of type <tt>X</tt> should be swapped<br/>
-when the client container is swapped. <ins>See Note B, below.</ins></td>
-
-<td><tt>false_type</tt></td>
-</tr>
-
-</table>
-</blockquote>
-
-
-</li>
-
-<li>
-<p>Following 17.6.3.5 [allocator.requirements] p. 3 insert a new normative paragraph:</p>
-
-<blockquote><p>
-<ins>Note B: If <tt>X::propagate_on_container_copy_assignment::value</tt> is true, <tt>X</tt> shall 
-satisfy the <tt>CopyAssignable</tt> requirements (Table 39  [copyassignable]) and the copy 
-operation shall not throw exceptions. If <tt>X::propagate_on_container_move_assignment::value</tt> is 
-true, <tt>X</tt> shall satisfy the <tt>MoveAssignable</tt> requirements (Table 38  [moveassignable]) 
-and the move operation shall not throw exceptions. If <tt>X::propagate_on_container_swap::value</tt> is 
-true, lvalues of <tt>X</tt> shall be swappable (17.6.3.2 [swappable.requirements]) and the <tt>swap</tt> 
-operation shall not throw exceptions.</ins>
-</p></blockquote>
-</li>
-
-<li>
-<p>Modify 23.2.1 [container.requirements.general] p. 8 and p. 9 as indicated:</p>
-
-<blockquote><p>
-8 - [..] The allocator may be replaced only via assignment or <tt>swap()</tt>. Allocator replacement is 
-performed by copy assignment, move assignment, or swapping of the allocator only if 
-<tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_copy_assignment::value</tt>,
-<tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_move_assignment::value</tt>, 
-or <tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_swap::value</tt> is true 
-within the implementation of the corresponding container operation. <del>The behavior of a call to 
-a container's <tt>swap</tt> function is undefined unless the objects being swapped have allocators that compare 
-equal or <tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_swap::value</tt> is true</del>. In all 
-container types defined in this Clause, the member <tt>get_allocator()</tt> returns a copy of the allocator 
-used to construct the container or, if that allocator has been replaced, a copy of the most recent replacement.
-<p/>
-9 - The expression <tt>a.swap(b)</tt>, for containers <tt>a</tt> and <tt>b</tt> of a standard container type 
-other than <tt>array</tt>, shall exchange the values of <tt>a</tt> and <tt>b</tt> without invoking any move, 
-copy, or swap operations on the individual container elements. <ins>Lvalues of a</ins><del>A</del>ny <tt>Compare</tt>, 
-<tt>Pred</tt>, or <tt>Hash</tt> <del>objects</del><ins>types</ins> belonging to <tt>a</tt> and <tt>b</tt> shall be swappable 
-and shall be exchanged by <del>unqualified calls to non-member</del> <ins>calling</ins> <tt>swap</tt> 
-<ins>as described in 17.6.3.2 [swappable.requirements]</ins>. If <tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_swap::value</tt> 
-is <tt>true</tt>, then <ins>lvalues of <tt>allocator_type</tt> shall be swappable and</ins> the allocators of <tt>a</tt> and 
-<tt>b</tt> shall also be exchanged <del>using an unqualified call to non-member</del><ins>by calling</ins>
-<tt>swap</tt> <ins>as described in 17.6.3.2 [swappable.requirements]</ins>. Otherwise, 
-<del>they</del><ins>the allocators</ins> shall not be swapped, and the behavior is undefined unless
-<tt>a.get_allocator() == b.get_allocator()</tt>. Every iterator referring to an element in one container before
-the swap shall refer to the same element in the other container after the swap. It is unspecified whether an
-iterator with value <tt>a.end()</tt> before the swap will have value <tt>b.end()</tt> after the swap.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2017"></a>2017. <tt>std::reference_wrapper</tt> makes incorrect usage of <tt>std::result_of</tt></h3>
-<p><b>Section:</b> 20.9.4 [refwrap] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2010-11-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#refwrap">issues</a> in [refwrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>std::reference_wrapper</tt>'s function call operator uses <em>wrong</em>
-type encoding for rvalue-arguments. An rvalue-argument of type <tt>T</tt> must
-be encoded as <tt>T&amp;&amp;</tt>, not as just <tt>T</tt>.
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-#include &lt;iostream&gt;
-#include &lt;string&gt;
-#include &lt;type_traits&gt;
-#include &lt;utility&gt;
-
-template &lt;class F, class... Types&gt;
-     typename std::result_of&lt;F (Types...)&gt;::type
-         f1(F f, Types&amp;&amp;... params)
-{
-     return f(std::forward&lt;Types...&gt;(params...));
-}
-
-template &lt;class F, class... Types&gt;
-     typename std::result_of&lt;F (Types<b>&amp;&amp;</b>...)&gt;::type
-         f2(F f, Types&amp;&amp;... params)
-{
-     return f(std::forward&lt;Types...&gt;(params...));
-}
-
-struct Functor
-{
-     template &lt;class T&gt;
-         T&amp;&amp; operator()(T&amp;&amp; t) const
-     {
-         return static_cast&lt;T&amp;&amp;&gt;(t);
-     }
-};
-
-int main()
-{
-     typedef std::string const Str;
-     std::cout &lt;&lt; f1(Functor(), Str("1")) &lt;&lt; std::endl; // (1)
-     std::cout &lt;&lt; f2(Functor(), Str("2")) &lt;&lt; std::endl; // (2)
-}
-</pre></blockquote>
-<p>
-Lets consider the function template <tt>f1</tt> (which is similar to
-<tt>std::reference_wrapper</tt>'s function call operator). In the invocation
-(1) <tt>F</tt> is deduced as '<tt>Functor</tt>' and <tt>Types</tt> is deduced as type sequence
-which consists of one type '<tt>std::string const</tt>'. After the substitution
-we have the following equivalent:
-</p>
-<blockquote><pre>
-template &lt;&gt;
-    std::result_of&lt;F (std::string const)&gt;::type
-        f1&lt;Functor, std::string const&gt;(Functor f, std::string const &amp;&amp; params)
-{
-    return f(std::forward&lt;const std::string&gt;(params));
-}
-</pre></blockquote>
-<p>
-The top-level <i>cv</i>-qualifier in the parameter type of '<tt>F (std::string const)</tt>' is removed, so we have
-</p>
-<blockquote><pre>
-template &lt;&gt;
-    std::result_of&lt;F (std::string)&gt;::type
-        f1&lt;Functor, std::string const&gt;(Functor f, std::string const &amp;&amp; params)
-{
-    return f(std::forward&lt;const std::string&gt;(params));
-}
-</pre></blockquote>
-<p>
-Let <tt>r</tt> be an rvalue of type '<tt>std::string</tt>' and <tt>cr</tt> be an rvalue of type
-'<tt>std::string const</tt>'. The expression <tt>Str("1")</tt> is <tt>cr</tt>. The corresponding
-return type for the invocation
-</p>
-<blockquote><pre>
-Functor().operator()(r)
-</pre></blockquote>
-<p>
-is '<tt>std::string &amp;&amp;</tt>'. The corresponding return type for the invocation
-</p>
-<blockquote><pre>
-Functor().operator()(cr)
-</pre></blockquote>
-<p>
-is '<tt>std::string const &amp;&amp;</tt>'.
-<p/>
-<tt>std::result_of&lt;Functor (std::string)&gt;::type</tt> is the same type as the
-corresponding return type for the invocation <tt>Functor().operator()(r)</tt>,
-i.e. it is '<tt>std::string &amp;&amp;</tt>'. As a consequence, we have wrong reference
-binding in the return statement in <tt>f1</tt>.
-<p/>
-Now lets consider the invocation (2) of the function template <tt>f2</tt>. When
-the template arguments are substituted we have the following equivalent:
-</p>
-<blockquote><pre>
-template &lt;&gt;
-    std::result_of&lt;F (std::string const &amp;&amp;)&gt;::type
-        f2&lt;Functor, std::string const&gt;(Functor f, std::string const &amp;&amp; params)
-{
-    return f(std::forward&lt;const std::string&gt;(params));
-}
-</pre></blockquote>
-<p>
-<tt>std::result_of&lt;F (std::string const &amp;&amp;)&gt;::type</tt> is the same type as
-'<tt>std::string const &amp;&amp;</tt>'. This is correct result.
-</p>
-<p><i>[
-2010-12-07 Jonathan Wakely comments and suggests a proposed resolution
-]</i></p>
-
-
-<p>
-I agree with the analysis and I think this is a defect in the
-standard, it would be a shame if it can't be fixed.
-<p/>
-In the following example one would expect <tt>f(Str("1"))</tt> and
-<tt>std::ref(f)(Str("2"))</tt> to be equivalent but the current wording makes
-the invocation through <tt>reference_wrapper</tt> ill-formed:
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-#include &lt;string&gt;
-
-struct Functor
-{
-   template &lt;class T&gt;
-       T&amp;&amp; operator()(T&amp;&amp; t) const
-       {
-           return static_cast&lt;T&amp;&amp;&gt;(t);
-       }
-};
-
-int main()
-{
-   typedef std::string const Str;
-   Functor f;
-   f( Str("1") );
-   std::ref(f)( Str("2") );  // error
-}
-</pre></blockquote>
-
-<p><i>[
-2010-12-07 Daniel comments and refines the proposed resolution
-]</i></p>
-
-
-<p>
-There is one further defect in the usage of <tt>result_of</tt> within
-<tt>reference_wrapper</tt>'s function call operator: According to 20.9.4.4 [refwrap.invoke] p. 1
-the invokable entity of type <tt>T</tt> is provided as lvalue, but 
-<tt>result_of</tt> is fed as if it were an rvalue. This does not only lead to
-potentially incorrect result types, but it will also have the effect that
-we could never use the function call operator with a function type,
-because the type encoding used in <tt>result_of</tt> would form an invalid
-function type return a function type. The following program demonstrates
-this problem:
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-
-void foo(int) {}
-
-int main()
-{
-   std::ref(foo)(0);  // error
-}
-</pre></blockquote><p>
-The correct solution is to ensure that <tt>T</tt> becomes <tt>T&amp;</tt>
-within <tt>result_of</tt>, which solves both problems at once.
-</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Change the synopsis in 20.9.4 [refwrap] paragraph 1:
-</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; class reference_wrapper
-  {
-  public :
-    [...]
-    // invocation
-    template &lt;class... ArgTypes&gt;
-    typename result_of&lt;T<ins>&amp;</ins>(ArgTypes<ins>&amp;&amp;</ins>...)&gt;::type
-    operator() (ArgTypes&amp;&amp;...) const;
-  };
-}
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Change the signature in 20.9.4.4 [refwrap.invoke] before paragraph 1
-</p>
-
-<blockquote><pre>
-template &lt;class... ArgTypes&gt;
-typename result_of&lt;T<ins>&amp;</ins>(ArgTypes<ins>&amp;&amp;</ins>... )&gt;::type
-operator()(ArgTypes&amp;&amp;... args) const;
-</pre><blockquote><p>
-1 <i>Returns</i>: <tt>INVOKE(get(), std::forward&lt;ArgTypes&gt;(args)...)</tt>. (20.8.2)
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2018"></a>2018. [CD] <tt>regex_traits::isctype</tt> Returns clause is wrong</h3>
-<p><b>Section:</b> 28.7 [re.traits] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2010-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.traits">issues</a> in [re.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses GB 10</b></p>
-
-<p>28.7 [re.traits] p. 12 says:</p>
-
-<blockquote><p>
-returns true if <tt>f</tt> bitwise or&#39;ed with the result of calling
-<tt>lookup_classname</tt> with an iterator pair that designates the character
-sequence &quot;w&quot; is not equal to <tt>0</tt> and <tt>c == '_'</tt>
-</p></blockquote>
-
-<p>
-If the bitmask value corresponding to &quot;w&quot; has a non-zero value (which
-it must do) then the bitwise or with any value is also non-zero, and
-so <tt>isctype('_', f)</tt> returns true for any <tt>f</tt>. Obviously this is wrong,
-since <tt>'_'</tt> is not in every <tt>ctype</tt> category.
-</p>
-
-<p>
-There&#39;s a similar problem with the following phrases discussing the
-&quot;blank&quot; char class.
-</p>
-
-<p><i>[2011-05-06: Jonathan Wakely comments and provides suggested wording]</i></p>
-
-
-<p>
-DR <a href="lwg-defects.html#2019">2019</a> added <tt>isblank</tt> support to <tt>&lt;locale&gt;</tt> which simplifies the
-definition of <tt>regex_traits::isctype</tt> by removing the special case for the "blank" class.
-<p/>
-My suggestion for 2018 is to add a new table replacing the lists of
-recognized names in the Remarks clause of <tt>regex_traits::lookup_classname</tt>. 
-I then refer to that table in the Returns clause of <tt>regex_traits::isctype</tt> 
-to expand on the "in an unspecified manner" wording which is too vague. The conversion 
-can now be described using the "is set" term defined by 17.5.2.1.3 [bitmask.types] and
-the new table to convey the intented relationship between e.g.
-[[:digit:]] and <tt>ctype_base::digit</tt>, which is not actually stated in the
-FDIS.
-<p/>
-The effects of <tt>isctype</tt> can then most easily be described in code,
-given an "exposition only" function prototype to do the not-quite-so-unspecified conversion 
-from <tt>char_class_type</tt> to <tt>ctype_base::mask</tt>.
-<p/>
-The core of LWG 2018 is the "bitwise or'ed" wording which gives the
-wrong result, always evaluating to true for all values of <tt>f</tt>. That is
-replaced by the condition <tt>(f&amp;x) == x</tt> where <tt>x</tt> is the result of calling
-<tt>lookup_classname</tt> with "w".  I believe that's necessary, because the
-"w" class could be implemented by an internal "underscore" class i.e.
-<tt>x = _Alnum|_Underscore</tt> in which case <tt>(f&amp;x) != 0</tt> would give the wrong
-result when <tt>f==_Alnum</tt>.
-<p/>
-The proposed resolution also makes use of <tt>ctype::widen</tt> which addresses
-the problem that the current wording only talks about "w" and '_' which assumes 
-<tt>charT</tt> is char.  There's still room for improvement here:
-the regex grammar in 28.13 [re.grammar] says that the class names in the
-table should always be recognized, implying that e.g. U"digit" should
-be recognized by <tt>regex_traits&lt;char32_t&gt;</tt>, but the specification of
-<tt>regex_traits::lookup_classname</tt> doesn't cover that, only mentioning
-<tt>char</tt> and <tt>wchar_t</tt>.  Maybe the table should not distinguish narrow and
-wide strings, but should just have one column and add wording to say
-that <tt>regex_traits</tt> widens the name as if by using <tt>use_facet&lt;ctype&lt;charT&gt;&gt;::widen()</tt>.
-<p/>
-Another possible improvement would be to allow additional
-implementation-defined extensions in <tt>isctype</tt>. An implementation is
-allowed to support additional class names in <tt>lookup_classname</tt>, e.g.
-[[:octdigit:]] for [0-7] or [[:bindigit:]] for [01], but the current
-definition of isctype provides no way to use them unless <tt>ctype_base::mask</tt> 
-also supports them.
-</p>
-
-<p><i>[2011-05-10: Alberto and Daniel perform minor fixes in the P&#47;R]</i></p>
-
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Consensus that this looks to be a correct solution, and the presentation as a table is a big improvement.
-</p>
-
-<p>
-Concern that the middle section wording is a little muddled and confusing, Stefanus volunteered to reword.
-</p>
-
-<p><i>[
-2013-09 Chicago
-]</i></p>
-
-
-<p>
-Stefanus provides improved wording (replaced below)
-</p>
-
-<p><i>[
-2013-09 Chicago
-]</i></p>
-
-
-<p>
-Move as Immediate after reviewing Stefanus's revised wording, apply the new wording to the Working Paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Modify 28.7 [re.traits] p. 10 as indicated:</p>
-<blockquote><pre>
-template &lt;class ForwardIterator&gt;
-  char_class_type lookup_classname(
-    ForwardIterator first, ForwardIterator last, bool icase = false) const;
-</pre><blockquote><p>
--9- <i>Returns</i>: an unspecified value that represents the character classification named by the character
-sequence designated by the iterator range [<tt>first</tt>,<tt>last</tt>). If the parameter <tt>icase</tt> is true then the
-returned mask identifies the character classification without regard to the case of the characters being
-matched, otherwise it does honor the case of the characters being matched.(footnote 335) The value returned shall
-be independent of the case of the characters in the character sequence. If the name is not recognized
-then returns a value that compares equal to <tt>0</tt>.
-<p/>
--10- <i>Remarks</i>: For <tt>regex_traits&lt;char&gt;</tt>, at least the <del>names "d", "w", "s", "alnum", "alpha", "blank",
-"cntrl", "digit", "graph", "lower", "print", "punct", "space", "upper" and "xdigit"</del><ins>narrow character
-names in Table X</ins> shall be recognized. For <tt>regex_traits&lt;wchar_t&gt;</tt>, at least the <del>names L"d", L"w", 
-L"s", L"alnum", L"alpha", L"blank", L"cntrl", L"digit", L"graph", L"lower", L"print", L"punct", L"space", L"upper" and 
-L"xdigit"</del><ins>wide character names in Table X</ins> shall be recognized.
-</p></blockquote></blockquote>
-</li>
-
-<li><p>Modify 28.7 [re.traits] p. 12 as indicated:</p>
-<blockquote><pre>
-bool isctype(charT c, char_class_type f) const;
-</pre><blockquote><p>
--11- <i>Effects</i>: Determines if the character <tt>c</tt> is a member of the character classification represented by <tt>f</tt>.
-<p/>
--12- <i>Returns</i>: <del>Converts <tt>f</tt> into a value <tt>m</tt> of type <tt>std::ctype_base::mask</tt> in an 
- unspecified manner, and returns true if <tt>use_facet&lt;ctype&lt;charT&gt; &gt;(getloc()).is(m, c)</tt> is true. Otherwise 
- returns true if <tt>f</tt> bitwise or'ed with the result of calling <tt>lookup_classname</tt> with an iterator pair that 
- designates the character sequence "w" is not equal to <tt>0</tt> and <tt>c == '_'</tt>, or if <tt>f</tt> bitwise or'ed 
- with the result of calling <tt>lookup_classname</tt> with an iterator pair that designates the character sequence "blank" 
- is not equal to <tt>0</tt> and <tt>c</tt> is one of an implementation-defined subset of the characters for 
- which <tt>isspace(c, getloc())</tt> returns true, otherwise returns false.</del>
-<ins>Given an exposition-only function prototype</ins></p>
-<blockquote><pre>
-<ins style="text-decoration: none">
-  template&lt;class C&gt;
-   ctype_base::mask convert(typename regex_traits&lt;C&gt;::char_class_type f);
-</ins>
-</pre></blockquote>
-<p>
-<ins>that returns a value in which each <tt>ctype_base::mask</tt> value corresponding to a value in <tt>f</tt> named in Table <i>X</i> is set,
-then the result is determined as if by:</ins>
-</p>
-<blockquote><pre>
-<ins style="text-decoration: none">
-ctype_base::mask m = convert&lt;charT&gt;(f);
-const ctype&lt;charT&gt;&amp; ct = use_facet&lt;ctype&lt;charT&gt;&gt;(getloc());
-if (ct.is(m, c)) {
-  return true;
-} else if (c == ct.widen('_')) {
-  charT w[1] = { ct.widen('w') };
-  char_class_type x = lookup_classname(w, w+1);
-  
-  return (f&amp;x) == x;
-} else {
-  return false;
-} 
-</ins>
-</pre></blockquote>
-<p><ins>[<i>Example</i>:</ins></p>
-
-<blockquote><pre><ins style="text-decoration: none">
-regex_traits&lt;char&gt; t;
-string d("d");
-string u("upper");
-regex_traits&lt;char&gt;::char_class_type f;
-f = t.lookup_classname(d.begin(), d.end());
-f |= t.lookup_classname(u.begin(), u.end());
-ctype_base::mask m = convert&lt;char&gt;(f); // m == ctype_base::digit|ctype_base::upper
-</ins></pre></blockquote>
-<p><ins>&mdash; <i>end example</i>]</ins></p>
-<p><ins>[<i>Example</i>:</ins></p>
-<blockquote><pre><ins style="text-decoration: none">
-regex_traits&lt;char&gt; t;
-string w("w");
-regex_traits&lt;char&gt;::char_class_type f;
-f = t.lookup_classname(w.begin(), w.end());
-t.isctype('A', f); // returns true
-t.isctype('_', f); // returns true
-t.isctype(' ', f); // returns false
-</ins></pre></blockquote>
-<p><ins>&mdash; <i>end example</i>]</ins></p>
-</blockquote></blockquote>
-</li>
-
-<li><p>At the end of 28.7 [re.traits] add a new "Table X &mdash; Character class names and corresponding ctype masks":</p>
-
-<blockquote>
-<table border="1">
-<caption>Table X &mdash; Character class names and corresponding ctype masks</caption>
-
-<tr>
-<th>Narrow character name</th>
-<th>Wide character name</th>
-<th>Corresponding <tt>ctype_base::mask</tt> value</th>
-</tr>
- 
-<tr>
-<td><tt>"alnum"</tt></td>
-<td><tt>L"alnum"</tt></td>
-<td><tt>ctype_base::alnum</tt></td>
-</tr>
-
-<tr>
-<td><tt>"alpha"</tt></td>
-<td><tt>L"alpha"</tt></td>
-<td><tt>ctype_base::alpha</tt></td>
-</tr>
-
-<tr>
-<td><tt>"blank"</tt></td>
-<td><tt>L"blank"</tt></td>
-<td><tt>ctype_base::blank</tt></td>
-</tr>
-
-<tr>
-<td><tt>"cntrl"</tt></td>
-<td><tt>L"cntrl"</tt></td>
-<td><tt>ctype_base::cntrl</tt></td>
-</tr>
-
-<tr>
-<td><tt>"digit"</tt></td>
-<td><tt>L"digit"</tt></td>
-<td><tt>ctype_base::digit</tt></td>
-</tr>
-
-<tr>
-<td><tt>"d"</tt></td>
-<td><tt>L"d"</tt></td>
-<td><tt>ctype_base::digit</tt></td>
-</tr>
-
-<tr>
-<td><tt>"graph"</tt></td>
-<td><tt>L"graph"</tt></td>
-<td><tt>ctype_base::graph</tt></td>
-</tr>
-
-<tr>
-<td><tt>"lower"</tt></td>
-<td><tt>L"lower"</tt></td>
-<td><tt>ctype_base::lower</tt></td>
-</tr>
-
-<tr>
-<td><tt>"print"</tt></td>
-<td><tt>L"print"</tt></td>
-<td><tt>ctype_base::print</tt></td>
-</tr>
-
-<tr>
-<td><tt>"punct"</tt></td>
-<td><tt>L"punct"</tt></td>
-<td><tt>ctype_base::punct</tt></td>
-</tr>
-
-<tr>
-<td><tt>"space"</tt></td>
-<td><tt>L"space"</tt></td>
-<td><tt>ctype_base::space</tt></td>
-</tr>
-
-<tr>
-<td><tt>"s"</tt></td>
-<td><tt>L"s"</tt></td>
-<td><tt>ctype_base::space</tt></td>
-</tr>
-
-<tr>
-<td><tt>"upper"</tt></td>
-<td><tt>L"upper"</tt></td>
-<td><tt>ctype_base::upper</tt></td>
-</tr>
-
-<tr>
-<td><tt>"w"</tt></td>
-<td><tt>L"w"</tt></td>
-<td><tt>ctype_base::alnum</tt></td>
-</tr>
-
-<tr>
-<td><tt>"xdigit"</tt></td>
-<td><tt>L"xdigit"</tt></td>
-<td><tt>ctype_base::xdigit</tt></td>
-</tr>
-
-</table>
-</blockquote> 
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2019"></a>2019. <tt>isblank</tt> not supported by <tt>std::locale</tt></h3>
-<p><b>Section:</b> 22.3.3.1 [classification] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2010-11-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>C99 added <tt>isblank</tt> and <tt>iswblank</tt> to <tt>&lt;locale.h&gt;</tt> but <tt>&lt;locale&gt;</tt> does not
-provide any equivalent.</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 6 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Add to 22.3.3.1 [classification] synopsis:</p>
-<blockquote><pre>
-template &lt;class charT&gt; bool isgraph (charT c, const locale&amp; loc);
-<ins>template &lt;class charT&gt; bool isblank (charT c, const locale&amp; loc);</ins>
-</pre></blockquote>
-
-<p>Add to 22.4.1 [category.ctype] synopsis:</p>
-
-<blockquote><pre>
-static const mask xdigit = 1 &lt;&lt; 8;
-<ins>static const mask blank = 1 &lt;&lt; 9;</ins>
-static const mask alnum = alpha | digit;
-static const mask graph = alnum | punct;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2020"></a>2020. Time utility arithmetic <tt>constexpr</tt> functions have invalid effects</h3>
-<p><b>Section:</b> 20.12.5.5 [time.duration.nonmember] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-12-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.nonmember">issues</a> in [time.duration.nonmember].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As of issue <a href="lwg-defects.html#1171">1171</a> several time-utility functions have been marked <tt>constexpr</tt>.
-Alas this was done without adapting the corresponding return elements, which has the effect that 
-none of current arithmetic functions of class template <tt>duration</tt> marked as <tt>constexpr</tt> 
-can ever be <tt>constexpr</tt> functions (which makes them ill-formed, no diagnostics required as 
-of recent core rules), because they invoke a non-constant expression, e.g. 20.12.5.5 [time.duration.nonmember]/2:
-</p>
-<blockquote><pre>
-template &lt;class Rep1, class Period1, class Rep2, class Period2>
-constexpr typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;{&gt;}::type
-operator+(const duration&lt;Rep1, Period1>&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-
-2 Returns: CD(lhs) += rhs.
-</pre></blockquote>
-<p>
-The real problem is, that we cannot defer to as-if rules here: The returns element
-specifies an indirect calling contract of a potentially user-defined function. This <em>cannot</em> be
-the <tt>+=</tt> assignment operator of such a user-defined type, but must be the corresponding
-immutable binary <tt>operator+</tt> (unless we require that <tt>+=</tt> shall be an immutable function
-which does not really makes sense).
-</p>
-<p><i>[2011-02-17 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-The suggested wording changes are against the working draft N3242. Additional to the normative wording
-changes some editorial fixes are suggested.
-</p>
-<ol>
-<li>
-<p>In 20.12.5.5 [time.duration.nonmember], change the following arithmetic function specifications as follows:</p>
-<blockquote><pre>
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-constexpr typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;<del>{</del>&gt;<del>}</del>::type
-operator+(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre><blockquote><p>
-2 <i>Returns</i>: <del><tt>CD(lhs) += rhs</tt></del><ins><tt>CD(CD(lhs).count() + CD(rhs).count())</tt></ins>.
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-constexpr typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;<del>{</del>&gt;<del>}</del>::type
-operator-(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre><blockquote><p>
-3 <i>Returns</i>: <del><tt>CD(lhs) -= rhs</tt></del><ins><tt>CD(CD(lhs).count() - CD(rhs).count())</tt></ins>.
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-constexpr duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-operator*(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre><blockquote><p>
-4 <i>Remarks</i>: This operator shall not participate in overload resolution unless <tt>Rep2</tt> is implicitly convertible
-to <tt>CR(Rep1, Rep2)</tt>.
-<p/>
-5 <i>Returns</i>: <del><tt>duration&lt;CR(Rep1, Rep2), Period&gt;(d) *= s</tt></del><ins><tt>CD(CD(d).count() * s)</tt></ins>.
-</p></blockquote></blockquote>
-
-<blockquote><p>
-<tt>[...]</tt>
-</p></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-constexpr duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-operator/(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre><blockquote><p>
-8 <i>Remarks</i>: This operator shall not participate in overload resolution unless <tt>Rep2</tt> is implicitly convertible
-to <tt>CR(Rep1, Rep2)</tt> and <tt>Rep2</tt> is not an instantiation of <tt>duration</tt>.
-<p/>
-9 <i>Returns</i>: <del><tt>duration&lt;CR(Rep1, Rep2), Period&gt;(d) &#47;= s</tt></del><ins><tt>CD(CD(d).count() &#47; s)</tt></ins>.
-</p></blockquote></blockquote>
-
-<blockquote><p>
-<tt>[...]</tt>
-</p></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period, class Rep2&gt;
-constexpr duration&lt;typename common_type&lt;Rep1, Rep2&gt;::type, Period&gt;
-operator%(const duration&lt;Rep1, Period&gt;&amp; d, const Rep2&amp; s);
-</pre><blockquote><p>
-11 <i>Remarks</i>: This operator shall not participate in overload resolution unless <tt>Rep2</tt> is implicitly convertible
-to <tt>CR(Rep1, Rep2)</tt> and <tt>Rep2</tt> is not an instantiation of <tt>duration</tt>.
-<p/>
-12 <i>Returns</i>: <del><tt>duration&lt;CR(Rep1, Rep2), Period&gt;(d) %= s</tt></del><ins><tt>CD(CD(d).count() % s)</tt></ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep1, class Period1, class Rep2, class Period2&gt;
-constexpr typename common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt;&gt;::type
-operator%(const duration&lt;Rep1, Period1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre><blockquote><p>
-13 Returns: <del><tt>common_type&lt;duration&lt;Rep1, Period1&gt;, duration&lt;Rep2, Period2&gt; &gt;::type(lhs) 
- %= rhs</tt></del><ins><tt>CD(CD(lhs).count() % CD(rhs).count())</tt></ins>.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2021"></a>2021. Further incorrect usages of <tt>result_of</tt></h3>
-<p><b>Section:</b> 20.9.10.3 [func.bind.bind], 30.6.1 [futures.overview], 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.bind.bind">issues</a> in [func.bind.bind].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#2017">2017</a> points out some incorrect usages of <tt>result_of</tt> in the
-declaration of the function call operator overload of <tt>reference_wrapper</tt>,
-but there are more such specification defects:
-</p>
-<ol>
-<li>According to 20.9.10.3 [func.bind.bind] p. 3: 
-<blockquote><p>
-[..] The effect of <tt>g(u1, u2, ..., uM)</tt> shall be <tt>INVOKE(fd, v1, v2, ..., vN, result_of&lt;FD cv (V1, V2, ..., VN)&gt;::type)</tt> [..]
-</p></blockquote>
-<p>
-but <tt>fd</tt> is defined as &quot;an lvalue of type <tt>FD</tt> constructed from <tt>std::forward&lt;F&gt;(f)</tt>&quot;. This means that
-the above usage must refer to <tt>result_of&lt;FD cv <strong>&amp;</strong> (V1, V2, ..., VN)&gt;</tt> instead.
-</p>
-</li>
-<li><p>
-Similar in 20.9.10.3 [func.bind.bind] p. 10 bullet 2 we have:
-</p>
-<blockquote><p>
-if the value of <tt>is_bind_expression&lt;TiD&gt;::value</tt> is true, the argument is <tt>tid(std::forward&lt;Uj&gt;(uj)...)</tt>
-and its type <tt>Vi</tt> is <tt>result_of&lt;TiD cv (Uj...)&gt;::type</tt>
-</p></blockquote>
-<p>
-Again, <tt>tid</tt> is defined as &quot;lvalue of type <tt>TiD</tt> constructed from <tt>std::forward&lt;Ti&gt;(ti)</tt>&quot;. This means that
-the above usage must refer to <tt>result_of&lt;TiD cv <strong>&amp;</strong> (Uj...)&gt;</tt> instead. We also have similar defect as in
-<a href="lwg-defects.html#2017">2017</a> in regard to the argument types, this leads us to the further corrected form 
-<tt>result_of&lt;TiD cv <strong>&amp;</strong> (Uj<strong>&amp;&amp;</strong>...)&gt;</tt>. This is not the end: Since the <tt>Vi</tt>
-are similar sensitive to the argument problem, the last part must say: 
-<p/>
-&quot;[..] its type <tt>Vi</tt> is <tt>result_of&lt;TiD cv <strong>&amp;</strong> (Uj<strong>&amp;&amp;</strong>...)&gt;::type <strong>&amp;&amp;</strong>&quot;</tt>
-<p/>
-(The bound arguments <tt>Vi</tt> can never be <tt>void</tt> types, therefore we don't need 
-to use the more defensive <tt>std::add_rvalue_reference</tt> type trait)
-</p>
-</li>
-<li><p>The function template <tt>async</tt> is declared as follows (the other overload has the same problem):</p>
-<blockquote><pre>
-template &lt;class F, class... Args&gt;
-future&lt;typename result_of&lt;F(Args...)&gt;::type&gt;
-async(F&amp;&amp; f, Args&amp;&amp;... args);
-</pre></blockquote><p>
-This usage has the some same problems as we have found in <tt>reference_wrapper</tt> (<a href="lwg-defects.html#2017">2017</a>) and more: According to
-the specification in 30.6.8 [futures.async] the effective result type is that of the call of
-</p><blockquote><pre>
-INVOKE(decay_copy(std::forward&lt;F&gt;(f)), decay_copy(std::forward&lt;Args&gt;(args))...)
-</pre></blockquote><p>
-First, <tt>decay_copy</tt> potentially modifies the effective types to <tt>decay&lt;F&gt;::type</tt> and <tt>decay&lt;Args&gt;::type...</tt>.
-Second, the current specification is not really clear, what the value category of callable type or the arguments shall be: According
-to the second bullet of 30.6.8 [futures.async] p. 3:
-</p>
-<blockquote><p>
-Invocation of the deferred function evaluates <tt>INVOKE(g, xyz)</tt> where <tt>g</tt> is the stored value of 
-<tt>decay_copy(std::forward&lt;F&gt;(f))</tt> and <tt>xyz</tt> is the stored copy of 
-<tt>decay_copy(std::forward&lt;Args&gt;(args))...</tt>.
-</p></blockquote><p>
-This seems to imply that lvalues are provided in contrast to the direct call expression of 30.6.8 [futures.async] p. 2
-which implies rvalues instead. The specification needs to be clarified.
-</p>
-</li>
-</ol>
-
-<p><i>[2011-06-13: Daniel comments and refines the proposed wording changes]</i></p>
-
-
-<p>The feedback obtained following message c++std-lib-30745  and follow-ups point to the intention, that 
-the implied provision of lvalues due to named variables in <tt>async</tt> should be provided as rvalues to support
-move-only types, but the functor type should be forwarded as lvalue in <tt>bind</tt>.
-<p/>
-If <tt>bind</tt> were newly invented, the value strategy could be improved, because now we have a preference of
-<i>ref</i> <tt>&amp;</tt> qualified function call operator overloads. But such a change seems to be too late now.
-User-code that needs to bind a callable object with an <i>ref</i> <tt>&amp;&amp;</tt> qualified function call
-operator (or conversion function to function pointer) needs to use a corresponding wrapper similar to <tt>reference_wrapper</tt>
-that forwards the reference as rvalue-reference instead.
-<p/>
-The wording has been adapted to honor these observations and to fit to FDIS numbering as well.
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-The suggested wording changes are against the FDIS.
-</p>
-<ol>
-<li>
-<p>Change 20.9.10.3 [func.bind.bind] p. 3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class F, class... BoundArgs&gt;
-  <i>unspecified</i> bind(F&amp;&amp; f, BoundArgs&amp;&amp;... bound_args);
-</pre><blockquote><p>
--2- <i>Requires</i>: <tt>is_constructible&lt;FD, F&gt;::value</tt> shall be true. For each <tt>Ti</tt> in <tt>BoundArgs</tt>, 
-<tt>is_constructible&lt;TiD, Ti&gt;::value</tt> shall be true. <tt><i>INVOKE</i>(fd, w1, w2, ..., wN)</tt> (20.8.2) shall 
-be a valid expression for some values <tt>w1</tt>, <tt>w2</tt>, ..., <tt>wN</tt>, where <tt>N == sizeof...(bound_args)</tt>.
-<p/>
--3- <i>Returns</i>: A forwarding call wrapper <tt>g</tt> with a weak result type (20.8.2). The effect of 
-<tt>g(u1, u2, ..., uM)</tt> shall be <tt>INVOKE(fd, <ins>std::forward&lt;V1&gt;(</ins>v1<ins>)</ins>, 
-<ins>std::forward&lt;V2&gt;(</ins>v2<ins>)</ins>, ..., <ins>std::forward&lt;VN&gt;(</ins>vN<ins>)</ins>, 
-result_of&lt;FD <i>cv</i> <ins>&amp;</ins> (V1, V2, ..., VN)&gt;::type)</tt>, where <i>cv</i> represents 
-the <i>cv</i>-qualifiers of <tt>g</tt> and the values and types of the bound arguments <tt>v1</tt>, 
-<tt>v2</tt>, ..., <tt>vN</tt> are determined as specified below. [&hellip;]
-</p></blockquote></blockquote>
-
-</li>
-
-<li>
-<p>Change 20.9.10.3 [func.bind.bind] p. 7 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class R, class F, class... BoundArgs&gt;
-   <i>unspecified</i> bind(F&amp;&amp; f, BoundArgs&amp;&amp;... bound_args);
-</pre><blockquote><p>
--6- <i>Requires</i>: <tt>is_constructible&lt;FD, F&gt;::value</tt> shall be true. For each <tt>Ti</tt> in <tt>BoundArgs</tt>, 
-<tt>is_constructible&lt;TiD, Ti&gt;::value</tt> shall be true. <tt><i>INVOKE</i>(fd, w1, w2, ..., wN)</tt> shall be a valid 
-expression for some values <tt>w1</tt>, <tt>w2</tt>, ..., <tt>wN</tt>, where <tt>N == sizeof...(bound_args)</tt>.
-<p/>
--7- <i>Returns</i>: A forwarding call wrapper <tt>g</tt> with a nested type <tt>result_type</tt> defined as a synonym for
-<tt>R</tt>. The effect of <tt>g(u1, u2, ..., uM)</tt> shall be <tt>INVOKE(fd, <ins>std::forward&lt;V1&gt;(</ins>v1<ins>)</ins>, 
-<ins>std::forward&lt;V2&gt;(</ins>v2<ins>)</ins>, ..., <ins>std::forward&lt;VN&gt;(</ins>vN<ins>)</ins>, R)</tt>, where 
-the values and types of the bound arguments <tt>v1</tt>, <tt>v2</tt>, ..., <tt>vN</tt> are determined as specified below. [&hellip;]
-</p></blockquote></blockquote>
-
-</li>
-
-<li>
-<p>Change 20.9.10.3 [func.bind.bind] p. 10 as indicated:</p>
-
-<blockquote><p>
--10- The values of the <i>bound arguments</i> <tt>v1</tt>, <tt>v2</tt>, ..., <tt>vN</tt> and their corresponding types <tt>V1</tt>, 
-<tt>V2</tt>, ..., <tt>VN</tt> depend on the types <tt>TiD</tt> derived from the call to bind and the <i>cv</i>-qualifiers 
-<i>cv</i> of the call wrapper <tt>g</tt> as follows:</p>
-<ul>
-<li>if <tt>TiD</tt> is <tt>reference_wrapper&lt;T&gt;</tt>, the argument is <tt>tid.get()</tt> and its type <tt>Vi</tt> 
-is <tt>T&amp;</tt>;</li>
-<li>if the value of <tt>is_bind_expression&lt;TiD&gt;::value</tt> is <tt>true</tt>, the argument is 
-<tt>tid(std::forward&lt;Uj&gt;(uj)...)</tt> and its type <tt>Vi</tt> is 
-<tt>result_of&lt;TiD <i>cv</i> <ins>&amp;</ins> (Uj<ins>&amp;&amp;</ins>...)&gt;::type<ins>&amp;&amp;</ins></tt>;</li>
-<li>if the value <tt>j</tt> of <tt>is_placeholder&lt;TiD&gt;::value</tt> is not zero, the argument is 
-<tt>std::forward&lt;Uj&gt;(uj)</tt> and its type <tt>Vi</tt> is <tt>Uj&amp;&amp;</tt>;</li>
-<li>otherwise, the value is <tt>tid</tt> and its type <tt>Vi</tt> is <tt>TiD <i>cv</i> &amp;</tt>.</li>
-</ul>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-This resolution assumes that the wording of 30.6.8 [futures.async] is intended to provide rvalues
-as arguments of <tt>INVOKE</tt>.
-</p>
-
-<p>
-Change the function signatures in header <tt>&lt;future&gt;</tt> synopsis 30.6.1 [futures.overview] p. 1
-and in 30.6.8 [futures.async] p. 1 as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class F, class... Args&gt;
-future&lt;typename result_of&lt;<ins>typename decay&lt;</ins>F<ins>&gt;::type</ins>(<ins>typename decay&lt;</ins>Args<ins>&gt;::type</ins>...)&gt;::type&gt;
-async(F&amp;&amp; f, Args&amp;&amp;... args);
-template &lt;class F, class... Args>
-future&lt;typename result_of&lt;<ins>typename decay&lt;</ins>F<ins>&gt;::type</ins>(<ins>typename decay&lt;</ins>Args<ins>&gt;::type</ins>...)&gt;::type&gt;
-async(launch policy, F&amp;&amp; f, Args&amp;&amp;... args);
-</pre></blockquote>
-</li>
-
-<li>
-<p>Change 30.6.8 [futures.async] as indicated: (Remark: There is also a tiny editorial correction 
-in p. 4 that completes one <tt>::</tt> scope specifier)
-</p>
-
-<blockquote><p>
--3- <i>Effects</i>: [&hellip;]
-</p>
-<ul>
-<li>[&hellip;]</li>
-<li>if <tt>policy &amp; launch::deferred</tt> is non-zero &mdash; Stores <tt><i>DECAY_COPY</i>(std::forward&lt;F&gt;(f))</tt> 
-and <tt><i>DECAY_COPY</i>(std::forward&lt;Args&gt;(args))...</tt> in the shared state. These copies of <tt>f</tt> and 
-<tt>args</tt> constitute a <i>deferred function</i>. Invocation of the deferred function evaluates 
-<tt><i>INVOKE</i>(<ins>std::move(</ins>g<ins>)</ins>, <ins>std::move(</ins>xyz<ins>)</ins>)</tt>
-where <tt>g</tt> is the stored value of <tt><i>DECAY_COPY</i>(std::forward&lt;F&gt;(f))</tt> and <tt>xyz</tt> is the 
-stored copy of <tt><i>DECAY_COPY</i>(std::forward&lt;Args&gt;(args))...</tt>. The shared state is not made ready 
-until the function has completed. The first call to a non-timed waiting function (30.6.4) on an asynchronous
-return object referring to this shared state shall invoke the deferred function in the thread that
-called the waiting function. Once evaluation of <tt><i>INVOKE</i>(<ins>std::move(</ins>g<ins>)</ins>, 
-<ins>std::move(</ins>xyz<ins>)</ins>)</tt> begins, the function is no longer considered deferred. [ <i>Note</i>: If 
-this policy is specified together with other policies, such as when using a <tt>policy</tt> value of 
-<tt>launch::async | launch::deferred</tt>, implementations should defer invocation or the selection of 
-the policy when no more concurrency can be effectively exploited. &mdash; <i>end note</i> ]</li>
-</ul>
-</blockquote>
-
-<blockquote><p>
--4- <i>Returns</i>: an object of type 
-<tt>future&lt;typename result_of&lt;<ins>typename decay&lt;</ins>F<ins>&gt;::type</ins>(<ins>typename decay&lt;</ins>Args<ins>&gt;::type</ins>...)&gt;:<ins>:</ins>type&gt;</tt> 
-that refers to the associated asynchronous state created by this call to <tt>async</tt>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2022"></a>2022. <tt>reference_wrapper&lt;T&gt;::result_type</tt> is underspecified</h3>
-<p><b>Section:</b> 20.9.4 [refwrap] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-12-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#refwrap">issues</a> in [refwrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#1295">1295</a> correctly removed function types and references to function types from the
-bullet 1 of 20.9.2 [func.require] p. 3 because neither function types nor function references
-satisfy the requirements for a target object which is <em>defined</em> to be an object of a callable 
-type. This has the effect that the reference in 20.9.4 [refwrap] p. 2
-</p>
-<blockquote><p>
-<tt>reference_wrapper</tt> has a weak result type (20.8.2).
-</p></blockquote>
-<p>
-is insufficient as a reference to define the member type <tt>result_type</tt> when the template argument 
-<tt>T</tt> is a function type.
-<p/>
-There are basically two approaches to solve the problem:
-</p>
-<ol>
-<li><p>Extend the definition of a <i>weak result type</i> in 20.9.2 [func.require] p. 3 to both
-function types and references thereof. This extension must be specified independend from the concept
-of a call wrapper, though.</p>
-</li>
-<li><p>Add one extra sentence to 20.9.4 [refwrap] p. 2 that simply defines the member type
-<tt>result_type</tt> for <tt>reference_wrapper&lt;T&gt;</tt>, when <tt>T</tt> is a function type.</p>
-</li>
-</ol>
-<p>
-I checked the current usages of <i>weak result type</i> to have a base to argue for one or the other
-approach. It turns out, that there is no further reference to this definition in regard to
-function types or references thereof. The only other reference can be found in 
-20.9.10.3 [func.bind.bind] p. 3, where <tt>g</tt> is required to be a class type.
-</p>
-
-<p><i>[2011-02-23 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-The suggested wording changes are against the working draft N3242.
-</p>
-
-<ol>
-<li>
-<p>Change 20.9.4 [refwrap] p. 2 as indicated:</p>
-
-<blockquote><p>
-2 <tt>reference_wrapper<ins>&lt;T&gt;</ins></tt> has a weak result type (20.8.2). <ins>If <tt>T</tt> is a function type, 
-<tt>result_type</tt> shall be a synonym for the return type of <tt>T</tt>.</ins>
-</p></blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2023"></a>2023. Incorrect requirements for <tt>lock_guard</tt> and <tt>unique_lock</tt></h3>
-<p><b>Section:</b> 30.4.2.1 [thread.lock.guard], 30.4.2.2 [thread.lock.unique] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-12-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are two different <tt>*Lockable</tt> requirements imposed on template arguments
-of the class template <tt>lock_guard</tt> as of 30.4.2.1 [thread.lock.guard] p. 1+2:
-</p>
-<blockquote><p>
-1 [..] The supplied <tt>Mutex</tt> type shall meet the <tt>BasicLockable</tt> requirements (30.2.5.2).
-</p></blockquote>
-
-<blockquote><p>
-2 The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> requirements (30.2.5.3).
-</p></blockquote>
-<p>
-The <tt>Lockable</tt> requirements include the availability of a member function <tt>try_lock()</tt>,
-but there is no operational semantics in the specification of <tt>lock_guard</tt> that would rely
-on such a function. It seems to me that paragraph 2 should be removed.
-<p/>
-Similarly, 30.4.2.2 [thread.lock.unique] p. 1+2 refer to exactly the same two requirements.
-In this case it seems as if the intention was that the template arguement <tt>Mutex</tt> should
-always provide the <tt>try_lock()</tt> member function, because several member functions of
-<tt>unique_lock</tt> (<tt>unique_lock(mutex_type&amp; m, try_to_lock_t)</tt> or <tt>bool try_lock()</tt>) 
-take advantage of such a function without adding extra requirements for this.
-It seems that the requirement subset <tt>BasicLockable</tt> should be removed.
-<p/>
-I searched for further possible misusages of the <tt>*Lockable</tt> requirements, but could not
-find any more.
-</p>
-
-<p><i>[2011-02-23]</i></p>
-
-
-<p>Howard suggests an alternative approach in regard to <tt>unique_lock</tt>: The current
-minimum requirements on its template argument should better be reduced to <tt>BasicLockable</tt> 
-instead of the current <tt>Lockable</tt>, including ammending member-wise constraints where required. 
-This suggestions was supported by Anthony, Daniel, and Pablo.
-<p/>
-Daniel drafts wording that follows this separation strategy.
-</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-<blockquote class="note">
-<p>
-The suggested wording changes are against the working draft N3242.
-</p>
-
-<ol>
-<li>
-<p>Remove 30.4.2.1 [thread.lock.guard] p. 2 completely:</p>
-
-<blockquote><p>
-<del>2 The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> requirements (30.2.5.3).</del>
-</p></blockquote>
-
-</li>
-
-<li>
-<p>Change 30.4.2.2 [thread.lock.unique] p. 1-3 as indicated. The intend is to make <tt>BasicLockable</tt>
-the fundamental requirement for <tt>unique_lock</tt>. We also update the note to reflect these changes and
-synchronize one remaining reference of 'mutex' by the proper term 'lockable object' in sync
-to the wording changes of <tt>lock_guard</tt>:</p>
-
-<blockquote><p>
-1 [..] The behavior of a program is undefined if the contained pointer <tt>pm</tt> is not null
-and the <del>mutex</del><ins>lockable object</ins> pointed to by <tt>pm</tt> does not exist for the entire remaining lifetime (3.8) 
-of the <tt>unique_lock</tt> object. The supplied <tt>Mutex</tt> type shall meet the 
-<tt>BasicLockable</tt> requirements (30.2.5.2). <del>[Editor's note:
-BasicLockable is redundant, since the following additional paragraph requires Lockable.]</del>
-</p></blockquote>
-
-<blockquote><p>
-<del>2 The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> requirements (30.2.5.3).</del>
-</p></blockquote>
-
-<blockquote><p>
-3 [ <i>Note</i>: <tt>unique_lock&lt;Mutex&gt;</tt> meets the <tt><ins>Basic</ins>Lockable</tt> requirements. If 
-<ins><tt>Mutex</tt> meets the <tt>Lockable</tt> requirements ([thread.req.lockable.req]), <tt>unique_lock&lt;Mutex&gt;</tt> 
-also meets the <tt>Lockable</tt> requirements and if</ins> <tt>Mutex</tt> meets the <tt>TimedLockable</tt> 
-requirements (30.2.5.4), <tt>unique_lock&lt;Mutex&gt;</tt> also meets the <tt>TimedLockable</tt> 
-requirements. &mdash; <i>end note</i> ]
-</p></blockquote>
-
-</li>
-
-<li><p>Modify 30.4.2.2.1 [thread.lock.unique.cons] to add the now necessary member-wise
-additional constraints for <tt>Lockable</tt>:</p>
-
-<blockquote><pre>
-unique_lock(mutex_type&amp; m, try_to_lock_t) noexcept;
-</pre><blockquote><p>
-8 <i>Requires</i>: <ins>The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> requirements ([thread.req.lockable.req]).</ins> 
-If <tt>mutex_type</tt> is not a recursive mutex the calling thread does not own the mutex.
-<p/>
-9 <i>Effects</i>: Constructs an object of type <tt>unique_lock</tt> and calls <tt>m.try_lock()</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li><p>Modify 30.4.2.2.2 [thread.lock.unique.locking] to add the now necessary member-wise
-additional constraints for <tt>Lockable</tt>:</p>
-
-<blockquote><pre>
-bool try_lock();
-</pre><blockquote><p>
-<ins>? <i>Requires</i>: The supplied <tt>Mutex</tt> type shall meet the <tt>Lockable</tt> requirements ([thread.req.lockable.req]).</ins> 
-<p/>
-4 <i>Effects</i>: <tt>pm-&gt;try_lock()</tt>
-</p></blockquote></blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="2024"></a>2024. Inconsistent implementation requirements for <tt>atomic&lt;<i>integral</i>&gt;</tt> and <tt>atomic&lt;T*&gt;</tt></h3>
-<p><b>Section:</b> 29.5 [atomics.types.generic] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-12-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.types.generic">active issues</a> in [atomics.types.generic].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.types.generic">issues</a> in [atomics.types.generic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Paragraph 5 and 6 of 29.5 [atomics.types.generic] impose different requirements on implementations for
-specializations of the <tt>atomic</tt> class template for integral types and for pointer types:
-</p>
-<blockquote><p>
-5 The atomic integral specializations and the specialization <tt>atomic&lt;bool&gt;</tt> shall have standard layout. 
-They shall each have a trivial default constructor and a trivial destructor. They shall each support aggregate
-initialization syntax.
-</p></blockquote>
-
-<blockquote><p>
-6 There are pointer partial specializations on the <tt>atomic</tt> class template. These specializations shall have 
-trivial default constructors and trivial destructors.
-</p></blockquote>
-
-<p>
-It looks like an oversight to me, that for pointer specializations the requirements for standard layout and
-support for aggregate initialization syntax are omitted. In fact, this been confirmed by the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3193.htm">N3193</a> proposal author. I suggest
-to impose the same implementation requirements for pointer types as for integral types, this should not impose 
-unrealistic requirements on implementations.
-</p>
-
-<p><i>[2011-02-10 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p>
-
-<blockquote class="note">
-<p>Proposed Resolution</p>
-<p>
-The suggested wording changes are against the working draft N3242.
-</p>
-
-<ol>
-<li>
-<p>Change 29.5 [atomics.types.generic] p. 6 as indicated:</p>
-
-<blockquote><p>
-6 There are pointer partial specializations on the <tt>atomic</tt> class template. These specializations shall have 
-<ins>standard layout,</ins> trivial default constructors<ins>,</ins> and trivial destructors. <ins> They shall each 
-support aggregate initialization syntax.</ins>
-</p></blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="2025"></a>2025. Incorrect semantics of move assignment operator of <tt>packaged_task</tt></h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2010-12-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to 30.6.9.1 [futures.task.members] p. 7 bullet 2:
-</p>
-<blockquote><pre>
-packaged_task&amp; operator=(packaged_task&amp;&amp; other);
-</pre><blockquote><p>
-7 <i>Effects</i>:<br/>
-</p>
-<ul>
-<li><p>[...]</p></li>
-<li><p><tt>packaged_task&lt;R, ArgTypes...&gt;(other).swap(*this)</tt>.</p></li>
-</ul>
-</blockquote></blockquote>
-<p>
-The argument <tt>other</tt> given to the move constructor is an lvalue and must be converted into 
-an rvalue via appropriate usage of <tt>std::move</tt>.
-</p>
-
-<blockquote class="note">
-<p>Proposed Resolution</p>
-<p>
-The suggested wording changes are against the working draft N3242.
-</p>
-
-<ol>
-<li>
-<p>Change  30.6.9.1 [futures.task.members] p. 7 bullet 2 as indicated:</p>
-
-<blockquote><pre>
-packaged_task&amp; operator=(packaged_task&amp;&amp; other);
-</pre><blockquote><p>
-7 <i>Effects</i>:<br/>
-</p>
-<ul>
-<li><p>[...]</p></li>
-<li><p><tt>packaged_task(<ins>std::move(</ins>other<ins>)</ins>).swap(*this)</tt>.</p></li>
-</ul>
-</blockquote></blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="2027"></a>2027. Initialization of the stored task of a <tt>packaged_task</tt></h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2011-02-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Related with LWG issue <a href="lwg-defects.html#1514">1514</a>.
-</p>
-
-<p>
-The move constructor of <tt>packaged_task</tt> does not specify how the stored task is constructed. 
-The obvious way is to move-construct it using the task stored in the argument. Moreover, the 
-constructor should be provided with a throws clause similar to one used for the other constructors, 
-as the move constructor of the stored task is not required to be nothrow.</p>
-
-<p>
-As for the other constructors, the terms "stores a copy of <tt>f</tt>" do not reflect the intent, which is 
-to allow <tt>f</tt> to be moved when possible.
-</p>
-
-<p><i>[2011-02-25: Alberto updates wording]</i></p>
-
-
-<p><i>[2011-02-26 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>(wording written assuming LWG <a href="lwg-defects.html#1514">1514</a> is also accepted)</p>
-
-<ol>
-<li>
-<p>Change 30.6.9.1 [futures.task.members] paragraph 3:</p>
-
-<blockquote><p>
-3 <em>Effects</em>: constructs a new <tt>packaged_task</tt> object with an associated asynchronous state and <del>stores a
-copy of <tt>f</tt> as the object's stored task</del><ins>initializes the object's stored task with <tt>std::forward&lt;F&gt;(f)</tt></ins>. 
-The constructors that take an <tt>Allocator</tt> argument use it to allocate memory needed to store the internal data structures.
-</p></blockquote>
-
-</li>
-
-<li>
-<p>Change 30.6.9.1 [futures.task.members] paragraph 5:</p>
-
-<blockquote><p>
-5 <em>Effects</em>: constructs a new <tt>packaged_task</tt> object and transfers ownership of <tt>other</tt>'s associated asynchronous
-state to <tt>*this</tt>, leaving <tt>other</tt> with no associated asynchronous state. <ins>Moves the stored task from <tt>other</tt> 
-to <tt>*this</tt>.</ins>
-</p></blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2028"></a>2028. <tt>messages_base::catalog</tt> overspecified</h3>
-<p><b>Section:</b> 22.4.7.1 [locale.messages] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-02-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 22.4.7.1 [locale.messages], <tt>messages_base::catalog</tt> is specified to be a typedef to <tt>int</tt>.  
-This type is subsequently used to open, access and close catalogs.
-</p>
-
-<p>
-However, an OS may have catalog/messaging services that are indexed and managed by types other than <tt>int</tt>.  
-For example <tt>POSIX</tt>, publishes the <a href="http://www.unix.org/single_unix_specification/">following messaging API</a>:
-</p>
-
-<blockquote><pre>
-typedef <em>unspecified</em> nl_catd;
-
-nl_catd catopen(const char* name , int oflag);
-char*   catgets(nl_catd catd, int set_id, int msg_id, const char* s);
-int     catclose(nl_catd catd);
-</pre></blockquote>
-
-<p>
-I.e., the catalog is managed with an unspecified type, not necessarily an <tt>int</tt>.  
-Mac OS uses a <tt>void*</tt> for <tt>nl_catd</tt> (which is conforming to the <tt>POSIX</tt> standard).  
-The current <tt>messages_base</tt> spec effectively outlaws using the built-in OS messaging service 
-supplied for this very purpose!
-</p>
-
-<p><i>[2011-02-24: Chris Jefferson updates the proposed wording, changing <i>unspecified</i> to <i>unspecified signed integral type</i>]</i></p>
-
-
-<p><i>[2011-03-02: Daniel updates the proposed wording, changing <i>unspecified signed integral type</i> to
- <i>unspecified signed integer type</i> (We don't want to allow for <tt>bool</tt> or <tt>char</tt>)]</i></p>
-
- 
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>
-Consensus that this resolution is the direction we would like to see.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>Modify 22.4.7.1 [locale.messages]:</p>
-
-<blockquote><pre>
-namespace std {
-  class messages_base {
-  public:
-    typedef <del>int</del><ins><em>unspecified signed integer type</em></ins> catalog;
-  };
-  ...
-}
-</pre></blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2029"></a>2029. Missing '<tt>noexcept</tt>' on <tt>basic_regex</tt> move-assignment operator</h3>
-<p><b>Section:</b> 28.8 [re.regex] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-02-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.regex">issues</a> in [re.regex].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3149.html">N3149</a> replaced 
-the "<tt>Throws: nothing</tt>" clause on <tt>basic_regex::assign(basic_regex&amp;&amp;)</tt> with 
-the <tt>noexcept</tt> keyword. The effects of the move-assignment operator are defined in terms of 
-the <tt>assign()</tt> function, so the "<tt>Throws: nothing</tt>" applied there too, and a
-<tt>noexcept</tt>-specification should be added there too.
-</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 7 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li>
-<p>Modify the <tt>basic_regex</tt> synopsis in 28.8 [re.regex] p. 3:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class charT,
-            class traits = regex_traits&lt;charT&gt; &gt;
-  class basic_regex {
-  public:
-    ...
-    basic_regex&amp; operator=(const basic_regex&amp;);
-    basic_regex&amp; operator=(basic_regex&amp;&amp;) <ins>noexcept</ins>;
-    basic_regex&amp; operator=(const charT* ptr);
-    ...
-  };
-}
-</pre></blockquote>
-
-</li>
-
-<li>
-<p>Modify 28.8.3 [re.regex.assign] p. 2:</p>
-
-<blockquote><pre>
-basic_regex&amp; operator=(basic_regex&amp;&amp; e) <ins>noexcept</ins>;
-</pre>
-<blockquote><p>
-2 <em>Effects</em>: returns <tt>assign(std::move(e))</tt>.
-</p></blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2030"></a>2030. <tt>packaged_task::result_type</tt> should be removed</h3>
-<p><b>Section:</b> 30.6.9 [futures.task] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2010-11-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task">issues</a> in [futures.task].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>packaged_task::operator()</tt> always returns <tt>void</tt>, regardless of the return
-type of the wrapped task. However, <tt>packaged_task::result_type</tt> is a
-typedef to the return type of the wrapped task. This is inconsistent
-with other uses of <tt>result_type</tt> in the standard, where it matches the
-return type of <tt>operator()</tt> (e.g. <tt>function</tt>, <tt>owner_less</tt>). This is confusing.
-</p>
-
-<p>
-It also violates the TR1 <tt>result_of</tt> protocol, and thus makes
-<tt>packaged_task</tt> harder to use with anything that respects that protocol.
-</p>
-
-<p>
-Finally, it is of little use anyway.
-</p>
-
-<p><tt>packaged_task::result_type</tt> should therefore be removed.</p>
-
-<p><i>[2011-02-24 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Alter the class definition of <tt>packaged_task</tt> in 30.6.9 [futures.task] p. 2 as follows:</p>
-<blockquote><pre>
-template&lt;class R, class... ArgTypes&gt;
-class packaged_task&lt;R(ArgTypes...)&gt; {
-public:
-  <del>typedef R result_type;</del>
-  [...]
-};
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2031"></a>2031. <tt>std::future&lt;&gt;::share()</tt> only applies to rvalues</h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2011-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As specified, <tt>future&lt;&gt;::share()</tt> has the signature
-</p>
-
-<blockquote><pre>
-shared_future&lt;R&gt; share() &amp;&amp;;
-</pre></blockquote>
-
-<p>
-This means that it can only be applied to rvalues. One of the key benefits of <tt>share()</tt> is 
-that it can be used with the new <tt>auto</tt> facility:
-</p>
-
-<blockquote><pre>
-std::promise&lt;<em>some_long_winded_type_name</em>&gt; some_promise;
-auto f = some_promise.get_future(); // std::future
-auto sf = std::move(f).share();
-</pre></blockquote>
-
-<p>
-<tt>share()</tt> is sufficiently explicit that the move should not be required. We should be able to write:
-</p>
-
-<blockquote><pre>
-auto sf = f.share();
-</pre></blockquote>
-
-<p><i>[2011-02-22 Reflector discussion]</i></p>
-
-<p>
-Moved to Tentatively Ready after 5 votes.
-</p> 
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Alter the declaration of <tt>share()</tt> to remove the "&amp;&amp;" rvalue qualifier in 
-30.6.6 [futures.unique_future] p. 3, and 30.6.6 [futures.unique_future] p. 11:</p>
-
-<blockquote><pre>
-shared_future&lt;R&gt; share() <del>&amp;&amp;</del>;
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2032"></a>2032. Incorrect synchronization clause of <tt>async</tt> function</h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2011-02-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Clause 30.6.8 [futures.async] has undergone significant rewording
-in Batavia. Due to co-presence of at least three different sources
-of modification there is a part where changes have overlapped
-(marked by an Editor's note), which should be reconciled. Moreover,
-I believe that a few non-overlapping sentences are now incorrect
-and should be fixed, so the problem cannot be handled editorially.
-(See c++std-lib-29667.)
-</p>
-
-<p><i>[Adopted in Madrid, 2011-03]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p> 
-Edit 30.6.4 [futures.state], paragraph 3 as follows.
-</p>
-
-<blockquote>
-<p>
-An <dfn>asynchronous return object</dfn>
-is an object that reads results from an associated asynchronous state.
-A <dfn>waiting function</dfn> of an asynchronous return object
-is one that potentially blocks
-to wait for the associated asynchronous state to be made ready.
-<ins>If a waiting function can return
-before the state is made ready because of a timeout (30.2.5),
-then it is a <dfn>timed waiting function</dfn>,
-otherwise it is a <dfn>non-timed waiting function</dfn>.</ins>
-</p>
-</blockquote>
-</li>
-
-<li>
-<p>
-Edit within 30.6.8 [futures.async] paragraph 3 bullet 2 as follows.
-</p>
-
-<blockquote>
-<p>
-<i>Effects:</i>
-[...]
-</p>
-<ul><li>if <code>policy &amp; launch::deferred</code> is non-zero &mdash; [...]
-The associated asynchronous state is not made ready
-until the function has completed.
-The first call to a <ins>non-timed waiting</ins> function
-<ins>(30.6.4 [futures.state])</ins>
-<del>requiring a non-timed wait</del>
-on an asynchronous return object
-referring to <del>the</del> <ins>this</ins>
-associated asynchronous state
-<del>created by this <code>async</code> call to become ready</del>
-shall invoke the deferred function
-in the thread that called the waiting function<del>;</del><ins>.</ins>
-<del>once</del> <ins>Once</ins> evaluation of
-<code><var>INVOKE</var>(g, xyz)</code> begins,
-the function is no longer considered deferred.
-[...]
-</li></ul>
-</blockquote>
-</li>
-
-<li>
-<p>
-Edit 30.6.8 [futures.async] paragraph 5 as follows.
-</p>
-
-<blockquote>
-<p>
-<i>Synchronization:</i>
-Regardless of the provided <code>policy</code> argument,
-</p>
-<ul>
-<li>
-the invocation of <code>async</code> synchronizes with (1.10)
-the invocation of <code>f</code>.
-[<i>Note:</i>
-this statement applies even when the corresponding future object
-is moved to another thread.
-&mdash;<i>end note</i>];
-and
-</li>
-<li>
-the completion of the function <code>f</code>
-is sequenced before (1.10) the associated asynchronous state is made ready.
-[<i>Note:</i>
-<code>f</code> might not be called at all,
-so its completion might never happen.
-&mdash;<i>end note</i>]
-</li>
-</ul>
-
-<p>
-<del>If <code>policy &amp; launch::async</code> is non-zero,</del>
-<ins>If the implementation chooses the <code>launch::async</code> policy,</ins>
-</p>
-<ul>
-<li>
-a call to a waiting function on an asynchronous return object
-that shares the associated asynchronous state
-created by this <code>async</code> call
-shall block until the associated thread has completed,
-as if joined (30.3.1.5);
-</li>
-<li>
-<del>the <code>join()</code> on the created thread object</del>
-<ins>the associated thread completion</ins>
-synchronizes with (1.10)
-the return from the first function
-that successfully detects the ready status of the associated asynchronous state
-or with the return from the last function that 
-releases the associated asynchronous state <del>returns</del>,
-whichever happens first.
-<del><b>[Editor's note:
-N3196 changes the following sentence as indicated.
-N3188 removes the sentence.
-Please pick one.]</b>
-If the invocation is deferred,
-the completion of the invocation of the deferred function
-synchronizes with the successful return
-from a call to a waiting function on the associated asynchronous state.</del>
-</li>
-</ul>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2033"></a>2033. Preconditions of <tt>reserve</tt>, <tt>shrink_to_fit</tt>, and <tt>resize</tt> functions</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity], 23.3.3.3 [deque.capacity] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2011-02-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I have several questions with regard to the working paper N3225 (C++0x working draft):
-</p>
-<ol>
-<li><p>
-Where the working draft specifies preconditions for <tt>shrink_to_fit</tt>
-member function of <tt>std::vector</tt> and <tt>std::deque</tt>?
-</p></li>
-<li><p>
-Where the working draft specifies preconditions for '<tt>void reserve(size_type n)</tt>' 
-member function of <tt>std::vector</tt>?
-</p></li>
-<li><p>
-Does a call to '<tt>void resize(size_type sz)</tt>' of <tt>std::vector</tt> require
-the element type to be <tt>DefaultConstructible</tt>? If yes, why such
-requirement is not listed in the <i>Requires</i> paragraph?
-</p></li>
-<li><p>
-Does a call to '<tt>void resize(size_type sz)</tt>' of <tt>std::vector</tt> require
-the element type to be <tt>MoveAssignable</tt> because the call <tt>erase(begin() + sz, end())</tt> 
-mentioned in the <i>Effects</i> paragraph would require the element type to be <tt>MoveAssignable</tt>?
-</p></li>
-<li><p>
-Why <tt>CopyInsertable</tt> requirement is used for '<tt>void resize(size_type sz)</tt>' of <tt>std::vector</tt> 
-instead of <tt>MoveInsertable</tt> requirement?
-</p></li>
-</ol>
-
-<p><i>[2011-06-12: Daniel comments and provides wording]</i></p>
-
-<p>According to my understanding of the mental model of vector (and to some parts for deque) the 
-some requirements are missing in the standard as response to above questions:</p>
-<ol>
-<li>The preconditions of <tt>shrink_to_fit</tt> for both <tt>std::vector</tt> and <tt>std::deque</tt>
-should impose the <tt>MoveInsertable</tt> requirements. The reason for this is, that these containers
-can host move-only types. For a container type <tt>X</tt> the C++03 idiom <tt>X(*this).swap(*this)</tt>
-imposes the <tt>CopyInsertable</tt> requirements which would make the function call ill-formed,
-which looks like an unacceptable restriction to me. Assuming the committee decides to support the
-move-only case, further wording has to be added for the situation where such a move-only type could
-throw an exception, because this can leave the object in an unspecified state. This seems consistent
-with the requirements of <tt>reserve</tt>, which seems like a very similar function to me (for
-<tt>vector</tt>). And this brings us smoothly to the following bullet:
-</li>
-
-<li><p>I agree that we are currently missing to specify the preconditions of the <tt>reserve</tt> function.
-My interpretation of the mental model of this function is that it should work for move-only types, which
-seems to be supported by the wording used in 23.3.6.3 [vector.capacity] p2:
-</p>
-<blockquote><p>
-[&hellip;] If an exception is thrown other than by the move constructor of a non-CopyInsertable type, 
-there are no effects.
-</p></blockquote>
-<p>
-Given this statement, the appropriate requirement is <tt>MoveInsertable</tt> into the <tt>vector</tt>.
-</p>
-</li>
-
-<li>I agree that <tt>vector::resize(size_type)</tt> misses to list the <tt>DefaultConstructible</tt>
-requirements.
-</li>
-
-<li>Unfortunately the current specification in terms of <tt>erase</tt> implies the <tt>MoveAssignable</tt>
-requirements. I don't think that this implication is intended. This function requires "append" and 
-"pop-back" effects, respectively, where the former can be realized in terms of <tt>MoveInsertable</tt> 
-requirements. The same fix in regard to using <tt>pop_back</tt> instead of <tt>erase</tt> is necessary 
-for the two argument overload of <tt>resize</tt> as well (no <tt>MoveAssignable</tt> is required).
-</li>
-
-<li>The <tt>CopyInsertable</tt> requirement is incorrect and should be <tt>MoveInsertable</tt> instead.</li>
-</ol>
-
-<p>In addition to above mentioned items, the proposed resolution adds a linear complexity bound for 
-<tt>shrink_to_fit</tt> and attempts to resolve the related issue <a href="lwg-defects.html#2066">2066</a>.</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-<p>
-Note for editor: we do not normally refer to 'linear <i>time</i>' for complexity requirements, but there
-is agreement that any clean-up of such wording is editorial.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Edit 23.3.3.3 [deque.capacity] as indicated [Remark: The suggested change of p4 is
-not redundant, because <tt>CopyInsertable</tt> is not necessarily a refinement of <tt>MoveInsertable</tt>
-in contrast to the fact that <tt>CopyConstructible</tt> is a refinement of <tt>MoveConstructible</tt>]:</p>
-
-<blockquote><pre>
-void resize(size_type sz);
-</pre><blockquote><p>
--1- <i>Effects</i>: If <tt>sz &lt;= size()</tt>, equivalent to <del><tt>erase(begin() + sz, 
-end());</tt></del><ins>calling <tt>pop_back()</tt> <tt>size() - sz</tt> times</ins>. If 
-<tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> value-initialized elements to the sequence.
-<p/>
--2- Requires: <tt>T</tt> shall be <ins><tt>MoveInsertable</tt> into <tt>*this</tt> and</ins> <tt>DefaultConstructible</tt>.
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-void resize(size_type sz, const T&amp; c);
-</pre><blockquote><p>
--3- <i>Effects</i>: <ins>If <tt>sz &lt;= size()</tt>, equivalent to calling <tt>pop_back()</tt> 
-<tt>size() - sz</tt> times. If <tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> copies of <tt>c</tt> 
-to the sequence.</ins>
-</p><blockquote><pre>
-<del>if (sz &gt; size())
-  insert(end(), sz-size(), c);
-else if (sz &lt; size())
-  erase(begin()+sz, end());
-else
-  ; <i>// do nothing</i></del>
-</pre></blockquote>
-<p>
--4- <i>Requires</i>: <tt>T</tt> shall be <ins><tt>MoveInsertable</tt> into <tt>*this</tt> and</ins> 
-<tt>CopyInsertable</tt> into <tt>*this</tt>.
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-void shrink_to_fit();
-</pre><blockquote><p>
-<ins>-?- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: Takes at most linear time in the size of the sequence.</ins>
-<p/>
--5- <i>Remarks</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce memory use <ins>but does
-not change the size of the sequence</ins>. [ <i>Note</i>: The request is non-binding to allow latitude 
-for implementation-specific optimizations. &mdash; <i>end note</i> ]
-</p></blockquote></blockquote>
-</li>
-
-<li><p>Edit 23.3.6.3 [vector.capacity] as indicated including edits that also resolve <a href="lwg-defects.html#2066">2066</a> 
-[Remark: The combined listing of <tt>MoveInsertable</tt> and <tt>CopyInsertable</tt> before p12 is not redundant, 
-because <tt>CopyInsertable</tt> is not necessarily a refinement of <tt>MoveInsertable</tt> in contrast to the 
-fact that <tt>CopyConstructible</tt> is a refinement of <tt>MoveConstructible</tt>]:</p>
-
-<p>[&hellip;]</p>
-
-<blockquote><pre>
-void reserve(size_type n);
-</pre><blockquote><p>
-<ins>-?- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.</ins>
-<p/>
--2- <i>Effects</i>: A directive that informs a vector of a planned change in size, so that it can manage the storage
-allocation accordingly. After <tt>reserve()</tt>, <tt>capacity()</tt> is greater or equal to the argument of reserve if
-reallocation happens; and equal to the previous value of <tt>capacity()</tt> otherwise. Reallocation happens
-at this point if and only if the current capacity is less than the argument of <tt>reserve()</tt>. If an exception
-is thrown other than by the move constructor of a non-<tt>CopyInsertable</tt> type, there are no effects.
-<p/>
--3- <i>Complexity</i>: It does not change the size of the sequence and takes at most linear time in the size of
-the sequence.
-<p/>
--4- <i>Throws</i>: <tt>length_error</tt> if <tt>n &gt; max_size()</tt>.[footnote 266]
-<p/>
--5- <i>Remarks</i>: Reallocation invalidates all the references, pointers, and iterators referring to the elements
-in the sequence. It is guaranteed that no reallocation takes place during insertions that happen after
-a call to <tt>reserve()</tt> until the time when an insertion would make the size of the vector greater than
-the value of <tt>capacity()</tt>.
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-void shrink_to_fit();
-</pre><blockquote><p>
-<ins>-?- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: Takes at most linear time in the size of the sequence.</ins>
-<p/>
--6- <i>Remarks</i>: <tt>shrink_to_fit</tt> is a non-binding request to reduce <tt>capacity()</tt> to <tt>size()</tt>. 
-[ <i>Note</i>: The request is non-binding to allow latitude for implementation-specific optimizations. &mdash; <i>end note</i> ]
-<ins>If an exception is thrown other than by the move constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt> there 
-are no effects.</ins>
-</p></blockquote></blockquote>
-
-<p>[&hellip;]</p>
-
-<blockquote><pre>
-void resize(size_type sz);
-</pre><blockquote><p>
--9- <i>Effects</i>: If <tt>sz &lt;= size()</tt>, equivalent to <del><tt>erase(begin() + sz, end());</tt></del><ins>calling 
-<tt>pop_back()</tt> <tt>size() - sz</tt> times</ins>. If <tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> 
-value-initialized elements to the sequence.
-<p/>
--10- <i>Requires</i>: <tt>T</tt> shall be <tt><del>Copy</del><ins>Move</ins>Insertable</tt> into <tt>*this</tt> 
-<ins>and <tt>DefaultConstructible</tt></ins>.
-<p/>
-<ins>-??- <i>Remarks</i>: If an exception is thrown other than by the move constructor of a non-<tt>CopyInsertable</tt> 
-<tt>T</tt> there are no effects.</ins>
-</p></blockquote></blockquote>
-
-<blockquote><pre>
-void resize(size_type sz, const T&amp; c);
-</pre><blockquote><p>
--11- <i>Effects</i>: <ins>If <tt>sz &lt;= size()</tt>, equivalent to calling <tt>pop_back()</tt> 
-<tt>size() - sz</tt> times. If <tt>size() &lt; sz</tt>, appends <tt>sz - size()</tt> copies of <tt>c</tt> 
-to the sequence.</ins>
-</p><blockquote><pre>
-<del>if (sz &gt; size())
-  insert(end(), sz-size(), c);
-else if (sz &lt; size())
-  erase(begin()+sz, end());
-else
-  ; <i>// do nothing</i></del>
-</pre></blockquote><p>
-<ins>-??- <i>Requires</i>: <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt> and 
-<tt>CopyInsertable</tt> into <tt>*this</tt>.</ins>
-<p/>
--12- <i><del>Requires</del><ins>Remarks</ins></i>: If an exception is thrown other than by the move constructor of a 
-non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects.
-</p></blockquote></blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2034"></a>2034. Initialization of atomics is misspecified so that it doesn't preserve sequential consistency</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2011-02-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This violates the core intent of the memory model, as stated in the note in 1.10 [intro.multithread] p. 21.
-</p>
-
-<p>
-This was discovered by Mark Batty, and pointed out in their POPL 2011 paper, "Mathematizing C++ Concurrency",
-section 4, "Sequential consistency of SC atomics".  The problem is quite technical, but well-explained in that paper.
-</p>
-
-<p>
-This particular issue was not understood at the time the FCD comments were generated. But it is closely related 
-to a number of FCD comments. It should have arisen from 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3224.html#US171">US-171</a>, though that's not 
-the actual history.
-</p>
-
-<p>This issue has been under discussion for several months in a group that included a half dozen or so of the 
-most interested committee members. The P/R represents a well-considered consensus among us:</p>
-
-<p><i>[2011-03-16: Jens updates wording]</i></p>
-
-
-<blockquote class="note">
-<p>Modify 29.3 [atomics.order] p.3, so that the normative part reads:</p>
-
-<blockquote><p>
-3 There shall be a single total order <i>S</i> on all <tt>memory_order_seq_cst</tt> operations, consistent 
-with the &quot;happens before&quot; order and modification orders for all affected locations, such that each 
-<tt>memory_order_seq_cst</tt> operation that loads a value observes either the last 
-preceding modification according to this order <i>S</i><ins>, <i>A</i> (if any)</ins>, or the result of an operation 
-<ins><i>X</i></ins> that <del>is not</del><ins>does not happen before <i>A</i> and that is not</ins> <tt>memory_order_seq_cst</tt>. 
-[ <i>Note</i>: Although it is not explicitly required that <i>S</i> include locks, it can always be extended 
-to an order that does include lock and unlock operations, since the ordering between those is already included 
-in the &quot;happens before&quot; ordering. &mdash; <i>end note</i> ]
-</p></blockquote>
-
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="2037"></a>2037. <tt>atomic</tt> free functions incorrectly specified</h3>
-<p><b>Section:</b> 29.2 [atomics.syn] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-03-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.syn">issues</a> in [atomics.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>In earlier specifications of atomics the template specialization <tt>atomic&lt;<i>integer</i>&gt;</tt> 
-was derived from <tt>atomic_integer</tt> (e.g. <tt>atomic&lt;int&gt;</tt> was derived from <tt>atomic_int</tt>), 
-and the working draft required free functions such as</p>
-
-<blockquote><pre>
-int atomic_load(const atomic_int*)
-</pre></blockquote>
-
-<p>for each of the <tt>atomic_integer</tt> types. This worked fine with normal function overloading.</p>
-
-<p>For the post-Batavia working draft, N3193 removed the requirement that <tt>atomic&lt;integer&gt;</tt> 
-be derived from <tt>atomic_integer</tt> and replaced the free functions taking pointers to 
-<tt>atomic_integer</tt> with template functions taking <tt>atomic_type*</tt>, such as</p>
-
-<blockquote><pre>
-template &lt;class T&gt; T atomic_load(const atomic_type*);
-</pre></blockquote>
-
-<p>and a code comment explaining that <tt>atomic_type</tt> can be either <tt>atomic&lt;T&gt;</tt> or a 
-named base class of <tt>atomic&lt;T&gt;</tt>. The latter possibility is supposed to allow existing 
-implementations based on the previous specification to continue to conform.</p>
-
-<p>From history, this allowance seems to imply that functions like <tt>atomic_load</tt> can be non-template 
-free functions, as they were before. The explicit requirements do not allow this, and, by requiring that 
-they be templates, make them far more complicated. As the specification is currently written, code that 
-uses an implementation that uses a base class would have to provide an explicit template type:</p>
-
-<blockquote><pre>
-atomic&lt;int&gt; my_atomic_int;
-atomic_load&lt;int&gt;(&amp;my_atomic_int);
-</pre></blockquote>
-
-<p>That type argument isn't needed when <tt>atomic_type</tt> is <tt>atomic&lt;T&gt;</tt>, but cautious 
-users would always provide it to make their code portable across different implementations of the 
-standard library.</p>
-
-<p>One possibility for the implementor would be to do some template meta-programming to infer the type 
-<tt>T</tt> when there are no function parameters of type <tt>T</tt>, but without running afoul of the 
-prohibition on adding parameters with default values (17.6.5.4 [global.functions]/3).</p>
-
-<p>So the promise that implementations of the previous specification continue to conform has not been 
-met. The specification of these free functions should be rewritten to support library code written to 
-the previous specification or the vacuous promise should be removed.
-</p>
-
-<p><i>[2011-03-08: Lawrence comments and drafts wording:]</i></p>
-
-
-<p>One of the goals is to permit atomics code to compile under both C and C++. Adding explicit 
-template arguments would defeat that goal.
-<p/>
-The intent was to permit the normal function overloads for <tt>atomic_int</tt> when <tt>atomic_int</tt> 
-is distinct from <tt>atomic&lt;int&gt;</tt>. That intent was not reflected in the wording.
-</p>
-
-<blockquote class="note">
-<p>Proposed Resolution</p>
-<p>Explicitly permit free functions.</p>
-
-<ol>
-<li>
-<p>Edit within the header <tt>&lt;atomic&gt;</tt> synopsis 29.2 [atomics.syn] as follows:</p>
-
-<blockquote><pre>
-<i>// 29.6.1, general operations on atomic types</i>
-<del><i>// In the following declarations, <em>atomic_type</em> is either</i>
-<i>// </i><code>atomic&lt;T&gt;</code><i> or a named base class for</i> <code>T</code><i> from</i>
-<i>// Table 145 or inferred from</i>
-<i>// Table 146.</i></del>
-<ins><i>// In the following declarations, <em>atomic-type</em> is either</i> 
-<i>// </i><code>atomic&lt;T&gt;</code><i> or a named base class for</i> <code>T</code><i> from</i>
-<i>// Table 145 or inferred from</i>
-<i>// Table 146.</i>
-<i>// If it is </i><code>atomic&lt;T&gt;</code><i>, then the declaration is a template
-// declaration prefixed with</i> <code>template &lt;class T&gt;</code></ins>
-<del>template &lt;class T&gt;</del>
-bool atomic_is_lock_free(const volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*);
-<del>template &lt;class T&gt;</del>
-bool atomic_is_lock_free(const <em><del>atomic_type</del><ins>atomic-type</ins></em>*);
-<del>template &lt;class T&gt;</del>
-void atomic_init(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T);
-<del>template &lt;class T&gt;</del>
-void atomic_init(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T);
-<del>template &lt;class T&gt;</del>
-void atomic_store(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T);
-<del>template &lt;class T&gt;</del>
-void atomic_store(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T);
-<del>template &lt;class T&gt;</del>
-void atomic_store_explicit(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T, memory_order);
-<del>template &lt;class T&gt;</del>
-void atomic_store_explicit(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T, memory_order);
-<del>template &lt;class T&gt;</del>
-T atomic_load(const volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*);
-<del>template &lt;class T&gt;</del>
-T atomic_load(const <em><del>atomic_type</del><ins>atomic-type</ins></em>*);
-<del>template &lt;class T&gt;</del>
-T atomic_load_explicit(const volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, memory_order);
-<del>template &lt;class T&gt;</del>
-T atomic_load_explicit(const <em><del>atomic_type</del><ins>atomic-type</ins></em>*, memory_order);
-<del>template &lt;class T&gt;</del>
-T atomic_exchange(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T);
-<del>template &lt;class T&gt;</del>
-T atomic_exchange(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T);
-<del>template &lt;class T&gt;</del>
-T atomic_exchange_explicit(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T, memory_order);
-<del>template &lt;class T&gt;</del>
-T atomic_exchange_explicit(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T, memory_order);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_weak(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_weak(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_strong(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_strong(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_weak_explicit(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T,
-  memory_order, memory_order);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_weak_explicit(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T.
-  memory_order, memory_order);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare)exchange_strong_explicit(volatile <em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T,
-  memory_order, memory_order);
-<del>template &lt;class T&gt;</del>
-bool atomic_compare_exchange_strong_explicit(<em><del>atomic_type</del><ins>atomic-type</ins></em>*, T*, T,
-  memory_order, memory_order);
-  
-<i>// 29.6.2, templated operations on atomic types</i>
-<del><i>// In the following declarations, <em>atomic_type</em> is either
-// </i><code>atomic&lt;T&gt;</code><i> or a named base class for</i> <code>T</code><i> from
-// Table 145 or inferred from
-// Table 146.</i></del>
-template &lt;class T&gt;
-T atomic_fetch_add(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_add(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_add_explicit(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_add_explicit(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_sub(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_sub(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_sub_explicit(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_sub_explicit(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_and(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_and(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_and_explicit(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_and_explicit(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_or(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_or(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_or_explicit(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_or_explicit(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_xor(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_xor(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T);
-template &lt;class T&gt;
-T atomic_fetch_xor_explicit(volatile <del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-template &lt;class T&gt;
-T atomic_fetch_xor_explicit(<del><em>atomic-type</em></del><ins>atomic&lt;T&gt;</ins>*, T, memory_order);
-
-<i>// 29.6.3, arithmetic operations on atomic types</i>
-<ins><i>// In the following declarations, <em>atomic-integral</em> is either 
-// </i><code>atomic&lt;T&gt;</code> <i>or a named base class for</i> <code>T</code> <i>from 
-// Table 145 or inferred from 
-// Table 146.
-// If it is</i> <code>atomic&lt;T&gt;</code><i>,
-// then the declaration is a template specialization declaration prefixed with
-//</i> <code>template &lt;&gt;</code></ins>
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_add(volatile <em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_add(<em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_add_explicit(volatile <em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_add_explicit(<em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_sub(volatile <em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_sub(<em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_sub_explicit(volatile <em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_sub_explicit(<em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_and(volatile <em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_and(<em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_and_explicit(volatile <em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_and_explicit(<em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_or(volatile <em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_or(<em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_or_explicit(<em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_or_explicit(<em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_xor(volatile <em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_xor(<em>atomic-integral</em>*, <em>integral</em>);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_xor_explicit(volatile <em>atomic-integral</em>*, <em>integral</em>, memory_order);
-<del>template &lt;&gt;</del>
-<em>integral</em> atomic_fetch_xor_explicit(<em>atomic-integral</em>*, <em>integral</em>, memory_order);
-</pre></blockquote>
-</li>
-
-<li><p>Edit 29.6.1 [atomics.types.operations.general] paragraph 1+2 as follows:</p>
-
-<blockquote><p>
--1- The implementation shall provide the <ins>functions and</ins> function templates identified as 
-&quot;general operations on atomic types&quot; in 29.2 [atomics.syn].
-<p/>
--2- In the declarations of these <ins>functions and function</ins> templates, the name <em>atomic-type</em> 
-refers to either <tt>atomic&lt;T&gt;</tt> or to a named base class for <tt>T</tt> from Table 145 or 
-inferred from Table 146.
-</p>
-</blockquote>
-</li>
-
-<li><p>In 29.6.2 [atomics.types.operations.templ] delete paragraph 2:</p>
-
-<blockquote><p>
--1- The implementation shall declare but not define the function templates identified as 
-&quot;templated operations on atomic types&quot; in 29.2 [atomics.syn].
-<p/>
-<del>-2- In the declarations of these templates, the name <em>atomic-type</em> refers to either 
-<tt>atomic&lt;T&gt;</tt> or to a named base class for <tt>T</tt> from Table 145 or 
-inferred from Table 146.</del>
-</p>
-</blockquote>
-</li>
-
-<li><p>Edit 29.6.3 [atomics.types.operations.arith] paragraph 1+2 as follows:</p>
-
-<blockquote><p>
--1- The implementation shall provide the <ins>functions and</ins> function template 
-specializations identified as &quot;arithmetic operations on atomic types&quot; in 
-29.2 [atomics.syn].
-<p/>
--2- In the declarations of these <ins>functions and function</ins> template specialization<ins>s</ins>, 
-the name <em>integral</em> refers to an integral type and the name <em>atomic-integral</em> 
-refers to either <tt>atomic&lt;</tt><em>integral</em><tt>&gt;</tt> or to a named base class for 
-<em>integral</em> from Table 145 or inferred from Table 146.
-</p>
-</blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-
-<p><b>Proposed resolution:</b></p><p>
-Resolved 2011-03 Madrid meeting by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3278">N3278</a>
-</p>
-
-
-
-
-<hr>
-<h3><a name="2039"></a>2039. Issues with <tt>std::reverse</tt> and <tt>std::copy_if</tt></h3>
-<p><b>Section:</b> 25.3.1 [alg.copy], 25.3.10 [alg.reverse] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nikolay Ivchenkov <b>Opened:</b> 2011-03-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#alg.copy">active issues</a> in [alg.copy].</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.copy">issues</a> in [alg.copy].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<ol>
-<li><p>In the description of <tt>std::reverse</tt></p>
-<blockquote><p>
-<i>Effects</i>: For each non-negative integer <tt>i &lt;= (last - first)/2</tt>, applies <tt>iter_swap</tt> 
-to all pairs of iterators <tt>first + i</tt>, <tt>(last - i) - 1</tt>.
-</p></blockquote>
-<p>
-should be changed to
-</p><blockquote><p>
-<i>Effects</i>: For each non-negative integer <tt>i <strong>&lt;</strong> (last - first)/2</tt>, applies <tt>iter_swap</tt> 
-to all pairs of iterators <tt>first + i</tt>, <tt>(last - i) - 1</tt>.
-</p></blockquote><p>
-Here <tt>i</tt> shall be strictly less than <tt>(last - first)/2</tt>.
-</p>
-</li>
-<li><p>In the description of <tt>std::copy_if</tt> <i>Returns</i> paragraph is missing.</p></li>
-</ol>
-
-<p><i>[2011-03-02: Daniel drafts wording]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Modify 25.3.10 [alg.reverse] p. 1 as indicated:</p>
-
-<blockquote><p>
-1 <i>Effects</i>: For each non-negative integer <tt>i &lt;<del>=</del> (last - first)/2</tt>, applies <tt>iter_swap</tt> 
-to all pairs of iterators <tt>first + i</tt>, <tt>(last - i) - 1</tt>.
-</p></blockquote>
-</li>
-
-<li><p>Add the following <i>Returns</i> element after 25.3.1 [alg.copy] p. 9:</p>
-
-<blockquote><pre>
-template&lt;class InputIterator, class OutputIterator, class Predicate&gt;
-OutputIterator copy_if(InputIterator first, InputIterator last,
-   OutputIterator result, Predicate pred);
-</pre><blockquote><p>
-8 <i>Requires</i>: The ranges <tt>[first,last)</tt> and <tt>[result,result + (last - first))</tt> shall not overlap.
-<p/>
-9 <i>Effects</i>: Copies all of the elements referred to by the iterator <tt>i</tt> in the range <tt>[first,last)</tt> 
-for which <tt>pred(*i)</tt> is true.
-<p/>
-<ins>?? <i>Returns</i>: The end of the resulting range.</ins>
-<p/>
-10 <i>Complexity</i>: Exactly <tt>last - first</tt> applications of the corresponding predicate.
-<p/>
-11 <i>Remarks</i>: Stable.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2041"></a>2041. Stage 2 accumulate incompatibilty</h3>
-<p><b>Section:</b> 22.4.2.1.2 [facet.num.get.virtuals] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-03-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#facet.num.get.virtuals">active issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.get.virtuals">issues</a> in [facet.num.get.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><tt>num_get</tt> Stage 2 accumulation changed between C++03 and the current C++0x working draft. The sentences:</p>
-
-<blockquote><p>
-If it is not discarded, then a check is made to determine if <tt>c</tt> is allowed as the
-next character of an input field of the conversion specifier returned by stage 1.
-If so it is accumulated.
-</p></blockquote>
-
-<p>have been dropped from 22.4.2.1.2 [facet.num.get.virtuals], Stage 2, paragraph 3 that begins:</p>
-
-<blockquote><p>
-If <tt>discard</tt> is true, [&hellip;]
-</p></blockquote>
-
-<p>Consider this code:</p>
-
-<blockquote><pre>
-#include &lt;sstream&gt;
-#include &lt;iostream&gt;
-
-int main(void)
-{
-   std::istringstream s("8cz");
-   long i = 0;
-   char c;
-   s &gt;&gt; i;
-   if (!s.fail())
-       std::cout &lt;&lt; "i = " &lt;&lt; i &lt;&lt; '\n';
-   else
-   {
-       std::cout &lt;&lt; "s &gt;&gt; i failed\n";
-       s.clear();
-   }
-   s &gt;&gt; c;
-   if (!s.fail())
-       std::cout &lt;&lt; "c = " &lt;&lt; c &lt;&lt; '\n';
-   else
-       std::cout &lt;&lt; "s &gt;&gt; c failed\n";
-}
-</pre></blockquote>
-
-<p>C++0x currently prints out:</p>
-
-<blockquote><pre>
-s &gt;&gt; i failed
-c = z
-</pre></blockquote>
-
-<p>However C++03 conforming implementations will output:</p>
-
-<blockquote><pre>
-i = 8
-c = c
-</pre></blockquote>
-
-<p>I believe we need to restore C++03 compatibility.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add to 22.4.2.1.2 [facet.num.get.virtuals], Stage 2:</p>
-
-<blockquote><p>
-If <tt>discard</tt> is true, then if <tt>'.'</tt> has not yet been accumulated, then the position of the character
-is remembered, but the character is otherwise ignored. Otherwise, if <tt>'.'</tt> has already been
-accumulated, the character is discarded and Stage 2 terminates. <ins>If it is not discarded, then a 
-check is made to determine if <tt>c</tt> is allowed as the next character of an input field of the 
-conversion specifier returned by stage 1. If so it is accumulated.</ins>
-<p/>
-If the character is either discarded or accumulated then in is advanced by <tt>++in</tt> and processing
-returns to the beginning of stage 2.
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2042"></a>2042. Comparing <tt>forward_list::before_begin()</tt> to <tt>forward_list::end()</tt></h3>
-<p><b>Section:</b> 23.3.4.3 [forwardlist.iter] <b>Status:</b> <a href="lwg-active.html#C++11">C++11</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2011-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++11">C++11</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>For an object <tt>c</tt> of type <tt>forward_list&lt;X, Alloc&gt;</tt>, the iterators
-<tt>c.before_begin()</tt> and <tt>c.end()</tt> are part of the same underlying sequence,
-so the expression <tt>c.before_begin() == c.end()</tt>  must be well-defined.
-But the standard says nothing about what the result of this expression
-should be.  The forward iterator requirements says no dereferenceable
-iterator is equal to a non-dereferenceable iterator and that two
-dereferenceable iterators are equal if and only if they point to the
-same element.  But since <tt>before_begin()</tt> and <tt>end()</tt> are both
-non-dereferenceable, neither of these rules applies.
-</p>
-
-<p>
-Many <tt>forward_list</tt> methods, such as <tt>insert_after()</tt>, have a
-precondition that the iterator passed to them must not be equal to
-<tt>end()</tt>. Thus, user code might look like the following:
-</p>
-<blockquote><pre>
-void foo(forward_list&lt;int&gt;&amp; c, forward_list&lt;int&gt;::iterator it)
-{
-  assert(it != c.end());
-  c.insert_after(it, 42);
-}
-</pre></blockquote>
-
-<p>
-Conversely, <tt>before_begin()</tt> was specifically designed to be used with
-methods like <tt>insert_after()</tt>, so if <tt>c.before_begin()</tt> is passed to 
-this function the assertion must not fail.
-</p>
-
-<p><i>[2011-03-14: Daniel comments and updates the suggested wording]</i></p>
-
-
-<p>The suggested wording changes are necessary but not sufficient. Since there
-does not exist an equivalent semantic definition of <tt>cbefore_begin()</tt> as
-we have for <tt>cbegin()</tt>, this still leaves the question open whether
-the normative remark applies to <tt>cbefore_begin()</tt> as well. A simple fix
-is to define the operational semantics of <tt>cbefore_begin()</tt> in terms of
-<tt>before_begin()</tt>.</p>
-
-<p><i>[2011-03-24 Madrid meeting]</i></p>
-
-
-<p>
-General agreement that this is a serious bug.
-<p/>
-Pablo: Any objections to moving 2042 to Immediate?
-<p/>
-No objections. 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Add to the definition of <tt>forward_list::before_begin()</tt> 23.3.4.3 [forwardlist.iter] 
-the following:</p>
-
-<blockquote><pre>
-iterator before_begin();
-const_iterator before_begin() const;
-const_iterator cbefore_begin() const;
-</pre><blockquote><p>
--1- <i>Returns</i>: A non-dereferenceable iterator that, when incremented, is equal to the iterator returned by <tt>begin()</tt>.
-<p/>
-<ins>-?- <i>Effects</i>: <tt>cbefore_begin()</tt> is equivalent to <tt>const_cast&lt;forward_list const&amp;>(*this).before_begin()</tt>.</ins>
-<p/>
-<ins>-?- <i>Remarks</i>: <tt>before_begin() == end()</tt> shall equal false.</ins>
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2044"></a>2044. No definition of "Stable" for copy algorithms</h3>
-<p><b>Section:</b> 17.6.5.7 [algorithm.stable] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2011-03-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-17.6.5.7 [algorithm.stable] specified the meaning of "stable" when applied to 
-the different types of algorithms. The second bullet says:
-</p>
-<blockquote><p>
-&mdash; For the <i>remove</i> algorithms the relative order of the elements that are not removed is preserved.
-</p></blockquote>
-
-<p>
-There is no description of what "stable" means for copy algorithms, even though the term is 
-applied to <tt>copy_if</tt> (and perhaps others now or in the future). Thus, <tt>copy_if</tt> 
-is using the term without a precise definition.
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>In 17.6.5.7 [algorithm.stable] p. 1 change as indicated:</p>
-
-<blockquote><p>
-When the requirements for an algorithm state that it is “stable” without further elaboration, it means:
-</p>
-<ul>
-<li>For the <i>sort</i> algorithms the relative order of equivalent elements is preserved.</li>
-<li>For the <i>remove</i> <ins>and <i>copy</i></ins> algorithms the relative order of the elements that are 
-not removed is preserved.</li>
-<li>For the <i>merge</i> algorithms, for equivalent elements in the original two ranges, the elements from the
-first range precede the elements from the second range.</li>
-</ul>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2045"></a>2045. <tt>forward_list::merge</tt> and <tt>forward_list::splice_after</tt> with unequal allocators</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2011-03-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-See also: <a href="lwg-defects.html#1215">1215</a>
-</p>
-
-<p>
-<tt>list::merge</tt> and <tt>list::splice</tt> have the requirement that the two lists being merged or 
-spliced must use the same allocator. Otherwise, moving list nodes from one container to the other would 
-corrupt the data structure. The same requirement is needed for <tt>forward_list::merge</tt> and 
-<tt>forward_list::splice_after</tt>.
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>In 23.3.4.6 [forwardlist.ops] p. 1 change as indicated:</p>
-
-<blockquote><pre>
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp; x);
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-</pre><p>
-1 - <i>Requires</i>: <tt>position</tt> is <tt>before_begin()</tt> or is a dereferenceable 
-iterator in the range [<tt>begin()</tt>,<tt>end()</tt>). <ins><tt>get_allocator() == x.get_allocator()</tt>.</ins> 
-<tt>&amp;x != this</tt>.
-</p></blockquote>
-
-</li>
-
-<li><p>In 23.3.4.6 [forwardlist.ops] p. 5 change as indicated:</p>
-
-<blockquote><pre>
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp; x, const_iterator i);
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp;&amp; x, const_iterator i);
-</pre><p>
-5 - <i>Requires</i>: <tt>position</tt> is <tt>before_begin()</tt> or is a dereferenceable 
-iterator in the range [<tt>begin()</tt>,<tt>end()</tt>). The iterator following <tt>i</tt> is a 
-dereferenceable iterator in <tt>x</tt>. <ins><tt>get_allocator() == x.get_allocator()</tt>.</ins>
-</p></blockquote>
-
-</li>
-
-<li><p>In 23.3.4.6 [forwardlist.ops] p. 9 change as indicated:</p>
-
-<blockquote><pre>
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp; x, 
-                  const_iterator first, const_iterator last);
-void splice_after(const_iterator position, forward_list&lt;T,Allocator&gt;&amp;&amp; x, 
-                  const_iterator first, const_iterator last);
-</pre><p>
-9 - <i>Requires</i>: <tt>position</tt> is <tt>before_begin()</tt> or is a dereferenceable 
-iterator in the range [<tt>begin()</tt>,<tt>end()</tt>). (<tt>first</tt>,<tt>last</tt>) is a valid range 
-in <tt>x</tt>, and all iterators in the range (<tt>first</tt>,<tt>last</tt>) are dereferenceable.
-<tt>position</tt> is not an iterator in the range (<tt>first</tt>,<tt>last</tt>). 
-<ins><tt>get_allocator() == x.get_allocator()</tt>.</ins>
-</p></blockquote>
-
-</li>
-
-<li><p>In 23.3.4.6 [forwardlist.ops] p. 18 change as indicated:</p>
-
-<blockquote><pre>
-void merge(forward_list&lt;T,Allocator&gt;&amp; x);
-void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp; x, Compare comp);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);
-</pre><p>
-18 - <i>Requires</i>: <tt>comp</tt> defines a strict weak ordering ([alg.sorting]), and <tt>*this</tt> 
-and <tt>x</tt> are both sorted according to this ordering. <ins><tt>get_allocator() == x.get_allocator()</tt>.</ins>
-</p></blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2047"></a>2047. Incorrect "mixed" move-assignment semantics of <tt>unique_ptr</tt></h3>
-<p><b>Section:</b> 20.8.1.2.3 [unique.ptr.single.asgn] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-04-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.asgn">issues</a> in [unique.ptr.single.asgn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The semantics described in 20.8.1.2.3 [unique.ptr.single.asgn] p. 6</p>
-<blockquote><p>
-<i>Effects</i>: Transfers ownership from <tt>u</tt> to <tt>*this</tt> as if [&hellip;] followed 
-by an assignment from <tt>std::forward&lt;D&gt;(u.get_deleter())</tt>.
-</p></blockquote>
-<p>
-contradicts to the pre-conditions described in p. 4:
-</p>
-<blockquote><p>
-<i>Requires</i>: If E is not a reference type, assignment of the deleter from an rvalue of type <tt>E</tt> shall be
-well-formed and shall not throw an exception. Otherwise, <tt>E</tt> is a reference type and assignment of the
-deleter from an lvalue of type <tt>E</tt> shall be well-formed and shall not throw an exception.
-</p></blockquote>
-<p>
-Either the pre-conditions are incorrect or the semantics should be an assignment from
-<tt>std::forward&lt;<span style="color:red;font-weight:bolder">E</span>&gt;(u.get_deleter())</tt>, instead.
-</p>
-<p>It turns out that this contradiction is due to an incorrect transcription from the proposed
-resolution of <a href="lwg-defects.html#983">983</a> to the finally accepted proposal 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3073.html">n3073</a> (see
-bullet 12) as confirmed by Howard Hinnant, thus the type argument provided to <tt>std::forward</tt>
-must be fixed as indicated.
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Edit 20.8.1.2.3 [unique.ptr.single.asgn] p. 6 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;
-</pre><blockquote><p>
-4 - <i>Requires</i>: If <tt>E</tt> is not a reference type, assignment of the deleter from an rvalue 
-of type <tt>E</tt> shall be well-formed and shall not throw an exception. Otherwise, <tt>E</tt> is a 
-reference type and assignment of the deleter from an lvalue of type <tt>E</tt> shall be well-formed and 
-shall not throw an exception.
-<p/>
-5 - <i>Remarks</i>: This operator shall not participate in overload resolution unless:</p>
-<ul>
-<li><tt>unique_ptr&lt;U, E&gt;::pointer</tt> is implicitly convertible to <tt>pointer</tt> and</li>
-<li><tt>U</tt> is not an array type.</li>
-</ul>
-<p>
-6 - <i>Effects</i>: Transfers ownership from <tt>u</tt> to <tt>*this</tt> as if by calling 
-<tt>reset(u.release())</tt> followed by an assignment from <tt>std::forward&lt;<del>D</del><ins>E</ins>&gt;(u.get_deleter())</tt>.
-<p/>
-7 - <i>Returns</i>: <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2048"></a>2048. Unnecessary <tt>mem_fn</tt> overloads</h3>
-<p><b>Section:</b> 20.9 [function.objects], 20.9.11 [func.memfn] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-04-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>mem_fn</tt> overloads for member functions are redundant and misleading
-and should be removed from the post-C++11 WP.
-<p/>
-I believe the history of the overloads is as follows:
-<p/>
-In TR1 and in C++0x prior to the N2798 draft, <tt>mem_fn</tt> was specified by
-a single signature:
-</p>
-<blockquote><pre>
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::* pm);
-</pre></blockquote>
-<p>
-and was accompanied by the remark "Implementations may implement <tt>mem_fn</tt> 
-as a set of overloaded function templates." This remark predates variadic templates 
-and was presumably to allow implementations to provide overloads for a limited 
-number of function parameters, to meet the implementation-defined limit on numbers of
-template parameters.
-<p/>
-N2770 "Concepts for the C++0x Standard Library: Utilities" added
-separate overloads for pointers to member functions, apparently so
-that function parameters would require the <tt>CopyConstructible</tt> concept
-(those overloads first appeared in N2322.) The overloads failed to
-account for varargs member functions (i.e. those declared with an
-ellipsis in the parameter-declaration-clause) e.g.
-</p>
-<blockquote><pre>
-struct S {
- int f(int, ...);
-};
-</pre></blockquote>
-<p>
-Syntactically such a function would be handled by the original
-<tt>mem_fn(R T::* pm)</tt> signature, the only minor drawback being that there
-would be no <tt>CopyConstructible</tt> requirement on the parameter list. (Core
-DR 547 clarifies that partial specializations can be written to match
-cv-qualified and ref-qualified functions to support the case where <tt>R T::*</tt> 
-matches a pointer to member function type.)
-<p/>
-LWG issue <a href="lwg-defects.html#920">920</a> pointed out that additional overloads were missing for
-member functions with ref-qualifiers. These were not strictly
-necessary, because such functions are covered by the <tt>mem_fn(R T::* pm)</tt> signature.
-<p/>
-Concepts were removed from the draft and N3000 restored the original
-single signature and accompanying remark.
-<p/>
-LWG <a href="lwg-closed.html#1230">1230</a> was opened to strike the remark again and to add an overload
-for member functions (this overload was unnecessary for syntactic reasons and 
-insufficient as it didn't handle member functions with cv-qualifiers and&#47;or 
-ref-qualifiers.)
-<p/>
-<a href="lwg-defects.html#920">920</a> (and <a href="lwg-closed.html#1230">1230</a>) were resolved by restoring a full set of
-(non-concept-enabled) overloads for member functions with cv-qualifiers and ref-qualifiers,
-but as in the concept-enabled draft there were no overloads for member functions with 
-an ellipsis in the parameter-declaration-clause. This is what is present in the FDIS.
-<p/>
-Following the thread beginning with message c++std-lib-30675, it is my
-understanding that all the <tt>mem_fn</tt> overloads for member functions are
-unnecessary and were only ever added to allow concept requirements.
-I'm not aware of any reason implementations cannot implement <tt>mem_fn</tt> as
-a single function template. Without concepts the overloads are
-redundant, and the absence of overloads for varargs functions can be
-interpreted to imply that varargs functions are not intended to work
-with <tt>mem_fn</tt>. Clarifying the intent by adding overloads for varargs
-functions would expand the list of 12 redundant overloads to 24, it
-would be much simpler to remove the 12 redundant overloads entirely.
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Review.
-</p>
-
-<p>
-The issue and resolution appear to be correct, but there is some concern that the wording of INVOKE may be different depending on whether you pass a pointer-to-member-data or pointer-to-member-function.  That might make the current wording necessary after all, and then we might need to add the missing elipsis overloads.
-</p>
-
-<p>
-There was some concern that the Remark confirming implementors had freedom to implement this as a set of overloaded functions may need to be restored if we delete the specification for these overloads.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Tentatively Ready by the post-Kona issues processing subgroup.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change the <tt>&lt;functional&gt;</tt> synopsis 20.9 [function.objects] p. 2 as follows:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  // <i>[func.memfn], member function adaptors:</i>
-  template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::*);
-<del>  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...));
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) const);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) &amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) const &amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) &amp;&amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) const &amp;&amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &amp;&amp;);
-  template&lt;class R, class T, class... Args&gt;
-  <i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &amp;&amp;);</del>
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 20.9.11 [func.memfn] as follows:</p>
-
-<blockquote><pre>
-template&lt;class R, class T&gt; <i>unspecified</i> mem_fn(R T::*);
-<del>template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...));
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) const);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) volatile);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) &amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) const &amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) &amp;&amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) const &amp;&amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) volatile &amp;&amp;);
-template&lt;class R, class T, class... Args&gt;
-<i>unspecified</i> mem_fn(R (T::*)(Args...) const volatile &amp;&amp;);</del>
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2049"></a>2049. <tt>is_destructible</tt> is underspecified</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-04-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The conditions for the type trait <tt>is_destructible</tt> to be true
-are described in Table 49 &mdash; Type property predicates:</p>
-<blockquote><p>
-For a complete type <tt>T</tt> and given<br/>
-<tt>template &lt;class U&gt;
-struct test { U u; };</tt>,<br/>
-<tt>test&lt;T&gt;::~test()</tt> is not deleted.
-</p></blockquote>
-
-<p>This specification does not say what the result would be for function
-types or for abstract types:</p>
-<ol>
-<li>For an abstract type <tt>X</tt> the instantiation <tt>test&lt;X&gt;</tt>
-is already ill-formed, so we cannot say anything about whether the destructor
-would be deleted or not.</li>
-<li>In regard to function types, there exists a special rule in the core language, 14.3.1 [temp.arg.type] p. 3,
-which excludes member functions to be declared via the type of the template parameter:
-<blockquote><p>
-If a declaration acquires a function type through a type dependent on a <i>template-parameter</i>
-and this causes a declaration that does not use the syntactic form of a function declarator 
-to have function type, the program is ill-formed. 
-<p/>
-[ <i>Example</i>:</p>
-<blockquote><pre>
-template&lt;class T&gt; struct A {
-  static T t;
-};
-typedef int function();
-A&lt;function&gt; a; // ill-formed: would declare A&lt;function&gt;::t
-               // as a static member function
-</pre></blockquote>
-<p>
-&mdash; <i>end example</i> ]
-</p></blockquote>
-which has the same consequence as for abstract types, namely that the corresponding
-instantiation of <tt>test</tt> is already ill-formed and we cannot say anything
-about the destructor.
-</li>
-</ol>
-<p>To solve this problem, I suggest to specify function types as trivially and nothrowing
-destructible, because above mentioned rule is very special for templates. For non-templates,
-a typedef can be used to introduce a member as member function as clarified in 8.3.5 [dcl.fct]
-p. 10.</p>
-<p>For abstract types, two different suggestions have been brought to my attention:
-Either declare them as unconditionally non-destructible or check whether the expression
-</p>
-<blockquote><pre>
-std::declval&lt;T&amp;&gt;().~T()
-</pre></blockquote>
-<p>is well-formed in an unevaluated context. The first solution is very easy to specify,
-but the second version has the advantage for providing more information to user-code. This 
-information could be quite useful, if generic code is supposed to invoke the destructor
-of a reference to a base class indirectly via a delete expression, as suggested by
-Howard Hinnant:</p>
-<blockquote><pre>
-template &lt;class T&gt;
-my_pointer&lt;T&gt;::~my_pointer() noexcept(is_nothrow_destructible&lt;T&gt;::value)
-{
-   delete ptr_;
-}
-</pre></blockquote>
-<p>Additional to the <tt>is_destructible</tt> traits, its derived forms <tt>is_trivially_destructible</tt>
-and <tt>is_nothrow_destructible</tt> are similarly affected, because their wording refers to "the indicated
-destructor" and probably need to be adapted as well.</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-After discussion about to to handle the exceptional cases of reference types, function types (available by defererencing a function pointer)
-and <tt>void</tt> types, Howard supplied proposed wording.
-</p>
-
-<p><i>[
-2011-08-20 Daniel comments and provides alternatives wording
-]</i></p>
-
-
-<p>
-The currently proposed wording would have the consequence that 
-<em>every</em> array type is not destructible, because the pseudo-destructor
-requires a scalar type with the effect that the expression
-</p><blockquote><pre>
-std::declval&lt;T&amp;&gt;().~T()
-</pre></blockquote><p>
-is not well-formed for e.g. <tt>T</tt> equal to <tt>int[3]</tt>. The intuitive
-solution to fix this problem would be to adapt the object type case to refer to 
-the expression
-</p><blockquote><pre>
-std::declval&lt;U&amp;&gt;().~U()
-</pre></blockquote><p>
-with <tt>U</tt> equal to <tt>remove_all_extents&lt;T&gt;::type</tt>, but that
-would have the effect that arrays of unknown bounds would be destructible, if 
-the element type is destructible, which was not the case before (This was 
-intentionally covered by the special "For a complete type T" rule in
-the FDIS).
-<p/>
-Suggestion: Use the following definition instead:
-</p>
-<blockquote><p>
-Let <tt>U</tt> be <tt>remove_all_extents&lt;T&gt;::type</tt>.<br/>
-For incomplete types and function types, <tt>is_destructible&lt;T&gt;::value</tt> is <tt>false</tt>.<br/>
-For object types, if the expression <tt>std::declval&lt;U&amp;&gt;().~U()</tt> is well-formed<br/>
-when treated as an unevaluated operand (Clause 5), then <tt>is_destructible&lt;T&gt;::value</tt><br/>
-is <tt>true</tt>, otherwise it is <tt>false</tt>.<br/>
-For reference types, <tt>is_destructible&lt;T&gt;::value</tt> is <tt>true</tt>.
-</p></blockquote>
-<p>
-This wording also harmonizes with the "unevaluated operand" phrase
-used in other places, there does not exist the definition of an
-"unevaluated context"
-<p/>
-<em>Note:</em> In the actually proposed wording this wording has been slightly reordered with the same effects. 
-</p>
-
-<p><strong>Howard's (old) proposed resolution:</strong></p>
-<blockquote class="note">
-<p>
-Update 20.10.4.3 [meta.unary.prop], table 49:
-</p>
-
-<table border="1">
-<tr>
-<td><tt>template &lt;class T&gt;
-struct is_destructible;</tt></td>
-<td>
-<del>For a complete type <tt>T</tt> and given <tt>template &lt;class U&gt; struct test { U u; };</tt>, <tt>test&lt;T&gt;::~test()</tt> is not deleted.
-</del>
-<br/>
-<ins>
-For object types, if the expression: <tt>std::declval&lt;T&amp;>().~T()</tt> is well-formed in an unevaluated context then
-<tt>is_destructible&lt;T>::value</tt> is <tt>true</tt>, otherwise it is <tt>false</tt>.
-<br/>
-For <tt>void</tt> types, <tt>is_destructible&lt;T>::value</tt> is <tt>false</tt>.
-<br/>
-For reference types, <tt>is_destructible&lt;T>::value</tt> is <tt>true</tt>.
-<br/>
-For function types, <tt>is_destructible&lt;T>::value</tt> is <tt>false</tt>.
-</ins>
-</td>
-<td><tt>T</tt> shall be a complete type, (possibly cv-qualified) <tt>void</tt>, or an array of unknown bound.</td>
-</tr>
-</table>
-</blockquote>
-<p>
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Tentatively Ready by the post-Kona issues processing subgroup.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Update 20.10.4.3 [meta.unary.prop], table 49:
-</p>
-
-<table border="1">
-<tr>
-<td><tt>template &lt;class T&gt;
-struct is_destructible;</tt></td>
-<td>
-<del>For a complete type <tt>T</tt> and given <tt>template &lt;class U&gt; struct test { U u; };</tt>, <tt>test&lt;T&gt;::~test()</tt> is not deleted.
-</del>
-<br/>
-<ins>
-For reference types, <tt>is_destructible&lt;T&gt;::value</tt> is <tt>true</tt>.<br/>
-For incomplete types and function types, <tt>is_destructible&lt;T&gt;::value</tt> is <tt>false</tt>.<br/>
-For object types and given <tt>U</tt> equal to <tt>remove_all_extents&lt;T&gt;::type</tt>,<br/> 
-if the expression <tt>std::declval&lt;U&amp;&gt;().~U()</tt> is well-formed when treated as an<br/>
-unevaluated operand (Clause 5 [expr]), then <tt>is_destructible&lt;T&gt;::value</tt> is <tt>true</tt>,<br/>
-otherwise it is <tt>false</tt>.<br/>
-</ins>
-</td>
-<td><tt>T</tt> shall be a complete type, (possibly cv-qualified) <tt>void</tt>, or an array of unknown bound.</td>
-</tr>
-</table>
-
-
-
-
-
-
-<hr>
-<h3><a name="2050"></a>2050. Unordered associative containers do not use <tt>allocator_traits</tt> to define member types</h3>
-<p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Tom Zieberman <b>Opened:</b> 2011-04-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The unordered associative containers define their member types <tt>reference</tt>, 
-<tt>const_reference</tt>, <tt>pointer</tt>, <tt>const_pointer</tt> in terms of 
-their template parameter <tt>Allocator</tt> (via <tt>allocator_type</tt> typedef). As 
-a consequence, only the allocator types, that provide sufficient typedefs, are usable 
-as allocators for unordered associative containers, while other containers do not have 
-this deficiency. In addition to that, the definitions of said typedefs are different 
-from ones used in the other containers. This is counterintuitive and introduces a certain 
-level of confusion. These issues can be fixed by defining <tt>pointer</tt> and 
-<tt>const_pointer</tt> typedefs in terms of <tt>allocator_traits&lt;Allocator&gt;</tt> 
-and by defining <tt>reference</tt> and <tt>const_reference</tt> in terms of 
-<tt>value_type</tt> as is done in the other containers.
-</p>
-
-<p><i>[
-2011 Bloomington.
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to the FDIS.</p>
-
-<ul>
-<li><p>Change 23.5.4.1 [unord.map.overview] paragraph 3 as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Key,
-            class T,
-            class Hash = hash&lt;Key&gt;,
-            class Pred = std::equal_to&lt;Key&gt;,
-            class Allocator = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt;
-  class unordered_map
-  {
-  public:
-    <i>// types</i>
-    typedef Key key_type;
-    typedef std::pair&lt;const Key, T&gt; value_type;
-    typedef T mapped_type;
-    typedef Hash hasher;
-    typedef Pred key_equal;
-    typedef Allocator allocator_type;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::pointer pointer;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::const_pointer const_pointer;
-    typedef <del>typename allocator_type::reference</del><ins>value_type&amp;</ins> reference;
-    typedef <del>typename allocator_type::const_reference</del><ins>const value_type&amp;</ins> const_reference;
-    typedef <i>implementation-defined</i> size_type;
-    typedef <i>implementation-defined</i> difference_type;
-
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.5.1 [unord.multimap.overview] paragraph 3 as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Key,
-            class T,
-            class Hash = hash&lt;Key&gt;,
-            class Pred = std::equal_to&lt;Key&gt;,
-            class Allocator = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt;
-  class unordered_multimap
-  {
-  public:
-    <i>// types</i>
-    typedef Key key_type;
-    typedef std::pair&lt;const Key, T&gt; value_type;
-    typedef T mapped_type;
-    typedef Hash hasher;
-    typedef Pred key_equal;
-    typedef Allocator allocator_type;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::pointer pointer;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::const_pointer const_pointer;
-    typedef <del>typename allocator_type::reference</del><ins>value_type&amp;</ins> reference;
-    typedef <del>typename allocator_type::const_reference</del><ins>const value_type&amp;</ins> const_reference;
-    typedef <i>implementation-defined</i> size_type;
-    typedef <i>implementation-defined</i> difference_type;
-
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.6.1 [unord.set.overview] paragraph 3 as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Key,
-            class Hash = hash&lt;Key&gt;,
-            class Pred = std::equal_to&lt;Key&gt;,
-            class Allocator = std::allocator&lt;Key&gt; &gt;
-  class unordered_set
-  {
-  public:
-    <i>// types</i>
-    typedef Key key_type;
-    typedef Key value_type;
-    typedef Hash hasher;
-    typedef Pred key_equal;
-    typedef Allocator allocator_type;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::pointer pointer;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::const_pointer const_pointer;
-    typedef <del>typename allocator_type::reference</del><ins>value_type&amp;</ins> reference;
-    typedef <del>typename allocator_type::const_reference</del><ins>const value_type&amp;</ins> const_reference;
-    typedef <i>implementation-defined</i> size_type;
-    typedef <i>implementation-defined</i> difference_type;
-
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.7.1 [unord.multiset.overview] paragraph 3 as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Key,
-            class Hash = hash&lt;Key&gt;,
-            class Pred = std::equal_to&lt;Key&gt;,
-            class Allocator = std::allocator&lt;Key&gt; &gt;
-  class unordered_multiset
-  {
-  public:
-    <i>// types</i>
-    typedef Key key_type;
-    typedef Key value_type;
-    typedef Hash hasher;
-    typedef Pred key_equal;
-    typedef Allocator allocator_type;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::pointer pointer;
-    typedef typename <del>allocator_type</del><ins>allocator_traits&lt;Allocator&gt;</ins>::const_pointer const_pointer;
-    typedef <del>typename allocator_type::reference</del><ins>value_type&amp;</ins> reference;
-    typedef <del>typename allocator_type::const_reference</del><ins>const value_type&amp;</ins> const_reference;
-    typedef <i>implementation-defined</i> size_type;
-    typedef <i>implementation-defined</i> difference_type;
-
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-</ul>
-
-
-
-
-
-
-<hr>
-<h3><a name="2052"></a>2052. Mixup between <tt>mapped_type</tt> and <tt>value_type</tt> for associative containers</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Marc Glisse <b>Opened:</b> 2011-05-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-(this is basically reopening the first part of issue <a href="lwg-closed.html#2006">2006</a>, as discussed in the thread 
-starting at c++std-lib-30698 )
-<p/>
-Section 23.2.4 [associative.reqmts]
-<p/>
-In Table 102, several uses of <tt>T</tt> (which means <tt>mapped_type</tt> here) should
-be <tt>value_type</tt> instead. This is almost editorial. For instance:
-</p>
-<blockquote><pre>
-a_uniq.emplace(args)
-</pre><p>
-<i>Requires</i>: <tt>T</tt> shall be <tt>EmplaceConstructible</tt> into <tt>X</tt> from args.
-<p/>
-<i>Effects</i>: Inserts a <tt>T</tt> object <tt>t</tt> constructed with
-<tt>std::forward&lt;Args&gt;(args)...</tt> if and only if there is no element in the
-container with key equivalent to the key of <tt>t</tt>. The <tt>bool</tt> component of
-the returned pair is true if and only if the insertion takes place, and the iterator component 
-of the pair points to the element with key equivalent to the key of <tt>t</tt>.
-</p></blockquote>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Not even an exhaustive list of problem locations. No reason to doubt issue.
-</p>
-<p>
-Pablo agrees to provide wording.
-</p>
-
-<p><i>[
-2011-09-04 Pablo Halpern provides improved wording
-]</i></p>
-
-
-<p><i>[2014-02-15 post-Issaquah session : move to Resolved]</i></p>
-
-<p>
-AJM to replace this note with a 'Resolved By...' after tracking down the exact sequence of events, but clearly resolved in C++14 DIS.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In both section 23.2.4 [associative.reqmts] Table 102 and 23.2.5 [unord.req], Table 103, make the following text replacements:
-</p>
-
-<table border="1">
-<tr> <td>Original text, in FDIS</td> <td>Replacement text</td> </tr>
-
-<tr> 
-<td><tt>T</tt> is CopyInsertable into <tt>X</tt> and <tt>CopyAssignable</tt>.</td>
-<td><tt>value_type</tt> is <tt>CopyInsertable</tt> into <tt>X</tt>, <tt>key_type</tt> is <tt>CopyAssignable</tt>, and
-<tt>mapped_type</tt> is <tt>CopyAssignable</tt> (for containers having a <tt>mapped_type</tt>)</td>    
-</tr>
-
-<tr> 
-<td><tt>T</tt> is <tt>CopyInsertable</tt></td>                                                
-<td><tt>value_type</tt> is CopyInsertable</td> 
-</tr>
-
-<tr> 
-<td><tt>T</tt> shall be <tt>CopyInsertable</tt></td>                                          
-<td><tt>value_type</tt> shall be CopyInsertable</td> 
-</tr>
-
-<tr> 
-<td><tt>T</tt> shall be <tt>MoveInsertable</tt></td>                                          
-<td><tt>value_type</tt> shall be MoveInsertable</td> 
-</tr>
-
-<tr> 
-<td><tt>T</tt> shall be <tt>EmplaceConstructible</tt></td>                                    
-<td><tt>value_type</tt> shall be EmplaceConstructible</td> 
-</tr>
-
-<tr> 
-<td><tt>T</tt> object</td>                                                                    
-<td><tt>value_type</tt> object</td> 
-</tr>
-</table>
-
-<p><i>[
-<b>Notes to the editor</b>: The above are carefully selected 
-phrases that can be used for global search-and-replace within 
-the specified sections without accidentally making changes to 
-correct uses <tt>T</tt>.
-]</i></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2053"></a>2053. Errors in <tt>regex</tt> bitmask types</h3>
-<p><b>Section:</b> 28.5 [re.const] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-05-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3110.html">N3110</a> 
-was applied to the WP some redundant "static" keywords were added and one form of initializer 
-which isn't valid for enumeration types was replaced with another form of invalid initializer.
-</p>
-
-<p><i>[
-2011 Bloomington.
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Change 28.5.1 [re.synopt] as indicated:</p>
-<blockquote><pre>
-namespace std {
-  namespace regex_constants {
-    typedef <i>T1</i> syntax_option_type;
-    <del>static </del>constexpr syntax_option_type icase = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type nosubs = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type optimize = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type collate = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type ECMAScript = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type basic = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type extended = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type awk = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type grep = <i>unspecified</i> ;
-    <del>static </del>constexpr syntax_option_type egrep = <i>unspecified</i> ;
-  }
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 28.5.2 [re.matchflag] as indicated:</p>
-<blockquote><pre>
-namespace std {
-  namespace regex_constants {
-    typedef <i>T2</i> match_flag_type;
-    <del>static </del>constexpr match_flag_type match_default<del> = 0</del><ins>{};</ins>
-    <del>static </del>constexpr match_flag_type match_not_bol = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_not_eol = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_not_bow = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_not_eow = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_any = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_not_null = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_continuous = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type match_prev_avail = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type format_default<del> = 0</del><ins>{}</ins>;
-    <del>static </del>constexpr match_flag_type format_sed = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type format_no_copy = <i>unspecified</i> ;
-    <del>static </del>constexpr match_flag_type format_first_only = <i>unspecified</i> ;
-  }
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 28.5.3 [re.err] as indicated:</p>
-<blockquote><pre>
-namespace std {
-  namespace regex_constants {
-    typedef <i>T3</i> error_type;
-    <del>static </del>constexpr error_type error_collate = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_ctype = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_escape = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_backref = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_brack = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_paren = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_brace = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_badbrace = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_range = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_space = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_badrepeat = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_complexity = <i>unspecified</i> ;
-    <del>static </del>constexpr error_type error_stack = <i>unspecified</i> ;
-  }
-}
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2054"></a>2054. <tt>time_point</tt> constructors need to be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 20.12.6 [time.point] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2011-05-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.12.6 [time.point], <tt>time_point::min()</tt> and <tt>time_point::max()</tt> 
-are listed as <tt>constexpr</tt>. However, <tt>time_point</tt> has no <tt>constexpr</tt> constructors, 
-so is not a literal type, and so these functions cannot be <tt>constexpr</tt> without adding a 
-<tt>constexpr</tt> constructor for implementation purposes.
-<p/>
-Proposed resolution: Add <tt>constexpr</tt> to the constructors of <tt>time_point</tt>. The effects of
-the constructor template basically imply that the member function <tt>time_since_epoch()</tt> is
-intended to be <tt>constexpr</tt> as well.
-</p>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-Resolved by adopting paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3469">n3469</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Alter the class template definition in 20.12.6 [time.point] as follows:</p>
-<blockquote><pre>
-template &lt;class Clock, class Duration = typename Clock::duration&gt;
-class time_point {
-  [&hellip;]
-public:
-  <i>// 20.11.6.1, construct:</i>
-  <ins>constexpr</ins> time_point(); <i>// has value epoch</i>
-  <ins>constexpr</ins> explicit time_point(const duration&amp; d); <i>// same as time_point() + d</i>
-  template &lt;class Duration2&gt;
-    <ins>constexpr</ins> time_point(const time_point&lt;clock, Duration2&gt;&amp; t);
-
-  <i>// 20.11.6.2, observer:</i>
-  <ins>constexpr</ins> duration time_since_epoch() const;
-  [&hellip;]
-};
-</pre></blockquote>
-</li>
-
-<li><p>Alter the declarations in 20.12.6.1 [time.point.cons]:</p>
-<blockquote><pre>
-<ins>constexpr</ins> time_point();
-</pre><blockquote><p>
--1- <i>Effects</i>: Constructs an object of type <tt>time_point</tt>, initializing <tt>d_</tt> with <tt>duration::zero()</tt>. Such a
-<tt>time_point</tt> object represents the epoch.
-</p></blockquote></blockquote>
-<blockquote><pre>
-<ins>constexpr explicit</ins> time_point(const duration&amp; d);
-</pre><blockquote><p>
--2- <i>Effects</i>: Constructs an object of type <tt>time_point</tt>, initializing <tt>d_</tt> with <tt>d</tt>. Such a 
-<tt>time_point</tt> object represents the epoch <tt>+ d</tt>.
-</p></blockquote></blockquote>
-<blockquote><pre>
-template &lt;class Duration2&gt;
-  <ins>constexpr</ins> time_point(const time_point&lt;clock, Duration2&gt;&amp; t);
-</pre><blockquote><p>
--3- <i>Remarks</i>: This constructor shall not participate in overload resolution unless <tt>Duration2</tt> is implicitly
-convertible to <tt>duration</tt>.
-<p/>
--4- <i>Effects</i>: Constructs an object of type <tt>time_point</tt>, initializing <tt>d_</tt> with <tt>t.time_since_epoch()</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li><p>Alter the declaration in 20.12.6.2 [time.point.observer]:</p>
-<blockquote><pre>
-<ins>constexpr</ins> duration time_since_epoch() const;
-</pre><blockquote><p>
--1- <i>Returns</i>: d_.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2056"></a>2056. <tt>future_errc</tt> enums start with value 0 (invalid value for <tt>broken_promise</tt>)</h3>
-<p><b>Section:</b> 30.6.1 [futures.overview] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2011-05-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.overview">issues</a> in [futures.overview].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 30.6.1 [futures.overview] <tt>enum class future_errc</tt> is defined as follows:
-</p><blockquote><pre>
-enum class future_errc {
-  broken_promise,
-  future_already_retrieved,
-  promise_already_satisfied,
-  no_state
-};
-</pre></blockquote><p>
-With this declaration <tt>broken_promise</tt> has value 0, which means that
-for a <tt>future_error f</tt> with this code
-</p><blockquote><pre>
-f.code().operator bool()
-</pre></blockquote><p>
-yields false, which makes no sense. 0 has to be reserved for "no error".
-So, the enums defined here have to start with 1.
-<p/>
-Howard, Anthony, and Jonathan have no objections.
-</p>
-<p>[Discussion in Bloomington 2011-08-16]
-</p>
-<p>
-Previous resolution:
-</p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>In 30.6.1 [futures.overview], header <tt>&lt;future&gt;</tt> synopsis, fix 
-the declaration of <tt>future_errc</tt> as follows:</p>
-<blockquote><pre>
-namespace std {
-  enum class future_errc {
-    <del>broken_promise,</del>
-    future_already_retrieved<ins> = 1</ins>,
-    promise_already_satisfied,
-    no_state<ins>,
-    broken_promise</ins>
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-</ol>
-</blockquote>
-<p>
-Is this resolution overspecified? These seem to be all implementation-defined. How do users add new values and not conflict with established error codes?
-</p><p>
-PJP proxy says: over-specified. boo.
-</p><p>
-Other error codes: look for <tt>is_error_code_enum</tt> specializations. Only one exists <tt>io_errc</tt>
-</p><p>
-Peter: I don't see any other parts of the standard that specify error codes where we have to do something similar.
-</p><p>
-Suggest that for every place where we add an error code, the following:
-</p>
-<ol>
-   <li> no zero values
-   </li><li> all implementation defined values, so future_already_retrieved = implementation_defined
-   </li><li> values are distinct
-</li></ol>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Tentatively Ready by the post-Kona issues processing subgroup.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<p>In 30.6.1 [futures.overview], header <tt>&lt;future&gt;</tt> synopsis, fix 
-the declaration of <tt>future_errc</tt> as follows:</p>
-
-<blockquote><pre>
-namespace std {
-  enum class future_errc {
-    broken_promise<ins> = <var>implementation defined</var></ins>,
-    future_already_retrieved<ins> = <var>implementation defined</var></ins>,
-    promise_already_satisfied<ins> = <var>implementation defined</var></ins>,
-    no_state<ins> = <var>implementation defined</var></ins>
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-<p>In 30.6.1 [futures.overview], header <tt>&lt;future&gt;</tt> synopsis, add a paragraph after paragraph 2 as follows:</p>
-
-<ins>The enum values of <tt>future_errc</tt> are distinct and not zero.</ins>
-
-
-
-
-<hr>
-<h3><a name="2057"></a>2057. <tt>time_point + duration</tt> semantics should be made <tt>constexpr</tt> conforming</h3>
-<p><b>Section:</b> 20.12.6.5 [time.point.nonmember] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-05-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It has been observed by LWG <a href="lwg-defects.html#2054">2054</a> that the specification of some <tt>time_point</tt> member functions
-already imply that <tt>time_point</tt> needs to be a literal type and suggests to specify the constructors
-and the member function <tt>time_since_epoch()</tt> as <tt>constexpr</tt> functions at the
-minimum necessary. Adding further <tt>constexpr</tt> specifier to other operations should
-clearly be allowed and should probably be done as well. But to allow for further <tt>constexpr</tt> 
-functions in the future requires that their semantics is compatible to operations allowed in <tt>constexpr</tt> 
-functions. This is already fine for all operations, except this binary plus operator:
-</p>
-<blockquote><pre>
-template &lt;class Clock, class Duration1, class Rep2, class Period2&gt;
-time_point&lt;Clock, typename common_type&lt;Duration1, duration&lt;Rep2, Period2&gt;&gt;::type&gt;
-operator+(const time_point&lt;Clock, Duration1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre><blockquote><p>
--1- <i>Returns</i>: <tt>CT(lhs) += rhs</tt>, where <tt>CT</tt> is the type of the return value.
-</p></blockquote></blockquote>
-<p>
-for similar reasons as those mentioned in <a href="lwg-defects.html#2020">2020</a>. The semantics should be fixed to allow
-for making them <tt>constexpr</tt>. This issue should also be considered as a placeholder for a request
-to make the remaining <tt>time_point</tt> operations similarly <tt>constexpr</tt> as had been done for 
-<tt>duration</tt>.
-</p>
-
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-Resolved by adopting paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3469">n3469</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>In 20.12.6.5 [time.point.nonmember], p.1 change the <i>Returns</i> element semantics as indicated:</p>
-<blockquote><pre>
-template &lt;class Clock, class Duration1, class Rep2, class Period2&gt;
-time_point&lt;Clock, typename common_type&lt;Duration1, duration&lt;Rep2, Period2&gt;&gt;::type&gt;
-operator+(const time_point&lt;Clock, Duration1&gt;&amp; lhs, const duration&lt;Rep2, Period2&gt;&amp; rhs);
-</pre><blockquote><p>
--1- <i>Returns</i>: <tt><del>CT(lhs) += rhs</del><ins>CT(lhs.time_since_epoch() + rhs)</ins></tt>, where <tt>CT</tt> 
-is the type of the return value.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2058"></a>2058. <tt>valarray</tt> and <tt>begin&#47;end</tt></h3>
-<p><b>Section:</b> 26.6 [numarray] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Gabriel Dos Reis <b>Opened:</b> 2011-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#numarray">issues</a> in [numarray].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It was just brought to my attention that the pair of functions
-<tt>begin&#47;end</tt> were added to <tt>valarray</tt> component.
-Those additions strike me as counter to the long standing agreement
-that <tt>valarray&lt;T&gt;</tt> is not yet another container. Valarray values
-are in general supposed to be treated as a whole, and as such
-has a loose specification allowing expression template techniques.
-<p/>
-The addition of these functions sound to me as making it much harder
-(or close to impossible) to effectively use expression templates
-as implementation techniques, for no clear benefits.
-<p/>
-My recommendation would be to drop <tt>begin&#47;end</tt> - or at least for the
-<tt>const valarray&lt;T&gt;&amp;</tt> version. I strongly believe those 
-are defects.
-</p>
-<p><i>[This issue was discussed on the library reflector starting from c++std-lib-30761.
-Some of the key conclusions of this discussion were:]</i></p>
-
-<ol>
-<li>The <tt>begin&#47;end</tt> members were added to allow <tt>valarray</tt> to participate
-in the new range-based for-loop by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2930.html">n2930</a>
-and not to make them container-like.</li>
-<li>It is currently underspecified when the iterator values returned from
-<tt>begin&#47;end</tt> become invalidated. To fix this, these invalidation rules need at
-least to reflect the invalidation rules of the references returned by the
-<tt>operator[]</tt> overloads of <tt>valarray</tt> (26.6.2.4 [valarray.access]).
-</li>
-<li>A further problem is that the requirements expressed in 26.6.1 [valarray.syn] p.3-5
-enforce an implementation to provide further overloads of <tt>begin&#47;end</tt>, if the
-replacement type technique is used (which was clearly part of the design of <tt>valarray</tt>).
-Providing such additional overloads would also lead to life-time problems in examples like 
-<tt>begin(x + y)</tt> where <tt>x</tt> and <tt>y</tt> are expressions involving <tt>valarray</tt> 
-objects. To fix this, the <tt>begin&#47;end</tt> overloads could be explicitly excluded from the 
-general statements of 26.6.1 [valarray.syn] p.3-5. This would make it unspecified
-whether the expression <tt>begin(x + y)</tt> would be well-formed, portable code would
-need to write this as <tt>begin(std::valarray&lt;T&gt;(x + y))</tt>.</li>
-</ol>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-The intent of these overloads is entirely to support the new for syntax, and not to create
-new containers.
-</p>
-
-<p>
-Stefanus provides suggested wording.
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Tenatively Ready by post-meeting issues processing group, after confirmation
-from Gaby.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 26.6.1 [valarray.syn]&#47;4, make the following <ins>insertion</ins>:
-</p>
-
-<p>
-4 Implementations introducing such replacement types shall provide additional functions and operators as
-follows:
-</p>
-<ul>
-<li>for every function taking a <tt>const valarray&lt;T&gt;&amp;</tt> <ins>other than <tt>begin</tt> and <tt>end</tt>
-(26.6.10 [valarray.range])</ins>, identical functions taking the replacement types shall be added;
-</li>
-<li>
-for every function taking two <tt>const valarray&lt;T&gt;&amp;</tt> arguments, identical functions taking every combination
-of <tt>const valarray&lt;T&gt;&amp;</tt> and replacement types shall be added.
-</li>
-</ul>
-
-<p>
-In 26.6.10 [valarray.range], make the following <ins>insertion</ins>:
-</p>
-<p> 
-1 In the <tt>begin</tt> and <tt>end</tt> function templates that follow, <i>unspecified</i>1 is a type that meets
-the requirements of a mutable random access iterator (24.2.7) whose <tt>value_type</tt> is the template parameter
-<tt>T</tt> and whose <tt>reference</tt> type is <tt>T&amp;</tt>. <i>unspecified</i>2 is a type that meets the
-requirements of a constant random access iterator (24.2.7) whose <tt>value_type</tt> is the template parameter
-<tt>T</tt> and whose <tt>reference</tt> type is <tt>const T&amp;</tt>.
-</p>
-<p><ins>
-2 The iterators  returned by <tt>begin</tt> and <tt>end</tt> for an array are guaranteed to be valid until the
-member function <tt>resize(size_t, T)</tt> (26.6.2.8 [valarray.members]) is called for that array or until
-the lifetime of that array ends, whichever happens first.
-</ins></p>
-
-
-
-
-
-<hr>
-<h3><a name="2059"></a>2059. C++0x ambiguity problem with <tt>map::erase</tt></h3>
-<p><b>Section:</b> 23.4.4 [map] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Christopher Jefferson <b>Opened:</b> 2011-05-18 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#map">issues</a> in [map].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>map::erase</tt> (and several related methods) took an iterator in C++03, but take a <tt>const_iterator</tt> 
-in C++0x. This breaks code where the map's <tt>key_type</tt> has a constructor which accepts an iterator 
-(for example a template constructor), as the compiler cannot choose between <tt>erase(const key_type&amp;)</tt> 
-and <tt>erase(const_iterator)</tt>.</p>
-<blockquote><pre>
-#include &lt;map&gt;
-
-struct X
-{
-  template&lt;typename T&gt;
-  X(T&amp;) {}
-};
-
-bool operator&lt;(const X&amp;, const X&amp;) { return false; }
-
-void erasor(std::map&lt;X,int&gt;&amp; s, X x)
-{
-  std::map&lt;X,int&gt;::iterator it = s.find(x);
-  if (it != s.end())
-    s.erase(it);
-}
-</pre></blockquote>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-This issue affects only associative container <tt>erase</tt> calls, and is not more general, as these are the
-only functions that are also overloaded on another single arguement that might cause confusion - the <tt>erase</tt>
-by key method.  The complete resolution should simply restore the <tt>iterator</tt> overload in addition to the
-<tt>const_iterator</tt> overload for all eight associative containers. 
-</p>
-
-<p>
-Proposed wording supplied by Alan Talbot, and moved to Review.
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved back to Open by post-meeting issues processing group.
-</p>
-<p>
-Pablo very unhappy about case of breaking code with ambiguous conversion between both iterator types.
-</p>
-<p>
-Alisdair strongly in favor of proposed resolution, this change from C++11 bit Chris in real code,
-and it took a while to track down the cause.
-</p>
-<p>
-Move to open, bring in front of a larger group
-</p>
-<p>
-Proposed wording from Jeremiah:
-
-<tt>erase(key)</tt> shall not participate in overload resolution if <tt>iterator</tt> is
-convertible to <tt>key</tt>.
-
-Note that this means making <tt>erase(key)</tt> a template-method
-</p>
-<p>
-Poll Chris to find out if he already fixed his code, or fixed his library
-</p>
-<p>
-Jeremiah - allow both overloads, but <tt>enable_if</tt> the <tt>const_iterator</tt> form as
-a template, requiring <tt>is_same</tt> to match only <tt>const_iterator</tt>.
-</p>
-<p>
-Poll PJ to see if he has already applied this fix?
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-AM: To summarize, we changed a signature and code broke. At what point do we stop and accept breakage in increasingly obscure code? 
-VV: libc++ is still broken, but libstdc++ works, so they've fixed this &mdash; perhaps using this PR? [Checks] Yes, libstdc++ 
-uses this solution, and has a comment pointing to LWG 2059. AM: This issue hasn't been looked at since Kona. In any case, we 
-already have implementation experience now.
-<p/>
-AM: I'd say let's ship it. We already have implementation experience (libstdc++ and MSVS). MC: And "tentatively ready" lets me 
-try to implement this and see how it works. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Editorial note: The following things are different between 23.2.4 [associative.reqmts] p.8 and
-23.2.5 [unord.req] p.10. These should probably be reconciled.
-</p>
-<blockquote>
-<ol>
-<li>First uses the convention "denotes";  second uses the convention "is".</li>
-<li>First redundantly says: "If no such element exists, returns a.end()." in erase table entry, second does not.</li>
-</ol>
-</blockquote>
-
-<p>
-23.2.4 [associative.reqmts] Associative containers
-</p>
-<p>
-8 In Table 102, <tt>X</tt> denotes an associative container class, <tt>a</tt> denotes a value of <tt>X</tt>, <tt>a_uniq</tt>
-denotes a value of <tt>X</tt> when <tt>X</tt> supports unique keys, <tt>a_eq</tt> denotes a value of <tt>X</tt> when
-<tt>X</tt> supports multiple keys, <tt>u</tt> denotes an identifier, <tt>i</tt> and <tt>j</tt> satisfy input iterator
-requirements and refer to elements implicitly convertible to <tt>value_type</tt>, <tt>[i,j)</tt> denotes a valid range,
-<tt>p</tt> denotes a valid const iterator to <tt>a</tt>, <tt>q</tt> denotes a valid dereferenceable const iterator to <tt>a</tt>,
-<ins><tt>r</tt> denotes a valid dereferenceable iterator to a,</ins> <tt>[q1, q2)</tt> denotes a valid range of const iterators
-in <tt>a</tt>, <tt>il</tt> designates an object of type <tt>initializer_list&lt;value_type></tt>, <tt>t</tt> denotes a value of
-<tt>X::value_type</tt>, <tt>k</tt> denotes a value of <tt>X::key_type</tt> and <tt>c</tt> denotes a value of type
-<tt>X::key_compare</tt>. <tt>A</tt> denotes the storage allocator used by <tt>X</tt>, if any, or
-<tt>std::allocator&lt;X::value_type></tt> otherwise, and <tt>m</tt> denotes an allocator of a type convertible to <tt>A</tt>.
-</p>
-
-<p>
-23.2.4 [associative.reqmts] Associative containers Table 102
-</p>
-<p>
-Add row:
-</p>
-<ins>
-<table border="1">
-<tr>
-<td><tt>a.erase(r)</tt></td>
-<td><tt>iterator</tt></td>
-<td>
-erases the element pointed to by <tt>r</tt>. Returns an iterator pointing to the element immediately following <tt>r</tt>
-prior to the element being erased. If no such element exists, returns <tt>a.end()</tt>.
-</td>
-<td>amortized constant</td>
-</tr>
-</table>
-</ins>
-
-<p>
-23.2.5 [unord.req] Unordered associative containers</p>
-<p>
-10 In table 103: <tt>X</tt> is an unordered associative container class, <tt>a</tt> is an object of type <tt>X</tt>,
-<tt>b</tt> is a possibly const object of type <tt>X</tt>, <tt>a_uniq</tt> is an object of type <tt>X</tt> when
-<tt>X</tt> supports unique keys, <tt>a_eq</tt> is an object of type <tt>X</tt> when <tt>X</tt> supports equivalent keys,
-<tt>i</tt> and <tt>j</tt> are input iterators that refer to <tt>value_type</tt>, <tt>[i, j)</tt> is a valid range,
-<tt>p</tt> and <tt>q2</tt> are valid const iterators to <tt>a</tt>, <tt>q</tt> and <tt>q1</tt> are valid dereferenceable
-const iterators to <tt>a</tt>, <ins><tt>r</tt> is a valid dereferenceable iterator to a,</ins> <tt>[q1,q2)</tt> is a
-valid range in <tt>a</tt>, <tt>il</tt> designates an object of type <tt>initializer_list&lt;value_type></tt>,
-<tt>t</tt> is a value of type <tt>X::value_type</tt>, <tt>k</tt> is a value of type <tt>key_type</tt>, <tt>hf</tt> is a
-possibly const value of type <tt>hasher</tt>, <tt>eq</tt> is a possibly const value of type <tt>key_equal</tt>,
-<tt>n</tt> is a value of type <tt>size_type</tt>, and <tt>z</tt> is a value of type <tt>float</tt>.
-</p>
-
-<p>
-23.2.5 [unord.req] Unordered associative containers Table 103
-</p>
-<p>
-Add row:
-</p>
-<ins>
-<table border="1">
-<tr>
-<td><tt>a.erase(r)</tt></td>
-<td><tt>iterator</tt></td>
-<td>
-Erases the element pointed to by <tt>r</tt>. Returns the iterator immediately following <tt>r</tt> prior to the erasure.
-</td>
-<td>Average case O(1), worst case O(<tt>a.size()</tt>).</td>
-</tr>
-</table>
-</ins>
-
-<p>
-23.4.4.1 [map.overview] Class template map overview p. 2
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-23.4.5.1 [multimap.overview] Class template multimap overview p. 2
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-23.4.6.1 [set.overview] Class template set overview p. 2
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-23.4.7.1 [multiset.overview] Class template multiset overview 
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-23.5.4.1 [unord.map.overview] Class template unordered_map overview p. 3
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-23.5.5.1 [unord.multimap.overview] Class template unordered_multimap overview p. 3
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-23.5.6.1 [unord.set.overview] Class template unordered_set overview p. 3
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-
-<p>
-23.5.7.1 [unord.multiset.overview] Class template unordered_multiset overview p. 3
-</p>
-<pre>
-<ins>iterator erase(iterator position);</ins>
-iterator erase(const_iterator position);
-size_type erase(const key_type&amp; x);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-
-<p>
-C.2.13 [diff.cpp03.containers] C.2.12 Clause 23: containers library 
-</p>
-<p>
-23.2.3, 23.2.4
-</p>
-<p>
-Change: Signature changes: from iterator to const_iterator parameters
-</p>
-<p>
-Rationale: Overspecification. Effects: The signatures of the following member functions changed from
-taking an iterator to taking a const_iterator:
-</p>
-<ul>
-<li>insert(iter, val) for vector, deque, list, set, multiset, map, multimap</li>
-<li>insert(pos, beg, end) for vector, deque, list, forward_list</li>
-<li><del>erase(iter) for set, multiset, map, multimap</del></li>
-<li>erase(begin, end) for set, multiset, map, multimap</li>
-<li>all forms of list::splice</li>
-<li>all forms of list::merge</li>
-</ul>
-<p>
-Valid C++ 2003 code that uses these functions may fail to compile with this International Standard.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2061"></a>2061. <tt>make_move_iterator</tt> and arrays</h3>
-<p><b>Section:</b> 24.3 [iterator.synopsis], 24.5.3 [move.iterators] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Marc Glisse <b>Opened:</b> 2011-05-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.synopsis">issues</a> in [iterator.synopsis].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The standard library always passes template iterators by value and never by reference, 
-which has the nice effect that an array decays to a pointer. There is one exception: 
-<tt>make_move_iterator</tt>.
-</p>
-<blockquote><pre>
-#include &lt;iterator&gt;
-int main(){
-  int a[]={1,2,3,4};
-  std::make_move_iterator(a+4);
-  std::make_move_iterator(a); // fails here
-}
-</pre></blockquote>
-
-<p><i>[
-2011 Bloomington.
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Modify the header <tt>&lt;iterator&gt;</tt> synopsis in 24.3 [iterator.synopsis]:</p>
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  template &lt;class Iterator&gt;
-  move_iterator&lt;Iterator&gt; make_move_iterator(<del>const Iterator&amp;</del><ins>Iterator</ins> i);
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify the class template <tt>move_iterator</tt> synopsis in 24.5.3.1 [move.iterator]:</p>
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  template &lt;class Iterator&gt;
-  move_iterator&lt;Iterator&gt; make_move_iterator(<del>const Iterator&amp;</del><ins>Iterator</ins> i);
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify 24.5.3.3.14 [move.iter.nonmember]:</p>
-<blockquote><pre>
-template &lt;class Iterator&gt;
-move_iterator&lt;Iterator&gt; make_move_iterator(<del>const Iterator&amp;</del><ins>Iterator</ins> i);
-</pre><blockquote><p>
--3- <i>Returns</i>: <tt>move_iterator&lt;Iterator&gt;(i)</tt>.
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2063"></a>2063. Contradictory requirements for string move assignment</h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-05-29 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-21.4.1 [string.require]&#47;p4 says that <tt>basic_string</tt> is an "allocator-aware" 
-container and behaves as described in 23.2.1 [container.requirements.general].
-<p/>
-23.2.1 [container.requirements.general] describes move assignment in p7 and Table 99.
-<p/>
-If <tt>allocator_traits&lt;allocator_type&gt;::propagate_on_container_move_assignment::value</tt> 
-is false, and if the allocators stored in the lhs and rhs sides are not equal, then move 
-assigning a string has the same semantics as copy assigning a string as far as resources are 
-concerned (resources can not be transferred). And in this event, the lhs may have to acquire 
-resources to gain sufficient capacity to store a copy of the rhs.
-<p/>
-However 21.4.2 [string.cons]&#47;p22 says:
-</p><blockquote><pre>
-basic_string&lt;charT,traits,Allocator&gt;&amp;
-operator=(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; str) noexcept;
-</pre><blockquote><p>
-<i>Effects</i>: If <tt>*this</tt> and <tt>str</tt> are not the same object, modifies <tt>*this</tt> 
-as shown in Table 71. [<i>Note</i>: A valid implementation is <tt>swap(str)</tt>. &mdash; <i>end note</i> ]
-</p></blockquote></blockquote><p>
-These two specifications for <tt>basic_string::operator=(basic_string&amp;&amp;)</tt> are in conflict with 
-each other. It is not possible to implement a <tt>basic_string</tt> which satisfies both requirements.
-<p/>
-Additionally assign from an rvalue <tt>basic_string</tt> is defined as:
-</p><blockquote><pre>
-basic_string&amp; assign(basic_string&amp;&amp; str) noexcept;
-</pre><blockquote><p>
-<i>Effects</i>: The function replaces the string controlled by <tt>*this</tt> with a string of length 
-<tt>str.size()</tt> whose elements are a copy of the string controlled by <tt>str</tt>. [ <i>Note</i>: A valid 
-implementation is <tt>swap(str)</tt>. &mdash; <i>end note</i> ]
-</p></blockquote></blockquote><p>
-It seems contradictory that this member can be sensitive to <tt>propagate_on_container_swap</tt> instead 
-of <tt>propagate_on_container_move_assignment</tt>.  Indeed, there is a very subtle chance for undefined 
-behavior here:  If the implementation implements this in terms of <tt>swap</tt>, and if 
-<tt>propagate_on_container_swap</tt> is false, and if the two allocators are unequal, the behavior 
-is undefined, and will likely lead to memory corruption.  That's a lot to go wrong under a member 
-named "assign".
-</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-Alisdair: Can this be conditional <tt>noexcept</tt>?
-</p>
-<p>
-Pablo: We said we were not going to put in many conditional <tt>noexcept</tt>s. Problem is not allocator, but non-normative definition. It says swap is a valid operation which it is not.
-</p>
-<p>
-Dave: Move assignment is not a critical method.
-</p>
-<p>
-Alisdair: Was confusing assignment and construction.
-</p>
-<p>
-Dave: Move construction is critical for efficiency.
-</p>
-<p>
-Kyle: Is it possible to test for <tt>noexcept</tt>.
-</p>
-<p>
-Alisdair: Yes, query the <tt>noexcept</tt> operator.
-</p>
-<p>
-Alisdair: Agreed there is a problem that we cannot unconditionally mark these operations as <tt>noexcept</tt>.
-</p>
-<p>
-Pablo: How come swap is not defined in alloc
-</p>
-<p>
-Alisdair: It is in utility.
-</p>
-<p>
-Pablo: Swap has a conditional <tt>noexcept</tt>. Is no throw move constructable, is no throw move assignable.
-</p>
-<p>
-Pablo: Not critical for strings or containers.
-</p>
-<p>
-Kyle: Why?
-</p>
-<p>
-Pablo: They do not use the default swap.
-</p>
-<p>
-Dave: Important for deduction in other types.
-</p>
-<p>
-Alisdair: Would change the policy we adopted during FDIS mode.
-</p>
-<p>
-Pablo: Keep it simple and get some vendor experience.
-</p>
-<p>
-Alisdair: Is this wording correct? Concerned with bullet 2.
-</p>
-<p>
-Pablo: Where does it reference containers section.
-</p>
-<p>
-Alisdair: String is a container.
-</p>
-<p>
-Alisdair: We should not remove redundancy piecemeal.
-</p>
-<p>
-Pablo: I agree. This is a deviation from rest of string. Missing forward reference to containers section.
-</p>
-<p>
-Pablo: To fix section 2. Only the note needs to be removed. The rest needs to be a forward reference to containers.
-</p>
-<p>
-Alisdair: That is a new issue.
-</p>
-<p>
-Pablo: Not really. Talking about adding one sentence, saying that basic string is a container.
-</p>
-<p>
-Dave: That is not just a forward reference, it is a semantic change.
-</p>
-<p>
-PJ: We intended to make it look like a container, but it did not satisfy all the requirements.
-</p>
-<p>
-Pablo: Clause 1 is correct. Clause 2 is removing note and <tt>noexcept</tt> (do not remove the rest). Clause 3 is correct.
-</p>
-<p>
-Alisdair: Not sure data() is correct (in clause 2).
-</p>
-<p>
-Conclusion: Move to open, Alisdair and Pablo volunteered to provide wording
-</p>
-
-<p><i>[
-originally proposed wording:
-]</i></p>
-
-
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Modify the class template <tt>basic_string</tt> synopsis in 21.4 [basic.string]:</p>
-<blockquote><pre>
-namespace std {
-  template&lt;class charT, class traits = char_traits&lt;charT&gt;,
-    class Allocator = allocator&lt;charT&gt; &gt;
-  class basic_string {
-  public:
-    [&hellip;]
-    basic_string&amp; operator=(basic_string&amp;&amp; str) <del>noexcept</del>;
-    [&hellip;]
-    basic_string&amp; assign(basic_string&amp;&amp; str) <del>noexcept</del>;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Remove the definition of the <tt>basic_string</tt> move assignment operator from 21.4.2 [string.cons] 
-entirely, including Table 71 &mdash; <tt>operator=(const basic_string&lt;charT, traits, Allocator&gt;&amp;&amp;)</tt>.
-This is consistent with how we define move assignment for the containers in Clause 23:</p>
-<blockquote><pre>
-<del>basic_string&lt;charT,traits,Allocator&gt;&amp;
-operator=(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; str) noexcept;</del>
-</pre><blockquote><p>
-<del>-22- <i>Effects</i>: If <tt>*this</tt> and <tt>str</tt> are not the same object, modifies <tt>*this</tt> as shown 
-in Table 71. [ <i>Note</i>: A valid implementation is <tt>swap(str)</tt>. &mdash; <i>end note</i> ]</del>
-<p/>
-<del>-23- If <tt>*this</tt> and <tt>str</tt> are the same object, the member has no effect.</del>
-<p/>
-<del>-24- <i>Returns</i>: <tt>*this</tt></del>
-</p></blockquote></blockquote>
-<blockquote>
-<table border="1">
-<caption><del>Table 71 &mdash; <tt>operator=(const basic_string&lt;charT, traits, Allocator&gt;&amp;&amp;)</tt></del></caption>
-
-<tr>
-<th><del>Element</del></th>
-<th><del>Value</del></th>
-</tr>
-
-<tr>
-<td><del><tt>data()</tt></del></td>
-<td><del>points at the array whose first element was pointed
-at by <tt>str.data()</tt></del></td>
-</tr>
-
-<tr>
-<td><del><tt>size()</tt></del></td>
-<td><del>previous value of <tt>str.size()</tt></del></td>
-</tr>
-
-<tr>
-<td><del><tt>capacity()</tt></del></td>
-<td><del>a value at least as large as <tt>size()</tt></del></td>
-</tr>
-
-</table> 
-</blockquote>
-</li>
-
-<li><p>Modify the paragraphs prior to 21.4.6.3 [string::assign] p.3 as indicated (The
-first insertion recommends a separate paragraph number for the indicated paragraph):</p>
-<blockquote><pre>
-basic_string&amp; assign(basic_string&amp;&amp; str) <del>noexcept</del>;
-</pre><blockquote><p>
-<ins>-?-</ins> <i>Effects</i>: <ins>Equivalent to <tt>*this = std::move(str)</tt>.</ins>
-<del>The function replaces the string controlled by <tt>*this</tt> with a string of length 
-<tt>str.size()</tt> whose elements are a copy of the string controlled by <tt>str</tt>. 
-[ <i>Note</i>: A valid implementation is <tt>swap(str)</tt>. &mdash; <i>end note</i> ]</del>
-<p/>
--3- <i>Returns</i>: <tt>*this</tt>
-</p></blockquote></blockquote>
-
-</li>
-</ol>
-
-<p><i>[
-2012-08-11 Joe Gottman observes:
-]</i></p>
-
-
-<blockquote>
-<p>
-One of the effects of <tt>basic_string</tt>'s move-assignment operator (21.4.2 [string.cons], Table 71) is
-</p>
-<blockquote>
-
-<table border="1">
-
-<tr>
-<th>Element</th>
-<th>Value</th>
-</tr>
-
-<tr>
-<td><tt>data()</tt></td>
-<td>points at the array whose first element was pointed at by <tt>str.data()</tt></td>
-</tr>
-
-</table> 
-
-</blockquote>
-<p>
-If a string implementation uses the small-string optimization and the input string <tt>str</tt> is small enough 
-to make use of it, this effect is impossible to achieve. To use the small string optimization, a string has to 
-be implemented using something like
-</p>
-<blockquote><pre>
-union
-{
-   char buffer[SMALL_STRING_SIZE];
-   char *pdata;
-};
-</pre></blockquote>
-<p>
-When the string is small enough to fit inside <tt>buffer</tt>, the <tt>data()</tt> member function returns 
-<tt>static_cast&lt;const char *&gt;(buffer)</tt>, and since <tt>buffer</tt> is an array variable, there 
-is no way to implement move so that the moved-to string's <tt>buffer</tt> member variable is equal to 
-<tt>this->buffer</tt>.
-<p/>
-Resolution proposal:
-<p/>
-Change Table 71 to read:
-</p>
-<blockquote>
-
-<table border="1">
-
-<tr>
-<th>Element</th>
-<th>Value</th>
-</tr>
-
-<tr>
-<td><tt>data()</tt></td>
-<td>points at the array <del>whose first element was pointed at by <tt>str.data()</tt></del>
-<ins>that contains the same characters in the same order as <tt>str.data()</tt> contained before 
-<tt>operator=()</tt> was called</ins></td>
-</tr>
-
-</table> 
-
-</blockquote>
-<blockquote>
-</blockquote>
-</blockquote>
-
-<p><i>[2015-05-07, Lenexa]</i></p>
-
-<p>
-Howard suggests improved wording
-<p/>
-Move to Immediate
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li><p>Modify the class template <tt>basic_string</tt> synopsis in 21.4 [basic.string]:</p>
-<blockquote><pre>
-namespace std {
-  template&lt;class charT, class traits = char_traits&lt;charT&gt;,
-    class Allocator = allocator&lt;charT&gt; &gt;
-  class basic_string {
-  public:
-    [&hellip;]
-    basic_string&amp; assign(basic_string&amp;&amp; str) noexcept<ins>(
-         allocator_traits&lt;Allocator&gt;::propagate_on_container_move_assignment::value ||
-           allocator_traits&lt;Allocator&gt;::is_always_equal::value)</ins>;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.2 [string.cons]/p21-23:</p>
-<blockquote><pre>
-basic_string&amp;
-operator=(basic_string&amp;&amp; str) noexcept(
-         allocator_traits&lt;Allocator&gt;::propagate_on_container_move_assignment::value ||
-           allocator_traits&lt;Allocator&gt;::is_always_equal::value);
-</pre><blockquote><p>
--21- <i>Effects</i>: <del>If <tt>*this</tt> and <tt>str</tt> are not the same object, modifies <tt>*this</tt> as shown
-in Table 71. [ <i>Note</i>: A valid implementation is <tt>swap(str)</tt>. &mdash; <i>end note</i> ]</del>
-<ins>Move assigns as a sequence container ([container.requirements]), except that iterators, pointers and references may be invalidated.</ins>
-<p/>
-<del>-22- If <tt>*this</tt> and <tt>str</tt> are the same object, the member has no effect.</del>
-<p/>
--23- <i>Returns</i>: <tt>*this</tt>
-</p></blockquote></blockquote>
-<blockquote>
-<table border="1">
-<caption><del>Table 71 &mdash; <tt>operator=(basic_string&amp;&amp;)</tt> effects</del></caption>
-
-<tr>
-<th><del>Element</del></th>
-<th><del>Value</del></th>
-</tr>
-
-<tr>
-<td><del><tt>data()</tt></del></td>
-<td><del>points at the array whose first element was pointed
-at by <tt>str.data()</tt></del></td>
-</tr>
-
-<tr>
-<td><del><tt>size()</tt></del></td>
-<td><del>previous value of <tt>str.size()</tt></del></td>
-</tr>
-
-<tr>
-<td><del><tt>capacity()</tt></del></td>
-<td><del>a value at least as large as <tt>size()</tt></del></td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li><p>Modify the paragraphs prior to 21.4.6.3 [string::assign] p.3 as indicated</p>
-<blockquote><pre>
-basic_string&amp; assign(basic_string&amp;&amp; str) noexcept<ins>(
-         allocator_traits&lt;Allocator&gt;::propagate_on_container_move_assignment::value ||
-           allocator_traits&lt;Allocator&gt;::is_always_equal::value)</ins>;
-</pre><blockquote><p>
--3- <i>Effects</i>: <ins>Equivalent to <tt>*this = std::move(str)</tt>.</ins>
-<del>The function replaces the string controlled by <tt>*this</tt> with a string of length
-<tt>str.size()</tt> whose elements are a copy of the string controlled by <tt>str</tt>.
-[ <i>Note</i>: A valid implementation is <tt>swap(str)</tt>. &mdash; <i>end note</i> ]</del>
-<p/>
--4- <i>Returns</i>: <tt>*this</tt>
-</p></blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2064"></a>2064. More <tt>noexcept</tt> issues in <tt>basic_string</tt></h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-05-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The following inconsistencies regarding <tt>noexcept</tt> for <tt>basic_string</tt> are noted.
-<p/>
-Member swap is not marked <tt>noexcept</tt>:
-</p><blockquote><pre>
-void swap(basic_string&amp; str);
-</pre></blockquote><p>
-But the global swap is marked <tt>noexcept</tt>:
-</p><blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-void swap(basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-          basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <span style="color:#C80000;font-weight:bolder">noexcept</span>;
-</pre></blockquote><p>
-But only in the definition, not in the synopsis.
-<p/>
-All comparison operators are marked <tt>noexcept</tt> in their definitions, but not in the synopsis.
-<p/>
-The compare function that takes a pointer:
-</p><blockquote><pre>
-int compare(const charT *s) const;
-</pre></blockquote><p>
-is not marked <tt>noexcept</tt>. But some of the comparison functions which are marked <tt>noexcept</tt> 
-(only in their definition) are specified to call the throwing compare operator:
-</p><blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator==(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                const charT* rhs) <span style="color:#C80000;font-weight:bolder">noexcept</span>;
-</pre><blockquote><p>
-<i>Returns</i>: <tt>lhs.compare(rhs) == 0</tt>.
-</p></blockquote></blockquote>
-<p>
-All functions with a narrow contract should not be declared as <tt>noexcept</tt> according to
-the guidelines presented in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3279.pdf">n3279</a>.
-Among these narrow contract functions are the <tt>swap</tt> functions (23.2.1 [container.requirements.general] p. 8) 
-and functions with non-<tt>NULL</tt> <tt>const charT*</tt> parameters.
-</p>
-<p><i>[2011-06-08 Daniel provides wording]</i></p>
-
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS. Both move-assignment operator and the moving <tt>assign</tt>
-function are not touched by this issue, because they are handled separately by issue <a href="lwg-defects.html#2063">2063</a>.</p>
-<ol>
-<li><p>Modify the header <tt>&lt;string&gt;</tt> synopsis in 21.3 [string.classes] as 
-indicated (Rationale: Adding <tt>noexcept</tt> to these specific overloads is in sync with
-applying the same rule to specific overloads of the member functions <tt>find</tt>, <tt>compare</tt>, etc.
-This approach deviates from that taken in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3279.pdf">n3279</a>,
-but seems more consistent given similar application for comparable member functions):</p>
-
-<blockquote><pre>
-#include &lt;initializer_list&gt;
-
-namespace std {
-
-  [&hellip;]
-  template&lt;class charT, class traits, class Allocator&gt;
-    bool operator==(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                    const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <ins>noexcept</ins>;
-  [&hellip;]
-  template&lt;class charT, class traits, class Allocator&gt;
-    bool operator!=(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                    const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <ins>noexcept</ins>;
-  [&hellip;]
-
-  template&lt;class charT, class traits, class Allocator&gt;
-    bool operator&lt;(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                   const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <ins>noexcept</ins>;
-  [&hellip;]
-  template&lt;class charT, class traits, class Allocator&gt;
-    bool operator&gt;(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                   const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <ins>noexcept</ins>;
-  [&hellip;]
-
-  template&lt;class charT, class traits, class Allocator&gt;
-    bool operator&lt;=(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                    const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <ins>noexcept</ins>;
-  [&hellip;]
-  template&lt;class charT, class traits, class Allocator&gt;
-    bool operator&gt;=(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                    const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <ins>noexcept</ins>;
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Modify the class template <tt>basic_string</tt> synopsis in 21.4 [basic.string] as 
-indicated (Remark 1: The <tt>noexcept</tt> at the move-constructor is fine, because even for a
-small-object optimization there is no problem here, because <tt>basic_string::value_type</tt>
-is required to be a non-array POD as of 21.1 [strings.general] p1, Remark 2: This
-proposal removes the <tt>noexcept</tt> at single character overloads of <tt>find</tt>, <tt>rfind</tt>,
-etc. because they are defined in terms of potentially allocating functions. It seems like
-an additional issue to me to change the semantics in terms of non-allocating functions and
-adding <tt>noexcept</tt> instead):</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class charT, class traits = char_traits&lt;charT&gt;,
-    class Allocator = allocator&lt;charT&gt; &gt;
-  class basic_string {
-  public:
-    [&hellip;]
-    <i>// [string.ops], string operations:</i>
-    [&hellip;]
-    size_type find (charT c, size_type pos = 0) const <del>noexcept</del>;
-    [&hellip;]
-    size_type rfind(charT c, size_type pos = npos) const <del>noexcept</del>;
-    [&hellip;]
-    size_type find_first_of(charT c, size_type pos = 0) const <del>noexcept</del>;
-    [&hellip;]
-    size_type find_last_of (charT c, size_type pos = npos) const <del>noexcept</del>;
-    [&hellip;]
-    size_type find_first_not_of(charT c, size_type pos = 0) const <del>noexcept</del>;
-    [&hellip;]
-    size_type find_last_not_of (charT c, size_type pos = npos) const <del>noexcept</del>;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.7.2 [string::find] before p5 and before p7 as indicated:</p>
-
-<blockquote><pre>
-size_type find(const charT* s, size_type pos = 0) const <del>noexcept</del>;
-[&hellip;]
-size_type find(charT c, size_type pos = 0) const <del>noexcept</del>;
-</pre><blockquote><p>
--7- <i>Returns</i>: <tt>find(basic_string&lt;charT,traits,Allocator&gt;(1,c), pos)</tt>.
-</p></blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.7.3 [string::rfind] before p7 as indicated:</p>
-
-<blockquote><pre>
-size_type rfind(charT c, size_type pos = npos) const <del>noexcept</del>;
-</pre><blockquote><p>
--7- <i>Returns</i>: <tt>rfind(basic_string&lt;charT,traits,Allocator&gt;(1,c),pos)</tt>.
-</p></blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.7.4 [string::find.first.of] before p7 as indicated:</p>
-
-<blockquote><pre>
-size_type find_first_of(charT c, size_type pos = 0) const <del>noexcept</del>;
-</pre><blockquote><p>
--7- <i>Returns</i>: <tt>find_first_of(basic_string&lt;charT,traits,Allocator&gt;(1,c), pos)</tt>.
-</p></blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.7.5 [string::find.last.of] before p7 as indicated:</p>
-
-<blockquote><pre>
-size_type find_last_of(charT c, size_type pos = npos) const <del>noexcept</del>;
-</pre><blockquote><p>
--7- <i>Returns</i>: <tt>find_last_of(basic_string&lt;charT,traits,Allocator&gt;(1,c),pos)</tt>.
-</p></blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.7.6 [string::find.first.not.of] before p7 as indicated:</p>
-
-<blockquote><pre>
-size_type find_first_not_of(charT c, size_type pos = 0) const <del>noexcept</del>;
-</pre><blockquote><p>
--7- <i>Returns</i>: <tt>find_first_not_of(basic_string(1, c), pos)</tt>.
-</p></blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.7.7 [string::find.last.not.of] before p7 as indicated:</p>
-
-<blockquote><pre>
-size_type find_last_not_of(charT c, size_type pos = npos) const <del>noexcept</del>;
-</pre><blockquote><p>
--7- <i>Returns</i>: <tt>find_last_not_of(basic_string(1, c), pos)</tt>.
-</p></blockquote></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.2 [string::operator==] before p2+p3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator==(const charT* lhs,
-                const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-
-[&hellip;]
-				
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator==(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                const charT* rhs) <del>noexcept</del>;
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.3 [string::op!=] before p2+p3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator!=(const charT* lhs,
-                const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-
-[&hellip;]
-				
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator!=(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                const charT* rhs) <del>noexcept</del>;
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.4 [string::op&lt;] before p2+p3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&lt;(const charT* lhs,
-               const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-
-[&hellip;]
-				
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&lt;(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-               const charT* rhs) <del>noexcept</del>;
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.5 [string::op&gt;] before p2+p3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&gt;(const charT* lhs,
-               const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-
-[&hellip;]
-				
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&gt;(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-               const charT* rhs) <del>noexcept</del>;
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.6 [string::op&lt;=] before p2+p3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&lt;=(const charT* lhs,
-                const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-
-[&hellip;]
-				
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&lt;=(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                const charT* rhs) <del>noexcept</del>;
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.7 [string::op&gt;=] before p2+p3 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&gt;=(const charT* lhs,
-                const basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-
-[&hellip;]
-				
-template&lt;class charT, class traits, class Allocator&gt;
-bool operator&gt;=(const basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-                const charT* rhs) <del>noexcept</del>;
-</pre></blockquote>
-
-</li>
-
-<li><p>Modify 21.4.8.8 [string.special] as indicated (Remark: The change of
-the semantics guarantees as of 17.5.1.4 [structure.specifications] p4 that 
-the "Throws: Nothing" element of member swap is implied):</p>
-
-<blockquote><pre>
-template&lt;class charT, class traits, class Allocator&gt;
-  void swap(basic_string&lt;charT,traits,Allocator&gt;&amp; lhs,
-    basic_string&lt;charT,traits,Allocator&gt;&amp; rhs) <del>noexcept</del>;
-</pre><blockquote><p>
--1- Effects: <ins>Equivalent to</ins> <tt>lhs.swap(rhs);</tt>
-</p></blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2065"></a>2065. Minimal allocator interface</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-06-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The example in 17.6.3.5 [allocator.requirements] says <tt>SimpleAllocator</tt> satisfies
-the requirements of Table 28 &mdash; Allocator requirements, but it doesn't support comparison 
-for equality&#47;inequality.
-</p>
-
-<p><i>[Bloomington, 2011]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Modify the example in 17.6.3.5 [allocator.requirements] p5 as indicated:</p>
-<blockquote><p>
--5- [&hellip;]
-<p/>
-[ <i>Example</i>: the following is an allocator class template supporting the minimal interface 
-that satisfies the requirements of Table 28:
-</p><blockquote><pre>
-template &lt;class Tp&gt;
-struct SimpleAllocator {
-  typedef Tp value_type;
-  SimpleAllocator(<i>ctor args</i>);
-  template &lt;class T&gt; SimpleAllocator(const SimpleAllocator&lt;T&gt;&amp; other);
-  Tp *allocate(std::size_t n);
-  void deallocate(Tp *p, std::size_t n);
-};
-
-<ins>template &lt;class T, class U&gt;
-bool operator==(const SimpleAllocator&lt;T&gt;&amp;, const SimpleAllocator&lt;U&gt;&amp;);
-template &lt;class T, class U&gt;
-bool operator!=(const SimpleAllocator&lt;T&gt;&amp;, const SimpleAllocator&lt;U&gt;&amp;);</ins>
-</pre></blockquote><p>
-&mdash; <i>end example</i> ]
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2066"></a>2066. Missing specification of <tt>vector::resize(size_type)</tt></h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Rani Sharoni <b>Opened:</b> 2011-03-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In C++1x (N3090) there are two version of <tt>vector::resize</tt> &mdash; 23.3.6.3 [vector.capacity]:
-</p>
-<blockquote><pre>
-void resize(size_type sz);
-void resize(size_type sz, const T&amp; c);
-</pre></blockquote>
-<p>
-The text in 23.3.6.3 [vector.capacity]&#47;12 only mentions "no effects on throw" for the
-two args version of resize:
-</p><blockquote><p>
-<i>Requires</i>: If an exception is thrown other than by the move constructor
-of a non-<tt>CopyConstructible</tt> <tt>T</tt> there are no effects.
-</p></blockquote><p>
-This seems like unintentional oversight since <tt>resize(size)</tt> is
-semantically the same as <tt>resize(size, T())</tt>.
-Additionally, the C++03 standard only specify single version of resize
-with default for the second argument - 23.2.4:
-</p>
-<blockquote><pre>
-void resize(size_type sz, T c = T());
-</pre></blockquote>
-<p>
-Therefore not requiring same guarantees for both version of resize is
-in fact a regression.
-</p>
-
-<p><i>[2011-06-12: Daniel comments]</i></p>
-
-
-<p>The proposed resolution for issue <a href="lwg-defects.html#2033">2033</a> should solve this issue as well.</p>
-
-<p><i>[
-2011 Bloomington
-]</i></p>
-
-
-<p>
-This issue will be resolved by issue <a href="lwg-defects.html#2033">2033</a>, and closed when this issue is applied. 
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Resolved by adopting the resolution in issue <a href="lwg-defects.html#2033">2033</a> at this meeting.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>Apply the proposed resolution of issue <a href="lwg-defects.html#2033">2033</a></p>
-
-
-
-
-
-<hr>
-<h3><a name="2067"></a>2067. <tt>packaged_task</tt> should have deleted copy c'tor with const parameter</h3>
-<p><b>Section:</b> 30.6.9 [futures.task] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-06-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task">issues</a> in [futures.task].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Class template <tt>packaged_task</tt> is a move-only type with the following form of the
-deleted copy operations:
-</p>
-<blockquote><pre>
-packaged_task(packaged_task&amp;) = delete;
-packaged_task&amp; operator=(packaged_task&amp;) = delete;
-</pre></blockquote>
-<p>
-Note that the argument types are non-const. This does not look like a typo to me,
-this form seems to exist from the very first proposing paper on 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2276.html">N2276</a>.
-Using either of form of the copy-constructor did not make much difference before the 
-introduction of defaulted special member functions, but it makes now an observable 
-difference. This was brought to my attention by a question on a German C++ newsgroup 
-where the question was raised why the following code does not compile on a recent
-gcc:
-</p>
-<blockquote><pre>
-#include &lt;utility&gt;
-#include &lt;future&gt;
-#include &lt;iostream&gt;
-#include &lt;thread&gt;
-
-int main(){
-  std::packaged_task&lt;void()&gt; someTask([]{ std::cout &lt;&lt; std::this_thread::get_id() &lt;&lt; std::endl; });
-  std::thread someThread(std::move(someTask)); // <span style="color:#C80000">Error here</span>
-  // Remainder omitted
-}
-</pre></blockquote>
-<p>
-It turned out that the error was produced by the instantiation of some return type
-of <tt>std::bind</tt> which used a defaulted copy-constructor, which leads to a
-const declaration conflict with [class.copy] p8.
-<p/>
-Some aspects of this problem are possibly core-language related, but I consider it
-more than a service to programmers, if the library would declare the usual form of
-the copy operations (i.e. those with const first parameter type) as deleted for
-<tt>packaged_task</tt> to prevent such problems.
-<p/>
-A similar problem exists for class template <tt>basic_ostream</tt> in 27.7.3.1 [ostream]:
-</p>
-<blockquote><pre>
-namespace std {
-  template &lt;class charT, class traits = char_traits&lt;charT&gt; &gt;
-  class basic_ostream : virtual public basic_ios&lt;charT,traits&gt; {
-    [&hellip;]
-
-    // 27.7.3.3 Assign/swap
-    basic_ostream&amp; operator=(basic_ostream&amp; rhs) = delete;
-    basic_ostream&amp; operator=(const basic_ostream&amp;&amp; rhs);
-    void swap(basic_ostream&amp; rhs);
-};
-</pre></blockquote>
-<p>
-albeit this could be considered as an editorial swap of copy and move
-assignment operator, I suggest to fix this as part of this issue as well.
-</p>
-
-<p><i>[
-2011 Bloomington.
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-<ol>
-<li><p>Modify the class template <tt>basic_ostream</tt> synopsis in 27.7.3.1 [ostream]
-as indicated (Note: The prototype signature of the move assignment operator in 27.7.3.3 [ostream.assign]
-is fine):</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class charT, class traits = char_traits&lt;charT&gt; &gt;
-  class basic_ostream : virtual public basic_ios&lt;charT,traits&gt; {
-    [&hellip;]
-
-    // 27.7.3.3 Assign/swap
-    basic_ostream&amp; operator=(<ins>const</ins> basic_ostream&amp; rhs) = delete;
-    basic_ostream&amp; operator=(<del>const</del> basic_ostream&amp;&amp; rhs);
-    void swap(basic_ostream&amp; rhs);
-};
-</pre></blockquote>
-</li>
-
-<li><p>Modify the class template <tt>packaged_task</tt> synopsis in 30.6.9 [futures.task] p2
-as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class&gt; class packaged_task; <i>// undefined</i>
-
-  template&lt;class R, class... ArgTypes&gt;
-  class packaged_task&lt;R(ArgTypes...)&gt; {
-  public:
-    [&hellip;]
-  
-    <i>// no copy</i>
-    packaged_task(<ins>const</ins> packaged_task&amp;) = delete;
-    packaged_task&amp; operator=(<ins>const</ins> packaged_task&amp;) = delete;
-    
-    [&hellip;]
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2069"></a>2069. Inconsistent exception spec for <tt>basic_string</tt> move constructor</h3>
-<p><b>Section:</b> 21.4.2 [string.cons] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2011-07-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.cons">issues</a> in [string.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Sub-clause 21.4.2 [string.cons] contains these constructors in paragraphs 2 and 3:
-</p>
-<blockquote><pre>
-basic_string(const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-basic_string(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; str) noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--3- <i>Throws</i>: The second form throws nothing if the allocator's move constructor throws nothing.
-</p></blockquote></blockquote>
-<p>
-How can it <i>ever</i> throw anything if it is marked <tt>noexcept</tt>?
-</p>
-<p><i>[2011-07-11: Daniel comments and suggests wording changes]</i></p>
-
-<p>
-Further, according to paragraph 18 of the same sub-clause:
-</p>
-<blockquote><pre>
-basic_string(const basic_string&amp; str, const Allocator&amp; alloc);
-basic_string(basic_string&amp;&amp; str, const Allocator&amp; alloc);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--18- <i>Throws</i>: The second form throws nothing if <tt>alloc == str.get_allocator()</tt> 
-unless the copy constructor for <tt>Allocator</tt> throws.
-</p>
-</blockquote></blockquote>
-<p>
-The constraint &quot;unless the copy constructor for <tt>Allocator</tt> throws&quot;
-is redundant, because according to Table 28 &mdash; Allocator requirements, the expressions
-</p>
-<blockquote><pre>
-X a1(a);
-X a(b);
-</pre></blockquote>
-<p>
-impose the requirement: &quot;Shall not exit via an exception&quot;.
-</p>
-
-<p><i>[
-2011 Bloomington.
-]</i></p>
-
-
-<p>
-Move to Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change 21.4.2 [string.cons] p3 as indicated (This move constructor has a wide
-contract and is therefore safely marked as <tt>noexcept</tt>):</p>
-
-<blockquote><pre>
-basic_string(const basic_string&lt;charT,traits,Allocator&gt;&amp; str);
-basic_string(basic_string&lt;charT,traits,Allocator&gt;&amp;&amp; str) noexcept;
-</pre><blockquote>
-<p>
--2- <i>Effects</i>: Constructs an object of class <tt>basic_string</tt> as indicated in Table 64. 
-In the second form, <tt>str</tt> is left in a valid state with an unspecified value.
-<p/>
-<del>-3- <i>Throws</i>: The second form throws nothing if the allocator's move constructor throws nothing.</del>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 21.4.2 [string.cons] p18 as indicated (This move-like constructor may throw,
-if the allocators don't compare equal, but not because of a potentially throwing allocator
-copy constructor, only because the allocation attempt may fail and throw an exception):</p>
-
-<blockquote><pre>
-basic_string(const basic_string&amp; str, const Allocator&amp; alloc);
-basic_string(basic_string&amp;&amp; str, const Allocator&amp; alloc);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--18- <i>Throws</i>: The second form throws nothing if <tt>alloc == str.get_allocator()</tt> 
-<del>unless the copy constructor for <tt>Allocator</tt> throws</del>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2071"></a>2071. <tt>std::valarray</tt> move-assignment</h3>
-<p><b>Section:</b> 26.6.2.3 [valarray.assign] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Paolo Carlini <b>Opened:</b> 2011-05-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#valarray.assign">issues</a> in [valarray.assign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Yesterday I noticed that the language we have in the FDIS about <tt>std::valarray</tt> move assignment 
-is inconsistent with the resolution of LWG 675. Indeed, we guarantee constant complexity (vs linear 
-complexity). We also want it to be noexcept, that is more subtle, but again it's at variance with all 
-the containers.
-<p/>
-Also, even if we suppose that LWG <a href="lwg-defects.html#675">675</a> applies only to the containers proper, I don't think the current 
-"as if by calling resize(v.size())" is internally consistent with the noexcept requirement.
-<p/>
-So, what do we really want for <tt>std::valarray</tt>? Shall we maybe just strike or fix the as-if, consider it 
-some sort of pasto from the copy-assignment text, thus keep the noexcept and constant complexity requirements 
-(essentially the whole operation would boild down to a swap of POD data members). Or LWG <a href="lwg-defects.html#675">675</a> should be 
-explicitly extended to <tt>std::valarray</tt> too? In that case both noexcept and constant complexity 
-would go, I think, and the operation would boil down to the moral equivalent of <tt>clear()</tt> (which 
-doesn't really exist in this case) + <tt>swap</tt>?
-</p>
-
-<p>
-Howard: I agree the current wording is incorrect.  The complexity should be linear in <tt>size()</tt> (not 
-<tt>v.size()</tt>) because the first thing this operator needs to do is <tt>resize(0)</tt> (or <tt>clear()</tt> 
-as you put it).
-<p/>
-I think we can keep the <tt>noexcept</tt>.
-<p/>
-As for proper wording, here's a first suggestion:
-</p><blockquote><p>
-<i>Effects</i>: <tt>*this</tt> obtains the value of <tt>v</tt>. The value of <tt>v</tt> after the assignment 
-is not specified.
-<p/>
-<i>Complexity</i>: linear.
-</p></blockquote><p>
-</p>
-
-<p>
-See also reflector discussion starting with c++std-lib-30690.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-<p>
-Some discussion on the types supported by <tt>valarray</tt> concludes that the wording is
-trying to say something similar to the core wording for trivial types, but significantly
-predates it, and does allow for types with non-trivial destructors.  Howard notes that
-the only reason for linear complexity, rather than constant, is to support types with
-non-trivial destructors.
-</p>
-<p>
-AJM suggests replacing the word 'value' with 'state', but straw poll prefers moving
-forward with the current wording, 5 to 2.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>In 26.6.2.3 [valarray.assign] update as follows:</p>
-
-<blockquote><pre>
-valarray&lt;T&gt;&amp; operator=(valarray&lt;T&gt;&amp;&amp; v) noexcept;
-</pre><blockquote><p>
-3 <i>Effects</i>: <tt>*this</tt> obtains the value of <tt>v</tt>. <del>If the length of <tt>v</tt> 
-is not equal to the length of <tt>*this</tt>, resizes <tt>*this</tt> to make the two arrays the 
-same length, as if by calling <tt>resize(v.size())</tt>, before performing the assignment.</del><ins>The 
-value of <tt>v</tt> after the assignment is not specified.</ins>
-<p/>
-4 <i>Complexity</i>: <del>Constant</del><ins>Linear</ins>.
-</p></blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2074"></a>2074. Off by one error in <tt>std::reverse_copy</tt></h3>
-<p><b>Section:</b> 25.3.10 [alg.reverse] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Peter Miller <b>Opened:</b> 2011-08-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.reverse">issues</a> in [alg.reverse].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The output of the program below should be:
-</p>
-<blockquote><pre>
-"three two one null \n"
-</pre></blockquote>
-<p>
-But when <tt>std::reverse_copy</tt> is implemented as described in N3291 25.3.10 [alg.reverse] 
-it's:
-</p>
-<blockquote><pre>
-"null three two one \n"
-</pre></blockquote>
-<p>
-because there's an off by one error in 25.3.10 [alg.reverse]&#47;4; the definition should read:
-</p>
-<blockquote><pre>
-*(result + (last - first) <span style="color:#C80000;font-weight:bold">- 1</span> - i) = *(first + i)
-</pre></blockquote>
-<p>
-Test program:
-</p>
-<blockquote><pre>
-#include &lt;algorithm&gt;
-#include &lt;iostream&gt;
-
-template &lt;typename BiIterator, typename OutIterator&gt;
-auto
-reverse_copy_as_described_in_N3291(
-  BiIterator first, BiIterator last, OutIterator result )
--&gt; OutIterator
-{
-  // 25.3.10&#47;4 [alg.reverse]:
-  // "...such that for any non-negative integer i &lt; (last - first)..."
-  for ( unsigned i = 0; i &lt; ( last - first ); ++i )
-    // "...the following assignment takes place:"
-    *(result + (last - first) - i) = *(first + i);
-
-  // 25.3.10&#47;6
-  return result + (last - first);
-}
-
-int main()
-{
-  using std::begin;
-  using std::end;
-  using std::cout;
-
-  static const char*const in[3]  { "one", "two", "three" };
-  const char*             out[4] { "null", "null", "null", "null" };
-
-  reverse_copy_as_described_in_N3291( begin( in ), end( in ), out );
-
-  for ( auto s : out )
-    cout &lt;&lt; s &lt;&lt; ' ';
-
-  cout &lt;&lt; std::endl;
-
-  return 0;
-}
-</pre></blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>
-Change 25.3.10 [alg.reverse] p4 as follows:
-</p> 
-<blockquote><pre>
-template&lt;class BidirectionalIterator, class OutputIterator&gt;
-  OutputIterator
-    reverse_copy(BidirectionalIterator first,
-                 BidirectionalIterator last, OutputIterator result);
-</pre><blockquote><p>
--4- <i>Effects</i>: Copies the range [<tt>first,last</tt>) to the range [<tt>result,result+(last-first)</tt>) 
-such that for any non-negative integer <tt>i &lt; (last - first)</tt> the following assignment takes place: 
-<tt>*(result + (last - first) <ins>- 1</ins> - i) = *(first + i)</tt>.
-<p/>
--5- <i>Requires</i>: The ranges [<tt>first,last</tt>) and [<tt>result,result+(last-first)</tt>) shall not overlap.
-<p/>
--6- <i>Returns</i>: <tt>result + (last - first)</tt>.
-<p/>
--7- <i>Complexity</i>: Exactly <tt>last - first</tt> assignments.
-</p></blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2075"></a>2075. Progress guarantees, lock-free property, and scheduling assumptions</h3>
-<p><b>Section:</b> 1.10 [intro.multithread], 29.4 [atomics.lockfree], 29.6.5 [atomics.types.operations.req] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Torvald Riegel <b>Opened:</b> 2011-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to 1.10 [intro.multithread] p2: 
-</p>
-<blockquote><p>
-"Implementations should ensure that all unblocked threads eventually make progress."
-</p></blockquote>
-<ul>
-<li>If taken literally, this cannot be achieved with lock-free atomics in
- general because they only guarantee that some thread makes progress
- (i.e., minimal progress, whereas 1.10 [intro.multithread] p2 seems to 
- require maximal progress).
-</li>
-<li>What does it mean precisely to "make progress"? Does "unblocked
- threads" exclude live-locked threads (if so, lock-free atomics would
- be sufficient I suppose)?
-</li>
-<li><p>Which assumptions can an implementation make about the thread
- scheduling? This is relevant for how implementations implement
- compare-exchange with load-linked &#47; store conditional (LL-SC), and
- atomic read-modifiy-write operations with load...compare-exchange-weak
- loops.
-</p>
-<ul>
-<li>Do threads run long enough without being descheduled (e.g.,
-   OS timeslices are long enough, interrupt frequency is not too
-   high, etc.)?
-</li>
-<li>Or is this implementation-defined, and the sentence is just about
-   stating that the progress guarantees will not hold on, for example,
-   systems with unfair scheduling or thread priorities?
-</li>
-</ul>
-</li>
-</ul>
-
-<p>
-29.4 [atomics.lockfree] p2 declares the lock-free property for a
-particular object. However, "lock-free" is never defined, and in discussions 
-that I had with committee members it seemed as if the standard's lock-free would be
-different from what lock-free means in other communities (eg, research,
-text books on concurrent programming, etc.).
-</p>
-<ul>
-<li>Originally, lock-freedom for an object requires minimal progress (ie,
- some thread makes progress, but other threads might never do) without
- any assumptions about the scheduling (threads could be stopped
- executing (so it is "nonblocking"), and threads are not guaranteed to
- execute in isolation, even for very small intervals of cycles).
-</li>
-<li>In contrast, obstruction-freedom, another nonblocking progress
- condition, guarantees progress for all threads that eventually get
- executed long enough in isolation (ie, without interference by other
- threads).
-</li>
-<li>Simple load...compare-exchange-weak loops (or LL-SC loops) to
- implement atomic read-modify-write operations can be just
- obstruction-free but not lock-free because they can livelock
- (depending on the hardware's LL-SC implementation, though). However,
- they effectively guarantee the same as lock-free iff threads will
- eventually run in isolation for long enough (that can be an assumption
- about the OS scheduler), or if the implementation adds this (e.g.,
- probabilistically by employing randomized exponential back-off when
- contention is detected, in all operations that can create contention).
-</li>
-<li>Does the particular object has to be lock-free, or is it only required
- that threads make progress irrespective on which object? Again
- considering compare-exchange-weak or LL-SC here, what happens if the
- compare-exchange object shares a cacheline with an integer counter
- object that is constantly updated by other threads? The
- compare-exchange-weak can always fail, so the object would not be
- lock-free. However, if we consider progress to be overall progress for
- threads, it would be lock-free because other threads succeed updating
- the integer counter. I would have assumed the lock-free property is
- strictly about the atomic object, but in discussions with committee
- members it seemed as if progress for any object could be the intended
- guarantee.
-</li>
-</ul>
-
-<p>
-Following 29.6.5 [atomics.types.operations.req] p7 <tt>is_lock_free()</tt> 
-returns "true if the object is lock-free". What is returned if the object is only 
-sometimes lock-free?
-</p>
-
-<p>
-Basically, I would like to see clarifications for the progress
-guarantees so that users know what they can expect from implementations
-(and what they cannot expect!), and to give implementors a clearer
-understanding of which user expectations they have to implement.
-</p>
-<ol>
-<li><p>Elaborate on the intentions of the progress guarantee in 
-1.10 [intro.multithread] p2. As I don't know about your intentions, 
-it's hard to suggest a resolution.
-</p>
-<ul>
-<li>Is it for straightforward, non-synchronizing code only?</li>
-<li>Is it for blocking code only? (Is "unblocked" more than blocked on
- external I/O or on deadlocks?)
-</li>
-<li>What does it mean to "make progress"?</li>
-<li>Is this meant to only waive any progress guarantees if there are
- thread priorities?
-</li>
-<li>Can an implementation make any assumptions about thread scheduling?
-</li>
-</ul>
-</li>
-<li><p>Define the lock-free property. The definition should probably include
-the following points:
-</p>
-<ul>
-<li>Is it just nonblocking, or what is the distinction to just being nonblocking?</li>
-<li>Does it make any assumptions about the scheduler?</li>
-<li>What are the progress guarantees, minimal or maximal (some or all threads finish eventually).</li>
-<li>Is progress guaranteed for all operations on the particular object, or
- do operations on other objects also count as "making progress"?
-</li>
-</ul>
-</li>
-<li>Add a note explaining that compare-exchange-weak is not necessarily
-lock-free (but is nonblocking)? Or is it indeed intended to be lock-free
-(only allowed to fail spuriously but guaranteed to not fail eventually)?
-Implementing the latter might be a challenge on LL-SC machines or lead
-to space overheads I suppose, see the cacheline sharing example above.
-</li>
-</ol>
-
-<p><i>[2011-12-01: Hans comments]</i></p>
-
-
-<p>
-1.10 [intro.multithread] p2 was an intentional compromise, and it was understood at the 
-time that it was not a precise statement.  The wording was introduced by 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3209.htm">N3209</a>, which 
-discusses some of the issues. There were additional reflector discussions.
-<p/>
-This is somewhat separable from the question of what lock-free means, which is probably a more 
-promising question to focus on.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-General direction: lock-free means obstruction-free. Leave the current "should" recommendation 
-for progress. It would take a lot of effort to try to do better. 
-</p>
-
-
-<p><i>[2012, Portland: move to Open]</i></p>
-
-<p>
-The current wording of 1.10 [intro.multithread] p2 doesn't really say very much.
-As far as we can tell the term <i>lock-free</i> is nowhere defined in the standard.
-</p>
-<p>
-James: we would prefer a different way to phrase it.
-</p>
-<p>
-Hans: the research literature includes the term <i>abstraction-free</i> which might be a better fit.
-</p>
-<p>
-Detlef: does Posix define a meaning for blocking (or locking) that we could use?
-</p>
-<p>
-Hans: things like compare-exchange-strong can wait indefinitely.
-</p>
-<p>
-Niklas: what about spin-locks -- still making no progress.
-</p>
-<p>
-Hans: suspect we can only give guidance, at best. The lock-free meaning from the theoretical commmunity (forard progress will be made) is probably too strong here.
-</p>
-<p>
-Atrur: what about livelocks?
-</p>
-<p>
-Hans: each atomic <i>modification</i> completes, even if the whole thing is blocked.
-</p>
-<p>
-Moved to open.
-</p>
-
-<p><i>[2013-11-06: Jason Hearne-McGuiness comments]</i></p>
-
-
-<p>
-Related to this issue, the wording in 29.4 [atomics.lockfree] p2,
-</p>
-<blockquote><p>
-In any given program execution, the result of the lock-free query
-shall be consistent for all pointers of the same type.
-</p></blockquote>
-<p>
-should be made clearer, because the object-specific (non-static) nature of the <tt>is_lock_free()</tt> functions 
-from 29.5 [atomics.types.generic] and 29.6 [atomics.types.operations] imply that for different 
-instances of pointers of the same type the returned value could be different.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p><i>[2014-02-16 Issaquah: Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3927.html">n3927</a>]</i></p>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="2076"></a>2076. Bad <tt>CopyConstructible</tt> requirement in set constructors</h3>
-<p><b>Section:</b> 23.4.6.2 [set.cons] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jens Maurer <b>Opened:</b> 2011-08-20 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-23.4.6.2 [set.cons] paragraph 4 says: 
-</p>
-
-<blockquote><p>
-<i>Requires</i>: If the iterator's dereference operator returns an lvalue or a non-const rvalue, 
-then <tt>Key</tt> shall be <tt>CopyConstructible</tt>.
-</p></blockquote>
-
-<p>
-I'm confused why a "non-const rvalue" for the return value of the iterator
-would require <tt>CopyConstructible</tt>; isn't that exactly the situation 
-when you'd want to apply the move constructor?
-<p/>
-The corresponding requirement for <tt>multimap</tt> seems better in that regard
-([multimap.cons] paragraph 3):
-</p>
-<blockquote><p>
-Requires: If the iterator's dereference operator returns an lvalue or a const rvalue 
-<tt>pair&lt;key_type, mapped_type&gt;</tt>, then both <tt>key_type</tt> and mapped_type 
-shall be <tt>CopyConstructible</tt>.
-</p></blockquote>
-<p>
-Obviously, if I have a const rvalue, I can't apply the move constructor (which will 
-likely attempt modify its argument).
-<p/>
-Dave Abrahams:
-<p/>
-I think you are right.
-Proposed resolution: drop "non-" from 23.4.6.2 [set.cons] paragraph 3.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-The wording is in this area will be affected by Pablo's paper being adopted at this meeting.
-Wait for that paper to be applied before visiting this issue - deliberately leave in New
-status until the next meeting.
-</p>
-
-<p><strong>Proposed resolution from Kona 2012:</strong></p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<p>
-Change 23.4.6.2 [set.cons] p3 as follows:
-</p> 
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  set(InputIterator first, InputIterator last,
-    const Compare&amp; comp = Compare(), const Allocator&amp; = Allocator());
-</pre><blockquote><p>
--3- Effects: Constructs an empty set using the specified comparison object and allocator, and inserts
-elements from the range [<tt>first,last</tt>).
-<p/>
--4- <i>Requires</i>: If the iterator's dereference operator returns an lvalue or a <del>non-</del>const rvalue, 
-then <tt>Key</tt> shall be <tt>CopyConstructible</tt>.
-<p/>
--5- <i>Complexity</i>: Linear in <tt>N</tt> if the range [<tt>first,last</tt>) is already sorted using 
-<tt>comp</tt> and otherwise <tt>N logN</tt>, where <tt>N</tt> is <tt>last - first</tt>.
-</p></blockquote></blockquote>
-</blockquote>
-
-<p><i>[2014-05-18, Daniel comments]</i></p>
-
-<p>
-According to Pablo, the current P/R correctly incorporates the changes from his paper (which was adopted in Kona)
-</p>
-
-<p><i>[2014-06-10, STL comments and suggests better wording]</i></p>
-
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1858.html">N1858</a> was voted into WP 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2284.pdf">N2284</a> but was 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2283.html">"(reworded)"</a>, introducing the "non-const" damage.
-<p/>
-N1858 wanted to add this for map:
-</p>
-<blockquote><p>
-<i>Requires</i>: Does not require <tt>CopyConstructible</tt> of either <tt>key_type</tt> or <tt>mapped_type</tt> if the dereferenced 
-<tt>InputIterator</tt> returns a non-const rvalue <tt>pair&lt;key_type, mapped_type&gt;</tt>. Otherwise <tt>CopyConstructible</tt> 
-is required for both <tt>key_type</tt> and <tt>mapped_type</tt>.
-</p></blockquote>
-<p>
-And this for set:
-</p>
-<blockquote><p>
-<i>Requires</i>: <tt>Key</tt> must be <tt>CopyConstructible</tt> only if the dereferenced <tt>InputIterator</tt> returns an lvalue 
-or const rvalue.
-</p></blockquote>
-<p>
-(And similarly for multi.)
-<p/>
-This was reworded to N2284 23.3.1.1 [map.cons]/3 and N2284 23.3.3.1 [set.cons]/4, and it slightly changed over the years into 
-N3936 23.4.4.2 [map.cons]/3 and N3936 23.4.6.2 [set.cons]/4.
-<p/>
-In 2005/2007, this was the best known way to say "hey, we should try to move this stuff", as the fine-grained element requirements 
-were taking shape.
-<p/>
-Then in 2010, <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3173.pdf">N3173</a> was 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3226.html">voted</a> into WP 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3225.pdf">N3225</a>, adding the definition of 
-<tt>EmplaceConstructible</tt> and modifying the container requirements tables to make the range constructors require 
-<tt>EmplaceConstructible</tt>.
-<p/>
-After looking at this history and double-checking our implementation (where <tt>map</tt>/<tt>set</tt> range construction goes through 
-emplacement, with absolutely no special-casing for <tt>map</tt>'s pairs), I am convinced that N3173 superseded N1858 here. 
-(Range-<tt>insert()</tt> and the unordered containers are unaffected.)
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to the N3936.</p>
-
-<p>
-Change 23.4.6.2 [set.cons] p4 as follows:
-</p> 
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  set(InputIterator first, InputIterator last,
-    const Compare&amp; comp = Compare(), const Allocator&amp; = Allocator());
-</pre><blockquote><p>
--3- Effects: Constructs an empty <tt>set</tt> using the specified comparison object and allocator, and inserts
-elements from the range [<tt>first,last</tt>).
-<p/>
--4- <i>Requires</i>: If the iterator's indirection operator returns an lvalue or a <del>non-</del>const rvalue, 
-then <tt>Key</tt> shall be <tt>CopyInsertible</tt> into <tt>*this</tt>.
-<p/>
--5- <i>Complexity</i>: Linear in <tt>N</tt> if the range [<tt>first,last</tt>) is already sorted using 
-<tt>comp</tt> and otherwise <tt>N logN</tt>, where <tt>N</tt> is <tt>last - first</tt>.
-</p></blockquote></blockquote>
-</blockquote>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-GR: Do requirements supersede rather than compose [container requirements and per-function requirements]? AM: Yes, they supersede.
-<p/>
-AM: This looks good. Ready? Agreement. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the N4296.</p>
-
-<ol>
-<li><p>
-Remove 23.4.4.2 [map.cons] p3:
-</p> 
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  map(InputIterator first, InputIterator last,
-      const Compare&amp; comp = Compare(), const Allocator&amp; = Allocator());
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires</i>: If the iterator's indirection operator returns an lvalue or a <tt>const</tt> rvalue
-<tt>pair&lt;key_type, mapped_type&gt;</tt>, then both <tt>key_type</tt> and <tt>mapped_type</tt> shall be 
-<tt>CopyInsertible</tt> into <tt>*this</tt>.</del>
-<p/>
-[&hellip;]
-</p></blockquote></blockquote>
-</li>
-
-<li><p>
-Remove 23.4.5.2 [multimap.cons] p3:
-</p> 
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  multimap(InputIterator first, InputIterator last,
-           const Compare&amp; comp = Compare(), 
-           const Allocator&amp; = Allocator());
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires</i>: If the iterator's indirection operator returns an lvalue or a <tt>const</tt> rvalue
-<tt>pair&lt;key_type, mapped_type&gt;</tt>, then both <tt>key_type</tt> and <tt>mapped_type</tt> shall be 
-<tt>CopyInsertible</tt> into <tt>*this</tt>.</del>
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>
-Remove 23.4.6.2 [set.cons] p4:
-</p> 
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  set(InputIterator first, InputIterator last,
-      const Compare&amp; comp = Compare(), const Allocator&amp; = Allocator());
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-4- <i>Requires</i>: If the iterator's indirection operator returns an lvalue or a non-<tt>const</tt> rvalue, then 
-<tt>Key</tt> shall be <tt>CopyInsertible</tt> into <tt>*this</tt>.</del>
-</p></blockquote></blockquote>
-</li>
-
-<li><p>
-Remove 23.4.7.2 [multiset.cons] p3:
-</p> 
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-  multiset(InputIterator first, InputIterator last,
-           const Compare&amp; comp = Compare(), 
-           const Allocator&amp; = Allocator());
-</pre><blockquote>
-<p>
-<del>-3- <i>Requires</i>: If the iterator's indirection operator returns an lvalue or a <tt>const</tt> rvalue, then 
-<tt>Key</tt> shall be <tt>CopyInsertible</tt> into <tt>*this</tt>.</del>
-<p/>
-[&hellip;]
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2078"></a>2078. Throw specification of <tt>async()</tt> incomplete</h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2011-08-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The current throw specification of <tt>async()</tt> does state:
-</p>
-<blockquote><p>
--6- <i>Throws</i>: <tt>system_error</tt> if policy is <tt>launch::async</tt> and 
-the implementation is unable to start a new thread.
-</p></blockquote>
-<p>
-First it seems not clear whether this only applies if policy equals 
-<tt>launch::async</tt> of if the <tt>async</tt> launch mode flag is set 
-(if <tt>policy|launch::async!=0</tt>)
-<p/>
-In the discussion Lawrence Crowl also wrote:
-</p>
-<blockquote><p>
-    More generally, I think what we want to say is that if the
-    implementation cannot successfully execute on one of the policies
-    allowed, then it must choose another. The principle would apply
-    to implementation-defined policies as well.
-</p></blockquote>
-
-<p>
-Peter Sommerlad:
-</p>
-<blockquote><p>
-Should not throw. That was the intent. "is async" meat exactly.
-</p></blockquote>
-
-<p><i>[2012, Portland: move to Tentatively NAD Editorial]</i></p>
-
-<p>
-If no launch policy, it is undefined behavior.
-</p>
-<p>
-Agree with Lawrence, should try all the allowed policies. We will rephrase so that
-the policy argument should be <tt>lauch::async</tt>. Current wording seems good enough.
-</p>
-<p>
-We believe this choice of policy statement is really an editorial issue.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-If all the implementors read it and can't get it right - it is not editorial. Nico to provide wording
-</p>
-<p>
-No objections to revised wording, so moved to Immediate.
-</p>
-<p>
-Accept for Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 30.6.8 [futures.async] p6, p7 as indicated:</p>
-
-<blockquote>
-<p>
--6- <i>Throws:</i> <tt>system_error</tt> if <tt>policy</tt> <del>is</del> <ins><tt>==</tt></ins> <tt>launch::async</tt> 
-and the implementation is unable to start a new thread.
-</p>
-<p>
--7- <i>Error conditions:</i>
-</p>
-<ul>
-<li><p> <tt>resource_unavailable_try_again</tt> &mdash; if <tt>policy</tt> <del>is</del> <ins><tt>==</tt></ins> <tt>launch::async</tt> 
-and the system is unable to start a new thread.</p>
-</li>
-</ul>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2080"></a>2080. Specify when <tt>once_flag</tt> becomes invalid</h3>
-<p><b>Section:</b> 30.4.4 [thread.once] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2011-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In function <tt>call_once</tt> 30.4.4.2 [thread.once.callonce]
-paragraph 4 and 5 specify for <tt>call_once()</tt>:
-</p>
-
-<blockquote>
-<p>
-<i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception]), 
-or any exception thrown by <tt>func</tt>.
-<p/>
-<i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>invalid_argument</tt> &mdash; if the <tt>once_flag</tt> object is no longer valid.</li>
-</ul>
-</blockquote>
-
-<p>
-However, nowhere in 30.4.4 [thread.once] is specified, when a once-flag becomes invalid.
-<p/>
-As far as I know this happens if the flag is used for different functions. So we either have to have 
-to insert a sentence&#47;paragraph in
-</p>
-<blockquote><p>
-30.4.4.2 Function call_once [thread.once.callonce]
-</p></blockquote>
-<p>
-or
-</p>
-<blockquote><p>
-30.4.4 Call once [thread.once]
-</p></blockquote>
-<p>
-explaining when a <tt>once_flag</tt> becomes invalidated or we should state as error condition something like:
-</p>
-
-<ul>
-<li><tt>invalid_argument</tt> &mdash; if the <tt>func</tt> used in combination with the <tt>once_flag</tt> is different 
-from a previously passed <tt>func</tt> for the same <tt>once_flag</tt>
-</li>
-</ul>
-
-<p>
-Anthony Williams:
-</p>
-<blockquote>
-<p>
-A <tt>once_flag</tt> is invalidated if you destroy it (e.g. it is an automatic object, or heap 
-allocated and deleted, etc.)
-<p/>
-If the library can detect that this is the case then it will throw this exception. If it cannot 
-detect such a case then it will never be thrown.
-</p>
-</blockquote>
-
-<p>
-Jonathan Wakely:
-</p>
-<blockquote>
-<p>
-I have also wondered how that error can happen in C++, where the type
-system will reject a non-callable type being passed to <tt>call_once()</tt> and
-should prevent a <tt>once_flag</tt> being used after its destructor runs.
-<p/>
-If a <tt>once_flag</tt> is used after its destructor runs then it is indeed
-undefined behaviour, so implementations are already free to throw any
-exception (or set fire to a printer) without the standard saying so.
-<p/>
-My assumption was that it's an artefact of basing the API on pthreads,
-which says:
-</p>
-<blockquote>
-<p>
-The <tt>pthread_once()</tt> function may fail if:
-<p/>
-<tt>[EINVAL]</tt>  If either <tt>once_control</tt> or <tt>init_routine</tt> is invalid.
-</p>
-</blockquote>
-</blockquote>
-
-<p>
-Pete Becker:
-</p>
-<blockquote><p>
-Yes, probably. We had to clean up several UNIXisms that were in the original design.
-</p></blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Remove error conditions, move to Review.
-</p>
-
-<p><i>[2012, Portland: move to Tentatively Ready]</i></p>
-
-<p>
-Concurrency move to Ready, pending LWG review.
-</p>
-
-<p>
-LWG did not have time to perform the final review in Portland, so moving to
-<i>tentatively</i> ready to reflect the Concurrency belief that the issue is
-ready, but could use a final inspection from library wordsmiths.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3337.</p>
-
-<ol>
-<li><p>Change 30.4.4.2 [thread.once.callonce] as indicated:</p>
-<blockquote><pre>
-template&lt;class Callable, class ...Args&gt;
-void call_once(once_flag&amp; flag, Callable&amp;&amp; func, Args&amp;&amp;... args);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--4- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2), or any exception thrown by <tt>func</tt>.
-<p/>
-<del>-5- Error conditions:</del>
-</p>
-<ul>
-<li><del><tt>invalid_argument</tt> &mdash; if the <tt>once_flag</tt> object is no longer valid.</del></li>
-</ul>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2081"></a>2081. <tt>Allocator</tt> requirements should include <tt>CopyConstructible</tt></h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-As discussed in c++std-lib-31054 and c++std-lib-31059, the <tt>Allocator</tt>
-requirements implicitly require <tt>CopyConstructible</tt> because
-<tt>a.select_on_container_copy_construction()</tt> and
-<tt>container.get_allocator()</tt> both return a copy by value, but the
-requirement is not stated explicitly anywhere.
-<p/>
-In order to clarify that allocators cannot have 'explicit' copy
-constructors, the requirements should include <tt>CopyConstructible</tt>.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change Table 28 &mdash; Allocator requirements in 17.6.3.5 [allocator.requirements]:</p>
-
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Default</th>
-</tr> 
-<tr>
-<td>
-<tt>X a1(a);<br/>
-<ins>X a1 = a;</ins></tt>
-</td>
-<td>
-</td>
-<td>
-Shall not exit via an exception.<br/>
-post: <tt>a1 == a</tt>
-</td>
-<td>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X a1(move(a));<br/>
-<ins>X a1 = move(a);</ins></tt>
-</td>
-<td>
-</td>
-<td>
-Shall not exit via an exception.<br/>
-post: <tt>a1</tt> equals the prior value<br/>
-of <tt>a</tt>.
-</td>
-<td>
-</td>
-</tr>
-</table>
-
-</li>
-
-<li><p>Change 17.6.3.5 [allocator.requirements] paragraph 4:</p>
-
-<blockquote><p>
-<ins>An allocator type <tt>X</tt> shall satisfy the requirements of <tt>CopyConstructible</tt> 
-(17.6.3.1 [utility.arg.requirements]).</ins> The <tt>X::pointer</tt>, <tt>X::const_pointer</tt>, 
-<tt>X::void_pointer</tt>, and <tt>X::const_void_pointer</tt> types shall satisfy the requirements of 
-<tt>NullablePointer</tt> (17.6.3.3 [nullablepointer.requirements]). No constructor, comparison 
-operator, copy operation, move operation, or swap operation on these types shall exit via an 
-exception. <tt>X::pointer</tt> and <tt>X::const_pointer</tt> shall also satisfy the requirements 
-for a random access iterator (24.2 [iterator.requirements]).
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2083"></a>2083. const-qualification on <tt>weak_ptr::owner_before</tt></h3>
-<p><b>Section:</b> 20.8.2.3 [util.smartptr.weak], 20.8.2.3.5 [util.smartptr.weak.obs] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Ai Azuma <b>Opened:</b> 2011-09-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.weak">issues</a> in [util.smartptr.weak].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Is there any reason why <tt>weak_ptr::owner_before</tt> member function templates are not const-qualified?
-</p>
-
-<p>
-Daniel Kr&uuml;gler:
-</p>
-<blockquote><p>
-I don't think so. To the contrary, without these to be const member function templates, the
-semantics of the specializations <tt>owner_less&lt;weak_ptr&lt;T&gt;&gt;</tt>  and
-<tt>owner_less&lt;shared_ptr&lt;T&gt;&gt;</tt> described in 20.8.2.4 [util.smartptr.ownerless] 
-is unclear.
-<p/>
-It is amusing to note that this miss has remain undetected from the accepted paper
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2637.pdf">n2637</a> 
-on. For the suggested wording changes see below. 
-</p></blockquote>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change the class template <tt>weak_ptr</tt> synopsis in 20.8.2.3 [util.smartptr.weak]
-as indicated:</p>
-<blockquote><pre>
-namespace std {
-  template&lt;class T&gt; class weak_ptr {
-  public:
-    typedef T element_type;
-    [&hellip;]
-    template&lt;class U&gt; bool owner_before(shared_ptr&lt;U&gt; const&amp; b) <ins>const</ins>;
-    template&lt;class U&gt; bool owner_before(weak_ptr&lt;U&gt; const&amp; b) <ins>const</ins>;
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-<li><p>Change the prototypes in 20.8.2.3.5 [util.smartptr.weak.obs] before p6 as indicated:</p>
-<blockquote><pre>
-template&lt;class U&gt; bool owner_before(shared_ptr&lt;U&gt; const&amp; b) <ins>const</ins>;
-template&lt;class U&gt; bool owner_before(weak_ptr&lt;U&gt; const&amp; b) <ins>const</ins>;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2085"></a>2085. Wrong description of effect 1 of <tt>basic_istream::ignore</tt></h3>
-<p><b>Section:</b> 27.7.2.3 [istream.unformatted] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Krzysztof Zelechowski <b>Opened:</b> 2011-09-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#istream.unformatted">active issues</a> in [istream.unformatted].</p>
-<p><b>View all other</b> <a href="lwg-index.html#istream.unformatted">issues</a> in [istream.unformatted].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-27.7.2.3 [istream.unformatted] in N3242 currently has the following to say about the
-semantics of <tt>basic_istream::ignore</tt>:
-</p>
-
-<blockquote><p>
-[..]. Characters are extracted until any of the following occurs:
-</p>
-<ul>
-<li>if <tt>n != numeric_limits&lt;streamsize&gt;::max()</tt> (18.3.2), <tt>n</tt> characters are extracted
-</li>
-</ul>
-</blockquote>
-
-<p>
-This statement, apart from being slightly ungrammatical, indicates that if
-(<tt>n == numeric_limits&lt;streamsize&gt;::max()</tt>), the method returns without
-extracting any characters.
-<p/>
-The description intends to describe the observable behaviour of an
-implementation in terms of logical assertions.  Logical assertions are not
-"bullets" that can be "entered" but need not; they are predicates that can
-evaluate to true or false.
-<p/>
-The description contains two predicates, either of them causes extraction to
-terminate.  In the incriminated case, the first predicate is evaluates to
-true because its premise is false, therefore no characters will be
-extracted.
-<p/>
-The intended semantics would be described by the following statement:
-</p>
-
-<blockquote><p>
-[..]. Characters are extracted until any of the following occurs:
-</p>
-<ul>
-<li><tt>(n != numeric_limits&lt;streamsize&gt;::max())</tt> (18.3.2) and (<tt>n</tt>) characters
-have been extracted so far.
-</li>
-</ul>
-</blockquote>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Resolution: Ready. 
-</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>
-Apply to Working Paper 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 27.7.2.3 [istream.unformatted] p25 as indicated:</p>
-
-<blockquote><pre>
-basic_istream&lt;charT,traits&gt;&amp;
-  ignore(streamsize n = 1, int_type delim = traits::eof());
-</pre><blockquote><p>
--25- <i>Effects</i>: Behaves as an unformatted input function (as described in 27.7.2.3 [istream.unformatted], paragraph 1). After
-constructing a <tt>sentry</tt> object, extracts characters and discards them. Characters are extracted until
-any of the following occurs:
-</p>
-<ul>
-<li><del>if</del> <tt>n != numeric_limits&lt;streamsize&gt;::max()</tt> (18.3.2.1 [limits.numeric])<del>,</del><ins>and</ins> 
-<tt>n</tt> characters <del>are</del><ins>have been</ins> extracted <ins>so far</ins>
-</li>
-<li>end-of-file occurs on the input sequence (in which case the function calls <tt>setstate(eofbit)</tt>,
-which may throw <tt>ios_base::failure</tt> (27.5.5.4 [iostate.flags]));
-</li>
-<li><tt>traits::eq_int_type(traits::to_int_type(c), delim)</tt> for the next available input character <tt>c</tt> 
-(in which case <tt>c</tt> is extracted).
-</li>
-</ul>
-</blockquote></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2086"></a>2086. Overly generic type support for math functions</h3>
-<p><b>Section:</b> 26.8 [c.math] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-09-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.math">active issues</a> in [c.math].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.math">issues</a> in [c.math].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-26.8 [c.math] ends with a description of a rule set for "sufficient overloads"
-in p11:
-</p>
-
-<blockquote>
-<p>Moreover, there shall be additional overloads sufficient to ensure:</p>
-<ol>
-<li>
-If any argument corresponding to a <tt>double</tt> parameter has type <tt>long double</tt>, then all arguments
-corresponding to <tt>double</tt> parameters are effectively cast to <tt>long double</tt>.
-</li>
-<li>
-Otherwise, if any argument corresponding to a <tt>double</tt> parameter has type <tt>double</tt> or an integer type,
-then all arguments corresponding to <tt>double</tt> parameters are effectively cast to <tt>double</tt>.
-</li>
-<li>
-Otherwise, all arguments corresponding to <tt>double</tt> parameters are effectively cast to <tt>float</tt>.
-</li>
-</ol>
-</blockquote>
-
-<p>
-My impression is that this rule set is probably more generic as intended, my assumption is that it is written 
-to mimic the C99&#47;C1x rule set in 7.25 p2+3 in the "C++" way:
-</p>
-
-<blockquote>
-<p>
--2- Of the <tt>&lt;math.h&gt;</tt> and <tt>&lt;complex.h&gt;</tt> functions without an 
-<tt>f</tt> (<tt>float</tt>) or <tt>l</tt> (<tt>long double</tt>) suffix, several have 
-one or more parameters whose corresponding real type is <tt>double</tt>. For each such 
-function, except <tt>modf</tt>, there is a corresponding type-generic macro. (footnote 313) 
-The parameters whose corresponding real type is <tt>double</tt> in the function
-synopsis are generic parameters. Use of the macro invokes a function whose
-corresponding real type and type domain are determined by the arguments for the generic
-parameters. (footnote 314)
-<p/>
--3- Use of the macro invokes a function whose generic parameters have the corresponding 
-real type determined as follows:
-</p>
-<ul>
-<li>
-First, if any argument for generic parameters has type <tt>long double</tt>, the type
-determined is <tt>long double</tt>.
-</li>
-<li>
-Otherwise, if any argument for generic parameters has type <tt>double</tt> or is of integer
-type, the type determined is <tt>double</tt>.
-</li>
-<li>
-Otherwise, the type determined is <tt>float</tt>.
-</li>
-</ul>
-</blockquote>
-
-<p>
-where footnote 314 clarifies the intent:
-</p>
-
-<blockquote>
-<p>
-If the type of the argument is not compatible with the type of the parameter for the selected function,
-the behavior is undefined.
-</p>
-</blockquote>
-
-<p>
-The combination of the usage of the unspecific term "cast" with otherwise no further constraints 
-(note that C constraints the valid set to types that C++ describes as arithmetic types, but see below 
-for one important difference) has the effect that it requires the following examples to be well-formed 
-and well-defined:
-</p>
-
-<blockquote><pre>
-#include &lt;cmath&gt;
-
-enum class Ec { };
-
-struct S { explicit operator long double(); };
-
-void test(Ec e, S s) {
- std::sqrt(e); // OK, behaves like std::sqrt((float) e);
- std::sqrt(s); // OK, behaves like std::sqrt((float) s);
-}
-</pre></blockquote>
-<p>
-GCC 4.7 does not accept any of these examples.
-<p/>
-I found another example where the C++ rule differs from the C set, 
-but in this case I'm not so sure, which direction C++ should follow. 
-The difference is located in the fact, that in C enumerated types are 
-<em>integer types</em> as described in 6.2.5 p17 (see e.g. n1569 or n1256):
-<p/>
-"The type char, the signed and unsigned integer types, and
-the enumerated types are collectively called integer types. The
-integer and real floating types are collectively called real types."
-<p/>
-This indicates that in C the following code
-</p>
-<blockquote><pre>
-#include &lt;math.h&gt;
-
-enum E { e };
-
-void test(void) {
-  sqrt(e); // OK, behaves like sqrt((double) e);
-}
-</pre></blockquote>
-<p>
-seems to be well-defined and <tt>e</tt> is cast to <tt>double</tt>, but in C++
-referring to
-</p>
-<blockquote><pre>
-#include &lt;cmath&gt;
-
-enum E { e };
-
-void test() {
-  std::sqrt(e); // OK, behaves like sqrt((float) e);
-}
-</pre></blockquote>
-
-<p>
-is also well-defined (because of our lack of constraints) but we
-must skip bullet 2 (because E is not an integer type) and effectively
-cast <tt>e</tt> to <tt>float</tt>. Accepting this, we would introduce 
-a silent, but observable runtime difference for C and C++.
-<p/>
-GCC 4.7 does not accept this example, but causes an ambiguity
-error among the three floating point overloads of sqrt.
-<p/>
-My current suggestion to fix these problems would be to constrain the 
-valid argument types of these functions to arithmetic types.
-</p>
-
-<blockquote><p>
-Howard provided wording to solve the issue.
-</p></blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Moved to Ready.  The proposed wording reflects both original intent from
-TR1, and current implementations.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 26.8 [c.math] p11 as indicated:</p>
-
-<blockquote>
-<p>Moreover, there shall be additional overloads sufficient to ensure:</p>
-<ol>
-<li>
-If any <ins>arithmetic</ins> argument corresponding to a <tt>double</tt> parameter has 
-type <tt>long double</tt>, then all <ins>arithmetic</ins> arguments corresponding to 
-<tt>double</tt> parameters are effectively cast to <tt>long double</tt>.
-</li>
-<li>
-Otherwise, if any <ins>arithmetic</ins> argument corresponding to a <tt>double</tt> 
-parameter has type <tt>double</tt> or an integer type, then all <ins>arithmetic</ins> 
-arguments corresponding to <tt>double</tt> parameters are effectively cast to <tt>double</tt>.
-</li>
-<li>
-Otherwise, all <ins>arithmetic</ins> arguments corresponding to <tt>double</tt> parameters 
-<del>are effectively cast to</del><ins>have type</ins> <tt>float</tt>.
-</li>
-</ol>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2087"></a>2087. <tt>iostream_category()</tt> and <tt>noexcept</tt></h3>
-<p><b>Section:</b> 27.5 [iostreams.base] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2011-09-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iostreams.base">issues</a> in [iostreams.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In <tt>&lt;system_error&gt;</tt> we have:
-</p>
-
-<blockquote><pre>
-const error_category&amp; generic_category() noexcept;
-const error_category&amp; system_category() noexcept;
-</pre></blockquote>
-
-<p>
-In <tt>&lt;future&gt;</tt> we have:
-</p>
-
-<blockquote><pre>
-const error_category&amp; future_category() noexcept;
-</pre></blockquote>
-
-<p>
-But in <tt>&lt;ios&gt;</tt> we have:
-</p>
-
-<blockquote><pre>
-const error_category&amp; iostream_category();
-</pre></blockquote>
-
-<p>
-Is there any reason that <tt>iostream_category()</tt> is not declared with 
-<tt>noexcept</tt> or is this an oversight?
-</p>
-
-<p>
-Daniel:
-<p/>
-This looks like an oversight to me. We made the above
-mentioned changes as part of noexcept-ifying the thread
-library but <tt>iostream_category()</tt> was skipped, so it seems
-to be forgotten. There should be no reason, why it cannot
-be <tt>noexcept</tt>. When doing so, we should also make these functions
-<tt>noexcept</tt> (similar to corresponding overloads):
-</p>
-<blockquote><pre>
-error_code make_error_code(io_errc e);
-error_condition make_error_condition(io_errc e);
-</pre></blockquote>
-
-<p>
-Suggested wording provided by Daniel.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Unanimous.
-<p/>
-Resolution: move to tentatively ready. 
-</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>
-Apply to Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol><li>
-<p>Change 27.5.1 [iostreams.base.overview], header <tt>&lt;ios&gt;</tt> synopsis 
-as indicated:
-</p>
-<blockquote><pre>
-#include &lt;iosfwd&gt;
-namespace std {
-  [&hellip;]
-  error_code make_error_code(io_errc e) <ins>noexcept</ins>;
-  error_condition make_error_condition(io_errc e) <ins>noexcept</ins>;
-  const error_category&amp; iostream_category() <ins>noexcept</ins>;
-}
-</pre></blockquote>
-
-</li>
-<li>
-<p>Change the prototype declarations in 27.5.6.5 [error.reporting] as indicated:
-</p>
-<blockquote><pre>
-error_code make_error_code(io_errc e) <ins>noexcept</ins>;
-</pre></blockquote><blockquote>
-<p>
--1- <i>Returns</i>: <tt>error_code(static_cast&lt;int&gt;(e), iostream_category())</tt>.
-</p>
-</blockquote><blockquote><pre>
-error_condition make_error_condition(io_errc e) <ins>noexcept</ins>;
-</pre></blockquote><blockquote>
-<p>
--2- <i>Returns</i>: <tt>error_condition(static_cast&lt;int&gt;(e), iostream_category())</tt>.
-</p>
-</blockquote><blockquote><pre>
-const error_category&amp; iostream_category() <ins>noexcept</ins>;
-</pre></blockquote><blockquote>
-<p>
--3- <i>Returns</i>: A reference to an object of a type derived from class <tt>error_category</tt>.
-<p/>
--4- The object’s <tt>default_error_condition</tt> and <tt>equivalent</tt> virtual functions shall behave as specified
-for the class <tt>error_category</tt>. The object’s <tt>name</tt> virtual function shall return a pointer to the string
-<tt>"iostream"</tt>.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2091"></a>2091. Misplaced effect in <tt>m.try_lock_for()</tt></h3>
-<p><b>Section:</b> 30.4.1.3 [thread.timedmutex.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-10-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.timedmutex.requirements">issues</a> in [thread.timedmutex.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.4.1.3 [thread.timedmutex.requirements]&#47;4 says, in part, 
-</p><blockquote><p>
-"<i>Requires</i>: If the tick period of [the argument] is not exactly 
-convertible &hellip; [it] shall be rounded up &hellip;"
-</p></blockquote>
-<p>
-This doesn't belong in the requires clause. It's an effect. It belongs in paragraph 5. 
-Nitpickingly, this would be a technical change: as written it imposes an obligation on 
-the caller, while moving it imposes an obligation on the callee. Although that's certainly 
-not what was intended.
-<p/>
-Peter Dimov comments:
-<p/>
-Not to mention that it should round down, not up. :-)
-<p/>
-Incidentally, I see that the wrong <tt>try_lock</tt> requirement that the caller shall not own 
-the mutex has entered the standard, after all. Oh well. Let's hope that the real world 
-continues to ignore it.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Remove the offending sentence from the requirements clause. Do <em>not</em> add it back 
-anywhere else. The implementation already must have license to wake up late, so the 
-rounding is invisible.
-<p/>
-Move to Review.
-</p>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-Concurrency move to Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3337.</p>
-
-<ol>
-<li><p>Change 30.4.1.3 [thread.timedmutex.requirements]&#47;4 as indicated:</p>
-
-<blockquote><p>
--3- The expression <tt>m.try_lock_for(rel_time)</tt> shall be well-formed and have the following semantics:
-<p/>
--4- <i>Requires</i>: <del>If the tick period of <tt>rel_time</tt> is not exactly convertible to the native tick period, the
-duration shall be rounded up to the nearest native tick period.</del> If <tt>m</tt> is of type <tt>std::timed_mutex</tt>,
-the calling thread does not own the mutex.
-</p></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2092"></a>2092. Vague Wording for <tt>condition_variable_any</tt></h3>
-<p><b>Section:</b> 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-10-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvarany">issues</a> in [thread.condition.condvarany].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.5.2 [thread.condition.condvarany]&#47;4 says, in part, that 
-<tt>condition_variable_any()</tt> throws an exception 
-"if any native handle type manipulated is not available". 
-<p/>
-I don't know what that means. Is this intended to say something different 
-from the analogous words for <tt>condition_variable()</tt> [30.5.1 [thread.condition.condvar]&#47;4], 
-"if some non-memory resource limitation prevents initialization"? If not, 
-it should be worded the same way.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Copy the corresponding wording from the <tt>condition_variable</tt> constructor in 30.5.1 [thread.condition.condvar] p4.
-<p/>
-Move to Review.
-</p>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-Concurrency move to Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3337.</p>
-
-<ol>
-<li><p>Change 30.4.1.3 [thread.timedmutex.requirements]&#47;4 as indicated:</p>
-
-<blockquote><pre>
-condition_variable_any();
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--4- <i>Error conditions</i>:
-</p>
-<ul>
-<li><tt>resource_unavailable_try_again</tt> &mdash; <del>if any native handle type manipulated is not available</del>
-<ins>if some non-memory resource limitation prevents initialization</ins>.</li>
-<li><tt>operation_not_permitted</tt> &mdash; if the thread does not have the privilege to perform the operation.</li>
-</ul>
-</blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2093"></a>2093. Throws clause of <tt>condition_variable::wait</tt> with predicate</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2011-10-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-the Throws: clause of <tt>condition_variable::wait&#47;wait_xxx</tt> functions that 
-take a predicate argument is:
-</p>
-<blockquote><p>
-<i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception]).
-</p></blockquote>
-<p>
-If executing the predicate throws an exception, I would expect such exception to propagate unchanged 
-to the caller, but the throws clause seems to indicate that it gets mutated into a system_error. T
-hat's because of 17.5.1.4 [structure.specifications]&#47;4:
-<p/>
-"If F’s semantics contains a Throws:, Postconditions:, or Complexity: element, then that supersedes 
-any occurrences of that element in the code sequence."
-<p/>
-Is my interpretation correct? Does it match the intent?
-<p/>
-Daniel comments:
-<p/>
-I don't think that this interpretation is entirely correct, the wording does not say that 
-<tt>std::system_error</tt> or a derived class must be thrown, it simply is underspecified 
-in this regard (The extreme interpretation is that the behaviour would be undefined, but 
-that would be too far reaching I think). We have better wording for this in 
-30.4.4.2 [thread.once.callonce] p4, where it says:
-<p/>
-"<i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception]), 
-or any exception thrown by <tt>func</tt>."
-<p/>
-or in 30.3.2 [thread.thread.this] p6&#47;p9:
-<p/>
-"<i>Throws</i>: Nothing if <tt>Clock</tt> satisfies the <tt>TrivialClock</tt> requirements 
-(20.12.3 [time.clock.req]) and operations of <tt>Duration</tt> do not throw exceptions. 
-[ <i>Note</i>: instantiations of time point types and clocks supplied by the implementation 
-as specified in 20.12.7 [time.clock] do not throw exceptions. &mdash; <i>end note</i> ]"
-<p/>
-So, the here discussed Throws elements should add lines along the lines of
-<p/>
-"Any exception thrown by operations of <tt>pred</tt>."
-<p/>
-and similar wording for time-related operations:
-<p/>
-"Any exception thrown by operations of <tt>Duration</tt>",
-<p/>
-"Any exception thrown by operations of <tt>chrono::duration&lt;Rep, Period&gt;</tt>"
-</p>
-
-<p><i>[2011-11-28: Ganesh comments and suggests wording]</i></p>
-
-
-<p>
-As for the discussion about the exception thrown by the manipulation of time-related objects, 
-I believe the argument applies to all functions declared in 30 [thread]. Therefore, 
-instead of adding wording to each member, I would simply move those requirements from 
-30.3.2 [thread.thread.this] p6&#47;p9 to a new paragraph in 30.2.4 [thread.req.timing]. 
-<p/>
-As for 30.5.2 [thread.condition.condvarany], the member functions <tt>wait()</tt> and 
-<tt>wait_until()</tt> are described only in terms of the Effects: clause (so strictly speaking, 
-they need no changes), however, <tt>wait_for()</tt> is described with a full set of clauses 
-including Throws: and Error conditions:. Either we should add those clauses to <tt>wait&#47;wait_until</tt> 
-with changes similar to the one above, or remove paragraphs 29 to 34 entirely. By the way, 
-even paragraph 26 could be removed IMHO.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-We like the idea behind the proposed resolution.
-<p/>
-Modify the first addition to read instead: "Functions that specify a timeout, will throw if an operation 
-on a clock, time point, or time duration throws an exception." 
-<p/>
-In the note near the bottom change "even if the timeout has already expired" to "or if the timeout has 
-already expired". (This is independent, but the original doesn't seem to make sense.) 
-<p/>
-Move to Review.
-</p>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-Concurrency move to Ready with slightly ammended wording.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3337.</p>
-
-<ol>
-<li><p>Add a new paragraph at the end of 30.2.4 [thread.req.timing]:</p>
-
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--6- The resolution of timing provided by an implementation depends on both operating system and hardware.
-The finest resolution provided by an implementation is called the <i>native resolution</i>.
-<p/>
--7- Implementation-provided clocks that are used for these functions shall meet the <tt>TrivialClock</tt> 
-requirements (20.12.3 [time.clock.req]).
-<p/>
-
-<ins>-?- Functions that specify a timeout, will throw if, during the execution of this function,
-a clock, time point, or time duration throws an exception. [ <i>Note</i>: instantiations of clock,
-time point and duration types supplied by the implementation as specified in 20.12.7 [time.clock]
-do not throw exceptions. &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote>
-</li>
-
-
-<li><p>Change 30.3.2 [thread.thread.this] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-  void sleep_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);;
-</pre><blockquote>
-<p>
--4- <i>Effects</i>: Blocks the calling thread for the absolute timeout (30.2.4 [thread.req.timing]) specified by <tt>abs_time</tt>.
-<p/>
--5- <i>Synchronization</i>: None.
-<p/>
--6- <i>Throws</i>: <ins>timeout-related exceptions (30.2.4 [thread.req.timing]).</ins><del>Nothing if 
-<tt>Clock</tt> satisfies the <tt>TrivialClock</tt> requirements (20.12.3 [time.clock.req]) and 
-operations of <tt>Duration</tt> do not throw exceptions. [ <i>Note</i>: instantiations of time point types 
-and clocks supplied by the implementation as specified in 20.12.7 [time.clock] do not throw 
-exceptions. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-  void sleep_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);;
-</pre><blockquote>
-<p>
--7- <i>Effects</i>: Blocks the calling thread for the relative timeout (30.2.4 [thread.req.timing]) specified by <tt>rel_time</tt>.
-<p/>
--8- <i>Synchronization</i>: None.
-<p/>
--9- <i>Throws</i>: <ins>timeout-related exceptions (30.2.4 [thread.req.timing]).</ins><del>Nothing 
-if operations of <tt>chrono::duration&lt;Rep, Period&gt;</tt> do not throw exceptions. 
-[ <i>Note</i>: instantiations of time point types and clocks supplied by the implementation
-as specified in 20.12.7 [time.clock] do not throw exceptions. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote></blockquote>
-
-</li>
-
-<li><p>Change 30.4.1.3 [thread.timedmutex.requirements] as indicated:</p>
-
-<p>
--3- The expression <tt>m.try_lock_for(rel_time)</tt> shall be well-formed and have the following semantics:
-<p/>
-[&hellip;]
-<p/>
--5- <i>Effects</i>: The function attempts to obtain ownership of the mutex within the relative timeout (30.2.4 [thread.req.timing])
-specified by <tt>rel_time</tt>. If the time specified by <tt>rel_time</tt> is less than or equal to <tt>rel_time.zero()</tt>, the
-function attempts to obtain ownership without blocking (as if by calling <tt>try_lock()</tt>). The function
-shall return within the timeout specified by <tt>rel_time</tt> only if it has obtained ownership of the mutex
-object. [<i>Note</i>: As with <tt>try_lock()</tt>, there is no guarantee that ownership will be obtained if the lock
-is available, but implementations are expected to make a strong effort to do so. &mdash; <i>end note</i>]
-<p/>
-[&hellip;]
-<p/>
--8- <i>Synchronization</i>: If <tt>try_lock_for()</tt> returns <tt>true</tt>, prior <tt>unlock()</tt> operations on the same object
-<i>synchronize with</i> (1.10 [intro.multithread]) this operation.
-<p/>
--9- <i>Throws</i>: <ins>timeout-related exceptions (30.2.4 [thread.req.timing]).</ins><del>Nothing</del>.
-<p/>
--10- The expression <tt>m.try_lock_until(abs_time)</tt> shall be well-formed and have the following semantics:
-<p/>
-[&hellip;]
-<p/>
--12- <i>Effects</i>: The function attempts to obtain ownership of the mutex. If <tt>abs_time</tt> has already passed, the
-function attempts to obtain ownership without blocking (as if by calling <tt>try_lock()</tt>). The function
-shall return before the absolute timeout (30.2.4 [thread.req.timing]) specified by <tt>abs_time</tt> only 
-if it has obtained ownership of the mutex object. [<i>Note</i>: As with <tt>try_lock()</tt>, there is no guarantee 
-that ownership will be obtained if the lock is available, but implementations are expected to make a strong effort 
-to do so. &mdash; <i>end note</i>]
-<p/>
-[&hellip;]
-<p/>
--15- <i>Synchronization</i>: If <tt>try_lock_until()</tt> returns true, prior <tt>unlock()</tt> operations on the same object
-<i>synchronize with</i> (1.10 [intro.multithread]) this operation.
-<p/>
--16- <i>Throws</i>: <ins>timeout-related exceptions (30.2.4 [thread.req.timing]).</ins><del>Nothing</del>.
-</p>
-</li>
-
-<li><p>Change 30.5.1 [thread.condition.condvar] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class Predicate&gt;
-  void wait(unique_lock&lt;mutex&gt;&amp; lock, Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--15- <i>Effects</i>: <ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-while (!pred())
-  wait(lock);
-</pre></blockquote>
-<p>
-[&hellip;]
-<p/>
--17- <i>Throws</i>: <tt>std::system_error</tt> when an exception is required (30.2.2 [thread.req.exception])<ins>, 
-timeout-related exceptions (30.2.4 [thread.req.timing]), or any exception thrown by <tt>pred</tt></ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-  cv_status wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                       const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--23- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception])
-<ins>or timeout-related exceptions (30.2.4 [thread.req.timing])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-  cv_status wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-                     const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--26- <i>Effects</i>: <del>as if</del><ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-return wait_until(lock, chrono::steady_clock::now() + rel_time);
-</pre></blockquote>
-<p>
-[&hellip;]
-<p/>
--29- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception])
-<ins>or timeout-related exceptions (30.2.4 [thread.req.timing])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Clock, class Duration, class Predicate&gt;
-  bool wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-                  const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time,
-                  Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--32- <i>Effects</i>: <ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-while (!pred())
-  if (wait_until(lock, abs_time) == cv_status::timeout)
-    return pred();
-return true;
-</pre></blockquote>
-<p>
-<del>-33- <i>Returns</i>: <tt>pred()</tt></del>
-<p/>
-[&hellip;]
-<p/>
--36- <i>Throws</i>: <tt>std::system_error</tt> when an exception is required (30.2.2 [thread.req.exception])<ins>, 
-timeout-related exceptions (30.2.4 [thread.req.timing]), or any exception thrown by <tt>pred</tt></ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Rep, class Period, class Predicate&gt;
-  bool wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-                const chrono::duration&lt;Rep, Period&gt;&amp; rel_time,
-                Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--39- <i>Effects</i>: <del>as if</del><ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-return wait_until(lock, chrono::steady_clock::now() + rel_time, std::move(pred));
-</pre></blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-42- <i>Returns</i>: <tt>pred()</tt></del>
-<p/>
-[&hellip;]
-<p/>
--44- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception])<ins>, 
-timeout-related exceptions (30.2.4 [thread.req.timing]), or any exception thrown by <tt>pred</tt></ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-</li>
-
-<li><p>Change 30.5.2 [thread.condition.condvarany] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class Lock, class Predicate&gt;
-  void wait(Lock&amp; lock, Predicate pred);
-</pre><blockquote>
-<p>
--14- <i>Effects</i>: <ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-while (!pred())
-  wait(lock);
-</pre></blockquote>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Lock, class Clock, class Duration&gt;
-  cv_status wait_until(Lock&amp; lock, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--18- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception])
-<ins>or any timeout-related exceptions (30.2.4 [thread.req.timing])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Lock, class Rep, class Period&gt;
-  cv_status wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--20- <i>Effects</i>: <del>as if</del><ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-return wait_until(lock, chrono::steady_clock::now() + rel_time);
-</pre></blockquote>
-<p>
-[&hellip;]
-<p/>
--23- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception])
-<ins>or any timeout-related exceptions (30.2.4 [thread.req.timing])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Lock, class Clock, class Duration, class Predicate&gt;
-  bool wait_until(Lock&amp; lock, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time, Predicate pred);
-</pre><blockquote>
-<p>
--25- <i>Effects</i>: <ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-while (!pred())
-  if (wait_until(lock, abs_time) == cv_status::timeout)
-    return pred();
-return true;
-</pre></blockquote>
-<p>
--26- <del><i>Returns</i>: <tt>pred()</tt></del><ins>[<i>Note</i>: There is no blocking if <tt>pred()</tt> is initially <tt>true</tt>, 
-or if the timeout has already expired. &mdash; <i>end note</i>]</ins>
-<p/>
--27- [<i>Note</i>: The returned value indicates whether the predicate evaluates to <tt>true</tt> regardless of whether the
-timeout was triggered. <i>end note</i>]
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class Lock, class Rep, class Period, class Predicate&gt;
-  bool wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time, Predicate pred);
-</pre><blockquote>
-<p>
--28- <i>Effects</i>: <del>as if</del><ins>Equivalent to:</ins>
-</p>
-<blockquote><pre>
-return wait_until(lock, chrono::steady_clock::now() + rel_time, std::move(pred));
-</pre></blockquote>
-<p>
-<del>-29- [<i>Note</i>: There is no blocking if <tt>pred()</tt> is initially <tt>true</tt>, 
-even if the timeout has already expired. &mdash; <i>end note</i>]</del>
-<del>-30- <i>Postcondition</i>: <tt>lock</tt> is locked by the calling thread.</del>
-<p/>
-<del>-31- <i>Returns</i>: <tt>pred()</tt></del>
-<p/>
-<del>-32- [<i>Note</i>: The returned value indicates whether the predicate evaluates to <tt>true</tt> 
-regardless of whether the timeout was triggered. &mdash; <i>end note</i>]</del>
-<p/>
-<del>-33- <i>Throws</i>: <tt>system_error</tt> when an exception is required (30.2.2 [thread.req.exception]).</del>
-<p/>
-<del>-34- <i>Error conditions</i>:</del>
-</p>
-<ul>
-<li><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></li>
-</ul>
-</blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2094"></a>2094. <tt>duration</tt> conversion overflow shouldn't participate in overload resolution</h3>
-<p><b>Section:</b> 20.12.5.1 [time.duration.cons] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Vicente J. Botet Escriba <b>Opened:</b> 2011-10-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#time.duration.cons">issues</a> in [time.duration.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-20.12.5.1 [time.duration.cons] says:
-</p>
-<blockquote><pre>
-template &lt;class Rep2, class Period2&gt;
-  constexpr duration(const duration&lt;Rep2, Period2&gt;&amp; d);
-</pre><blockquote>
-<p>
-<i>Remarks</i>: This constructor shall not participate in overload resolution unless 
-<tt>treat_as_floating_point&lt;rep&gt;::value</tt> is <tt>true</tt> or both 
-<tt>ratio_divide&lt;Period2, period&gt;::den</tt> is <tt>1</tt> and <tt>treat_as_floating_point&lt;Rep2&gt;::value</tt> 
-is <tt>false</tt>.
-</p></blockquote></blockquote>
-<p>
-The evaluation of <tt>ratio_divide&lt;Period2, period&gt;::den</tt> could make 
-<tt>ratio_divide&lt;Period2, period&gt;::num</tt> overflow.
-<p/>
-This occur for example when we try to create a millisecond (<tt>period</tt>=<tt>ratio&lt;1,1000&gt;</tt>) 
-from an exa-second (<tt>Period2</tt>=<tt>ratio&lt;10<sup>18</sup>&gt;</tt>).
-<p/>
-<tt>ratio_divide&lt;ratio&lt;10<sup>18</sup>&gt;, ratio&lt;1,1000&gt;&gt;::num</tt> is 
-<tt>10<sup>21</sup></tt> which overflows which makes the compiler error.
-<p/>
-If the function <tt>f</tt> is overloaded with milliseconds and seconds
-</p>
-<blockquote><pre>
-void f(milliseconds);
-void f(seconds);
-</pre></blockquote>
-<p>
-The following fails to compile.
-</p>
-<blockquote><pre>
-duration&lt;int,exa&gt; r(1);
-f(r);
-</pre></blockquote>
-<p>
-While the conversion to seconds work, the conversion to milliseconds make the program fail at compile time. 
-In my opinion, this program should be well formed and the constructor from <tt>duration&lt;int,exa&gt;</tt> 
-to milliseconds shouldn't participate in overload resolution as the result can not be represented.
-<p/>
-I think the wording of the standard can be improved so no misinterpretations are possible by adding that 
-"no overflow is induced by the conversion".
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Review.
-</p>
-<p>Pete: The wording is not right.</p>
-<p>Howard: Will implement this to be sure it works.</p>
-<p>Jeffrey: If ratio needs a new hook, should it be exposed to users for their own uses?</p>
-<p>Pete: No.</p>
-
-<p>
-Move to Review,
-Howard to implement in a way that mere mortals can understand.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change the following paragraphs of 20.12.5.1 [time.duration.cons] p4 indicated:</p>
-
-<blockquote><pre>
-template &lt;class Rep2, class Period2&gt;
-  constexpr duration(const duration&lt;Rep2, Period2&gt;&amp; d);
-</pre><blockquote>
-<p>
-<i>Remarks</i>: This constructor shall not participate in overload resolution unless <ins>no 
-overflow is induced in the conversion and</ins> <tt>treat_as_floating_point&lt;rep&gt;::value</tt> 
-is <tt>true</tt> or both <tt>ratio_divide&lt;Period2, period&gt;::den</tt> is <tt>1</tt> and 
-<tt>treat_as_floating_point&lt;Rep2&gt;::value</tt> is <tt>false</tt>. [ <i>Note</i>: This 
-requirement prevents implicit truncation error when converting between integral-based duration 
-types. Such a construction could easily lead to confusion about the value of the 
-duration. &mdash; <i>end note</i> ]
-</p></blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2096"></a>2096. Incorrect constraints of <tt>future::get</tt> in regard to <tt>MoveAssignable</tt></h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.6.6 [futures.unique_future] paragraph 15 says the following:
-</p>
-<blockquote><pre>
-R future::get();
-</pre></blockquote>
-<p>
-&hellip;
-<p/>
--15- <i>Returns</i>:
-</p>
-<ul>
-<li>
-<p><tt>future::get()</tt> returns the value stored in the object’s shared state. If the type of the value is
-<tt>MoveAssignable</tt> the returned value is moved, otherwise it is copied.
-<p/>
-&hellip;
-</p>
-</li>
-</ul>
-<p>
-There are some problems with the description:
-<p/>
-"If the type of the value is <tt>MoveAssignable</tt> the returned value is moved, otherwise it is copied."
-</p>
-<ol>
-<li>It seems to impose unrealistic constraints on implementations, because how could an implementor 
-recognize whether a user-defined type satisfies the semantics of <tt>MoveAssignable</tt>? This should be
-based solely on a pure expression-based requirement, if this is an requirement for implementations.
-</li>
-<li>
-Reducing <tt>MoveAssignable</tt> to the plain expression part <tt>std::is_move_assignable</tt> 
-would solvs (1), but raises another question, namely why a <em>move-assignment</em> should be relevant
-for a function return based on the value stored in the future state? We would better fall back to
-<tt>std::is_move_constructible</tt> instead.
-</li>
-<li><p>The last criticism I have is about the part
-<p/>
-"the returned value is moved, otherwise it is copied"
-<p/>
-because an implementation won't be able to recognize what the user-defined type 
-will do during an expression that is prepared by the implementation. I think the 
-wording is intended to <em>allow</em> a move by seeding with an rvalue expression via
-<tt>std::move</tt> (or equivalent), else the result will be an effective
-copy construction.
-</p>
-</li>
-</ol>
-
-<p><i>[2011-11-28 Moved to Tentatively Ready after 5 positive votes on c++std-lib.]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 30.6.6 [futures.unique_future] paragraph 15 as indicated:</p>
-
-<blockquote><pre>
-R future::get();
-</pre></blockquote>
-<p>
-&hellip;
-<p/>
--15- <i>Returns</i>:
-</p>
-<ul>
-<li>
-<p><tt>future::get()</tt> returns the value <ins><tt>v</tt></ins> stored in the object’s shared 
-state <ins>as <tt>std::move(v)</tt></ins>. <del>If the type of the value is <tt>MoveAssignable</tt> 
-the returned value is moved, otherwise it is copied.</del>
-<p/>
-&hellip;
-</p>
-</li>
-</ul>
-
-
-
-
-
-
-<hr>
-<h3><a name="2097"></a>2097. <tt>packaged_task</tt> constructors should be constrained</h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-11-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-With the proposed resolution of <a href="lwg-defects.html#2067">2067</a>, this no longer selects the
-copy constructor:
-</p>
-<blockquote><pre>
-std::packaged_task&lt;void()&gt; p1;
-std::packaged_task&lt;void()&gt; p2(p1);
-</pre></blockquote>
-<p>
-Instead this constructor is a better match:
-</p>
-<blockquote><pre>
-template &lt;class F&gt;
- explicit packaged_task(F&amp;&amp; f);
-</pre></blockquote>
-<p>
-This attempts to package a <tt>packaged_task</tt>, which internally tries to
-copy <tt>p2</tt>, which fails because the copy constructor is deleted. For at
-least one implementation the resulting error message is much less
-helpful than the expected "cannot call deleted function" because it
-happens after instantiating several more templates rather than in the
-context where the constructor is called.
-<p/>
-I believe the solution is to constrain to the template constructors so
-the template argument <tt>F</tt> cannot be deduced as (possibly <i>cv</i>)
-<tt>packaged_task&amp;</tt> or <tt>packaged_task</tt>.  It could be argued 
-this constraint is already implied because <tt>packaged_task</tt> is not 
-copyable and the template constructors require that "invoking a copy of <tt>f</tt> 
-shall behave the same as invoking <tt>f</tt>".
-<p/>
-Daniel points out that the variadic constructor of <tt>std::thread</tt>
-described in 30.3.1.2 [thread.thread.constr] has a similar problem and 
-suggests a similar wording change, which has been integrated below.
-<p/>
-An alternative is to declare <tt>thread(thread&amp;)</tt> and
-<tt>packaged_task(packaged_task&amp;)</tt> as deleted.
-</p>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-This issue appears to be more about library specification than technical
-concurrency issues, so should be handled in LWG.
-</p>
-
-
-<p><i>[2013, Chicago]</i></p>
-
-<p>
-Move to Immediate resolution.
-</p>
-<p>
-Howard volunteered existing implementation experience with the first change, and saw no issue that the second would 
-introduce any new issue.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Insert a new Remarks element to 30.3.1.2 [thread.thread.constr] around p3 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class F, class ...Args&gt; explicit thread(F&amp;&amp; f, Args&amp;&amp;... args);
-</pre></blockquote>
-<p>
--3- <i>Requires</i>: <tt>F</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall satisfy the <tt>MoveConstructible</tt> 
-requirements. <tt><i>INVOKE</i>(<i>DECAY_COPY</i> ( std::forward&lt;F&gt;(f)), <i>DECAY_COPY</i> (std::forward&lt;Args&gt;(args))...)</tt> 
-(20.8.2) shall be a valid expression.
-<p/>
-<ins>-?- <i>Remarks</i>: This constructor shall not participate in overload resolution if <tt>decay&lt;F&gt;::type</tt> 
-is the same type as <tt>std::thread</tt>.</ins>
-</p>
-</li>
-
-<li><p>Insert a new Remarks element to 30.6.9.1 [futures.task.members] around p2 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class F&gt;
-  packaged_task(F&amp;&amp; f);
-template &lt;class F, class Allocator&gt;
-  explicit packaged_task(allocator_arg_t, const Allocator&amp; a, F&amp;&amp; f);
-</pre></blockquote>
-<p>
--2- <i>Requires</i>: <tt><i>INVOKE</i>(f, t1, t2, ..., tN, R)</tt>, where <tt>t1, t2, ..., tN</tt> are values of the corresponding
-types in <tt>ArgTypes...</tt>, shall be a valid expression. Invoking a copy of <tt>f</tt> shall behave the same as invoking <tt>f</tt>.
-<p/>
-<ins>-?- <i>Remarks</i>: These constructors shall not participate in overload resolution if <tt>decay&lt;F&gt;::type</tt> 
-is the same type as <tt>std::packaged_task&lt;R(ArgTypes...)&gt;</tt>.</ins>
-</p>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2098"></a>2098. Minor Inconsistency between <tt>promise::set_value</tt> and <tt>promise::set_value_at_thread_exit</tt></h3>
-<p><b>Section:</b> 30.6.5 [futures.promise] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2011-11-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#futures.promise">active issues</a> in [futures.promise].</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.promise">issues</a> in [futures.promise].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.6.5 [futures.promise]&#47;16 says that <tt>promise::set_value(const R&amp;)</tt> throws any exceptions 
-thrown by <tt>R</tt>'s copy constructor, and that <tt>promise_set_value(R&amp;&amp;)</tt> throws any exceptions 
-thrown by <tt>R</tt>'s move constructor.
-<p/>
-30.6.5 [futures.promise]&#47;22 is the Throws: clause for <tt>promise::set_value_at_thread_exit</tt>. It 
-has no corresponding requirements, only that these functions throw "<tt>future_error</tt> if an error condition 
-occurs."
-<p/>
-Daniel suggests wording to fix this: The approach is a bit more ambitious and also attempts to fix wording glitches
-of 30.6.5 [futures.promise]&#47;16, because it would be beyond acceptable efforts of implementations to 
-determine whether a constructor call of a user-defined type will indeed call a copy constructor or move constructor 
-(in the first case it might be a template constructor, in the second case it might also be a copy-constructor, 
-if the type has no move constructor).
-</p>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-Moved to Review by the concurrency working group, with no further comments.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change 30.6.5 [futures.promise]&#47;16 as indicated:</p>
-<blockquote><pre>
-void promise::set_value(const R&amp; r);
-void promise::set_value(R&amp;&amp; r);
-void promise&lt;R&amp;&gt;::set_value(R&amp; r);
-void promise&lt;void&gt;::set_value();
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--16- <i>Throws</i>:
-</p>
-<ul>
-<li><tt>future_error</tt> if its shared state already has a stored value or exception, or</li>
-<li>for the first version, any exception thrown by the <del>copy constructor 
-of</del><ins>constructor selected to copy an object of</ins> <tt>R</tt>, or</li>
-<li>for the second version, any exception thrown by the <del>move constructor 
-of</del><ins>constructor selected to move an object of</ins> <tt>R</tt>.</li>
-</ul>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 30.6.5 [futures.promise]&#47;22 as indicated:</p>
-<blockquote><pre>
-void promise::set_value_at_thread_exit(const R&amp; r);
-void promise::set_value_at_thread_exit(R&amp;&amp; r);
-void promise&lt;R&amp;&gt;::set_value_at_thread_exit(R&amp; r);
-void promise&lt;void&gt;::set_value_at_thread_exit();
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--16- <i>Throws</i>: <del><tt>future_error</tt> if an error condition occurs.</del>
-</p>
-<ul>
-<li><ins><tt>future_error</tt> if its shared state already has a stored value or exception, or</ins></li>
-<li><ins>for the first version, any exception thrown by the constructor selected to copy an object of <tt>R</tt>, or</ins></li>
-<li><ins>for the second version, any exception thrown by the constructor selected to move an object of <tt>R</tt>.</ins></li>
-</ul>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2099"></a>2099. Unnecessary constraints of <tt>va_start()</tt> usage</h3>
-<p><b>Section:</b> 18.10 [support.runtime] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-11-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#support.runtime">active issues</a> in [support.runtime].</p>
-<p><b>View all other</b> <a href="lwg-index.html#support.runtime">issues</a> in [support.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In 18.10 [support.runtime] p3 we find (emphasis mine):
-</p>
-<blockquote><p>
-The restrictions that ISO C places on the second parameter to the <tt>va_start()</tt> macro in header <tt>&lt;stdarg.h&gt;</tt>
-are different in this International Standard. The parameter <tt>parmN</tt> is the identifier of the rightmost parameter
-in the variable parameter list of the function definition (the one just before the ...).227 <em>If the parameter
-<tt>parmN</tt> is <strong>declared</strong> with a <strong>function</strong>, <strong>array</strong></em>, or reference type, 
-or with a type that is not compatible with the type that results when passing an argument for which there is no parameter, 
-the behavior is undefined.
-</p></blockquote>
-
-<p>
-It seems astonishing that the constraints on function types and array types imposes these 
-on the <strong>declared</strong> parameter <tt>parmN</tt>, not to the adjusted one (which would
-not require this extra wording, because that is implicit). This seems to say that a function 
-definition of the form (Thanks to Johannes Schaub for this example)
-</p>
-<blockquote><pre>
-#include &lt;stdarg.h&gt;
-
-void f(char const paramN[], ...) {
-  va_list ap;
-  va_start(ap, paramN);
-  va_end(ap);
-}
-</pre></blockquote>
-<p>
-would produce undefined behaviour when used.
-<p/>
-Similar wording exists in C99 and in the most recent C11 draft in 7.16.1.4 p4
-<p/>
-In my opinion the constraints in regard to array types and function types are
-unnecessary and should be relaxed. Are there really implementations out in the 
-wild that would (according to my understanding incorrectly) provide the declared and
-not the adjusted type of <tt>paramN</tt> as deduced type to <tt>va_start()</tt>?
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 18.10 [support.runtime] p3 as indicated:</p>
-<blockquote><p>
-The restrictions that ISO C places on the second parameter to the <tt>va_start()</tt> macro in header <tt>&lt;stdarg.h&gt;</tt>
-are different in this International Standard. The parameter <tt>parmN</tt> is the identifier of the rightmost parameter
-in the variable parameter list of the function definition (the one just before the ...).227 If the parameter
-<tt>parmN</tt> is <del>declared with</del><ins>of</ins> a <del>function, array, or</del> reference type, or 
-<del>with</del><ins>of</ins> a type that is not compatible with the type that results when passing an argument for 
-which there is no parameter, the behavior is undefined.
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2100"></a>2100. timed waiting functions cannot timeout if <tt>launch::async</tt> policy used</h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-11-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.6.8 [futures.async] p5 says
-</p>
-
-<blockquote>
-<p>
-If the implementation chooses the <tt>launch::async</tt> policy,
-</p>
-<ul><li>a call to a waiting function on an asynchronous return object that shares the 
-shared state created by this <tt>async</tt> call shall block until the associated thread has
-completed, as if joined (30.3.1.5 [thread.thread.member]);</li>
-</ul>
-</blockquote>
-
-<p>
-That should say a non-timed waiting function, otherwise, calling a timed waiting function 
-can block indefinitely waiting for the associated thread to complete, rather than timing 
-out after the specified time.
-<p/>
-Since <tt>std::thread</tt> does not provide a <tt>timed_join()</tt> function (nor does
-Pthreads, making it impossible on many platforms) there is no way for a timed waiting 
-function to try to join but return early due to timeout, therefore timed waiting 
-functions either cannot guarantee to timeout or cannot be used to meet the requirement 
-to block until the thread is joined.  In order to allow timed waiting functions to
-timeout the requirement should only apply to non-timed waiting functions.
-</p>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-Detlef: Do we actually need this fix &mdash; is it detectable?
-</p>
-<p>
-Yes &mdash; you will never get a timeout. Should we strike the whole paragraph?
-</p>
-<p>
-Hans: issue with thread local destruction. 
-</p>
-<p>
-Niklas: I have a strong expectation that a timed wait will respect the timeout
-</p>
-<p>
-<em>agreed</em>
-</p>
-<p>
-Detlef: we want a timed wait that does not time out to return like a non-timed wait; but is this implementable?
-</p>
-<p>
-Pablo: Could we simply append ", or else time out"
-</p>
-<p>
-Detlef: the time out on the shared state needs implementing anyway, even if the underlying O/S does not support a timed join.
-</p>
-<p>
-Hans: the net effect is the timeout does not cover the thread local destruction... ah, I see what you're doing
-</p>
-<p>
-Detlef: happy with Pablo's proposal
-</p>
-<p>
-Wording proposed is to append after the word "joined" add ", or else time out"
-</p>
-<p>
-Moved to review with this wording.
-</p>
-
-<p><i>[2013, Bristol]</i></p>
-
-
-<p>
-"Non-timed" made the new wording redundant and the result overly weak. Remove it.
-<p/>
-Attempted to move to add this to the working paper (Concurrency motion 2) without the addition of "non-timed".  
-Motion was withdrawn after Jonathan Wakely expressed implementability concerns.
-</p>
-
-<p><i>[2013-09, Chicago]</i></p>
-
-<p>
-Discussion of interaction with the absence of a Posix timed join.
-<p/>
-Jonathan Wakely withdrew his objection, so moved to Immediate.
-<p/>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This wording is relative to the FDIS.]</i></p>
-
-
-<p>Change 30.6.8 [futures.async] p5 as indicated:</p>
-
-<blockquote>
-<p>
-If the implementation chooses the <tt>launch::async</tt> policy,
-</p>
-<ul><li>a call to a waiting function on an asynchronous return object 
-that shares the shared state created by this <tt>async</tt> call shall block until the 
-associated thread has completed, as if joined<ins>, or else time out</ins>
-(30.3.1.5 [thread.thread.member]);</li>
-</ul>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2102"></a>2102. Why is <tt>std::launch</tt> an implementation-defined type?</h3>
-<p><b>Section:</b> 30.6.1 [futures.overview] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-11-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.overview">issues</a> in [futures.overview].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-30.6.1 [futures.overview] says <tt>std::launch</tt> is an
-implementation-defined bitmask type, which would usually mean the
-implementation can choose whether to define an enumeration type, or a
-<tt>bitset</tt>, or an integer type. But in the case of <tt>std::launch</tt> it's
-required to be a scoped enumeration type, 
-</p>
-<blockquote><pre>
-enum class launch : <i>unspecified</i> {
-  async = <i>unspecified</i>,
-  deferred = <i>unspecified</i>,
-  <i>implementation-defined</i>
-};
-</pre></blockquote>
-<p>
-so what is implementation-defined about it, and what is an implementation 
-supposed to document about its choice?
-</p>
-
-<p><i>[2011-12-02 Moved to Tentatively Ready after 6 positive votes on c++std-lib.]</i></p>
- 
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 30.6.1 [futures.overview] paragraph 2 as indicated:</p>
-
-<blockquote><p>
-The enum type <tt>launch</tt> is <del>an implementation-defined</del><ins>a</ins> bitmask type 
-(17.5.2.1.3 [bitmask.types]) with <tt>launch::async</tt> and <tt>launch::deferred</tt> 
-denoting individual bits. [ <i>Note</i>: Implementations can provide bitmasks to specify restrictions
-on task interaction by functions launched by <tt>async()</tt> applicable to a corresponding subset of
-available launch policies. Implementations can extend the behavior of the first overload of <tt>async()</tt> by
-adding their extensions to the launch policy under the “as if” rule. &mdash; <i>end note</i> ]
-</p></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2103"></a>2103. <tt>std::allocator_traits&lt;std::allocator&lt;T&gt;&gt;::propagate_on_container_move_assignment</tt></h3>
-<p><b>Section:</b> 20.7.9 [default.allocator] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Ai Azuma <b>Opened:</b> 2011-11-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#default.allocator">issues</a> in [default.allocator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-&quot;<tt>std::allocator_traits&lt;std::allocator&lt;T&gt;&gt;::propagate_on_container_move_assignment::value</tt>&quot;
-is specified as &quot;false&quot;, according to (20.7.9 [default.allocator]) and (20.7.8.1 [allocator.traits.types]).
-However, according to (23.2.1 [container.requirements.general]), this specification leads to the unneeded requirements
-(<tt>MoveInsertable</tt> and <tt>MoveAssignable</tt> of the value type) on the move assignment operator of containers
-with the default allocator. 
-<p/>
-Proposed resolution:
-<p/>
-Either of the following two changes;  
-</p>
-<ol>
-<li>
-adding the nested typedef like
-&quot;<tt>typedef std::true_type propagate_on_container_move_assignment;</tt>&quot;
-in the definition of <tt>std::allocator</tt> class template,
-</li>
-<li>
-adding the explicit partial specialization of
-&quot;<tt>std::allocator_traits</tt>&quot; class template for &quot;<tt>std::allocator</tt>&quot;
-class template, in which &quot;<tt>propagate_on_container_move_assignment</tt>&quot;
-nested typedef is specified as &quot;<tt>std::true_type</tt>&quot;. 
-</li>
-</ol>
-<p>
-Pablo prefers the first resolution.
-</p>
-
-<p><i>[2011-12-02: Pablo comments]</i></p>
-
-
-<p>
-This issue has potentially some overlap with <a href="lwg-defects.html#2108">2108</a>. Should the trait <tt>always_compare_equal</tt>
-been added, this issue's resolution should be improved based on that.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 20.7.9 [default.allocator], the class template <tt>allocator</tt> synopsis as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; class allocator;
-
-  <i>// specialize for <tt>void</tt>:</i>
-  template &lt;&gt; class allocator&lt;void&gt; {
-  public:
-    typedef void* pointer;
-    typedef const void* const_pointer;
-    <i>// reference-to-<tt>void</tt> members are impossible.</i>
-    typedef void value_type;
-    template &lt;class U&gt; struct rebind { typedef allocator&lt;U&gt; other; };
-  };
-
-  template &lt;class T&gt; class allocator {
-  public:
-    typedef size_t size_type;
-    typedef ptrdiff_t difference_type;
-    typedef T* pointer;
-    typedef const T* const_pointer;
-    typedef T&amp; reference;
-    typedef const T&amp; const_reference;
-    typedef T value_type;
-    template &lt;class U&gt; struct rebind { typedef allocator&lt;U&gt; other; };
-    <ins>typedef true_type propagate_on_container_move_assignment;</ins>
-
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2104"></a>2104. <tt>unique_lock</tt> move-assignment should not be <tt>noexcept</tt></h3>
-<p><b>Section:</b> 30.4.2.2 [thread.lock.unique] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Anthony Williams <b>Opened:</b> 2011-11-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-I just noticed that the <tt>unique_lock</tt> move-assignment operator is declared <tt>noexcept</tt>. This 
-function may call <tt>unlock()</tt> on the wrapped mutex, which may throw.
-<p/>
-Suggested change: remove the <tt>noexcept</tt> specification from <tt>unique_lock::operator=(unique_lock&amp;&amp;)</tt> 
-in 30.4.2.2 [thread.lock.unique] and 30.4.2.2.1 [thread.lock.unique.cons]. 
-<p/>
-Daniel:
-<p/>
-I think the situation is actually a bit more complex as it initially looks.
-<p/>
-First, the effects of the move-assignment operator are (emphasize mine):
-</p>
-<blockquote><p>
-<i>Effects</i>: <strong>If</strong> <tt>owns</tt> calls <tt>pm->unlock()</tt>.
-</p></blockquote>
-<p>
-Now according to the <tt>BasicLockable</tt> requirements:
-</p>
-<blockquote><p>
-<tt>m.unlock()</tt>
-<p/>
-3 <i>Requires</i>: The current execution agent shall hold a lock on <tt>m</tt>.
-<p/>
-4 <i>Effects</i>: Releases a lock on <tt>m</tt> held by the current execution agent.
-<p/>
-<i>Throws</i>: Nothing.
-</p></blockquote>
-<p>
-This shows that unlock itself is a function with narrow contract and for 
-this reasons no unlock function of a mutex or lock itself does have a noexcept 
-specifier according to our mental model.
-<p/>
-Now the move-assignment operator <strong>attempts</strong> to satisfy these
-requirement of the function and calls it only when it assumes that the conditions 
-are ok, so from the view-point of the caller of the move-assignment operator it 
-looks as if the move-assignment operator would in total a function with a
-wide contract.
-<p/>
-The problem with this analysis so far is, that it depends on the assumed 
-correctness of the state "owns".
-<p/>
-Looking at the construction or state-changing functions, there do exist several 
-ones that depend on caller-code satisfying the requirements and there is one 
-guy, who looks most suspicious:
-</p>
-<blockquote><p>
-<tt>unique_lock(mutex_type&amp; m, adopt_lock_t);</tt>
-<p/>
-11 <i>Requires</i>: The calling thread own the mutex.<br/>
-[&hellip;]<br/>
-13 <i>Postconditions</i>: <tt>pm == &amp;m</tt> and <tt>owns == true</tt>.<br/>
-</p></blockquote>
-<p>
-because this function does not even call <tt>lock()</tt> (which may, but is not 
-required to throw an exception if the calling thread does already own the mutex). 
-So we have in fact still a move-assignment operator that might throw an exception, 
-if the mutex was either constructed or used (call of lock) incorrectly.
-<p/>
-The correct fix seems to me to also add a "<i>Throws</i>: Nothing" element to
-the move-assignment operator, because using it correctly shall not throw an
-exception.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate after SG1 review]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li>
-<p>Change 30.4.2.2 [thread.lock.unique], class template <tt>unique_lock</tt> synopsis as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Mutex&gt;
-  class unique_lock {
-  public:
-    typedef Mutex mutex_type;
-    [&hellip;]
-    unique_lock(unique_lock&amp;&amp; u) noexcept;
-    unique_lock&amp; operator=(unique_lock&amp;&amp; u) <del>noexcept</del>;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li>
-<p>Change 30.4.2.2.1 [thread.lock.unique.cons] around p22 as indicated:</p>
-
-<blockquote><pre>
-unique_lock&amp; operator=(unique_lock&amp;&amp; u) <del>noexcept</del>;
-</pre><blockquote>
-<p>
--22- <i>Effects</i>: If <tt>owns</tt> calls <tt>pm->unlock()</tt>.
-<p/>
--23- <i>Postconditions</i>: <tt>pm == u_p.pm</tt> and <tt>owns == u_p.owns</tt> (where <tt>u_p</tt> 
-is the state of <tt>u</tt> just prior to this construction), <tt>u.pm == 0</tt> and <tt>u.owns == false</tt>.
-<p/>
--24- [<i>Note</i>: With a recursive mutex it is possible for both <tt>*this</tt> and <tt>u</tt> to own 
-the same mutex before the assignment. In this case, <tt>*this</tt> will own the mutex after the assignment 
-and <tt>u</tt> will not. &mdash; <i>end note</i>]
-</p>
-<ins>-??- <i>Throws</i>: Nothing.</ins>
-<p/>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2105"></a>2105. Inconsistent requirements on <tt>const_iterator</tt>'s <tt>value_type</tt></h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2011-11-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In the FDIS, Table 96 specifies <tt>X::const_iterator</tt> as a "constant iterator type 
-whose value type is <tt>T</tt>". However, Table 97 specifies <tt>X::const_reverse_iterator</tt> 
-as an "iterator type whose value type is <tt>const T</tt>" and which is defined as 
-<tt>reverse_iterator&lt;const_iterator&gt;</tt>. But <tt>reverse_iterator::value_type</tt> is 
-just "<tt>typename iterator_traits&lt;Iterator&gt;::value_type</tt>" 24.5.1.1 [reverse.iterator], 
-so <tt>const_iterator</tt> and <tt>const_reverse_iterator</tt> must have the same <tt>value_type</tt>.
-</p>
-<p>
-The resolution to issue <a href="lwg-defects.html#322">322</a> implies that
-<tt>const_reverse_iterator</tt> should change.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change Table 97 &mdash; "Reversible container requirements" as indicated</p>
-
-<table border="1">
-<caption>Table 97 &mdash; Reversible container requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr> 
-
-<tr>
-<td>
-<tt>X::reverse_-<br/>
-iterator</tt>
-</td>
-<td>
-iterator type whose value type<br/>
-is <tt>T</tt>
-</td>
-<td>
-<tt>reverse_iterator&lt;iterator&gt;</tt>
-</td>
-<td>
-compile time
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X::const_-<br/>
-reverse_-<br/>
-iterator</tt>
-</td>
-<td>
-<ins>constant</ins> iterator type whose value type<br/>
-is <tt><del>const</del> T</tt>
-</td>
-<td>
-<tt>reverse_iterator&lt;const_iterator&gt;</tt>
-</td>
-<td>
-compile time
-</td>
-</tr>
-</table>
-
-
-
-
-
-
-
-<hr>
-<h3><a name="2106"></a>2106. <tt>move_iterator</tt> wrapping iterators returning prvalues</h3>
-<p><b>Section:</b> 24.5.3 [move.iterators] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Dave Abrahams <b>Opened:</b> 2011-11-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#move.iterators">issues</a> in [move.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Shouldn't <tt>move_iterator</tt> be specialized so that if the iterator it wraps
-returns a prvalue when dereferenced, the <tt>move_iterator</tt> also returns by
-value? Otherwise, it creates a dangling reference.
-<p/>
-Howard: I believe just changing <tt>move_iterator&lt;I&gt;::reference</tt> would do.
-A direction might be testing on <tt>is_reference&lt;iterator_traits&lt;I&gt;::reference&gt;</tt>, 
-or <tt>is_reference&lt;decltype(*declval&lt;I&gt;())&gt;</tt>.
-<p/>
-Daniel: I would prefer to use a consistent style among the iterator adaptors, so I
-suggest to keep with the <tt>iterator_traits</tt> typedefs if possible. 
-</p>
-<blockquote><pre>
-using reference = typename conditional&lt;
-  is_reference&lt;typename iterator_traits&lt;Iterator&gt;::reference&gt;::value,
-  value_type&amp;&amp;,
-  value_type
-&gt;::type;
-</pre></blockquote>
-<p>
-We might also want to ensure that if <tt>Iterator</tt>'s <tt>reference</tt> type <em>is</em>
-a reference, the referent is equal to <tt>value_type</tt> (after removal of <i>cv</i>-qualifiers). 
-In <em>general</em> we have no such guarantee.
-<p/>
-Marc: In the default case where we don't return <tt>value_type&amp;&amp;</tt>, should we use 
-<tt>value_type</tt> or should we keep the <tt>reference</tt> type of the wrapped iterator?
-<p/>
-Daniel: This suggestion looks appealing at first, but the problem here is that using this typedef
-can make it impossible for <tt>move_iterator</tt> to satisfy its contract, which means returning
-an rvalue of the value type (Currently it says rvalue-reference, but this must be fixed as of
-this issue anyway). I think that user-code can reasonably expect that when it has constructed
-an object <tt>m</tt> of <tt>move_iterator&lt;It&gt;</tt>, where <tt>It</tt> is a valid 
-mutable iterator type, the expression
-</p>
-<blockquote><pre>
-<span style="color:#C80000;font-weight:bold">It::value_type&amp;&amp; rv = *m;</span>
-</pre></blockquote>
-<p>
-is well-formed.
-<p/>
-Let's set <tt>R</tt> equal to <tt>iterator_traits&lt;Iterator&gt;::reference</tt>
-in the following. We can discuss the following situations:
-</p>
-<ol><li><tt>R</tt> is a reference type: We can only return the corresponding xvalue of <tt>R</tt>,
-if <tt>value_type</tt> is reference-related to the referent type, else this is presumably no
-forward iterator and we cannot say much about it, except that it must be convertible to
-<tt>value_type</tt>, so it better should return a prvalue.</li>
-<li><tt>R</tt> is not a reference type: In this case we can rely on a conversion to
-<tt>value_type</tt> again, but not much more. Assume we would return <tt>R</tt> directly,
-this might turn out to have a conversion to an lvalue-reference type of the value type (for
-example). If that is the case, this would indirectly violate the contract of 
-<tt>move_iterator</tt>.</li>
-</ol>
-<p>
-In regard to the first scenario I suggest that implementations are simply required to
-check that <tt>V2 = remove_cv&lt;remove_reference&lt;R&gt;::type&gt;::type</tt> is equal
-to the value type <tt>V1</tt> as a criterion to return this reference as an xvalue, in all other
-cases it should return the value type directly as prvalue.
-<p/>
-The additional advantage of this strategy is, that we always ensure that <tt>reference</tt> has 
-the correct <i>cv</i>-qualification, if <tt>R</tt> is a real reference.
-<p/>
-It is possible to improve this a bit by indeed supporting reference-related types,
-this would require to test <tt>is_same&lt;V1, V2&gt;::value || is_base_of&lt;V1, V2&gt;::value</tt> 
-instead. I'm unsure whether (a) this additional effort is worth it and (b) a strict reading of
-the forward iterator requirements seems not to allow to return a reference-related type (Whether 
-this is a defect or not is another question).
-</p>
-
-<p><i>[2011-12-05: Marc Glisse comments and splits into two resolution alternatives]</i></p>
-
-
-<p>
-I guess I am looking at the speed of:
-</p>
-<blockquote><pre>
-value_type x;
-x = *m;
-</pre></blockquote>
-<p>
-(copy construction would likely trigger copy elision and thus be neutral)
-
-instead of the validity of:
-</p>
-<blockquote><pre>
-value_type&amp;&amp; x = *m;
-</pre></blockquote>
-<p>
-In this sense, Daniels earlier proposition that ignored <tt>value_type</tt> and just did 
-<tt>switch_lvalue_ref_to_rvalue_ref&lt;reference&gt;</tt> was easier to understand (and it didn't 
-require thinking about reference related types).
-<p/>
-The currently proposed resolution has been split into two alternatives.
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Review.
-</p>
-<p>
-Alisdair: This only applies to input iterators, so keep that in mind when thinking about this.
-</p>
-<p>
-STL: I see what B is doing, but not A.
-</p>
-<p>
-Howard: I agree.
-</p>
-<p>
-Alisdair: Should we use <tt>add_rvalue_reference</tt>?
-</p>
-<p>
-STL: No, we do not want reference collapsing.
-</p>
-<p>
-STL: Re A, messing with the CV qualification scares me.
-</p>
-<p>
-Alisdair: Agree. That would break my intent.
-</p>
-<p>
-STL: Actually I don't think it's actually wrong, but I still don't see what it's doing.
-</p>
-<p>
-Alisdair: A is picking the value type, B is picking the proxy type.
-</p>
-<p>
-Howard: I like returning the proxy type.
-</p>
-<p>
-STL: Returning a reference (B) seems right, because the requirements say "reference".
-I suspect that B works correctly if you have a move iterator wrapping a move iterator
-wrapping a thing.  I think that A would mess up the type in the middle.
-</p>
-<p>
-Considerable discussion about which version is correct, checking various examples.
-</p>
-<p>
-STL: Still think B is right. Still don't understand A. In A we are losing the proxyness.
-</p>
-<p>
-Howard: Agree 100%. We don't want to lose the proxy. If it's const, so be it.
-</p>
-<p>
-STL: B is also understandable by mortals.
-</p>
-<p>
-Howard: Remove to review, keep A but move it out of the proposed resolution area
-(but keep it for rational).
-</p>
-<p>
-Alisdair: Adding an explanatory note might be a good idea, if someone wants to write one.
-</p>
-<p>
-Walter: Concerned about losing the word "reference" in p.1.
-</p>
-<p>
-Howard: <tt>move_iterator</tt> will return an xvalue or a prvalue, both of which are rvalues.
-</p>
-
-<p><i>[Proposed resolution A, rejected in preference to the currently proposed resolution (B)
-
-<ol>
-<li><p>Change 24.5.3 [move.iterators] p1 as indicated:</p>
-
-<blockquote><p>
-Class template <tt>move_iterator</tt> is an iterator adaptor with the same behavior as the underlying iterator
-except that its dereference operator implicitly converts the value returned by the underlying iterator's
-dereference operator to an rvalue <del>reference</del><ins>of the value type</ins>. Some generic algorithms 
-can be called with move iterators to replace copying with moving.
-</p></blockquote>
-</li>
-
-<li><p>Change 24.5.3.1 [move.iterator], class template <tt>move_iterator</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Iterator&gt;
-  class move_iterator {
-  public:
-    typedef Iterator iterator_type;
-    typedef typename iterator_traits&lt;Iterator&gt;::difference_type difference_type;
-    typedef Iterator pointer;
-    typedef typename iterator_traits&lt;Iterator&gt;::value_type value_type;
-    typedef typename iterator_traits&lt;Iterator&gt;::iterator_category iterator_category;
-    typedef <del>value_type&amp;&amp;</del><ins><i>see below</i></ins> reference;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-
-</li>
-
-<li><p>Immediately following the class template <tt>move_iterator</tt> synopsis in 
-24.5.3.1 [move.iterator] insert a new paragraph as indicated:</p>
-
-<blockquote><p>
-<ins>-?- Let <tt><i>R</i></tt> be <tt>iterator_traits&lt;Iterator&gt;::reference</tt> and
-let <tt><i>V</i></tt> be <tt>iterator_traits&lt;Iterator&gt;::value_type</tt>. If 
-<tt>is_reference&lt;<i>R</i>&gt;::value</tt> is <tt>true</tt> and if 
-<tt>remove_cv&lt;remove_reference&lt;<i>R</i>&gt;::type&gt;::type</tt> is the same type as <tt><i>V</i></tt>, 
-the template instantiation <tt>move_iterator&lt;Iterator&gt;</tt> shall define the nested type 
-named <tt>reference</tt> as a synonym for <tt>remove_reference&lt;<i>R</i>&gt;::type&amp;&amp;</tt>, 
-otherwise as a synonym for <tt><i>V</i></tt>.</ins>
-</p></blockquote>
-</li>
-</ol>
-
-]</i></p>
-
-
-<p><i>[2012, Portland: Move to Tentatively Ready]</i></p>
-
-<p>
-AJM wonders if the implied trait might be useful elsewhere, and worth adding to type traits as a
-transformation type trait.
-</p>
-
-<p>
-Suspicion that the Range SG might find such a trait useful, but wait until there is clear additional
-use of such a trait before standardizing.
-</p>
-
-<p>
-Minor wording tweak to use <tt>add_rvalue_reference</tt> rather than manually adding the <tt>&amp;&amp;</tt>,
-then move to Tentatively Ready.
-</p>
-
-<p><i>[2013-01-09 Howard Hinnant comments]</i></p>
-
-
-<p>
-I believe the P/R for LWG 2106 is incorrect (item 3).  The way it currently reads, <tt>move_iterator&lt;I&gt;::reference</tt> 
-is <em>always</em> an lvalue reference.  I.e. if <tt>R</tt> is an lvalue reference type, then reference becomes 
-<tt>add_rvalue_reference&lt;R&gt;::type</tt> which is just <tt>R</tt>. And if <tt>R</tt> is not a reference type, 
-then reference becomes <tt>R</tt> (which is also just <tt>R</tt> ;-)).
-</p>
-
-<p>
-I believe the correct wording is what was there previously:
-</p>
-
-<p>
--?- Let <tt>R</tt> be <tt>iterator_traits&lt;Iterator&gt;::reference</tt>. If <tt>is_reference&lt;R&gt;::value</tt> 
-is true, the template instantiation <tt>move_iterator&lt;Iterator&gt;</tt> shall define the nested type named 
-<tt>reference</tt> as a synonym for <tt>remove_reference&lt;R&gt;::type&amp;&amp;</tt>, otherwise as a synonym for 
-<tt>R</tt>.
-</p>
-
-<p>
-Additionally Marc Glisse points out that <tt>move_iterator&lt;I&gt;::operator*()</tt> should return 
-<tt>static_cast&lt;reference&gt;(*current)</tt>, not <tt>std::move(*current)</tt>.
-</p>
-
-<p>
-Previous resolution:
-</p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change 24.5.3 [move.iterators] p1 as indicated:</p>
-
-<blockquote><p>
-Class template <tt>move_iterator</tt> is an iterator adaptor with the same behavior as the underlying iterator
-except that its dereference operator implicitly converts the value returned by the underlying iterator's
-dereference operator to an rvalue <del>reference</del>. Some generic algorithms 
-can be called with move iterators to replace copying with moving.
-</p></blockquote>
-</li>
-
-<li><p>Change 24.5.3.1 [move.iterator], class template <tt>move_iterator</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Iterator&gt;
-  class move_iterator {
-  public:
-    typedef Iterator iterator_type;
-    typedef typename iterator_traits&lt;Iterator&gt;::difference_type difference_type;
-    typedef Iterator pointer;
-    typedef typename iterator_traits&lt;Iterator&gt;::value_type value_type;
-    typedef typename iterator_traits&lt;Iterator&gt;::iterator_category iterator_category;
-    typedef <del>value_type&amp;&amp;</del><ins><i>see below</i></ins> reference;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-
-</li>
-
-<li><p>Immediately following the class template <tt>move_iterator</tt> synopsis in 
-24.5.3.1 [move.iterator] insert a new paragraph as indicated:</p>
-
-<blockquote><p>
-<ins>-?- Let <tt><i>R</i></tt> be <tt>iterator_traits&lt;Iterator&gt;::reference</tt>. If 
-<tt>is_reference&lt;<i>R</i>&gt;::value</tt> is <tt>true</tt>, the template instantiation 
-<tt>move_iterator&lt;Iterator&gt;</tt> shall define the nested type named <tt>reference</tt> 
-as a synonym for <tt>add_rvalue_reference&lt;<i>R</i>&gt;::type</tt>, otherwise as a synonym
-for <tt><i>R</i></tt>.</ins>
-</p></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-05-19, Daniel comments]</i></p>
-
-<p>
-The term <em>instantiation</em> has been changed to <em>specialization</em> in the newly added paragraph as
-suggested by STL and much preferred by myself.
-</p>
-
-<p><i>[2014-05-19 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on five votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 24.5.3 [move.iterators] p1 as indicated:</p>
-
-<blockquote><p>
-Class template <tt>move_iterator</tt> is an iterator adaptor with the same behavior as the underlying iterator
-except that its indirection operator implicitly converts the value returned by the underlying iterator's
-indirection operator to an rvalue <del>reference</del>. Some generic algorithms 
-can be called with move iterators to replace copying with moving.
-</p></blockquote>
-</li>
-
-<li><p>Change 24.5.3.1 [move.iterator], class template <tt>move_iterator</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Iterator&gt;
-  class move_iterator {
-  public:
-    typedef Iterator iterator_type;
-    typedef typename iterator_traits&lt;Iterator&gt;::difference_type difference_type;
-    typedef Iterator pointer;
-    typedef typename iterator_traits&lt;Iterator&gt;::value_type value_type;
-    typedef typename iterator_traits&lt;Iterator&gt;::iterator_category iterator_category;
-    typedef <del>value_type&amp;&amp;</del><ins><i>see below</i></ins> reference;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-
-</li>
-
-<li><p>Immediately following the class template <tt>move_iterator</tt> synopsis in 
-24.5.3.1 [move.iterator] insert a new paragraph as indicated:</p>
-
-<blockquote><p>
-<ins>-?- Let <tt><i>R</i></tt> be <tt>iterator_traits&lt;Iterator&gt;::reference</tt>. If 
-<tt>is_reference&lt;<i>R</i>&gt;::value</tt> is <tt>true</tt>, the template specialization 
-<tt>move_iterator&lt;Iterator&gt;</tt> shall define the nested type named <tt>reference</tt> 
-as a synonym for <tt>remove_reference&lt;<i>R</i>&gt;::type&amp;&amp;</tt>, otherwise as a synonym
-for <tt><i>R</i></tt>.</ins>
-</p></blockquote>
-</li>
-
-<li><p>Edit 24.5.3.3.4 [move.iter.op.star] p1 as indicated:</p>
-<blockquote><pre>
-reference operator*() const;
-</pre><blockquote>
-<p>
--1- <i>Returns</i>: <tt><del>std::move</del><ins>static_cast&lt;reference&gt;</ins>(*current)</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2108"></a>2108. No way to identify allocator types that always compare equal</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2011-12-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Whether two allocator objects compare equal affects the complexity of
-container copy and move assignments and also the possibility of an
-exception being thrown by container move assignments. The latter point
-means container move assignment cannot be <tt>noexcept</tt> when
-<tt>propagate_on_container_move_assignment</tt> (POCMA) is false for the
-allocator because there is no way to detect at compile-time if two
-allocators will compare equal. LWG <a href="lwg-defects.html#2013">2013</a> means this affects all
-containers using <tt>std::allocator</tt>, but even if that is resolved, this
-affects all stateless allocators which do not explicitly define POCMA
-to <tt>true_type</tt>.
-<p/>
-One solution would be to add an "always_compare_equal" trait to
-<tt>allocator_traits</tt>, but that would be duplicating information that is
-already defined by the type's equality operator if that operator
-always returns true. Requiring users to write <tt>operator==</tt> that simply
-returns true and also explicitly override a trait to repeat the same
-information would be unfortunate and risk user errors that allow the
-trait and actual <tt>operator==</tt> to disagree.
-<p/>
-Dave Abrahams suggested a better solution in message c++std-lib-31532,
-namely to allow <tt>operator==</tt> to return <tt>true_type</tt>, which is convertible
-to <tt>bool</tt> but also detectable at compile-time. Adopting this as the
-recommended way to identify allocator types that always compare equal
-only requires a slight relaxation of the allocator requirements so
-that <tt>operator==</tt> is not required to return <tt>bool</tt> exactly.
-<p/>
-The allocator requirements do not make it clear that it is well-defined 
-to compare non-const values, that should be corrected too.
-<p/>
-In message c++std-lib-31615 Pablo Halpern suggested an <tt>always_compare_equal</tt> 
-trait that could still be defined, but with a sensible default value rather 
-than requiring users to override it, and using that to set sensible values for 
-other allocator traits:
-</p>
-<blockquote><p>
-Do we still need <tt>always_compare_equal</tt> if we can have an <tt>operator==</tt>
-that returns <tt>true_type</tt>?  What would its default value be? <tt>is_empty&lt;A&gt;
-|| is_convertible&lt;decltype(a == a), true_type&gt;::value</tt>, perhaps?  One
-benefit I see to such a definition is that stateless C++03 allocators
-that don't use the <tt>true_type</tt> idiom will still benefit from the new
-trait.
-<p/>
-[&hellip;]
-<p/>
-One point that I want to ensure doesn't get lost is that if we adopt some sort of 
-<tt>always_compare_equal</tt>-like trait, then <tt>propagate_on_container_swap</tt> 
-and <tt>propagate_on_container_move_assignment</tt> should default to 
-<tt>always_compare_equal</tt>. Doing this will eliminate unnecessary requirements 
-on the container element type, as per [LWG <a href="lwg-defects.html#2103">2103</a>].
-</p></blockquote>
-<p>
-Optionally, <tt>operator==</tt> for <tt>std::allocator</tt> could be made to return 
-<tt>true_type</tt>, however if LWG <a href="lwg-defects.html#2103">2103</a> is adopted that is less important.
-<p/>
-Alberto Ganesh Barbati: Suggest either <tt>always_compare_equal</tt>,
-<tt>all_objects_(are_)equivalent</tt>, or <tt>all_objects_compare_equal</tt>.
-</p>
-
-<p><i>[2014-11-07 Urbana]</i></p>
-
-<p>
-Resolved by N4258
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li><p>Change Table 27 &mdash; "Descriptive variable definitions" in 17.6.3.5 [allocator.requirements]:</p>
-
-<table border="1">
-<caption>Table 27 &mdash; Descriptive variable definitions</caption>
-<tr>
-<th>Variable</th>
-<th>Definition</th>
-</tr> 
-
-<tr>
-<td>
-<tt>a3<ins>, a4</ins></tt>
-</td>
-<td>
-<del>an rvalue of</del><ins>values of (possibly <tt>const</tt>)</ins> type <tt>X</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>b</tt>
-</td>
-<td>
-a value of <ins>(possibly <tt>const</tt>)</ins> type <tt>Y</tt>
-</td>
-</tr>
-
-</table>
-
-</li>
-
-<li><p>Change Table 28 &mdash; "Allocator requirements" in 17.6.3.5 [allocator.requirements]:</p>
-
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Default</th>
-</tr> 
-
-<tr>
-<td>
-<tt><del>a1 == a2</del><ins>a3 == a4</ins></tt>
-</td>
-<td>
-<ins>convertible to</ins> <tt>bool</tt>
-</td>
-<td>
-returns true only if storage<br/>
-allocated from each can be<br/>
-deallocated via the other.<br/>
-<tt>operator==</tt> shall be reflexive,<br/>
-symmetric, and transitive, and<br/>
-shall not exit via an exception.
-</td>
-<td>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt><del>a1 != a2</del><ins>a3 != a4</ins></tt>
-</td>
-<td>
-<ins>convertible to</ins> <tt>bool</tt>
-</td>
-<td>
-same as <tt><del>!(a1 == a2)</del><ins>!(a3 == a4)</ins></tt>
-</td>
-<td>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a<ins>3</ins> == b</tt>
-</td>
-<td>
-<ins>convertible to</ins> <tt>bool</tt>
-</td>
-<td>
-same as <tt>a<ins>3</ins> ==<br/>
-Y::rebind&lt;T&gt;::other(b)</tt>
-</td>
-<td>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a<ins>3</ins> != b</tt>
-</td>
-<td>
-<ins>convertible to</ins> <tt>bool</tt>
-</td>
-<td>
-same as <tt>!(a<ins>3</ins> == b)</tt>
-</td>
-<td>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.select_on_-<br/>
-container_copy_-<br/>
-construction()</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-Typically returns either <tt>a</tt> or<br/>
-<tt>X()</tt>
-</td>
-<td>
-<tt>return a;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>X::always_compares_equal</tt></ins>
-</td>
-<td>
-<ins>Identical to or derived<br/>
-from <tt>true_type</tt> or<br/>
-<tt>false_type</tt></ins>
-</td>
-<td>
-<ins><tt>true_type</tt> if the expression <tt>x1 == x2</tt> is<br/>
-guaranteed to be <tt>true</tt> for any two (possibly<br/>
-<tt>const</tt>) values <tt>x1, x2</tt> of type <tt>X</tt>, when<br/>
-implicitly converted to <tt>bool</tt>. See Note B, below.</ins>
-</td>
-<td>
-<ins><tt>true_type</tt>, if <tt>is_empty&lt;X&gt;::value</tt> is <tt>true</tt> or if<br/>
-<tt>decltype(declval&lt;const X&amp;&gt;() == declval&lt;const X&amp;&gt;())</tt><br/> 
-is convertible to <tt>true_type</tt>, otherwise <tt>false_type</tt>.</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>[&hellip;]</tt>
-</td>
-</tr>
-
-</table>
-<p>
-Note A: [&hellip;]
-<p/>
-<ins>Note B: If <tt>X::always_compares_equal::value</tt> or <tt>XX::always_compares_equal::value</tt> evaluate 
-to <tt>true</tt> and an expression equivalent to <tt>x1 == x2</tt> or <tt>x1 != x2</tt> for any two values 
-<tt>x1, x2</tt> of type <tt>X</tt> evaluates to <tt>false</tt> or <tt>true</tt>, respectively, the behaviour 
-is undefined.</ins>
-</p>
-
-</li>
-
-<li><p>Change class template <tt>allocator_traits</tt> synopsis, 20.7.8 [allocator.traits] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class Alloc&gt; struct allocator_traits {
-    typedef Alloc allocator_type;
-    [&hellip;]
-    <ins>typedef <i>see below</i> always_compares_equal;</ins>
-    typedef <i>see below</i> propagate_on_container_copy_assignment;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Insert the following between 20.7.8.1 [allocator.traits.types] p6 and p7 as indicated:</p>
-
-<blockquote><pre>
-<ins>typedef <i>see below</i> always_compares_equal;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Type</i>: <tt>Alloc::always_compares_equal</tt> if such a type exists; otherwise, 
-<tt>true_type</tt> if <tt>is_empty&lt;Alloc&gt;::value</tt> is <tt>true</tt> or if 
-<tt>decltype(declval&lt;const Alloc&amp;&gt;() == declval&lt;const Alloc&amp;&gt;())</tt> 
-is convertible to <tt>true_type</tt>; otherwise, <tt>false_type</tt>
-.</ins>
-</p>
-</blockquote></blockquote>
-<blockquote><pre>
-typedef <i>see below</i> propagate_on_container_copy_assignment;
-</pre><blockquote>
-<p>
--7- <i>Type</i>: <tt>Alloc::propagate_on_container_copy_assignment</tt> if such a type exits, 
-otherwise <tt>false_type</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change class template <tt>allocator</tt> synopsis, 20.7.9 [default.allocator] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; class allocator;
-
-  <i>// specialize for <tt>void</tt>:</i>
-  template &lt;&gt; class allocator&lt;void&gt; {
-  public:
-    typedef void* pointer;
-    typedef const void* const_pointer;
-    <i>// reference-to-<tt>void</tt> members are impossible.</i>
-    typedef void value_type;
-    template &lt;class U&gt; struct rebind { typedef allocator&lt;U&gt; other; };
-  };
-
-  template &lt;class T&gt; class allocator {
-  public:
-    typedef size_t size_type;
-    typedef ptrdiff_t difference_type;
-    typedef T* pointer;
-    typedef const T* const_pointer;
-    typedef T&amp; reference;
-    typedef const T&amp; const_reference;
-    typedef T value_type;
-    template &lt;class U&gt; struct rebind { typedef allocator&lt;U&gt; other; };
-    <ins>typedef true_type always_compares_equal;</ins>
-
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2109"></a>2109. Incorrect requirements for <tt>hash</tt> specializations</h3>
-<p><b>Section:</b> 19.5.5 [syserr.hash], 20.8.2.7 [util.smartptr.hash], 20.9.13 [unord.hash], 20.14.1 [type.index.synopsis], 21.6 [basic.string.hash], 23.3.7 [vector.bool], 30.3.1.1 [thread.thread.id] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-12-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-20.8.2.7 [util.smartptr.hash] p2 is specified as follows:
-</p>
-
-<blockquote><p>
-<i>Requires</i>: the template specializations shall meet the requirements of class template 
-<tt>hash</tt> (20.8.12).
-</p></blockquote>
-
-<p>
-The problem here is the usage of a <i>Requires</i> element, which is actually a pre-condition
-that a <em>user</em> of a component has to satisfy. But the intent of this wording is actually
-to be a requirement on implementations. The <i>Requires</i> element should be removed here and
-the wording should be improved to say what it was intended for.
-<p/>
-We have similar situations in basically all other places where the specification of library-provided
-<tt>hash</tt> specializations is defined. Usually, the <i>Requires</i> element is incorrect. In the
-special case of <tt>hash&lt;unique_ptr&lt;T, D&gt;&gt;</tt> the implementation depends on 
-the behaviour of <tt>hash</tt> specializations, that could be user-provided. In this case
-the specification needs to separate the requirements on these specializations and those
-that are imposed on the implementation.
-</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Update wording and move to Review.
-</p>
-<p>
-Believe a simpler formulation is to simply string the term <i>Requires:</i> and leave the
-current wording intact, rather than strike the whole clause and replace it.
-</p>
-
-<p><i>[Originally proposed wording for reference
-<ol>
-<li><p>Change 19.5.5 [syserr.hash] as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;error_code&gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;system_error&gt;</tt> provides a definition for a specialization of the 
-template <tt>hash&lt;error_code&gt;</tt>. The requirements for the members of 
-this specialization are given in sub-clause 20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.6.3 [bitset.hash] as indicated:</p>
-
-<blockquote><pre>
-template &lt;size_t N&gt; struct hash&lt;bitset&lt;N&gt; &gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;bitset&gt;</tt> provides a definition for a partial specialization of the 
-<tt>hash</tt> class template for specializations of class template <tt>bitset&lt;N&gt;</tt>. 
-The requirements for the members of instantiations of this specialization are given 
-in sub-clause 20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.8.2.7 [util.smartptr.hash] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class T, class D&gt; struct hash&lt;unique_ptr&lt;T, D&gt; &gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;memory&gt;</tt> provides a definition for a partial specialization of the 
-<tt>hash</tt> class template for specializations of class template <tt>unique_ptr&lt;T, D&gt;</tt>. 
-The requirements for the members of instantiations of this specialization are given 
-in sub-clause 20.9.13 [unord.hash]</ins>. For an object <tt>p</tt> of type 
-<tt>UP</tt>, where <tt>UP</tt> is <tt>unique_ptr&lt;T, D&gt;</tt>, 
-<tt>hash&lt;UP&gt;()(p)</tt> shall evaluate to the same value as 
-<tt>hash&lt;typename UP::pointer&gt;()(p.get())</tt>. <del>The specialization 
-<tt>hash&lt;typename UP::pointer&gt;</tt> shall be well-formed.</del>
-<p/>
-<ins>-?- <i>Requires</i>: The specialization <tt>hash&lt;typename UP::pointer&gt;</tt> 
-shall be well-formed and well-defined [<i>Note:</i> the general requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]) are implied &mdash; 
-<i>end note</i>].</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class T&gt; struct hash&lt;shared_ptr&lt;T&gt; &gt;;
-</pre><blockquote>
-<p>
--2- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;memory&gt;</tt> provides a definition for a partial specialization of the 
-<tt>hash</tt> class template for specializations of class template <tt>shared_ptr&lt;T&gt;</tt>. 
-The requirements for the members of instantiations of this specialization are given 
-in sub-clause 20.9.13 [unord.hash]</ins>. For an object <tt>p</tt> of type 
-<tt>shared_ptr&lt;T&gt;</tt>, <tt>hash&lt;shared_ptr&lt;T&gt; &gt;()(p)</tt> 
-shall evaluate to the same value as <tt>hash&lt;T*&gt;()(p.get())</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.9.13 [unord.hash] p2 as indicated: [<i>Comment</i>: For unknown
-reasons the extended integer types are not mentioned here, which looks like an oversight to
-me and makes also the wording more complicated. See <a href="lwg-active.html#2119">2119</a> for this part
-of the problem. &mdash; <i>end comment</i>]</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;bool&gt;;
-template &lt;&gt; struct hash&lt;char&gt;;
-[&hellip;]
-template &lt;&gt; struct hash&lt;long double&gt;;
-template &lt;class T&gt; struct hash&lt;T*&gt;;
-</pre><blockquote>
-<p>
--2- <del><i>Requires</i>: the template specializations shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;functional&gt;</tt> provides definitions for specializations of the 
-<tt>hash</tt> class template for each <i>cv</i>-unqualified arithmetic type except 
-for the extended integer types. This header also provides a definition for a partial 
-specialization of the <tt>hash</tt> class template for any pointer type. The 
-requirements for the members of these specializations are given in sub-clause 
-20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.14.4 [type.index.hash] p1 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;type_index&gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;typeindex&gt;</tt> provides a definition for a specialization of the 
-template <tt>hash&lt;type_index&gt;</tt>. The requirements for the members 
-of this specialization are given in sub-clause 20.9.13 [unord.hash]</ins>. For 
-an object <tt>index</tt> of type <tt>type_index</tt>, <tt>hash&lt;type_index&gt;()(index)</tt> 
-shall evaluate to the same result as <tt>index.hash_code()</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 21.6 [basic.string.hash] p1 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;string&gt;;
-template &lt;&gt; struct hash&lt;u16string&gt;;
-template &lt;&gt; struct hash&lt;u32string&gt;;
-template &lt;&gt; struct hash&lt;wstring&gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: the template specializations shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;string&gt;</tt> provides definitions for specializations of the 
-<tt>hash</tt> class template for the types <tt>string</tt>, <tt>u16string</tt>,
-<tt>u32string</tt>, and <tt>wstring</tt>. The requirements for the members 
-of these specializations are given in sub-clause 20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 23.3.7 [vector.bool] p7 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class Allocator&gt; struct hash&lt;vector&lt;bool, Allocator&gt; &gt;;
-</pre><blockquote>
-<p>
--7- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;vector&gt;</tt> provides a definition for a partial specialization of the 
-<tt>hash</tt> class template for specializations of class template <tt>vector&lt;bool, Allocator&gt;</tt>. 
-The requirements for the members of instantiations of this specialization are given 
-in sub-clause 20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 30.3.1.1 [thread.thread.id] p14 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;thread::id&gt;;
-</pre><blockquote>
-<p>
--14- <del><i>Requires</i>: the template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash])</del><ins>The header 
-<tt>&lt;thread&gt;</tt> provides a definition for a specialization of the 
-template <tt>hash&lt;thread::id&gt;</tt>. The requirements for the members of this 
-specialization are given in sub-clause 20.9.13 [unord.hash]</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-]</i></p>
-
-
-<p><i>[2012, Portland: Move to Tentatively Ready]</i></p>
-
-<p>
-No further wording issues, so move to Tentatively Ready (post meeting issues processing).
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Change 19.5.5 [syserr.hash] as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;error_code&gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash].
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.6.3 [bitset.hash] as indicated:</p>
-
-<blockquote><pre>
-template &lt;size_t N&gt; struct hash&lt;bitset&lt;N&gt; &gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]).
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.8.2.7 [util.smartptr.hash] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class T, class D&gt; struct hash&lt;unique_ptr&lt;T, D&gt; &gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]). For an object <tt>p</tt> of type 
-<tt>UP</tt>, where <tt>UP</tt> is <tt>unique_ptr&lt;T, D&gt;</tt>, 
-<tt>hash&lt;UP&gt;()(p)</tt> shall evaluate to the same value as 
-<tt>hash&lt;typename UP::pointer&gt;()(p.get())</tt>.  <del>The specialization 
-<tt>hash&lt;typename UP::pointer&gt;</tt> shall be well-formed.</del>
-<p/>
-<ins>-?- <i>Requires</i>: The specialization <tt>hash&lt;typename UP::pointer&gt;</tt> 
-shall be well-formed and well-defined, and shall meet the requirements of class template
-<tt>hash</tt> (20.9.13 [unord.hash]).</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;class T&gt; struct hash&lt;shared_ptr&lt;T&gt; &gt;;
-</pre><blockquote>
-<p>
--2- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]). For an object <tt>p</tt> of type 
-<tt>shared_ptr&lt;T&gt;</tt>, <tt>hash&lt;shared_ptr&lt;T&gt; &gt;()(p)</tt> 
-shall evaluate to the same value as <tt>hash&lt;T*&gt;()(p.get())</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.9.13 [unord.hash] p2 as indicated: [<i>Comment</i>: For unknown
-reasons the extended integer types are not mentioned here, which looks like an oversight to
-me and makes also the wording more complicated. See <a href="lwg-active.html#2119">2119</a> for this part
-of the problem. &mdash; <i>end comment</i>]</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;bool&gt;;
-template &lt;&gt; struct hash&lt;char&gt;;
-[&hellip;]
-template &lt;&gt; struct hash&lt;long double&gt;;
-template &lt;class T&gt; struct hash&lt;T*&gt;;
-</pre><blockquote>
-<p>
--2- <del><i>Requires</i>: t</del><ins>T</ins>he template specializations shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]).
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 20.14.4 [type.index.hash] p1 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;type_index&gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]). For 
-an object <tt>index</tt> of type <tt>type_index</tt>, <tt>hash&lt;type_index&gt;()(index)</tt> 
-shall evaluate to the same result as <tt>index.hash_code()</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 21.6 [basic.string.hash] p1 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;string&gt;;
-template &lt;&gt; struct hash&lt;u16string&gt;;
-template &lt;&gt; struct hash&lt;u32string&gt;;
-template &lt;&gt; struct hash&lt;wstring&gt;;
-</pre><blockquote>
-<p>
--1- <del><i>Requires</i>: t</del><ins>T</ins>he template specializations shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]).
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 23.3.7 [vector.bool] p7 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class Allocator&gt; struct hash&lt;vector&lt;bool, Allocator&gt; &gt;;
-</pre><blockquote>
-<p>
--7- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]).
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 30.3.1.1 [thread.thread.id] p14 as indicated:</p>
-
-<blockquote><pre>
-template &lt;&gt; struct hash&lt;thread::id&gt;;
-</pre><blockquote>
-<p>
--14- <del><i>Requires</i>: t</del><ins>T</ins>he template specialization shall meet the requirements 
-of class template <tt>hash</tt> (20.9.13 [unord.hash]).
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2110"></a>2110. <tt>remove</tt> can't swap but note says it might</h3>
-<p><b>Section:</b> 25.3.8 [alg.remove] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2011-12-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.remove">issues</a> in [alg.remove].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-25.3.8 [alg.remove]&#47;p1 says:
-</p>
-
-<blockquote><p>
-1 <i>Requires</i>: The type of <tt>*first</tt> shall satisfy the <tt>MoveAssignable</tt> requirements (Table 22).
-</p></blockquote>
-
-<p>
-This means that <tt>remove</tt>&#47;<tt>remove_if</tt> can only use move assignment to permute the sequence. But then 
-25.3.8 [alg.remove]&#47;p6 (non-normatively) contradicts p1:
-</p>
-
-<blockquote><p>
-6 <i>Note</i>: each element in the range <tt>[ret,last)</tt>, where <tt>ret</tt> is the returned value, has a valid 
-but unspecified state, because the algorithms can eliminate elements by swapping with or moving from elements that 
-were originally in that range.
-</p></blockquote>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-<p>
-Alisdair notes we could extend permission to use <tt>swap</tt> if it is available, but there
-is no interest.  Accept the proposed resolution as written.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 25.3.8 [alg.remove] as indicated:</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator, class T&gt;
-  ForwardIterator remove(ForwardIterator first, ForwardIterator last,
-                         const T&amp; value);
-
-template&lt;class ForwardIterator, class Predicate&gt;
-  ForwardIterator remove_if(ForwardIterator first, ForwardIterator last,
-                            Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--6-<i>Note</i>: each element in the range <tt>[ret,last)</tt>, where <tt>ret</tt> is the 
-returned value, has a valid but unspecified state, because the algorithms can eliminate 
-elements by <del>swapping with or</del> moving from elements that were originally in that range.
-</p>
-</blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2112"></a>2112. User-defined classes that cannot be derived from</h3>
-<p><b>Section:</b> 17.6.5 [conforming], 20.7.8 [allocator.traits], 20.13.1 [allocator.adaptor.syn] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2011-11-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#conforming">issues</a> in [conforming].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-It is a very established technique for implementations to derive internally from user-defined class types that are
-used to customize some library component, e.g. deleters and allocators are typical candidates. The advantage of this
-approach is to possibly take advantage of the empty-base-class optimization (EBCO).
-<p/>
-Whether or whether not libraries did take advantage of such a detail didn't much matter in C++03. Even though there
-did exist a portable idiom to prevent that a class type could be derived from, this idiom has never reached great
-popularity: The <a href="http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Final_Class">technique</a> required
-to introduce a virtual base class and it did not really prevent the derivation, but only any construction of
-such a type. Further, such types are not <em>empty</em> as defined by the <tt>std::is_empty</tt> trait, so
-could easily be detected by implementations from TR1 on.
-<p/>
-With the new C++11 feature of final classes and final member functions it is now very easy to define an empty,
-but not derivable from class type. From the point of the user it is quite natural to use this feature for
-types that he or she did not foresee to be derivable from.
-<p/>
-On the other hand, most library implementations (including third-party libraries) often take advantage of EBCO 
-applied to user-defined types used to instantiate library templates internally. As the time of submitting this 
-issue the following program failed to compile on all tested library implementations:
-</p>
-<blockquote><pre>
-#include &lt;memory&gt;
-
-struct Noop <span style="color:#C80000;font-weight:bold">final</span> {
- template&lt;class Ptr&gt;
- void operator()(Ptr) const {}
-};
-
-std::unique_ptr&lt;int, Noop&gt; up;
-</pre></blockquote>
-<p>
-In addition, many <tt>std::tuple</tt> implementations with empty, final classes as element types failed as well, 
-due to a popular inheritance-based implementation technique. EBCO has also a long tradition to be 
-used in library containers to efficiently store potentially stateless, empty allocators.
-<p/>
-It seems that both user and library did the best they could: None of the affected types did impose explicit
-requirements on the corresponding user-defined types to be derivable from (This capability was not part of
-the required operations), and libraries did apply EBCO whereever possible to the convenience of the customer.
-<p/>
-Nonetheless given the existence of non-derivable-from class types in C++11, libraries have to cope with
-failing derivations. How should that problem be solved?
-<p/>
-It would certainly be possible to add weazel wording to the allocator requirements similar to what we had
-in C++03, but restricted to derivation-from requirements. I consider this as the bad solution, because it
-would add new requirements that never had existed before in this explicit form onto types like allocators.
-<p/>
-Existing libraries presumably will need internal traits like <tt>__is_final</tt> or <tt>__is_derivable</tt>
-to make EBCO possible in the current form but excluding non-derivable class types. As of this writing this
-seems to happen already. Problem is that without a <tt>std::is_derivable</tt> trait, third-party libraries
-have no portable means to do the same thing as standard library implementations. This should be a good 
-reason to make such a trait public available soon, but seems not essential to have now. Further, this issue
-should also be considered as a chance to recognice that EBCO has always been a very special corner case
-(There exist parallels to the previously existing odd core language rule that did make the interplay 
-between <tt>std::auto_ptr</tt> and <tt>std::auto_ptr_ref</tt> possible) and that it would be better to
-provide explicit means for space-efficient storage, not necessarily restricted to inheritance relations, 
-e.g. by marking data members with a special attribute.
-<p/>
-At least two descriptions in the current standard should be fixed now for better clarification:
-</p>
-<ol>
-<li><p>As mentioned by Ganesh, 20.7.8 [allocator.traits] p1 currently contains a (non-normative) note
-"Thus, it is always possible to create a derived class from an allocator." which should be removed.
-</p>
-</li>
-<li><p>As pointed out by Howard, the specification of <tt>scoped_allocator_adaptor</tt> as of
-20.13.1 [allocator.adaptor.syn] already requires derivation from <tt>OuterAlloc</tt>, but 
-only implies indirectly the same for the inner allocators due to the <em>exposition-only</em> 
-description of member <tt>inner</tt>. This indirect implication should be normatively required for 
-all participating allocators.
-</p></li>
-</ol>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-What we really need is a type trait to indicate if a type can be derived from.  Howard reports
-Clang and libc++ have had success with this approach.
-</p>
-<p>
-Howard to provide wording, and AJM to alert Core that we may be wanting to add a new trait
-that requires compiler support.
-</p>
-
-<p><i>[2014-02, Issaquah: Howard and Daniel comment and provide wording]</i></p>
-
-
-<p>
-Several existing C++11 compilers do already provide an internal <tt>__is_final</tt> intrinsic (e.g. clang and gcc) and therefore 
-we believe that this is evidence enough that this feature is implementable today.
-<p/>
-We believe that both a simple and clear definition of the <tt>is_final</tt> query should result in a true outcome 
-if and only if the current existing language definition holds that a complete class type (either union or non-union) 
-has been marked with the <i>class-virt-specifier</i> <code>final</code> &mdash; nothing more.
-<p/>
-The following guidelines lead to the design decision and the wording choice given below:
-<p/>
-It has been expressed several times that a high-level trait such as "<tt>is_derivable</tt>" would be preferred and
-would be more useful for non-experts. One problem with that request is that it is astonishingly hard to find a common denominator 
-for what the <em>precise</em> definition of this trait should be, especially regarding corner-cases. Another example of getting very 
-differing points of view is to ask a bunch of C++ experts what the best definition of the <tt>is_empty</tt> trait
-should be (which can be considered as a kind of higher-level trait).
-<p/>
-Once we have a fundamental trait like <tt>is_final</tt> available, we can easily define higher-level traits in the future
-on top of this by a proper logical combination of the low-level traits.
-<p/>
-A critical question is whether providing such a low-level compile-time introspection might be considered as disadvantageous,
-because it could constrain the freedom of existing implementations even further and whether a high-level trait would solve
-this dilemma. We assert that since C++11 the static introspection capabilities are already very large and we believe that
-making the presence or absence of the <tt>final</tt> keyword testable does not make the current situation worse.
-<p/>
-Below code example demonstrates the intention and the implementability of this feature:
-</p>
-<blockquote><pre>
-#include &lt;type_traits&gt;
-
-namespace std
-{
-
-template &lt;class T&gt;
-struct is_final
-  : public integral_constant&lt;bool, __is_final(T)&gt;
-{};
-
-}  // std
-
-// test it
-
-union FinalUnion <span style="color:#009900;font-weight:bolder">final</span> { };
-
-union NonFinalUnion { };
-
-class FinalClass <span style="color:#009900;font-weight:bolder">final</span> { };
-
-struct NonFinalClass { };
-
-class Incomplete;
-
-int main()
-{
-  using std::is_final;
-  static_assert( is_final&lt;const volatile FinalUnion&gt;{}, "");
-  static_assert(!is_final&lt;FinalUnion[]&gt;{}, "");
-  static_assert(!is_final&lt;FinalUnion[1]&gt;{}, "");
-  static_assert(!is_final&lt;NonFinalUnion>{}, "");
-  static_assert( is_final&lt;FinalClass&gt;{}, "");
-  static_assert(!is_final&lt;FinalClass&amp;&gt;{}, "");
-  static_assert(!is_final&lt;FinalClass*&gt;{}, "");
-  static_assert(!is_final&lt;NonFinalClass&gt;{}, "");
-  static_assert(!is_final&lt;void&gt;{}, "");
-  static_assert(!is_final&lt;int&gt;{}, "");
-  static_assert(!is_final&lt;Incomplete&gt;{}, ""); // <span style="color:#C80000;font-weight:bolder">error incomplete type 'Incomplete' used in type trait expression</span>
-}
-</pre></blockquote>
-
-<p><i>[2014-02-14, Issaquah: Move to Immediate]</i></p>
-
-<p>
-This is an important issue, that we really want to solve for C++14.
-</p>
-
-<p>
-Move to Immediate after polling LEWG, and then the NB heads of delegation.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Change 20.10.2 [meta.type.synop], header <tt>&lt;type_traits&gt;</tt> synopsis, as indicated</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  <i>// 20.10.4.3, type properties:</i>
-  [&hellip;]
-  template &lt;class T&gt; struct is_empty;
-  template &lt;class T&gt; struct is_polymorphic;
-  template &lt;class T&gt; struct is_abstract;
-  <ins>template &lt;class T&gt; struct is_final;</ins>
-
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 20.10.4.3 [meta.unary.prop], Table 49 &mdash; Type property predicates, as indicated</p>
-
-<table border="1">
-<caption>Table 49 &mdash; Type property predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Preconditions</th>
-</tr> 
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_abstract;</tt>
-</td>
-<td>
-[&hellip;]
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_final;</tt></ins>
-</td>
-<td>
-<ins><code>T</code> is a class type marked with the <i>class-virt-specifier</i> <code>final</code> (9 [class]).<br/> 
-[<i>Note:</i> A union is a class type that can be marked with <code>final</code>. &mdash; <i>end note</i>]</ins>
-</td>
-<td>
-<ins>If <tt>T</tt> is a class type, <tt>T</tt> shall be a complete type</ins>
-</td>
-</tr>
-
-</table>
-
-</li>
-
-<li><p>After 20.10.4.3 [meta.unary.prop] p5 add one further example as indicated:</p>
-
-<blockquote><p>
-<ins>[<i>Example</i>:</ins>
-</p>
-<blockquote><pre>
-<ins><i>// Given:</i>
-struct P final { };
-union U1 { };
-union U2 final { };
-
-<i>// the following assertions hold:</i>
-static_assert(!is_final&lt;int&gt;::value, "Error!");
-static_assert( is_final&lt;P&gt;::value, "Error!");
-static_assert(!is_final&lt;U1&gt;::value, "Error!");
-static_assert( is_final&lt;U2&gt;::value, "Error!");</ins>
-</pre></blockquote>
-<p>
-<ins>&mdash; <i>end example</i>]</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2118"></a>2118. [CD] <tt>unique_ptr</tt> for array does not support <i>cv</i> qualification conversion of actual argument</h3>
-<p><b>Section:</b> 20.8.1.3 [unique.ptr.runtime] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Alf P. Steinbach <b>Opened:</b> 2011-12-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.runtime">issues</a> in [unique.ptr.runtime].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p><b>Addresses US 16</b></p>
-
-<p>
-N3290 20.8.1.3.1 [unique.ptr.runtime.ctor] "<tt>unique_ptr</tt> constructors":
-</p>
-<blockquote><p>
-These constructors behave the same as in the primary template except that they do not accept pointer types 
-which are convertible to <tt>pointer</tt>. [<i>Note:</i> One implementation technique is to create private 
-templated overloads of these members. &mdash; <i>end note</i>]
-</p></blockquote>
-<p>
-This language excludes even <tt>pointer</tt> itself as type for the actual argument.
-<p/>
-But of more practical concern is that both Visual C++ 10.0 and MinGW g++ 4.1.1 reject the code below, where 
-only an implicit <i>cv</i> qualification is needed, which <i>cv</i> qualification is supported by the non-array 
-version:
-</p>
-<blockquote><pre>
-#include &lt;memory&gt;
-using namespace std;
-
-struct T {};
-
-T* foo() { return new T; }
-T const* bar() { return foo(); }
-
-int main()
-{
-   unique_ptr&lt; T const &gt;       p1( bar() );        // OK
-   unique_ptr&lt; T const [] &gt;    a1( bar() );        // OK
-
-   unique_ptr&lt; T const &gt;       p2( foo() );        // OK
-   unique_ptr&lt; T const [] &gt;    a2( foo() );        // <span style="color:#C80000;font-weight:bold">? this is line #15</span>
-}
-</pre></blockquote>
-<p>
-The <em>intent</em> seems to be clearly specified in 20.8.1.3 [unique.ptr.runtime]&#47;1 second bullet:
-</p>
-<blockquote><p>
-&mdash; Pointers to types derived from <tt>T</tt> are rejected by the constructors, and by <tt>reset</tt>.
-</p></blockquote>
-
-<p>
-But the following language in 20.8.1.3.1 [unique.ptr.runtime.ctor] then rejects far too much...
-<p/>
-Proposed new wording of N3290 20.8.1.3.1 [unique.ptr.runtime.ctor] "<tt>unique_ptr</tt> constructors":
-</p>
-<blockquote><p>
-These constructors behave the same as in the primary template except that actual argument pointers <tt>p</tt> 
-to types derived from <tt>T</tt> are rejected by the constructors. [<i>Note:</i> One implementation technique 
-is to create private templated overloads of these members. &mdash; <i>end note</i>]
-</p></blockquote>
-<p>
-This will possibly capture the intent better, and avoid the inconsistency between the non-array and array 
-versions of <tt>unique_ptr</tt>, by using nearly the exact same phrasing as for the paragraph explaining 
-the intent.
-</p>
-
-<p><i>[2012-08-25 Geoffrey Romer comments in <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32978">c++std-lib-32978</a>]</i></p>
-
-
-<ol>
-<li><p>
-The current P/R seems to intend to support at least two different implementation techniques &mdash; additional 
-unusable templates that catch forbidden arguments or replacing existing constructors by templates that 
-ensure ill-formed code inside the template body, when the requirements are not met. It seems unclear whether
-the current wording allows the second approach, though. It should be considered to allow both strategies or
-if that is not possible the note should be clearer.
-</p></li>
-
-<li><p>
-The very same problem exists for the <tt>reset</tt> member function, but even worse, because the current
-specification is more than clear that the deleted <tt>reset</tt> function will catch all cases not equal to 
-<tt>pointer</tt>. It seems confusing at best to have different policies for the constructor and for the <tt>reset</tt> 
-function. In this case, the question in regard to implementation freedom mentioned above is even more important.
-</p></li>
-
-<li><p>
-It's awkward to refer to "the constructors" twice in the same sentence; I suggest revising the sentence as 
-"...except that they do not accept argument pointers <tt>p</tt> to types derived from <tt>T</tt>"
-</p></li>
-</ol>
-
-<p><i>[2012-12-20: Geoffrey Romer comments and provides a revised resolution]</i></p>
-
-
-<p>
-The array specialization of <tt>unique_ptr</tt> differs from the primary template in several ways,
-including the following:
-</p>
-<ul>
-<li><p>
-<tt>unique_ptr&lt;T[], D&gt;</tt> cannot be constructed from a plain pointer whose type is not
-exactly <tt>unique_ptr&lt;T[], D&gt;::pointer</tt> or <tt>nullptr_t</tt>.
-</p></li>
-<li><p>
-<tt>unique_ptr&lt;T[], D&gt;</tt> cannot be constructed from a <tt>unique_ptr&lt;U[], E&gt;&amp;&amp;</tt> 
-unless <tt>U</tt> is exactly <tt>T</tt> and <tt>E</tt> is exactly <tt>D</tt>.
-</p></li>
-<li><p>
-<tt>unique_ptr&lt;T[], D&gt;</tt> cannot be moveassigned from a <tt>unique_ptr&lt;U[], E&gt;&amp;&amp;</tt> 
-unless <tt>U</tt> is exactly <tt>T</tt> and <tt>E</tt> is exactly <tt>D</tt>.
-</p></li>
-<li><p>
-<tt>unique_ptr&lt;T[], D&gt;::reset</tt> cannot take an argument whose type is not exactly
-<tt>unique_ptr&lt;T[], D&gt;::pointer</tt> or <tt>nullptr_t</tt>.
-</p></li>
-<li><p>
-<tt>default_delete&lt;T[]&gt;</tt> cannot be constructed from a <tt>default_delete&lt;U[]&gt;</tt> unless 
-<tt>U</tt> is exactly <tt>T</tt>.
-</p></li>
-<li><p>
-<tt>default_delete&lt;T[]&gt;::operator()</tt> cannot be called on a pointer whose type is not
-exactly <tt>T*</tt>.
-</p></li>
-</ul>
-<p>
-The common intent of all these restrictions appears to be to disallow implicit conversions from
-pointer-to-derived-class to pointer-to-base-class in contexts where the pointer is known to point
-to an array, because such conversions are inherently unsafe; deleting or subscripting the result
-of such a conversion leads to undefined behavior (see also CWG 1504). However, these restrictions 
-have the effect of disallowing all implicit conversions in those contexts, including most notably 
-cv-qualification, but also user-defined conversions, and possibly others. This PR narrows all those 
-restrictions, to disallow only unsafe pointer-to-derived to pointer-to-base conversions, while 
-allowing all others.
-<p/>
-I removed the nebulous language stating that certain functions "will not accept" certain arguments. 
-Instead I use explicitly deleted template functions, which participate in overload resolution only 
-for pointer-to-derived to pointer-to-base conversions. This is more consistent with the existing 
-text and easier to express correctly than an approach based on declaring certain types of calls to 
-be ill-formed, but may produce inferior compiler diagnostics.
-<p/>
-Wherever possible, this PR defines the semantics of template specializations in terms of their
-differences from the primary template. This improves clarity and minimizes the risk of
-unintended differences (e.g. LWG <a href="lwg-defects.html#2169">2169</a>, which this PR also fixes). This PR also makes it 
-explicit that the specialization inherits the description of all members, not just member functions, 
-from the primary template and, in passing, clarifies the default definition of pointer in the
-specialization.
-<p/>
-This resolution only disallows pointer-to-derived to pointer-to-base conversions between
-ordinary pointer types; if user-defined pointer types provide comparable conversions, it is their
-responsibility to ensure they are safe. This is consistent with C++'s general preference for
-expressive power over safety, and for assuming the user knows what they're doing;
-furthermore, enforcing such a restriction on user-defined types appears to be impractical without
-cooperation from the user.
-<p/>
-The "base class without regard to cv-qualifiers" language is intended to parallel the specification
-of <tt>std::is_base_of</tt>.
-<p/>
-Jonathan Wakely has a working implementation of this PR patched into libstdc++.
-</p>
-
-<p>
-Previous resolution:
-</p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<p>Change 20.8.1.3.1 [unique.ptr.runtime.ctor] as indicated:</p>
-
-<blockquote><pre>
-explicit unique_ptr(pointer p) noexcept;
-unique_ptr(pointer p, <i>see below</i> d) noexcept;
-unique_ptr(pointer p, <i>see below</i> d) noexcept;
-</pre>
-<blockquote><p>
-These constructors behave the same as in the primary template except that <del>they do not accept pointer
-types which are convertible to <tt>pointer</tt></del><ins>argument pointers <tt>p</tt> to types derived 
-from <tt>T</tt> are rejected by the constructors</ins>. [<i>Note:</i> One implementation technique is to 
-create private templated overloads of these members. &mdash; <i>end note</i>]
-</p></blockquote></blockquote>
-</blockquote>
-
-<p><i>[2014-02, Issaquah]</i></p>
-
-<p>
-GR: want to prevent unsafe conversions. Standard is inconsistent how it does this. for <tt>reset()</tt> has deleted function 
-template capturing everything except the known-safe cases. Other functions use SFINAE. Main reason this is hard is that 
-<tt>unique_ptr</tt> supports fancy pointers. Have to figure out how to handle them and what requirements to put on them. 
-Requirements are minimal, not even required to work with <tt>pointer_traits</tt>.
-<p/>
-STL surprised <tt>pointer_traits</tt> doesn't work
-<p/>
-GR: ways to get fancy pointers to work is to delegate responsibility for preventing unsafe conversions to the fancy pointers themselves. 
-Howard doesn't like that, he wants even fancy pointers to be prevented from doing unsafe conversions in <tt>unique_ptr</tt> contexts.
-<p/>
-AM: Howard says <tt>unique_ptr</tt> was meant to be very very safe under all conditions, this open a hole in that. Howard wants to 
-eke forward and support more, but not if we open any holes in type safety. 
-<p/>
-GR: do we need to be typesafe even for fancy types with incorrect <tt>pointer_traits</tt>?
-<p/>
-AM: that would mean it's only unsafe for people who lie by providing a broken specialization of <tt>pointer_traits</tt>
-<p/>
-GR: probably can't continue with ambiguity between using SFINAE and ill-formedness. Would appreciate guidance on direction used for that.
-<p/>
-STL: difference is observable in convertibility using type traits. 
-<p/>
-STL: for <tt>reset()</tt> which doesn't affect convertibility ill-formed allows <tt>static_assert</tt>, better diagnostic. 
-For assignment it's detectable and has traits, constraining them is better.
-<p/>
-EN: I strongly prefer constraints than <tt>static_asserts</tt> 
-<p/>
-STL: if we could rely on <tt>pointer_traits</tt> that might be good. Alternatively could we add more machinery to deleter? 
-make deleter say conversions are allowed, otherwise we lock down all conversions. basically want to know if converting <tt>U</tt> to 
-<tt>T</tt> is safe.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3485.</p>
-<ol>
-<li><p>Revise 20.8.1.1.3 [unique.ptr.dltr.dflt1] as follows</p>
-<blockquote><pre>
-namespace std {
-  template &lt;class T&gt; struct default_delete&lt;T[]&gt; {
-    constexpr default_delete() noexcept = default;
-    <ins>template &lt;class U&gt; default_delete(const default_delete&lt;U&gt;&amp;) noexcept;</ins>
-    void operator()(T*) const;
-    template &lt;class U&gt; void operator()(U*) const = delete;
-  };
-}
-</pre></blockquote>
-<p>
-<ins>-?- Descriptions are provided below only for member functions that have behavior different from the
-primary template.</ins>
-</p>
-<blockquote>
-<pre>
-<ins>template &lt;class U&gt; default_delete(const default_delete&lt;U&gt;&amp;) noexcept;</ins>
-</pre>
-<blockquote><p>
-<ins>-?- This constructor behaves the same as in the primary template except that it shall not participate
-in overload resolution unless:</ins>
-</p>
-<ul>
-<li><p>
-<ins><tt>U</tt> is an array type, and</ins>
-</p></li>
-<li><p>
-<ins><tt>V*</tt> is implicitly convertible to <tt>T*</tt>, and</ins>
-</p></li>
-<li><p>
-<ins><tt>T</tt> is not a base class of <tt>V</tt> (without regard to <i>cv</i>-qualifiers),</ins>
-</p></li>
-</ul>
-<p>
-<ins>where <tt>V</tt> is the array element type of <tt>U</tt>.</ins>
-</p>
-</blockquote>
-
-<blockquote><pre>
-void operator()(T* ptr) const;
-</pre><blockquote>
-<p>
--1- <i>Effects</i>: calls <tt>delete[]</tt> on <tt>ptr</tt>.
-<p/>
--2- <i>Remarks</i>: If <tt>T</tt> is an incomplete type, the program is ill-formed.
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-<ins>template &lt;class U&gt; void operator()(U*) const = delete;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Remarks</i>: This function shall not participate in overload resolution unless <tt>T</tt> is a base 
-class of <tt>U</tt> (without regard to <i>cv</i>-qualifiers).</ins>
-</p>
-</blockquote></blockquote>
-
-</blockquote>
-</li>
-
-<li><p>Revise 20.8.1.2 [unique.ptr.single]/3 as follows:</p>
-<blockquote><p>
-If the type <tt>remove_reference&lt;D&gt;::type::pointer</tt> exists, then <tt>unique_ptr&lt;T, D&gt;::pointer</tt> 
-shall be a synonym for <tt>remove_reference&lt;D&gt;::type::pointer</tt>. Otherwise <tt>unique_ptr&lt;T, D&gt;::pointer</tt> 
-shall be a synonym for <tt><del>T</del><ins>element_type</ins>*</tt>. The type <tt>unique_ptr&lt;T, D&gt;::pointer</tt> 
-shall satisfy the requirements of <tt>NullablePointer</tt> (17.6.3.3 [nullablepointer.requirements]).
-</p></blockquote>
-</li>
-
-<li><p>Revise 20.8.1.3 [unique.ptr.runtime] as follows:</p>
-<blockquote><pre>
-namespace std {
-  template &lt;class T, class D&gt; class unique_ptr&lt;T[], D&gt; {
-  public:
-    typedef <i>see below</i> pointer;
-    typedef T element_type;
-    typedef D deleter_type;
-
-    <i>// 20.7.1.3.1, constructors</i>
-    constexpr unique_ptr() noexcept;
-    explicit unique_ptr(pointer p) noexcept;
-    <ins>template &lt;class U&gt; explicit unique_ptr(U* p) = delete;</ins>
-    unique_ptr(pointer p, <i>see below</i> d) noexcept;
-    <ins>template &lt;class U&gt; unique_ptr(U* p, <i>see below</i> d) = delete;</ins>
-    unique_ptr(pointer p, <i>see below</i> d) noexcept;
-    <ins>template &lt;class U&gt; unique_ptr(U* p, <i>see below</i> d) = delete;</ins>
-    unique_ptr(unique_ptr&amp;&amp; u) noexcept;
-    constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }
-    <ins>template &lt;class U, class E&gt; unique_ptr(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;</ins>
-
-    <i>// destructor</i>
-    ~unique_ptr();
-
-    <i>// assignment</i>
-    unique_ptr&amp; operator=(unique_ptr&amp;&amp; u) noexcept;
-    <ins>template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;</ins>
-    unique_ptr&amp; operator=(nullptr_t) noexcept;
-
-    <i>// 20.7.1.3.2, observers</i>
-    T&amp; operator[](size_t i) const;
-    pointer get() const noexcept;
-    deleter_type&amp; get_deleter() noexcept;
-    const deleter_type&amp; get_deleter() const noexcept;
-    explicit operator bool() const noexcept;
-
-    <i>// 20.7.1.3.3 modifiers</i>
-    pointer release() noexcept;
-    void reset(pointer p = pointer()) noexcept;
-    <del>void reset(nullptr_t) noexcept;</del>
-    template &lt;class U&gt; void reset(U<ins>*</ins>) = delete;
-    void swap(unique_ptr&amp; u) noexcept;
-
-    <i>// disable copy from lvalue</i>
-    unique_ptr(const unique_ptr&amp;) = delete;
-    unique_ptr&amp; operator=(const unique_ptr&amp;) = delete;
-  };
-}
-</pre></blockquote>
-<blockquote><p>
--1- A specialization for array types is provided with a slightly altered interface.
-</p>
-<ul>
-<li><p>
-Conversions <del>between different types of <tt>unique_ptr&lt;T[], D&gt;</tt></del><ins>from
-<tt>unique_ptr&lt;Derived[]&gt;</tt> to <tt>unique_ptr&lt;Base[]&gt;</tt>, where <tt>Base</tt> is a 
-base class of <tt>Derived</tt>, from <tt>auto_ptr</tt>,</ins> or to or from the non-array forms of
-<tt>unique_ptr</tt> produce an ill-formed program.
-</p></li>
-<li><p>
-Pointers to types derived from <tt>T</tt> are rejected by the constructors, and by <tt>reset</tt>.
-</p></li>
-<li><p>
-The observers <tt>operator*</tt> and <tt>operator-&gt;</tt> are not provided.
-</p></li>
-<li><p>
-The indexing observer <tt>operator[]</tt> is provided.
-</p></li>
-<li><p>
-The default deleter will call <tt>delete[]</tt>.
-</p></li>
-</ul>
-<p>
--2- Descriptions are provided below only for <del>member functions that have behavior 
-different</del><ins>members that differ</ins> from the primary template.
-<p/>
--3- The template argument <tt>T</tt> shall be a complete type.
-</p>
-</blockquote>
-</li>
-
-<li><p>Revise 20.8.1.3.1 [unique.ptr.runtime.ctor] as follows:</p>
-<blockquote>
-<pre>
-<del>explicit unique_ptr(pointer p) noexcept;
-unique_ptr(pointer p, <i>see below</i> d) noexcept;
-unique_ptr(pointer p, <i>see below</i> d) noexcept;</del>
-<ins>template &lt;class U&gt; explicit unique_ptr(U* p) = delete;</ins>
-<ins>template &lt;class U&gt; unique_ptr(U* p, <i>see below</i> d) = delete;</ins>
-<ins>template &lt;class U&gt; unique_ptr(U* p, <i>see below</i> d) = delete;</ins>
-</pre><blockquote><p>
-<del>These constructors behave the same as in the primary template except that they do not accept pointer
-types which are convertible to pointer. [<i>Note</i>: One implementation technique is to create private
-templated overloads of these members. &mdash; <i>end note</i>]</del><ins>These constructors shall not 
-participate in overload resolution unless:</ins></p>
-<ul>
-<li><p><ins><tt>pointer</tt> is a pointer type, and</ins></p></li>
-<li><p><ins><tt>U*</tt> is implicitly convertible to <tt>pointer</tt>, and</ins></p></li>
-<li><p><ins><tt>T</tt> is a base class of <tt>U</tt> (without regard to <i>cv</i>-qualifiers).</ins></p></li>
-</ul>
-<p><ins>The type of <tt>d</tt> is determined as in the corresponding non-deleted constructors.</ins></p>
-</blockquote>
-<pre>
-<ins>template &lt;class U, class E&gt; unique_ptr(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;</ins>
-</pre><blockquote><p>
-<ins>-?- This constructor behaves the same as in the primary template, except that it shall not participate
-in overload resolution unless:</ins>
-</p>
-<ul>
-<li><p><ins><tt>unique_ptr&lt;U, E&gt;::pointer</tt> is implicitly convertible to <tt>pointer</tt>, and</ins></p></li>
-<li><p><ins><tt>U</tt> is an array type, and</ins></p></li>
-<li><p><ins>either <tt>D</tt> is a reference type and <tt>E</tt> is the same type as <tt>D</tt>, or <tt>D</tt> 
-is not a reference type and <tt>E</tt> is implicitly convertible to <tt>D</tt>, and</ins></p></li>
-<li><p><ins>either at least one of <tt>pointer</tt> and <tt>unique_ptr&lt;U, E&gt;::pointer</tt> is not a 
-pointer type, or <tt>T</tt> is not a base class of the array element type of <tt>U</tt> (without regard to 
-<i>cv</i>-qualifiers).</ins></p></li>
-</ul>
-</blockquote></blockquote>
-</li>
-
-<li><p>Insert a new sub-clause following 20.8.1.3.1 [unique.ptr.runtime.ctor] as follows:</p>
-
-<p><ins>?? <tt>unique_ptr</tt> assignment [unique.ptr.runtime.asgn]</ins></p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;</ins>
-</pre><blockquote><p>
-<ins>-?- This operator behaves the same as in the primary template, except that it shall not participate in
-overload resolution unless:</ins></p>
-<ul>
-<li><p><ins><tt>unique_ptr&lt;U, E&gt;::pointer</tt> is implicitly convertible to <tt>pointer</tt>, and</ins></p></li>
-<li><p><ins><tt>U</tt> is an array type, and</ins></p></li>
-<li><p><ins>either <tt>D</tt> is a reference type and <tt>E</tt> is the same type as <tt>D</tt>, or <tt>D</tt> 
-is not a reference type and <tt>E</tt> is implicitly convertible to <tt>D</tt>, and</ins></p></li>
-<li><p><ins>either at least one of <tt>pointer</tt> and <tt>unique_ptr&lt;U, E&gt;::pointer</tt> is not a 
-pointer type, or <tt>T</tt> is not a base class of the array element type of <tt>U</tt> (without regard to 
-<i>cv</i>-qualifiers).</ins></p></li>
-</ul>
-</blockquote></blockquote>
-</li>
-
-<li><p>Revise 20.8.1.3.4 [unique.ptr.runtime.modifiers] as follows:</p>
-
-<blockquote>
-<pre>
-<del>void reset(pointer p = pointer()) noexcept;
-void reset(nullptr_t p) noexcept;</del>
-<ins>template &lt;class U&gt; void reset(U*) = delete;</ins>
-</pre><blockquote><p>
-<del>-1- <i>Effects</i>: If <tt>get() == nullptr</tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt>.</del>
-<p/>
-<del>-2- <i>Postcondition</i>: <tt>get() == p</tt>.</del>
-<p/>
-<ins>-?- This function shall not participate in overload resolution unless:</ins>
-</p>
-<ul>
-<li><p><ins><tt>pointer</tt> is a pointer type, and</ins></p></li>
-<li><p><ins><tt>U*</tt> is implicitly convertible to <tt>pointer</tt>, and</ins></p></li>
-<li><p><ins><tt>T</tt> is a base class of <tt>U</tt> (without regard to <i>cv</i>-qualifiers).</ins></p></li>
-</ul>
-
-</blockquote></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-06 Rapperswil]</i></p>
-
-<p>
-Discussion of N4042 and general agreement that this paper resolves the substance of this issue and should be adopted with 
-minor edits. Geoffrey Romer will provide an updated paper. 
-</p>
-
-<p><i>[2014-06 post-Rapperswil]</i></p>
-
-<p>
-As described in N4089.
-</p>
-
-<p><i>[2014-11-07 Urbana]</i></p>
-
-<p>
-Resolved by
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4089.pdf">N4089</a>
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-See proposed wording in N4089.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2120"></a>2120. What should <tt>async</tt> do if neither '<tt>async</tt>' nor '<tt>deferred</tt>' is set in policy?</h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-01-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Implementations already disagree, one returns an invalid future with
-no shared state, one chooses <tt>policy == async</tt> and one chooses <tt>policy ==
-deferred</tt>, see c++std-lib-30839, c++std-lib-30840 and c++std-lib-30844.
-It's not clear if returning an invalid future is allowed by the current wording.
-</p>
-<p>
-If the intention is to allow an empty future to be returned, then
-30.6.8 [futures.async] p3 and p4 should be adjusted to clarify that a
-shared state might not be created and an invalid future might be returned.
-</p>
-<p>
-If the intention is that a valid future is always returned, p3 should
-say something about the case where none of the conditions applies.
-</p>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-We could make it undefined if no launch policy is defined.
-</p>
-<p>
-Hans: If no launch policy is specified the behaviour is undefined
-</p>
-<p>
-Artur: or implementation defined?
-</p>
-<p>
-Hans: no: we don't want people to do this
-</p>
-<p><i>[Proposed wording]</i></p>
-
-<p>
-This wording is relative to N3376
-</p>
-<p>
-Add a third bullet to the end of the list in 30.6.8p3
-</p>
-<blockquote>
-"if no valid launch policy is provided the behaviour is undefined"
-</blockquote>
-<p>
-Moved to review
-</p>
-
-<p><i>[2013-04-19, Bristol]</i></p>
- 
-
-<p>Detlef provides new wording</p>
-
-<p>Previous wording:</p>
-
-<blockquote class="note">  
-<p><i>[This wording is relative to N3376]</i></p>
-
-<p>
-Add a third bullet to the end of the list in 30.6.8 [futures.async]p3
-</p>
-<blockquote>
-<ins>&ndash; if no valid launch policy is provided the behaviour is undefined</ins>
-</blockquote>
-</blockquote>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-If no policy is given, it should be undefined, so moved to Immediate.
-</p>
-<p>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This wording is relative to N3485]</i></p>
-
-<p>
-Add a third bullet to the end of the list in 30.6.8 [futures.async]p3
-</p>
-<blockquote>
-<ins>&ndash; If no value is set in the launch policy, or a value is set that is
-neither specified in this International Standard or by the implementation, the behaviour 
-is undefined.</ins>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2122"></a>2122. <tt>merge()</tt> stability for lists versus forward lists</h3>
-<p><b>Section:</b> 23.3.5.5 [list.ops], 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2012-01-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#list.ops">issues</a> in [list.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<tt>forward_list::merge()</tt> is specified in  23.3.4.6 [forwardlist.ops], p19 as follows:
-</p>
-<blockquote><p>
-This operation shall be stable: for equivalent elements in the two lists,
-the elements from <tt>*this</tt> shall always precede the elements from <tt>x</tt>.
-</p></blockquote>
-<p>
-But <tt>list::merge()</tt> is only specified in 23.3.5.5 [list.ops], p24 as follows:
-</p>
-<blockquote><p>
-<i>Remarks</i>: Stable.
-</p></blockquote>
-<p>
-Note that in general we define "stable" only for algorithms (see 17.3 [defns.stable] and 
-17.6.5.7 [algorithm.stable]) so for member function we should explain it everywhere we use it.
-<p/>
-Thus for lists we have to add:
-</p>
-<blockquote><p>
-Stable: for equivalent elements in the two lists, the elements from the list always precede the elements
-from the argument list.
-</p></blockquote>
-<p>
-This, BTW, was the specification we had with C++03.
-<p/>
-In addition, I wonder whether we also have some guarantees regarding stability saying that the order 
-of equivalent elements of each list merged remains stable (which would be my interpretation of just 
-saying "stable", BTW).
-<p/>
-Thus, I'd expect that for equivalent elements we guarantee that
-</p>
-<ul>
- <li> we first have all element of <tt>*this</tt> (in the same order as on entry)</li>
- <li> and then all elements of the passed argument (in the same order as on entry).</li>
-</ul>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Open.
-</p>
-<p>
-STL says we need to fix up 17.6.5.7 to be stronger, and then the remarks for merge should
-just say "Remarks: Stable (see 17.6.5.7)"
-</p>
-<p>
-Assigned to STL for word-smithing.
-</p>
-
-<p><i>[
-2013-04-14 STL provides rationale and improved wording
-]</i></p>
-
-
-<p>Step 1: Centralize all specifications of stability to 17.6.5.7 [algorithm.stable].</p>
-<p>Step 2: 17.3 [defns.stable] and 17.6.5.7 [algorithm.stable] talk about "algorithms", without mentioning 
-"container member functions". There's almost no potential for confusion here, but there's a simple way to increase clarity 
-without increasing verbosity: make the container member functions explicitly cite 17.6.5.7 [algorithm.stable]. For 
-consistency, we can also update the non-member functions.</p>
-<p>Step 3: Fix the "so obvious, we forgot to say it" bug in 17.6.5.7 [algorithm.stable]: a "stable" merge of equivalent 
-elements A B C D and W X Y Z produces A B C D W X Y Z, never D C B A X W Z Y.</p>
-<p>Step 3.1: Say "(preserving their original order)" to be consistent with "the relative order [...] is preserved" in 
-17.6.5.7 [algorithm.stable]'s other bullet points.</p>
-<p>Step 4: Copy part of <tt>list::merge()</tt>'s wording to <tt>forward_list::merge()</tt>, in order to properly connect 
-with 17.6.5.7 [algorithm.stable]'s "first range" and "second range".</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-<p>Original wording saved here:</p>
-<blockquote class="note">
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li>
-<p>Change 23.3.5.5 [list.ops] as indicated:</p>
-
-<blockquote><pre>
-void                          merge(list&lt;T,Allocator&gt;&amp; x);
-void                          merge(list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp; x, Compare comp);
-template &lt;class Compare&gt; void merge(list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);</pre>
-<blockquote><p>
-[&hellip;]
-<p/>
--24- <i>Remarks</i>: <del>Stable</del><ins>This operation shall be stable: for equivalent elements 
-in the two lists, the elements from <tt>*this</tt> shall always precede the elements from <tt>x</tt>
-and the order of equivalent elements of <tt>*this</tt> and <tt>x</tt> remains stable</ins>. If 
-<tt>(&amp;x != this)</tt> the range <tt>[x.begin(), x.end())</tt> 
-is empty after the merge. No elements are copied by this operation. The behavior is undefined if 
-<tt>this-&gt;get_allocator() != x.get_allocator()</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 23.3.4.6 [forwardlist.ops] as indicated:</p>
-
-<blockquote><pre>
-void merge(forward_list&lt;T,Allocator&gt;&amp; x);
-void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp; x, Compare comp);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);</pre>
-<blockquote><p>
-[&hellip;]
-<p/>
--19- <i>Effects</i>: Merges <tt>x</tt> into <tt>*this</tt>. This operation shall be stable: for 
-equivalent elements in the two lists, the elements from <tt>*this</tt> shall always precede the 
-elements from <tt>x</tt> <ins>and the order of equivalent elements of <tt>*this</tt> and <tt>x</tt> 
-remains stable</ins>. <tt>x</tt> is empty after the merge. If an exception is thrown other 
-than by a comparison there are no effects. Pointers and references to the moved elements of <tt>x</tt> 
-now refer to those same elements but as members of <tt>*this</tt>. Iterators referring
-to the moved elements will continue to refer to their elements, but they now behave as iterators into
-<tt>*this</tt>, not into <tt>x</tt>.
-</p></blockquote></blockquote>
-</li>
-</ol>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the N3485.</p>
-
-<ol>
-<li><p>Change 17.6.5.7 [algorithm.stable]/1 as indicated:</p>
-<blockquote><p>
-When the requirements for an algorithm state that it is “stable” without further elaboration, it means:
-<p/>
-[&hellip;]
-</p>
-<ul>
-<li>For the <em>merge</em> algorithms, for equivalent elements in the original two ranges, the elements from the
-first range <ins>(preserving their original order)</ins> precede the elements from the second range <ins>(preserving 
-their original order)</ins>.</li>
-</ul>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.4.6 [forwardlist.ops] as indicated:</p>
-<blockquote>
-<pre>
-void remove(const T&amp; value);
-template &lt;class Predicate&gt; void remove_if(Predicate pred);
-</pre>
-<blockquote>
-<p>
--12- <i>Effects</i>: Erases all the elements in the list referred by a list iterator <tt>i</tt> for which the following conditions
-hold: <tt>*i == value</tt> (for <tt>remove()</tt>), <tt>pred(*i)</tt> is true (for <tt>remove_if()</tt>). <del>This operation shall be 
-stable: the relative order of the elements that are not removed is the same as their relative order in the original
-list.</del> Invalidates only the iterators and references to the erased elements.
-<p/>
--13- <i>Throws</i>: Nothing unless an exception is thrown by the equality comparison or the predicate.
-<p/>
-<ins>-??- <i>Remarks</i>: Stable (17.6.5.7 [algorithm.stable]).</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-void merge(forward_list&amp; x);
-void merge(forward_list&amp;&amp; x);
-template &lt;class Compare&gt; void merge(forward_list&amp; x, Compare comp)
-template &lt;class Compare&gt; void merge(forward_list&amp;&amp; x, Compare comp)
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--19- <i>Effects</i>: Merges <del><tt>x</tt> into <tt>*this</tt></del><ins>the two sorted ranges <tt>[begin(), end())</tt> 
-and <tt>[x.begin(), x.end())</tt></ins>. <del>This operation shall be stable: for equivalent 
-elements in the two lists, the elements from <tt>*this</tt> shall always precede the elements from <tt>x</tt>.</del> 
-<tt>x</tt> is empty after the merge. If an exception is thrown other than by a comparison there are no effects. Pointers and 
-references to the moved elements of <tt>x</tt> now refer to those same elements but as members of <tt>*this</tt>. 
-Iterators referring to the moved elements will continue to refer to their elements, but they now behave as iterators into
-<tt>*this</tt>, not into <tt>x</tt>.
-<p/>
--20- <i>Remarks</i>: <ins>Stable (17.6.5.7 [algorithm.stable]).</ins> The behavior is undefined if 
-<tt>this-&gt;get_allocator() != x.get_allocator()</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-void sort();
-template &lt;class Compare&gt; void sort(Compare comp);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--23- <i>Effects</i>: Sorts the list according to the <tt>operator&lt;</tt> or the <tt>comp</tt> function object. <del>This 
-operation shall be stable: the relative order of the equivalent elements is preserved.</del> If an exception is thrown the order
-of the elements in <tt>*this</tt> is unspecified. Does not affect the validity of iterators and references.
-<p/>
-<ins>-??- <i>Remarks</i>: Stable (17.6.5.7 [algorithm.stable]).</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.5.5 [list.ops] as indicated:</p>
-<blockquote>
-<pre>
-void remove(const T&amp; value);
-template &lt;class Predicate&gt; void remove_if(Predicate pred);
-</pre>
-<blockquote>
-<p>
-[&hellip;]<p/>
--17- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-<p/>
-[&hellip;]</p>
-</blockquote>
-
-<pre>
-void merge(list&amp; x);
-void merge(list&amp;&amp; x);
-template &lt;class Compare&gt; void merge(list&amp; x, Compare comp)
-template &lt;class Compare&gt; void merge(list&amp;&amp; x, Compare comp)
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--24- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>. [&hellip;]
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-void sort();
-template &lt;class Compare&gt; void sort(Compare comp);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--30- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 25.3.1 [alg.copy]/12 as indicated:</p>
-<blockquote>
-<pre>
-template&lt;class InputIterator, class OutputIterator, class Predicate&gt;
-OutputIterator 
-copy_if(InputIterator first, InputIterator last,
-        OutputIterator result, Predicate pred);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--12- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 25.3.8 [alg.remove] as indicated:</p>
-<blockquote>
-<pre>
-template&lt;class ForwardIterator, class T&gt;
-ForwardIterator 
-remove(ForwardIterator first, ForwardIterator last, const T&amp; value);
-template&lt;class ForwardIterator, class Predicate&gt;
-ForwardIterator 
-remove_if(ForwardIterator first, ForwardIterator last, Predicate pred);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--4- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-template&lt;class InputIterator, class OutputIterator, class T&gt;
-OutputIterator
-remove_copy(InputIterator first, InputIterator last,
-            OutputIterator result, const T&amp; value);
-template&lt;class InputIterator, class OutputIterator, class Predicate&gt;
-OutputIterator
-remove_copy_if(InputIterator first, InputIterator last,
-               OutputIterator result, Predicate pred);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--11- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 25.4.1.2 [stable.sort]/4 as indicated:</p>
-<blockquote>
-<pre>
-template&lt;class RandomAccessIterator&gt;
-void stable_sort(RandomAccessIterator first, RandomAccessIterator last);
-template&lt;class RandomAccessIterator, class Compare&gt;
-void stable_sort(RandomAccessIterator first, RandomAccessIterator last,
-Compare comp);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--4- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 25.4.4 [alg.merge] as indicated:</p>
-<blockquote>
-<pre>
-template&lt;class InputIterator1, class InputIterator2,
-         class OutputIterator&gt;
-OutputIterator
-merge(InputIterator1 first1, InputIterator1 last1,
-      InputIterator2 first2, InputIterator2 last2,
-      OutputIterator result);
-template&lt;class InputIterator1, class InputIterator2,
-         class OutputIterator, class Compare&gt;
-OutputIterator
-merge(InputIterator1 first1, InputIterator1 last1,
-      InputIterator2 first2, InputIterator2 last2,
-      OutputIterator result, Compare comp);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--5- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-
-<pre>
-template&lt;class BidirectionalIterator&gt;
-void inplace_merge(BidirectionalIterator first,
-                   BidirectionalIterator middle,
-                   BidirectionalIterator last);
-template&lt;class BidirectionalIterator, class Compare&gt;
-void inplace_merge(BidirectionalIterator first,
-                   BidirectionalIterator middle,
-                   BidirectionalIterator last, Compare comp);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--9- <i>Remarks</i>: Stable <ins>(17.6.5.7 [algorithm.stable])</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2123"></a>2123. <tt>merge()</tt> allocator requirements for lists versus forward lists</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2012-01-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Sub-clause 23.3.5.5 [list.ops], p24 states for lists:
-</p>
-<blockquote><p>
-The behavior is undefined if <tt>this-&gt;get_allocator() != x.get_allocator()</tt>.
-</p></blockquote>
-<p>
-But there is nothing like that for forward lists in 23.3.4.6 [forwardlist.ops],
-although I would expect the same undefined behavior there.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-Move to Ready.
-</p>
-
-<p><i>[2012, Portland: applied to WP]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to the FDIS.</p>
-
-<ol>
-<li>
-<p>Add a new paragraph after 23.3.4.6 [forwardlist.ops] p19 as indicated:</p>
-
-<blockquote><pre>
-void merge(forward_list&lt;T,Allocator&gt;&amp; x);
-void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp; x, Compare comp);
-template &lt;class Compare&gt; void merge(forward_list&lt;T,Allocator&gt;&amp;&amp; x, Compare comp);</pre>
-<blockquote><p>
-[&hellip;]
-<p/>
--19- <i>Effects</i>: [&hellip;]
-<p/>
-<ins>-?- <i>Remarks</i>: The behavior is undefined if <tt>this-&gt;get_allocator() != x.get_allocator()</tt>.</ins>
-</p></blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2128"></a>2128. Absence of global functions <tt>cbegin&#47;cend</tt></h3>
-<p><b>Section:</b> 24.3 [iterator.synopsis], 24.7 [iterator.range] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Dmitry Polukhin <b>Opened:</b> 2012-01-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.synopsis">issues</a> in [iterator.synopsis].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-All standard containers support <tt>cbegin&#47;cend</tt> member functions but corresponding global functions are 
-missing. Proposed resolution it to add global <tt>cbegin&#47;cend</tt> functions by analogy with global <tt>begin&#47;end</tt> 
-functions. This addition will unify things for users.
-</p>
-
-<p><i>[2012, Kona]</i></p>
-
-
-<p>STL: Range-based for loops do not use global <tt>begin</tt>/<tt>end</tt> (anymore).</p>
-<p>Alisdair: We will have to make sure these will be available through many headers.</p>
-<p>STL: Do this, including <tt>r</tt> and <tt>cr</tt>. This won't add any additional work.</p>
-<p>Matt: Users will find it strange if these are not all available.</p>
-<p>Alisdair: Should we have these available everywhere begin/end are available?</p>
-<p>Marshall: Yes. Not any extra work.</p>
-<p>Howard: Adding all of these means we need all of <tt>&lt;iterator></tt>.</p>
-<p>STL: We already need it all.</p>
-<p>Matt: We have to be careful what we are requiring if we include the <tt>r</tt> versions.</p>
-<p>Jeffrey: If we include <tt>r</tt>, should they adapt if the container does not define reverse iteration?</p>
-<p>STL: No. No special behavior. Should fail to compile. Up to user to add the reverse code--it's easy.</p>
-<p>Howard: Anyway it will SFINAE out.</p>
-<p>Alisdair: Error messages due to SFINAE are harder to understand than simple failure to compile.</p>
-<p>STL: Agrees that SFINAE makes error messages much worse.</p>
-
-<p>
-Action: STL to provide additional wording for the <tt>r</tt> variants.
-Move to Review once that wording is availalbe.
-</p>
-
-<p><i>[
-2013-04-14 STL provides rationale and improved wording
-]</i></p>
-
-
-<p>Step 1: Implement <tt>std::cbegin/cend()</tt> by calling <tt>std::begin/end()</tt>. This has numerous advantages:</p>
-<ul>
-<li>It automatically works with arrays, which is the whole point of these non-member functions.</li>
-<li>It works with C++98/03-era user containers, written before <tt>cbegin/cend()</tt> members were invented.</li>
-<li>It works with <tt>initializer_list</tt>, which is extremely minimal and lacks <tt>cbegin/cend()</tt> members.</li>
-<li>23.2.1 [container.requirements.general] guarantees that this is equivalent to calling cbegin/cend() members.</li>
-</ul>
-<p>Step 2: Like <tt>std::begin/end()</tt>, implement <tt>std::rbegin/rend()</tt> by calling <tt>c.rbegin/rend()</tt>.  
-Note that C++98/03 had the <tt>Reversible Container Requirements</tt>.</p>
-<p>Step 3: Also like <tt>std::begin/end()</tt>, provide overloads of <tt>std::rbegin/rend()</tt> for arrays.</p>
-<p>Step 4: Provide overloads of <tt>std::rbegin/rend()</tt> for <tt>initializer_list</tt>, because it lacks 
-<tt>rbegin/rend()</tt> members. These overloads follow 18.9.3 [support.initlist.range]'s signatures. Note that 
-because these overloads return <tt>reverse_iterator</tt>, they aren't being specified in <tt>&lt;initializer_list&gt;</tt>.</p>
-<p>Step 5: Like Step 1, implement <tt>std::crbegin/crend()</tt> by calling <tt>std::rbegin/rend()</tt>.</p>
-
-<p>Original wording saved here:</p>
-<blockquote class="note">
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf">N3337</a>.</p>
-
-<ol>
-<li><p>In 24.3 [iterator.synopsis], header iterator synopsis, add the following declarations:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  <i>// 24.6.5, range access:</i>
-  template &lt;class C&gt; auto begin(C&amp; c) -> decltype(c.begin());
-  template &lt;class C&gt; auto begin(const C&amp; c) -> decltype(c.begin());
-  template &lt;class C&gt; auto end(C&amp; c) -> decltype(c.end());
-  template &lt;class C&gt; auto end(const C&amp; c) -> decltype(c.end());
-  <ins>template &lt;class C&gt; auto cbegin(const C&amp; c) -> decltype(c.cbegin());</ins>
-  <ins>template &lt;class C&gt; auto cend(const C&amp; c) -> decltype(c.cend());</ins>
-  template &lt;class T, size_t N&gt; T* begin(T (&amp;array)[N]);
-  template &lt;class T, size_t N&gt; T* end(T (&amp;array)[N]);
-  <ins>template &lt;class T, size_t N&gt; const T* cbegin(T (&amp;array)[N]);</ins>
-  <ins>template &lt;class T, size_t N&gt; const T* cend(T (&amp;array)[N]);</ins>
-}
-</pre></blockquote>
-</li>
-
-<li><p>In 24.7 [iterator.range] after p5 add the following series of paragraphs:</p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class C&gt; auto cbegin(const C&amp; c) -> decltype(c.cbegin());</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>c.cbegin()</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class C&gt; auto cend(const C&amp; c) -> decltype(c.cend());</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>c.cend()</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class T, size_t N&gt; const T* cbegin(T (&amp;array)[N]);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>array</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class T, size_t N&gt; const T* cend(T (&amp;array)[N]);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>array + N</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3485.pdf">N3485</a>.</p>
-
-<ol>
-<li><p>In 24.3 [iterator.synopsis], header iterator synopsis, add the following declarations:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  <i>// 24.6.5, range access:</i>
-  template &lt;class C&gt; auto begin(C&amp; c) -> decltype(c.begin());
-  template &lt;class C&gt; auto begin(const C&amp; c) -> decltype(c.begin());
-  template &lt;class C&gt; auto end(C&amp; c) -> decltype(c.end());
-  template &lt;class C&gt; auto end(const C&amp; c) -> decltype(c.end());
-  template &lt;class T, size_t N&gt; T* begin(T (&amp;array)[N]);
-  template &lt;class T, size_t N&gt; T* end(T (&amp;array)[N]);
-  <ins>template &lt;class C&gt; auto cbegin(const C&amp; c) -> decltype(std::begin(c));</ins>
-  <ins>template &lt;class C&gt; auto cend(const C&amp; c) -> decltype(std::end(c));</ins>
-  <ins>template &lt;class C&gt; auto rbegin(C&amp; c) -> decltype(c.rbegin());</ins>
-  <ins>template &lt;class C&gt; auto rbegin(const C&amp; c) -> decltype(c.rbegin());</ins>
-  <ins>template &lt;class C&gt; auto rend(C&amp; c) -> decltype(c.rend());</ins>
-  <ins>template &lt;class C&gt; auto rend(const C&amp; c) -> decltype(c.rend());</ins>
-  <ins>template &lt;class T, size_t N&gt; reverse_iterator&lt;T*&gt; rbegin(T (&amp;array)[N]);</ins>
-  <ins>template &lt;class T, size_t N&gt; reverse_iterator&lt;T*&gt; rend(T (&amp;array)[N]);</ins>
-  <ins>template &lt;class E> reverse_iterator&lt;const E*&gt; rbegin(initializer_list&lt;E&gt; il);</ins>
-  <ins>template &lt;class E> reverse_iterator&lt;const E*&gt; rend(initializer_list&lt;E&gt; il);</ins>
-  <ins>template &lt;class C&gt; auto crbegin(const C&amp; c) -> decltype(std::rbegin(c));</ins>
-  <ins>template &lt;class C&gt; auto crend(const C&amp; c) -> decltype(std::rend(c));</ins>
-}
-</pre></blockquote>
-</li>
-
-<li><p>At the end of 24.7 [iterator.range], add:</p>
-
-<blockquote>
-<pre>
-<ins>template &lt;class C&gt; auto cbegin(const C&amp; c) -> decltype(std::begin(c));</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>std::begin(c)</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class C&gt; auto cend(const C&amp; c) -> decltype(std::end(c));</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>std::end(c)</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class C&gt; auto rbegin(C&amp; c) -> decltype(c.rbegin());</ins>
-<ins>template &lt;class C&gt; auto rbegin(const C&amp; c) -> decltype(c.rbegin());</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>c.rbegin()</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class C&gt; auto rend(C&amp; c) -> decltype(c.rend());</ins>
-<ins>template &lt;class C&gt; auto rend(const C&amp; c) -> decltype(c.rend());</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>c.rend()</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class T, size_t N&gt; reverse_iterator&lt;T*&gt; rbegin(T (&amp;array)[N]);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>reverse_iterator&lt;T*&gt;(array + N)</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class T, size_t N&gt; reverse_iterator&lt;T*&gt; rend(T (&amp;array)[N]);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>reverse_iterator&lt;T*&gt;(array)</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class E> reverse_iterator&lt;const E*&gt; rbegin(initializer_list&lt;E&gt; il);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>reverse_iterator&lt;const E*&gt;(il.end())</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class E> reverse_iterator&lt;const E*&gt; rend(initializer_list&lt;E&gt; il);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>reverse_iterator&lt;const E*&gt;(il.begin())</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class C&gt; auto crbegin(const C&amp; c) -> decltype(std::rbegin(c));</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>std::rbegin(c)</tt>.</ins>
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class C&gt; auto crend(const C&amp; c) -> decltype(std::rend(c));</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: <tt>std::rend(c)</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2129"></a>2129. User specializations of <tt>std::initializer_list</tt></h3>
-<p><b>Section:</b> 17.6.4.2.1 [namespace.std], 18.9 [support.initlist] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2012-01-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#namespace.std">issues</a> in [namespace.std].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Since the implementation is intended to magically synthesize instances of <tt>std::initializer_list</tt> 
-(rather than by a constructor call, for instance), user specializations of this type can't generally be 
-made to work. I can't find any wording which makes such specializations ill-formed, though, which leads 
-me to suspect that they're technically legal under the provisions of 17.6.4.2.1 [namespace.std] p1.</p>
-
-
-<p><i>[2012, Kona]</i></p>
-
-<p>
-This sounds correct, but we need wording for a resolution.
-</p>
-<p>
-Marshall Clow volunteers to produce wording.
-</p>
-
-<p><i>[2014-02-19, Jonathan Wakely provides proposed wording]</i></p>
-
-
-<p><i>[2014-03-27, Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Add new new paragraph below 18.9 [support.initlist] p2:</p>
-
-<blockquote>
-<p>
--2- An object of type <tt>initializer_list&lt;E&gt;</tt> provides access to an array of objects of type <tt>const E</tt>. [&hellip;]
-<p/>
-<ins>-?- If an explicit specialization or partial specialization of <tt>initializer_list</tt> is declared, the program is ill-formed.</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2130"></a>2130. Missing ordering constraints</h3>
-<p><b>Section:</b> 29.3 [atomics.order] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Mark Batty <b>Opened:</b> 2012-02-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#atomics.order">active issues</a> in [atomics.order].</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.order">issues</a> in [atomics.order].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>C11 issue 407</b></p>
-
-<p>
-It seems that both C11 and C++11 are missing the following two derivatives of this 
-rule:
-</p>
-<blockquote><p>
-  For atomic modifications <tt>A</tt> and <tt>B</tt> of an atomic object <tt>M</tt>, if there is
-  a <tt>memory_order_seq_cst</tt> fence <tt>X</tt> such that <tt>A</tt> is sequenced before <tt>X</tt>,
-  and <tt>X</tt> precedes <tt>B</tt> in <tt>S</tt>, then <tt>B</tt> occurs later than <tt>A</tt> in the
-  modification order of <tt>M</tt>.
-</p></blockquote>
-<blockquote><p>
-  For atomic modifications <tt>A</tt> and <tt>B</tt> of an atomic object <tt>M</tt>, if there is
-  a <tt>memory_order_seq_cst</tt> fence <tt>Y</tt> such that <tt>Y</tt> is sequenced before <tt>B</tt>,
-  and <tt>A</tt> precedes <tt>Y</tt> in <tt>S</tt>, then <tt>B</tt> occurs later than <tt>A</tt> in the
-  modification order of <tt>M</tt>.
-</p></blockquote>
-<p>
-Above wording has been suggested for the Technical Corrigendum of C11 via issue 407, details can be found 
-<a href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1584.pdf">here</a>.
-</p>
-
-<p><i>[2012-03-19: Daniel proposes a slightly condensed form to reduce wording duplications]</i></p>
-
-
-<p><i>[2012-03-20: Hans comments]</i></p>
-
-<p>
-The usage of the term <em>atomic operations</em> in 29.3 [atomics.order] p7 is actually
-incorrect and should better be replaced by <em>atomic modifications</em> as used in the C11
-407 wording.
-<p/>
-There seems to be a similar wording incorrectness used in 1.10 [intro.multithread] p17
-which should be corrected as well.
-</p>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-Olivier: does the fence really participate in the modifications?
-</p>
-<p>
-Hans: S is the total set of <em>all</em> sequentially consistent operations,
-      and sequentially consistent fences are in S.
-</p>
-<p>
-Olivier: this sort of combination of a pair of half-open rules seems to imply the
-         write must make it to main memory
-</p>
-<p>
-But not all implementations treat a fence as a memory operation; cannot observe the half-open rule.
-</p>
-<p>
-Hans: not sure this is actually prevented here. You could defer until the next load.
-      What the wording doesn't quite show is that the third bullet in the new wording
-      is already in the standard.
-</p>
-<p>
-Hans: it is the interaction between fences on one side and other memory modifications
-      on the other that is being defined here.
-</p>
-<p>
-Pablo: S is not directly observable; it is a hypothetic ordering.
-</p>
-<p>
-Moved to review
-</p>
-<p>
-Hans: to alert C liaison
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p><em>[Drafting note: The project editor is kindly asked to consider to replace in 1.10 [intro.multithread] p17
-the phrase <em>"before an operation <i>B</i> on <i>M</i>"</em> by <em>"before a modification <i>B</i> of <i>M</i>"</em>.]</em></p>
-</li>
-<li><p>Change 29.3 [atomics.order] paragraph 7 as indicated: <em>[Drafting note: Note that the
-wording change intentionally does also replace the term <em>atomic operation</em> by <em>atomic modification</em>]</em>
-</p>
-
-<p>
--7- <del>For atomic operations <i>A</i> and <i>B</i> on an atomic object <i>M</i>, if there are 
-<tt>memory_order_seq_cst</tt> fences <i>X</i> and <i>Y</i> such that <i>A</i> is sequenced before <i>X</i>, 
-<i>Y</i> is sequenced before <i>B</i>, and <i>X</i> precedes <i>Y</i> in <i>S</i>, then <i>B</i> 
-occurs later than <i>A</i> in the modification order of <i>M</i>.</del>
-<ins>For atomic modifications <i>A</i> and <i>B</i> of an atomic object <i>M</i>, <i>B</i> occurs
-later than <i>A</i> in the modification order of <i>M</i> if:</ins>
-<ul>
-<li><ins>there is a <tt>memory_order_seq_cst</tt> fence <i>X</i> such that <i>A</i> is sequenced before <i>X</i>, 
-and <i>X</i> precedes <i>B</i> in <i>S</i>, or</ins>
-</li>
-<li><ins>there is a <tt>memory_order_seq_cst</tt> fence <i>Y</i> such that <i>Y</i> is sequenced before <i>B</i>,
-and <i>A</i> precedes <i>Y</i> in <i>S</i>, or</ins>
-</li>
-<li><ins>there are <tt>memory_order_seq_cst</tt> fences <i>X</i> and <i>Y</i> such that <i>A</i> is sequenced 
-before <i>X</i>, <i>Y</i> is sequenced before <i>B</i>, and <i>X</i> precedes <i>Y</i> in <i>S</i>.</ins>
-</li>
-</ul>
-<p/>
--8- [ <i>Note</i>: <tt>memory_order_seq_cst</tt> ensures sequential consistency only for a program that is free of data races
-and uses exclusively <tt>memory_order_seq_cst</tt> operations. Any use of weaker ordering will invalidate this
-guarantee unless extreme care is used. In particular, <tt>memory_order_seq_cst</tt> fences ensure a total order
-only for the fences themselves. Fences cannot, in general, be used to restore sequential consistency for atomic
-operations with weaker ordering specifications. &mdash; <i>end note</i> ]
-</p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2132"></a>2132. <tt>std::function</tt> ambiguity</h3>
-<p><b>Section:</b> 20.9.12.2.1 [func.wrap.func.con] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Ville Voutilainen <b>Opened:</b> 2012-02-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func.con">issues</a> in [func.wrap.func.con].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following:
-</p>
-<blockquote><pre>
-#include &lt;functional&gt;
-
-void f(std::function&lt;void()&gt;) {}
-void f(std::function&lt;void(int)&gt;) {}
-
-int main() {
-  f([]{});
-  f([](int){});
-}
-</pre></blockquote>
-<p>
-The calls to <tt>f</tt> in <tt>main</tt> are ambiguous. Apparently because the
-conversion sequences to <tt>std::function</tt> from the lambdas are identical. 
-The standard specifies that the function object given to <tt>std::function</tt>
-"shall be <em>Callable</em> (20.8.11.2) for argument types <tt>ArgTypes</tt> and 
-return type <tt>R</tt>." It doesn't say that if this is not the case, the 
-constructor isn't part of the overload set.
-<p/>
-Daniel: During the preparation of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3123.html">N3123</a>
-it turned out that there are no longer reasons to refer to <em>INVOKE</em> as a
-conceptually entity alone, its real implementation as a function template <tt>invoke</tt>
-is possible but was deferred for a later point in time. Defining a type trait for
-the <em>Callable</em> requirement would also be possible, so there seem to be no technical
-reasons why the template constructor of <tt>std::function</tt> should not be
-constrained. The below suggested wording does this without introducing a special
-trait for this. This corresponds to the way that has been used to specify the
-<tt>result_of</tt> trait. Note that the definition of the <em>Callable</em>
-requirement is perfectly suitable for this, because it is a pure syntactically
-based requirement and can be directly transformed into a constrained template.
-<p/>
-The suggested resolution also applies such wording to the "perfectly forwarding"
-assignment operator
-</p>
-<blockquote><pre>
-template&lt;class F&gt; function&amp; operator=(F&amp;&amp;);
-</pre></blockquote>
-<p>
-The positive side-effect of this is that it automatically implements a solution to
-a problem similar to that mentioned in issue <a href="lwg-defects.html#1234">1234</a>.
-<p/>
-It would be possible to apply similar constraints to the member signatures
-</p>
-<blockquote><pre>
-template&lt;class F&gt; function&amp; operator=(reference_wrapper&lt;F&gt;);
-
-template&lt;class F, class A&gt; void assign(F&amp;&amp;, const A&amp;);
-</pre></blockquote>
-<p>
-as well. At this point there does not seem to be a pestering reason to do so.
-</p>
-
-<p><i>[2012-10 Portland: Move to Review]</i></p>
-
-<p>
-STL: This is a real issue, but does not like a resolution relying on a SFINAEable metafunction
-that is not specified and available to the users.
-</p>
-
-<p>
-<tt>packaged_task</tt> has the same issue.
-</p>
-
-<p>
-STL strongly wants to see an <tt>is_callable</tt> type trait to clarify the proposed wording.
-</p>
-
-<p>
-Jeremiah concerned about holding up what appears to be a correct resolution for a hypothetical
-better one later - the issue is real.
-</p>
-
-<p>
-Why must <tt>f</tt> by CopyConstructible?  Surely MoveConstructible would be sufficient?
-</p>
-
-<p>
-Answer: because <tt>function</tt> is CopyConstructible, and the bound functor is type-erased
-so must support all the properties of <tt>function</tt> itself.
-</p>
-
-<p>
-Replace various applications of <tt>declval</tt> in the proposed resolution with simply using
-the passed functor object, <tt>f</tt>.
-</p>
-
-<p>
-Alisdair to apply similar changes to <tt>packaged_task</tt>.
-</p>
-
-<p><i>[2012-11-09, Vicente J. Botet Escriba provides another example]</i></p>
-
-
-<p>
-Consider the following:
-</p>
-<blockquote><pre>
-class AThreadWrapper {
-public:
-  explicit operator std::thread();
-  ...
-};
-std::thread th = std::thread(AThreadWrapper); // call to conversion operator intended
-</pre></blockquote>
-<p>
-The call to the conversion operator is overloaded with the thread constructor. But thread constructor requirement 
-makes it fail as <tt>AThreadWrapper</tt> is not a Callable and the compiler tries to instantiate the thread 
-constructor and fails.
-</p>
-
-<p><i>[2014-02-14 Issaquah meeting: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change the following paragraphs in 20.9.12.2.1 [func.wrap.func.con]:
-[<em>Editorial comment</em>: The removal of the seemingly additional no-throw
-requirements of copy constructor and destructor of <tt>A</tt> is recommended,
-because they are already part of the Allocator requirements. Similar clean-up
-has been suggested by <a href="lwg-active.html#2070">2070</a> &mdash; <em>end comment</em>]</p>
-
-<blockquote>
-<pre>
-template&lt;class F> function(F f);
-template&lt;class F, class A&gt; function(allocator_arg_t, const A&amp; a, F f);
-</pre>
-<blockquote>
-<p>
--7- <i>Requires</i>: <tt>F</tt> shall be <tt>CopyConstructible</tt>. <del><tt>f</tt> shall be Callable 
-(20.9.12.2 [func.wrap.func]) for argument types <tt>ArgTypes</tt> and return type <tt>R</tt>. 
-The copy constructor and destructor of <tt>A</tt> shall not throw exceptions.</del>
-<p/>
-<ins>-?- <i>Remarks</i>: These constructors shall not participate in overload resolution unless
-<tt>f</tt> is Callable (20.9.12.2 [func.wrap.func]) for argument types
-<tt>ArgTypes...</tt> and return type <tt>R</tt>.</ins>
-</p>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<pre>
-template&lt;class F> function&amp; operator=(F&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
--18- <i>Effects</i>: <tt>function(std::forward&lt;F&gt;(f)).swap(*this);</tt>
-<p/>
--19- <i>Returns</i>: <tt>*this</tt>
-<p/>
-<ins>-?- <i>Remarks</i>: This assignment operator shall not participate in overload resolution unless
-<tt>declval&lt;typename decay&lt;F&gt;::type&amp;&gt;()</tt> is Callable (20.9.12.2 [func.wrap.func]) 
-for argument types <tt>ArgTypes...</tt> and return type <tt>R</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2135"></a>2135. Unclear requirement for exceptions thrown in <tt>condition_variable::wait()</tt></h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar], 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<tt>condition_varible::wait()</tt> (and, presumably, <tt>condition_variable_any::wait()</tt>, although 
-I haven't looked at it) says that it calls <tt>lock.unlock()</tt>, and if <tt>condition_variable::wait()</tt> 
-exits by an exception it calls <tt>lock.lock()</tt> on the way out. But if the initial call to 
-<tt>lock.unlock()</tt> threw an exception, does it make sense to call <tt>lock.lock()</tt>? We simply 
-don't know the state of that lock object, and it's probably better not to touch it.
-<p/>
-That aside, once the <tt>wait()</tt> call has been unblocked, it calls <tt>lock.lock()</tt>. If <tt>lock.lock()</tt> 
-throws an exception, what happens? The requirement is:
-</p>
-<blockquote><p>
-If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function scope.
-</p></blockquote>
-<p>
-That can be read in two different ways. One way is as if it said "<tt>lock.lock()</tt> shall have been called …", 
-i.e. the original, failed, call to <tt>lock.lock()</tt> is all that's required. But a more natural reading is 
-that wait has to call <tt>lock.lock()</tt> again, even though it already failed.
-<p/>
-I think this wording suffers from being too general. There are two possible exception sources: the initial call 
-to <tt>lock.unlock()</tt> and the final call to <tt>lock.lock()</tt>. Each one should have its own requirement. 
-Lumping them together muddles things.
-</p>
-
-<p><i>[2012, Portland: move to Open]</i></p>
-
-<p>
-Pablo: <tt>unlock</tt> failing is easy -- the call leaves it locked.
-       The second case, trying to <tt>lock</tt> fails -- what can you do?
-       This is an odd state as we <em>had</em> it locked before was called wait.
-       Maybe we should call <tt>terminate</tt> as we cannot meet the post-conditions.
-       We could throw a different exception.
-</p>
-<p>
-Hans: calling <tt>terminate</tt> makes sense as we're likely to call it soon anyway
-      and at least we have some context.
-</p>
-<p>
-Detlef: what kind of locks might be being used?
-</p>
-<p>
-Pablo: condition variables are 'our' locks so this is less of a problem.
-       <tt>condition_variable_any</tt> might be more problematic.
-</p>
-<p>
-The general direction is to call <tt>terminate</tt> if the lock cannot be reacquired.
-</p>
-<p>
-Pablo: Can we change the wording to 'leaves the mutex locked' ?
-</p>
-<p>
-Hans: so if the <tt>unlock</tt> throws we simply propagate the exception.
-</p>
-<p>
-Move the issue to open and add some formal wording at a later time.
-</p>
-
-<p><i>[2013-09 Chicago: Resolved]</i></p>
-
-
-<p>
-Detlef improves wording. Daniel suggests to introduce a <i>Remarks</i> element for the special
-"If the function fails to meet the postcondition..." wording and applies this to the proposed
-wording.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 30.5.1 [thread.condition.condvar] as indicated:</p>
-
-<blockquote><pre>
-void wait(unique_lock&lt;mutex&gt;&amp; lock);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--10- <i>Effects:</i>
-</p>
-<ul>
-<li><p>Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.</p></li>
-<li><p>When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock), then returns.</p></li>
-<li><p>The function will unblock when signaled by a call to <tt>notify_one()</tt> or a call to <tt>notify_all()</tt>,
-or spuriously.</p></li>
-<li><p><del>If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function
-scope.</del></p></li>
-</ul>
-<p>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--11- <i>Postcondition:</i> <tt>lock.owns_lock()</tt> is true and <tt>lock.mutex()</tt> is locked by the calling 
-thread. 
-<p/>
--12- <i>Throws:</i> <ins>Nothing</ins><del><tt>system_error</tt> when an exception is required (30.2.2)</del>.
-<p/>
-<del>-13- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Predicate&gt;
-void wait(unique_lock&lt;mutex&gt;&amp; lock, Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--16- <i>Postcondition:</i> <tt>lock.owns_lock()</tt> is true and <tt>lock.mutex()</tt> is locked by the calling 
-thread.
-<p/>
--17- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2),</del> timeout-related exceptions 
-(30.2.4)<del>,</del> or any exception thrown by <tt>pred</tt>.
-<p/>
-<del>-18- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Clock, class Duration&gt;
-  cv_status wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-    const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--20- <i>Effects:</i> 
-</p>
-<ul>
-<li><p>[&hellip;]</p></li>
-<li><p>If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function
-<del>scope</del>.</p></li>
-</ul>
-<p>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--21- <i>Postcondition:</i> <tt>lock.owns_lock()</tt> is true and <tt>lock.mutex()</tt> is locked by the calling 
-thread.
-<p/>
-[&hellip;]
-<p/>
--23- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2) or</del> timeout-related 
-exceptions (30.2.4).
-<p/>
-<del>-24- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Rep, class Period&gt;
-  cv_status wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-    const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--28- <i>Postcondition:</i> <tt>lock.owns_lock()</tt> is true and <tt>lock.mutex()</tt> is locked by the calling 
-thread.
-<p/>
-[&hellip;]
-<p/>
--29- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2) or</del> timeout-related 
-exceptions (30.2.4).
-<p/>
-<del>-30- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Clock, class Duration, class Predicate&gt;
-  bool wait_until(unique_lock&lt;mutex&gt;&amp; lock,
-    const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time,
-	Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--33- <i>Postcondition:</i> <tt>lock.owns_lock()</tt> is true and <tt>lock.mutex()</tt> is locked by the calling 
-thread.
-<p/>
-[&hellip;]
-<p/>
--35- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2),</del> timeout-related exceptions 
-(30.2.4)<del>,</del> or any exception thrown by <tt>pred</tt>.
-<p/>
-<del>-36- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Rep, class Period, class Predicate&gt;
-  bool wait_for(unique_lock&lt;mutex&gt;&amp; lock,
-    const chrono::duration&lt;Rep, Period&gt;&amp; rel_time,
-	Predicate pred);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--40- <i>Postcondition:</i> <tt>lock.owns_lock()</tt> is true and <tt>lock.mutex()</tt> is locked by the calling 
-thread.
-<p/>
-[&hellip;]
-<p/>
--42- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2),</del> timeout-related exceptions 
-(30.2.4)<del>,</del> or any exception thrown by <tt>pred</tt>.
-<p/>
-<del>-43- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-</blockquote>
-
-</li>
-
-<li><p>Edit 30.5.2 [thread.condition.condvarany] as indicated:</p>
-
-<blockquote><pre>
-template&lt;class Lock&gt;
-void wait(Lock&amp; lock);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--10- <i>Effects:</i>
-</p>
-<ul>
-<li><p>Atomically calls <tt>lock.unlock()</tt> and blocks on <tt>*this</tt>.</p></li>
-<li><p>When unblocked, calls <tt>lock.lock()</tt> (possibly blocking on the lock) and returns.</p></li>
-<li><p>The function will unblock when signaled by a call to <tt>notify_one()</tt>, a call to <tt>notify_all()</tt>,
-or spuriously.</p></li>
-<li><p><del>If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function
-scope.</del></p></li>
-</ul>
-<p>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--11- <i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread. 
-<p/>
--12- <i>Throws:</i> <ins>Nothing</ins><del><tt>system_error</tt> when an exception is required (30.2.2)</del>.
-<p/>
-<del>-13- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-
-</blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Lock, class Clock, class Duration&gt;
-  cv_status wait_until(Lock&amp; lock, const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--15- <i>Effects:</i> 
-</p>
-<ul>
-<li><p>[&hellip;]</p></li>
-<li><p>If the function exits via an exception, <tt>lock.lock()</tt> shall be called prior to exiting the function
-<del>scope</del>.</p></li>
-</ul>
-<p>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--16- <i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-<p/>
-[&hellip;]
-<p/>
--18- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2) or</del> timeout-related 
-exceptions (30.2.4).
-<p/>
-<del>-19- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-<blockquote>
-<pre>
-template &lt;class Lock, class Rep, class Period&gt;
-  cv_status wait_for(Lock&amp; lock, const chrono::duration&lt;Rep, Period&gt;&amp; rel_time);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<ins>-?- <i>Remarks:</i> If the function fails to meet the postcondition, <tt>std::terminate()</tt> shall be called 
-(15.5.1 [except.terminate]). [<i>Note:</i> This can happen if the re-locking of the mutex throws an 
-exception. &mdash; <i>end note</i>]</ins>
-<p/>
--22- <i>Postcondition:</i> <tt>lock</tt> is locked by the calling thread.
-<p/>
-[&hellip;]
-<p/>
--23- <i>Throws:</i> <del><tt>system_error</tt> when an exception is required (30.2.2) or</del> timeout-related 
-exceptions (30.2.4).
-<p/>
-<del>-24- <i>Error conditions:</i></del>
-</p>
-<ul>
-<li><p><del>equivalent error condition from <tt>lock.lock()</tt> or <tt>lock.unlock()</tt>.</del></p></li>
-</ul>
-</blockquote></blockquote>
-
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2138"></a>2138. <tt>atomic_flag::clear</tt> should not accept <tt>memory_order_consume</tt></h3>
-<p><b>Section:</b> 29.7 [atomics.flag] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Ben Viglietta <b>Opened:</b> 2012-03-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.flag">issues</a> in [atomics.flag].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3376.pdf">N3376</a> 29.7 [atomics.flag]&#47;7 says
-this about <tt>atomic_flag::clear</tt>:
-</p>
-<blockquote><p>
-<i>Requires</i>: The <tt>order</tt> argument shall not be <tt>memory_order_acquire</tt> or <tt>memory_order_acq_rel</tt>.
-</p></blockquote>
-<p>
-In addition, <tt>memory_order_consume</tt> should be disallowed, since it doesn't meaningfully apply to store operations.  
-It's already disallowed on the analogous <tt>atomic&lt;T&gt;::store</tt>. The proposed updated text would be:
-</p>
-<blockquote><p>
-<i>Requires</i>: The <tt>order</tt> argument shall not be <ins><tt>memory_order_consume</tt>,</ins> 
-<tt>memory_order_acquire</tt><ins>,</ins> or <tt>memory_order_acq_rel</tt>.
-</p></blockquote>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-Hans: this is a clear oversight.
-</p>
-<p>
-Moved to review
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This wording is relative to N3376.]</i></p>
-
-
-<blockquote><pre>
-void atomic_flag_clear(volatile atomic_flag *object) noexcept;
-void atomic_flag_clear(atomic_flag *object) noexcept;
-void atomic_flag_clear_explicit(volatile atomic_flag *object, memory_order order) noexcept;
-void atomic_flag_clear_explicit(atomic_flag *object, memory_order order) noexcept;
-void atomic_flag::clear(memory_order order = memory_order_seq_cst) volatile noexcept;
-void atomic_flag::clear(memory_order order = memory_order_seq_cst) noexcept;
-</pre><blockquote>
-<p>
--7- <i>Requires</i>: The <tt>order</tt> argument shall not be <ins><tt>memory_order_consume</tt>,</ins> 
-<tt>memory_order_acquire</tt><ins>,</ins> or <tt>memory_order_acq_rel</tt>.
-<p/>
--8- <i>Effects</i>: Atomically sets the value pointed to by <tt>object</tt> or by <tt>this</tt> to false. Memory is affected
-according to the value of <tt>order</tt>.
-</p>
-</blockquote>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2140"></a>2140. Meaning of <tt>notify_all_at_thread_exit</tt> synchronization requirement?</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-03-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<tt>notify_all_at_thread_exit</tt> has the following synchronization requirement:
-</p>
-<blockquote><p>
-<i>Synchronization</i>: The call to <tt>notify_all_at_thread_exit</tt> and the completion of the destructors 
-for all the current thread's variables of thread storage duration <em>synchronize with</em> (1.10 [intro.multithread]) 
-calls to functions waiting on <tt>cond</tt>.
-</p></blockquote>
-<p>
-The functions waiting on <tt>cond</tt> have already been called, otherwise they wouldn't be waiting. So how can a subsequent 
-call to <tt>notify_all_at_thread_exit</tt> synchronize with them?
-<p/>
-Also, "synchronizes with" is a relationship between library calls (1.10 [intro.multithread]&#47;8), so it's not 
-meaningful for completion of destructors for non-library objects. Presumably the intention wasn't so make library 
-destructors special here.
-</p>
-
-<p><i>[2012-03-09 Jeffrey Yasskin comments:]</i></p>
-
-
-<p>
-I think the text should say that "<tt>notify_all_at_thread_exit</tt> and destructor calls are sequenced before
-the <tt>lk.unlock()</tt>", and leave it at that, unless there's a funny implementation I haven't thought of.
-</p>
-
-<p><i>[2012-03-19 Hans Boehm comments:]</i></p>
-
-
-<p>
-I think the synchronization clause should just be replaced with (modulo wording tweaks):
-<p/>
-"The implied <tt>lk.unlock()</tt> call is sequenced after the destruction of all objects with thread storage duration 
-associated with the current thread."
-<p/>
-as Jeffrey suggested.
-<p/>
-To use this correctly, the notifying thread has to essentially acquire the lock, set a variable indicating it's done, 
-call <tt>notify_all_at_thread_exit()</tt>, while the waiting thread acquires the lock, and repeatedly waits on the 
-cv until the variable is set, and then releases the lock.  That ensures that we have the proper synchronizes with 
-relationship as a result of the lock.
-</p>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-The <tt>lk.unlock()</tt> refers back to the wording the previous paragraph.
-</p>
-<p>
-Moved to review
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol><li><p>Modify 30.5 [thread.condition] p8 as indicated:</p>
-
-<blockquote>
-<pre>
-void notify_all_at_thread_exit(condition_variable&amp; cond, unique_lock&lt;mutex&gt; lk);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--8- <i>Synchronization</i>: <del>The call to <tt>notify_all_at_thread_exit</tt> and the completion of the destructors for
-all the current thread's variables of thread storage duration synchronize with (1.10 [intro.multithread]) 
-calls to functions waiting on <tt>cond</tt></del> <ins>The implied <tt>lk.unlock()</tt> call is sequenced after the 
-destruction of all objects with thread storage duration associated with the current thread</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2141"></a>2141. <tt>common_type</tt> trait produces reference types</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Doug Gregor <b>Opened:</b> 2012-03-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The type computation of the <tt>common_type</tt> type trait is defined as
-</p>
-<blockquote><pre>
-template &lt;class T, class U&gt;
- struct common_type&lt;T, U&gt; {
-   typedef decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;()) type;
- };
-</pre></blockquote>
-<p>
-This means that <tt>common_type&lt;int, int&gt;::type</tt> is <tt>int&amp;&amp;</tt>, because
-</p>
-<ul>
-<li><tt>declval&lt;int&gt;()</tt> returns <tt>int&amp;&amp;</tt></li>
-<li>The conditional operator returns an xvalue when its second and third operands have the same type 
-and are both xvalues (5.16 [expr.cond] p4)</li>
-<li><tt>decltype</tt> returns <tt>T&amp;&amp;</tt> when its expression is an xvalue (7.1.6.2 [dcl.type.simple] p4)</li>
-</ul>
-<p>
-Users of <tt>common_type</tt> do not expect to get a reference type as the result; the expectation is that 
-<tt>common_type</tt> will return a non-reference type to which all of the types can be converted.
-<p/>
-Daniel: In addition to that it should be noted that without such a fix the definition of <tt>std::unique_ptr</tt>'s
-<tt>operator&lt;</tt> in 20.8.1.5 [unique.ptr.special] (around p4) is also broken: In the most typical case 
-(with default deleter), the determination of the common pointer type <em>CT</em> will instantiate 
-<tt>std::less&lt;<em>CT</em>&gt;</tt> which can now be <tt>std::less&lt;T*&amp;&amp;&gt;</tt>, which will
-<em>not</em> be the specialization of pointer types that guarantess a total order.
-<p/>
-Given the historic constext of <tt>common_type</tt> original specification, the proper resolution to me
-seems to be using <tt>std::decay</tt> instead of <tt>std::remove_reference</tt>: 
-</p>
-<blockquote><pre>
-template &lt;class T, class U&gt;
-struct common_type&lt;T, U&gt; {
-  typedef <ins>typename decay&lt;</ins>decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;())<ins>&gt;::type</ins> type;
-};
-</pre></blockquote>
-<p>
-At that time rvalues had no identity in this construct and rvalues of non-class types have no cv-qualification.
-With this change we would ensure that
-</p>
-<blockquote><pre>
-common_type&lt;int, int&gt;::type == common_type&lt;const int, const int&gt;::type == int
-</pre></blockquote>
-<p>
-Note that this harmonizes with the corresponding heterogenous case, which has already the exact same effect:
-</p>
-<blockquote><pre>
-common_type&lt;int, long&gt;::type == common_type&lt;const int, const long&gt;::type == long
-</pre></blockquote>
-
-<p><i>[2012-10-11 Daniel comments]</i></p>
-
-<p>
-While testing the effects of applying the proposed resolution I noticed that this will have the effect that the unary 
-form of <tt>common_type</tt>, like
-</p>
-<blockquote><pre>
-common_type&lt;int&gt;
-</pre></blockquote>
-<p>
-is not symmetric to the n-ary form (n &gt; 1). This is unfortunate, because this difference comes especially to effect when 
-<tt>common_type</tt> is used with variadic templates. As an example consider the following <tt>make_array</tt> template:
-</p>
-<blockquote><pre>
-#include &lt;array>
-#include &lt;type_traits>
-#include &lt;utility>
-
-template&lt;class... Args&gt;
-std::array&lt;typename std::common_type&lt;Args...&gt;::type, sizeof...(Args)&gt;
-make_array(Args&amp;&amp;... args)
-{
-  typedef typename std::common_type&lt;Args...&gt;::type CT;
-  return std::array&lt;CT, sizeof...(Args)&gt;{static_cast&lt;CT&gt;(std::forward&lt;Args&gt;(args))...};
-}
-
-int main()
-{
-  auto a1 = make_array(0); // OK: std::array&lt;int, 1&gt;
-  auto a2 = make_array(0, 1.2); // OK: std::array&lt;double, 2&gt;
-  auto a3 = make_array(5, true, 3.1415f, 'c'); // OK: std::array&lt;float, 4&gt;
-
-  int i = 0;
-  auto a1b = make_array(i); // <span style="color:#C80000;font-weight:bold">Error, attempt to form std::array&lt;int&amp;, 1&gt;</span>
-
-  auto a2b = make_array(i, 1.2); // OK: std::array&lt;double, 2&gt;
-  auto a2c = make_array(i, 0); // OK: std::array&lt;int, 2&gt;
-}
-</pre></blockquote>
-<p>
-The error for <tt>a1b</tt> <em>only</em> happens in the unary case and it is easy that it remains unnoticed
-during tests. You cannot explain that reasonably to the user here.
-<p/>
-Of-course it is possible to fix that in this example by applying <tt>std::decay</tt> to the result of the 
-<tt>std::common_type</tt> deduction. But if this is necessary here, I wonder why it should also be applied to 
-the binary case, where it gives the wrong illusion of a complete type decay? The other way around: Why is 
-<tt>std::decay</tt> not also applied to the unary case as well?
-<p/>
-This problem is not completely new and was already observed for the original <tt>std::common_type</tt> specification. 
-At this time the <tt>decltype</tt> rules had a similar asymmetric effect when comparing
-</p>
-<blockquote><p>
-<tt>std::common_type&lt;const int, const int&gt;::type</tt> (equal to '<tt>int</tt>' at this time)
-</p></blockquote>
-<p>
-with:
-</p>
-<blockquote><p>
-<tt>std::common_type&lt;const int&gt;::type</tt> (equal to '<tt>const int</tt>')
-</p></blockquote>
-<p>
-and I wondered whether the unary form shouldn't also perform the same "decay" as the n-ary form.
-<p/>
-This problem makes me think that the current resolution proposal might not be ideal and I expect
-differences in implementations (for those who consider to apply this proposed resolution already). I
-see at least three reasonable options:
-</p>
-<ol>
-<li><p>Accept the current wording suggestion for LWG 2141 as it is and explain that to users.</p></li>
-<li><p>Keep <tt>std::common_type</tt> as currently specified in the Standard and tell users to use
-<tt>std::decay</tt> where needed. Also fix other places in the library, e.g. the comparison
-functions of <tt>std::unique_ptr</tt> or a most of the time library functions.</p></li>
-<li><p>Apply <tt>std::decay</tt> also in the unary specialization of <tt>std::common_type</tt> with
-the effect that <tt>std::common_type&lt;const int&amp;&gt;::type</tt> returns <tt>int</tt>.</p></li>
-</ol>
-
-<p><i>[2012-10-11 Marc Glisse comments]</i></p>
-
-<p>
-If we are going with decay everywhere, I wonder whether we should also decay in the 2-argument version <em>before</em> 
-and not only <em>after</em>. So if I specialize <tt>common_type&lt;mytype, double&gt;</tt>, 
-<tt>common_type&lt;const mytype, volatile double&amp;&gt;</tt> would automatically work.
-</p>
-
-<p><i>[2012-10-11 Daniel provides wording for bullet 3 of his list:]</i></p>
-
-
-<ol style="list-style-type:upper-alpha">
-<li><p>Change 20.10.7.6 [meta.trans.other] p3 as indicated:</p>
-<blockquote><pre>
-template &lt;class T&gt;
-struct common_type&lt;T&gt; {
-  typedef <ins>typename decay&lt;</ins>T<ins>&gt;::type</ins> type;
-};
-
-template &lt;class T, class U&gt;
-struct common_type&lt;T, U&gt; {
-  typedef <ins>typename decay&lt;</ins>decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;())<ins>&gt;::type</ins> type;
-};
-</pre></blockquote>
-</li>
-</ol>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-Want to carefully consider the effect of <tt>decay</tt> vs. <tt>remove_reference</tt> with respect
-to constness before adopting, although this proposed resolution stands for review in Bristol.
-</p>
-
-<p><i>[2013-04-18, Bristol meeting]</i></p>
-
-
-<p>Previous wording:</p>
-
-<blockquote class="note"> 
-<p>This wording is relative to N3376.</p>
-
-<ol><li><p>In 20.10.7.6 [meta.trans.other] p3, change the <tt>common_type</tt> definition to</p>
-<blockquote><pre>
-template &lt;class T, class U&gt;
-struct common_type&lt;T, U&gt; {
-  typedef <ins>typename decay&lt;</ins>decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;())<ins>&gt;::type</ins> type;
-};
-</pre></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-<p>Move to Ready</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Change 20.10.7.6 [meta.trans.other] p3 as indicated:</p>
-<blockquote><pre>
-template &lt;class T&gt;
-struct common_type&lt;T&gt; {
-  typedef <ins>typename decay&lt;</ins>T<ins>&gt;::type</ins> type;
-};
-
-template &lt;class T, class U&gt;
-struct common_type&lt;T, U&gt; {
-  typedef <ins>typename decay&lt;</ins>decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;())<ins>&gt;::type</ins> type;
-};
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2142"></a>2142. <tt>packaged_task::operator()</tt> synchronization too broad?</h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-03-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to 30.6.9.1 [futures.task.members] p.18:
-</p>
-<blockquote><p>
-[A] successful call to [<tt>packaged_task::</tt>]<tt>operator()</tt> <em>synchronizes with</em> 
-a call to any member function of a <tt>future</tt> or <tt>shared_future</tt> object that shares 
-the shared state of <tt>*this</tt>.
-</p></blockquote>
-<p>
-This requires that the call to <tt>operator()</tt> synchronizes with calls to <tt>future::wait_for</tt>, 
-<tt>future::wait_until</tt>, <tt>shared_future::wait_for</tt>, and <tt>shared_future::wait_until</tt>, 
-even when these functions return because of a timeout.
-</p>
-
-<p><i>[2012, Portland: move to Open]</i></p>
-
-<p>
-If it said "a successful return from" (or "a return from" to cover exceptions) the problem would be more obvious.
-</p>
-<p>
-Detlef: will ask Anthony Williams to draft some wording.
-</p>
-<p>
-Moved to open (Anthony drafted to draft)
-</p>
-
-<p><i>[2013-09, Chicago: move to Ready]</i></p>
-
-
-<p>
-Anthony's conclusion is that the offending paragraph is not needed. Already included in the statement 
-that the state is made ready.
-<p/>
-Recommendation: Remove 30.6.9.1 [futures.task.members] p18 (the synchronization clause). Redundant because of 
-30.6.4 [futures.state] p9.
-</p>
-<p>
-Moved to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Remove 30.6.9.1 [futures.task.members] p18 as indicated:</p>
-
-<blockquote><pre>
-void operator()(ArgTypes... args);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-18- <i>Synchronization:</i> a successful call to <tt>operator()</tt> synchronizes with (1.10) a call to any member function
-of a <tt>future</tt> or <tt>shared_future</tt> object that shares the shared state of <tt>*this</tt>. The completion of
-the invocation of the stored task and the storage of the result (whether normal or exceptional) into
-the shared state synchronizes with (1.10) the successful return from any member function that detects
-that the state is set to ready. [<i>Note:</i> <tt>operator()</tt> synchronizes and serializes with other functions
-through the shared state. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2143"></a>2143. <tt>ios_base::xalloc</tt> should be thread-safe</h3>
-<p><b>Section:</b> 27.5.3 [ios.base] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2012-03-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ios.base">issues</a> in [ios.base].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The static function <tt>ios_base::xalloc()</tt> could be called from multiple threads and is not covered by 
-17.6.4.10 [res.on.objects] and 17.6.5.9 [res.on.data.races]. Adding a thread-safety requirement 
-should not impose a significant burden on implementations, as the function can be easily implemented with 
-hopefully lock-free atomics.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Unanimous.
-<p/>
-Resolution: move tentatively ready. (Inform Bill about this issue.)  
-</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>
-Apply to Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>In 27.5.3.5 [ios.base.storage] add a new paragraph after paragraph 1:</p>
-
-<blockquote><pre>
-static int xalloc();
-</pre><blockquote>
-<p>
--1- <i>Returns</i>: <tt>index ++</tt>.
-<p/>
-<ins>-?- <i>Remarks</i>: Concurrent access to this function by multiple threads shall not result in a data 
-race (1.10 [intro.multithread]).</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2144"></a>2144. Missing <tt>noexcept</tt> specification in <tt>type_index</tt></h3>
-<p><b>Section:</b> 20.14 [type.index] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-03-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#type.index">issues</a> in [type.index].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The class type <tt>type_index</tt> is a thin wrapper of <tt>type_info</tt> to
-adapt it as a valid associative container element. Similar to <tt>type_info</tt>, 
-all member functions have an effective <tt>noexcept(true)</tt> specification, with the 
-exception of <tt>hash_code()</tt> and <tt>name()</tt>. The actual effects of these
-functions is a direct call to <tt>type_info</tt>'s <tt>hash_code()</tt> and <tt>name</tt> 
-function, but according to 18.7 [support.rtti] these are both <tt>noexcept</tt>
-functions, so there is no reason for not declaring them as <tt>noexcept</tt>, too. In fact,
-one of the suggested changes of the original proposing paper 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2530.html">N2530</a>
-specifically was to ensure that <tt>type_info</tt> would get a <tt>hash_code()</tt>
-function that guarantees not to throw exceptions (during that time the <tt>hash</tt>
-requirements did not allow to exit with an exception). From this we can conclude that
-<tt>type_index::hash_code()</tt> was intended to be nothrow.
-<p/>
-It seems both consistent and technically simply to require these functions to be <tt>noexcept</tt>.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Modify the class <tt>type_index</tt> synopsis, 20.14.2 [type.index.overview] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  class type_index {
-  public:
-    type_index(const type_info&amp; rhs) noexcept;
-    bool operator==(const type_index&amp; rhs) const noexcept;
-    bool operator!=(const type_index&amp; rhs) const noexcept;
-    bool operator&lt; (const type_index&amp; rhs) const noexcept;
-    bool operator&lt;= (const type_index&amp; rhs) const noexcept;
-    bool operator&gt; (const type_index&amp; rhs) const noexcept;
-    bool operator&gt;= (const type_index&amp; rhs) const noexcept;
-    size_t hash_code() const <ins>noexcept</ins>;
-    const char* name() const <ins>noexcept</ins>;
-  private:
-    const type_info* target; <i>// exposition only</i>
-    <i>// Note that the use of a pointer here, rather than a reference,</i>
-    <i>// means that the default copy&#47;move constructor and assignment</i>
-    <i>// operators will be provided and work as expected.</i>
-  };
-}
-</pre></blockquote>
-</li>
-</ol>
-
-<ol>
-<li><p>Modify the prototype definitions in 20.14.3 [type.index.members] as indicated:</p>
-
-<blockquote><pre>
-size_t hash_code() const <ins>noexcept</ins>;
-</pre><blockquote>
-<p>
--8- <i>Returns</i>: <tt>target->hash_code()</tt>
-</p>
-</blockquote>
-<pre>
-const char* name() const <ins>noexcept</ins>;
-</pre><blockquote>
-<p>
--9- <i>Returns</i>: <tt>target->name()</tt>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2145"></a>2145. <tt>error_category</tt> default constructor</h3>
-<p><b>Section:</b> 19.5.1 [syserr.errcat] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2012-03-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#syserr.errcat">issues</a> in [syserr.errcat].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Should <tt>error_category</tt> have a default constructor?
-<p/>
-If you look at the synopsis in 19.5.1.1 [syserr.errcat.overview], it appears the answer is no. There 
-is no default constructor declared and there is another constructor declared (which should inhibit a default 
-constructor).
-<p/>
-However in paragraph 1 of the same section, descriptive text says:
-</p>
-<blockquote><p>
-Classes may be derived from <tt>error_category</tt> to support categories of errors in addition to those 
-defined in this International Standard.
-</p></blockquote>
-<p>
-How shall classes derived from <tt>error_category</tt> construct their base?
-<p/>
-Jonathan Wakely: In <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2066.html">N2066</a> 
-<tt>error_category</tt> was default-constructible. That is still the case in 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2241.html">N2241</a>, because no other 
-constructor is declared. Then later <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2422.htm">N2422</a> 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2422.htm#Issue6">issue 6</a>) declares 
-the copy constructor as deleted, but doesn't add a default constructor, causing it to be no longer
-default-constructible. That looks like an oversight to me, and I think there should be a public default 
-constructor.
-<p/>
-Daniel: A default-constructor indeed should be provided to allow user-derived classes as described by the
-standard. I suggest this one to be both <tt>noexcept</tt> and <tt>constexpr</tt>. The latter allows
-user-derived non-abstract classes to take advantage of the special <em>constant initialization</em> rule
-of 3.6.2 [basic.start.init] p2 b2 for objects with static (or thread) storage duration in namespace 
-scope. Note that a <tt>constexpr</tt> constructor is feasible here, even though there exists a non-trivial
-destructor and even though <tt>error_category</tt> is not a literal type (see <tt>std::mutex</tt> for a similar
-design choice).
-<p/>
-In addition to that the proposed resolution fixes another minor glitch: According to 17.5.2.2 [functions.within.classes]
-virtual destructors require a semantics description. 
-<p/>
-Alberto Ganesh Barbati: I would suggest to remove <tt>=default</tt> from the constructor instead. 
-Please consider that defaulting a constructor or destructor may actually define them as deleted under certain 
-conditions (see 12.1 [class.ctor]&#47;5 and 12.4 [class.dtor]&#47;5). Removing <tt>=default</tt> 
-is easier than providing wording to ensures that such conditions do not occur.
-</p>
-
-<p><i>[2012-10 Portland: move to Ready]</i></p>
-
-<p>
-The issue is real and the resolution looks good.
-</p>
-
-<p>
-Are there similar issues elsewhere in this clause?
-</p>
-
-<p>
-Potential to add <tt>constexpr</tt> to more constructors, but clearly a separable issue.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Modify the class <tt>error_category</tt> synopsis, 19.5.1.1 [syserr.errcat.overview] as indicated:
-<em>[Drafting note: According to the general 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3279.pdf"><tt>noexcept</tt> library guidelines</a> 
-destructors should not have any explicit exception specification. This destructor was overlooked during the paper
-analysis &mdash; end note]</em>
-</p>
-
-<blockquote><pre>
-namespace std {
-  class error_category {
-  public:
-    <ins>constexpr error_category() noexcept;</ins>
-    virtual ~error_category() <del>noexcept</del>;
-    error_category(const error_category&amp;) = delete;
-    error_category&amp; operator=(const error_category&amp;) = delete;
-    virtual const char* name() const noexcept = 0;
-    virtual error_condition default_error_condition(int ev) const noexcept;
-    virtual bool equivalent(int code, const error_condition&amp; condition) const noexcept;
-    virtual bool equivalent(const error_code&amp; code, int condition) const noexcept;
-    virtual string message(int ev) const = 0;
-    bool operator==(const error_category&amp; rhs) const noexcept;
-    bool operator!=(const error_category&amp; rhs) const noexcept;
-    bool operator&lt;(const error_category&amp; rhs) const noexcept;
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Before 19.5.1.2 [syserr.errcat.virtuals] p1 insert a new prototype description as indicated:</p>
-
-<blockquote><pre>
-<ins>virtual ~error_category();</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Effects</i>: Destroys an object of class <tt>error_category</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li><p>Before 19.5.1.3 [syserr.errcat.nonvirtuals] p1 insert a new prototype description as indicated:</p>
-
-<blockquote><pre>
-<ins>constexpr error_category() noexcept;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Effects</i>: Constructs an object of class <tt>error_category</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2147"></a>2147. Unclear hint type in <tt>Allocator</tt>'s <tt>allocate</tt> function</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-03-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to Table 28 &mdash; "Allocator requirements", the expression
-</p>
-<blockquote><pre>
-a.allocate(n, u)
-</pre></blockquote>
-<p>
-expects as second argument a value <tt>u</tt> that is described in Table 27 as:
-</p>
-<blockquote><p>
-a value of type <tt>YY::const_pointer</tt> obtained by calling <tt>YY::allocate</tt>, or else <tt>nullptr</tt>.
-</p></blockquote>
-<p>
-This description leaves it open, whether or whether not a value of type <tt>YY::const_void_pointer</tt> is
-valid or not. The corresponding wording in C++03 is nearly the same, but in C++03 there did not exist the concept of
-a general <tt>void_pointer</tt> for allocators. There is some evidence for support of void pointers because
-the general <tt>allocator_traits</tt> template declares
-</p>
-<blockquote><pre>
-static pointer allocate(Alloc&amp; a, size_type n, const_void_pointer hint);
-</pre></blockquote>
-<p>
-and the corresponding function for <tt>std::allocator&lt;T&gt;</tt> is declared as: 
-</p>
-<blockquote><pre>
-pointer allocate(size_type, allocator&lt;void&gt;::const_pointer hint = 0);
-</pre></blockquote>
-<p>
-As an additional minor wording glitch (especially when comparing with the <tt>NullablePointer</tt> requirements imposed on
-<tt>const_pointer</tt> and <tt>const_void_pointer</tt>), the wording seems to exclude lvalues of type
-<tt>std::nullptr_t</tt>, which looks like an unwanted artifact to me.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Ready 
-]</i></p>
-
-
-<p>
-No strong feeling that this is a big issue, but consensus that the proposed resolution is strictly
-better than the current wording, so move to Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change Table 27 &mdash; "Descriptive variable definitions" in 17.6.3.5 [allocator.requirements]:</p>
-
-<table border="1">
-<caption>Table 27 &mdash; Descriptive variable definitions</caption>
-<tr>
-<th>Variable</th>
-<th>Definition</th>
-</tr> 
-
-<tr>
-<td>
-<tt>u</tt>
-</td>
-<td>
-a value of type <del><tt>YY::const_pointer</tt> obtained by calling <tt>YY::allocate</tt>, or else 
-<tt>nullptr</tt></del><ins><tt>XX::const_void_pointer</tt> obtained by conversion from a result 
-value of <tt>YY::allocate</tt>, or else a value of type (possibly const) <tt>std::nullptr_t</tt></ins>.
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2148"></a>2148. Hashing enums should be supported directly by <tt>std::hash</tt></h3>
-<p><b>Section:</b> 20.9.13 [unord.hash] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Ville Voutilainen <b>Opened:</b> 2012-04-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.hash">active issues</a> in [unord.hash].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.hash">issues</a> in [unord.hash].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3333.html">paper</a> 
-proposes various hashing improvements. What it doesn't mention is hashing of
-enums; enums are integral types, and users expect them to have built-in hashing
-support, rather than having to convert enums to ints for uses with
-unordered containers and other uses of hashes. Daniel Kr&uuml;gler explains in c++std-lib-32412
-that this is not achievable with a SFINAEd hash specialization because it would require
-a partial specialization with a type parameter and a non-type parameter with a
-default argument, which is currently not allowed, and hence the fixes in N3333 should be
-adopted instead.
-</p>
-
-<p><i>[2012-10 Portland: Move to Open]</i></p>
-
-<p>
-We agree this is a real issue that should be resolved, by specifying such a hash.
-</p>
-
-<p>
-It is not clear that we should specify this as calling hash on the <tt>underlying_type</tt>,
-or whether that is overspecification and we merely require that the hash be supplied.
-</p>
-
-<p>
-STL already has shipped an implementation, and is keen to provide wording.
-</p>
-
-<p><i>[
-2013-04-14 STL provides rationale and improved wording
-]</i></p>
-
-
-<p>Rationale:</p>
-<p>This can be achieved by inserting a very small tweak to the Standardese. We merely have to require that <tt>hash&lt;Key&gt;</tt> 
-be valid when <tt>Key</tt> is an "enumeration type" (which includes both scoped and unscoped enums). This permits, but does 
-not require, <tt>hash&lt;Enum&gt;</tt> to behave identically to <tt>hash&lt;underlying_type&lt;Enum&gt;::type&gt;</tt>, following 
-existing precedent &mdash; note that when <tt>unsigned int</tt> and <tt>unsigned long</tt> are the same size, 
-<tt>hash&lt;unsigned int&gt;</tt> is permitted-but-not-required to behave identically to <tt>hash&lt;unsigned long&gt;</tt>.
-<p/>
-This proposed resolution doesn't specify anything else about the primary template, allowing implementations to do 
-whatever they want for non-enums: <tt>static_assert</tt> nicely, explode horribly at compiletime or runtime, etc.
-<p/>
-While we're in the neighborhood, this proposed resolution contains an editorial fix. The 20.9 [function.objects]
-synopsis says "base template", which doesn't appear anywhere else in the Standard, and could confuse users into 
-thinking that they need to derive from it. The proper phrase is "primary template".
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3485.pdf">N3485</a>.</p>
-
-<ol>
-<li><p>In 20.9 [function.objects], header functional synopsis, edit as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  <i>// 20.8.12, hash function <del>base</del><ins>primary</ins> template:</i>
-  template &lt;class T&gt; struct hash;
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li><p>In 20.9.13 [unord.hash]/1 edit as indicated:</p>
-
-<blockquote><p>
--1- The unordered associative containers defined in 23.5 [unord] use specializations of the class template 
-<tt>hash</tt> as the default <tt>hash</tt> function. For all object types <tt>Key</tt> for which there exists a 
-specialization <tt>hash&lt;Key&gt;</tt><ins>, and for all enumeration types (7.2 [dcl.enum]) Key</ins>, 
-the instantiation <tt>hash&lt;Key&gt;</tt> shall: [&hellip;]
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2149"></a>2149. Concerns about 20.8/5</h3>
-<p><b>Section:</b> 20.9 [function.objects] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Scott Meyers <b>Opened:</b> 2012-02-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#function.objects">issues</a> in [function.objects].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-20.9 [function.objects] p5 says:
-</p>
-<blockquote><p>
-To enable adaptors and other components to manipulate function objects that take one or two arguments
-it is required that the function objects correspondingly provide typedefs <tt>argument_type</tt> and 
-<tt>result_type</tt> for function objects that take one argument and <tt>first_argument_type</tt>, 
-<tt>second_argument_type</tt>, and <tt>result_type</tt> for function objects that take two arguments.
-</p></blockquote>
-<p>
-I have two concerns about this paragraph.  First, the wording appears to prescribe a requirement for all 
-function objects in valid C++ programs, but it seems unlikely that that is the intent.  As such, the scope 
-of the requirement is unclear.  For example, there is no mention of these typedefs in the specification for 
-closures (5.1.2), and Daniel Kr&uuml;gler has explained in the thread at 
-<a href="http://tinyurl.com/856plkn">http://tinyurl.com/856plkn</a> that conforming implementations can 
-detect the difference between closures with and without these typedefs.  (Neither gcc 4.6 nor VC10 appear 
-to define typedefs such as <tt>result_type</tt> for closure types. I have not tested other compilers.)
-<p/>
-Second, the requirement appears to be unimplementable in some cases, notably for function objects returned 
-from <tt>std::bind</tt>, as Howard Hinnant explains in the thread at <a href="http://tinyurl.com/6q5bos4">http://tinyurl.com/6q5bos4</a>.
-<p/>
-From what I can tell, the standard already defines which adaptability typedefs must be provided by various 
-kinds of function objects in the specifications for those objects.  Examples include the function objects 
-specified in 20.9.4 [refwrap]-20.9.9 [negators]. I therefore suggest that 
-20.9 [function.objects]&#47;5 simply be removed from the standard. I don't think it adds anything 
-except opportunities for confusion.
-</p>
-
-<p><i>[2012-10 Portland: Move to Open]</i></p>
-
-<p>
-This wording caused confusion earlier in the week when reviewing Stefan's paper on <tt>greater&lt;></tt>.
-</p>
-
-<p>
-This phrasing sounds normative, but is actually descriptive but uses unfortunate wording.
-</p>
-
-<p>
-The main reason this wording exists is to document the protocol required to support the legacy binders
-in Annex D.
-</p>
-
-<p>
-Stefan points out that <tt>unary_negate</tt> and <tt>binary_negate</tt> have not been deprecated and rely
-on this.  He plans a paper to remove this dependency.
-</p>
-
-<p>
-Consensus that this wording is inadequate, confusing, and probably should be removed.  However, that
-leaves a big hole in the specification for the legacy binders, that needs filling.
-</p>
-
-<p>
-While not opposed to striking this paragraph, we will need the additional wording to fix the openning
-hole before this issue can move forward.
-</p>
-
-<p><i>[
-2013-04-14 STL provides rationale
-]</i></p>
-
-
-<p>Rationale:</p>
-
-<p>I've concluded that Scott's original proposed resolution was correct and complete. There are two sides to this 
-story: the producers and the consumers of these typedefs.</p>
-
-<p><em>Producers</em>: As Scott noted, the Standard clearly documents which function objects must provide these 
-typedefs. Some function objects must provide them unconditionally (e.g. <tt>plus&lt;T&gt;</tt> (for <tt>T != void</tt>), 
-20.9.5 [arithmetic.operations]/1), some conditionally (e.g. <tt>reference_wrapper&lt;T&gt;</tt>, 
-20.9.4 [refwrap]/2-4), and some don't have to provide them at all (e.g. lambdas, 5.1.2 [expr.prim.lambda]). 
-These requirements are clear, so we shouldn't change them or even add informative notes. Furthermore, because these 
-typedefs aren't needed in the C++11 world with <tt>decltype</tt>/perfect forwarding/etc., we shouldn't add more 
-requirements to provide them.</p>
-
-<p><em>Consumers</em>: This is what we were concerned about at Portland. However, the consumers also clearly document 
-their requirements in the existing text. For example, <tt>reference_wrapper&lt;T&gt;</tt> is also a conditional consumer, 
-and 20.9.4 [refwrap] explains what typedefs it's looking for. We were especially concerned about the old negators 
-and the deprecated binders, but they're okay too. 20.9.9 [negators] clearly says that 
-<tt>unary_negate&lt;Predicate&gt;</tt> requires <tt>Predicate::argument_type</tt> to be a type, and 
-<tt>binary_negate&lt;Predicate&gt;</tt> requires <tt>Predicate::first_argument_type</tt> and <tt>Predicate::second_argument_type</tt> 
-to be types. (<tt>unary_negate</tt>/<tt>binary_negate</tt> provide <tt>result_type</tt> but they don't consume it.) 
-X [depr.lib.binders] behaves the same way with <tt>Fn::first_argument_type</tt>, <tt>Fn::second_argument_type</tt>, 
-and <tt>Fn::result_type</tt>. No additional wording is necessary.</p>
-
-<p>A careful reading of 20.9 [function.objects]/5 reveals that it wasn't talking about anything beyond the mere 
-existence of the mentioned typedefs &mdash; for example, it didn't mention that the function object's return type should be 
-<tt>result_type</tt>, or even convertible to <tt>result_type</tt>. As the producers and consumers are certainly talking about 
-the existence of the typedefs (in addition to clearly implying semantic requirements), we lose nothing by deleting the 
-unnecessary paragraph.</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-<p>Previous wording:</p>
-
-<blockquote class="note"> 
-<p>Remove 20.9 [function.objects] p5:</p>
-
-<blockquote><p><del>
-To enable adaptors and other components to manipulate function objects that take one or two arguments
-it is required that the function objects correspondingly provide typedefs <tt>argument_type</tt> and 
-<tt>result_type</tt> for function objects that take one argument and <tt>first_argument_type</tt>, 
-<tt>second_argument_type</tt>, and <tt>result_type</tt> for function objects that take two arguments.
-</del></p></blockquote>
-</blockquote>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3485.pdf">N3485</a>.</p>
-
-<p>Edit 20.9 [function.objects] p5:</p>
-
-<blockquote><p>
-<ins>[<i>Note:</i></ins>To enable adaptors and other components to manipulate function objects that take one or two arguments
-<del>it is required that the function objects</del><ins>many of the function objects in this clause</ins> correspondingly provide 
-typedefs <tt>argument_type</tt> and <tt>result_type</tt> for function objects that take one argument and <tt>first_argument_type</tt>, 
-<tt>second_argument_type</tt>, and <tt>result_type</tt> for function objects that take two arguments.<ins>&mdash; <i>end note</i>]</ins>
-</p></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2150"></a>2150. Unclear specification of <tt>find_end</tt></h3>
-<p><b>Section:</b> 25.2.6 [alg.find.end] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Andrew Koenig <b>Opened:</b> 2012-03-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-25.2.6 [alg.find.end] describes the behavior of find_end as returning:
-</p>
-<blockquote><p>
-The last iterator <tt>i</tt> in the range <tt>[first1,last1 - (last2 - first2))</tt> such that for any 
-nonnegative integer <tt>n &lt; (last2 - first2)</tt>, the following corresponding conditions hold: 
-<tt>*(i + n) == *(first2 + n), pred(*(i + n), *(first2 + n)) != false</tt>.
-</p></blockquote>
-<p>
-Does "for any" here mean "for every" or "there exists a"?  I think it means the former, but it could be 
-interpreted either way.
-<p/>
-Daniel: The same problem exists for the following specifications from Clause 25 [algorithms]:
-</p>
-<ol>
-<li>25.2.13 [alg.search] p2 and p6</li>
-<li>25.3.10 [alg.reverse] p4</li>
-<li>25.3.13 [alg.partitions] p5 and p9</li>
-<li>25.4 [alg.sorting] p5</li>
-<li>25.4.2 [alg.nth.element] p1</li>
-<li>25.4.3.1 [lower.bound] p2</li>
-<li>25.4.3.2 [upper.bound] p2</li>
-<li>25.4.7 [alg.min.max] p21 and p23</li>
-</ol>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Unanimous agreement on the wording.
-<p/>
-Resolution: move to tentatively ready 
-</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>
-Apply to Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li>
-<p>Change 25.2.6 [alg.find.end] p2 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-ForwardIterator1 
-find_end(ForwardIterator1 first1, ForwardIterator1 last1,
-         ForwardIterator2 first2, ForwardIterator2 last2);
-template&lt;class ForwardIterator1, class ForwardIterator2,
-         class BinaryPredicate&gt;
-ForwardIterator1
-find_end(ForwardIterator1 first1, ForwardIterator1 last1,
-         ForwardIterator2 first2, ForwardIterator2 last2,
-         BinaryPredicate pred);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--2- <i>Returns</i>: The last iterator <tt>i</tt> in the range <tt>[first1,last1 - (last2 - first2))</tt> such 
-that for <del>any</del><ins>every</ins> nonnegative integer <tt>n &lt; (last2 - first2)</tt>, the following 
-corresponding conditions hold: <tt>*(i + n) == *(first2 + n), pred(*(i + n), *(first2 + n)) != false</tt>.
-Returns <tt>last1</tt> if <tt>[first2,last2)</tt> is empty or if no such iterator is found.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.2.13 [alg.search] p2 and p6 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator1, class ForwardIterator2&gt;
-ForwardIterator1
-search(ForwardIterator1 first1, ForwardIterator1 last1,
-       ForwardIterator2 first2, ForwardIterator2 last2);
-template&lt;class ForwardIterator1, class ForwardIterator2,
-         class BinaryPredicate&gt;
-ForwardIterator1
-search(ForwardIterator1 first1, ForwardIterator1 last1,
-       ForwardIterator2 first2, ForwardIterator2 last2,
-       BinaryPredicate pred);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--2- <i>Returns</i>: The first iterator <tt>i</tt> in the range <tt>[first1,last1 - (last2-first2))</tt> 
-such that for <del>any</del><ins>every</ins> nonnegative integer <tt>n</tt> less than <tt>last2 - first2</tt> 
-the following corresponding conditions hold: <tt>*(i + n) == *(first2 + n), pred(*(i + n), *(first2 + n)) != false</tt>. 
-Returns <tt>first1</tt> if <tt>[first2,last2)</tt> is empty, otherwise returns <tt>last1</tt> if no such iterator 
-is found.
-</p></blockquote></blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote><pre>
-template&lt;class ForwardIterator, class Size, class T&gt;
-ForwardIterator
-search_n(ForwardIterator first, ForwardIterator last, Size count,
-         const T&amp; value);
-template&lt;class ForwardIterator, class Size, class T,
-         class BinaryPredicate&gt;
-ForwardIterator
-search_n(ForwardIterator first, ForwardIterator last, Size count,
-         const T&amp; value, BinaryPredicate pred);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--6- <i>Returns</i>: The first iterator <tt>i</tt> in the range <tt>[first,last-count)</tt> such that 
-for <del>any</del><ins>every</ins> non-negative integer <tt>n</tt> less than <tt>count</tt> the following 
-corresponding conditions hold: <tt>*(i + n) == value, pred(*(i + n),value) != false</tt>. Returns <tt>last</tt> 
-if no such iterator is found.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.3.10 [alg.reverse] p4 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class BidirectionalIterator, class OutputIterator&gt;
-OutputIterator
-reverse_copy(BidirectionalIterator first,
-             BidirectionalIterator last, OutputIterator result);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--4- <i>Effects</i>: Copies the range <tt>[first,last)</tt> to the range <tt>[result,result+(last-first))</tt> 
-such that for <del>any</del><ins>every</ins> non-negative integer <tt>i &lt; (last - first)</tt> the following 
-assignment takes place: <tt>*(result + (last - first) - i) = *(first + i)</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.3.13 [alg.partitions] p5 and p9 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator, class Predicate&gt;
-ForwardIterator
-partition(ForwardIterator first,
-          ForwardIterator last, Predicate pred);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--5- <i>Returns</i>: An iterator <tt>i</tt> such that for <del>any</del><ins>every</ins> iterator <tt>j</tt> 
-in the range <tt>[first,i) pred(*j) != false</tt>, and for <del>any</del><ins>every</ins> iterator <tt>k</tt> 
-in the range <tt>[i,last), pred(*k) == false</tt>.
-</p></blockquote></blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote><pre>
-template&lt;class BidirectionalIterator, class Predicate&gt;
-BidirectionalIterator
-stable_partition(BidirectionalIterator first,
-                 BidirectionalIterator last, Predicate pred);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--9- <i>Returns</i>: An iterator <tt>i</tt> such that for <del>any</del><ins>every</ins> iterator <tt>j</tt> 
-in the range <tt>[first,i), pred(*j) != false</tt>, and for <del>any</del><ins>every</ins> iterator <tt>k</tt> 
-in the range <tt>[i,last), pred(*k) == false</tt>. The relative order of the elements in both groups is preserved.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.4 [alg.sorting] p5 as indicated:</p>
-
-<blockquote><p>
--5- A sequence is sorted with respect to a comparator <tt>comp</tt> if for <del>any</del><ins>every</ins> iterator 
-<tt>i</tt> pointing to the sequence and <del>any</del><ins>every</ins> non-negative integer <tt>n</tt> such that 
-<tt>i + n</tt> is a valid iterator pointing to an element of the sequence, <tt>comp(*(i + n), *i) == false</tt>.
-</p></blockquote>
-</li>
-
-<li>
-<p>Change 25.4.2 [alg.nth.element] p1 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class RandomAccessIterator&gt;
-void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                 RandomAccessIterator last);
-template&lt;class RandomAccessIterator, class Compare&gt;
-void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                 RandomAccessIterator last, Compare comp);
-</pre><blockquote><p>
--1- After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt> is the element that would 
-be in that position if the whole range were sorted. Also for <del>any</del><ins>every</ins> iterator <tt>i</tt> 
-in the range <tt>[first,nth)</tt> and <del>any</del><ins>every</ins> iterator <tt>j</tt> in the range 
-<tt>[nth,last)</tt> it holds that: <tt>!(*i &gt; *j)</tt> or <tt>comp(*j, *i) == false</tt>. 
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.4.3.1 [lower.bound] p2 as indicated:</p>
-
-<blockquote><pre>
-template&lt;lass ForwardIterator, class T&gt;
-ForwardIterator
-lower_bound(ForwardIterator first, ForwardIterator last,
-            const T&amp; value);
-template&lt;class ForwardIterator, class T, class Compare&gt;
-ForwardIterator
-lower_bound(ForwardIterator first, ForwardIterator last,
-            const T&amp; value, Compare comp);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--2- <i>Returns</i>: The furthermost iterator <tt>i</tt> in the range <tt>[first,last]</tt> such that for 
-<del>any</del><ins>every</ins> iterator <tt>j</tt> in the range <tt>[first,i)</tt> the following corresponding 
-conditions hold: <tt>*j &lt; value</tt> or <tt>comp(*j, value) != false</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.4.3.2 [upper.bound] p2 as indicated:</p>
-
-<blockquote><pre>
-template&lt;lass ForwardIterator, class T&gt;
-ForwardIterator
-upper_bound(ForwardIterator first, ForwardIterator last,
-            const T&amp; value);
-template&lt;class ForwardIterator, class T, class Compare&gt;
-ForwardIterator
-upper_bound(ForwardIterator first, ForwardIterator last,
-            const T&amp; value, Compare comp);
-</pre><blockquote><p>
-[&hellip;]
-<p/>
--2- <i>Returns</i>: The furthermost iterator <tt>i</tt> in the range <tt>[first,last]</tt> such that for 
-<del>any</del><ins>every</ins> iterator <tt>j</tt> in the range <tt>[first,i)</tt> the following corresponding 
-conditions hold: <tt>!(value &lt; *j)</tt> or <tt>comp(value, *j) == false</tt>.
-</p></blockquote></blockquote>
-</li>
-
-<li>
-<p>Change 25.4.7 [alg.min.max] p21 and p23 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator&gt;
-ForwardIterator min_element(ForwardIterator first, ForwardIterator last);
-template&lt;class ForwardIterator, class Compare&gt;
-ForwardIterator min_element(ForwardIterator first, ForwardIterator last,
-                            Compare comp);
-</pre><blockquote><p>
--21- <i>Returns</i>: The first iterator <tt>i</tt> in the range <tt>[first,last)</tt> such that for 
-<del>any</del><ins>every</ins> iterator <tt>j</tt> in the range <tt>[first,last)</tt> the following 
-corresponding conditions hold: <tt>!(*j &lt; *i)</tt> or <tt>comp(*j, *i) == false</tt>. Returns 
-<tt>last</tt> if <tt>first == last</tt>.
-</p></blockquote></blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote><pre>
-template&lt;class ForwardIterator&gt;
-ForwardIterator max_element(ForwardIterator first, ForwardIterator last);
-template&lt;class ForwardIterator, class Compare&gt;
-ForwardIterator max_element(ForwardIterator first, ForwardIterator last,
-                            Compare comp);
-</pre><blockquote><p>
--23- <i>Returns</i>: The first iterator <tt>i</tt> in the range <tt>[first,last)</tt> such that for 
-<del>any</del><ins>every</ins> iterator <tt>j</tt> in the range <tt>[first,last)</tt> the following 
-corresponding conditions hold: <tt>!(*i &lt; *j)</tt> or <tt>comp(*i, *j) == false</tt>. Returns 
-<tt>last</tt> if <tt>first == last</tt>.
-</p></blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2159"></a>2159. <tt>atomic_flag</tt> initialization</h3>
-<p><b>Section:</b> 29.7 [atomics.flag] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Alberto Ganesh Barbati <b>Opened:</b> 2012-05-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#atomics.flag">issues</a> in [atomics.flag].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-29.7 [atomics.flag]&#47;4 describes the <tt>ATOMIC_FLAG_INIT</tt>, but it's not quite clear about a 
-couple of points:
-</p>
-<ol>
-<li><p>
-it's said that <tt>ATOMIC_FLAG_INIT</tt> "can be used to initialize an object of type <tt>atomic_flag</tt>" 
-and the following example:
-</p>
-<blockquote><pre>
-std::atomic_flag guard = ATOMIC_FLAG_INIT;
-</pre></blockquote>
-<p>
-is presented. It's not clear whether the macro can also be used in the other initialization contexts:
-</p>
-<blockquote><pre>
-std::atomic_flag guard ATOMIC_FLAG_INIT; 
-std::atomic_flag guard {ATOMIC_FLAG_INIT};
-
-struct A { std::atomic_flag flag; A(); };
-A::A() : flag (ATOMIC_FLAG_INIT); 
-A::A() : flag {ATOMIC_FLAG_INIT};
-</pre></blockquote>
-<p>
-Please also note that examples are non-normative, according to the ISO directives, meaning that the wording 
-presents no normative way to use the macro.
-</p>
-</li>
-
-<li><p>
-it's said that "It is unspecified whether an uninitialized <tt>atomic_flag</tt> object has an initial state 
-of set or clear.". I believe the use of "uninitialized" is inappropriate. First of all, if an object is 
-uninitialized it is obvious that we cannot assert anything about its state. Secondly, it doesn't address the 
-following cases:
-</p>
-<blockquote><pre>
-std::atomic_flag a; <i>// object is "initialized" by trivial default constructor</i>
-std::atomic_flag a {}; <i>// object is value-initialized</i>
-static std::atomic_flag a; <i>// object is zero-initialized</i>
-</pre></blockquote>
-<p>
-strictly speaking a trivial constructor "initializes" the object, although it doesn't actually initialize the 
-sub-objects.
-</p></li>
-
-<li><p>it's said that "For a static-duration object, that initialization shall be static.". Considering 
-the following example:</p>
-<blockquote><pre>
-struct A
-{
-  A(); <i>// user-provided, not constexpr</i>
-
-  std::atomic_flag flag = ATOMIC_FLAG_INIT;
-  <i>// possibly other non-static data members</i>
-};
-
-static A a;
-</pre></blockquote>
-<p>
-The object <tt>a.flag</tt> (as a sub-object of the object <tt>a</tt>) has static-duration, yet the initialization 
-has to be dynamic because <tt>A::A</tt> is not <tt>constexpr</tt>.
-</p>
-
-</li>
-</ol>
-
-<p><i>[2012, Portland]</i></p>
-
-<p>
-We would like to be able to allow more initialisation contexts for example:
-</p>
-<ol>
-<li>C struct</li>
-<li>C++ constructor initializer-list</li>
-</ol>
-<p>
-However we need further input from experts with implementation specific knowledge
-to identify which additional contexts (if any) would be universally valid.
-</p>
-<p>
-Moved to open
-</p>
-
-<p><i>[2013, Chicago]</i></p>
-
-<p>
-Move to Immediate, following review.
-</p>
-<p>
-Some discussion over the explicit use of only copy initialization, and not direct initialization.  This is necessary to
-allow the implementation of <tt>atomic_flag</tt> as an aggregate, and may be further reviewed in the future.
-</p>
-<p>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This wording is relative to N3376.]</i></p>
-
-
-<p>Change 29.7 [atomics.flag]&#47;4 as follows:</p>
-
-<blockquote><p>
-The macro <tt>ATOMIC_FLAG_INIT</tt> shall be defined in such a way that it can be used to initialize an object of
-type <tt>atomic_flag</tt> to the clear state.  <ins>The macro can be used in the form:</ins>
-</p>
-<blockquote><pre>
-<ins>atomic_flag guard = ATOMIC_FLAG_INIT;</ins>
-</pre></blockquote>
-<p>
-<ins>It is unspecified whether the macro can be used in other initialization contexts.</ins> For a <ins>complete</ins>
-static-duration object, that initialization shall be static. <del>It is unspecified whether an uninitialized</del> 
-<ins>Unless initialized with <tt>ATOMIC_FLAG_INIT</tt>, it is unspecified whether an</ins> <tt>atomic_flag</tt> 
-object has an initial state of set or clear. <del><i>[ Example:</i></del>
-</p>
-<blockquote><pre>
-<del>atomic_flag guard = ATOMIC_FLAG_INIT;</del>
-</pre></blockquote>
-<p>
-<del>&mdash; <i>end example ]</i></del>
-</p>
-</blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2160"></a>2160. Unintended destruction ordering-specification of <tt>resize</tt></h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-06-07 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-As part of resolving LWG issue <a href="lwg-defects.html#2033">2033</a> a wording change was done for <tt>resize()</tt> to 
-respect the problem mentioned in the question:
-</p>
-<blockquote><p>
-Does a call to 'void resize(size_type sz)' of <tt>std::vector</tt> require the element type to be 
-<tt>MoveAssignable</tt> because the call <tt>erase(begin() + sz, end())</tt> mentioned in the Effects 
-paragraph would require the element type to be <tt>MoveAssignable</tt>?
-</p></blockquote>
-<p>
-The wording change was to replace in 23.3.3.3 [deque.capacity] and 23.3.6.3 [vector.capacity]:
-</p>
-<blockquote><p>
--1- <i>Effects</i>: If <tt>sz &lt;= size()</tt>, equivalent to <tt>erase(begin() + sz, end())</tt>; [&hellip;]
-</p></blockquote>
-<p>
-by:
-</p>
-<blockquote><p>
--1- <i>Effects</i>: If <tt>sz &lt;= size()</tt>, equivalent to calling <tt>pop_back() size() - sz</tt> times. [&hellip;]
-</p></blockquote>
-<p>
-The overlooked side-effect of this wording change is that this implies a destruction order
-of the removed elements to be in reverse order of construction, but the previous version
-did not impose any specific destruction order due to the way how the semantics of <tt>erase</tt>
-is specified in Table 100.
-<p/>
-Given the program:
-</p>
-<blockquote><pre>
-#include &lt;vector&gt;
-#include &lt;iostream&gt;
-
-struct Probe {
-  int value;
-  Probe() : value(0) {}
-  Probe(int value) : value(value) {}
-  ~Probe() { std::cout &lt;&lt; "~Probe() of " &lt;&lt; value &lt;&lt; std::endl; }
-};
-
-int main() {
-  std::vector&lt;Probe&gt; v;
-  v.push_back(Probe(1));
-  v.push_back(Probe(2));
-  v.push_back(Probe(3));
-  std::cout &lt;&lt; "---" &lt;&lt; std::endl;
-  <span style="color:#C80000;font-weight:bold">v.resize(0)</span>;
-}
-</pre></blockquote>
-<p>
-the last three lines of the output for every compiler I tested was:
-</p>
-<blockquote><pre>
-~Probe() of 1
-~Probe() of 2
-~Probe() of 3
-</pre></blockquote>
-<p>
-but a conforming implementation would now need to change this order to
-</p>
-<blockquote><pre>
-~Probe() of 3
-~Probe() of 2
-~Probe() of 1
-</pre></blockquote>
-<p>
-This possible stringent interpretation makes sense, because one can argue that sequence containers 
-(or at least <tt>std::vector</tt>) should have the same required destruction order of it's elements,
-as elements of a C array or controlled by memory deallocated with an array <tt>delete</tt> have.
-I also learned that libc++ does indeed implement <tt>std::vector::resize</tt> in a way that the
-second output form is observed.
-<p/>
-While I agree that required reverse-destruction would better mimic the natural behaviour of
-<tt>std::vector</tt> this was not required in C++03 and this request may be too strong. My current 
-suggestion would be to restore the effects of the previous wording <em>in regard to the destruction order</em>, 
-because otherwise several currently existing implementations would be broken just because of this
-additional requirement.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Jonathan says that he believes this is a valid issue.
-</p>
-<p>
-Walter wonders if this was intended when we made the previous change - if so, this would be NAD.
-</p>
-<p>
-Jonathan said that Issue <a href="lwg-defects.html#2033">2033</a> doesn't mention ordering.
-</p>
-<p>
-Walter then asked if anyone is really unhappy that we're destroying items in reverse order of construction.
-</p>
-<p>
-Jonathan points out that this conflicts with existing practice (libstc++, but not libc++).
-</p>
-<p>
-Jonathan asked for clarification as to whether this change was intended by <a href="lwg-defects.html#2033">2033</a>.
-</p>
-
-<p><i>[2014-06 Rapperswil]</i></p>
-
-<p>
-Daniel points out that the ordering change was not intended.
-<p/>
-General agreement that implementations should not be required to change.
-</p>
-
-<p><i>[2014-06-28 Daniel provides alternative wording]</i></p>
-
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p> 
-
-<ol>
-<li><p>Change 23.3.3.3 [deque.capacity] as indicated: [<i>Drafting note</i>: The chosen wording form is similar to that for
-<tt>forward_list</tt>. Note that the existing <i>Requires</i> element already specifies the necessary operational requirements 
-on the value type. &mdash; <i>end drafting note</i>]</p>
-
-<blockquote>
-<pre>
-void resize(size_type sz);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects</i>: If <tt>sz &lt;<del>=</del> size()</tt>, <ins>erases the last <tt>size() - sz</tt> elements from the 
-sequence</ins><del>equivalent to calling <tt>pop_back() size() - sz</tt> times</del>. <ins>Otherwise</ins><del>If <tt>size() 
-&lt;= sz</tt></del>, appends <tt>sz - size()</tt> default-inserted elements to the sequence.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-void resize(size_type sz, const T&amp; c);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>: If <tt>sz &lt;<del>=</del> size()</tt>, <ins>erases the last <tt>size() - sz</tt> elements from the 
-sequence</ins><del>equivalent to calling <tt>pop_back() size() - sz</tt> times</del>. <ins>Otherwise</ins><del>If <tt>size() 
-&lt; sz</tt></del>, appends <tt>sz - size()</tt> copies of <tt>c</tt> to the sequence.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.6.3 [vector.capacity] as indicated: [<i>Drafting note</i>: See <tt>deque</tt> for the rationale of the
-used wording. &mdash; <i>end drafting note</i>]</p>
-
-<blockquote>
-<pre>
-void resize(size_type sz);
-</pre>
-<blockquote>
-<p>
--12- <i>Effects</i>: If <tt>sz &lt;<del>=</del> size()</tt>, <ins>erases the last <tt>size() - sz</tt> elements from the 
-sequence</ins><del>equivalent to calling <tt>pop_back() size() - sz</tt> times</del>. <ins>Otherwise</ins><del>If <tt>size() 
-&lt; sz</tt></del>, appends <tt>sz - size()</tt> default-inserted elements to the sequence.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-void resize(size_type sz, const T&amp; c);
-</pre>
-<blockquote>
-<p>
--15- <i>Effects</i>: If <tt>sz &lt;<del>=</del> size()</tt>, <ins>erases the last <tt>size() - sz</tt> elements from the 
-sequence</ins><del>equivalent to calling <tt>pop_back() size() - sz</tt> times</del>. <ins>Otherwise</ins><del>If <tt>size() 
-&lt; sz</tt></del>, appends <tt>sz - size()</tt> copies of <tt>c</tt> to the sequence.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2162"></a>2162. <tt>allocator_traits::max_size</tt> missing <tt>noexcept</tt></h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 20.7.8.2 [allocator.traits.members], 20.7.8 [allocator.traits] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Bo Persson <b>Opened:</b> 2012-07-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-N3376 describes in 20.7.8.2 [allocator.traits.members]/7
-</p>
-<blockquote><pre>
-static size_type max_size(Alloc&amp; a);
-</pre>
-<p>
-<i>Returns</i>: <tt>a.max_size()</tt> if that expression is well-formed; otherwise, <tt>numeric_limits&lt;size_type&gt;::max()</tt>.
-</p>
-</blockquote>
-<p>
-The <tt>max_size</tt> function is supposed to call one of two functions that are both <tt>noexcept</tt>. 
-To make this intermediate function useful for containers, it should preserve the <tt>noexcept</tt> attribute.
-<p/>
-Proposed changes:
-<p/>
-In 20.7.8 [allocator.traits] and 20.7.8.2 [allocator.traits.members]/7, change the function signature to
-</p>
-<blockquote><pre>
-static size_type max_size(Alloc&amp; a) noexcept;
-</pre></blockquote>
-
-<p><i>[2012-08-05 Daniel comments]</i></p>
-
-<p>
-On the first sight this does not seem like a defect of the specification, because the Allocator requirements in 
-17.6.3.5 [allocator.requirements] (Table 28) do not impose a no-throw requirement onto <tt>max_size()</tt>; 
-the table just describes the fall-back implementation for <tt>max_size()</tt> if a given allocator does 
-not provide such a function.
-<p/>
-<tt>std::allocator</tt> as a special model of this concept and is allowed to increase the exception-guarantees 
-for <tt>max_size()</tt>, but this does not imply a corresponding rules for other allocators.
-<p/>
-Furthermore, <tt>max_size()</tt> of Containers is <em>not</em> specified in terms of 
-<tt>Allocator::max_size()</tt>, so again this is not a real contradiction.
-<p/>
-Nonetheless I think that the following stronger decision should be considered:
-</p>
-<ol>
-<li><p>
-Require that for all Allocators (as specified in 17.6.3.5 [allocator.requirements]) <tt>max_size()</tt> 
-never throws an exception. This would it make much more useful to call this function in situations where no 
-exception should leave the context.
-</p></li>
-<li><p>
-Require that for all Allocators (as specified in 17.6.3.5 [allocator.requirements]) <tt>max_size()</tt>
-can be called on const allocator object. Together with the previous item this would allow an implementation 
-of a container's <tt>max_size()</tt> function to delegate to the allocator's <tt>max_size()</tt> function.
-</p></li>
-</ol>
-<p>
-In regard to the second statement it should be mentioned that there are two current specification
-deviations from that in the draft:
-</p>
-<ol>
-<li><p>
-The synopsis of 20.7.8 [allocator.traits] uses a const allocator argument as part of the signature
-of the <tt>max_size</tt> function.
-</p></li>
-
-<li><p>
-Both the synopsis of 20.13.1 [allocator.adaptor.syn] and the member specification in
-20.13.4 [allocator.adaptor.members] p8 declare <tt>scoped_allocator_adaptor::max_size</tt>
-as const member function, but this function delegates to 
-</p>
-<blockquote><pre>
-allocator_traits&lt;OuterAlloc&gt;::max_size(outer_allocator())
-</pre></blockquote>
-<p>
-where <tt>outer_allocator()</tt> resolves to the member function overload returning a
-<tt>const outer_allocator_type&amp;</tt>.
-</p>
-</li>
-</ol>
-
-<p>
-The question arises whether these current defects actually point to a defect in the Allocator
-requirements and should be fixed there.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Review 
-]</i></p>
-
-
-<p>
-Consensus that the change seems reasonable, and that for any given type the template is intantiated
-with the contract should be 'wide' so this meets the guidelines we agreed in Madrid for C++11.
-</p>
-
-<p>
-Some mild concern that while we don't imagine many allocator implementations throwing on this method,
-it is technically permited by current code that we would not be breaking, by turning <tt>throw</tt>
-expressions into disguised <tt>terminate</tt> calls.  In this case, an example might be an
-instrumented 'logging' allocator that writes every function call to a log file or database, and might
-throw if that connection/file were no longer available.
-</p>
-
-<p>
-Another option would be to make exception spefication a conditional no-except, much like we do for
-some <tt>swap</tt> functions and assignment operators.  However, this goes against the intent of the
-Madrid adoption of <tt>noexcept</tt> which is that vendors are free to add such extensions, but we
-look for a clear line in the library specification, and do not want to introduce conditional-noexcept
-piecemeal.  A change in our conventions here would require a paper addressing the library specification
-as a whole.
-</p>
-
-<p>
-Consensus was to move forward, but move the issue only to Review rather than Ready to allow time
-for further comments.  This issue should be considered 'Ready' next time it is reviewed unless
-we get such comments in the meantime.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-In 20.7.8 [allocator.traits] and 20.7.8.2 [allocator.traits.members]/7, change the function signature to
-</p>
-<blockquote><pre>
-static size_type max_size(Alloc&amp; a) <ins>noexcept</ins>;
-</pre></blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2163"></a>2163. <tt>nth_element</tt> requires inconsistent post-conditions</h3>
-<p><b>Section:</b> 25.4.2 [alg.nth.element] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Peter Sommerlad <b>Opened:</b> 2012-07-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.nth.element">issues</a> in [alg.nth.element].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The specification of nth_element refers to <tt>operator&lt;</tt> whereas all sorting without a compare function is based on 
-<tt>operator&lt;</tt>. While it is true that for all regular types both operators should be defined accordingly, all other 
-sorting algorithms only rely on existence of <tt>operator&lt;</tt>. So I guess the paragraph p1
-</p>
-<blockquote><p>
-After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt> is the element that would be in that
-position if the whole range were sorted. Also for any iterator <tt>i</tt> in the range <tt>[first,nth)</tt> and any
-iterator <tt>j</tt> in the range <tt>[nth,last)</tt> it holds that: <tt>!(*i &gt; *j)</tt> or <tt>comp(*j, *i) == false</tt>.
-</p></blockquote>
-<p>
-should read
-</p>
-<blockquote><p>
-After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt> is the element that would be in that
-position if the whole range were sorted. Also for any iterator <tt>i</tt> in the range <tt>[first,nth)</tt> and any
-iterator <tt>j</tt> in the range <tt>[nth,last)</tt> it holds that: <tt>!(*j &lt; *i)</tt> or <tt>comp(*j, *i) == false</tt>.
-</p></blockquote>
-<p>
-Note only "<tt>!(*i &gt; *j)</tt>" was changed to "<tt>!(*j &lt; *i)</tt>" and it would be more symmetric with 
-<tt>comp(*j, *i)</tt> as well.
-<p/>
-In theory this might be a semantic change to the spec, but I believe the mistake is unintended.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Ready 
-]</i></p>
-
-
-<p>
-This is clearly correct by inspection, moved to Ready by unanimous consent.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 25.4.2 [alg.nth.element] p1 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class RandomAccessIterator&gt;
-void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                 RandomAccessIterator last);
-template&lt;class RandomAccessIterator, class Compare&gt;
-void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                 RandomAccessIterator last, Compare comp);
-</pre><blockquote>
-<p>
--1- After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt> is the element that would be in that
-position if the whole range were sorted. Also for any iterator <tt>i</tt> in the range <tt>[first,nth)</tt> and any
-iterator <tt>j</tt> in the range <tt>[nth,last)</tt> it holds that: <tt><del>!(*i &gt; *j)</del><ins>!(*j &lt; *i)</ins></tt> 
-or <tt>comp(*j, *i) == false</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2168"></a>2168. Inconsistent specification of <tt>uniform_real_distribution</tt> constructor</h3>
-<p><b>Section:</b> 26.5.8.2.2 [rand.dist.uni.real] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2012-07-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-uniform_real says in 26.5.8.2.2 [rand.dist.uni.real] p1:
-</p>
-<blockquote><p>
-A <tt>uniform_real_distribution</tt> random number distribution produces random numbers <tt>x</tt>, <tt>a &le; x &lt; b</tt>,
-</p></blockquote>
-<p>
-but also that (26.5.8.2.2 [rand.dist.uni.real] p2):
-</p>
-<blockquote><pre>
-explicit uniform_real_distribution(RealType a = 0.0, RealType b = 1.0);
-</pre><blockquote><p>
--2- <i>Requires</i>: <tt>a &le; b</tt> and <tt>b - a &le; numeric_limits&lt;RealType&gt;::max()</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-If you construct a <tt>uniform_real_distribution&lt;RealType&gt;(a, b)</tt> where there are no representable 
-numbers between 'a' and 'b' (using <tt>RealType</tt>'s representation) then you cannot satisfy 
-26.5.8.2.2 [rand.dist.uni.real].
-<p/>
-An obvious example is when <tt>a == b</tt>.
-</p>
-
-<p><i>[2014-11-04 Urbana]</i></p>
-
-<p>
-Jonathan provides wording.
-</p>
-
-<p><i>[2014-11-08 Urbana]</i></p>
-
-<p>
-Moved to Ready with the note.
-</p>
-<p>
-There remains concern that the constructors are permitting
-values that may (or may not) be strictly outside the domain
-of the function, but that is a concern that affects the
-design of the random number facility as a whole, and should
-be addressed by a paper reviewing and addressing the whole
-clause, not picked up in the issues list one distribution
-at a time.  It is still not clear that such a paper would be
-uncontroversial.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N4140.
-</p>
-
-<ol>
-<li><p>Add a note after paragraph 1 before the synopsis in 26.5.8.2.2 [rand.dist.uni.real]:</p>
-
-<blockquote><p>
--1- A <tt>uniform_real_distribution</tt> random number distribution produces random numbers 
-<math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>x</mi>
-</math>,
-<math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>a</mi><mo>&le;</mo><mi>x</mi><mo>&lt;</mo><mi>b</mi>
-</math>,
-distributed according to the constant probability density function
-</p>
-<blockquote>
-<p>
-<math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>p</mi><mrow><mo>(</mo><mi>x</mi><mo>|</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>)</mo></mrow>
-<mo>=</mo>
-<mrow>
-<mn>1</mn><mo>&#x2215;</mo><mo>(</mo><mi>b</mi><mo>-</mo><mi>a</mi><mo>)</mo>
-</mrow>
-</math>
-.
-</p>
-</blockquote>
-<p>
-<ins>[<i>Note</i>: This implies that <math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>p</mi><mrow><mo>(</mo><mi>x</mi><mo>|</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>)</mo></mrow> 
-</math> is undefined when <tt>a == b</tt>. &mdash; <i>end note</i>]</ins>
-</p></blockquote>
-<blockquote class="note">
-<p>
-<i>Drafting note</i>: <math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>p</mi><mrow><mo>(</mo><mi>x</mi><mo>|</mo><mi>a</mi><mo>,</mo><mi>b</mi><mo>)</mo></mrow> 
-</math> should be in math font, and <tt>a == b</tt> should be in code font.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2169"></a>2169. Missing <tt>reset()</tt> requirements in <tt>unique_ptr</tt> specialization</h3>
-<p><b>Section:</b> 20.8.1.3.4 [unique.ptr.runtime.modifiers] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Geoffrey Romer <b>Opened:</b> 2012-07-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.runtime.modifiers">issues</a> in [unique.ptr.runtime.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In 20.8.1.3.4 [unique.ptr.runtime.modifiers]/p1-2 of N3376, the description of <tt>reset()</tt> in the 
-array specialization of <tt>unique_ptr</tt> partially duplicates the description of the base template method 
-(as specified in 20.8.1.2.5 [unique.ptr.single.modifiers]/p3-5), but lacks some significant requirements. 
-Specifically, the text introduced in LWG <a href="lwg-defects.html#998">998</a>, and item 13 of LWG <a href="lwg-defects.html#762">762</a>, is present 
-only in the base template, not the specialization.
-<p/>
-This gives the appearance that these requirements specifically do not apply to the specialization, which I 
-don't believe is correct or intended: the issue of <tt>reset()</tt> operation order addressed by LWG <a href="lwg-defects.html#998">998</a> 
-applies just as much to the derived template as to the base template, and the derived template has just as 
-much need to rely on <tt>get_deleter()(get())</tt> being well-defined, well-formed, and not throwing exceptions 
-(arguably some of those properties follow from the fact that <tt>T</tt> is required to be a complete type, but 
-not all).
-<p/>
-Assuming the derived template's <tt>reset()</tt> semantics are intended to be identical to the base template's, 
-there is no need to explicitly specify the semantics of <tt>reset(pointer p)</tt> at all (since 
-20.8.1.3 [unique.ptr.runtime]/3 specifies "Descriptions are provided below only for member functions that 
-have behavior different from the primary template."), and <tt>reset(nullptr_t p)</tt> can be specified by 
-reference to the 'pointer' overload. This is more concise, and eliminates any ambiguity about intentional vs. 
-accidental discrepancies.
-</p>
-
-<p><i>[2012-10 Portland: Move to Ready]</i></p>
-
-<p>
-<del>This resolution looks blatantly wrong, as it seems to do nothing but defer to primary template
-where we should describe the contract here.</del>
-</p>
-
-<p>
-Ongoing discussion points out that the primary template has a far more carefully worded semantic
-for <tt>reset(p)</tt> that we would want to copy here.
-</p>
-
-<p>
-STL points out that we need the <tt>nullptr</tt> overload for this dynamic-array form, as there is
-a deleted member function template that exists to steal overloads of pointer-to-derived, avoiding
-undifined behavior, so we need the extra overload.
-</p>
-
-<p>
-Finally notice that there is blanket wording further up the clause saying we describe only changes
-from the primary template, so the proposed wording is in fact exactly correct.  Move to Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<p>Change 20.8.1.3.4 [unique.ptr.runtime.modifiers] as indicated:</p>
-
-<blockquote><pre>
-<del>void reset(pointer p = pointer()) noexcept;</del>
-void reset(nullptr_t p) noexcept;
-</pre><blockquote>
-<p>
--1- <i>Effects</i>: <del>If <tt>get() == nullptr</tt> there are no effects. Otherwise <tt>get_deleter()(get())</tt></del>
-<ins>Equivalent to <tt>reset(pointer())</tt></ins>.
-<p/>
-<del>-2- <i>Postcondition</i>: <tt>get() == p</tt>.</del>
-</p>
-</blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2170"></a>2170. Aggregates cannot be <tt>DefaultConstructible</tt></h3>
-<p><b>Section:</b> 17.6.3.1 [utility.arg.requirements] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-07-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility.arg.requirements">issues</a> in [utility.arg.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The lack of the definition of the <tt>DefaultConstructible</tt> requirements in C++03 was fixed 
-by LWG <a href="lwg-defects.html#724">724</a> at a time where the core rules of list-initialization were slightly
-different than today, at that time value-initialization (shortly) was the primary rule for
-class types, i.e. just before applying <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1301">CWG 1301</a>, 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1324">CWG 1324</a>, and 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1368">CWG 1368</a>.
-<p/>
-The order in 8.5.4 [dcl.init.list] p3 was changed to respect aggregate initialization, but that
-had the side-effect that formally aggregate types cannot satisfy the <tt>DefaultConstructible</tt>
-requirements anymore, because we require that
-</p>
-<blockquote><pre>
-T u{};
-</pre></blockquote>
-<p>
-<em>value-initializes</em> the object <tt>u</tt>.
-<p/>
-Of-course exclusion of aggregates was not intended, therefore I suggest to extend the requirements
-in Table 19 (17.6.3.1 [utility.arg.requirements]) for empty aggregate-initialization as well.
-</p>
-
-<p><i>[
-2012-10 Portland: Move to Core 
-]</i></p>
-
-
-<p>
-We are not qualified to pick apart the Core rules quickly at this point, but the consensus is
-that if the core language has changed in this manner, then the fix should similarly be applied
-in Core - this is not something that we want users of the language to have to say every time
-they want to Value initialize (or aggregate initialize) an object.
-</p>
-
-<p>
-More to Open until we get a clear response from Core, Alisdair to file an issue with Mike.
-</p>
-
-<p><i>[2013-04 Bristol: Back to Library]</i></p>
-
-
-<p>
-The Core Working group opened, discussed, and resolved <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_closed.html#1578">CWG 1578</a>
-as NAD for this library-related problem: Empty aggregate initialization and value-initialization are different core language concepts,
-and this difference can be observed (e.g. for a type with a deleted default-constructor).
-</p>
-
-<p><i>[2014-02-15 Issaquah: Move to Ready]</i></p>
-
-<p>
-AM: core says still LWG issue, wording has been non-controversial, move to ready?
-</p>
-<p>
-NJ: what about durations? think they are ok
-</p>
-<p>
-Ville: <tt>pair</tt> and a few other have value initialize
-</p>
-<p>
-AM: look at core 1578
-</p>
-<p>
-AM: value initialize would require <tt>()</tt>, remove braces from third row?
-</p>
-<p>
-STL: no
-</p>
-<p>
-PH: core has new issue on aggregates and non-aggregates.
-</p>
-<p>
-AM: right, they said does not affect this issue
-</p>
-<p>
-NJ: why ok with <tt>pair</tt> and <tt>tuple</tt>?
-</p>
-<p>
-STL: will use <tt>()</tt>, <tt>tuple</tt> of aggregates with deleted constructor is ill-formed
-</p>
-<p>
-Ville: aggregate with reference can't have <tt>()</tt>
-</p>
-<p>
-STL: <tt>{}</tt> would be an issue too
-</p>
-<p>
-Ville: aggregate with reference will have <tt>()</tt> deleted implicitly
-</p>
-<p>
-Move to Ready.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<p>Change Table 19 in 17.6.3.1 [utility.arg.requirements] as indicated:</p>
-
-<table border="1">
-<caption>Table 19 &mdash; <tt>DefaultConstructible</tt> requirements [defaultconstructible]</caption>
-
-<tr>
-<th>Expression</th>
-<th>Post-condition</th>
-</tr> 
-
-<tr>
-<td>
-<tt>T t;</tt>
-</td>
-<td>
-object <tt>t</tt> is default-initialized
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>T u{};</tt>
-</td>
-<td>
-object <tt>u</tt> is value-initialized <ins>or aggregate-initialized</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>T()</tt><br/>
-<tt>T{}</tt>
-</td>
-<td>
-a temporary object of type <tt>T</tt> is value-initialized <ins>or aggregate-initialized</ins>
-</td>
-</tr>
-
-</table>
-
-
-
-
-
-
-<hr>
-<h3><a name="2172"></a>2172. Does <tt>atomic_compare_exchange_*</tt> accept <tt>v == nullptr</tt> arguments?</h3>
-<p><b>Section:</b> 20.8.2.6 [util.smartptr.shared.atomic] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2012-07-28 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.atomic">issues</a> in [util.smartptr.shared.atomic].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Looking at 20.8.2.6 [util.smartptr.shared.atomic]/p31
-</p>
-<blockquote><pre>
-template&lt;class T&gt;
-  bool
-  atomic_compare_exchange_strong_explicit(shared_ptr&lt;T&gt;* p,
-                                          shared_ptr&lt;T&gt;* v,
-                                          shared_ptr&lt;T&gt; w,
-                                          memory_order success, memory_order failure);
-</pre><blockquote><p>
--31- <i>Requires</i>: <tt>p</tt> shall not be null.
-</p></blockquote></blockquote>
-<p>
-What about <tt>v</tt>?  Can it be null?  And if so, what happens?
-<p/>
-This looks closely related to C++11 issue LWG <a href="lwg-defects.html#1030">1030</a>, where we gave every signature in this section a:
-</p>
-<blockquote><p>
-<i>Requires</i>: <tt>p</tt> shall not be null.
-</p></blockquote>
-<p>
-It looks like a simple oversight to me that we did not add for the <tt>atomic_compare_exchange_*</tt>:
-</p>
-<blockquote><p>
-<i>Requires</i>: <tt>p</tt> shall not be null <ins>and <tt>v</tt> shall not be null</ins>.
-</p></blockquote>
-
-<p><i>[2012-10 Portland: Move to Ready]</i></p>
-
-<p>
-This is clearly the right thing to do, and Lawrence concurs. 
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<p>Change 20.8.2.6 [util.smartptr.shared.atomic] as indicated:</p>
-
-<blockquote><pre>
-template&lt;class T&gt;
-  bool atomic_compare_exchange_weak(
-    shared_ptr&lt;T&gt;* p, shared_ptr&lt;T&gt;* v, shared_ptr&lt;T&gt; w);
-</pre><blockquote><p>
--27- <i>Requires</i>: <tt>p</tt> shall not be null <ins>and <tt>v</tt> shall not be null</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-template&lt;class T&gt;
-  bool atomic_compare_exchange_weak_explicit(
-    shared_ptr&lt;T&gt;* p, shared_ptr&lt;T&gt;* v, shared_ptr&lt;T&gt; w,
-    memory_order success, memory_order failure);
-template&lt;class T&gt;
-  bool atomic_compare_exchange_strong_explicit(
-    shared_ptr&lt;T&gt;* p, shared_ptr&lt;T&gt;* v, shared_ptr&lt;T&gt; w,
-    memory_order success, memory_order failure);
-</pre><blockquote><p>
--31- <i>Requires</i>: <tt>p</tt> shall not be null <ins>and <tt>v</tt> shall not be null</ins>.
-<p/>
-[&hellip;]
-</p>
-</blockquote></blockquote>
-
-
-
-
-
-
-<hr>
-<h3><a name="2174"></a>2174. <tt>wstring_convert::converted()</tt> should be <tt>noexcept</tt></h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-08-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-There is no reason <tt>wstring_convert::converted()</tt> shouldn't be <tt>noexcept</tt>.
-<p/>
-It might be possible for <tt>wstring_convert::state()</tt> and <tt>wbuffer_convert::state()</tt> 
-to be <tt>noexcept</tt> too, depending on the requirements on <tt>mbstate_t</tt>.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-<p>
-Defer the separate discsussion of <tt>state()</tt> to another issue, if anyone is ever motivated
-to file one.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Edit in the class template <tt>wstring_convert</tt> synopsis 22.3.3.2.2 [conversions.string] p2:</p>
-
-<blockquote><pre>
-size_t converted() const <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit the signature before 22.3.3.2.2 [conversions.string] p6:</p>
-
-<blockquote><pre>
-size_t converted() const <ins>noexcept</ins>;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2175"></a>2175. <tt>wstring_convert</tt> and <tt>wbuffer_convert</tt> validity</h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string], 22.3.3.2.3 [conversions.buffer] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-08-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-See discussion following <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32710">c++std-lib-32710</a>.
-<p/>
-It's not specified what happens if <tt>wstring_convert</tt> and <tt>wbuffer_convert</tt> objects are constructed 
-with null <tt>Codecvt</tt> pointers.
-<p/>
-Should the constructors have preconditions that the pointers are not null?  If not, are conversions expected to 
-fail, or is it undefined to attempt conversions if the pointers are null?
-<p/>
-There are no observer functions to check whether objects were constructed with valid <tt>Codecvt</tt> pointers. 
-If the types are made movable such observers would be necessary even if the constructors require non-null 
-pointers (see also LWG <a href="lwg-defects.html#2176">2176</a>).
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Insert a new paragraph before 22.3.3.2.2 [conversions.string] paragraph 16:</p>
-
-<blockquote><pre>
-wstring_convert(Codecvt *pcvt = new Codecvt);
-wstring_convert(Codecvt *pcvt, state_type state);
-wstring_convert(const byte_string&amp; byte_err,
-  const wide_string&amp; wide_err = wide_string());
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: For the first and second constructors <tt>pcvt != nullptr</tt>.</ins>
-<p/>
--16- <i>Effects</i>: The first constructor shall store <tt>pcvt</tt> in <tt>cvtptr</tt> and default values in 
-<tt>cvtstate</tt>, <tt>byte_err_string</tt>, and <tt>wide_err_string</tt>. The second constructor shall 
-store <tt>pcvt</tt> in <tt>cvtptr</tt>, <tt>state</tt> in <tt>cvtstate</tt>, and default values in 
-<tt>byte_err_string</tt> and <tt>wide_err_string</tt>; moreover the stored state shall be retained between 
-calls to <tt>from_bytes</tt> and <tt>to_bytes</tt>. The third constructor shall store <tt>new Codecvt</tt> 
-in <tt>cvtptr</tt>, <tt>state_type()</tt> in cvtstate, <tt>byte_err</tt> in <tt>byte_err_string</tt>, 
-and <tt>wide_err</tt> in <tt>wide_err_string</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Insert a new paragraph before 22.3.3.2.3 [conversions.buffer] paragraph 10:</p>
-
-<blockquote><pre>
-wbuffer_convert(std::streambuf *bytebuf = 0,
-  Codecvt *pcvt = new Codecvt, state_type state = state_type());
-</pre><blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>pcvt != nullptr</tt>.</ins>
-<p/>
--10- <i>Effects</i>: The constructor constructs a stream buffer object, initializes <tt>bufptr</tt> to <tt>bytebuf</tt>, 
-initializes <tt>cvtptr</tt> to <tt>pcvt</tt>, and initializes <tt>cvtstate</tt> to <tt>state</tt>.
-</p>
-</blockquote></blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2176"></a>2176. Special members for <tt>wstring_convert</tt> and <tt>wbuffer_convert</tt></h3>
-<p><b>Section:</b> 22.3.3.2.2 [conversions.string], 22.3.3.2.3 [conversions.buffer] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-08-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#conversions.string">active issues</a> in [conversions.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#conversions.string">issues</a> in [conversions.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-See discussion following <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32699">c++std-lib-32699</a>.
-<p/>
-The constructors for <tt>wstring_convert</tt> and <tt>wbuffer_convert</tt> should be explicit, to avoid 
-implicit conversions which take ownership of a <tt>Codecvt</tt> pointer and delete it unexpectedly.
-<p/>
-Secondly, 22.3.3.2.3 [conversions.buffer] p11 describes a destructor which is not declared in the class 
-synopsis in p2.
-<p/>
-Finally, and most importantly, the definitions in 22.3.3.2.2 [conversions.string] and 
-22.3.3.2.3 [conversions.buffer] imply implicitly-defined copy constructors and assignment operators, which 
-would do shallow copies of the owned <tt>Codecvt</tt> objects and result in undefined behaviour in the 
-destructors.
-<p/>
-<tt>Codecvt</tt> is not required to be <tt>CopyConstructible</tt>, so deep copies are not possible.  
-The <tt>wstring_convert</tt> and <tt>wstring_buffer</tt> types could be made move-only, but the proposed 
-resolution below doesn't do so because of the lack of preconditions regarding null <tt>Codecvt</tt> pointers
-and the absence of observer functions that would allow users to check preconditions (see also LWG <a href="lwg-defects.html#2175">2175</a>).
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-Jonathan pointed out that you can have an implicit constructor that takes ownership of a heap reference,
-which would result an unexpected deletion.
-</p>
-<p>
-No-one really likes the 'naked new' in the interface here, either.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Edit the class template <tt>wstring_convert</tt> synopsis in 22.3.3.2.2 [conversions.string] p2:</p>
-
-<blockquote><pre>
-<ins>explicit</ins> wstring_convert(Codecvt *pcvt = new Codecvt);
-wstring_convert(Codecvt *pcvt, state_type state);
-<ins>explicit</ins> wstring_convert(const byte_string&amp; byte_err,
-                         const wide_string&amp; wide_err = wide_string());
-~wstring_convert();
-<ins>
-wstring_convert(const wstring_convert&amp;) = delete;
-wstring_convert&amp; operator=(const wstring_convert&amp;) = delete;
-</ins>				 
-</pre></blockquote>
-</li>
-
-<li><p>Edit the signatures before 22.3.3.2.2 [conversions.string] p16:</p>
-
-<blockquote><pre>
-<ins>explicit</ins> wstring_convert(Codecvt *pcvt = new Codecvt);
-wstring_convert(Codecvt *pcvt, state_type state);
-<ins>explicit</ins> wstring_convert(const byte_string&amp; byte_err,
-    const wide_string&amp; wide_err = wide_string());
-</pre></blockquote>
-</li>
-
-<li><p>Edit the class template <tt>wbuffer_convert</tt> synopsis in 22.3.3.2.3 [conversions.buffer] p2:</p>
-
-<blockquote><pre>
-<ins>explicit</ins> wbuffer_convert(std::streambuf *bytebuf = 0,
-                         Codecvt *pcvt = new Codecvt,
-                         state_type state = state_type());
-<ins>
-~wbuffer_convert();
-
-wbuffer_convert(const wbuffer_convert&amp;) = delete;
-wbuffer_convert&amp; operator=(const wbuffer_convert&amp;) = delete;
-</ins>						 
-</pre></blockquote>
-</li>
-
-<li><p>Edit the signature before 22.3.3.2.3 [conversions.buffer] p10:</p>
-
-<blockquote><pre>
-<ins>explicit</ins> wbuffer_convert(std::streambuf *bytebuf = 0,
-    Codecvt *pcvt = new Codecvt, state_type state = state_type());
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2177"></a>2177. Requirements on <tt>Copy&#47;MoveInsertable</tt></h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Lo&iuml;c Joly <b>Opened:</b> 2012-08-10 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-See also discussion following <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32883">c++std-lib-32883</a>
-and <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32897">c++std-lib-32897</a>.
-<p/>
-The requirements on <tt>CopyInsertable</tt> and <tt>MoveInsertable</tt> are either incomplete, or complete but hard to 
-figure out.
-<p/>
-From e-mail <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=32897">c++std-lib-32897</a>:
-<p/>
-Pablo Halpern:
-<p/>
-I agree that we need semantic requirements for all of the <tt>*Insertable</tt> concepts analogous to the requirements 
-we have on similar concepts.
-<p/>
-Howard Hinnant:
-<p/>
-I've come to believe that the standard is actually correct as written in this area. But it is <em>really</em> hard 
-to read. I would have no objection whatsoever to clarifications to <tt>CopyInsertable</tt> as you suggest (such as the 
-post-conditions on <tt>v</tt>). And I do agree with you that the correct approach to the clarifications is to 
-confirm that <tt>CopyInsertable</tt> implies <tt>MoveInsertable</tt>.
-</p>
-
-<p><i>[2012, Portland: Move to Tentatively Ready]</i></p>
-
-<p>
-Move to Tentatively Ready by unanimous consent.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Edit 23.2.1 [container.requirements.general] p13 as indicated:</p>
-
-<blockquote><p>
--13- [&hellip;] Given a container type <tt>X</tt> having an <tt>allocator_type</tt> identical to <tt>A</tt> and 
-a <tt>value_type</tt> identical to <tt>T</tt> and given an lvalue <tt>m</tt> of type <tt>A</tt>, a pointer <tt>p</tt> 
-of type <tt>T*</tt>, an expression <tt>v</tt> of type (possibly <tt>const</tt>) <tt>T</tt>, and an rvalue <tt>rv</tt> 
-of type <tt>T</tt>, the following terms are defined. If <tt>X</tt> is not allocator-aware, the terms below are
-defined as if <tt>A</tt> were <tt>std::allocator&lt;T&gt;</tt> &mdash; no allocator object needs to be created and 
-user specializations of <tt>std::allocator&lt;T&gt;</tt> are not instantiated:
-</p>
-<ul>
-<li><p><tt>T</tt> is <em><tt>DefaultInsertable</tt> into <tt>X</tt></em> means that the following expression is 
-well-formed:</p>
-<blockquote><pre>
-allocator_traits&lt;A&gt;::construct(m, p)<del>;</del>
-</pre></blockquote>
-</li>
-
-<li><p>An element of <tt>X</tt> is <em>default-inserted</em> if it is initialized by evaluation of the expression</p>
-<blockquote><pre>
-allocator_traits&lt;A&gt;::construct(m, p)<del>;</del>
-</pre></blockquote>
-<p>
-where <tt>p</tt> is the address of the uninitialized storage for the element allocated within <tt>X</tt>.
-</p>
-</li>
-
-<li><p><tt>T</tt> is <em><tt><del>Copy</del><ins>Move</ins>Insertable</tt> into <tt>X</tt></em> means that 
-the following expression is well-formed:</p>
-<blockquote><pre>
-allocator_traits&lt;A&gt;::construct(m, p, <ins>r</ins>v)<del>;</del>
-</pre></blockquote>
-<p>
-<ins>and when evaluated the following postconditions hold: The value of <tt>*p</tt> is equivalent to the value of 
-<tt>rv</tt> before the evaluation. [<i>Note</i>: <tt>rv</tt> remains a valid object. Its state is unspecified &mdash; 
-<i>end note</i>]</ins>
-</p>
-</li>
-
-<li><p><tt>T</tt> is <em><tt><del>Move</del><ins>Copy</ins>Insertable</tt> into <tt>X</tt></em> means 
-that<ins>, in addition to satisfying the <tt>MoveInsertable</tt> requirements,</ins> the following expression is 
-well-formed:</p>
-<blockquote><pre>
-allocator_traits&lt;A&gt;::construct(m, p, <del>r</del>v)<del>;</del>
-</pre></blockquote>
-<p>
-<ins>and when evaluated the following postconditions hold: The value of <tt>v</tt> is unchanged and is equivalent 
-to <tt>*p</tt>.</ins>
-</p>
-</li>
-
-<li><p><tt>T</tt> is <em><tt>EmplaceConstructible</tt> into <tt>X</tt> from <tt>args</tt></em>, for zero or more arguments 
-<tt>args</tt>, means that the following expression is well-formed:</p>
-<blockquote><pre>
-allocator_traits&lt;A&gt;::construct(m, p, args)<del>;</del>
-</pre></blockquote>
-</li>
-
-<li><p><tt>T</tt> is <em><tt>Erasable</tt> from <tt>X</tt></em> means that the following expression is well-formed:</p>
-<blockquote><pre>
-allocator_traits&lt;A&gt;::destroy(m, p)<del>;</del>
-</pre></blockquote>
-</li>
-
-</ul>
-<p>
-[<i>Note</i>: A container calls <tt>allocator_traits&lt;A&gt;::construct(m, p, args)</tt> to construct an element 
-at <tt>p</tt> using <tt>args</tt>. The default construct in <tt>std::allocator</tt> will call 
-<tt>::new((void*)p) T(args)</tt>, but specialized allocators may choose a different definition. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2180"></a>2180. Exceptions from <tt>std::seed_seq</tt> operations</h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-08-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-26.5.7.1 [rand.util.seedseq] p1 says upfront:
-</p>
-<blockquote><p>
-No function described in this section 26.5.7.1 [rand.util.seedseq] throws an exception.
-</p></blockquote>
-<p>
-This constraint seems non-implementable to me when looking especially at the members
-</p>
-<blockquote><pre>
-template&lt;class T&gt;
-seed_seq(initializer_list&lt;T&gt; il);
-
-template&lt;class InputIterator&gt;
-seed_seq(InputIterator begin, InputIterator end);
-</pre></blockquote>
-<p>
-which have the effect of invoking <tt>v.push_back()</tt> for the exposition-only member of
-type <tt>std::vector</tt> (or its equivalent) over all elements of the provided range, so
-out-of-memory exceptions are always possible and the <tt>seed_seq</tt> object doesn't seem
-to be constructible this way.
-<p/>
-In addition to the potential lack-of-resources problem, the operations of <tt>InputIterator</tt>
-might also throw exceptions.
-<p/>
-Aside to that it should me mentioned, that a default constructor of <tt>vector&lt;uint_least32_t&gt;</tt> 
-in theory can also throw exceptions, even though this seems less of a problem to me in this context, because 
-such an implementation could easily use a different internal container in <tt>seed_seq</tt> that can hold 
-this no-throw exception guarantee.
-<p/>
-Secondly, a slightly different problem category related to exceptions occurs for the member templates
-</p>
-<blockquote><pre>
-template&lt;class RandomAccessIterator&gt;
-void generate(RandomAccessIterator begin, RandomAccessIterator end);
-
-template&lt;class OutputIterator&gt;
-void param(OutputIterator dest) const;
-</pre></blockquote>
-<p>
-where the actual operations performed by the implementation would never need to throw, but since they invoke
-operations of a user-provided customization point, the overall operation, like for example
-</p>
-<blockquote><pre>
-copy(v.begin(), v.end(), dest);
-</pre></blockquote>
-<p>
-could also throw exceptions. In this particular example we can just think of a <tt>std::back_insert_iterator</tt>
-applied to a container that needs to allocate its elements used as the type for <tt>OutputIterator</tt>.
-<p/>
-Even though Clause 26 [numerics] has mostly stronger exception constraints than other parts of the
-library the here discussed are overrestrictive, especially since no operation of <tt>std::seed_seq</tt> 
-except the template <tt>generate</tt> is actually needed within the library implementation, as mentioned in the 
-discussion of LWG <a href="lwg-closed.html#2124">2124</a>.
-<p/>
-I suggest to remove the general no-exception constraints for operations of <tt>std::seed_seq</tt> except for
-member <tt>size()</tt> and the default constructor and to provide specific wording for <tt>generate()</tt> and
-<tt>param()</tt> to ensure that the algorithm itself is a nothrow operation, which is especially for
-<tt>generate()</tt> important, because the templates specified in 26.5.3 [rand.eng] and 
-26.5.4 [rand.adapt] also depend on this property indirectly, which is further discussed in LWG 
-<a href="lwg-active.html#2181">2181</a>.
-<p/>
-<u>Howard</u>:
-<p/>
-I suggest to use a different form for the exception specification, something similar to 
-20.9.10.3 [func.bind.bind] p4:
-</p>
-<blockquote><p>
-<i>Throws</i>: Nothing unless an operation on <tt>RandomAccessIterator</tt> throws an exception.
-</p></blockquote>
-<p>
-<u>Daniel</u>:
-<p/>
-The currently suggested "what and when" form seems a bit more specific and harmonizes with the form used for
-function template <tt>generate_canonical</tt> from 26.5.7.2 [rand.util.canonical].
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Open an editorial issue on the exception wording ("Throws: What and when"). 
-<p/>
-Solution: move to tentatively ready. 
-</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>
-Apply to Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Edit 26.5.7.1 [rand.util.seedseq] p1 as indicated:</p>
-
-<blockquote>
-<p>
-<del>-1- No function described in this section 26.5.7.1 [rand.util.seedseq] throws an exception.</del>
-</p>
-</blockquote>
-</li>
-
-<li><p>Edit 26.5.7.1 [rand.util.seedseq] around p2 as indicated:</p>
-
-<blockquote><pre>
-seed_seq();
-</pre><blockquote>
-<p>
--2- <i>Effects</i>: Constructs a <tt>seed_seq</tt> object as if by default-constructing its member <tt>v</tt>.
-<p/>
-<ins>-?- <i>Throws</i>: Nothing.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 26.5.7.1 [rand.util.seedseq] around p7 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class RandomAccessIterator&gt;
-  void generate(RandomAccessIterator begin, RandomAccessIterator end);
-</pre><blockquote>
-<p>
--7- <i>Requires</i>: <tt>RandomAccessIterator</tt> shall meet the requirements of a mutable random access iterator
-(Table 111) type. Moreover, <tt>iterator_traits&lt;class RandomAccessIterator&gt;::value_type</tt> shall denote
-an unsigned integer type capable of accommodating 32-bit quantities.
-<p/>
--8- <i>Effects</i>: Does nothing if <tt>begin == end</tt>. Otherwise, with <tt>s = v.size()</tt> and 
-<tt>n = end - begin</tt>, fills the supplied range <tt>[begin, end)</tt> according to the following algorithm [&hellip;]
-<p/>
-<ins>-?- <i>Throws</i>: What and when <tt>RandomAccessIterator</tt> operations of <tt>begin</tt> and <tt>end</tt> throw.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 26.5.7.1 [rand.util.seedseq] around p9 as indicated:</p>
-
-<blockquote><pre>
-size_t size() const;
-</pre><blockquote>
-<p>
--9- <i>Returns</i>: The number of 32-bit units that would be returned by a call to <tt>param()</tt>.
-<p/>
-<ins>-??- <i>Throws</i>: Nothing.</ins>
-<p/>
--10- <i>Complexity</i>: constant time.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 26.5.7.1 [rand.util.seedseq] around p11 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class OutputIterator&gt;
-  void param(OutputIterator dest) const;
-</pre><blockquote>
-<p>
--11- <i>Requires</i>: <tt>OutputIterator</tt> shall satisfy the requirements of an output iterator (Table 108) type. 
-Moreover, the expression <tt>*dest = rt</tt> shall be valid for a value <tt>rt</tt> of type <tt>result_type</tt>.
-<p/>
--12- <i>Effects</i>: Copies the sequence of prepared 32-bit units to the given destination, as if by executing the
-following statement:
-</p>
-<blockquote><pre>
-copy(v.begin(), v.end(), dest);
-</pre></blockquote>
-<p>
-<ins>-??- <i>Throws</i>: What and when <tt>OutputIterator</tt> operations of <tt>dest</tt> throw.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2182"></a>2182. <tt>Container::[const_]reference</tt> types are misleadingly specified</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-08-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to Table 96 (Container requirements) the return type of <tt>X::reference</tt> and
-<tt>X::const_reference</tt> is "lvalue of <tt>T</tt>" and "<tt>const</tt> lvalue of <tt>T</tt>",
-respectively. This does not make much sense, because an lvalue is an expression category, not a type.
-It could also refer to an expression that has a type, but this doesn't make sense either in this
-context, because obviously <tt>X::[const_]reference</tt> are intended to refer to types. 
-<p/>
-Given the fact that <tt>vector&lt;bool&gt;</tt> has no real reference type for <tt>X::[const_]reference</tt> 
-and this definition presumably is intended to cover such situations as well, one might think that the wording is
-just a sloppy form of "type that represents a [const] lvalue of <tt>T</tt>". But this is also problematic,
-because basically all proxy reference expressions are rvalues.
-<p/>
-It is unclear what the intention is. A straightward way of fixing this wording could make
-<tt>X::[const_]reference</tt> identical to <tt>[const] T&amp;</tt>. This holds for all Library containers
-except for <tt>vector&lt;bool&gt;</tt>.
-<p/>
-Another way of solving this definition problem would be to impose a requirement that holds for both
-references and reference-like proxies. Both <tt>X::reference</tt> and <tt>X::const_reference</tt>
-would need to be convertible to <tt>const T&amp;</tt>. Additionally <tt>X::reference</tt> would need to
-support for a mutable container an assignment expression of the form 
-<tt>declval&lt;X::reference&gt;() = declval&lt;T&gt;()</tt> (this presentation intentionally does not require 
-<tt>declval&lt;X::reference<span style="color:#C80000;font-weight:bold">&amp;</span>&gt;() = declval&lt;T&gt;()</tt>).
-<p/>
-Further, the Table 96 does not impose any relations between <tt>X::reference</tt> and <tt>X::const_reference</tt>.
-It seems that at least <tt>X::reference</tt> needs to be convertible to <tt>X::const_reference</tt>.
-<p/>
-A related question is whether <tt>X::reference</tt> is supposed to be a mutable reference-like type,
-irrespective of whether the container is an immutable container or not. The way, type <tt>match_results</tt>
-defines <tt>reference</tt> identical to <tt>const_reference</tt> indicates one specific interpretation (similarly,
-the <tt>initializer_list</tt> template also defines member type <tt>reference</tt> equal to <tt>const value_type&amp;</tt>).
-Note that this can be a different decision as that for <tt>iterator</tt> and <tt>const_iterator</tt>,
-e.g. for sets the type <tt>X::reference</tt> still is a mutable reference, even though <tt>iterator</tt>
-is described as constant iterator.
-<p/>
-The proposed resolution is incomplete in regard to the last question.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-Alisdair notes that this looks like wording in the right direction.  Wonders about congruence of these
-typedefs and the similar ones for iterators.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Moved to Ready.
-</p>
-<p>
-Consensus that the requirements should require real references, just like iterators, as containers are
-required to support at least ForwardIterators, which have the same restriction on references.
-</p>
-
-<p>
-Matt will file a new issue for some additional concerns with regex <tt>match_results</tt>.
-</p>
-
-<p><i>[2014-02-10, Daniel comments]</i></p>
-
-
-<p>
-The new issue opened by Matt is LWG <a href="lwg-defects.html#2306">2306</a>.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-<p>
-Issue should have been Ready in pre-meeting mailing.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change Table 96 &mdash; "Container requirements" as indicated:</p>
-
-<table border="1">
-<caption>Table p6 &mdash; Container requirements</caption>
-
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational<br/>Semantics</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr> 
-
-<tr>
-<td>
-<tt>X::reference</tt>
-</td>
-<td>
-<del>lvalue of </del><tt>T<ins>&amp;</ins></tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-</td>
-<td>
-compile time
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X::const_reference</tt>
-</td>
-<td>
-<del>const lvalue of</del><ins><tt>const</tt></ins> <tt>T<ins>&amp;</ins></tt>
-</td>
-<td>
-&nbsp;
-</td>
-<td>
-</td>
-<td>
-compile time
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2185"></a>2185. Missing throws clause for <tt>future/shared_future::wait_for/wait_until</tt></h3>
-<p><b>Section:</b> 30.6.6 [futures.unique_future], 30.6.7 [futures.shared_future] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Vicente J. Botet Escriba <b>Opened:</b> 2012-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.unique_future">issues</a> in [futures.unique_future].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The functions <tt>future::wait_for</tt>, <tt>future::wait_until</tt>, <tt>shared_future::wait_for</tt>, and 
-<tt>shared_future::wait_for</tt> can throw any timeout-related exceptions. It would be better if the wording 
-could be more explicit. This is in line with the changes proposed in LWG <a href="lwg-defects.html#2093">2093</a>'s <em>Throws</em> element 
-of <tt>condition_variable::wait</tt> with predicate.
-</p>
-
-<p><i>[2012, Portland: move to Review]</i></p>
-
-<p>
-The phrase timeout-related exception does not exist.
-</p>
-<p><a href="lwg-defects.html#2093">2093</a> was put in review, and there is some dependency here with this issue.
-</p>
-<p>If you provide a user-defined clock that throws, we need to put back an exception to allow that to be done.
-</p>
-<p>
-We will put this in review and say that this cannot go in before <a href="lwg-defects.html#2093">2093</a>.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This resolution should not be adopted before resolving <a href="lwg-defects.html#2093">2093</a>]</i></p>
-
-
-<p><i>[This wording is relative to N3376.]</i></p>
-
-
-<ol>
-<li><p>Change 30.6.6 [futures.unique_future] as indicated:</p>
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-future_status wait_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) const;
-</pre><blockquote><p>
--21- <i>Effects</i>: none if the shared state contains a deferred function (30.6.8 [futures.async]), otherwise 
-blocks until the shared state is ready or until the relative timeout (30.2.4 [thread.req.timing]) specified by 
-<tt>rel_time</tt> has expired.
-<p/>
--22- <i>Returns</i>: [&hellip;]
-<p/>
-<ins>-??- <i>Throws</i>: timeout-related exceptions (30.2.4 [thread.req.timing]).</ins>
-</p>
-</blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-future_status wait_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) const;
-</pre><blockquote><p>
--23- <i>Effects</i>: none if the shared state contains a deferred function (30.6.8 [futures.async]), otherwise 
-blocks until the shared state is ready or until the absolute timeout (30.2.4 [thread.req.timing]) specified by 
-<tt>abs_time</tt> has expired.
-<p/>
--24- <i>Returns</i>: [&hellip;]
-<p/>
-<ins>-??- <i>Throws</i>: timeout-related exceptions (30.2.4 [thread.req.timing]).</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Change 30.6.7 [futures.shared_future] as indicated:</p>
-<blockquote><pre>
-template &lt;class Rep, class Period&gt;
-future_status wait_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time) const;
-</pre><blockquote><p>
--23- <i>Effects</i>: none if the shared state contains a deferred function (30.6.8 [futures.async]), otherwise 
-blocks until the shared state is ready or until the relative timeout (30.2.4 [thread.req.timing]) specified by 
-<tt>rel_time</tt> has expired.
-<p/>
--24- <i>Returns</i>: [&hellip;]
-<p/>
-<ins>-??- <i>Throws</i>: timeout-related exceptions (30.2.4 [thread.req.timing]).</ins>
-</p>
-</blockquote><pre>
-template &lt;class Clock, class Duration&gt;
-future_status wait_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) const;
-</pre><blockquote><p>
--25- <i>Effects</i>: none if the shared state contains a deferred function (30.6.8 [futures.async]), otherwise 
-blocks until the shared state is ready or until the absolute timeout (30.2.4 [thread.req.timing]) specified by 
-<tt>abs_time</tt> has expired.
-<p/>
--26- <i>Returns</i>: [&hellip;]
-<p/>
-<ins>-??- <i>Throws</i>: timeout-related exceptions (30.2.4 [thread.req.timing]).</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2186"></a>2186. Incomplete action on <tt>async/launch::deferred</tt></h3>
-<p><b>Section:</b> 30.6.8 [futures.async] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Vicente J. Botet Escriba <b>Opened:</b> 2012-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.async">issues</a> in [futures.async].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The description of the effects of <tt>async</tt> when the launch policy is <tt>launch::deferred</tt> doesn't 
-state what is done with the result of the deferred function invocation and the possible exceptions as it is done 
-for the asynchronous function when the policy is <tt>launch::async</tt>.
-</p>
-
-<p><i>[2012, Portland: move to Open]</i></p>
-
-<p>
-Detlef: agree with the problem but not with the resolution. The wording should be applied to all launch policies
-        rather than having to be separately specified for each one.
-</p>
-<p>
-Hans: we should redraft to factor out the proposed text outside the two bullets. Needs to be carefully worded to
-      be compatible with the resolution of <a href="lwg-defects.html#2120">2120</a> (see above).
-</p>
-<p>
-Moved to open
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate after SG1 review]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>[This wording is relative to N3376.]</i></p>
-
-
-<ol>
-<li><p>Change 30.6.8 [futures.async] p3 bullet 2 as indicated:</p>
-<blockquote><pre>
-template &lt;class F, class... Args&gt;
-future&lt;typename result_of&lt;typename decay&lt;F&gt;::type(typename decay&lt;Args>::type...)&gt;::type&gt;
-async(F&amp;&amp; f, Args&amp;&amp;... args);
-template &lt;class F, class... Args&gt;
-future&lt;typename result_of&lt;typename decay&lt;F&gt;::type(typename decay&lt;Args&gt;::type...)&gt;::type&gt;
-async(launch policy, F&amp;&amp; f, Args&amp;&amp;... args);
-</pre><blockquote><p>
--2- <i>Requires</i>: [&hellip;]
-<p/>
--3- <i>Effects:</i>: The first function behaves the same as a call to the second function with a <tt>policy</tt> argument of
-<tt>launch::async | launch::deferred</tt> and the same arguments for <tt>F</tt> and <tt>Args</tt>. [&hellip;] The further 
-behavior of the second function depends on the <tt>policy</tt> argument as follows (if more than one of these conditions
-applies, the implementation may choose any of the corresponding policies):
-</p>
-<ul>
-<li><p>if <tt>policy &amp; launch::async</tt> is non-zero [&hellip;]</p></li>
-<li><p>if <tt>policy &amp; launch::deferred</tt> is non-zero &mdash; Stores <tt><i>DECAY_COPY</i>(std::forward&lt;F&gt;(f))</tt> 
-and <tt><i>DECAY_COPY</i>(std::forward&lt;Args>(args))...</tt> in the shared state. These copies of <tt>f</tt> and <tt>args</tt>
-constitute a <em>deferred function</em>. Invocation of the deferred function evaluates <tt><i>INVOKE</i>(std::move(g), std::move(xyz))</tt> 
-where <tt>g</tt> is the stored value of <tt><i>DECAY_COPY</i>(std::forward&lt;F>(f))</tt> and <tt>xyz</tt> is
-the stored copy of <tt><i>DECAY_COPY</i>(std::forward&lt;Args>(args))...</tt>. <ins>Any return value is stored as the 
-result in the shared state. Any exception propagated from the execution of the deferred function is stored as the 
-exceptional result in the shared state.</ins> The shared state is not made ready until the function has completed. 
-The first call to a non-timed waiting function (30.6.4 [futures.state]) on an asynchronous return object referring 
-to this shared state shall invoke the deferred function in the thread that called the waiting function. Once evaluation 
-of <tt><i>INVOKE</i>(std::move(g), std::move(xyz))</tt> begins, the function is no longer considered deferred. 
-[<i>Note</i>: If this policy is specified together with other policies, such as when using a policy value of 
-<tt>launch::async | launch::deferred</tt>, implementations should defer invocation or the selection of the <tt>policy</tt> 
-when no more concurrency can be effectively exploited. &mdash; <i>end note</i>]
-</p></li>
-</ul>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2187"></a>2187. <tt>vector&lt;bool&gt;</tt> is missing <tt>emplace</tt> and <tt>emplace_back</tt> member functions</h3>
-<p><b>Section:</b> 23.3.7 [vector.bool] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nevin Liber <b>Opened:</b> 2012-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.bool">issues</a> in [vector.bool].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-It should have them so that it more closely matches the <tt>vector&lt;T&gt;</tt> interface, as this helps when 
-writing generic code.
-</p>
-
-<p><i>[2012, Portland: Move to Tentatively Ready]</i></p>
-
-<p>
-Question on whether the variadic template is really needed, but it turns out to be needed to support
-<tt>emplace</tt> of no arguments.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change the class template <tt>vector&lt;bool&gt;</tt> synopsis, 23.3.7 [vector.bool] p1, as indicated:</p>
-<blockquote><pre>
-namespace std {
-  template &lt;class Allocator&gt; class vector&lt;bool, Allocator&gt; {
-  public:
-    [&hellip;]
-    <i>// modifiers:</i>
-    <ins>template &lt;class... Args&gt; void emplace_back(Args&amp;&amp;... args);</ins>
-    void push_back(const bool&amp; x);
-    void pop_back();
-    <ins>template &lt;class... Args&gt; iterator emplace(const_iterator position, Args&amp;&amp;... args);</ins>
-    iterator insert(const_iterator position, const bool&amp; x);
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2188"></a>2188. Reverse iterator does not fully support targets that overload <tt>operator&amp;</tt></h3>
-<p><b>Section:</b> 24.5.1.3.5 [reverse.iter.opref] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2012-09-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iter.opref">issues</a> in [reverse.iter.opref].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification for <tt>reverse_iterator::operator-></tt>
-returns the address of the object yielded by dereferencing
-with <tt>operator*</tt>, but does not have the usual
-wording about returning the true address of the object.  As
-<tt>reverse_iterator</tt> requires the adapted iterator have
-at least the bidirectional iterator category, we know that
-the returned reference is a true reference, and not a proxy,
-hence we can use <tt>std::addressof</tt> on the reference
-to get the right answer.
-</p>
-<p>
-This will most likely show itself as an issue with a <tt>list</tt>
-or <tt>vector</tt> of a type with such an overloaded operator,
-where algorithms are likely to work with a forward iteration, but
-not with reverse iteration.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Resolution: Goes to open now and move to review as soon as Daniel proposes a new wording.
-</p>
-
-<p><i>[2014-02-12 Issaquah meeting]</i></p>
-
-<p>
-Use <tt>std::addressof</tt> as the library uses elsewhere, then move as Immediate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Revise 24.5.1.3.5 [reverse.iter.opref] p1, as indicated:
-</p>
-<p>
-<i>Returns:</i> <tt><ins>addressof</ins><del>&amp;(</del>operator*()<del>)</del></tt>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2190"></a>2190. Condition variable specification</h3>
-<p><b>Section:</b> 30.5 [thread.condition] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Hans Boehm <b>Opened:</b> 2012-09-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition">issues</a> in [thread.condition].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The condition variable specification possibly leaves it unclear whether the effect of a <tt>notify_one()</tt> 
-call can effectively be delayed, so that a call unblocks a <tt>wait()</tt> call that happens after the 
-<tt>notify_one</tt> call. (For <tt>notify_all()</tt> this is not detectable, since it only results in spurious 
-wake-ups.)  Although this may at first glance seem like a contrived interpretation, it gains relevance since 
-glibc in fact allows the analogous behavior (see <a href="http://sourceware.org/bugzilla/show_bug.cgi?id=13165">here</a>) 
-and it is currently controversial whether this is correct and the Posix specification allows it (see 
-<a href="http://austingroupbugs.net/view.php?id=609">here</a>).
-</p>
-<p>
-The following proposed resolution disallows the glibc implementation, remaining consistent with the believed intent of C++11.  
-To make that clear, we require that the "unspecified total order" O from 30.5 [thread.condition] p4 be 
-consistent with <em>happens-before</em>.  We also intend that the 3 components of a wait occur in order in O, 
-but stating that explicitly seems too pedantic.  Since they are numbered, it appears clear enough that they are 
-sequenced one after the other.
-</p>
-<p>
-Another uncertainty with the current phrasing is whether there is a single total order that includes all c.v. 
-accesses, or one total order per c.v.  We believe it actually doesn't matter, because there is no way to tell the 
-difference, but this requires a bit more thought.  We resolved it one way, just to remove the potential ambiguity.
-</p>
-
-<p><i>[2012, Portland: Move to Review]</i></p>
-
-<p>
-This is linked to a <a href="http://sourceware.org/bugzilla/show_bug.cgi?id=13165">glibc issue</a>, and
-a <a href="http://austingroupbugs.net/view.php?id=609">POSIX specification issue</a>.
-</p>
-
-<p>
-We believe the proposed wording fixes the ambiguity in C++ and is compatible with the proposed resolution
-for Posix (which confirms the glibc behaviour as illegal).
-</p>
-
-<p>
-Moved to review (Detlef hopes to send some improved wording to the reflector).
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Accepted for the working paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 30.5 [thread.condition] p4 as indicated:</p>
-<blockquote><p>
--4- The implementation shall behave as if <ins>all executions of</ins> <tt>notify_one</tt>, <tt>notify_all</tt>, 
-and each part of the <tt>wait</tt>, <tt>wait_for</tt>, and <tt>wait_until</tt> executions are executed in 
-<del>some</del><ins>a single</ins> unspecified total order <ins>consistent with the "happens before" order</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2193"></a>2193. Default constructors for standard library containers are explicit</h3>
-<p><b>Section:</b> 23 [containers] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2012-10-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#containers">active issues</a> in [containers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#containers">issues</a> in [containers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Most (all?) of the standard library containers have explicit default constructors. Consequently:
-</p>
-<blockquote><pre>
-std::set&lt;int&gt; s1 = { 1, 2 }; // ok
-std::set&lt;int&gt; s2 = { 1 }; // ok
-std::set&lt;int&gt; s3 = {}; // ill-formed, copy-list-initialization selected an explicit constructor
-</pre></blockquote>
-<p>
-Note that Clang + libc++ rejects the declaration of <tt>s3</tt> for this reason. This cannot possibly match the intent.
-</p>
-<p>
-Suggested fix: apply this transformation throughout the standard library:
-</p>
-<blockquote><pre>
-<ins>set() : set(Compare()) {}</ins>
-explicit set(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-
-<p><i>[
-2012-10-06: Daniel adds concrete wording.
-]</i></p>
-
-
-<p><i>[2012, Portland: Move to Open]</i></p>
-
-<p>
-This may be an issue better solved by a core language tweak.  Throw the issue over to EWG and see whether they
-believe the issue is better resolved in Core or Library.
-</p>
-
-<p>
-AJM suggest we spawn a new status of 'EWG' to handle such issues - and will move this issue appropriately when
-the software can record such resolutions.
-</p>
-
-<p><i>[2013-08-27, Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz comments:]</i></p>
-
-
-<p>
-For the record, I'd like to point out that the resolution proposed by the submitter, namely replacing
-</p>
-
-<blockquote><pre>
-explicit basic_string(const Allocator&amp; a = Allocator());
-</pre></blockquote>
-
-<p>
-by
-</p>
-
-<blockquote><pre>
-basic_string() : basic_string(Allocator()) {}
-explicit basic_string(const Allocator&amp; a);
-</pre></blockquote>
-
-<p>
-(and similarly for other container and container-like classes) might introduce a potential
-backwards-compatibility problem related with explicit instantiation. Consider for instance
-</p>
-
-<blockquote><pre>
-struct my_allocator
-{
-  my_allocator(...); // no default ctor
-  ...
-};
-
-template class std::basic_string&lt;char, std::char_traits&lt;char&gt;, my_allocator&lt;char&gt;&gt;;
-</pre></blockquote>
-
-<p>
-This (which I understand is currently a valid explicit instantiation of <tt>std::basic_string</tt>) will break if
-<tt>std::basic_string</tt> ctors are modified as proposed by this issue, since <tt>my_allocator</tt> doesn't have
-a default ctor.
-</p>
-
-<p><i>[2013-10-06, Daniel comments:]</i></p>
-
-
-<p>
-Issue <a href="lwg-active.html#2303">2303</a> describes the more general problem related to explicit instantiation requests in the current
-library and may help to solve this problem here as well.
-</p>
-
-<p><i>[2014-02-13, Issaquah, Jonathan revises wording]</i></p>
-
-
-<p><strong>Previous resolution from Daniel [SUPERSEDED]:</strong></p>
-
-<blockquote class="note">
-
-<p>This wording is relative to N3376.</p>
-
-<p>The more general criterion for performing the suggested transformation was: Any type with an initializer-list 
-constructor that also has an explicit default constructor.</p>
-
-<ol>
-<li><p>Change class template <tt>basic_string</tt> synopsis, 21.4 [basic.string] p5 as indicated:</p>
-<blockquote><pre>
-<ins>basic_string() : basic_string(Allocator()) {}</ins>
-explicit basic_string(const Allocator&amp; a<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.2 [string.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit basic_string(const Allocator&amp; a<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>deque</tt> synopsis, 23.3.3.1 [deque.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>deque() : deque(Allocator()) {}</ins>
-explicit deque(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.3.2 [deque.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit deque(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>forward_list</tt> synopsis, 23.3.4.1 [forwardlist.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>forward_list() : forward_list(Allocator()) {}</ins>
-explicit forward_list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.4.2 [forwardlist.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit forward_list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>list</tt> synopsis, 23.3.5.1 [list.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>list() : list(Allocator()) {}</ins>
-explicit list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.5.2 [list.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>vector</tt> synopsis, 23.3.6.1 [vector.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>vector() : vector(Allocator()) {}</ins>
-explicit vector(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.6.2 [vector.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit vector(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template specialization <tt>vector&lt;bool&gt;</tt> synopsis, 23.3.7 [vector.bool] p1 as indicated:</p>
-<blockquote><pre>
-<ins>vector() : vector(Allocator()) {}</ins>
-explicit vector(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>map</tt> synopsis, 23.4.4.1 [map.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>map() : map(Compare()) {}</ins>
-explicit map(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.4.2 [map.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit map(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>multimap</tt> synopsis, 23.4.5.1 [multimap.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>multimap() : multimap(Compare()) {}</ins>
-explicit multimap(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.5.2 [multimap.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit multimap(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>set</tt> synopsis, 23.4.6.1 [set.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>set() : set(Compare()) {}</ins>
-explicit set(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.6.2 [set.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit set(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>multiset</tt> synopsis, 23.4.7.1 [multiset.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>multiset() : multiset(Compare()) {}</ins>
-explicit multiset(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.7.2 [multiset.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit multiset(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_map</tt> synopsis, 23.5.4.1 [unord.map.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_map() : unordered_map(<i>see below</i>) {}</ins>
-explicit unordered_map(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.4.2 [unord.map.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_map() : unordered_map(<i>see below</i>) {}</ins>
-explicit unordered_map(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_multimap</tt> synopsis, 23.5.5.1 [unord.multimap.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multimap() : unordered_multimap(<i>see below</i>) {}</ins>
-explicit unordered_multimap(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.5.2 [unord.multimap.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multimap() : unordered_multimap(<i>see below</i>) {}</ins>
-explicit unordered_multimap(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_set</tt> synopsis, 23.5.6.1 [unord.set.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_set() : unordered_set(<i>see below</i>) {}</ins>
-explicit unordered_set(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.6.2 [unord.set.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_set() : unordered_set(<i>see below</i>) {}</ins>
-explicit unordered_set(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_multiset</tt> synopsis, 23.5.7.1 [unord.multiset.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multiset() : unordered_multiset(<i>see below</i>) {}</ins>
-explicit unordered_multiset(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.7.2 [unord.multiset.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multiset() : unordered_multiset(<i>see below</i>) {}</ins>
-explicit unordered_multiset(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate after final review]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<p>The more general criterion for performing the suggested transformation was: Any type with an initializer-list 
-constructor that also has an explicit default constructor.</p>
-
-<ol>
-<li><p>Change class template <tt>basic_string</tt> synopsis, 21.4 [basic.string] p5 as indicated:</p>
-<blockquote><pre>
-<ins>basic_string() : basic_string(Allocator()) { }</ins>
-explicit basic_string(const Allocator&amp; a<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.2 [string.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit basic_string(const Allocator&amp; a<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>deque</tt> synopsis, 23.3.3.1 [deque.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>deque() : deque(Allocator()) { }</ins>
-explicit deque(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.3.2 [deque.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit deque(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>forward_list</tt> synopsis, 23.3.4.1 [forwardlist.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>forward_list() : forward_list(Allocator()) { }</ins>
-explicit forward_list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.4.2 [forwardlist.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit forward_list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>list</tt> synopsis, 23.3.5.1 [list.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>list() : list(Allocator()) { }</ins>
-explicit list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.5.2 [list.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit list(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>vector</tt> synopsis, 23.3.6.1 [vector.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>vector() : vector(Allocator()) { }</ins>
-explicit vector(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.3.6.2 [vector.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit vector(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template specialization <tt>vector&lt;bool&gt;</tt> synopsis, 23.3.7 [vector.bool] p1 as indicated:</p>
-<blockquote><pre>
-<ins>vector() : vector(Allocator()) { }</ins>
-explicit vector(const Allocator&amp;<del> = Allocator()</del>);
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>map</tt> synopsis, 23.4.4.1 [map.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>map() : map(Compare()) { }</ins>
-explicit map(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.4.2 [map.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit map(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>multimap</tt> synopsis, 23.4.5.1 [multimap.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>multimap() : multimap(Compare()) { }</ins>
-explicit multimap(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.5.2 [multimap.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit multimap(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>set</tt> synopsis, 23.4.6.1 [set.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>set() : set(Compare()) { }</ins>
-explicit set(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.6.2 [set.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit set(const Compare&amp; comp<del> = Compare()</del>,
-             const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>multiset</tt> synopsis, 23.4.7.1 [multiset.overview] p2 as indicated:</p>
-<blockquote><pre>
-<ins>multiset() : multiset(Compare()) { }</ins>
-explicit multiset(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.7.2 [multiset.cons] before p1 as indicated:</p>
-<blockquote><pre>
-explicit multiset(const Compare&amp; comp<del> = Compare()</del>,
-                  const Allocator&amp; = Allocator());
-</pre></blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_map</tt> synopsis, 23.5.4.1 [unord.map.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_map();</ins>
-explicit unordered_map(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.4.2 [unord.map.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_map() : unordered_map(size_type(<i>see below</i>)) { }</ins>
-explicit unordered_map(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre>
-
--1- <i>Effects:</i> Constructs an empty <code>unordered_map</code> using the specified hash function, key equality func-<br />
-tion, and allocator, and using at least <i>n</i> buckets. <del>If <i>n</i> is not provided,</del> <ins>For the default constructor</ins><br />
-the number of buckets is implementation-defined. <code>max_load_factor()</code> returns 1.0.
-</blockquote>
-
-</li>
-
-<li><p>Change class template <tt>unordered_multimap</tt> synopsis, 23.5.5.1 [unord.multimap.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multimap();</ins>
-explicit unordered_multimap(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.5.2 [unord.multimap.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multimap() : unordered_multimap(size_type(<i>see below</i>)) { }</ins>
-explicit unordered_multimap(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre>
-
--1- <i>Effects:</i> Constructs an empty <code>unordered_multimap</code> using the specified hash function, key equality<br />
-function, and allocator, and using at least <i>n</i> buckets. <del>If <i>n</i> is not provided,</del> <ins>For the default constructor</ins><br />
-the number of buckets is implementation-defined. <code>max_load_factor()</code> returns 1.0.
-
-</blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_set</tt> synopsis, 23.5.6.1 [unord.set.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_set();</ins>
-explicit unordered_set(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.6.2 [unord.set.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_set() : unordered_set(size_type(<i>see below</i>)) { }</ins>
-explicit unordered_set(size_type n<del> = <i>see below</i></del>,
-                       const hasher&amp; hf = hasher(),
-                       const key_equal&amp; eql = key_equal(),
-                       const allocator_type&amp; a = allocator_type());
-</pre>
-
--1- <i>Effects:</i> Constructs an empty <code>unordered_set</code> using the specified hash function, key equality func-<br />
-tion, and allocator, and using at least <i>n</i> buckets. <del>If <i>n</i> is not provided,</del> <ins>For the default constructor</ins><br />
-the number of buckets is implementation-defined. <code>max_load_factor()</code> returns 1.0.
-
-</blockquote>
-</li>
-
-<li><p>Change class template <tt>unordered_multiset</tt> synopsis, 23.5.7.1 [unord.multiset.overview] p3 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multiset();</ins>
-explicit unordered_multiset(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.7.2 [unord.multiset.cnstr] before p1 as indicated:</p>
-<blockquote><pre>
-<ins>unordered_multiset() : unordered_multiset(size_type(<i>see below</i>)) { }</ins>
-explicit unordered_multiset(size_type n<del> = <i>see below</i></del>,
-                            const hasher&amp; hf = hasher(),
-                            const key_equal&amp; eql = key_equal(),
-                            const allocator_type&amp; a = allocator_type());
-</pre>
-
--1- <i>Effects:</i> Constructs an empty <code>unordered_multiset</code> using the specified hash function, key equality<br />
-function, and allocator, and using at least <i>n</i> buckets. <del>If <i>n</i> is not provided,</del> <ins>For the default constructor</ins><br />
-the number of buckets is implementation-defined. <code>max_load_factor()</code> returns 1.0.
-
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2194"></a>2194. Impossible container requirements for adaptor types</h3>
-<p><b>Section:</b> 23.6 [container.adaptors] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Sebastian Mach <b>Opened:</b> 2012-10-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.adaptors">issues</a> in [container.adaptors].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The <tt>stack</tt> class template does not have an member type <tt>iterator</tt>, and therefore instantiations do not 
-meet the general container requirements as described in 23.2.1 [container.requirements.general]. But 
-23.6.1 [container.adaptors.general] p1 says:
-</p>
-<blockquote><p>
-The headers <tt>&lt;queue&gt;</tt> and <tt>&lt;stack&gt;</tt> define the container adaptors <tt>queue</tt>, 
-<tt>priority_queue</tt>, and <tt>stack</tt>. These container adaptors meet the requirements for sequence containers.
-</p></blockquote>
-<p>
-Since sequence containers is a subset of general containers, this imposes requirements on the container adaptors that
-are not satisfied.
-</p>
-<p>
-<u>Daniel Kr&uuml;gler</u>: The wording change was performed as an editorial reorganization as requested
-by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3296.html#GB116">GB 116</a> occuring first in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf">N3242</a>, as a side-effect it 
-does now make the previous implicit C++03 classification to [lib.sequences]/1 more obvious. As the NB comment
-noticed, the adaptors really are not sequences nor containers, so this wording needs to be fixed.
-The most simple way to realize that is to strike the offending sentence.
-</p>
-
-<p><i>[
-Daniel adds concrete wording.
-]</i></p>
-
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-
-<p>
-Unanimous consensus that <tt>queue</tt> and <tt>stack</tt> are not meant to be sequences.
-<p/>
-Decision: move to tentatively ready 
-</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>
-Apply to Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 23.6.1 [container.adaptors.general] p1 as indicated:</p>
-<blockquote><p>
--1- The headers <tt>&lt;queue&gt;</tt> and <tt>&lt;stack&gt;</tt> define the container adaptors <tt>queue</tt>, 
-<tt>priority_queue</tt>, and <tt>stack</tt>. <del>These container adaptors meet the requirements for sequence containers.</del>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2196"></a>2196. Specification of <tt>is_*[copy/move]_[constructible/assignable]</tt> unclear for non-referencable types</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-10-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The pre-conditions for the type <tt>is_copy_constructible</tt> allow for template argument types were the language forbids 
-forming a reference, namely <tt>void</tt> types and function types that have <em>cv</em>-qualifiers or a <em>ref</em>-qualifier.
-<p/>
-But the current wording in Table 49 defining the predicate condition,
-</p>
-<blockquote><p>
-<tt>is_constructible&lt;T, const T&amp;&gt;::value</tt> is <tt>true</tt>.
-</p></blockquote>
-<p>
-leaves it open whether such argument types would (a) create a well-formed instantiation of the trait template or if so (b) what
-the outcome of the trait evaluation would be, as an example consider <tt>std::is_copy_constructible&lt;void&gt;</tt>.
-<p/>
-Current implementations differ, e.g. gcc accepts the instantiation and returns a false result, VS 2012
-also accepts the instantiation but returns true.
-<p/>
-I would suggest that the wording clarifies that the instantiation would be valid for these types and I also would strongly 
-prefer the outcome that the trait would always return false for these types. The latter seems rather natural
-to me, because there is no way to define a variable of <tt>void</tt> type or of function type at all, so it would be surprising
-to return a positive result for copy or move construction if no other construction could succeed. It is also not 
-possible to assign to a any of these values (because there is no way to form lvalues of them), so the same argumentation 
-can be applied to the <tt>is_copy/move_assignable</tt> traits as well.
-<p/>
-To reduce the amount of wording changes and repetitions, I suggest to define the term <em>referenceable type</em> in 
-sub-clause 17.3 [definitions] or alternatively in the core language to describe types to which references
-can be created via a typedef name. This definition corresponds to what the support concept <tt>ReferentType</tt> intended 
-to describe during concept time.
-<p/>
-In addition, LWG issue <a href="lwg-active.html#2101">2101</a> can also take advantage of the definition of a <em>referenceable type</em>.
-<p/>
-If the proposed resolution for LWG issue <a href="lwg-active.html#2101">2101</a> would be accepted, there is an alternative solution possible
-with the same effects. Now we would be able to use the now always well-formed instantiation of 
-<tt>std::add_lvalue_reference</tt> to modify the current definition of <tt>is_copy_constructible</tt> to
-</p>
-<blockquote><p>
-<tt>is_constructible&lt;T,<br/> 
-    typename add_lvalue_reference&lt;<br/> 
-	typename add_const&lt;T&gt;::type&gt;::type&gt;::value</tt> is true.
-</p></blockquote>
-<p>
-and similar changes for the other affected traits.
-</p>
-
-<p><i>[2012-10 Portland: Move to Open]</i></p>
-
-<p>
-Referencable-type should be defined as "something that can be bound into a reference" or similar,
-rather than a list of types where that is true today.  We can then provide the list of known types
-that cannot be bound as examples that do not qualify in a note.
-</p>
-
-<p>
-Otherwise we are happy with the wording.  AJM to redraft the definition and move to Review.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Add the following new definition to 17.3 [definitions] as indicated:</p>
-<p><b>referenceable type</b> [defns.referenceable]</p>
-<blockquote><p>
-An object type, a function type that does not have <em>cv</em>-qualifiers or a <em>ref</em>-qualifier, or a reference type.
-[<i>Note</i>: The term describes a type to which a reference can be created, including reference types. &mdash; <i>end note</i>]
-</p></blockquote>
-</li>
-
-<li><p>Change Table 49 as indicated:</p>
-
-<table border="1">
-<caption>Table 49 &mdash; Type property predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Preconditions</th>
-</tr> 
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_copy_constructible;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_constructible&lt;T,</tt><br/>
-<tt>const T&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_move_constructible;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_constructible&lt;T,</tt><br/>
-<tt>T&amp;&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_copy_assignable;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_assignable&lt;T&amp;,</tt><br/>
-<tt>const T&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_move_assignable;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_assignable&lt;T&amp;,</tt><br/>
-<tt>T&amp;&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_trivially_copy_constructible;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_trivially_constructible&lt;T,</tt><br/>
-<tt>const T&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_trivially_move_constructible;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_trivially_constructible&lt;T,</tt><br/>
-<tt>T&amp;&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_trivially_copy_assignable;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_trivially_assignable&lt;T&amp;,</tt><br/>
-<tt>const T&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_trivially_move_assignable;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_trivially_assignable&lt;T&amp;,</tt><br/>
-<tt>T&amp;&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_nothrow_copy_constructible;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_nothrow_constructible&lt;T,</tt><br/>
-<tt>const T&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_nothrow_move_constructible;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_nothrow_constructible&lt;T,</tt><br/>
-<tt>T&amp;&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_nothrow_copy_assignable;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_nothrow_assignable&lt;T&amp;,</tt><br/>
-<tt>const T&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_nothrow_move_assignable;</tt>
-</td>
-<td>
-<ins>For a referenceable type <tt>T</tt>, the same result as</ins><br/>
-<tt>is_nothrow_assignable&lt;T&amp;,</tt><br/>
-<tt>T&amp;&amp;&gt;::value</tt><del> is true</del><ins>, otherwise false</ins>.
-</td>
-<td>
-<tt>T</tt> shall be a complete type,<br/>
-(possibly <em>cv</em>-qualified) <tt>void</tt>, or an<br/> 
-array of unknown bound.
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2197"></a>2197. Specification of <tt>is_[un]signed</tt> unclear for non-arithmetic types</h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2012-10-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The pre-conditions for the trait <tt>is_signed</tt> allow for any types as template arguments, 
-including non-arithmetic ones.
-<p/>
-But the current wording in Table 49 defining the predicate condition,
-</p>
-<blockquote><pre>
-is_arithmetic&lt;T&gt;::value &amp;&amp; T(-1) &lt; T(0)
-</pre></blockquote>
-<p>
-looks like real code and so leaves it open whether such argument types would create a well-formed 
-instantiation of the trait template or not. As written this definition would lead to a hard
-instantiation error for a non-arithmetic type like e.g.
-</p>
-<blockquote><pre>
-struct S {};
-</pre></blockquote>
-<p>
-I would suggest that the wording clarifies that the instantiation would be valid for such types as well,
-by means of a specification that is not an exact code pattern. This also reflects how existing 
-implementations behave.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change Table 49 as indicated:</p>
-
-<table border="1">
-<caption>Table 49 &mdash; Type property predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Preconditions</th>
-</tr> 
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_signed;</tt>
-</td>
-<td>
-<ins>If </ins><tt>is_arithmetic&lt;T&gt;::value<del> &amp;&amp;</del></tt><ins> is true, the same result as</ins><br/>
-<tt><ins>integral_constant&lt;bool,</ins> T(-1) &lt; T(0)<ins>&gt;::value</ins></tt><ins>;<br/>
-otherwise, false.</ins>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;</tt><br/>
-<tt>struct is_unsigned;</tt>
-</td>
-<td>
-<ins>If </ins><tt>is_arithmetic&lt;T&gt;::value<del> &amp;&amp;</del></tt><ins> is true, the same result as</ins><br/>
-<tt><ins>integral_constant&lt;bool,</ins> T(0) &lt; T(-1)<ins>&gt;::value</ins></tt><ins>;<br/>
-otherwise, false.</ins>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-</table>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2200"></a>2200. Data race avoidance for all containers, not only for sequences</h3>
-<p><b>Section:</b> 23.2.2 [container.requirements.dataraces] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-10-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.dataraces">issues</a> in [container.requirements.dataraces].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-23.2.2 [container.requirements.dataraces]/2 says "[&hellip;] implementations are
-required to avoid data races when the contents of the contained object in different 
-elements in the same sequence, excepting <tt>vector&lt;bool&gt;</tt>, are modified 
-concurrently."
-</p>
-<p>
-This should say "same container" instead of "same sequence", to avoid
-the interpretation that it only applies to sequence containers.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 23.2.2 [container.requirements.dataraces]/2 as indicated:</p>
-<blockquote><p>
--2- Notwithstanding (17.6.5.9 [res.on.data.races]), implementations are required to avoid data races when 
-the contents of the contained object in different elements in the same <del>sequence</del><ins>container</ins>, 
-excepting <tt>vector&lt;bool&gt;</tt>, are modified concurrently.
-<p/>
--3- [<i>Note</i>: For a <tt>vector&lt;int&gt; x</tt> with a size greater than one, <tt>x[1] = 5</tt> and 
-<tt>*x.begin() = 10</tt> can be executed concurrently without a data race, but <tt>x[0] = 5</tt> and 
-<tt>*x.begin() = 10</tt> executed concurrently may result in a data race. As an exception to the general 
-rule, for a <tt>vector&lt;bool&gt; y, y[0] = true</tt> may race with <tt>y[1] = true</tt>. &mdash; <i>end note</i> ]
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2203"></a>2203. <tt>scoped_allocator_adaptor</tt> uses wrong argument types for piecewise construction</h3>
-<p><b>Section:</b> 20.13.4 [allocator.adaptor.members] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-10-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.adaptor.members">issues</a> in [allocator.adaptor.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-In 20.13.4 [allocator.adaptor.members] paragraph 11 the effects
-clause says a tuple should be constructed with <tt>inner_allocator_type()</tt>,
-but that creates an rvalue which cannot bind to <tt>inner_allocator_type&amp;</tt>,
-and would also be wrong if <tt>this->inner_allocator() != inner_allocator_type()</tt>.  
-This could be considered editorial, since the current wording doesn't even compile.
-</p>
-<p>
-Secondly, in the same paragraph, the tuple objects <tt>xprime</tt> and <tt>yprime</tt>
-seem to be lvalues and might be constructed by copying <tt>x</tt> and <tt>y</tt>. This
-prevents using <tt>scoped_allocator</tt> to construct pairs from arguments of
-move-only types.  I believe the <tt>tuple_cast()</tt> expressions should use
-<tt>std::move(x)</tt> and <tt>std::move(y)</tt> to move from the incoming arguments
-(which are passed by value to candidates for moving) and the final sentence of the paragraph 
-should be:
-</p>
-<p>
-then calls <tt>OUTERMOST_ALLOC_TRAITS(*this)::construct(OUTERMOST (*this), p, piecewise_construct, 
-std::move(xprime), std::move(yprime))</tt>.
-</p>
-<p>
-so that the objects are passed to <tt>std::pair</tt>'s piecewise constructor as rvalues and 
-are eligible for moving into the constructor arguments. This could also be considered editorial, 
-as the current wording prevents certain uses which were intended to be supported.
-<p/>
-I've implemented these changes and can confirm they allow code to work that can't be compiled 
-according to the current wording.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-The resolution looks good, with wording provided by a recent implementer.  However, it will take more
-time than the telecon allows to review with confidence, and we would like Pablo to at least take a
-look over the resolution and confirm that it matches the design intent.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change 20.13.4 [allocator.adaptor.members] paragraph 11 as indicated:</p>
-
-<blockquote>
-<p>
--11- <i>Effects</i>: Constructs a <tt>tuple</tt> object <tt>xprime</tt> from <tt>x</tt> by the following rules:
-</p>
-<ul>
-<li><p>
-If <tt>uses_allocator&lt;T1, inner_allocator_type&gt;::value</tt> is <tt>false</tt> and 
-<tt>is_constructible&lt;T1, Args1...&gt;::value</tt> is <tt>true</tt>, then <tt>xprime</tt> is <tt>x</tt>.
-</p></li>
-
-<li><p>
-Otherwise, if <tt>uses_allocator&lt;T1, inner_allocator_type&gt;::value</tt> is <tt>true</tt> and 
-<tt>is_constructible&lt;T1, allocator_arg_t, inner_allocator_type, Args1...&gt;::value</tt> is <tt>true</tt>, 
-then <tt>xprime</tt> is <tt>tuple_cat(tuple&lt;allocator_arg_t, inner_allocator_type&amp;&gt;( allocator_arg, 
-inner_allocator<del>_type</del>()), <ins>std::move(</ins>x<ins>)</ins>)</tt>.
-</p></li>
-
-<li><p>
-Otherwise, if <tt>uses_allocator&lt;T1, inner_allocator_type&gt;::value</tt> is <tt>true</tt> and 
-<tt>is_constructible&lt;T1, Args1..., inner_allocator_type&gt;::value</tt> is <tt>true</tt>, then <tt>xprime</tt> 
-is <tt>tuple_cat(<ins>std::move(</ins>x<ins>)</ins>, 
-tuple&lt;inner_allocator_type&amp;&gt;(inner_allocator<del>_type</del>()))</tt>.
-</p></li>
-
-<li><p>
-Otherwise, the program is ill-formed.
-</p></li>
-</ul>
-<p>
-and constructs a <tt>tuple</tt> object <tt>yprime</tt> from <tt>y</tt> by the following rules:
-</p>
-<ul>
-<li><p>
-If <tt>uses_allocator&lt;T2, inner_allocator_type&gt;::value</tt> is <tt>false</tt> and 
-<tt>is_constructible&lt;T2, Args2...&gt;::value</tt> is <tt>true</tt>, then <tt>yprime</tt> is <tt>y</tt>.
-</p></li>
-
-<li><p>
-Otherwise, if <tt>uses_allocator&lt;T2, inner_allocator_type&gt;::value</tt> is <tt>true</tt> and 
-<tt>is_constructible&lt;T2, allocator_arg_t, inner_allocator_type, Args2...&gt;::value</tt> is <tt>true</tt>, 
-then <tt>yprime</tt> is <tt>tuple_cat(tuple&lt;allocator_arg_t, inner_allocator_type&amp;&gt;( allocator_arg, 
-inner_allocator<del>_type</del>()), <ins>std::move(</ins>y<ins>)</ins>)</tt>.
-</p></li>
-
-<li><p>
-Otherwise, if <tt>uses_allocator&lt;T2, inner_allocator_type&gt;::value</tt> is <tt>true</tt> and 
-<tt>is_constructible&lt;T2, Args2..., inner_allocator_type&gt;::value</tt> is <tt>true</tt>, then <tt>yprime</tt> 
-is <tt>tuple_cat(<ins>std::move(</ins>y<ins>)</ins>, 
-tuple&lt;inner_allocator_type&amp;&gt;(inner_allocator<del>_type</del>()))</tt>.
-</p></li>
-
-<li><p>
-Otherwise, the program is ill-formed.
-</p></li>
-</ul>
-<p>
-then calls <tt><i>OUTERMOST_ALLOC_TRAITS</i>(*this)::construct(<i>OUTERMOST</i>(*this), p,
-piecewise_construct, <ins>std::move(</ins>xprime<ins>)</ins>, <ins>std::move(</ins>yprime<ins>)</ins>)</tt>.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2205"></a>2205. Problematic postconditions of <tt>regex_match</tt> and <tt>regex_search</tt></h3>
-<p><b>Section:</b> 28.11.2 [re.alg.match], 28.11.3 [re.alg.search] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-10-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.alg.match">issues</a> in [re.alg.match].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-Table 142 lists post-conditions on the <tt>match_results</tt> object when a call to <tt>regex_match</tt> succeeds. 
-<tt>regex_match</tt> is required to match the entire target sequence. The post-condition for <tt>m[0].matched</tt> 
-is "true if a full match was found." Since these are conditions for a successful search which is, by definition, 
-a full match, the post-condition should be simply "true".
-</p>
-<p>
-There's an analogous probem in Table 143: the condition for <tt>m[0].matched</tt> is "true if a match was found, 
-false otherwise." But Table 143 gives post-conditions for a successful match, so the condition should be simply 
-"true".
-</p>
-<p>
-Furthermore, they have explicit requirements for <tt>m[0].first</tt>, <tt>m[0].second</tt>, and <tt>m[0].matched</tt>. 
-They also have requirements for the other elements of <tt>m</tt>, described as <tt>m[n].first</tt>, <tt>m[n].second</tt>, 
-and <tt>m[n].matched</tt>, in each case qualifying the value of <tt>n</tt> as "for <tt>n &lt; m.size()</tt>". Since 
-there is an explicit description for <tt>n == 0</tt>, this qualification should be "for <tt>0 &lt; n &lt; m.size()</tt>" 
-in all 6 places.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Change Table 142 as indicated:</p>
-
-<table border="1">
-<caption>Table 142 &mdash; Effects of <tt>regex_match</tt> algorithm</caption>
-<tr>
-<th>Element</th>
-<th>Value</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[0].first</tt>
-</td>
-<td>
-<tt>first</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[0].second</tt>
-</td>
-<td>
-<tt>last</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[0].matched</tt>
-</td>
-<td>
-<tt>true</tt> <del>if a full match was found.</del>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[n].first</tt>
-</td>
-<td>
-For all integers <tt><ins>0 &lt;</ins> n &lt; m.size()</tt>, the start of the sequence
-that matched sub-expression <tt>n</tt>.<br/> 
-Alternatively, if subexpression <tt>n</tt> did not participate in the match, then <tt>last</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[n].second</tt>
-</td>
-<td>
-For all integers <tt><ins>0 &lt;</ins> n &lt; m.size()</tt>, the end of the sequence that
-matched sub-expression <tt>n</tt>.<br/> 
-Alternatively, if sub-expression <tt>n</tt> did not participate in the match, then <tt>last</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[n].matched</tt>
-</td>
-<td>
-For all integers <tt><ins>0 &lt;</ins> n &lt; m.size()</tt>, <tt>true</tt> if sub-expression 
-<tt>n</tt> participated in the match, <tt>false</tt> otherwise.
-</td>
-</tr>
-
-</table>
-</li>
-
-<li><p>Change Table 143 as indicated:</p>
-
-<table border="1">
-<caption>Table 143 &mdash; Effects of <tt>regex_search</tt> algorithm</caption>
-<tr>
-<th>Element</th>
-<th>Value</th>
-</tr> 
-
-<tr>
-<td colspan="2" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[0].first</tt>
-</td>
-<td>
-The start of the sequence of characters that matched the regular expression
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[0].second</tt>
-</td>
-<td>
-The end of the sequence of characters that matched the regular expression
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[0].matched</tt>
-</td>
-<td>
-<tt>true</tt> <del>if a match was found, and false otherwise.</del>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[n].first</tt>
-</td>
-<td>
-For all integers <tt><ins>0 &lt;</ins> n &lt; m.size()</tt>, the start of the sequence
-that matched sub-expression <tt>n</tt>.<br/> 
-Alternatively, if subexpression <tt>n</tt> did not participate in the match, then <tt>last</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[n].second</tt>
-</td>
-<td>
-For all integers <tt><ins>0 &lt;</ins> n &lt; m.size()</tt>, the end of the sequence that
-matched sub-expression <tt>n</tt>.<br/> 
-Alternatively, if sub-expression <tt>n</tt> did not participate in the match, then <tt>last</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>m[n].matched</tt>
-</td>
-<td>
-For all integers <tt><ins>0 &lt;</ins> n &lt; m.size()</tt>, <tt>true</tt> if sub-expression 
-<tt>n</tt> participated in the match, <tt>false</tt> otherwise.
-</td>
-</tr>
-
-</table>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2207"></a>2207. <tt>basic_string::at</tt> should not have a Requires clause</h3>
-<p><b>Section:</b> 21.4.5 [string.access] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nevin Liber <b>Opened:</b> 2012-10-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.access">issues</a> in [string.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-<tt>basic_string::at()</tt> has a wide contract and should not have a "Requires" clause on it.
-</p>
-
-<p><i>[2013-01-17, Juan Soulie comments]</i></p>
-
-
-<p>This issue would also apply to every member function of <tt>basic_string</tt> that throws 
-<tt>out_of_range</tt>, and to some cases where a <tt>length_error</tt> can be thrown.</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-While this could simply move to Ready on inspection, there is concern that this will not be the
-only such case.  Alisdair volunteers to review clause 21/23 for more of such issues for Bristol,
-and update the proposed resolution as necessary.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Remove 21.4.5 [string.access] p5:</p>
-
-<blockquote><pre>
-const_reference at(size_type pos) const;
-reference at(size_type pos);
-</pre><blockquote>
-<p>
-<del>-5- <i>Requires</i>: <tt>pos &lt; size()</tt></del>
-<p/>
--6- <i>Throws</i>: <tt>out_of_range</tt> if <tt>pos &gt;= size()</tt>.
-<p/>
--7- <i>Returns</i>: <tt>operator[](pos)</tt>.
-</p>
-</blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2209"></a>2209. <tt>assign()</tt> overspecified for sequence containers</h3>
-<p><b>Section:</b> 23.3 [sequences] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-10-31 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequences">issues</a> in [sequences].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-DR <a href="lwg-defects.html#704">704</a> ensures allocator-aware containers can reuse existing
-elements during copy/move assignment, and sequence containers can do
-the same for <tt>assign()</tt>.
-<p/>
-But apart from <tt>std::list</tt> (which was changed by DR <a href="lwg-defects.html#320">320</a>) the sequence
-containers define the Effects of <tt>assign()</tt> in terms of <tt>clear()</tt> followed
-by <tt>insert</tt>.  A user-defined allocator can easily tell whether all old
-elements are cleared and then new elements inserted or whether existing elements are assigned 
-to, so those Effects clauses cannot be ignored via the as-if rule.
-<p/>
-The descriptions of the <tt>assign()</tt> members for <tt>deque</tt>, <tt>forward_list</tt> and
-<tt>vector</tt> should be removed.  Their intended effects are entirely described by the 
-sequence container requirements table, and the specific definitions of them are worse than 
-redundant, they're contradictory (if the operations are defined in terms of <tt>erase</tt> and
-<tt>insert</tt> then there's no need for elements to be assignable.)  The descriptions of 
-<tt>assign()</tt> for <tt>list</tt> are correct but redundant, so should be removed too.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3376.</p>
-
-<ol>
-<li><p>Edit 23.3.3.2 [deque.cons] to remove everything after paragraph 10:</p>
-
-<blockquote>
-<pre>
-<del>template &lt;class InputIterator&gt;
-void assign(InputIterator first, InputIterator last);</del>
-</pre>
-<blockquote>
-<p>
-<del>-11- <i>Effects</i>:</del>
-</p>
-<blockquote><pre>
-<del>erase(begin(), end());
-insert(begin(), first, last);</del>
-</pre></blockquote>
-</blockquote>
-
-<pre>
-<del>void assign(size_type n, const T&amp; t);</del>
-</pre>
-<blockquote>
-<p>
-<del>-12- <i>Effects</i>:</del>
-</p>
-<blockquote><pre>
-<del>erase(begin(), end());
-insert(begin(), n, t);</del>
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li><p>Edit 23.3.4.2 [forwardlist.cons] to remove everything after paragraph 10:</p>
-
-<blockquote>
-<pre>
-<del>template &lt;class InputIterator&gt;
-void assign(InputIterator first, InputIterator last);</del>
-</pre>
-<blockquote>
-<p>
-<del>-11- <i>Effects</i>: <tt>clear(); insert_after(before_begin(), first, last);</tt></del>
-</p>
-</blockquote>
-
-<pre>
-<del>void assign(size_type n, const T&amp; t);</del>
-</pre>
-<blockquote>
-<p>
-<del>-12- <i>Effects</i>: <tt>clear(); insert_after(before_begin(), n, t);</tt></del>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li><p>Edit 23.3.5.2 [list.cons] to remove everything after paragraph 10:</p>
-
-<blockquote>
-<pre>
-<del>template &lt;class InputIterator&gt;
-void assign(InputIterator first, InputIterator last);</del>
-</pre>
-<blockquote>
-<p>
-<del>-11- <i>Effects</i>: Replaces the contents of the list with the range <tt>[first, last)</tt>.</del>
-</p>
-</blockquote>
-
-<pre>
-<del>void assign(size_type n, const T&amp; t);</del>
-</pre>
-<blockquote>
-<p>
-<del>-12- <i>Effects</i>: Replaces the contents of the list with <tt>n</tt> copies of <tt>t</tt>.</del>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li><p>Edit 23.3.6.2 [vector.cons] to remove everything after paragraph 10:</p>
-
-<blockquote>
-<pre>
-<del>template &lt;class InputIterator&gt;
-void assign(InputIterator first, InputIterator last);</del>
-</pre>
-<blockquote>
-<p>
-<del>-11- <i>Effects</i>:</del>
-</p>
-<blockquote><pre>
-<del>erase(begin(), end());
-insert(begin(), first, last);</del>
-</pre></blockquote>
-</blockquote>
-
-<pre>
-<del>void assign(size_type n, const T&amp; t);</del>
-</pre>
-<blockquote>
-<p>
-<del>-12- <i>Effects</i>:</del>
-</p>
-<blockquote><pre>
-<del>erase(begin(), end());
-insert(begin(), n, t);</del>
-</pre></blockquote>
-</blockquote>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2210"></a>2210. Missing allocator-extended constructor for allocator-aware containers</h3>
-<p><b>Section:</b> 23.3 [sequences], 23.4 [associative], 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-11-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequences">issues</a> in [sequences].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The <tt>forward_list(size_type)</tt> constructor has no allocator-extended
-equivalent, preventing the following code from compiling:
-</p>
-<blockquote><pre>
-#include &lt;forward_list&gt;
-#include &lt;vector&gt;
-#include &lt;scoped_allocator&gt;
-
-using namespace std;
-
-int main()
-{
-  using list = forward_list&lt;int&gt;;
-  vector&lt;list, scoped_allocator_adaptor&lt;list::allocator_type&gt;&gt; v;
-  v.emplace_back(1u);
-}
-</pre></blockquote>
-<p>
-The very same problem exists for all allocator-aware sequence containers.
-<p/>
-In addition it exists for associative containers. For example, it's possible to construct 
-<tt>std::set&lt;int&gt;{0, 1, 2}</tt> but not <tt>std::set&lt;int&gt;{{0, 1, 2}, alloc}</tt>, 
-and possible to construct <tt>std::set&lt;int&gt;{begin, end}</tt> but not 
-<tt>std::set&lt;int&gt;{begin, end, alloc}</tt>.
-<p/>
-This makes the following program fail when <tt>SCOPED</tt> is defined:
-</p>
-<blockquote><pre>
-#include &lt;set&gt;
-#include &lt;vector&gt;
-#include &lt;scoped_allocator&gt;
-
-#if SCOPED
-using A = std::scoped_allocator_adaptor&lt;std::allocator&lt;int&gt;&gt;;
-#else
-using A = std::allocator&lt;int&gt;;
-#endif
-
-int main()
-{
-  int values[] = {0, 1, 2};
-  std::vector&lt;std::set&lt;int&gt;, A&gt; v;
-  v.emplace_back(std::begin(values), std::end(values));
-}
-</pre></blockquote>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-Jonathan: There are lots of places where this is missing.
-</p>
-<p>
-Howard: We should ping Pablo, this might be a deliberate design decision.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit the synopsis in 23.3.3.1 [deque.overview]/2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class T, class Allocator = allocator&lt;T&gt; &gt;
-  class deque {
-  public:
-    [&hellip;]
-    explicit deque(const Allocator&amp; = Allocator());
-    explicit deque(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.3.2 [deque.cons]/2:</p>
-
-<blockquote>
-<pre>
-explicit deque(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>: Constructs a <tt>deque</tt> with <tt>n</tt> default-inserted elements
-<ins>using the specified allocator</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit the synopsis in 23.3.4.1 [forwardlist.overview]/3:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class T, class Allocator = allocator&lt;T&gt; &gt;
-  class forward_list {
-  public:
-    [&hellip;]
-    explicit forward_list(const Allocator&amp; = Allocator());
-    explicit forward_list(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.4.2 [forwardlist.cons]/3:</p>
-
-<blockquote>
-<pre>
-explicit forward_list(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>: Constructs a <tt>forward_list</tt> object with <tt>n</tt> default-inserted elements
-<ins>using the specified allocator</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit the synopsis in 23.3.5.1 [list.overview]/2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class T, class Allocator = allocator&lt;T&gt; &gt;
-  class list {
-  public:
-    [&hellip;]
-    explicit list(const Allocator&amp; = Allocator());
-    explicit list(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.5.2 [list.cons]/3:</p>
-
-<blockquote>
-<pre>
-explicit list(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>: Constructs a <tt>list</tt> with <tt>n</tt> default-inserted elements
-<ins>using the specified allocator</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit the synopsis in 23.3.6.1 [vector.overview]/2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class T, class Allocator = allocator&lt;T&gt; &gt;
-  class vector {
-  public:
-    [&hellip;]
-    explicit vector(const Allocator&amp; = Allocator());
-    explicit vector(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.6.2 [vector.cons]/3:</p>
-
-<blockquote>
-<pre>
-explicit vector(size_type n<ins>, const Allocator&amp; = Allocator()</ins>);
-</pre>
-<blockquote>
-<p>
--3- <i>Effects</i>: Constructs a <tt>vector</tt> with <tt>n</tt> default-inserted elements
-<ins>using the specified allocator</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit the synopsis in 23.3.7 [vector.bool]/1:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Allocator&gt; class vector&lt;bool, Allocator&gt; {
-  class vector {
-  public:
-    [&hellip;]
-    explicit vector(const Allocator&amp; = Allocator());
-    <ins>explicit vector(size_type n, const Allocator&amp; = Allocator());</ins>
-    <del>explicit</del> vector(size_type n, const bool&amp; value<del> = bool()</del>,
-                    const Allocator&amp; = Allocator());
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.4.4.1 [map.overview] p2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key, class T, class Compare = less&lt;Key&gt;,
-    class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt; {
-  class map {
-  public:
-    [&hellip;]
-    map(initializer_list&lt;value_type&gt;,
-      const Compare&amp; = Compare(),
-      const Allocator&amp; = Allocator());
-    <ins>template &lt;class InputIterator&gt;
-    map(InputIterator first, InputIterator last, const Allocator&amp; a)
-      : map(first, last, Compare(), a) { }
-    map(initializer_list&lt;value_type&gt; il, const Allocator&amp; a)
-      : map(il, Compare(), a) { }</ins>
-    ~map();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.4.5.1 [multimap.overview] p2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key, class T, class Compare = less&lt;Key&gt;,
-    class Allocator = allocator&lt;pair&lt;const Key, T&gt; &gt; &gt; {
-  class multimap {
-  public:
-    [&hellip;]
-    multimap(initializer_list&lt;value_type&gt;,
-      const Compare&amp; = Compare(),
-      const Allocator&amp; = Allocator());
-    <ins>template &lt;class InputIterator&gt;
-    multimap(InputIterator first, InputIterator last, const Allocator&amp; a)
-      : multimap(first, last, Compare(), a) { }
-    multimap(initializer_list&lt;value_type&gt; il, const Allocator&amp; a)
-      : multimap(il, Compare(), a) { }</ins>
-    ~multimap();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.4.6.1 [set.overview] p2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key, class Compare = less&lt;Key&gt;,
-    class Allocator = allocator&lt;Key&gt; &gt; {
-  class set {
-  public:
-    [&hellip;]
-    set(initializer_list&lt;value_type&gt;,
-      const Compare&amp; = Compare(),
-      const Allocator&amp; = Allocator());
-    <ins>template &lt;class InputIterator&gt;
-    set(InputIterator first, InputIterator last, const Allocator&amp; a)
-      : set(first, last, Compare(), a) { }
-    set(initializer_list&lt;value_type&gt; il, const Allocator&amp; a)
-      : set(il, Compare(), a) { }</ins>
-    ~set();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.4.7.1 [multiset.overview] p2:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key, class Compare = less&lt;Key&gt;,
-    class Allocator = allocator&lt;Key&gt; &gt; {
-  class multiset {
-  public:
-    [&hellip;]
-    multiset(initializer_list&lt;value_type&gt;,
-      const Compare&amp; = Compare(),
-      const Allocator&amp; = Allocator());
-    <ins>template &lt;class InputIterator&gt;
-    multiset(InputIterator first, InputIterator last, const Allocator&amp; a)
-      : multiset(first, last, Compare(), a) { }
-    multiset(initializer_list&lt;value_type&gt; il, const Allocator&amp; a)
-      : multiset(il, Compare(), a) { }</ins>
-    ~multiset();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.5.4.1 [unord.map.overview] p3:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key, class T,
-    class Hash = hash&lt;Key&gt;,
-    class Pred = std::equal_to&lt;Key&gt;,
-    class Allocator = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt; {
-  class unordered_map {
-  public:
-    [&hellip;]
-    unordered_map(initializer_list&lt;value_type&gt;,
-      size_type = <em>see below</em>,
-      const hasher&amp; hf = hasher(),
-      const key_equal&amp; eql = key_equal(),
-      const allocator_type&amp; a = allocator_type());
-    <ins>unordered_map(size_type n, const allocator_type&amp; a)
-      : unordered_map(n, hasher(), key_equal(), a) { }
-    unordered_map(size_type n, const hasher&amp; hf, const allocator_type&amp; a)
-      : unordered_map(n, hf, key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_map(InputIterator f, InputIterator l, size_type n, const allocator_type&amp; a)
-      : unordered_map(f, l, n, hasher(), key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_map(InputIterator f, InputIterator l, size_type n, const hasher&amp; hf, 
-	    const allocator_type&amp; a)
-      : unordered_map(f, l, n, hf, key_equal(), a) { }
-    unordered_map(initializer_list&lt;value_type&gt; il, size_type n, const allocator_type&amp; a)
-      : unordered_map(il, n, hasher(), key_equal(), a) { }
-    unordered_map(initializer_list&lt;value_type&gt; il, size_type n, const hasher&amp; hf, 
-	  const allocator_type&amp; a)
-      : unordered_map(il, n, hf, key_equal(), a) { }</ins>
-    ~unordered_map();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.5.5.1 [unord.multimap.overview] p3:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key, class T,
-    class Hash = hash&lt;Key&gt;,
-    class Pred = std::equal_to&lt;Key&gt;,
-    class Allocator = std::allocator&lt;std::pair&lt;const Key, T&gt; &gt; &gt; {
-  class unordered_multimap {
-  public:
-    [&hellip;]
-    unordered_multimap(initializer_list&lt;value_type&gt;,
-      size_type = <em>see below</em>,
-      const hasher&amp; hf = hasher(),
-      const key_equal&amp; eql = key_equal(),
-      const allocator_type&amp; a = allocator_type());
-    <ins>unordered_multimap(size_type n, const allocator_type&amp; a)
-      : unordered_multimap(n, hasher(), key_equal(), a) { }
-    unordered_multimap(size_type n, const hasher&amp; hf, const allocator_type&amp; a)
-      : unordered_multimap(n, hf, key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_multimap(InputIterator f, InputIterator l, size_type n, const allocator_type&amp; a)
-      : unordered_multimap(f, l, n, hasher(), key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_multimap(InputIterator f, InputIterator l, size_type n, const hasher&amp; hf, 
-	    const allocator_type&amp; a)
-      : unordered_multimap(f, l, n, hf, key_equal(), a) { }
-    unordered_multimap(initializer_list&lt;value_type&gt; il, size_type n, const allocator_type&amp; a)
-      : unordered_multimap(il, n, hasher(), key_equal(), a) { }
-    unordered_multimap(initializer_list&lt;value_type&gt; il, size_type n, const hasher&amp; hf, 
-	  const allocator_type&amp; a)
-      : unordered_multimap(il, n, hf, key_equal(), a) { }</ins>
-    ~unordered_multimap();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.5.6.1 [unord.set.overview] p3:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key,
-    class Hash = hash&lt;Key&gt;,
-    class Pred = std::equal_to&lt;Key&gt;,
-    class Allocator = std::allocator&lt;Key&gt; &gt; {
-  class unordered_set {
-  public:
-    [&hellip;]
-    unordered_set(initializer_list&lt;value_type&gt;,
-      size_type = <em>see below</em>,
-      const hasher&amp; hf = hasher(),
-      const key_equal&amp; eql = key_equal(),
-      const allocator_type&amp; a = allocator_type());
-    <ins>unordered_set(size_type n, const allocator_type&amp; a)
-      : unordered_set(n, hasher(), key_equal(), a) { }
-    unordered_set(size_type n, const hasher&amp; hf, const allocator_type&amp; a)
-      : unordered_set(n, hf, key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_set(InputIterator f, InputIterator l, size_type n, const allocator_type&amp; a)
-      : unordered_set(f, l, n, hasher(), key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_set(InputIterator f, InputIterator l, size_type n, const hasher&amp; hf, 
-	    const allocator_type&amp; a)
-      : unordered_set(f, l, n, hf, key_equal(), a) { }
-    unordered_set(initializer_list&lt;value_type&gt; il, size_type n, const allocator_type&amp; a)
-      : unordered_set(il, n, hasher(), key_equal(), a) { }
-    unordered_set(initializer_list&lt;value_type&gt; il, size_type n, const hasher&amp; hf, 
-	  const allocator_type&amp; a)
-      : unordered_set(il, n, hf, key_equal(), a) { }</ins>
-    ~unordered_set();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Add to the synopsis in 23.5.7.1 [unord.multiset.overview] p3:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  template &lt;class Key,
-    class Hash = hash&lt;Key&gt;,
-    class Pred = std::equal_to&lt;Key&gt;,
-    class Allocator = std::allocator&lt;Key&gt; &gt; {
-  class unordered_multiset {
-  public:
-    [&hellip;]
-    unordered_multiset(initializer_list&lt;value_type&gt;,
-      size_type = <em>see below</em>,
-      const hasher&amp; hf = hasher(),
-      const key_equal&amp; eql = key_equal(),
-      const allocator_type&amp; a = allocator_type());
-    <ins>unordered_multiset(size_type n, const allocator_type&amp; a)
-      : unordered_multiset(n, hasher(), key_equal(), a) { }
-    unordered_multiset(size_type n, const hasher&amp; hf, const allocator_type&amp; a)
-      : unordered_multiset(n, hf, key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_multiset(InputIterator f, InputIterator l, size_type n, const allocator_type&amp; a)
-      : unordered_multiset(f, l, n, hasher(), key_equal(), a) { }
-    template &lt;class InputIterator&gt;
-      unordered_multiset(InputIterator f, InputIterator l, size_type n, const hasher&amp; hf, 
-	    const allocator_type&amp; a)
-      : unordered_multiset(f, l, n, hf, key_equal(), a) { }
-    unordered_multiset(initializer_list&lt;value_type&gt; il, size_type n, const allocator_type&amp; a)
-      : unordered_multiset(il, n, hasher(), key_equal(), a) { }
-    unordered_multiset(initializer_list&lt;value_type&gt; il, size_type n, const hasher&amp; hf, 
-	  const allocator_type&amp; a)
-      : unordered_multiset(il, n, hf, key_equal(), a) { }</ins>
-    ~unordered_multiset();
-    [&hellip;]
-  };
-}
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2211"></a>2211. Replace ambiguous use of "Allocator" in container requirements</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-11-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-23.2.1 [container.requirements.general]/7 says:
-</p>
-<blockquote><p>
-All other constructors for these container types take an <tt>Allocator&amp;</tt> argument 
-(17.6.3.5 [allocator.requirements]), an allocator whose value type is the same as the
-container's value type.
-</p></blockquote>
-<p>
-This is a strange place to state the requirement on the allocator's
-<tt>value_type</tt>, because the allocator is a property (and template
-parameter) of the container type not of some of its constructors.
-It's also unclear whether "<tt>Allocator&amp;</tt>" refers to the concept (as
-implied by the cross-reference to the allocator requirements in Clause 17) 
-or to the container's template parameter (as implied by the fact
-it's shown as an lvalue-reference type.) I believe the latter is
-intended, because those constructors can't take any model of the
-allocator concept, they can only take the container's <tt>allocator_type</tt>.
-<p/>
-I think it would be clearer to remove the value type requirement earlier
-in the paragraph (Table 99 already imposes that requirement) and to make it clear 
-the constructor arguments are the container's <tt>allocator_type</tt>. There is 
-already a cross-reference to the allocator requirements earlier in the paragraph, 
-so it doesn't need to be repeated in another place where it causes confusion.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 23.2.1 [container.requirements.general] paragraph 7:</p>
-
-<blockquote>
-<p>
-Unless otherwise specified, all containers defined in this clause obtain memory using an allocator 
-(see 17.6.3.5 [allocator.requirements]). Copy constructors for these container types obtain an 
-allocator by calling <tt>allocator_traits&lt;allocator_type&gt;::select_on_container_copy_construction</tt> 
-on their first parameters. Move constructors obtain an allocator by move construction from the allocator 
-belonging to the container being moved. Such move construction of the allocator shall not exit via 
-an exception. All other constructors for these container types take <del>an <tt>Allocator&amp;</tt> argument 
-(17.6.3.5 [allocator.requirements]), an allocator whose value type is the same as the container's value
-type</del><ins>a <tt>const allocator_type&amp;</tt> argument</ins>. [<i>Note</i>: If an invocation of a 
-constructor uses the default value of an optional allocator argument, then the <tt>Allocator</tt> type 
-must support value initialization. &mdash; <i>end note</i>] A copy of this allocator is used for any
-memory allocation performed, by these constructors and by all member functions, during the lifetime of each
-container object or until the allocator is replaced. [&hellip;]
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2212"></a>2212. <tt>tuple_size</tt> for <tt>const pair</tt> request <tt>&lt;tuple&gt;</tt> header</h3>
-<p><b>Section:</b> 20.2 [utility] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Alisdair Meredith <b>Opened:</b> 2012-11-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#utility">active issues</a> in [utility].</p>
-<p><b>View all other</b> <a href="lwg-index.html#utility">issues</a> in [utility].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>&lt;utility&gt;</tt> header declares sufficient of the tuple API to specialize
-the necessary templates for <tt>pair</tt>, notably <tt>tuple_size</tt> and
-<tt>tuple_element</tt>.  However, it does not make available the partial specializations
-that support cv-qualified template arguments, so while I can write the following after
-including only <tt>&lt;utility&gt;</tt>: 
-</p>
-<blockquote><pre>
-#include &lt;utility&gt;
-
-using TestType = std::pair&lt;int, int&gt;;
-static_assert(2 == std::tuple_size&lt;TestType&gt;(), "Pairs have two elements");
-std::tuple_element&lt;0, TestType&gt;::type var{1};
-</pre></blockquote>
-<p>
-the following may fail to compile unless I also include <tt>&lt;tuple&gt;</tt>:
-</p>
-<blockquote><pre>
-#include &lt;utility&gt;
-
-using TestType = const std::pair&lt;int, int&gt;;
-static_assert(2 == std::tuple_size&lt;TestType&gt;(), "Pairs have two elements");
-std::tuple_element&lt;0, TestType&gt;::type var{1};
-</pre></blockquote>
-<p>
-Note, however, that the latter <em>may</em> compile with some standard library implementations
-but not others, leading to subtle portability issues.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Howard notes that we have the same issue with array, so any resolution should apply to that header too.
-</p>
-
-<p><i>[2013-10-18 Daniel provides wording]</i></p>
-
-
-<p>
-The suggested wording uses a similar approach as we already have in 24.7 [iterator.range] to
-ensure that the range access templates are available when at least one of an enumerated list of header files is
-included.
-<p/>
-I also think that the restricted focus on <tt>tuple_size</tt> of this issue is too narrow and should be extended to
-the similar partial template specializations of <tt>tuple_element</tt> as well. Therefore the suggested wording
-ensures this as well.
-</p>
-
-<p><i>[2014-03-27 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on eight votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.4.2.5 [tuple.helper] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class T&gt; class tuple_size&lt;const T&gt;;
-template &lt;class T&gt; class tuple_size&lt;volatile T&gt;;
-template &lt;class T&gt; class tuple_size&lt;const volatile T&gt;;
-</pre><blockquote>
-<p>
--3- Let <tt><i>TS</i></tt> denote <tt>tuple_size&lt;T&gt;</tt> of the <i>cv</i>-unqualified type <tt>T</tt>. Then 
-each of the three templates shall meet the <tt>UnaryTypeTrait</tt> requirements (20.10.1) with a <tt>BaseCharacteristic</tt> of
-</p>
-<blockquote><pre>
-integral_constant&lt;size_t, <i>TS</i>::value&gt;
-</pre></blockquote>
-<p>
-<ins>-?- In addition to being available via inclusion of the <tt>&lt;tuple&gt;</tt> header, each of the three templates are
-available when any of the headers <tt>&lt;array&gt;</tt> or <tt>&lt;utility&gt;</tt> are included.</ins>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-template &lt;size_t I, class T&gt; class tuple_element&lt;I, const T&gt;;
-template &lt;size_t I, class T&gt; class tuple_element&lt;I, volatile T&gt;;
-template &lt;size_t I, class T&gt; class tuple_element&lt;I, const volatile T&gt;;
-</pre><blockquote>
-<p>
-<ins>-?-</ins> Let <tt><i>TE</i></tt> denote <tt>tuple_element&lt;I, T&gt;</tt> of the <i>cv</i>-unqualified type <tt>T</tt>. 
-Then each of the three templates shall meet the <tt>TransformationTrait</tt> requirements (20.10.1) with a member typedef 
-<tt>type</tt> that names the following type:
-</p>
-<ul>
-<li><p>
-for the first specialization, <tt>add_const&lt;<i>TE</i>::type&gt;::type</tt>,
-</p></li>
-<li><p>
-for the second specialization, <tt>add_volatile&lt;<i>TE</i>::type&gt;::type</tt>, and
-</p></li>
-<li><p>
-for the third specialization, <tt>add_cv&lt;<i>TE</i>::type&gt;::type</tt>.
-</p></li>
-</ul>
-<p>
-<ins>-?- In addition to being available via inclusion of the <tt>&lt;tuple&gt;</tt> header, each of the three templates are
-available when any of the headers <tt>&lt;array&gt;</tt> or <tt>&lt;utility&gt;</tt> are included.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2213"></a>2213. Return value of <tt>std::regex_replace</tt></h3>
-<p><b>Section:</b> 28.11.4 [re.alg.replace] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Pete Becker <b>Opened:</b> 2012-11-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.alg.replace">issues</a> in [re.alg.replace].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 28.11.4 [re.alg.replace], the first two variants of <tt>std::regex_replace</tt> take an output iterator named 
-"out" as their first argument. Paragraph 2 of that section says that the functions return "out". When I first implemented 
-this, many years ago, I wrote it to return the value of the output iterator after all the insertions (cf. <tt>std::copy</tt>), 
-which seems like the most useful behavior. But looking at the requirement now, it like the functions should return the 
-original value of "out" (i.e. they have to keep a copy of the iterator for no reason except to return it). Is that 
-really what was intended?
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 28.11.4 [re.alg.replace] as indicated:</p>
-<blockquote><pre>
-template &lt;class OutputIterator, class BidirectionalIterator,
-  class traits, class charT, class ST, class SA&gt;
-OutputIterator
-regex_replace(OutputIterator out, BidirectionalIterator first, BidirectionalIterator last,
-  const basic_regex&lt;charT, traits&gt;&amp; e, const basic_string&lt;charT, ST, SA&gt;&amp; fmt,
-  regex_constants::match_flag_type flags = regex_constants::match_default);
-template &lt;class OutputIterator, class BidirectionalIterator,
-  class traits, class charT&gt;
-OutputIterator
-regex_replace(OutputIterator out, BidirectionalIterator first, BidirectionalIterator last,
-  const basic_regex&lt;charT, traits&gt;&amp; e, const charT* fmt,
-  regex_constants::match_flag_type flags = regex_constants::match_default);
-</pre><blockquote>
-<p>
--1- <i>Effects</i>: Constructs a <tt>regex_iterator</tt> object <tt>i</tt> as if by 
-<tt>regex_iterator&lt;BidirectionalIterator, charT, traits&gt; i(first, last, e, flags)</tt>, 
-and uses <tt>i</tt> to enumerate through all of the matches <tt>m</tt> of type 
-<tt>match_results&lt;BidirectionalIterator&gt;</tt> that occur within the sequence <tt>[first, last)</tt>. 
-If no such matches are found and <tt>!(flags &amp; regex_constants ::format_no_copy)</tt> then calls
-<tt><ins>out = </ins>std::copy(first, last, out)</tt>. If any matches are found then, for each such match, if 
-<tt>!(flags &amp; regex_constants::format_no_copy)</tt>, calls <tt><ins>out = </ins>std::copy(m.prefix().first, 
-m.prefix().second, out)</tt>, and then calls <tt><ins>out = </ins>m.format(out, fmt, flags)</tt> 
-for the first form of the function and <tt><ins>out = </ins>m.format(out, fmt, fmt + 
-char_traits&lt;charT&gt;::length(fmt), flags)</tt> for the second. Finally, if such a match is found 
-and <tt>!(flags &amp; regex_constants ::format_no_copy)</tt>, calls 
-<tt><ins>out = </ins>std::copy(last_m.suffix().first, last_m.suffix().second, out)</tt> where 
-<tt>last_m</tt> is a copy of the last match found. If <tt>flags &amp; regex_constants::format_first_only</tt> 
-is non-zero then only the first match found is replaced.
-<p/>
--2- <i>Returns</i>: <tt>out</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2217"></a>2217. <tt>operator==(sub_match, string)</tt> slices on embedded <tt>'\0'</tt>s</h3>
-<p><b>Section:</b> 28.9.2 [re.submatch.op] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2012-11-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.submatch.op">issues</a> in [re.submatch.op].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
-  bool operator==(
-    const basic_string&lt;
-      typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-    const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre></blockquote>
-<p>
-is specified as:
-</p>
-<blockquote><p>
-<i>Returns</i>: <tt>rhs.compare(lhs.c_str()) == 0</tt>.
-</p></blockquote>
-<p>
-This is odd because <tt>sub_match::compare(basic_string)</tt> is defined to
-honor embedded <tt>'\0'</tt> characters. This could allow a <tt>sub_match</tt> to <tt>==</tt> or
-<tt>!=</tt> a <tt>std::string</tt> unexpectedly.
-</p>
-
-<p><i>[Daniel:]</i></p>
-
-<p>
-This wording change was done intentionally as of LWG <a href="lwg-defects.html#1181">1181</a>, but the here mentioned slicing
-effect was not considered at that time. It seems best to use another overload of compare to fix this problem:
-</p>
-<blockquote><p>
-<i>Returns</i>: <tt>rhs.str().compare(0, rhs.length(), lhs.data(), lhs.size()) == 0</tt>.
-</p></blockquote>
-<p>
-or
-</p>
-<blockquote><p>
-<i>Returns</i>: <tt>rhs.compare(sub_match&lt;BiIter&gt;::string_type(lhs.data(), lhs.size())) == 0</tt>.
-</p></blockquote>
-
-<p><i>[2013-10-17: Daniel provides concrete wording]</i></p>
-
-
-<p>
-The original wording was suggested to reduce the need to allocate memory during comparisons. The specification would be
-very much easier, if <tt>sub_match</tt> would provide an additional <tt>compare</tt> overload of the form:
-</p>
-<blockquote><pre>
-int compare(const value_type* s, size_t n) const;
-</pre></blockquote>
-<p>
-But given the fact that currently <em>all</em> of <tt>basic_string</tt>'s <tt>compare</tt> overloads are defined in terms
-of temporary string constructions, the following proposed wording does follow the same string-construction route as 
-<tt>basic_string</tt> does (where needed to fix the embedded zeros issue) and to hope that existing implementations
-ignore to interpret this semantics in the literal sense.
-<p/>
-I decided to use the second replacement form
-</p>
-<blockquote><pre>
-<i>Returns</i>: <tt>rhs.compare(sub_match&lt;BiIter&gt;::string_type(lhs.data(), lhs.size())) == 0</tt>.
-</pre></blockquote>
-<p>
-because it already reflects the existing style used in 28.9.2 [re.submatch.op] p31.
-</p>
-
-
-<p><i>[2014-02-15 post-Issaquah session : move to Tentatively Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 28.9.2 [re.submatch.op] as indicated:</p>
-
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
-  bool operator==(
-    const basic_string&lt;
-      typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-    const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><blockquote>
-<p>
--7- <i>Returns:</i> <tt>rhs.compare(<del>lhs.c_str()</del><ins>typename sub_match&lt;BiIter&gt;::string_type(lhs.data(), lhs.size())</ins>) == 0</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
-  bool operator&lt;(
-    const basic_string&lt;
-      typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA&gt;&amp; lhs,
-    const sub_match&lt;BiIter&gt;&amp; rhs);
-</pre><blockquote>
-<p>
--9- <i>Returns:</i> <tt>rhs.compare(<del>lhs.c_str()</del><ins>typename sub_match&lt;BiIter&gt;::string_type(lhs.data(), lhs.size())</ins>) &gt; 0</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
-  bool operator==(const sub_match&lt;BiIter&gt;&amp; lhs,
-                  const basic_string&lt;
-                    typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA>&amp; rhs);
-</pre><blockquote>
-<p>
--13- <i>Returns:</i> <tt>lhs.compare(<del>rhs.c_str()</del><ins>typename sub_match&lt;BiIter&gt;::string_type(rhs.data(), rhs.size())</ins>) == 0</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-[&hellip;]
-</p>
-<blockquote><pre>
-template &lt;class BiIter, class ST, class SA&gt;
-  bool operator&lt;(const sub_match&lt;BiIter&gt;&amp; lhs,
-                 const basic_string&lt;
-                   typename iterator_traits&lt;BiIter&gt;::value_type, ST, SA>&amp; rhs);
-</pre><blockquote>
-<p>
--15- <i>Returns:</i> <tt>lhs.compare(<del>rhs.c_str()</del><ins>typename sub_match&lt;BiIter&gt;::string_type(rhs.data(), rhs.size())</ins>) &lt; 0</tt>.
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-</pre><blockquote>
-<p>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-</pre><blockquote>
-<p>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-</pre><blockquote>
-<p>
-</p>
-</blockquote></blockquote>
-
-<blockquote><pre>
-</pre><blockquote>
-<p>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2222"></a>2222. Inconsistency in description of <tt>forward_list::splice_after</tt> single-element overload</h3>
-<p><b>Section:</b> 23.3.4.6 [forwardlist.ops] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Edward Catmur <b>Opened:</b> 2012-12-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#forwardlist.ops">issues</a> in [forwardlist.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-23.3.4.6 [forwardlist.ops] p6 has
-</p>
-<blockquote><pre>
-void splice_after(const_iterator position, forward_list&amp; x, const_iterator i);
-void splice_after(const_iterator position, forward_list&amp;&amp; x, const_iterator i);
-</pre><p>
-<i>Effects</i>: Inserts the element following <tt>i</tt> into <tt>*this</tt>, following <tt>position</tt>, 
-and removes it from <tt>x</tt>. The result is unchanged if <tt>position == i</tt> or <tt>position == ++i</tt>. 
-Pointers and references to <tt>*i</tt> continue to refer to the same element but as a member of <tt>*this</tt>. 
-Iterators to <tt>*i</tt> (including <tt>i</tt> itself) continue to refer to the same element, but now behave 
-as iterators into <tt>*this</tt>, not into <tt>x</tt>.
-</p>
-</blockquote>
-<p>
-This overload splices the element <em>following</em> <tt>i</tt> from <tt>x</tt> to <tt>*this</tt>, so the 
-language in the two latter sentences should refer to <tt>++i</tt>:
-</p>
-<blockquote><p>
-Pointers and references to <tt>*++i</tt> continue to refer to the same element but as a member of
-<tt>*this</tt>. Iterators to <tt>*++i</tt> continue to refer to the same element, but now behave as iterators
-into <tt>*this</tt>, not into <tt>x</tt>.
-</p></blockquote>
-<p>
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 23.3.4.6 [forwardlist.ops] p6 as indicated:</p>
-<blockquote><pre>
-void splice_after(const_iterator position, forward_list&amp; x, const_iterator i);
-void splice_after(const_iterator position, forward_list&amp;&amp; x, const_iterator i);
-</pre>
-<p>
--5- <i>Requires</i>: <tt>position</tt> is <tt>before_begin()</tt> or is a dereferenceable iterator 
-in the range <tt>[begin(),end())</tt>. The iterator following <tt>i</tt> is a dereferenceable iterator 
-in <tt>x</tt>. <tt>get_allocator() == x.get_allocator()</tt>.
-<p/>
--6- <i>Effects</i>: Inserts the element following <tt>i</tt> into <tt>*this</tt>, following <tt>position</tt>, 
-and removes it from <tt>x</tt>. The result is unchanged if <tt>position == i</tt> or <tt>position == ++i</tt>. 
-Pointers and references to <tt>*<ins>++</ins>i</tt> continue to refer to the same element but as a member of 
-<tt>*this</tt>. Iterators to <tt>*<ins>++</ins>i</tt> <del>(including <tt>i</tt> itself)</del> continue to
-refer to the same element, but now behave as iterators into <tt>*this</tt>, not into <tt>x</tt>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2225"></a>2225. Unrealistic header inclusion checks required</h3>
-<p><b>Section:</b> 17.6.2.2 [using.headers] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2012-12-18 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#using.headers">issues</a> in [using.headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-17.6.2.2 [using.headers]/3 says:
-<p/>
-A translation unit shall include a header only outside of any external declaration or definition, and shall 
-include the header lexically before the first reference in that translation unit to any of the entities 
-declared in that header.
-<p/>
-Per 1.4 [intro.compliance]/1, programs which violate this rule are ill-formed, and a conforming 
-implementation is required to produce a diagnostic. This does not seem to match reality. Presumably, this 
-paragraph is missing a "no diagnostic is required".
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Edit 17.6.2.2 [using.headers] p3 as indicated:</p>
-<p>-3- A translation unit shall include a header only outside of any external declaration or definition, and shall
-include the header lexically before the first reference in that translation unit to any of the entities declared
-in that header. <ins>No diagnostic is required.</ins></p>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2228"></a>2228. Missing <em>SFINAE</em> rule in <tt>unique_ptr</tt> templated assignment</h3>
-<p><b>Section:</b> 20.8.1.2.3 [unique.ptr.single.asgn] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Geoffrey Romer <b>Opened:</b> 2012-12-20 <b>Last modified:</b> 2015-05-06</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.asgn">issues</a> in [unique.ptr.single.asgn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-20.8.1.2.3 [unique.ptr.single.asgn]/5 permits <tt>unique_ptr</tt>'s templated assignment operator to participate 
-in overload resolution even when incompatibilities between <tt>D</tt> and <tt>E</tt> will render the result ill-formed, 
-but the corresponding templated copy constructor is removed from the overload set in those situations (see the third 
-bullet point of 20.8.1.2.1 [unique.ptr.single.ctor]/19). This asymmetry is confusing, and presumably unintended; 
-it may lead to situations where constructing one <tt>unique_ptr</tt> from another is well-formed, but assigning from 
-the same <tt>unique_ptr</tt> would be ill-formed.
-<p/>
-There is a slight coupling between this and LWG <a href="lwg-defects.html#2118">2118</a>, in that my PR for LWG <a href="lwg-defects.html#2118">2118</a> incorporates 
-equivalent wording in the specification of the templated assignment operator for the array specialization; the two PRs 
-are logically independent, but if my PR for <a href="lwg-defects.html#2118">2118</a> is accepted but the above PR is not, the discrepancy 
-between the base template and the specialization could be confusing.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3485.</p>
-<ol>
-<li><p>Revise 20.8.1.2.3 [unique.ptr.single.asgn] p5 as follows:</p>
-
-<blockquote><pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;
-</pre><blockquote>
-<p>
--4- <i>Requires</i>: If <tt>E</tt> is not a reference type, assignment of the deleter from an rvalue of type <tt>E</tt> 
-shall be well-formed and shall not throw an exception. Otherwise, <tt>E</tt> is a reference type and assignment of the
-deleter from an lvalue of type <tt>E</tt> shall be well-formed and shall not throw an exception.
-<p/>
--5- <i>Remarks</i>: This operator shall not participate in overload resolution unless:
-</p>
-<ul>
-<li><p><tt>unique_ptr&lt;U, E&gt;::pointer</tt> is implicitly convertible to <tt>pointer</tt> and</p></li>
-<li><p><tt>U</tt> is not an array type<del>.</del><ins>, and</ins></p></li>
-<li><p><ins>either <tt>D</tt> is a reference type and <tt>E</tt> is the same type as <tt>D</tt>, or <tt>D</tt> is 
-not a reference type and <tt>E</tt> is implicitly convertible to <tt>D</tt>.</ins></p></li>
-</ul>
-<p>
--6- <i>Effects</i>: Transfers ownership from <tt>u</tt> to <tt>*this</tt> as if by calling <tt>reset(u.release())</tt> 
-followed by an assignment from <tt>std::forward&lt;E&gt;(u.get_deleter())</tt>.
-<p/>
--7- <i>Returns</i>: <tt>*this</tt>.
-</p>
-</blockquote></blockquote>
-
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-The wording looks good, but we want a little more time than the telecon permits to be truly comfortable.
-We expect this issue to resolve fairly easily in Bristol.
-</p>
-
-<p><i>[2015-05-18, Howard comments]</i></p>
-
-<p>
-Updated proposed wording has been provided in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4366.html">N4366</a>.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-Straw poll: send <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4366.html">N4366</a> to full committee, 
-with both fixes from the sections "What is the correct fix?" and "<tt>unique_ptr&lt;T[]&gt;</tt> needs the correct fix too"
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Resolved by accepting <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4366.html">N4366</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2229"></a>2229. Standard code conversion facets underspecified</h3>
-<p><b>Section:</b> 22.5 [locale.stdcvt] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Beman Dawes <b>Opened:</b> 2012-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>The only specification for the non-inherited members of classes <tt>codecvt_utf8</tt>,
-<tt>codecvt_utf16</tt>, and <tt>codecvt_utf8_utf16</tt> is a comment line in the synopsis
-that says <i><tt>// unspecified</tt></i>. There is no further indication of functionality,
-so a user does not know if one of these classes can be constructed or destroyed.</p>
-
-<p>The proposed resolution adds a constructor that mimics the class <tt>codecvt</tt>
-constructor, and also adds a destructor. Following the practice of class <tt>codecvt</tt>,
-the semantics are not specified.</p>
-
-<p>The only existing implementation I could find was libc++, and it does supply the
-proposed constructor and destructor for each of the three classes.</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-There was concern about the unspecified semantics - but that matches what is done in <tt>codecvt</tt>.
-</p>
-<p>
-Jonathan: Should these constructor/destructors be public? Proposed wording is private.
-Base class constructor is public.
-</p>
-<p>
-Howard noted that other facets do not have specified constructors.
-</p>
-<p>
-Alisdair noted that this whole section was new in C++11.
-</p>
-<p>
-Howard suggested looking at section 22.3.1.1.2 [locale.facet]p2/p3 for more info.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
- 
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p><i>In [locale.stdcvt] paragraph 2, Header codecvt synopsis:</i></p>
-<blockquote>
-  <pre>template&lt;class Elem, unsigned long Maxcode = 0x10ffff,
-  codecvt_mode Mode = (codecvt_mode)0&gt;
-class codecvt_utf8
-  : public codecvt&lt;Elem, char, mbstate_t&gt; {
-  <del><i>// unspecified</i></del>
-<ins>public:</ins>
-  <ins>explicit codecvt_utf8(size_t refs = 0);</ins>
-  <ins>~codecvt_utf8();</ins>
-  };
-
-template&lt;class Elem, unsigned long Maxcode = 0x10ffff,
-  codecvt_mode Mode = (codecvt_mode)0&gt;
-class codecvt_utf16
-  : public codecvt&lt;Elem, char, mbstate_t&gt; {
-  <del><i>// unspecified</i></del>
-<ins>public:</ins>
-  <ins>explicit codecvt_utf16(size_t refs = 0);</ins>
-  <ins>~codecvt_utf16();</ins>
-  };
-
-template&lt;class Elem, unsigned long Maxcode = 0x10ffff,
-  codecvt_mode Mode = (codecvt_mode)0&gt;
-class codecvt_utf8_utf16
-  : public codecvt&lt;Elem, char, mbstate_t&gt; {
-  <del><i>// unspecified</i></del>
-<ins>public:</ins>
-  <ins>explicit codecvt_utf8_utf16(size_t refs = 0);</ins>
-  <ins>~codecvt_utf8_utf16();</ins>
-  };</pre>
-</blockquote>
-
-
-
-
-
-<hr>
-<h3><a name="2230"></a>2230. &quot;<em>see below</em>&quot; for initializer-list constructors of unordered containers</h3>
-<p><b>Section:</b> 23.5 [unord] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-01-06 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord">issues</a> in [unord].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <tt>unordered_map</tt> class definition in 23.5.4.1 [unord.map.overview] declares an
-initializer-list constructor that says "see below":
-</p>
-
-<blockquote><pre>
-unordered_map(initializer_list&lt;value_type&gt;,
-    size_type = <em>see below</em>,
-    const hasher&amp; hf = hasher(),
-    const key_equal&amp; eql = key_equal(),
-    const allocator_type&amp; a = allocator_type());
-</pre></blockquote>
-
-<p>
-But that constructor isn't defined below. The same problem exists for the other unordered associative containers.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-STL: ordered are also missing declarations, but issue is forthcoming
-<p/>
-Walter: how does adding a signature address issue? &mdash; nevermind 
-<p/>
-Jayson: in his wording, isn't he just dropping the <tt>size_type</tt>?
-<p/> 
-Walter: partial fix is to introduce the name
-<p/>
-Stefanus: explanation of requiring name because of n buckets 
-<p/>
-STL: solution for his issue satisfies both ordered and unordered and is simplier than provided wording 
-<p/>
-STL: patches general table instead 
-<p/>
-STL: proposes adding extra rows instead of extra declarations 
-<p/>
-Stefanus: clarify <tt>n</tt> in the synopsis 
-<p/>
-Walter: general rule, name is optional in declaration 
-<p/>
-Stefanus: how to proceed 
-<p/>
-Walter: significant overlap with forthcoming issue, suggestion to defer
-</p>
-
-<p><i>[2014-02-20 Re-open Deferred issues as Priority 4]</i></p>
-
-
-<p><i>[2014-03-27 Jonathan improves proposed wording]</i></p>
-
-
-<p><i>[2014-05-20 STL and Jonathan communicate]</i></p>
-
-
-<p>
-STL: With <a href="lwg-defects.html#2322">2322</a> resolved, is there anything left for this issue to fix?
-<p/>
-Jonathan: The synopsis still says "<em>see below</em>" and it's not immediately clear
-that "<em>see below</em>" means "see the definition of a different constructor,
-which defines the behaviour of this one due to a table defined much earlier".
-</p>
-
-<p><i>[2014-05-23 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on five votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit 23.5.4.1 [unord.map.overview], class template <tt>unordered_map</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-[&hellip;]
-unordered_map(initializer_list&lt;value_type&gt; <ins>il</ins>,
-  size_type <ins>n</ins> = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Edit 23.5.4.2 [unord.map.cnstr] as follows:</p>
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_map(InputIterator f, InputIterator l,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-<ins>unordered_map(initializer_list&lt;value_type&gt; il,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());</ins>
-</pre><blockquote>
-<p>
--3- <i>Effects</i>: Constructs an empty <tt>unordered_map</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is
-implementation-defined. Then inserts elements from the range <tt>[f, l)</tt> <ins>for the first form, or from the range 
-<tt>[il.begin(), il.end())</tt> for the second form</ins>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 23.5.5.1 [unord.multimap.overview], class template <tt>unordered_multimap</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-[&hellip;]
-unordered_multimap(initializer_list&lt;value_type&gt; <ins>il</ins>,
-  size_type <ins>n</ins> = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Edit 23.5.5.2 [unord.multimap.cnstr] as follows:</p>
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_multimap(InputIterator f, InputIterator l,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-<ins>unordered_multimap(initializer_list&lt;value_type&gt; il,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());</ins>
-</pre><blockquote>
-<p>
--3- <i>Effects</i>: Constructs an empty <tt>unordered_multimap</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is
-implementation-defined. Then inserts elements from the range <tt>[f, l)</tt> <ins>for the first form, or from the range 
-<tt>[il.begin(), il.end())</tt> for the second form</ins>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 23.5.6.1 [unord.set.overview], class template <tt>unordered_set</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-[&hellip;]
-unordered_set(initializer_list&lt;value_type&gt; <ins>il</ins>,
-  size_type <ins>n</ins> = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Edit 23.5.6.2 [unord.set.cnstr] as follows:</p>
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_set(InputIterator f, InputIterator l,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-<ins>unordered_set(initializer_list&lt;value_type&gt; il,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());</ins>
-</pre><blockquote>
-<p>
--3- <i>Effects</i>: Constructs an empty <tt>unordered_set</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is
-implementation-defined. Then inserts elements from the range <tt>[f, l)</tt> <ins>for the first form, or from the range 
-<tt>[il.begin(), il.end())</tt> for the second form</ins>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 23.5.7.1 [unord.multiset.overview], class template <tt>unordered_multiset</tt> synopsis, as follows:</p>
-
-<blockquote><pre>
-[&hellip;]
-unordered_multiset(initializer_list&lt;value_type&gt; <ins>il</ins>,
-  size_type <ins>n</ins> = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Edit 23.5.7.2 [unord.multiset.cnstr] as follows:</p>
-<blockquote><pre>
-template &lt;class InputIterator&gt;
-unordered_multiset(InputIterator f, InputIterator l,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());
-<ins>unordered_multiset(initializer_list&lt;value_type&gt; il,
-  size_type n = <em>see below</em>,
-  const hasher&amp; hf = hasher(),
-  const key_equal&amp; eql = key_equal(),
-  const allocator_type&amp; a = allocator_type());</ins>
-</pre><blockquote>
-<p>
--3- <i>Effects</i>: Constructs an empty <tt>unordered_multiset</tt> using the specified hash function, key equality function,
-and allocator, and using at least <tt>n</tt> buckets. If <tt>n</tt> is not provided, the number of buckets is
-implementation-defined. Then inserts elements from the range <tt>[f, l)</tt> <ins>for the first form, or from the range 
-<tt>[il.begin(), il.end())</tt> for the second form</ins>. <tt>max_load_factor()</tt> returns <tt>1.0</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2231"></a>2231. DR 704 removes complexity guarantee for <tt>clear()</tt></h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2012-12-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-From the question at <a href="http://stackoverflow.com/q/14094408/981959">stackoverflow</a>.
-</p>
-
-<p>
-Were we aware that the resolution to LWG <a href="lwg-defects.html#704">704</a> means there is no complexity guarantee for 
-<tt>clear()</tt> on most sequence containers? Previously it was implied by defining it in terms of 
-<tt>erase(begin(), end())</tt> but we no longer do that.
-</p>
-
-<p>
-There are explicit complexity requirements for <tt>std::list::clear()</tt>, but not the other sequence containers.
-</p>
-
-<p>Daniel:</p>
-
-<p>
-The idea was that the notion of "destroys all elements in <tt>a</tt>" would imply a linear complexity, but the wording 
-needs to be clearer, because this doesn't say that this step is the actual complexity bound.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Tentatively Ready.
-</p>
-
-<p><i>[2013-04-20 Bristol]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Change Table 100 as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 100 &mdash; Sequence container requirements (in addition to container) (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.clear()</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-Destroys all elements in <tt>a</tt>. Invalidates all<br/>
-references, pointers, and iterators referring to<br/>
-the elements of <tt>a</tt> and may invalidate the<br/>
-past-the-end iterator.<br/>
-post: <tt>a.empty()</tt> returns <tt>true</tt><br/>
-<ins>complexity: linear</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2233"></a>2233. <tt>bad_function_call::what()</tt> unhelpful</h3>
-<p><b>Section:</b> 20.9.12.1 [func.wrap.badcall] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-01-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-A strict reading of the standard implies <tt>std::bad_function_call{}.what()</tt> returns the same string as
-<tt>std::exception{}.what()</tt> which doesn't help to know what happened if you catch an exception by reference 
-to <tt>std::exception</tt>.
-</p>
-
-<p>
-For consistency with <tt>bad_weak_ptr::what()</tt> it should return <tt>"bad_function_call"</tt>.
-</p>
-
-<p>
-See <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=33515">c++std-lib-33515</a> for other details.
-</p>
-
-<p>
-There was a considerable support on the reflector to instead change the specification of both <tt>bad_weak_ptr::what()</tt> 
-and <tt>bad_function_call::what()</tt> to return an implementation-defined string instead.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Open.
-</p>
-<p>
-Consensus that we want consistency in how this is treated.  Less consensus on what the common
-direction should be.
-</p>
-<p>
-Alisdair to provide wording proposing that all string literals held by standard exception objects are
-either unspecified, or implmentation defined.
-</p>
-
-<p><i>[2014-02-15 Issauqah]</i></p>
-
-<p>
-STL: I think it should be an implementation-defined NTBS, same on <tt>bad_weak_ptr</tt>. I will write a PR.
-</p>
-
-<p><i>[2014-03-27, STL provides improved wording]</i></p>
-
-
-<p>
-The new wording reflects better the general agreement of the committee, see also issue <a href="lwg-defects.html#2376">2376</a> for similar wording.
-</p>
-
-<p><i>[2014-03-28 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on five votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit 20.9.12.1.1 [func.wrap.badcall.const]:</p>
-<blockquote><pre>
-bad_function_call() noexcept;
-</pre><blockquote>
-<p>
--1- <i>Effects</i>: constructs a <tt>bad_function_call object</tt>.
-<p/>
-<ins>-?- <i>Postconditions</i>: <tt>what()</tt> returns an implementation-defined NTBS.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2235"></a>2235. Undefined behavior without proper requirements on <tt>basic_string</tt> constructors</h3>
-<p><b>Section:</b> 21.4.2 [string.cons] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2013-01-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.cons">issues</a> in [string.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 21.4.2 [string.cons], I believe tighter requirements should be imposed on <tt>basic_string</tt>'s constructors 
-taking an <tt>s</tt> argument (or, a behavior should be provided for the undefined cases).
-These requirements are properly stated in the other members functions taking <tt>s</tt> arguments (<tt>append</tt>, 
-<tt>assign</tt>, <tt>insert</tt>,...).
-</p>
-
-<blockquote><pre>
-basic_string(const charT* s, size_type n, const Allocator&amp; a = Allocator());
-</pre></blockquote>
-
-<p>
-Relative to N3485, 21.4.2 [string.cons]/6 says "Requires: <tt>s</tt> shall not be a null pointer and <tt>n &lt; npos</tt>", 
-where it should say: "Requires: <tt>s</tt> points to an array of at least <tt>n</tt> elements of <tt>charT</tt>"
-</p>
-
-<blockquote><pre>
-basic_string(const charT* s, const Allocator&amp; a = Allocator());
-</pre></blockquote>
-
-<p>
-21.4.2 [string.cons]/8 says "Requires: <tt>s</tt> shall not be a null pointer.", where it should say:
-"Requires: <tt>s</tt> points to an array of at least <tt>traits::length(s) + 1</tt> elements of <tt>charT</tt>"
-</p>
-
-<p>Daniel:</p>
-<p>
-I think that 17.6.4.9 [res.on.arguments] p1 b2 basically requires this already, but the wording is indeed worth 
-improving it.
-</p>
-
-<p><i>[2013-03-15 Issues Teleconference]</i></p>
-
-<p>
-Moved to Review.
-</p>
-<p>
-The resolution could be worded more cleanly, and there is some concern about redundancy between
-<i>Requirements</i> and <i>Effects</i> clauses.  Consensus that we do want to say something like
-this for the <i>Requirements</i> though.
-</p>
-
-<p><i>[2013-04-18, Bristol]</i></p>
- 
-
-<p>Move to Ready</p>
-
-<p><i>[2013-09-29, Bristol]</i></p>
- 
-
-<p>Apply to the Working Paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li><p>Change 21.4.2 [string.cons]/6 as indicated:</p>
-
-<blockquote><pre>
-basic_string(const charT* s, size_type n, const Allocator&amp; a = Allocator());
-</pre><blockquote>
-<p>
--6- <i>Requires</i>: <tt>s</tt> <del>shall not be a null pointer and <tt>n &lt; npos</tt></del><ins>points to an array 
-of at least <tt>n</tt> elements of <tt>charT</tt></ins>.
-</p>
-</blockquote></blockquote>
-
-</li>
-
-<li><p>Change 21.4.2 [string.cons]/8 as indicated:</p>
-
-<blockquote><pre>
-basic_string(const charT* s, const Allocator&amp; a = Allocator());
-</pre><blockquote>
-<p>
--8- <i>Requires</i>: <tt>s</tt> <del>shall not be a null pointer</del><ins>points to an array 
-of at least <tt>traits::length(s) + 1</tt> elements of <tt>charT</tt></ins>.
-</p>
-</blockquote></blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2239"></a>2239. <tt>min/max/minmax</tt> requirements</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2013-01-26 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-25.4.7 [alg.min.max] requires type <tt>T</tt> in <tt>min</tt>, <tt>max</tt>, and <tt>minmax</tt> to be 
-<tt>LessThanComparable</tt>, but I don't believe this should be required for the versions that take a <tt>Compare</tt> 
-argument.
-<p/>
-Paragraphs 1 to 4 of 25.4 [alg.sorting] should apply anyway, although I'm not sure about <tt>Compare</tt> 
-being required to induce a strict weak ordering here.
-<p/>
-Further, <tt>min</tt> and <tt>max</tt> also lack formal complexity guarantees.
-</p>
-
-<p><i>[2014-06-07 Daniel comments and provides wording]</i></p>
-
-
-<p>
-Certainly, the functions with <tt>Compare</tt> should not impose <tt>LessThanComparable</tt> requirements.
-<p/>
-In regard to the question whether a strict weak ordering should be required as implied by the <tt>Compare</tt>
-requirements, I would like to point out that this is requirement is in fact needed, because the specification of 
-the normative <i>Remarks</i> elements (e.g. "Returns the first argument when the arguments are equivalent.") do depend 
-on the existence of a <em>equivalence relation</em> that can be relied on and this is also consistent with the same
-strict weak ordering requirement that is indirectly imposed by the <tt>LessThanComparable</tt> requirement set for 
-functions referring to <tt>operator&lt;</tt> (Let me note that the very same <tt>StrictWeakOrder</tt> language 
-concept had intentionally been required for similar reasons during "concept-time" in
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2914.pdf">N2914</a>).
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-JY: We have library-wide requirements that <tt>Comp</tt> induce a strict weak ordering.
-<p/>
-JY/MC: The un-marked-up "Complexity" (p16) is wrong. DK: I'll fix that.
-<p/>
-DK will update the wording for Lenexa. 
-</p>
-
-<p><i>[2015-03-30 Daniel comments]</i></p>
-
-<p>
-The Complexity element of p16 is correct, but some others involving <tt>initializer_list</tt> arguments are wrong. 
-</p>
-
-<p><i>[2015-04-02 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 25.4.7 [alg.min.max] as indicated:
-</p>
-
-<blockquote>
-<pre>
-template&lt;class T&gt; constexpr const T&amp; min(const T&amp; a, const T&amp; b);
-template&lt;class T, class Compare&gt;
-  constexpr const T&amp; min(const T&amp; a, const T&amp; b, Compare comp);
-</pre>
-<blockquote>
-<p>
--1- <i>Requires</i>: <ins>For the first form, type <tt>T</tt> shall be</ins><del>Type <tt>T</tt> is</del> <tt>LessThanComparable</tt> 
-(Table 18).
-<p/>
--2- <i>Returns</i>: The smaller value.
-<p/>
--3- <i>Remarks</i>: Returns the first argument when the arguments are equivalent.
-<p/>
-<ins>-?- <i>Complexity</i>: Exactly one comparison.</ins>
-</p>
-</blockquote>
-
-<pre>
-template&lt;class T&gt;
-  constexpr T min(initializer_list&lt;T&gt; t);
-template&lt;class T, class Compare&gt;
-  constexpr T min(initializer_list&lt;T&gt; t, Compare comp);
-</pre>
-<blockquote>
-<p>
--4- <i>Requires</i>: <tt>T</tt> <del>is <tt>LessThanComparable</tt> and</del><ins>shall be</ins> <tt>CopyConstructible</tt> and 
-<tt>t.size() &gt; 0</tt>. <ins>For the first form, type <tt>T</tt> shall be <tt>LessThanComparable</tt>.</ins>
-<p/>
--5- <i>Returns</i>: [&hellip;]
-<p/>
--6- <i>Remarks</i>: [&hellip;]
-<p/>
-<ins>-?- <i>Complexity</i>: Exactly <tt>t.size() - 1</tt> comparisons.</ins>
-</p>
-</blockquote>
-
-<pre>
-template&lt;class T&gt; constexpr const T&amp; max(const T&amp; a, const T&amp; b);
-template&lt;class T, class Compare&gt;
-  constexpr const T&amp; max(const T&amp; a, const T&amp; b, Compare comp);
-</pre>
-<blockquote>
-<p>
--7- <i>Requires</i>: <ins>For the first form, type <tt>T</tt> shall be</ins><del>Type <tt>T</tt> is</del> <tt>LessThanComparable</tt> 
-(Table 18).
-<p/>
--8- <i>Returns</i>: [&hellip;]
-<p/>
--9- <i>Remarks</i>: [&hellip;]
-<p/>
-<ins>-?- <i>Complexity</i>: Exactly one comparison.</ins>
-</p>
-</blockquote>
-
-<pre>
-template&lt;class T&gt;
-  constexpr T max(initializer_list&lt;T&gt; t);
-template&lt;class T, class Compare&gt;
-  constexpr T max(initializer_list&lt;T&gt; t, Compare comp);
-</pre>
-<blockquote>
-<p>
--10- <i>Requires</i>: <tt>T</tt> <del>is <tt>LessThanComparable</tt> and</del><ins>shall be</ins> <tt>CopyConstructible</tt> and 
-<tt>t.size() &gt; 0</tt>. <ins>For the first form, type <tt>T</tt> shall be <tt>LessThanComparable</tt>.</ins>
-<p/>
--11- <i>Returns</i>: [&hellip;]
-<p/>
--12- <i>Remarks</i>: [&hellip;]
-<p/>
-<ins>-?- <i>Complexity</i>: Exactly <tt>t.size() - 1</tt> comparisons.</ins>
-</p>
-</blockquote>
-
-<pre>
-template&lt;class T&gt; constexpr pair&lt;const T&amp;, const T&amp;&gt; minmax(const T&amp; a, const T&amp; b);
-template&lt;class T, class Compare&gt;
-  constexpr pair&lt;const T&amp;, const T&amp;&gt; minmax(const T&amp; a, const T&amp; b, Compare comp);
-</pre>
-<blockquote>
-<p>
--13- <i>Requires</i>: <ins>For the first form, t</ins><del>T</del>ype <tt>T</tt> shall be <tt>LessThanComparable</tt> 
-(Table 18).
-<p/>
--14- <i>Returns</i>: [&hellip;]
-<p/>
--15- <i>Remarks</i>: [&hellip;]
-<p/>
--16- <i>Complexity</i>: Exactly one comparison.
-</p>
-</blockquote>
-
-<pre>
-template&lt;class T&gt;
-  constexpr pair&lt;T, T&gt; minmax(initializer_list&lt;T&gt; t);
-template&lt;class T, class Compare&gt;
-  constexpr pair&lt;T, T&gt; minmax(initializer_list&lt;T&gt; t, Compare comp);
-</pre>
-<blockquote>
-<p>
--17- <i>Requires</i>: <tt>T</tt> <del>is <tt>LessThanComparable</tt> and</del><ins>shall be</ins> <tt>CopyConstructible</tt> and 
-<tt>t.size() &gt; 0</tt>. <ins>For the first form, type <tt>T</tt> shall be <tt>LessThanComparable</tt>.</ins>
-<p/>
--18- <i>Returns</i>: [&hellip;]
-<p/>
--19- <i>Remarks</i>: [&hellip;]
-<p/>
--20- <i>Complexity</i>: At most <tt>(3/2) * t.size()</tt> applications of the corresponding predicate.
-</p>
-</blockquote>
-
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2240"></a>2240. Probable misuse of term "function scope" in [thread.condition]</h3>
-<p><b>Section:</b> 30.5.1 [thread.condition.condvar], 30.5.2 [thread.condition.condvarany] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> FrankHB1989 <b>Opened:</b> 2013-02-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.condition.condvar">issues</a> in [thread.condition.condvar].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-All usages of "function scope" in 30.5.1 [thread.condition.condvar] and 30.5.2 [thread.condition.condvarany], 
-such as 30.5.1 [thread.condition.condvar] p10 b4:
-</p>
-
-<blockquote><p>
-If the function exits via an exception, lock.lock() shall be called prior to exiting the <strong>function scope</strong>.
-</p></blockquote>
-
-<p>
-seem to be inappropriate compared to the actual core language definition of 3.3.5 [basic.funscope]:
-</p>
-
-<blockquote><p>
-Labels (6.1) have function scope and may be used anywhere in the function in which they are declared. <strong>Only
-labels have function scope</strong>.
-</p></blockquote>
-
-<p>
-Probably the intended meaning is "outermost block scope of the function".
-</p>
-
-<p><i>[2013-09 Chicago: Resolved by proposed resolution of LWG <a href="lwg-defects.html#2135">2135</a>]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>
-Resolved by proposed resolution of LWG <a href="lwg-defects.html#2135">2135</a>.
-</p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2246"></a>2246. <tt>unique_ptr</tt> assignment effects w.r.t. deleter</h3>
-<p><b>Section:</b> 20.8.1.2.3 [unique.ptr.single.asgn] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-03-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single.asgn">issues</a> in [unique.ptr.single.asgn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-The Effects clauses for <tt>unique_ptr</tt> assignment don't make sense, what
-is the target of "an assignment from <tt>std::forward&lt;D&gt;(u.get_deleter())</tt>"?
-<p/>
-Obviously it's intended to be the deleter, but that isn't stated clearly.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Move to Ready</p>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-<p>Apply to Working Paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li>
-<p>
-Edit 20.8.1.2.3 [unique.ptr.single.asgn] paragraph 2:
-</p>
-<blockquote><pre>
-unique_ptr&amp; operator=(unique_ptr&amp;&amp; u) noexcept;
-</pre>
-<blockquote><p>
-[&hellip;]
-<p/>
--2- <i>Effects</i>: Transfers ownership from <tt>u</tt> to <tt>*this</tt> as if by calling 
-<tt>reset(u.release())</tt> followed by <del>an assignment from</del><tt><ins>get_deleter() = </ins>std::forward&lt;D&gt;(u.get_deleter())</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li>
-<p>
-Edit 20.8.1.2.3 [unique.ptr.single.asgn] paragraph 6:
-</p>
-<blockquote><pre>
-template &lt;class U, class E&gt; unique_ptr&amp; operator=(unique_ptr&lt;U, E&gt;&amp;&amp; u) noexcept;
-</pre>
-<blockquote><p>
-[&hellip;]
-<p/>
--6- <i>Effects</i>: Transfers ownership from <tt>u</tt> to <tt>*this</tt> as if by calling 
-<tt>reset(u.release())</tt> followed by <del>an assignment from</del><tt><ins>get_deleter() = </ins>std::forward&lt;E&gt;(u.get_deleter())</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2247"></a>2247. Type traits and <tt>std::nullptr_t</tt></h3>
-<p><b>Section:</b> 20.10.4.1 [meta.unary.cat] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2013-03-15 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to 20.10.4.1 [meta.unary.cat], for every type <tt>T</tt>, exactly one of the primary type traits is true.  
-So which is true for the type <tt>std::nullptr_t</tt>?  By 2.13.7 [lex.nullptr] <tt>std::nullptr_t</tt> is not a 
-pointer type or a pointer-to-member type, so <tt>is_pointer</tt>, <tt>is_member_object_pointer</tt> and 
-<tt>is_member_function_pointer</tt> can't be true for <tt>std::nullptr_t</tt>, and none of the other primary type traits 
-seem to apply.
-</p>
-
-<p><i>[2013-04-20, Bristol]</i></p>
-
-<p>Rename to <tt>is_null_pointer</tt>, move to Ready</p>
-
-<p>Previous wording:</p>
-
-<blockquote class="note">   
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li>
-<p>
-Edit 20.10.2 [meta.type.synop], header <tt>&lt;type_traits&gt;</tt> synopsis:
-</p>
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  // 20.9.4.1, primary type categories:
-  template &lt;class T&gt; struct is_void;
-  <ins>template &lt;class T&gt; struct is_nullptr;</ins>
-  template &lt;class T&gt; struct is_integral;
-  template &lt;class T&gt; struct is_floating_point;
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Edit Table 47 &mdash; "Primary type category predicates" as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 47 &mdash; Primary type category predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>template &lt;class T&gt;<br/>
-struct is_nullptr;</tt></ins>
-</td>
-<td>
-<ins><tt>T</tt> is <tt>std::nullptr_t</tt> ([basic.fundamental])</ins>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2013-09-29, Chicago]</i></p>
-
-
-<p>Apply to the Working Paper</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3485.</p>
-
-<ol>
-<li>
-<p>
-Edit 20.10.2 [meta.type.synop], header <tt>&lt;type_traits&gt;</tt> synopsis:
-</p>
-<blockquote><pre>
-namespace std {
-  [&hellip;]
-  // 20.9.4.1, primary type categories:
-  template &lt;class T&gt; struct is_void;
-  <ins>template &lt;class T&gt; struct is_null_pointer;</ins>
-  template &lt;class T&gt; struct is_integral;
-  template &lt;class T&gt; struct is_floating_point;
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-<li>
-<p>
-Edit Table 47 &mdash; "Primary type category predicates" as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 47 &mdash; Primary type category predicates</caption>
-<tr>
-<th>Template</th>
-<th>Condition</th>
-<th>Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>template &lt;class T&gt;<br/>
-struct is_null_pointer;</tt></ins>
-</td>
-<td>
-<ins><tt>T</tt> is <tt>std::nullptr_t</tt> ([basic.fundamental])</ins>
-</td>
-<td>
-&nbsp;
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2249"></a>2249. [CD] Remove <tt>gets</tt> from <tt>&lt;cstdio&gt;</tt></h3>
-<p><b>Section:</b> 27.9.2 [c.files] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-04-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.files">issues</a> in [c.files].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses GB 9</b></p>
-
-<p>
-In 27.9.2 [c.files] the current C++ standard claims that <tt>&lt;cstdio&gt;</tt> defines a
-function called "gets" but it has no declaration or semantics, because it was removed from C11, 
-having been deprecated since C99. We should remove it for C++14.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Will resolve with the wording in the NB comment.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>Resolved by resolution as suggested by NB comment <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3733.pdf">GB 9</a></p>
-
-
-
-
-
-
-<hr>
-<h3><a name="2252"></a>2252. Strong guarantee on <tt>vector::push_back()</tt> still broken with C++11?</h3>
-<p><b>Section:</b> 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Nicolai Josuttis <b>Opened:</b> 2013-04-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.modifiers">active issues</a> in [vector.modifiers].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.modifiers">issues</a> in [vector.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-
-<p>
-According to my understanding, the strong guarantee of <tt>push_back()</tt> led to the introduction of <tt>noexcept</tt> 
-and to the typical implementation that vectors usually copy their elements on reallocation unless the move operations of 
-their element type guarantees not to throw.
-<p/>
-However, if I read the standard correctly, we still don't give the strong guarantee any more:
-Yes, 23.2.1 [container.requirements.general]/10 specifies:
-</p>
-<blockquote>
-<p>
-Unless otherwise specified (see 23.2.4.1, 23.2.5.1, 23.3.3.4, and 23.3.6.5) all container types defined in this
-Clause meet the following additional requirements:
-</p>
-<ul>
-<li>[&hellip;]</li>
-<li>if an exception is thrown by a <tt>push_back()</tt> or <tt>push_front()</tt> function, that function has no effects.</li>
-</ul>
-</blockquote>
-<p>
-However, 23.3.6.5 [vector.modifiers] specifies for vector modifiers, <em>including</em> <tt>push_back()</tt>:
-</p>
-<blockquote>
-<p>
-If an exception is thrown other than by the copy constructor, move constructor, assignment operator, or move 
-assignment operator of <tt>T</tt> or by any <tt>InputIterator</tt> operation there are no effects. If an exception 
-is thrown by the move constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt>, the effects are unspecified.
-</p>
-</blockquote>
-<p>
-I would interpret this as an "otherwise specified" behavior for <tt>push_back()</tt>, saying that the strong guarantee 
-is only given if constructors and assignments do not throw. 
-<p/>
-That means, the strong guarantee of C++03 is broken with C++11.
-<p/>
-In addition to all that 23.2.1 [container.requirements.general] p10 b2 doesn't mention the corresponding functions
-<tt>emplace_back()</tt> and <tt>emplace_front()</tt>. These are similar single-element additions and should provide the same
-strong guarantee.
-<p/>
-Daniel adds:
-<p/>
-It seems the error came in when <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2350.pdf">N2350</a>
-and <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2345.pdf">N2345</a> became accepted and where 
-integrated into the working draft <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2369.pdf">N2369</a>.
-The merge resulted in a form that changed the previous meaning and as far as I understand it, this effect was not intended.
-</p>
-
-<p><i>[2013-09-16, Nico provides concrete wording]</i></p>
-
-
-<p><i>[2013-09-26, Nico improves wording]</i></p>
-
-
-<p>
-The new proposed resolution is driven as follows:
-</p>
-<ul>
- <li> <p>In the container requirements section, there shall be general statements that single element insertions
-      and <tt>push_back()</tt>, <tt>pop_back</tt>, <tt>emplace_front()</tt>, and <tt>emplace_back()</tt> have no effect
-      on any exception.
-      <p/>
-      That is: we extend the first two statements by adding <tt>emplace_front()</tt> and <tt>emplace_back()</tt>, which
-      are missing.
-	  </p>
-</li>
- <li> <p>Formulate only the exceptions from that (or where other general statements might
-      lead to the impression, that the blanket statement no longer applies):</p>
-      <ul>
-       <li> <p>remove the statement in <tt>list::push_back()</tt> saying again that exceptions have to effect.</p></li>
-       <li> <p>Clarify that all single-element insertions at either end of a <tt>deque</tt> have the strong guarantee.</p> </li>
-       <li> <p>Clarify that all single-element insertions at the end of a <tt>vector</tt> have the strong guarantee.</p></li>
-      </ul> 
-</li>
-</ul>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 23.2.1 [container.requirements.general] p10 b2 as indicated:</p>
-
-<ul>
-<li><p>
-if an exception is thrown by an <tt>insert()</tt> or <tt>emplace()</tt> function while inserting a single element, that
-function has no effects.
-</p></li>
-<li><p>
-if an exception is thrown by a <tt>push_back()</tt> <del>or</del><ins>,</ins> <tt>push_front()</tt><ins>, <tt>emplace_back()</tt>, or 
-<tt>emplace_front()</tt></ins> function, that function has no effects.
-</p></li>
-</ul>
-
-</li>
-
-<li><p>Edit 23.3.3.4 [deque.modifiers] as indicated:</p>
-
-<blockquote>
-<pre>iterator insert(const_iterator position, const T&amp; x);
-iterator insert(const_iterator position, T&amp;&amp; x);
-iterator insert(const_iterator position, size_type n, const T&amp; x);
-template &lt;class InputIterator&gt;
-  iterator insert(const_iterator position,
-                  InputIterator first, InputIterator last);
-iterator insert(const_iterator position, initializer_list&lt;T&gt;);
-template &lt;class... Args&gt; void emplace_front(Args&amp;&amp;... args);
-template &lt;class... Args&gt; void emplace_back(Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator emplace(const_iterator position, Args&amp;&amp;... args);
-void push_front(const T&amp; x);
-void push_front(T&amp;&amp; x);
-void push_back(const T&amp; x);
-void push_back(T&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects:</i> An insertion in the middle of the deque invalidates all the iterators and references to elements
-of the deque. An insertion at either end of the deque invalidates all the iterators to the deque, but has
-no effect on the validity of references to elements of the deque.
-</p><p>
--2- <i>Remarks:</i> 
-If an exception is thrown other than by the copy constructor, move constructor, assignment
-operator, or move assignment operator of <tt>T</tt> there are no effects.
-<ins>
-If an exception is thrown while inserting a single element at either end, there are no effects.
-</ins>
-<del>If</del><ins>Otherwise, if</ins> an exception is thrown by the move
-constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt>, the effects are unspecified.
-</p><p>
--3- <i>Complexity:</i> The complexity is linear in the number of elements inserted plus the lesser of the distances
-to the beginning and end of the deque. Inserting a single element either at the beginning or end of a
-deque always takes constant time and causes a single call to a constructor of <tt>T</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 23.3.6.5 [vector.modifiers] as indicated:</p>
-
-<blockquote>
-<pre>iterator insert(const_iterator position, const T&amp; x);
-iterator insert(const_iterator position, T&amp;&amp; x);
-iterator insert(const_iterator position, size_type n, const T&amp; x);
-template &lt;class InputIterator&gt;
-  iterator insert(const_iterator position, InputIterator first, InputIterator last);
-iterator insert(const_iterator position, initializer_list&lt;T&gt;);
-template &lt;class... Args&gt; void emplace_back(Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator emplace(const_iterator position, Args&amp;&amp;... args);
-void push_back(const T&amp; x);
-void push_back(T&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
--1- <i>Remarks:</i> Causes reallocation if the new size is greater than the old capacity. If no reallocation happens,
-all the iterators and references before the insertion point remain valid.
-If an exception is thrown other
-than by the copy constructor, move constructor, assignment operator, or move assignment operator
-of <tt>T</tt> or by any <tt>InputIterator</tt> operation there are no effects.
-<ins>
-If an exception is thrown while inserting a single element at the end and <tt>T</tt> is <tt>CopyInsertable</tt>
-or <tt>is_nothrow_move_constructible&lt;T&gt;::value</tt> is <tt>true</tt>, there are no effects.
-</ins>
-<del>If</del><ins>Otherwise, if</ins> an exception is thrown by the move
-constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt>, the effects are unspecified.
-</p><p>
--2- <i>Complexity:</i> The complexity is linear in the number of elements inserted plus the distance to the end
-of the vector.
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2257"></a>2257. Simplify container requirements with the new algorithms</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2013-05-29 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Currently (n3690) Table 96 says, in the row for &quot;<tt>a == b</tt>&quot;, that the
-Operational semantics are:
-</p>
-<blockquote>
-	<tt>==</tt> is an equivalence relation.<br/> 
-	<tt>distance(a.begin(), a.end()) == distance(b.begin(), b.end()) &amp;&amp; equal(a.begin(), a.end(),b.begin())</tt>
-</blockquote>
-<p>
-Given the extension of equal for C++14, this can be simplified to:
-</p>
-<blockquote>
-	<tt>==</tt> is an equivalence relation.<br/>
-	<tt>equal(a.begin(), a.end(), b.begin(), b.end())</tt>
-</blockquote>
-
-<p><i>[
-Alisdair notes that a similar edit would apply to the unordered containers requirements.
-]</i></p>
-
-
-<p>
-Previous resolution from Marshall Clow:
-</p>
-<blockquote class="note">
-<p>
-Ammend the Operational Semantics for 23.2.1 [container.requirements.general], Table 96, row &quot;<tt>a == b</tt>&quot;
-</p>
-<blockquote>
-	<tt>==</tt> is an equivalence relation.<br/>
-	<tt><del>distance(a.begin(), a.end()) == distance(b.begin(), b.end()) &amp;&amp;</del> equal(a.begin(), a.end(), b.begin()<ins>, b.end()</ins>)</tt>
-</blockquote>
-
-<p>
-Ammend 23.2.5 [unord.req] p12:
-</p>
-<blockquote>
-Two unordered containers <tt>a</tt> and <tt>b</tt> compare equal if <tt>a.size() == b.size()</tt>
-and, for every equivalent-key group <tt>[Ea1,Ea2)</tt> obtained from <tt>a.equal_range(Ea1)</tt>,
-there exists an equivalent-key group <tt>[Eb1,Eb2)</tt> obtained from <tt>b.equal_range(Ea1)</tt>,
-such that <del><tt>distance(Ea1, Ea2) == distance(Eb1, Eb2)</tt> and</del>
-<tt>is_permutation(Ea1, Ea2, Eb1<ins>, Eb2</ins>)</tt>
-returns <tt>true</tt>.  For ...
-</blockquote>
-</blockquote>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-
-<p>
-Marshall improves wording
-</p>
-
-<p><i>[2013-09 Chicago (evening issues)]</i></p>
-
-<p>
-Moved to ready, after confirming latest wording reflects the discussion earlier in the day.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li>
-<p>
-Ammend 23.2.1 [container.requirements.general], Table 96 as indicated:
-</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 96 &mdash; Container requirements (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational<br/>semantics</th>
-<th>Assertion/note<br/>pre-/post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="5" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a == b</tt>
-</td>
-<td>
-convertible to <tt>bool</tt>
-</td>
-<td>
-<tt>==</tt> is an equivalence relation.<br/>
-<tt><del>distance(a.begin(),<br/>
-a.end()) == <br/>
-distance(b.begin(),<br/>
-b.end()) &amp;&amp;</del><br/>
-equal(a.begin(),<br/>
-a.end(),<br/>
-b.begin()<ins>, b.end()</ins>)</tt>
-</td>
-<td>
-<i>Requires:</i> <tt>T</tt> is<br/>
-<tt>EqualityComparable</tt>
-</td>
-<td>
-<ins>Constant if <tt>a.size() != b.size()</tt>,</ins> linear <ins>otherwise</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="5" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-<li>
-<p>
-Ammend 23.2.5 [unord.req] p12:
-</p>
-<blockquote>
-Two unordered containers <tt>a</tt> and <tt>b</tt> compare equal if <tt>a.size() == b.size()</tt>
-and, for every equivalent-key group <tt>[Ea1,Ea2)</tt> obtained from <tt>a.equal_range(Ea1)</tt>,
-there exists an equivalent-key group <tt>[Eb1,Eb2)</tt> obtained from <tt>b.equal_range(Ea1)</tt>,
-such that <del><tt>distance(Ea1, Ea2) == distance(Eb1, Eb2)</tt> and</del>
-<tt>is_permutation(Ea1, Ea2, Eb1<ins>, Eb2</ins>)</tt>
-returns <tt>true</tt>.  For [&hellip;]
-</blockquote>
-</li>
-
-<li><p>Amend 23.3.4.1 [forwardlist.overview] p2:</p>
-<blockquote><p>
--2- A <tt>forward_list</tt> satisfies all of the requirements of a container (Table 96), except that the <tt>size()</tt> member
-function is not provided <ins>and <tt>operator==</tt> has linear complexity</ins>. [&hellip;]
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2258"></a>2258. <tt>a.erase(q1, q2)</tt> unable to directly return <tt>q2</tt></h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Geoff Alexander <b>Opened:</b> 2013-05-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 23.2.4 [associative.reqmts], Table 102, page 743 of the C++ 2011 Standard states that <tt>a.erase(q1, q2)</tt> 
-returns <tt>q2</tt>. The problem is that <tt>a.erase(q1, q2)</tt> cannot directly return <tt>q2</tt> as the return type, 
-<tt>iterator</tt>, differs from that of <tt>q2</tt>, <tt>const_iterator</tt>. 
-</p>
-
-<p><i>[2013-09 Chicago (evening issues group)]</i></p>
-
-<p>
-The wording looks good, but is worded slightly differently to how we say the same for sequence containers, and for unordered
-associative containers.  We should apply consistent wording in all three cases.
-</p>
-<p>
-Alisdair to provide the wording.
-</p>
-
-<p><i>[2014-02-12 Issaquah meeting]</i></p>
-
-<p>
-Move a Immediate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>In the specification of <tt>a.erase(q1, q2)</tt> in sub-clause 23.2.4 [associative.reqmts], Table 102 change as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 102 &mdash; Associative container requirements (in addition to container) (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.erase(q1, q2)</tt>
-</td>
-<td>
-<tt>iterator</tt>
-</td>
-<td>
-erases all the elements in the range <tt>[q1,q2)</tt>. Returns <del><tt>q2</tt></del><ins>
-an iterator pointing to the element pointed to by <tt>q2</tt> prior to any elements
-being erased. If no such element exists, <tt>a.end()</tt> is returned</ins>.
-</td>
-<td>
-<tt>log(a.size()) + N</tt> where <tt>N</tt> has the value <tt>distance(q1, q2)</tt>.
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2263"></a>2263. Comparing iterators and allocator pointers with different const-character</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 23.2 [container.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-06-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This ancient issue <a href="lwg-defects.html#179">179</a> says one ought to be able to compare iterators with <tt>const_iterators</tt> 
-from any given container.  I'm having trouble finding words that guarantee this in C++11.  This impacts not only a 
-container's iterators, but also the allocator requirements in  allocator.requirements] surrounding 
-<tt>pointer</tt>, <tt>const_pointer</tt>, <tt>void_pointer</tt> and <tt>const_void_pointer</tt>.  E.g. can one 
-compare a <tt>pointer</tt> with a <tt>const_pointer</tt>? 
-<p/>
-Since <tt>allocator::pointer</tt> and <tt>const_pointer</tt> are required to be random access iterators, one could 
-expect that the <a href="lwg-defects.html#179">179</a> guarantees apply for them as well.
-</p>
-
-<p><i>[
-Daniel comments:
-]</i></p>
-
-
-<p>
-The wording for <a href="lwg-defects.html#179">179</a> was part of several working drafts (e.g. also in 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf">N3092</a>) over some time and suddenly got lost
-in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf">N3242</a>, presumably by accident. Whatever we
-decide for allocator pointers, I expect that we need to restore the  <a href="lwg-defects.html#179">179</a> wording as part of the overall resolution:
-</p>
-
-<p>Reinsert after 23.2 [container.requirements] p6:</p>
-
-<blockquote>
-<p>
--6- <tt>begin()</tt> returns an iterator referring to the first element in the container. <tt>end()</tt> returns an iterator which
-is the past-the-end value for the container. If the container is empty, then <tt>begin() == end()</tt>;
-<p/>
-<ins>-?- In the expressions</ins>
-</p>
-<blockquote><pre>
-<ins>i == j
-i != j
-i &lt; j
-i &lt;= j
-i &gt;= j
-i &gt; j
-i - j</ins>
-</pre></blockquote>
-<p>
-<ins>where <tt>i</tt> and <tt>j</tt> denote objects of a container's <tt>iterator</tt> type, either or both may be replaced by an object 
-of the container's <tt>const_iterator</tt> type referring to the same element with no change in semantics.</ins>
-</p>
-</blockquote>
-
-<p><i>[2014-02-13 Issaquah, Daniel comments and suggests wording]</i></p>
-
-
-<p>
-First, I didn't originally move the seemingly lost wording to the resolution section because I wanted to ensure that the 
-committee double-checks the reason of this loss. 
-<p/>
-Second, albeit restoring this wording will restore the comparability of <tt>const_iterator</tt> and <tt>iterator</tt> of
-containers specified in Clause 23, but this alone would <em>not</em> imply that this guarantee automatically extends to
-<em>all other</em> iterators, simply because there is no fundamental relation between a mutable iterator and a constant
-iterator by itself. This relation only exists under specific conditions, for example for containers which provide two such
-<tt>typedefs</tt> of that kind. Thus the wording restoration would <em>not</em> ensure that allocator <tt>pointer</tt> and 
-<tt>const_pointer</tt> would be comparable with each other. To realize that, we would need additional guarantees added
-to the allocator requirements. In fact, it is crucial to separate these things, because allocators are <em>not</em> 
-restricted to be used within containers, they have their own legitimate use for other places as well (albeit containers
-presumably belong to the most important use-cases), and this is also stated in the introduction of 17.6.3.5 [allocator.requirements],
-where it says:
-</p>
-<blockquote><p>
-All of the string types (Clause 21), containers (Clause 23) (except array), string buffers and string streams (Clause 27), 
-and <tt>match_results</tt> (Clause 28) are parameterized in terms of allocators.
-</p></blockquote>
-
-<p><i>[2014-02-12 Issaquah meeting]</i></p>
-
-<p>
-Move a Immediate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Insert after 17.6.3.5 [allocator.requirements] p4 as indicated:</p>
-
-<blockquote><p>
--4- An allocator type <tt>X</tt> shall satisfy the requirements of <tt>CopyConstructible</tt> (17.6.3.1). The <tt>X::pointer</tt>,
-<tt>X::const_pointer</tt>, <tt>X::void_pointer</tt>, and <tt>X::const_void_pointer</tt> types shall satisfy the requirements
-of <tt>NullablePointer</tt> (17.6.3.3). No constructor, comparison operator, copy operation, move operation, or
-swap operation on these types shall exit via an exception. <tt>X::pointer</tt> and <tt>X::const_pointer</tt> shall also
-satisfy the requirements for a random access iterator (24.2).
-<p/>
-<ins>-?- Let <tt>x1</tt> and <tt>x2</tt> denote objects of (possibly different) types <tt>X::void_pointer</tt>, 
-<tt>X::const_void_pointer</tt>, <tt>X::pointer</tt>, or <tt>X::const_pointer</tt>. Then, <tt>x1</tt> and <tt>x2</tt>
-are <em>equivalently-valued</em> pointer values, if and only if both <tt>x1</tt> and <tt>x2</tt> can be explicitly converted 
-to the two corresponding objects <tt>px1</tt> and <tt>px2</tt> of type <tt>X::const_pointer</tt>, using a sequence of
-<tt>static_cast</tt>s using only these four types, and the expression <tt>px1 == px2</tt> evaluates to <tt>true</tt>.</ins>
-</p>
-<blockquote class="note"><p>
-<em>Drafting note:</em> This wording uses the seemingly complicated route via <tt>X::const_pointer</tt>, because these are (contrary to
-<tt>X::const_void_pointer</tt>) random access iterators and we can rely here for dereferenceable values on the fundamental pointee
-equivalence of 24.2.5 [forward.iterators] p6:
-</p>
-<blockquote><p>
-If <tt>a</tt> and <tt>b</tt> are both dereferenceable, then <tt>a == b</tt> if and only if <tt>*a</tt> and <tt>*b</tt> are 
-bound to the same object.
-</p></blockquote>
-<p>
-while for null pointer values we can rely on the special equality relation induced by 17.6.3.3 [nullablepointer.requirements].
-</p>
-</blockquote>
-<p>
-<ins>-?- Let <tt>w1</tt> and <tt>w2</tt> denote objects of type <tt>X::void_pointer</tt>. Then for the expressions</ins>
-</p>
-<blockquote><pre>
-<ins>w1 == w2
-w1 != w2</ins>
-</pre></blockquote>
-<p>
-<ins>either or both objects may be replaced by an equivalently-valued object of type <tt>X::const_void_pointer</tt> with no 
-change in semantics.</ins>
-<p/>
-<ins>-?- Let <tt>p1</tt> and <tt>p2</tt> denote objects of type <tt>X::pointer</tt>. Then for the expressions</ins>
-</p>
-<blockquote><pre>
-<ins>p1 == p2
-p1 != p2
-p1 &lt; p2
-p1 &lt;= p2
-p1 &gt;= p2
-p1 &gt; p2
-p1 - p2</ins>
-</pre></blockquote>
-<p>
-<ins>either or both objects may be replaced by an equivalently-valued object of type <tt>X::const_pointer</tt> with no 
-change in semantics.</ins>
-</p>
-</blockquote>
-</li>
-<li><p>Reinsert after 23.2 [container.requirements] p6:</p>
-
-<blockquote><p>
--6- <tt>begin()</tt> returns an iterator referring to the first element in the container. <tt>end()</tt> returns an iterator which
-is the past-the-end value for the container. If the container is empty, then <tt>begin() == end()</tt>;
-<p/>
-<ins>-?- In the expressions</ins>
-</p>
-<blockquote><pre>
-<ins>i == j
-i != j
-i &lt; j
-i &lt;= j
-i &gt;= j
-i &gt; j
-i - j</ins>
-</pre></blockquote>
-<p>
-<ins>where <tt>i</tt> and <tt>j</tt> denote objects of a container's <tt>iterator</tt> type, either or both may be replaced by an object 
-of the container's <tt>const_iterator</tt> type referring to the same element with no change in semantics.</ins>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2266"></a>2266. <tt>vector</tt> and <tt>deque</tt> have incorrect <tt>insert</tt> requirements</h3>
-<p><b>Section:</b> 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Ahmed Charles <b>Opened:</b> 2013-05-17 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#sequence.reqmts">issues</a> in [sequence.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to Table 100 in n3485 23.2.3 [sequence.reqmts]/4 the notes for the expression <tt>a.insert(p,i,j)</tt>
-say:
-</p>
-
-<blockquote><p>
-<i>Requires:</i> <tt>T</tt> shall be <tt>EmplaceConstructible</tt>
-into <tt>X</tt> from <tt>*i</tt>. For <tt>vector</tt>, if the iterator
-does not meet the forward iterator requirements (24.2.5), <tt>T</tt> shall also be
-<tt>MoveInsertable</tt> into <tt>X</tt> and <tt>MoveAssignable</tt>.
-<p/>
-Each iterator in the range <tt>[i,j)</tt> shall be dereferenced exactly once.
-<p/>
-<i>pre:</i> <tt>i</tt> and <tt>j</tt> are not iterators into <tt>a</tt>.
-<p/>
-Inserts copies of elements in <tt>[i, j)</tt> before <tt>p</tt>
-</p></blockquote>
-
-<p>
-There are two problems with that wording: First, the special constraints for <tt>vector</tt>, that are expressed to be valid for
-forward iterators only, are necessary for all iterator categories. Second, the same special constraints are needed for <tt>deque</tt>, too. 
-</p>
-
-<p><i>[2013-10-05, Stephan T. Lavavej comments and provides alternative wording]</i></p>
-
-<p>
-In Chicago, we determined that the original proposed resolution was correct, except that it needed additional requirements.  
-When <tt>vector</tt> <tt>insert(p, i, j)</tt> is called with input-only iterators, it can't know how many elements will be inserted, 
-which is obviously problematic for insertion anywhere other than at the end. Therefore, implementations typically append elements 
-(geometrically reallocating), followed by <tt>rotate()</tt>. Given forward+ iterators, some implementations append and 
-<tt>rotate()</tt> when they determine that there is sufficient capacity. Additionally, <tt>deque</tt> <tt>insert(p, i, j)</tt> is 
-typically implemented with prepending/appending, with a possible call to <tt>reverse()</tt>, followed by a call to <tt>rotate()</tt>.  
-Note that <tt>rotate()</tt>'s requirements are strictly stronger than <tt>reverse()</tt>'s.
-<p/>
-Therefore, when patching Table 100, we need to add <tt>rotate()</tt>'s requirements. Note that this does not physically affect code 
-(implementations were already calling <tt>rotate()</tt> here), and even in Standardese terms it is barely noticeable &mdash; if an 
-element is <tt>MoveInsertable</tt> and <tt>MoveAssignable</tt> then it is almost certainly <tt>MoveConstructible</tt> and swappable.  
-However, this patch is necessary to be strictly correct.
-</p>
-
-<p>
-Previous resolution from Ahmed Charles:
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Change Table 100 as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 100 &mdash; Sequence container requirements (in addition to container) (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.insert(p,i,j)</tt>
-</td>
-<td>
-<tt>iterator</tt>
-</td>
-<td>
-<i>Requires:</i> <tt>T</tt> shall be <tt>EmplaceConstructible</tt>
-into <tt>X</tt> from <tt>*i</tt>. For <tt>vector</tt> <ins>and <tt>deque</tt></ins>, <del>if the iterator
-does not meet the forward iterator requirements (24.2.5),</del> <tt>T</tt> shall also be
-<tt>MoveInsertable</tt> into <tt>X</tt> and <tt>MoveAssignable</tt>.<br/>
-Each iterator in the range <tt>[i,j)</tt> shall be dereferenced exactly once.<br/>
-<i>pre:</i> <tt>i</tt> and <tt>j</tt> are not iterators into <tt>a</tt>.<br/>
-Inserts copies of elements in <tt>[i, j)</tt> before <tt>p</tt>
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-02-15 post-Issaquah session : move to Tentatively Ready]</i></p>
-
-<p>
-Pablo: We might have gone too far with the fine-grained requirements. Typically these things come in groups.
-</p>
-<p>
-Alisdair: I think the concepts folks assumed we would take their guidance.
-</p>
-<p>
-Move to Tentatively Ready.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Change Table 100 as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 100 &mdash; Sequence container requirements (in addition to container) (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>a.insert(p,i,j)</tt>
-</td>
-<td>
-<tt>iterator</tt>
-</td>
-<td>
-<i>Requires:</i> <tt>T</tt> shall be <tt>EmplaceConstructible</tt> into <tt>X</tt><br/> 
-from <tt>*i</tt>. For <tt>vector</tt> <ins>and <tt>deque</tt></ins>, <del>if the iterator</del><br/>
-<del>does not meet the forward iterator requirements (24.2.5),</del> <tt>T</tt> shall also be<br/>
-<tt>MoveInsertable</tt> into <tt>X</tt><ins>, <tt>MoveConstructible</tt>,</ins><br/> 
-<del>and</del> <tt>MoveAssignable</tt><ins>, and swappable (17.6.3.2 [swappable.requirements])</ins>.<br/>
-Each iterator in the range <tt>[i,j)</tt> shall be dereferenced exactly once.<br/>
-<i>pre:</i> <tt>i</tt> and <tt>j</tt> are not iterators into <tt>a</tt>.<br/>
-Inserts copies of elements in <tt>[i, j)</tt> before <tt>p</tt>
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2268"></a>2268. Setting a default argument in the declaration of a member function <tt>assign</tt> of <tt>std::basic_string</tt></h3>
-<p><b>Section:</b> 21.4 [basic.string] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Vladimir Grigoriev <b>Opened:</b> 2013-06-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#basic.string">active issues</a> in [basic.string].</p>
-<p><b>View all other</b> <a href="lwg-index.html#basic.string">issues</a> in [basic.string].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Constructors and member functions <tt>assign</tt> of class <tt>std::basic_string</tt> have one to one relation (except the 
-explicit constructor that creates an empty string). The following list shows this relation:
-</p>
-
-<blockquote><pre>
-explicit basic_string(const Allocator&amp; a = Allocator());
-
-basic_string(const basic_string&amp; str);
-basic_string&amp; assign(const basic_string&amp; str);
-
-basic_string(basic_string&amp;&amp; str) noexcept;
-basic_string&amp; assign(basic_string&amp;&amp; str) noexcept;
-
-basic_string(const basic_string&amp; str, size_type pos, size_type n = npos,
-  const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const basic_string&amp; str, size_type pos,
-  size_type n);
-
-basic_string(const charT* s,
-  size_type n, const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const charT* s, size_type n);
-
-basic_string(const charT* s, const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const charT* s);
-
-basic_string(size_type n, charT c, const Allocator&amp; a = Allocator());
-basic_string&amp; assign(size_type n, charT c);
-
-template&lt;class InputIterator&gt;
-basic_string(InputIterator begin, InputIterator end,
-  const Allocator&amp; a = Allocator());
-template&lt;class InputIterator&gt;
-basic_string&amp; assign(InputIterator first, InputIterator last);
-
-basic_string(initializer_list&lt;charT&gt;, const Allocator&amp; = Allocator());
-basic_string&amp; assign(initializer_list&lt;charT&gt;);
-</pre></blockquote>
-
-<p>
-So in fact any creating of an object of type <tt>std::basic_string</tt> using any of the above constructors 
-except the explicit constructor can be substituted for creating a (possibly non-empty) string and 
-then applying to it the corresponding method assign.
-<p/>
-For example these two code snippets give the same result:
-</p>
-
-<blockquote><pre>
-std::string s("Hello World");
-</pre></blockquote>
-
-<p>
-and
-</p>
-
-<blockquote><pre>
-std::string s;
-s.assign("Hello World");
-</pre></blockquote>
-
-<p>
-However there is one exception that has no a logical support. It is the pair of the following constructor and member function 
-<tt>assign</tt>
-</p>
-
-<blockquote><pre>
-basic_string(const basic_string&amp; str, size_type pos, size_type n = npos,
-             const Allocator&amp; a = Allocator());
-
-basic_string&amp; assign(const basic_string&amp; str, size_type pos, size_type n);
-</pre></blockquote>
-
-<p>
-The third parameter of the constructor has a default argument while in the <tt>assign</tt> function it is absent. So it is impossible 
-one to one to substitute the following code snippet
-</p>
-
-<blockquote><pre>
-std::string s("Hello World");
-std::string t(s, 6);
-</pre></blockquote>
-
-<p>
-by
-</p>
-
-<blockquote><pre>
-std::string s("Hello World");
-std::string t;
-t.assign(s, 6); // error: no such function
-</pre></blockquote>
-
-<p>
-To get an equivalent result using the <tt>assign</tt> function the programmer has to complicate the code that is error-prone
-</p>
-
-<blockquote><pre>
-std::string s("Hello World");
-std::string t;
-t.assign(s, 6, s.size() - 6); 
-</pre></blockquote>
-
-<p>
-To fix that, the declaration of the member function <tt>assign</tt> should be changed in such a way that its declaration 
-would be fully compatible with the declaration of the corresponding constructor, that is to specify the same default argument 
-for the third parameter of the <tt>assign</tt>.
-</p>
-
-<p>
-The <tt>assign</tt> function is not the only function that requires to be revised. 
-<p/>
-Now let include in the list of pairs constructor-assign with the modified method <tt>assign</tt> one more member function 
-<tt>append</tt>. We will get:
-</p>
-
-<blockquote><pre>
-explicit basic_string(const Allocator&amp; a = Allocator());
-
-basic_string(const basic_string&amp; str);
-basic_string&amp; assign(const basic_string&amp; str);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(const basic_string&amp; str);</span>
-
-basic_string(basic_string&amp;&amp; str) noexcept;
-basic_string&amp; assign(basic_string&amp;&amp; str) noexcept;
-
-basic_string(const basic_string&amp; str, size_type pos, size_type n = npos,
-  const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const basic_string&amp; str, size_type pos,
-  size_type n);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(const basic_string&amp; str, size_type pos,
-  size_type n);</span>
-
-basic_string(const charT* s,
-  size_type n, const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const charT* s, size_type n);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(const charT* s, size_type n);</span>
-
-basic_string(const charT* s, const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const charT* s);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(const charT* s);</span>
-
-basic_string(size_type n, charT c, const Allocator&amp; a = Allocator());
-basic_string&amp; assign(size_type n, charT c);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(size_type n, charT c);</span>
-
-template&lt;class InputIterator&gt;
-basic_string(InputIterator begin, InputIterator end,
-  const Allocator&amp; a = Allocator());
-template&lt;class InputIterator&gt;
-basic_string&amp; assign(InputIterator first, InputIterator last);
-<span style="color:#009900;font-weight:bold">template&lt;class InputIterator&gt;
-basic_string&amp; append(InputIterator first, InputIterator last);</span>
-
-basic_string(initializer_list&lt;charT&gt;, const Allocator&amp; = Allocator());
-basic_string&amp; assign(initializer_list&lt;charT&gt;);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(initializer_list&lt;charT&gt;);</span>
-</pre></blockquote>
-
-<p>As it seen from this record:</p>
-
-<blockquote><pre>
-basic_string(const basic_string&amp; str, size_type pos, size_type n = npos,
-  const Allocator&amp; a = Allocator());
-basic_string&amp; assign(const basic_string&amp; str, size_type pos,
-  size_type n);
-<span style="color:#009900;font-weight:bold">basic_string&amp; append(const basic_string&amp; str, size_type pos,
-  size_type n);</span>
-</pre></blockquote>
-
-<p>
-it is obvious that the function <tt>append</tt> also should have the default argument that is that it should be declared as:
-</p>
-
-<blockquote><pre>
-basic_string&amp; append(const basic_string&amp; str, size_type pos,
-  size_type n <ins>= npos</ins>);
-</pre></blockquote>
-
-<p>
-In fact there is no a great difference in using <tt>assign</tt> or <tt>append</tt> especially when the string is empty:
-</p>
-
-<blockquote><pre>
-std::string s("Hello World");
-std::string t;
-t.assign(s, 6);
- 
-std::string s("Hello World");
-std::string t;
-t.append(s, 6);
-</pre></blockquote>
-
-<p>
-In both cases the result will be the same. So the <tt>assign</tt> and <tt>append</tt> will be interchangeable from the point 
-of view of used arguments.
-<p/>
-There are another three member functions in class <tt>std::basic_string</tt> that could be brought in conformity with considered above functions.  
-They are member functions <tt>insert</tt>, <tt>replace</tt>, and <tt>compare</tt>.
-<p/>
-So it is suggested to substitute the following declarations of <tt>insert</tt>, <tt>replace</tt>, and <tt>compare</tt>:
-</p>
-
-<blockquote><pre>
-basic_string&amp; insert(size_type pos1, const basic_string&amp; str,
-  size_type pos2, size_type n);
-
-basic_string&amp; replace(size_type pos1, size_type n1,
-  const basic_string&amp; str, size_type pos2, size_type n2);
-
-int compare(size_type pos1, size_type n1,
-  const basic_string&amp; str, size_type pos2, size_type n2) const;
-</pre></blockquote>
-
-<p>
-by the declarations:
-</p>
-
-<blockquote><pre>
-basic_string&amp; insert(size_type pos1, const basic_string&amp; str,
-  size_type pos2, size_type n <ins>= npos</ins>);
-
-basic_string&amp; replace(size_type pos1, size_type n1,
-  const basic_string&amp; str, size_type pos2, size_type n2 <ins>= npos</ins>);
-
-int compare(size_type pos1, size_type n1,
-  const basic_string&amp; str, size_type pos2, size_type n2 <ins>= npos</ins>) const;
-</pre></blockquote>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Howard: Are we positive this won't conflict with any other overloads? 
-<p/>
-They all appear to be unambiguous. 
-<p/>
-Alisdair: Ok, move to Ready. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Change class template <tt>basic_string</tt> synopsis, 21.4 [basic.string] p5, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class charT, class traits = char_traits&lt;charT&gt;,
-    class Allocator = allocator&lt;charT&gt; &gt;
-  class basic_string {
-  public:
-    [&hellip;]
-    basic_string&amp; append(const basic_string&amp; str, size_type pos, size_type n <ins>= npos</ins>);
-    [&hellip;]
-    basic_string&amp; assign(const basic_string&amp; str, size_type pos, size_type n <ins>= npos</ins>);
-    [&hellip;]
-    basic_string&amp; insert(size_type pos1, const basic_string&amp; str, size_type pos2, size_type n <ins>= npos</ins>);
-    [&hellip;]
-    basic_string&amp; replace(size_type pos1, size_type n1, const basic_string&amp; str, size_type pos2, size_type n2 <ins>= npos</ins>);
-    [&hellip;]
-    int compare(size_type pos1, size_type n1, const basic_string&amp; str, size_type pos2, size_type n2 <ins>= npos</ins>) const;
-    [&hellip;]
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.6.2 [string::append] before p3 as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp; append(const basic_string&amp; str, size_type pos, size_type n <ins>= npos</ins>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.6.3 [string::assign] before p4 as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp; assign(const basic_string&amp; str, size_type pos, size_type n <ins>= npos</ins>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.6.4 [string::insert] before p5 as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp; insert(size_type pos1, const basic_string&amp; str, size_type pos2, size_type n <ins>= npos</ins>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.6.6 [string::replace] before p5 as indicated:</p>
-
-<blockquote><pre>
-basic_string&amp; replace(size_type pos1, size_type n1, const basic_string&amp; str, size_type pos2, size_type n2 <ins>= npos</ins>);
-</pre></blockquote>
-</li>
-
-<li><p>Change 21.4.7.9 [string::compare] before p4 as indicated:</p>
-
-<blockquote><pre>
-int compare(size_type pos1, size_type n1, const basic_string&amp; str, size_type pos2, size_type n2 <ins>= npos</ins>) const;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2271"></a>2271. <tt>regex_traits::lookup_classname</tt> specification unclear</h3>
-<p><b>Section:</b> 28.7 [re.traits] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-07-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.traits">issues</a> in [re.traits].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.7 [re.traits] p9 says that <tt>regex_traits::lookup_classname</tt> should
-return a value that compares equal to 0, but there is no requirement
-that a bitmask type is equality comparable with 0, e.g. 17.5.2.1.3 [bitmask.types] says bitmask types 
-can be implemented using <tt>std::bitset</tt>.
-<p/>
-Either there should be an additional requirement on the type or the function definition should be fixed.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Stefanus: Resolution looks good, doesn't seem to need fixing anywhere else from a quick look through the draft.
-<p/>
-Any objection to Ready?
-<p/>
-No objection.
-<p/>
-Action: Move to Ready. </p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 28.7 [re.traits] p9:</p>
-
-<blockquote>
-<pre>
-template &lt;class ForwardIterator&gt;
-  char_class_type lookup_classname(
-    ForwardIterator first, ForwardIterator last, bool icase = false) const;
-</pre>
-<blockquote>
-<p>
--9- <i>Returns:</i> an unspecified value that represents the character classification named by the character
-sequence designated by the iterator range <tt>[first,last)</tt>. If the parameter <tt>icase</tt> is true then the
-returned mask identifies the character classification without regard to the case of the characters being
-matched, otherwise it does honor the case of the characters being matched. The value returned shall
-be independent of the case of the characters in the character sequence. If the name is not recognized
-then returns <del>a value that compares equal to 0</del><ins><tt>char_class_type()</tt></ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2272"></a>2272. <tt>quoted</tt> should use <tt>char_traits::eq</tt> for character comparison</h3>
-<p><b>Section:</b> 27.7.6 [quoted.manip] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2013-07-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#quoted.manip">issues</a> in [quoted.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 27.7.6 [quoted.manip] p2 b2:
-</p>
-<blockquote>
-<p>
-&mdash; Each character in <tt>s</tt>. If the character to be output is equal to <tt>escape</tt> or <tt>delim</tt>, 
-as determined by <tt>operator==</tt>, first output <tt>escape</tt>.
-</p>
-</blockquote>
-<p>
-In 27.7.6 [quoted.manip] p3 b1 sb1:
-</p>
-<blockquote>
-<p>
-&mdash; If the first character extracted is equal to <tt>delim</tt>, as determined by <tt>operator==</tt>, [&hellip;]
-</p>
-</blockquote>
-
-<p>
-these should both use <tt>traits::eq</tt>.
-</p>
-
-<p>
-Also, I believe that 27.7.6 [quoted.manip] p3 implies that:
-</p>
-<blockquote>
-<pre>
-std::ostream _stream;
-std::string _string;
-_stream &lt;&lt; _string;
-_stream &lt;&lt; quoted(_string);
-</pre>
-</blockquote>
-<p>
-should both compile, or both fail to compile, based on whether or not their <tt>char_traits</tt> match.
-But I believe that the standard should say that explicitly.
-</p>
-
-<p><i>[
-2013-09 Chicago
-]</i></p>
-
-
-<p>
-Marshall Clow improved the wording with support from Stefanus.
-</p>
-
-<p><i>[
-2013-09 Chicago (late night issues)
-]</i></p>
-
-
-<p>
-Moved to Ready, after confirming wording correctly reflects discussion earlier in the day.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 27.7.6 [quoted.manip] p2+3 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class charT&gt;
-  <i>unspecified</i> quoted(const charT* s, charT delim=charT('"'), charT escape=charT('\\'));
-template &lt;class charT, class traits, class Allocator&gt;
-  <i>unspecified</i> quoted(const basic_string&lt;charT, traits, Allocator>&amp; s,
-                     charT delim=charT('"'), charT escape=charT('\\'));
-</pre>
-<blockquote>
-<p>
--2- <i>Returns:</i> An object of unspecified type such that if <tt>out</tt> is an instance of <tt>basic_ostream</tt> with member
-type <tt>char_type</tt> the same as <tt>charT</tt> <ins>and with member type <tt>traits_type</tt>, which in the second form is 
-the same as <tt>traits</tt></ins>, then the expression 
-<tt>out &lt;&lt; quoted(s, delim, escape)</tt> behaves
-as if it inserts the following characters into <tt>out</tt> using character inserter function templates (27.7.3.6.4),
-which may throw <tt>ios_base::failure</tt> (27.5.3.1.1):
-</p>
-<ul>
-<li><p><tt>delim</tt></p></li>
-<li><p>Each character in <tt>s</tt>. If the character to be output is equal to <tt>escape</tt> or <tt>delim</tt>, 
-as determined by <del><tt>operator==</tt></del><ins><tt>traits_type::eq</tt></ins>, first output <tt>escape</tt>.</p></li>
-<li><p><tt>delim</tt></p></li>
-</ul>
-</blockquote>
-
-<pre>
-template &lt;class charT, class traits, class Allocator&gt;
-  <i>unspecified</i> quoted(basic_string&lt;charT, traits, Allocator>&amp; s,
-                     charT delim=charT('"'), charT escape=charT('\\'));
-</pre>
-<blockquote>
-<p>
--3- <i>Returns:</i> An object of unspecified type such that:
-</p>
-<ul>
-<li><p>If <tt>in</tt> is an instance of <tt>basic_istream</tt> with member type<ins>s</ins> <tt>char_type</tt>
-<ins>and <tt>traits_type</tt></ins> the same as <tt>charT</tt> <ins>and <tt>traits</tt>, respectively</ins>, then the 
-expression <tt>in &gt;&gt; quoted(s, delim, escape)</tt> behaves as if it extracts 
-the following characters from in using <tt>basic_istream::operator&gt;&gt;</tt> (27.7.2.2.3) which may throw 
-<tt>ios_base::failure</tt> (27.5.3.1.1):
-</p>
-<ul>
-<li><p>If the first character extracted is equal to <tt>delim</tt>, as determined by 
-<del><tt>operator==</tt></del><ins><tt>traits_type::eq</tt></ins>, then: [&hellip;]</p></li>
-</ul>
-</li>
-<li><p>
-If <tt>out</tt> is an instance of <tt>basic_ostream</tt> with member type<ins>s</ins> <tt>char_type</tt>
-<ins>and <tt>traits_type</tt></ins> the same as <tt>charT</tt> <ins>and <tt>traits</tt>, respectively</ins>, 
-then the expression <tt>out &lt;&lt; quoted(s, delim, escape)</tt> behaves as specified for the <tt>const 
-basic_string&lt;charT, traits, Allocator&gt;&amp;</tt> overload of the quoted function.
-</p></li>
-</ul>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2274"></a>2274. Does <tt>map::operator[]</tt> value-initialize or default-insert a missing element?</h3>
-<p><b>Section:</b> 23.4.4.3 [map.access], 23.5.4.3 [unord.map.elem] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Andrzej Krzemie&#324;ski <b>Opened:</b> 2013-07-16 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.access">issues</a> in [map.access].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Suppose that I provide a custom allocator for type <tt>int</tt>, that renders value 1 rather than 0 in default-insertion:
-</p>
-<blockquote>
-<pre>
-struct Allocator1 : std::allocator&lt;int&gt;
-{
-  using super = std::allocator&lt;int&gt;;
-
-  template&lt;typename Up, typename... Args&gt;
-  void construct(Up* p, Args&amp;&amp;... args)
-  { super::construct(p, std::forward&lt;Args&gt;(args)...); }
-
-  template&lt;typename Up&gt;
-  void construct(Up* p)
-  { ::new((void*)p) Up(1); }
-};
-</pre>
-</blockquote>
-
-<p>
-Now, if I use this allocator with <tt>std::map</tt>, and I use <tt>operator[]</tt> to access a not-yet-existent value, 
-what value of the <tt>mapped_type</tt> should be created? 0 (value-initialization) or 1 (default-insertion):
-</p>
-
-<blockquote>
-<pre>
-map&lt;string, int, less&lt;string&gt;, Allocator1&gt; map;
-cout &lt;&lt; map["cat"];
-</pre>
-</blockquote>
-
-<p>
-N3960 is not very clear. 23.4.4.3 [map.access] in para 1 says:
-</p>
-<blockquote>
-<p>
-"If there is no key equivalent to <tt>x</tt> in the map, inserts <tt>value_type(x, T())</tt> into the map."
-</p>
-</blockquote>
-<p>
-So, it requires value-initialization.
-<p/>
-But para 2 says:
-</p>
-<blockquote>
-<p>
-"<tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>."
-</p>
-</blockquote>
-<p>
-This implies default-insertion, because if not, why the requirement. Also similar functions like 
-<tt>vector::resize</tt> already require default-insertion wherever they put <tt>DefaultInsertable</tt> requirements.
-<p/>
-Not to mention that default-insertion is more useful, because it allows custom allocators to "override" the 
-default value of <tt>mapped_type</tt>.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Alisdair: Matters only for POD or trivial types 
-<p/>
-Marshall: issue might show up elsewhere other than <tt>map&lt;&gt;</tt> 
-<p/>
-Alisdair: initialize elements in any containers &mdash; by calling construct on allocator traits 
-<p/>
-Marshall: existing wording is clear 
-<p/>
-Alisdair: main concern is difference in wording, discusses default initialization 
-<p/>
-Nico: different requirement needed 
-<p/>
-Alisdair: gut is issue is NAD, brings up <tt>DefaultInsertable</tt> definition &mdash; discusses definition 
-<p/>
-Nico: why do we have the requirement? 
-<p/>
-Alisdair: other containers have this requirement 
-<p/>
-Marshall: this applies to many other containers 
-<p/>
-Nico: <tt>deque&lt;&gt;</tt> in particular 
-<p/>
-Alisdair: discusses allocator construct 
-<p/>
-Alisdair: wording raises concerns that aren't said in existing standard 
-<p/>
-Nico: sees no benefit to change 
-<p/>
-Marshall: leery of change 
-<p/>
-Alisdair: can be made clearer; might need to add note to <tt>DefaultInsertable</tt>; borderline editorial, 
-comfortable without note, willing to wait until other issues arise. close issue as NAD
-</p>
-
-<p><i>[2015-01-20: Tomasz Kami&nacute;ski comments]</i></p>
-
-<p>
-With the addition of the <tt>try_emplace</tt> method the behavior of the <tt>operator[]</tt> for the maps, 
-may be defined as follows:
-</p>
-<blockquote>
-<pre>
-T&amp; operator[](const key_type&amp; x);
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: Equivalent to: <tt>try_emplace(x).first-&gt;second</tt>;
-</p>
-</blockquote>
-<pre>
-T&amp; operator[](key_type&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: Equivalent to <tt>try_emplace(std::move(x)).first-&gt;second</tt>;
-</p>
-</blockquote>
-</blockquote>
-<p>
-This would simplify the wording and also after resolution of the issue <a href="lwg-defects.html#2464">2464</a>, this wording would 
-also address this issue.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Wait until <a href="lwg-defects.html#2464">2464</a> and <a href="lwg-active.html#2469">2469</a> are in, which solve this.
-</p>
-
-<p><i>[2015-05-06 Lenexa: This is resolved by <a href="lwg-active.html#2469">2469</a>.]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 23.4.4.3 [map.access] p1+p5 as indicated:</p>
-
-<blockquote>
-<pre>
-T&amp; operator[](const key_type&amp; x);
-</pre>
-<blockquote>
-<p>
--1- <i>Effects:</i> If there is no key equivalent to <tt>x</tt> in the map, inserts <del><tt>value_type(x, T())</tt> 
-into the map</del><ins>into the map a value with <tt>key_type</tt> initialized using expression <tt>x</tt> and <tt>mapped_type</tt> 
-initialized by default-insertion</ins>.
-<p/>
--2- <i>Requires:</i> <tt>key_type</tt> shall be <tt>CopyInsertable</tt> and <tt>mapped_type</tt> shall be 
-<tt>DefaultInsertable</tt> into <tt>*this</tt>.
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-T&amp; operator[](key_type&amp;&amp; x);
-</pre>
-<blockquote>
-<p>
--5- <i>Effects:</i> If there is no key equivalent to <tt>x</tt> in the map, inserts 
-<del><tt>value_type(std::move(x), T())</tt> into the map</del><ins>into the map a value with <tt>key_type</tt> 
-initialized using expression <tt>std::move(x)</tt> and <tt>mapped_type</tt> initialized by default-insertion</ins>.
-<p/>
--6- <i>Requires:</i> <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.5.4.3 [unord.map.elem] p2 as indicated:</p>
-
-<blockquote>
-<pre>
-mapped_type&amp; operator[](const key_type&amp; k);
-mapped_type&amp; operator[](key_type&amp;&amp; k);
-</pre>
-<blockquote>
-<p>
--1- <i>Requires:</i> <tt>mapped_type</tt> shall be <tt>DefaultInsertable</tt> into <tt>*this</tt>. 
-For the first operator, <tt>key_type</tt> shall be <tt>CopyInsertable</tt> into <tt>*this</tt>. For the second 
-operator, <tt>key_type</tt> shall be <tt>MoveConstructible</tt>.
-<p/>
--2- <i>Effects:</i> If the <tt>unordered_map</tt> does not already contain an element whose key is equivalent to 
-<tt>k</tt>, the first operator inserts <del>the value <tt>value_type(k, mapped_type())</tt></del><ins>a value with 
-<tt>key_type</tt> initialized using expression <tt>x</tt> and <tt>mapped_type</tt> initialized by default-insertion</ins> 
-and the second operator inserts <del>the value <tt>value_type(std::move(k), mapped_type())</tt></del><ins>a value 
-with <tt>key_type</tt> initialized using expression <tt>std::move(x)</tt> and <tt>mapped_type</tt> initialized by 
-default-insertion</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2275"></a>2275. [CD] Why is <tt>forward_as_tuple</tt> not <tt>constexpr</tt>?</h3>
-<p><b>Section:</b> 20.4.2.4 [tuple.creation] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2013-07-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.creation">issues</a> in [tuple.creation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses ES 11</b></p>
-
-<p>
-In <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3471.html">n3471</a>, a bunch of routines 
-from header <tt>&lt;tuple&gt;</tt> were made <tt>constexpr</tt>.
-<p/>
-<tt>make_tuple/tuple_cat/get&lt;&gt;(tuple)/</tt>relational operators &mdash; all these were "constexpr-ified".
-<p/>
-But not <tt>forward_as_tuple</tt>.
-<p/>
-Why not?
-<p/>
-This was discussed in Portland, and STL opined that this was "an omission" (along with <tt>tuple_cat</tt>, which was added)
-<p/>
-In discussion on c++std-lib@accu.org list, Pablo agreed that <tt>forward_as_tuple</tt> should be <tt>constexpr</tt>.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Moved to Immediate, this directly addresses an NB comment and the wording is non-controversial.
-</p>
-<p>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change header <tt>&lt;tuple&gt;</tt> synopsis, 20.4.1 [tuple.general] as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class... Types&gt;
-  <ins>constexpr</ins> tuple&lt;Types&amp;&amp;...&gt; forward_as_tuple(Types&amp;&amp;...) noexcept;
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.4 [tuple.creation] before p5 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class... Types&gt;
-  <ins>constexpr</ins> tuple&lt;Types&amp;&amp;...&gt; forward_as_tuple(Types&amp;&amp;... t) noexcept;
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2278"></a>2278. User-defined literals for Standard Library types</h3>
-<p><b>Section:</b> 20.12.2 [time.syn], 21.3 [string.classes] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-07-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3642.pdf">This paper</a> adds user-defined literals 
-for <tt>string</tt>, <tt>complex</tt> and <tt>chrono</tt> types. It puts each new literal signature in an inline namespace 
-inside of std. Section 3.1 of the paper gives the rationale for doing this:
-</p>
-
-<blockquote><p>
-As a common schema this paper proposes to put all suffixes for user defined literals in separate inline namespaces 
-that are below the inline namespace <tt>std::literals</tt>. [<i>Note:</i> This allows a user either to do a 
-<tt>using namespace std::literals;</tt> to import all literal operators from the standard available through header 
-file inclusion, or to use <tt>using namespace std::string_literals;</tt> to just obtain the literals operators 
-for a specific type. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>This isn't how inline namespaces work.</p>
-
-<p>
-7.3.1 [namespace.def]/p8 says in part:
-</p>
-
-<blockquote><p>
-Members of an inline namespace can be used in most respects as though they were members of the enclosing namespace. 
-Specifically, the inline namespace and its enclosing namespace are both added to the set of associated namespaces 
-used in argument-dependent lookup (3.4.2) whenever one of them is, and a using- directive (7.3.4) that names the 
-inline namespace is implicitly inserted into the enclosing namespace as for an unnamed namespace (7.3.1.1). [&hellip;]
-</p></blockquote>
-
-<p>
-I.e. these literals will appear to the client to already be imported into namespace <tt>std</tt>. The rationale in 
-the paper appears to indicate that this is not the intended behavior, and that instead the intended behavior is 
-to require the user to say:
-</p>
-<blockquote><pre>
-using namespace std::literals;
-</pre></blockquote>
-<p>
-or:
-</p>
-<blockquote><pre>
-using namespace std::literals::string_literals;
-</pre></blockquote>
-<p>
-prior to use. To get this behavior non-inlined (normal) namespaces must be used.
-</p>
-
-<p>
-Originally proposed resolution:
-<p/>
-Strike the use of "inline" from each use associated with <tt>literals</tt>,  <tt>string_literals</tt>, 
-<tt>chrono_literals</tt>.
-<p/>
-My opinion is that this must be done prior to publishing C++14, otherwise we are stuck with this 
-(apparently unwanted) decision forever.
-<p/>
-Marshall Clow:
-</p>
-<blockquote class="note">
-<p>
-The rationale that I recall was that:
-</p>
-<ol>
-<li><p>Users could write "<tt>using namespace std::literals;</tt>" to get all the literal suffixes, or</p></li>
-<li><p>Users could write "<tt>using namespace std::literals::string_literals;</tt>" or 
-"<tt>using namespace std::literals::chrono_literals;</tt>" to get a subset of the suffixes.</p></li>
-</ol>
-<p>
-To accomplish that, I believe that:
-</p>
-<ol style="list-style-type:lower-alpha">
-<li><p>Namespace "<tt>std::literals</tt>" <em>should not</em> be <tt>inline</tt></p></li>
-<li><p>Namespaces "<tt>std::literals::string_literals</tt>" and "<tt>std::literals::chrono_literals</tt>" <em>should</em> 
-be <tt>inline</tt></p></li>
-</ol>
-</blockquote>
-<p>
-Further details see also reflector message <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=34256">c++std-lib-34256</a>.
-</p>
-
-<p>
-Previous resolution from Marshall Clow:
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Modify header <tt>&lt;chrono&gt;</tt> synopsis, 20.12.2 [time.syn], as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-namespace chrono {
-[&hellip;]
-} // namespace chrono
-<del>inline</del> namespace literals {
-inline namespace chrono_literals {
-[&hellip;]
-} // namespace chrono_literals
-} // namespace literals
-} // namespace std
-</pre></blockquote>
-</li>
-
-<li><p>Modify header <tt>&lt;string&gt;</tt> synopsis, 21.3 [string.classes] p1, as indicated:</p>
-
-<blockquote><pre>
-#include &lt;initializer_list&gt;
-
-namespace std {
-[&hellip;]
-<del>inline</del> namespace literals {
-inline namespace string_literals {
-[&hellip;]
-}
-}
-}
-</pre></blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-
-<p>
-After a discussion about intent, the conclusion was that if you hoist a type with a "using" directive, then you should also 
-get the associated literal suffixes with the type.
-<p/>
-This is accomplished by marking namespace <tt>std::literals</tt> as <tt>inline</tt>, but for types in their own namespace inside 
-<tt>std</tt>, then they will need to do this as well. The only case in the current library is <tt>chrono</tt>.
-</p>
-
-<p>Marshall Clow provides alternative wording.</p>
-
-<p><i>[2013-09 Chicago (late night issues)]</i></p>
-
-<p>
-Moved to Ready, after confirming wording reflects the intent of the earlier discussion.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Modify header <tt>&lt;chrono&gt;</tt> synopsis, 20.12.2 [time.syn], as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-[&hellip;]
-inline namespace literals {
-inline namespace chrono_literals {
-[&hellip;]
-constexpr chrono::duration&lt;<i>unspecified</i> , nano&gt; operator "" ns(long double);
-
-} // namespace chrono_literals
-} // namespace literals
-
-<ins>
-namespace chrono {
-    using namespace literals::chrono_literals;
-} // namespace chrono
-</ins>
-} // namespace std
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2280"></a>2280. <tt>begin/end</tt> for arrays should be <tt>constexpr</tt> and <tt>noexcept</tt></h3>
-<p><b>Section:</b> 24.7 [iterator.range] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2013-08-22 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#iterator.range">active issues</a> in [iterator.range].</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.range">issues</a> in [iterator.range].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The array forms of <tt>std::begin</tt> and <tt>std::end</tt> should be <tt>constexpr</tt> and <tt>noexcept</tt>.
-</p>
-
-<p>
-<strong>Previous resolution from Andy Sawyer:</strong>
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Edit header <tt>&lt;iterator&gt;</tt> synopsis, 24.3 [iterator.synopsis] as indicated:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* begin(T (&amp;array)[N]) <ins>noexcept</ins>;
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* end(T (&amp;array)[N]) <ins>noexcept</ins>;
-template &lt;class C&gt; <ins>constexpr</ins> auto cbegin(const C&amp; c) -&gt; decltype(std::begin(c));
-template &lt;class C&gt; <ins>constexpr</ins> auto cend(const C&amp; c) -&gt; decltype(std::end(c));
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 24.7 [iterator.range] before p4+5 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* begin(T (&amp;array)[N]) <ins>noexcept</ins>;
-</pre>
-<blockquote>
-<p>
--4- <i>Returns</i>: <tt>array</tt>.
-</p>
-</blockquote>
-<pre>
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* end(T (&amp;array)[N]) <ins>noexcept</ins>;
-</pre>
-<blockquote>
-<p>
--5- <i>Returns</i>: <tt>array + N</tt>.
-</p>
-</blockquote>
-<pre>
-template &lt;class C&gt; <ins>constexpr</ins> auto cbegin(const C&amp; c) -&gt; decltype(std::begin(c));
-</pre>
-<blockquote>
-<p>
--6- <i>Returns</i>: <tt>std::begin(c)</tt>.
-</p>
-</blockquote>
-<pre>
-template &lt;class C&gt; <ins>constexpr</ins> auto cend(const C&amp; c) -&gt; decltype(std::end(c));
-</pre>
-<blockquote>
-<p>
--7- <i>Returns</i>: <tt>std::end(c)</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Add <tt>noexcept(noexcept(std::begin/end(c)))</tt> to <tt>cbegin</tt> and <tt>cend</tt>, move to ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Edit header <tt>&lt;iterator&gt;</tt> synopsis, 24.3 [iterator.synopsis] as indicated:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* begin(T (&amp;array)[N]) <ins>noexcept</ins>;
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* end(T (&amp;array)[N]) <ins>noexcept</ins>;
-template &lt;class C&gt; <ins>constexpr</ins> auto cbegin(const C&amp; c) <ins>noexcept(noexcept(std::begin(c)))</ins> -&gt; decltype(std::begin(c));
-template &lt;class C&gt; <ins>constexpr</ins> auto cend(const C&amp; c) <ins>noexcept(noexcept(std::end(c)))</ins> -&gt; decltype(std::end(c));
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 24.7 [iterator.range] before p4+5 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* begin(T (&amp;array)[N]) <ins>noexcept</ins>;
-</pre>
-<blockquote>
-<p>
--4- <i>Returns</i>: <tt>array</tt>.
-</p>
-</blockquote>
-<pre>
-template &lt;class T, size_t N&gt; <ins>constexpr</ins> T* end(T (&amp;array)[N]) <ins>noexcept</ins>;
-</pre>
-<blockquote>
-<p>
--5- <i>Returns</i>: <tt>array + N</tt>.
-</p>
-</blockquote>
-<pre>
-template &lt;class C&gt; <ins>constexpr</ins> auto cbegin(const C&amp; c) <ins>noexcept(noexcept(std::begin(c)))</ins> -&gt; decltype(std::begin(c));
-</pre>
-<blockquote>
-<p>
--6- <i>Returns</i>: <tt>std::begin(c)</tt>.
-</p>
-</blockquote>
-<pre>
-template &lt;class C&gt; <ins>constexpr</ins> auto cend(const C&amp; c) <ins>noexcept(noexcept(std::end(c)))</ins> -&gt; decltype(std::end(c));
-</pre>
-<blockquote>
-<p>
--7- <i>Returns</i>: <tt>std::end(c)</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2282"></a>2282. [fund.ts] Incorrect <tt>is_assignable</tt> constraint in <tt>optional::op=(U&amp;&amp;)</tt></h3>
-<p><b>Section:</b> X [optional.object.assign] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-08-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#optional.object.assign">issues</a> in [optional.object.assign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-Minor wording nit in X [optional.object.assign]/p15:
-</p>
-<blockquote><pre>
-template &lt;class U&gt; optional&lt;T&gt;&amp; operator=(U&amp;&amp; v);
-</pre>
-<blockquote>
-<p>
--15- <i>Requires:</i> <tt>is_constructible&lt;T, U&gt;::value</tt> is true and <tt>is_assignable&lt;<span  style="color:#C80000;font-weight:bold">U, T</span>&gt;::value</tt> is true.
-</p>
-</blockquote></blockquote>
-<p>
-Should be:
-</p>
-<blockquote><pre>
-template &lt;class U&gt; optional&lt;T&gt;&amp; operator=(U&amp;&amp; v);
-</pre>
-<blockquote>
-<p>
--15- <i>Requires:</i> <tt>is_constructible&lt;T, U&gt;::value</tt> is true and <tt>is_assignable&lt;<span  style="color:#C80000;font-weight:bold">T&amp;, U</span>&gt;::value</tt> is true.
-</p>
-</blockquote></blockquote>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred.  This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as fundamentals-ts.
-</p>
-
-<p><i>[2014-06-07 Daniel comments]</i></p>
-
-<p>
-This issue should be set to <b>Resolved</b>, because the wording fix is already applied in the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html#optional.object.assign">last fundamentals working draft</a>.
-</p>
-
-<p><i>[2014-06-16 Rapperswill]</i></p>
-
-<p>
-Confirmed that this issue is resolved in the current Library Fundamentals working paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit X [optional.object.assign] p15 as indicated:</p>
-
-<blockquote><pre>
-template &lt;class U&gt; optional&lt;T&gt;&amp; operator=(U&amp;&amp; v);
-</pre>
-<blockquote>
-<p>
--15- <i>Requires:</i> <tt>is_constructible&lt;T, U&gt;::value</tt> is true and 
-<tt>is_assignable&lt;<del>U, T</del><ins>T&amp;, U</ins>&gt;::value</tt> is true.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2283"></a>2283. [fund.ts] <tt>optional</tt> declares and then does not define an <tt>operator&lt;()</tt></h3>
-<p><b>Section:</b> X [optional.comp_with_t] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-08-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-In  [optional.syn] there is:
-</p>
-<blockquote><pre>
-template &lt;class T&gt; constexpr bool operator&lt;(const T&amp;, const optional&lt;T&gt;&amp;);
-</pre></blockquote>
-<p>
-But I can find no definition for this signature.
-</p>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred.  This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as fundamentals-ts.
-</p>
-
-<p><i>[2014-06-07 Daniel comments]</i></p>
-
-<p>
-This issue should be set to <b>Resolved</b>, because the wording fix is already applied in the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html#optional.comp_with_t">last fundamentals working draft</a>.
-</p>
-
-<p><i>[2014-06-16 Rapperswill]</i></p>
-
-<p>
-Confirmed that this issue is resolved in the current Library Fundamentals working paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Add to X [optional.comp_with_t]:</p>
-
-<blockquote><pre>
-<ins>template &lt;class T&gt; constexpr bool operator&lt;(const T&amp; v, const optional&lt;T&gt;&amp; x);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns:</i> <tt>bool(x) ? less&lt;T&gt;{}(v, *x) : false</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2284"></a>2284. Inconsistency in <tt>allocator_traits::max_size</tt></h3>
-<p><b>Section:</b> 20.7.8 [allocator.traits] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2013-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Section 20.7.8 [allocator.traits] says:
-</p>
-<blockquote><pre>
-static size_type max_size(const Alloc&amp; a) noexcept;
-</pre></blockquote>
-<p>
-Section 20.7.8.2 [allocator.traits.members] says:
-</p>
-<blockquote><pre>
-static size_type max_size(Alloc&amp; a) noexcept;
-</pre></blockquote>
-
-<p>
-These should be the same.
-</p>
-
-<p>
-Discussion:
-</p>
-
-<p>
-Pablo (who I believe wrote the <tt>allocator_traits</tt> proposal) says "The function should take a <tt>const</tt> reference."
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-No objections, so moved to Immediate.
-</p>
-<p>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 20.7.8.2 [allocator.traits.members] as follows:</p>
-
-<blockquote><pre>
-static size_type max_size(<ins>const</ins> Alloc&amp; a) noexcept;
-</pre>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2285"></a>2285. <tt>make_reverse_iterator</tt></h3>
-<p><b>Section:</b> 24.5.1 [reverse.iterators] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2013-08-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iterators">issues</a> in [reverse.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-We have <tt>make_move_iterator</tt>, but not <tt>make_reverse_iterator</tt>, which
-is also useful when dealing with some types without an <tt>rbegin</tt>/<tt>rend</tt> support (like, C strings).
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Billy: reviewed it last night STL: has suggested prior, but denied for complexity 
-<p/>
-Billy: Alisdair wanted to review for <tt>reverse(reverse())</tt>; 
-<p/>
-STL: likes the issue, was like him 
-<p/>
-Stefanus: likes definitions, places where things should be 
-<p/>
-STL: for consistency with <tt>make_move_iterator</tt> 
-<p/>
-Stefanus: minor editorial issue - subdivision in these 2 sections is different from  [move.iter]. 
-See 24.5.3.3.14 [move.iter.nonmember]
-<p/>
-STL: motion to move to Ready
-<p/>
-Move to Ready 
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change header <tt>&lt;iterator&gt;</tt> synopsis, 24.3 [iterator.synopsis] as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  [&hellip;]
-  template &lt;class Iterator&gt;
-    reverse_iterator&lt;Iterator&gt; operator+(
-      typename reverse_iterator&lt;Iterator&gt;::difference_type n,
-      const reverse_iterator&lt;Iterator>&amp; x);
-<ins>
-  template &lt;class Iterator&gt;
-    reverse_iterator&lt;Iterator&gt; make_reverse_iterator(Iterator i);
-</ins>
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change class template <tt>reverse_iterator</tt> synopsis, 24.5.1.1 [reverse.iterator] as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  [&hellip;]
-  template &lt;class Iterator&gt;
-    reverse_iterator&lt;Iterator&gt; operator+(
-      typename reverse_iterator&lt;Iterator&gt;::difference_type n,
-      const reverse_iterator&lt;Iterator>&amp; x);
-<ins>
-  template &lt;class Iterator&gt;
-    reverse_iterator&lt;Iterator&gt; make_reverse_iterator(Iterator i);
-</ins>
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>After 24.5.1.3.20 [reverse.iter.opsum] add the following new sub-clause to 24.5.1.3 [reverse.iter.ops]:</p>
-
-<blockquote>
-<pre>
-<ins>
-template &lt;class Iterator&gt;
-  reverse_iterator&lt;Iterator&gt; make_reverse_iterator(Iterator i);
-</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Returns:</i> <tt>reverse_iterator&lt;Iterator&gt;(i)</tt>.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2287"></a>2287. [fund.ts] Incorrect exception safety for <tt>optional</tt> copy assignment operator</h3>
-<p><b>Section:</b> X [optional.object.assign] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2013-08-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#optional.object.assign">issues</a> in [optional.object.assign].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-The <i>Exception safety</i> paragraph of X [optional.object.assign] calls out <tt>T</tt>'s copy constructor when 
-it should refer to <tt>T</tt>'s copy assignment operator.
-</p>
-
-<p><i>[2013-09 Chicago:]</i></p>
-
-<p>
-Move to Deferred.  This feature will ship after C++14 and should be revisited then.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as fundamentals-ts.
-</p>
-
-<p><i>[2014-06-07 Daniel comments]</i></p>
-
-<p>
-This issue should be set to <b>Resolved</b>, because the wording fix is already applied in the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html#optional.object.assign">last fundamentals working draft</a>.
-</p>
-
-<p><i>[2014-06-16 Rapperswill]</i></p>
-
-<p>
-Confirmed that this issue is resolved in the current Library Fundamentals working paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change X [optional.object.assign] as indicated:</p>
-
-<blockquote><pre>
-optional&lt;T&gt;&amp; operator=(const optional&lt;T&gt;&amp; rhs);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--8- <i>Exception safety:</i> If any exception is thrown, the values of <tt>init</tt> and <tt>rhs.init</tt> remain unchanged. If
-an exception is thrown during the call to <tt>T</tt>'s copy constructor, no effect. If an exception is thrown
-during the call to <tt>T</tt>'s copy assignment, the state of its contained value is as defined by the exception
-safety guarantee of <tt>T</tt>'s copy <del>constructor</del><ins>assignment</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2288"></a>2288. Inconsistent requirements for shared mutexes</h3>
-<p><b>Section:</b> 30.4.1.4 [thread.sharedmutex.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-08-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Albeit shared mutex types refine timed mutex types, the requirements imposed on the corresponding required member function
-expressions are inconsistent in several aspects, most probably because failing synchronisation with wording changes for
-timed mutexes applied by some issues:
-</p>
-
-<ol>
-<li>
-<p>
-Due to acceptance of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3568.html">N3568</a> a wording phrase
-came in 30.4.1.4 [thread.sharedmutex.requirements] p26,
-</p>
-<blockquote><p>
-<i>Effects:</i> If the tick period of <tt>rel_time</tt> is not exactly convertible to the native tick period, the
-duration shall be rounded up to the nearest native tick period. [&hellip;]
-</p></blockquote>
-<p> 
-while a very similar one had been removed for 30.4.1.3 [thread.timedmutex.requirements] by LWG <a href="lwg-defects.html#2091">2091</a>. 
-<p/>
-Having this guaranteed effect for <tt>try_lock_shared_for</tt> but not for <tt>try_lock_for</tt> seems inconsistent
-and astonishing.
-<p/>
-If the actual intended restriction imposed onto the implementation is to forbid early wakeups here, we should ensure that
-to hold for timed mutex's <tt>try_lock_for</tt> as well. Note that the rationale provided for LWG <a href="lwg-defects.html#2091">2091</a> was
-a potential late wakeup situation, but it seems that there is no implementation restriction that prevents early wakeups.
-</p>
-</li>
-
-<li>
-<p>
-The shared-lock requirements for any <tt>*lock*()</tt> functions don't provide the guarantee that "If an exception is thrown then 
-a lock shall not have been acquired for the current execution agent.". For other mutex types this guarantee can be derived from
-the corresponding <tt>TimedLockable</tt> requirements, but there are no <tt>SharedLockable</tt> requirements.
-</p>
-</li>
-
-<li>
-<p>
-The shared-lock requirements for <tt>*lock_for/_until()</tt> functions require "<i>Throws:</i> Nothing."
-instead of "<i>Throws:</i> Timeout-related exceptions (30.2.4)." which had been added by LWG <a href="lwg-defects.html#2093">2093</a>, because user-provided
-clocks, durations, or time points may throw exceptions. 
-</p>
-</li>
-
-<li>
-<p>
-With the addition of <tt>std::shared_mutex</tt>, the explicit lists of 30.4.1.2 [thread.mutex.requirements.mutex] p7+15,
-</p>
-<blockquote><p>
-<i>Requires:</i> If <tt>m</tt> is of type <tt>std::mutex</tt> or <tt>std::timed_mutex</tt>, the calling thread does not own the mutex.
-</p></blockquote>
-<p>
-and of 30.4.1.3 [thread.timedmutex.requirements] p4+11,
-</p>
-<blockquote><p>
-<i>Requires:</i> If <tt>m</tt> is of type <tt>std::timed_mutex</tt>, the calling thread does not own the mutex.
-</p></blockquote>
-<p>
-are incomplete and should add the non-recursive <tt>std::shared_mutex</tt> as well.
-</p>
-</li>
-</ol>
-
-<p><i>[2014-02-16: Moved as Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 30.4.1.2 [thread.mutex.requirements.mutex] p7+15 as indicated:</p>
-
-<blockquote>
-<p>
--6- The expression <tt>m.lock()</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--7- <i>Requires:</i> If <tt>m</tt> is of type <tt>std::mutex</tt><del> or</del><ins>,</ins> <tt>std::timed_mutex</tt><ins>, or 
-<tt>std::shared_mutex</tt></ins>, the calling thread does not own the mutex.
-</p>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<p>
--14- The expression <tt>m.try_lock()</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--15- <i>Requires:</i> If <tt>m</tt> is of type <tt>std::mutex</tt><del> or</del><ins>,</ins> <tt>std::timed_mutex</tt><ins>, or 
-<tt>std::shared_mutex</tt></ins>, the calling thread does not own the mutex.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 30.4.1.3 [thread.timedmutex.requirements] p4+11 as indicated:</p>
-
-<blockquote>
-<p>
--3- The expression <tt>m.try_lock_for(rel_time)</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--4- <i>Requires:</i> If <tt>m</tt> is of type <tt>std::timed_mutex</tt><ins> or <tt>std::shared_mutex</tt></ins>, 
-the calling thread does not own the mutex.
-</p>
-</blockquote>
-<p>
-[&hellip;]
-</p>
-<p>
--10- The expression <tt>m.try_lock_until(abs_time)</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--11- <i>Requires:</i> If <tt>m</tt> is of type <tt>std::timed_mutex</tt><ins> or <tt>std::shared_mutex</tt></ins>, 
-the calling thread does not own the mutex.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 30.4.1.4 [thread.sharedmutex.requirements] as indicated:</p>
-
-<blockquote>
-<p>
--3- The expression <tt>m.lock_shared()</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--4- <i>Requires:</i> The calling thread has no ownership of the mutex.
-<p/>
--5- <i>Effects:</i> Blocks the calling thread until shared ownership of the mutex can be obtained for the calling
-thread. <ins>If an exception is thrown then a shared lock shall not have been acquired for the current thread.</ins>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<p>
--24- The expression <tt>m.try_lock_shared_for(rel_time)</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--25- <i>Requires:</i> The calling thread has no ownership of the mutex.
-<p/>
--26- <i>Effects:</i> <del>If the tick period of <tt>rel_time</tt> is not exactly convertible to the native tick period, the
-duration shall be rounded up to the nearest native tick period.</del> Attempts to obtain shared lock
-ownership for the calling thread within the relative timeout (30.2.4) specified by <tt>rel_time</tt>. If the
-time specified by <tt>rel_time</tt> is less than or equal to <tt>rel_time.zero()</tt>, the function attempts to obtain
-ownership without blocking (as if by calling <tt>try_lock_shared()</tt>). The function shall return within
-the timeout specified by <tt>rel_time</tt> only if it has obtained shared ownership of the mutex object. [<i>Note:</i>
-As with <tt>try_lock()</tt>, there is no guarantee that ownership will be obtained if the lock is available, but
-implementations are expected to make a strong effort to do so. &mdash; <i>end note</i>] <ins>If an exception is thrown then 
-a shared lock shall not have been acquired for the current thread.</ins>
-<p/>
-[&hellip;]
-<p/>
--30- <i>Throws:</i> <del>Nothing</del><ins>Timeout-related exceptions (30.2.4 [thread.req.timing])</ins>.
-</p>
-</blockquote>
-<p>
--31- The expression <tt>m.try_lock_shared_until(abs_time)</tt> shall be well-formed and have the following semantics:
-</p>
-<blockquote>
-<p>
--32- <i>Requires:</i> The calling thread has no ownership of the mutex.
-<p/>
--33- <i>Effects:</i> The function attempts to obtain shared ownership of the mutex. If <tt>abs_time</tt> has already
-passed, the function attempts to obtain shared ownership without blocking (as if by calling <tt>try_lock_shared()</tt>). 
-The function shall return before the absolute timeout (30.2.4) specified by <tt>abs_time</tt>
-only if it has obtained shared ownership of the mutex object. [<i>Note:</i> As with <tt>try_lock()</tt>, there is no
-guarantee that ownership will be obtained if the lock is available, but implementations are expected
-to make a strong effort to do so. &mdash; <i>end note</i>] <ins>If an exception is thrown then 
-a shared lock shall not have been acquired for the current thread.</ins>
-<p/>
-[&hellip;]
-<p/>
--37- <i>Throws:</i> <del>Nothing</del><ins>Timeout-related exceptions (30.2.4 [thread.req.timing])</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2291"></a>2291. <tt>std::hash</tt> is vulnerable to collision DoS attack</h3>
-<p><b>Section:</b> 17.6.3.4 [hash.requirements] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2013-09-02 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#hash.requirements">issues</a> in [hash.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For a non-cryptographic hash function, it's possible to pre-calculate massive inputs with 
-the same hashed value to algorithmically slow down the unordered containers, and results 
-in a denial-of-service attack. Many languages with built-in hash table support have fixed
-this issue. For example, Perl has universal hashing, Python 3 uses salted hashes.
-<p/>
-However, for C++, in 17.6.3.4 [hash.requirements] p2, Table 26:
-</p>
-
-<blockquote><p>
-The value returned shall depend only on the argument <tt>k</tt>.
-[<i>Note:</i> Thus all evaluations of the expression <tt>h(k)</tt> with the
-same value for <tt>k</tt> yield the same result. &mdash; <i>end note</i>]
-</p></blockquote>
-
-<p>
-The wording is not clear here: does that mean all the standard
-library implementations must use the same hash function for a same
-type?  Or it is not allowed for an implementation to change its hash
-function?
-<p/>
-I suggest to explicitly allow the salted hash functions.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-Moved to Ready.
-</p>
-
-<p>
-There is some concern that the issue of better hashing, especially standardizing any kind of
-secure hashing, is a feature that deserves attention in LEWG
-</p>
-
-<p>
-The proposed resolution is much simpler than the larger issue though, merely clarifying a
-permission that many implementers believe they already have, without mandating a change to
-more straight forward implementations.
-</p>
-
-<p>
-Move to Ready, rather than Immediate, as even the permission has been contentious in reflector
-discussion, although the consensus in Chicago is to accept as written unless we hear a further
-strong objection.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 17.6.3.4 [hash.requirements] p2, Table 26, as indicated: <em>[Editorial note:
-We can consider adding some additional guideline here. Unlike 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3333.html">N3333</a>, this 
-proposed change makes the hashing per-execution instead of per-process. The standard does not 
-discuss OS processes. And, practically, a per-process hashing makes a program unable to
-share an unordered container to a child process. &mdash; end note ]</em></p>
-
-<blockquote>
-<table border="1">
-<caption>Table 26 &mdash; Hash requirements [hash]</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Requirement</th>
-</tr>
-
-<tr>
-<td>
-<tt>h(k)</tt>
-</td>
-<td>
-<tt>size_t</tt>
-</td>
-<td>
-The value returned shall depend only on the argument <tt>k</tt><br/>
-<ins>for the duration of the program</ins>.<br/>
-[<i>Note:</i> Thus all evaluations of the expression <tt>h(k)</tt> with the<br/>
-same value for <tt>k</tt> yield the same result <ins>for a given<br/>
-execution of the program</ins>. &mdash; <i>end note</i>]<br/>
-</td>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2293"></a>2293. Wrong facet used by <tt>num_put::do_put</tt></h3>
-<p><b>Section:</b> 22.4.2.2.2 [facet.num.put.virtuals] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Juan Soulie <b>Opened:</b> 2013-09-04 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#facet.num.put.virtuals">issues</a> in [facet.num.put.virtuals].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-At the end of 22.4.2.2.2 [facet.num.put.virtuals] (in p6), the return value is said to be obtained by calling 
-<tt>truename</tt> or <tt>falsename</tt> on the wrong facet: <tt>ctype</tt> should be replaced by <tt>numpunct</tt>.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 22.4.2.2.2 [facet.num.put.virtuals] p6 as indicated:</p>
-
-<blockquote><p>
--6- <i>Returns:</i> If <tt>(str.flags() &amp; ios_base::boolalpha) == 0</tt> returns <tt>do_put(out, str, fill, (int)val)</tt>, 
-otherwise obtains a string <tt>s</tt> as if by
-</p>
-<blockquote><pre>
-string_type s =
-  val ? use_facet&lt;<del>ctype</del><ins>numpunct</ins>&lt;charT&gt; &gt;(loc).truename()
-      : use_facet&lt;<del>ctype</del><ins>numpunct</ins>&lt;charT&gt; &gt;(loc).falsename();
-</pre></blockquote>
-<p>
-and then inserts each character c of s into out via *out++ = c and returns out.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2298"></a>2298. [CD] <tt>is_nothrow_constructible</tt> is always false because of <tt>create&lt;&gt;</tt></h3>
-<p><b>Section:</b> 20.10.4.3 [meta.unary.prop] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.unary.prop">active issues</a> in [meta.unary.prop].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.unary.prop">issues</a> in [meta.unary.prop].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses US 18</b></p>
-
-<p>
-The trait <tt>is_constructible&lt;T, Args...&gt;</tt> is defined in terms of a helper template, <tt>create&lt;&gt;</tt>, 
-that is identical to <tt>std::declval&lt;&gt;</tt> except for the latter's <tt>noexcept</tt> clause.   
-<p/>
-If the absence of <tt>noexcept</tt> is critical to this definition, insert a Note of explanation; otherwise, excise 
-<tt>create&lt;&gt;</tt> and reformulate in terms of <tt>declval&lt;&gt;</tt> the definition of <tt>is_constructible</tt>. 
-</p>
-
-<p><i>[2013-09-24 Daniel comments and provides resolution suggestion]</i></p>
-
-
-<p>
-Replacing <tt>create&lt;&gt;</tt> by <tt>std::declval&lt;&gt;</tt> would make the situation worse, because the definition of
-<tt>is_constructible</tt> is based on a well-formed variable definition and there is no way to specify a variable definition
-without odr-using its initializer arguments. It should also be added, that there is another problem with the specification of
-all existing <tt>is_trivially_*</tt> traits, because neither <tt>create&lt;&gt;</tt> nor <tt>std::declval&lt;&gt;</tt>
-are considered as trivial functions, but this should be solved by a different issue.
-</p>
-
-<p><i>[2013-09-26 Nico improves wording]</i></p>
-
-
-<p>
-The additional change is just to keep both places were <tt>create()</tt> is defined consistent.
-</p>
-
-<p><i>[2013-09 Chicago]</i></p>
-
-<p>
-No objections, so moved to Immediate.
-</p>
-<p>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 20.10.4.3 [meta.unary.prop] around p6 as indicated:</p>
-
-<blockquote><p>
--6- Given the following function prototype:
-</p>
-<blockquote><pre>
-template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create() <ins>noexcept</ins>;
-</pre></blockquote>
-<p>
-the predicate condition for a template specialization <tt>is_constructible&lt;T, Args...&gt;</tt> shall be satisfied
-if and only if the following variable definition would be well-formed for some invented variable <tt>t</tt>:
-</p>
-<blockquote><pre>
-T t(create&lt;Args&gt;()...);
-</pre></blockquote>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 20.10.4.3 [meta.unary.prop] around p4 as indicated:</p>
-
-<blockquote><p>
--4- Given the following function prototype:
-</p>
-<blockquote><pre>template &lt;class T&gt;
-  typename add_rvalue_reference&lt;T&gt;::type create() <ins>noexcept</ins>;
-</pre></blockquote>
-<p>
-the predicate condition for a template specialization <tt>is_convertible&lt;From, To&gt;</tt> shall be satisfied if and
-only if the return expression in the following code would be well-formed, including any implicit conversions
-to the return type of the function:
-</p>
-<blockquote><pre>
-To test() {
-  return create&lt;From&gt;();
-}
-</pre></blockquote>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2299"></a>2299. [CD] Effects of inaccessible <tt>key_compare::is_transparent</tt> type are not clear</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-24 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses ES 16</b></p>
-
-<p>
-The condition "<tt>X::key_compare::is_transparent</tt> exists" does not specify that the type be publicly accessible.     
-<p/>
-Consider the public accessibility of <tt>X::key_compare::is_transparent</tt> and whether its potential inaccessibility 
-should be banned for a compliant <tt>key_compare</tt> type. 
-</p>
-
-<p><i>[2013-09-24 Daniel provides resolution suggestion]</i></p>
-
-
-<p><i>[2013-09-25 Chicago]</i></p>
-
-<p>
-Daniel's wording is good, advance to Immediate to respond to NB comment.
-</p>
-
-<p><i>[2013-09-26 Chicago]</i></p>
-
-<p>
-Moved back to Review as Daniel would like another look at the words, and to confirm implementability.
-</p>
-
-<p>
-<strong>Previous resolution from Daniel [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<ol>
-
-<li><p>Change 23.2.4 [associative.reqmts] p8 as indicated:</p>
-
-<blockquote><p>
--8- In Table 102, <tt>X</tt> denotes an associative container class, <tt>a</tt> denotes a value of <tt>X</tt>, <tt>a_uniq</tt> 
-denotes a value of <tt>X</tt> when <tt>X</tt> supports unique keys, <tt>a_eq</tt> denotes a value of <tt>X</tt> when <tt>X</tt> 
-supports multiple keys, <tt>a_tran</tt> denotes a value of <tt>X</tt> when <del>the</del><ins>a publicly accessible</ins> type 
-<tt>X::key_compare::is_transparent</tt> exists <ins>whose name is unambiguous and not hidden</ins>, 
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 23.2.4 [associative.reqmts] p13 as indicated:</p>
-
-<blockquote><p>
-The member function templates <tt>find</tt>, <tt>count</tt>, <tt>lower_bound</tt>, <tt>upper_bound</tt>, and <tt>equal_range</tt> shall not
-participate in overload resolution unless <del>the</del><ins>a publicly accessible</ins> type 
-<tt>Compare::is_transparent</tt> exists <ins>whose name is unambiguous and not hidden</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-</blockquote>
-
-<p><i>[2014-02-10 Daniel comments provides alternative wording]</i></p>
-
-
-<p>
-I could confirm that my previous concerns were unwarranted, because they turned out to be due to a compiler-bug.
-Nonetheless I would suggest to replace the previously suggested replication of core-wording situations (access, ambiguity, hidden) 
-by a single more robust phrase based on "valid type".
-</p>
-
-
-<p><i>[2014-02-12 Issaquah: Move to Immediate]</i></p>
-
-<p>
-STL: This uses &quot;valid type&quot;, which is a Phrase Of Power in Core, and Daniel has a citation for the term.
-</p>
-<p>
-Jonathan: It's nice to rely on Core.
-</p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-
-<li><p>Change 23.2.4 [associative.reqmts] p8 as indicated:</p>
-
-<blockquote><p>
--8- In Table 102, <tt>X</tt> denotes an associative container class, <tt>a</tt> denotes a value of <tt>X</tt>, <tt>a_uniq</tt> 
-denotes a value of <tt>X</tt> when <tt>X</tt> supports unique keys, <tt>a_eq</tt> denotes a value of <tt>X</tt> when <tt>X</tt> 
-supports multiple keys, <tt>a_tran</tt> denotes a value of <tt>X</tt> when the <del>type</del><ins>qualified-id</ins> 
-<tt>X::key_compare::is_transparent</tt> <del>exists</del><ins>is valid and denotes a type (14.8.2 [temp.deduct])</ins>, 
-[&hellip;]
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 23.2.4 [associative.reqmts] p13 as indicated:</p>
-
-<blockquote><p>
-The member function templates <tt>find</tt>, <tt>count</tt>, <tt>lower_bound</tt>, <tt>upper_bound</tt>, and <tt>equal_range</tt> shall not
-participate in overload resolution unless the <del>type</del><ins>qualified-id</ins> 
-<tt>Compare::is_transparent</tt> <del>exists</del><ins>is valid and denotes a type (14.8.2 [temp.deduct])</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2300"></a>2300. [CD] Redundant sections for <tt>map</tt> and <tt>multimap</tt> members should be removed</h3>
-<p><b>Section:</b> X [map.ops], X [multimap.ops] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2013-09-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses ES 17</b></p>
-
-<p>
-Sections are redundant with general associative container requirements at 23.2.4 [associative.reqmts], Table 102. 
-<p/>
-Suggested action:     
-<p/>
-Delete sections.
-</p>
-
-<p><i>[2013-09-25 Daniel provides resolution suggestion]</i></p>
-
-
-<p><i>[2013-09-25 Chicago]</i></p>
-
-<p>
-Daniel's wording is good, move to Immediate to resolve NB comment.
-</p>
-
-<p><i>[2013-09-29 Chicago]</i></p>
-
-<p>
-Accept for Working Paper
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change the header <tt>&lt;map&gt;</tt> synopsis, 23.4.4.1 [map.overview] p2 as indicated:</p>
-
-<blockquote><pre>
-// <del>23.4.4.5,</del> map operations:
-iterator find(const key_type&amp; x);
-const_iterator find(const key_type&amp; x) const;
-template &lt;class K&gt; iterator find(const K&amp; x);
-template &lt;class K&gt; const_iterator find(const K&amp; x) const;
-</pre>
-</blockquote>
-</li>
-
-<li><p>Delete the complete sub-clause X [map.ops]:</p>
-
-<p>
-<del>23.4.4.5 map operations [map.ops]</del>
-</p>
-<blockquote><pre>
-<del>iterator find(const key_type&amp; x);
-const_iterator find(const key_type&amp; x) const;
-iterator lower_bound(const key_type&amp; x);
-const_iterator lower_bound(const key_type&amp; x) const;
-iterator upper_bound(const key_type&amp; x);
-const_iterator upper_bound(const key_type &amp;x) const;
-pair&lt;iterator, iterator&gt;
-  equal_range(const key_type &amp;x);
-pair&lt;const_iterator, const_iterator&gt;
-  equal_range(const key_type&amp; x) const;</del>
-</pre><blockquote>
-<p>
-<del>-1- The <tt>find</tt>, <tt>lower_bound</tt>, <tt>upper_bound</tt> and <tt>equal_range</tt> member functions each have two versions,
-one const and the other non-const. In each case the behavior of the two functions is identical except
-that the const version returns a <tt>const_iterator</tt> and the non-const version an <tt>iterator</tt> (23.2.4).</del>
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Delete the complete sub-clause X [multimap.ops]:</p>
-
-<p>
-<del>23.4.5.4 multimap operations [multimap.ops]</del>
-</p>
-<blockquote><pre>
-<del>iterator find(const key_type &amp;x);
-const_iterator find(const key_type&amp; x) const;
-
-iterator lower_bound(const key_type&amp; x);
-const_iterator lower_bound(const key_type&amp; x) const;
-
-pair&lt;iterator, iterator&gt;
-  equal_range(const key_type &amp;x);
-pair&lt;const_iterator, const_iterator&gt;
-  equal_range(const key_type&amp; x) const;</del>
-</pre><blockquote>
-<p>
-<del>-1- The <tt>find</tt>, <tt>lower_bound</tt>, <tt>upper_bound</tt> and <tt>equal_range</tt> member functions each have two versions,
-one const and one non-const. In each case the behavior of the two versions is identical except
-that the const version returns a <tt>const_iterator</tt> and the non-const version an <tt>iterator</tt> (23.2.4).</del>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2301"></a>2301. Why is <tt>std::tie</tt> not <tt>constexpr</tt>?</h3>
-<p><b>Section:</b> 20.4.2.4 [tuple.creation] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Rein Halbersma <b>Opened:</b> 2013-09-11 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.creation">issues</a> in [tuple.creation].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3471.html">N3471</a>, a bunch of routines from header 
-<tt>&lt;tuple&gt;</tt> were made <tt>constexpr</tt>.
-<p/>
-<tt>make_tuple/tuple_cat/get&lt;&gt;(tuple)/</tt>relational operators &mdash; all these were "<tt>constexpr</tt>-ified".     
-<p/>
-But not <tt>tie</tt>. This is similar to Issue <a href="lwg-defects.html#2275">2275</a>, where the same observation was made about <tt>forward_as_tuple</tt>.
-</p>
-
-<p><i>[2014-02-13 Issaquah: Move as Immediate]</i></p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change the header <tt>&lt;tuple&gt;</tt> synopsis, 20.4.1 [tuple.general] p2 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class... Types&gt;
-  <ins>constexpr</ins> tuple&lt;Types&amp;...&gt; tie(Types&amp;...) noexcept;
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.4.2.4 [tuple.creation] around p7 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class... Types&gt;
-  <ins>constexpr</ins> tuple&lt;Types&amp;...&gt; tie(Types&amp;... t) noexcept;
-</pre>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2304"></a>2304. Complexity of <tt>count</tt> in unordered associative containers</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz <b>Opened:</b> 2013-09-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 103 in 23.2.5 [unord.req] states that the complexity of <tt>b.count(k)</tt> is average case &#x1d4aa;(<tt>1</tt>) rather 
-than linear with the number of equivalent elements, which seems to be a typo as this requires holding an internal 
-count of elements in each group of equivalent keys, something which hardly looks the intent of the standard and no 
-(known by the submitter) stdlib implementation is currently doing.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change Table 103 as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 103 &mdash; Unordered associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>b.count(k)</tt>
-</td>
-<td>
-<tt>size_type</tt>
-</td>
-<td>
-Returns the number of elements with key equivalent to <tt>k</tt>.
-</td>
-<td>
-Average case &#x1d4aa;(<tt><del>1</del><ins>b.count(k)</ins></tt>), worst case &#x1d4aa;(<tt>b.size()</tt>).
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2306"></a>2306. <tt>match_results::reference</tt> should be <tt>value_type&amp;</tt>, not <tt>const value_type&amp;</tt></h3>
-<p><b>Section:</b> 28.10 [re.results] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Matt Austern <b>Opened:</b> 2013-09-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.results">issues</a> in [re.results].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The match_results class synopsis has
-</p>
-<blockquote><pre>
-typedef const value_type&amp; const_reference;
-typedef const_reference reference;
-</pre></blockquote>
-<p>
-We're getting too enthusiastic about types here by insisting that <tt>reference</tt> is a const reference, even 
-though <tt>match_results</tt> is a read-only container. In the container requirements table (Table 96, in section 
-23.2.1 [container.requirements.general] we say that <tt>Container::reference</tt> is "lvalue of <tt>T</tt>" and 
-<tt>Container::const_reference</tt> is "const lvalue of <tt>T</tt>".
-</p>
-<p>
-That phrasing in the container requirements table is admittedly a little fuzzy and ought to be clarified (as discussed in 
-lwg issue <a href="lwg-defects.html#2182">2182</a>), but in context it's clear that <tt>Container::reference</tt> ought to be a <tt>T&amp;</tt> 
-even for constant containers. In the rest of Clause 23 we see that <tt>Container::reference</tt> is <tt>T&amp;</tt>, not 
-<tt>const T&amp;</tt>, even for const-qualified containers and that it's <tt>T&amp;</tt>, not <tt>const T&amp;</tt>, even 
-for containers like <tt>set</tt> and <tt>unordered_set</tt> that provide const iterators only.
-<p/>
-The way we handle const containers is just that in the case of a const-qualified container (including <tt>match_results</tt>) 
-there are no operations that return <tt>Container::reference</tt>. That's already the case, so this issue is complaining 
-about an unused typedef.
-</p>
-
-<p><i>[2013-10-17: Daniel comments]</i></p>
-
-<p>
-The <tt>std::initializer_list</tt> synopsis, 18.9 [support.initlist] shows a similar problem:
-</p>
-<blockquote><pre>
-template&lt;class E&gt; class initializer_list {
-public:
-  typedef E value_type;
-  typedef const E&amp; reference;
-  typedef const E&amp; const_reference;
-  [&hellip;]
-}
-</pre></blockquote>
-<p>
-Given the fact that <tt>std::initializer_list</tt> doesn't meet the container requirements anyway (and is such a core-language related
-type) I recommend to stick with the current state.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change the class template <tt>match_results</tt> header synopsis, 28.10 [re.results] p4 as indicated:</p>
-
-<blockquote><pre>
-typedef const value_type&amp; const_reference;
-typedef <del>const_reference</del><ins>value_type&amp;</ins> reference;
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2308"></a>2308. Clarify container destructor requirements w.r.t. <tt>std::array</tt></h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-09-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-It has been suggested that Table 96 &mdash; "Container requirements" makes
-confusing requirements for the destructor of <tt>std::array</tt>:
-<p/>
-"note: the destructor is applied to every element of <tt>a</tt>; all the memory is deallocated."
-<p/>
-Since <tt>std::array</tt> obtains no memory, there is none to deallocate,
-arguably  making it unclear what the requirement means for <tt>std::array::~array()</tt>.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change in 23.2.1 [container.requirements.general], Table 96 &mdash; "Container requirements", 
-the "Assertion/note/pre-/post-condition" for the expression "<tt>(&amp;a)-&gt;~X()</tt>" as indicated:</p>
-
-<blockquote><p>
-note: the destructor is applied to every element of <tt>a</tt>; <del>all the</del><ins>any</ins> memory 
-<ins>obtained</ins> is deallocated.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2313"></a>2313. <tt>tuple_size</tt> should always derive from <tt>integral_constant&lt;size_t, N&gt;</tt></h3>
-<p><b>Section:</b> 20.4.2.5 [tuple.helper] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#tuple.helper">issues</a> in [tuple.helper].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 20.4.2.5 [tuple.helper], the "primary template" is depicted as:
-</p>
-<blockquote><pre>
-template &lt;class... Types&gt;
-class tuple_size&lt;tuple&lt;Types...&gt; &gt;
-  : public integral_constant&lt;size_t, sizeof...(Types)&gt; { };
-</pre></blockquote>
-<p>
-However, 20.3.4 [pair.astuple]/1-2 and 23.3.2.9 [array.tuple]/1-2 are underspecified, saying:
-</p>
-<blockquote><pre>
-tuple_size&lt;pair&lt;T1, T2&gt; &gt;::value
-</pre><blockquote>
-<p>
-<i>Returns:</i> Integral constant expression.
-<p/>
-<i>Value:</i> <tt>2</tt>.
-</p></blockquote>
-</blockquote>
-<blockquote><pre>
-tuple_size&lt;array&lt;T, N&gt; &gt;::value
-</pre><blockquote>
-<p>
-<i>Return type:</i> integral constant expression.
-<p/>
-<i>Value:</i> <tt>N</tt>
-</p></blockquote>
-</blockquote>
-<p>
-They should be required to behave like the "primary template". This is more than a stylistic decision &mdash; it allows 
-<tt>tuple_size</tt> to be passed to a function taking <tt>integral_constant</tt>.
-<p/>
-LWG <a href="lwg-defects.html#1118">1118</a> noticed this underspecification, but instead of correcting it, the resolution changed 
-20.4.2.5 [tuple.helper]/3 to require <tt>tuple_size&lt;<i>cv</i> T&gt;</tt> to derive from 
-<tt>integral_constant&lt;remove_cv&lt;decltype(TS::value)&gt;::type, TS::value&gt;</tt>. This is unnecessarily overgeneralized.  
-<tt>tuple_size</tt> is primarily for tuples, where it is required to be <tt>size_t</tt>, and it has been extended to handle 
-pairs and arrays, which (as explained above) should also be guaranteed to be <tt>size_t</tt>. <tt>tuple_size&lt;<i>cv</i> T&gt;</tt> 
-works with <i>cv</i>-qualified tuples, pairs, arrays, and user-defined types that also want to participate in the <tt>tuple_size</tt> 
-system. It would be far simpler and perfectly reasonable to expect that user-defined types supporting the "tuple-like protocol" 
-should have <tt>tuple_sizes</tt> of <tt>size_t</tt>.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 20.3.4 [pair.astuple]/1-2 as indicated:</p>
-
-<blockquote><pre>
-<del>tuple_size&lt;pair&lt;T1, T2&gt; &gt;::value</del>
-<ins>template &lt;class T1, class T2&gt;
-struct tuple_size&lt;pair&lt;T1, T2&gt;&gt;
-  : integral_constant&lt;size_t, 2&gt; { };</ins>
-</pre><blockquote>
-<p>
-<del>-1- <i>Returns:</i> Integral constant expression.</del>
-<p/>
-<del>-2- <i>Value:</i> <tt>2</tt>.</del>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 23.3.2.9 [array.tuple]/1-2 as indicated:</p>
-
-<blockquote><pre>
-<del>tuple_size&lt;array&lt;T, N&gt; &gt;::value</del>
-<ins>template &lt;class T, size_t N&gt;
-struct tuple_size&lt;array&lt;T, N&gt;&gt;
-  : integral_constant&lt;size_t, N&gt; { };</ins>
-</pre><blockquote>
-<p>
-<del>-1- <i>Returns:</i> Integral constant expression.</del>
-<p/>
-<del>-2- <i>Value:</i> <tt>N</tt>.</del>
-</p></blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 20.4.2.5 [tuple.helper]/p1-p3 as indicated:</p>
-
-<blockquote><pre>
-<ins>template &lt;class T&gt; struct tuple_size;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Remarks:</i> All specializations of <tt>tuple_size&lt;T&gt;</tt> shall meet the <tt>UnaryTypeTrait</tt> 
-requirements (20.10.1 [meta.rqmts]) with a <tt>BaseCharacteristic</tt> of <tt>integral_constant&lt;size_t, N&gt;</tt> 
-for some <tt>N</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class... Types&gt;
-struct tuple_size&lt;tuple&lt;Types...&gt; &gt;
-  : integral_constant&lt;size_t, sizeof...(Types)&gt; { };
-  
-template &lt;size_t I, class... Types&gt;
-class tuple_element&lt;I, tuple&lt;Types...&gt; &gt; {
-public:
-  typedef TI type;
-};
-</pre><blockquote>
-<p>
--1- <i>Requires:</i> <tt>I &lt; sizeof...(Types)</tt>. The program is ill-formed if <tt>I</tt> is out of bounds.
-<p/>
-[&hellip;]
-</p></blockquote>
-</blockquote>
-<blockquote><pre>
-template &lt;class T&gt; class tuple_size&lt;const T&gt;;
-template &lt;class T&gt; class tuple_size&lt;volatile T&gt;;
-template &lt;class T&gt; class tuple_size&lt;const volatile T&gt;;
-</pre><blockquote>
-<p>
--3- Let <i>TS</i> denote <tt>tuple_size&lt;T&gt;</tt> of the <i>cv</i>-unqualified type <tt>T</tt>. Then each of the 
-three templates shall meet the <tt>UnaryTypeTrait</tt> requirements (20.10.1 [meta.rqmts]) with a <tt>BaseCharacteristic</tt> of
-</p>
-<blockquote><pre>
-integral_constant&lt;<del>remove_cv&lt;decltype(TS::value)&gt;::type</del><ins>size_t</ins>, TS::value&gt;
-</pre></blockquote>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2314"></a>2314. <tt>apply()</tt> should return <tt>decltype(auto)</tt> and use <tt>decay_t</tt> before <tt>tuple_size</tt></h3>
-<p><b>Section:</b> 20.5.1 [intseq.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The example in 20.5.1 [intseq.general]/2 depicts <tt>apply_impl()</tt> and <tt>apply()</tt> as returning <tt>auto</tt>.  
-This is incorrect because it will trigger decay and will not preserve <tt>F</tt>'s return type. For example, if invoking the 
-functor returns <tt>const int&amp;</tt>, <tt>apply_impl()</tt> and <tt>apply()</tt> will return <tt>int</tt>. <tt>decltype(auto)</tt> 
-should be used for "perfect returning".
-</p>
-<p>
-Additionally, this depicts <tt>apply()</tt> as taking <tt>Tuple&amp;&amp;</tt>, then saying "<tt>std::tuple_size&lt;Tuple&gt;::value</tt>". 
-This is incorrect because when <tt>apply()</tt> is called with lvalue tuples, perfect forwarding will deduce <tt>Tuple</tt> to be <i>cv</i> 
-<tt>tuple&amp;</tt>, but 20.4.2.5 [tuple.helper] says that <tt>tuple_size</tt> handles only <i>cv</i> <tt>tuple</tt>, not 
-references to tuples.  Using <tt>remove_reference_t</tt> would avoid this problem, but so would <tt>decay_t</tt>, which has a 
-significantly shorter name. (The additional transformations that <tt>decay_t</tt> does are neither beneficial nor harmful here.)
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit the example code in 20.5.1 [intseq.general]/2 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class F, class Tuple, std::size_t... I&gt;
-  <del>auto</del><ins>decltype(auto)</ins> apply_impl(F&amp;&amp; f, Tuple&amp;&amp; t, index_sequence&lt;I...&gt;) {
-    return std::forward&lt;F&gt;(f)(std::get&lt;I&gt;(std::forward&lt;Tuple&gt;(t))...);
-  }
-template&lt;class F, class Tuple&gt;
-  <del>auto</del><ins>decltype(auto)</ins> apply(F&amp;&amp; f, Tuple&amp;&amp; t) {
-    using Indices = make_index_sequence&lt;std::tuple_size&lt;<ins>std::decay_t&lt;</ins>Tuple<ins>&gt;</ins>&gt;::value&gt;;
-    return apply_impl(std::forward&lt;F&gt;(f), std::forward&lt;Tuple&gt;(t), Indices());
-  }
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2315"></a>2315. <tt>weak_ptr</tt> should be movable</h3>
-<p><b>Section:</b> 20.8.2.3 [util.smartptr.weak] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.weak">issues</a> in [util.smartptr.weak].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Like <tt>shared_ptr</tt>, <tt>weak_ptr</tt> should be movable to avoid unnecessary atomic increments/decrements of the weak refcount.
-</p>
-
-<p><i>[2014-02-13 Issaquah: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 20.8.2.3 [util.smartptr.weak]/1, class template <tt>weak_ptr</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class T&gt; class weak_ptr {
-  public:
-    typedef T element_type;
-
-    <i>// 20.9.2.3.1, constructors</i>
-    constexpr weak_ptr() noexcept;
-    template&lt;class Y&gt; weak_ptr(shared_ptr&lt;Y&gt; const&amp; r) noexcept;
-    weak_ptr(weak_ptr const&amp; r) noexcept;
-    template&lt;class Y&gt; weak_ptr(weak_ptr&lt;Y&gt; const&amp; r) noexcept;
-    <ins>weak_ptr(weak_ptr&amp;&amp; r) noexcept;
-    template&lt;class Y&gt; weak_ptr(weak_ptr&lt;Y&gt;&amp;&amp; r) noexcept;</ins>
-
-    [&hellip;]
-
-    <i>// 20.9.2.3.3, assignment</i>
-    weak_ptr&amp; operator=(weak_ptr const&amp; r) noexcept;
-    template&lt;class Y&gt; weak_ptr&amp; operator=(weak_ptr&lt;Y&gt; const&amp; r) noexcept;
-    template&lt;class Y&gt; weak_ptr&amp; operator=(shared_ptr&lt;Y&gt; const&amp; r) noexcept;
-    <ins>weak_ptr&amp; operator=(weak_ptr&amp;&amp; r) noexcept;
-    template&lt;class Y&gt; weak_ptr&amp; operator=(weak_ptr&lt;Y&gt;&amp;&amp; r) noexcept;</ins>
-  };
-}
-</pre></blockquote>
-</li>
-
-<li><p>Add the following new paragraphs at the end of sub-clause 20.8.2.3.1 [util.smartptr.weak.const]:</p>
-
-<blockquote><pre>
-<ins>weak_ptr(weak_ptr&amp;&amp; r) noexcept;
-template&lt;class Y&gt; weak_ptr(weak_ptr&lt;Y&gt;&amp;&amp; r) noexcept;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Remark:</i> The second constructor shall not participate in overload resolution unless <tt>Y*</tt> is implicitly 
-convertible to <tt>T*</tt>.</ins>
-<p/>
-<ins>-?- <i>Effects:</i> Move-constructs a <tt>weak_ptr</tt> instance from <tt>r</tt>.</ins>
-<p/>
-<ins>-?- <i>Postconditions:</i> <tt>*this</tt> shall contain the old value of <tt>r</tt>. <tt>r</tt> shall be <em>empty</em>. 
-<tt>r.use_count() == 0</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 20.8.2.3.3 [util.smartptr.weak.assign] as indicated:</p>
-
-<blockquote><pre>
-weak_ptr&amp; operator=(const weak_ptr&amp; r) noexcept;
-template&lt;class Y&gt; weak_ptr&amp; operator=(const weak_ptr&lt;Y&gt;&amp; r) noexcept;
-template&lt;class Y&gt; weak_ptr&amp; operator=(const shared_ptr&lt;Y&gt;&amp; r) noexcept;
-</pre><blockquote>
-<p>
--1- <i>Effects:</i> [&hellip;]
-<p/>
--2- <i>Remarks:</i> [&hellip;]
-<p/>
-<ins>-?- <i>Returns:</i> <tt>*this</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-
-<blockquote><pre>
-<ins>weak_ptr&amp; operator=(weak_ptr&amp;&amp; r) noexcept;
-template&lt;class Y&gt; weak_ptr&amp; operator=(weak_ptr&lt;Y&gt;&amp;&amp; r) noexcept;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Effects:</i> Equivalent to <tt>weak_ptr(std::move(r)).swap(*this)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns:</i> <tt>*this</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2316"></a>2316. <tt>weak_ptr::lock()</tt> should be atomic</h3>
-<p><b>Section:</b> 20.8.2.3.5 [util.smartptr.weak.obs] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.weak.obs">issues</a> in [util.smartptr.weak.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.2.2 [util.smartptr.shared]/4 says: "For purposes of determining the presence of a data race, member functions shall 
-access and modify only the <tt>shared_ptr</tt> and <tt>weak_ptr</tt> objects themselves and not objects they refer to. Changes 
-in <tt>use_count()</tt> do not reflect modifications that can introduce data races."  This requires <tt>shared_ptr/weak_ptr</tt> 
-implementations to protect their strong and weak refcounts with atomic operations, without the Standardese having to say this 
-elsewhere. However, 20.8.2.3.5 [util.smartptr.weak.obs]/5 describes <tt>weak_ptr::lock()</tt> with 
-"<i>Returns:</i> <tt>expired() ? shared_ptr&lt;T&gt;() : shared_ptr&lt;T&gt;(*this)</tt>."  
-Even after considering the blanket wording about 
-data races, this specification is insufficient. If this conditional expression were literally implemented, the <tt>use_count()</tt> 
-could change from nonzero to zero after testing <tt>expired()</tt>, causing <tt>shared_ptr&lt;T&gt;(*this)</tt> to throw 
-<tt>bad_weak_ptr</tt> when the intention is for <tt>weak_ptr::lock()</tt> to return empty or nonempty without throwing &mdash; indeed, 
-<tt>weak_ptr::lock()</tt> is marked as <tt>noexcept</tt>.</p>
-<p>
-We all know what <tt>weak_ptr::lock()</tt> should do, the Standardese just doesn't say it. 
-<tt>shared_ptr(const weak_ptr&lt;Y&gt;&amp;)</tt>'s specification is not really affected because 
-20.8.2.2.1 [util.smartptr.shared.const]/23-27 describes the behavior with English instead of code.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 20.8.2.3.5 [util.smartptr.weak.obs]/5 as indicated:</p>
-
-<blockquote><pre>
-shared_ptr&lt;T&gt; lock() const noexcept;
-</pre>
-<blockquote>
-<p>
--5- <i>Returns:</i> <tt>expired() ? shared_ptr&lt;T&gt;() : shared_ptr&lt;T&gt;(*this)</tt><ins>, executed atomically</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2317"></a>2317. The type property queries should be <tt>UnaryTypeTraits</tt> returning <tt>size_t</tt></h3>
-<p><b>Section:</b> 20.10.5 [meta.unary.prop.query] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The sibling sections 20.10.4 [meta.unary], 20.10.6 [meta.rel], and 20.10.7 [meta.trans] respectively specify 
-<tt>UnaryTypeTraits</tt>, <tt>BinaryTypeTraits</tt>, and <tt>TransformationTraits</tt>, as stated by each /2 paragraph.  However, 
-20.10.5 [meta.unary.prop.query] is underspecified. <tt>alignment_of</tt>, <tt>rank</tt>, and <tt>extent</tt> are said to produce 
-"Values", but the type of that Value is not specified, and the struct templates are not required to derive from <tt>integral_constant</tt>.  
-Such derivation is more than stylistic &mdash; it allows the structs to be passed to functions taking <tt>integral_constant</tt>.
-<p/>
-<tt>alignment_of</tt> returns <tt>alignof(T)</tt> which is <tt>size_t</tt> (5.3.6 [expr.alignof]/2). <tt>extent</tt> returns 
-an array bound, which is clearly <tt>size_t</tt>. <tt>rank</tt> returns "the number of dimensions" of an array, so any type could 
-be chosen, with <tt>size_t</tt> being a reasonable choice. (Another choice would be <tt>unsigned int</tt>, to match <tt>extent</tt>'s 
-template parameter <tt>I</tt>.)
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Following 20.10.5 [meta.unary.prop.query]/1 add a new paragraph as indicated:</p>
-
-<blockquote><p>
-<ins>Each of these templates shall be a <tt>UnaryTypeTrait</tt> (20.10.1 [meta.rqmts]) with a <tt>BaseCharacteristic</tt> of 
-<tt>integral_constant&lt;size_t, Value&gt;</tt>.</ins>
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2319"></a>2319. <tt>basic_string</tt>'s move constructor should not be <tt>noexcept</tt></h3>
-<p><b>Section:</b> 21.4.2 [string.cons] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.cons">issues</a> in [string.cons].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In debugging implementations, containers (including <tt>basic_string</tt>) may need to own dynamically allocated helper objects at 
-all times, including in their default-constructed and moved-from states. This means that their default constructors and move 
-constructors may throw exceptions. Therefore, the Standard should not mark them as <tt>noexcept</tt>. (Other implementations will 
-still be permitted to add <tt>noexcept</tt>.)
-</p>
-
-<p><i>[2014-02, Issaquah : move to Ready]</i></p>
-
-<p>
-The issue discussion was highly controversial: The arguments in favour was that implementations exist that always need to allocate
-memory even for the move operations (similar as for some other containers) and that this cleans up an inconsistency between <tt>std::string</tt>
-and other container types. Counter arguments were that potentially throwing move operations reduce much of the advantages of move-support,
-e.g. in <tt>vector&lt;string&gt;</tt>.
-</p>
-<p>
-straw poll: accept wording in the issue<br/>
-SF 4 WF 4 N 0 WA 1 SA 1 
-</p>
-<p>
-straw poll: 14 or 17?<br/>
-C++14: 4 C++17: 4 
-</p>
-<p>
-Move to Ready for C++17, as too close to 14 DIS without strong consensus.
-</p>
-<p>
-It was suggested to introduce a special library vocabulary that specifies a "normative encouragement to not throw exceptions" for 
-functions like these. 
-</p>
-<p>
-NJ: I offer to write a proposal to add encouragement for not throwing ... "<tt>noexcept</tt> in italics means should not throw" 
-</p>
-
-
-<p><i>[2014/11 Urbana]</i></p>
-
-<p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4258">N4258</a>
-</p>
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>In 21.4 [basic.string]/5, class template <tt>basic_string</tt> synopsis, and 21.4.2 [string.cons]/2 
-change as indicated:</p>
-
-<blockquote><pre>
-basic_string(basic_string&amp;&amp; str) <del>noexcept</del>;
-</pre></blockquote>
-</li>
-
-<li><p>Edit 21.4.2 [string.cons]/17 as indicated:</p>
-
-<blockquote><pre>
-basic_string(const basic_string&amp; str, const Allocator&amp; alloc);
-basic_string(basic_string&amp;&amp; str, const Allocator&amp; alloc);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-17- <i>Throws:</i> The second form throws nothing if <tt>alloc == str.get_allocator()</tt>.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2320"></a>2320. <tt>select_on_container_copy_construction()</tt> takes allocators, not containers</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.2.1 [container.requirements.general]/7 says "Copy constructors for these container types obtain an allocator by calling 
-<tt>allocator_traits&lt;allocator_type&gt;::select_on_container_copy_construction</tt> on their first parameters."  However, 
-20.7.8.2 [allocator.traits.members]/8 says that this takes <tt>const Alloc&amp;</tt>, not a container.  
-23.2.1 [container.requirements.general]/7 goes on to say "Move constructors obtain an allocator by move construction from 
-the allocator belonging to the container being moved." so we can follow that wording.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>In 23.2.1 [container.requirements.general]/7 change as indicated:</p>
-
-<blockquote><p>
--7- Unless otherwise specified, all containers defined in this clause obtain memory using an allocator (see 17.6.3.5).
-Copy constructors for these container types obtain an allocator by calling 
-<tt>allocator_traits&lt;allocator_type&gt;::select_on_container_copy_construction</tt> on <del>their first 
-parameters</del><ins>the allocator belonging to the container being copied</ins>. 
-Move constructors obtain an allocator by move construction from the allocator belonging to the container being moved. [&hellip;]
-</p></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2322"></a>2322. Associative(<tt>initializer_list</tt>, stuff) constructors are underspecified</h3>
-<p><b>Section:</b> 23.2.4 [associative.reqmts], 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#associative.reqmts">active issues</a> in [associative.reqmts].</p>
-<p><b>View all other</b> <a href="lwg-index.html#associative.reqmts">issues</a> in [associative.reqmts].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-23.2.4 [associative.reqmts] specifies both <tt>X(i,j)</tt> and <tt>X(i,j,c)</tt>, but only <tt>X(il)</tt>.  
-23.4.4.1 [map.overview] declares "<tt>map(initializer_list&lt;value_type&gt;, const Compare&amp; = Compare(), 
-const Allocator&amp; = Allocator());</tt>" but 23.4.4.2 [map.cons] intentionally doesn't explain it, relying 
-on the big table's requirements. As a result, <tt>map(il, c)</tt>'s behavior is not actually specified by the Standard.  
-(All of the other ordered associative containers also provide such constructors.)
-<p/>
-The unordered associative containers are similarly affected, although they have more arguments. (Again, the actual 
-containers are correctly depicted with the desired constructors, their behavior just isn't specified.)
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 23.2.4 [associative.reqmts], Table 102 &mdash; "Associative container requirements", as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 102 &mdash; Associative container requirements (in addition to container) (continued)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(il);</tt>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-Same as <tt>X(il.begin(), il.end())</tt>.
-</td>
-<td>
-<del>s</del><ins>S</ins>ame as <tt>X(il.begin(), il.end())</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>X(il, c);</tt></ins>
-</td>
-<td>
-<tt>&nbsp;</tt>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), c)</tt>.</ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), c)</tt>.</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li><p>Edit 23.2.5 [unord.req], Table 103 "Unordered associative container requirements", as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 103 &mdash; Unordered associative container requirements (in addition to container)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X(il)</tt>
-</td>
-<td>
-<tt>X</tt>
-</td>
-<td>
-Same as <tt>X(il.begin(), il.end())</tt>.
-</td>
-<td>
-Same as <tt>X(il.begin(), il.end())</tt>.
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>X(il, n)</tt></ins>
-</td>
-<td>
-<ins><tt>X</tt></ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), n)</tt>.</ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), n)</tt>.</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>X(il, n, hf)</tt></ins>
-</td>
-<td>
-<ins><tt>X</tt></ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), n, hf)</tt>.</ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), n, hf)</tt>.</ins>
-</td>
-</tr>
-
-<tr>
-<td>
-<ins><tt>X(il, n, hf, eq)</tt></ins>
-</td>
-<td>
-<ins><tt>X</tt></ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), n, hf, eq)</tt>.</ins>
-</td>
-<td>
-<ins>Same as <tt>X(il.begin(), il.end(), n, hf, eq)</tt>.</ins>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2323"></a>2323. <tt>vector::resize(n, t)</tt>'s specification should be simplified</h3>
-<p><b>Section:</b> 23.3.6.3 [vector.capacity], 23.3.3.3 [deque.capacity] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#vector.capacity">active issues</a> in [vector.capacity].</p>
-<p><b>View all other</b> <a href="lwg-index.html#vector.capacity">issues</a> in [vector.capacity].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-First, 23.3.3.3 [deque.capacity]/4 and 23.3.6.3 [vector.capacity]/16 say that <tt>resize(size_type sz, const T&amp; c)</tt> 
-"<i>Requires:</i> <tt>T</tt> shall be <tt>MoveInsertable</tt> into <tt>*this</tt> and <tt>CopyInsertable</tt> into <tt>*this</tt>."  
-The <tt>CopyInsertable</tt> requirement is correct (because <tt>sz</tt> might be <tt>size() + 2</tt> or more), but the 
-<tt>MoveInsertable</tt> requirement is redundant due to 23.2.1 [container.requirements.general]/13: "<tt>T</tt> is 
-<tt>CopyInsertable</tt> into <tt>X</tt> means that, in addition to <tt>T</tt> being <tt>MoveInsertable</tt> into <tt>X</tt>, the [...]".  
-(LWG <a href="lwg-defects.html#2033">2033</a>'s resolution said that this was "not redundant, because <tt>CopyInsertable</tt> is not necessarily a refinement 
-of <tt>MoveInsertable</tt>" which was true at the time, but then LWG <a href="lwg-defects.html#2177">2177</a>'s resolution made it a refinement.)
-<p/>
-Second, 23.3.6.3 [vector.capacity]/17 says "<i>Remarks:</i> If an exception is thrown other than by the move constructor of a 
-non-<tt>CopyInsertable</tt> <tt>T</tt> there are no effects." This is confusing because <tt>T</tt> is required to be 
-<tt>CopyInsertable</tt>. (/14 says the same thing for <tt>resize(size_type sz)</tt>, where it is correct because that overload 
-requires only <tt>MoveInsertable</tt> and <tt>DefaultInsertable</tt>.)
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 23.3.3.3 [deque.capacity]/4 as indicated:</p>
-
-<blockquote><pre>
-void resize(size_type sz, const T&amp; c);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--4- <i>Requires:</i> <tt>T</tt> shall be <del><tt>MoveInsertable</tt> into <tt>*this</tt> and</del> <tt>CopyInsertable</tt> into 
-<tt>*this</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 23.3.6.3 [vector.capacity]/16+17 as indicated:</p>
-
-<blockquote><pre>
-void resize(size_type sz, const T&amp; c);
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--16- <i>Requires:</i> <tt>T</tt> shall be <del><tt>MoveInsertable</tt> into <tt>*this</tt> and</del> <tt>CopyInsertable</tt> into 
-<tt>*this</tt>.
-<p/>
--17- <i>Remarks:</i> If an exception is thrown <del>other than by the move constructor of a non-<tt>CopyInsertable</tt> <tt>T</tt></del> 
-there are no effects.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2324"></a>2324. Insert iterator constructors should use <tt>addressof()</tt></h3>
-<p><b>Section:</b> 24.5.2.2.1 [back.insert.iter.cons], 24.5.2.4.1 [front.insert.iter.cons], 24.5.2.6.1 [insert.iter.cons] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-24.5.2.2.1 [back.insert.iter.cons]/1, 24.5.2.4.1 [front.insert.iter.cons]/1, and 24.5.2.6.1 [insert.iter.cons]/1 
-say "Initializes container with <tt>&amp;x</tt>", which doesn't defend against containers overloading <tt>operator&amp;()</tt>.  
-Containers are now required to have such defenses for their elements, so we may as well be consistent here.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 24.5.2.2.1 [back.insert.iter.cons]/1 as indicated:</p>
-
-<blockquote><pre>
-explicit back_insert_iterator(Container&amp; x);
-</pre><blockquote>
-<p>
--1- <i>Effects:</i> Initializes <tt>container</tt> with <tt><del>&amp;x</del><ins>std::addressof(x)</ins></tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 24.5.2.4.1 [front.insert.iter.cons]/1 as indicated:</p>
-
-<blockquote><pre>
-explicit front_insert_iterator(Container&amp; x);
-</pre><blockquote>
-<p>
--1- <i>Effects:</i> Initializes <tt>container</tt> with <tt><del>&amp;x</del><ins>std::addressof(x)</ins></tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-<li><p>Edit 24.5.2.6.1 [insert.iter.cons]/1 as indicated:</p>
-
-<blockquote><pre>
-insert_iterator(Container&amp; x, typename Container::iterator i);
-</pre><blockquote>
-<p>
--1- <i>Effects:</i> Initializes <tt>container</tt> with <tt><del>&amp;x</del><ins>std::addressof(x)</ins></tt> and <tt>iter</tt> with <tt>i</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2325"></a>2325. <tt>minmax_element()</tt>'s behavior differing from <tt>max_element()</tt>'s should be noted</h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-25.4.7 [alg.min.max]/23 says that <tt>max_element()</tt> finds the <em>first</em> biggest element, while /25 says that 
-<tt>minmax_element()</tt> finds the <em>last</em> biggest element. This significant difference is unusual &mdash; it means that 
-<tt>minmax_element(args)</tt> is not equivalent to <tt>make_pair(min_element(args), max_element(args))</tt>, whereas the other 
-major "two for one" algorithm <tt>equal_range(args)</tt> is equivalent to <tt>make_pair(lower_bound(args), upper_bound(args))</tt>.  
-<tt>minmax_element()</tt>'s behavior is intentional &mdash; it is a fundamental consequence of the <tt>3N/2</tt> algorithm &mdash; 
-but the Standardese does not draw attention to this in any way. This wording came from LWG <a href="lwg-defects.html#715">715</a>'s resolution (which 
-changed the semantics but didn't mention it), citing CLRS for the algorithm &mdash; but CLRS doesn't mention the behavior for 
-equivalent elements! The wording here deeply confused me (as an STL maintainer fixing an incorrect implementation) until I walked 
-through the algorithm by hand and figured out the fundamental reason. It would be really nice for the Standard to provide a hint 
-that something magical is happening here.
-</p>
-
-<p><i>[2014-06-06 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Add a footnote to 25.4.7 [alg.min.max]/25 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class ForwardIterator&gt;
-  pair&lt;ForwardIterator, ForwardIterator&gt;
-    minmax_element(ForwardIterator first, ForwardIterator last);
-template&lt;class ForwardIterator, class Compare&gt;
-  pair&lt;ForwardIterator, ForwardIterator&gt;
-    minmax_element(ForwardIterator first, ForwardIterator last, Compare comp);
-</pre><blockquote>
-<p>
--25- <i>Returns:</i> <tt>make_pair(first, first)</tt> if <tt>[first,last)</tt> is empty, otherwise <tt>make_pair(m, M)</tt>, where
-<tt>m</tt> is the first iterator in <tt>[first,last)</tt> such that no iterator in the range refers to a smaller element,
-and where <tt>M</tt> is the last iterator <ins>[Footnote: This behavior intentionally differs from <tt>max_element()</tt>.]</ins> 
-in <tt>[first,last)</tt> such that no iterator in the range refers to a larger element.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2329"></a>2329. <tt>regex_match()/regex_search()</tt> with <tt>match_results</tt> should forbid temporary strings</h3>
-<p><b>Section:</b> 28.4 [re.syn] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.syn">issues</a> in [re.syn].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following code:
-</p>
-<blockquote><pre>
-const regex r(R"(meow(\d+)\.txt)");
-smatch m;
-if (regex_match(dir_iter-&gt;path().filename().string(), m, r)) {
-  DoSomethingWith(m[1]);
-}
-</pre></blockquote>
-<p>
-This occasionally crashes. The problem is that <tt>dir_iter-&gt;path().filename().string()</tt> returns a temporary string, 
-so the <tt>match_results</tt> contains invalidated iterators into a destroyed temporary string.
-<p/>
-It's fine for <tt>regex_match/regex_search(str, reg)</tt> to accept temporary strings, because they just return <tt>bool</tt>. 
-However, the overloads taking <tt>match_results</tt> should forbid temporary strings.
-</p>
-
-<p><i>[2014-02-13 Issaquah: Move as Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 28.4 [re.syn], header <tt>&lt;regex&gt;</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-#include &lt;initializer_list&gt;
-
-namespace std {
-
-  [&hellip;]
-  
-  <i>// 28.11.2, function template regex_match:</i>
-  [&hellip;]
-  <ins>template &lt;class ST, class SA, class Allocator, class charT, class traits&gt; 
-  bool regex_match(const basic_string&lt;charT, ST, SA&gt;&amp;&amp;, 
-                   match_results&lt;
-                     typename basic_string&lt;charT, ST, SA&gt;::const_iterator, 
-                     Allocator&gt;&amp;, 
-                   const basic_regex&lt;charT, traits&gt;&amp;, 
-                   regex_constants::match_flag_type = 
-                     regex_constants::match_default) = delete;</ins>
-
-  <i>// 28.11.3, function template regex_search:</i>
-  [&hellip;]
-  <ins>template &lt;class ST, class SA, class Allocator, class charT, class traits&gt; 
-  bool regex_search(const basic_string&lt;charT, ST, SA&gt;&amp;&amp;, 
-                    match_results&lt;
-                      typename basic_string&lt;charT, ST, SA&gt;::const_iterator, 
-                      Allocator&gt;&amp;, 
-                    const basic_regex&lt;charT, traits&gt;&amp;, 
-                    regex_constants::match_flag_type = 
-                      regex_constants::match_default) = delete;</ins>
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2330"></a>2330. <tt>regex("meow", regex::icase)</tt> is technically forbidden but should be permitted</h3>
-<p><b>Section:</b> 28.5.1 [re.synopt] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.synopt">active issues</a> in [re.synopt].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.synopt">issues</a> in [re.synopt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-28.5.1 [re.synopt]/1 says "A valid value of type <tt>syntax_option_type</tt> shall have exactly one of the elements 
-<tt>ECMAScript</tt>, <tt>basic</tt>, <tt>extended</tt>, <tt>awk</tt>, <tt>grep</tt>, <tt>egrep</tt>, set." 
-<p/>
-This "exactly one" wording technically forbids passing <tt>icase</tt> by itself! Users should not be required to pass 
-<tt>regex::ECMAScript | regex::icase</tt>. (Note that the cost of an additional check for no grammar being explicitly requested 
-is completely irrelevant, as regex construction is so much more expensive.)
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Edit 28.5.1 [re.synopt] as indicated:</p>
-
-<blockquote><p>
--1- The type <tt>syntax_option_type</tt> is an implementation-defined bitmask type (17.5.2.1.3). Setting its elements
-has the effects listed in table 138. A valid value of type <tt>syntax_option_type</tt> shall have <del>exactly</del><ins>at most</ins> 
-one of the <ins>grammar</ins> elements <tt>ECMAScript</tt>, <tt>basic</tt>, <tt>extended</tt>, <tt>awk</tt>, <tt>grep</tt>, 
-<tt>egrep</tt>, set. <ins> If no grammar element is set, the default grammar is <tt>ECMAScript</tt>.</ins>
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2332"></a>2332. <tt>regex_iterator/regex_token_iterator</tt> should forbid temporary regexes</h3>
-<p><b>Section:</b> 28.12 [re.iter] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-09-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Users can write "<tt>for(sregex_iterator i(s.begin(), s.end(), regex("meow")), end; i != end; ++i)</tt>", binding a temporary 
-<tt>regex</tt> to <tt>const regex&amp;</tt> and storing a pointer to it. This will compile silently, triggering undefined behavior 
-at runtime. We now have the technology to prevent this from compiling, like how <tt>reference_wrapper</tt> refuses to bind to 
-temporaries.
-</p>
-
-<p><i>[2014-02-14 Issaquah meeting: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Change 28.12.1 [re.regiter]/1, class template <tt>regex_iterator</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-regex_iterator();
-regex_iterator(BidirectionalIterator a, BidirectionalIterator b,
-  const regex_type&amp; re,
-  regex_constants::match_flag_type m =
-    regex_constants::match_default);
-<ins>regex_iterator(BidirectionalIterator a, BidirectionalIterator b,
-  const regex_type&amp;&amp; re,
-  regex_constants::match_flag_type m =
-    regex_constants::match_default) = delete;</ins>
-</pre></blockquote>
-</li>
-
-<li><p>Change 28.12.2 [re.tokiter]/6, class template <tt>regex_token_iterator</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-regex_token_iterator();
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     int submatch = 0,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     const std::vector&lt;int&gt;&amp; submatches,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     initializer_list&lt;int&gt; submatches,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-template &lt;std::size_t N&gt;
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp; re,
-                     const int (&amp;submatches)[N],
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default);
-<ins>regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp;&amp; re,
-                     int submatch = 0,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default) = delete;
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp;&amp; re,
-                     const std::vector&lt;int&gt;&amp; submatches,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default) = delete;
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp;&amp; re,
-                     initializer_list&lt;int&gt; submatches,
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default) = delete;
-template &lt;std::size_t N&gt;
-regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
-                     const regex_type&amp;&amp; re,
-                     const int (&amp;submatches)[N],
-                     regex_constants::match_flag_type m =
-                       regex_constants::match_default) = delete;</ins>
-</pre></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2333"></a>2333. [fund.ts] Hashing disengaged <tt>optional&lt;T&gt;</tt> objects</h3>
-<p><b>Section:</b> X [optional.hash] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2013-10-03 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-The spec for <tt>hash&lt;optional&lt;T&gt;&gt;</tt> doesn't say anything about disengaged
-objects, so 1.3 [defns.undefined] would imply it's undefined behaviour,
-but that's very unhelpful to users.
-<p/>
-If hashing disengaged optional objects is undefined there should be a <i>Requires</i>, otherwise 
-there should be some statement saying it's OK.
-<p/>
-It would be possible to specify the value, e.g. saying it returns the
-same value as something like <tt>std::hash&lt;void*&gt;()(nullptr)</tt>, but leaving
-it unspecified would permit users to specialize <tt>hash&lt;optional&lt;UserDefinedType&gt;&gt;</tt> so 
-that the hash value for a disengaged object is distinct from any value returned by
-<tt>hash&lt;UserDefinedType&gt;</tt>.
-</p>
-
-<p><i>[2014-06-06 pre-Rapperswill]</i></p>
-
-<p>
-This issue has been reopened as fundamentals-ts.
-</p>
-
-<p><i>[2014-06-07 Daniel comments]</i></p>
-
-<p>
-This issue should be set to <b>Resolved</b>, because the wording fix is already applied in the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html#optional.hash">last fundamentals working draft</a>.
-</p>
-
-<p><i>[2014-06-16 Rapperswill]</i></p>
-
-<p>
-Confirmed that this issue is resolved in the current Library Fundamentals working paper.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3691.</p>
-
-<ol>
-<li><p>Add to X [optional.hash]/3</p>
-
-<blockquote><pre>
-template &lt;class T&gt; struct hash&lt;optional&lt;T&gt;&gt;;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--3- For an object <tt>o</tt> of type <tt>optional&lt;T&gt;</tt>, if <tt>bool(o) == true</tt>, 
-<tt>hash&lt;optional&lt;T&gt;&gt;()(o)</tt> shall evaluate to the same value as 
-<tt>hash&lt;T&gt;()(*o)</tt> <ins>otherwise it evaluates to an unspecified value</ins>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2339"></a>2339. Wording issue in <tt>nth_element</tt></h3>
-<p><b>Section:</b> 25.4.2 [alg.nth.element] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Christopher Jefferson <b>Opened:</b> 2013-10-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.nth.element">issues</a> in [alg.nth.element].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The wording of <tt>nth_element</tt> says:
-</p>
-<blockquote><pre>
-template&lt;class RandomAccessIterator&gt;
-  void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                   RandomAccessIterator last);
-</pre><blockquote>
-<p>
-After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt> is the element that would be in that
-position if the whole range were sorted. Also for every iterator <tt>i</tt> in the range <tt>[first,nth)</tt> and every
-iterator <tt>j</tt> in the range <tt>[nth,last)</tt> it holds that: <tt>!(*j &lt; *i)</tt> or <tt>comp(*j, *i) == false</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-That wording, to me, implies that there must be an element at '<tt>nth</tt>'.
-However, gcc at least accepts <tt>nth == last</tt>, and returns without effect
-(which seems like the sensible option).
-<p/>
-Is it intended to accept <tt>nth == last</tt>? If so, then I would suggest adding
-this to the wording explicitly, say:
-</p>
-<blockquote>
-<p>
-After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt><ins>, if any,</ins> is the element that
-would be in that position if the whole range were sorted. Also for every iterator <tt>i</tt> in the range <tt>[first,nth)</tt>
-and every iterator <tt>j</tt> in the range <tt>[nth,last)</tt> it holds that: <tt>!(*j &lt; *i)</tt> or <tt>comp(*j, *i) == false</tt>.
-</p>
-</blockquote>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Modify 25.4.2 [alg.nth.element]/1 as indicated:</p>
-
-<blockquote><pre>
-template&lt;class RandomAccessIterator&gt;
-  void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                   RandomAccessIterator last);
-template&lt;class RandomAccessIterator, class Compare&gt;
-  void nth_element(RandomAccessIterator first, RandomAccessIterator nth,
-                   RandomAccessIterator last, Compare comp);
-</pre><blockquote>
-<p>
--1- After <tt>nth_element</tt> the element in the position pointed to by <tt>nth</tt> is the element that would be in that
-position if the whole range were sorted<ins>, unless <tt>nth == last</tt></ins>. Also for every iterator <tt>i</tt> in the 
-range <tt>[first,nth)</tt> and every iterator <tt>j</tt> in the range <tt>[nth,last)</tt> it holds that: <tt>!(*j &lt; *i)</tt> 
-or <tt>comp(*j, *i) == false</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2340"></a>2340. Replacement allocation functions declared as inline</h3>
-<p><b>Section:</b> 17.6.4.6 [replacement.functions] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> David Majnemer <b>Opened:</b> 2013-10-20 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#replacement.functions">issues</a> in [replacement.functions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N3290 17.6.4.6 [replacement.functions]/p3 says:
-</p>
-<blockquote><p>
-The program's definitions shall not be specified as <tt>inline</tt>.
-</p></blockquote>
-<p>
-This seems to permit declarations of replacement allocation functions that are specified as <tt>inline</tt> so long 
-as they aren't used. This behavior seems more like a bug than a feature, I propose that we do the following:
-</p>
-<blockquote><p>
-The program's <del>definitions</del><ins>declarations</ins> shall not be specified as <tt>inline</tt>.
-</p></blockquote>
-
-<p><i>[2014-02-15 Issaquah : Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Modify 17.6.4.6 [replacement.functions]/3 as indicated:</p>
-
-<blockquote><p>
--3- The program's definitions are used instead of the default versions supplied by the implementation (18.6).
-Such replacement occurs prior to program startup (3.2, 3.6). The program's <del>definitions</del><ins>declarations</ins> 
-shall not be specified as <tt>inline</tt>. No diagnostic is required.</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2341"></a>2341. Inconsistency between <tt>basic_ostream::seekp(pos)</tt> and <tt>basic_ostream::seekp(off, dir)</tt></h3>
-<p><b>Section:</b> 27.7.3.5 [ostream.seeks] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Marshall Clow  <b>Opened:</b> 2013-10-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-In 27.7.3.5 [ostream.seeks], we have:
-</p>
-<blockquote><pre>
-basic_ostream&lt;charT,traits&gt;&amp; seekp(pos_type pos);
-</pre><blockquote>
-<p>
--3- <i>Effects:</i> If <tt>fail() != true</tt>, executes <tt>rdbuf()-&gt;pubseekpos(pos, ios_base::out)</tt>. In case of failure, 
-the function calls <tt>setstate(failbit)</tt> (which may throw <tt>ios_base::failure</tt>).
-<p/>
--4- <i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote></blockquote>
-<blockquote><pre>
-basic_ostream&lt;charT,traits&gt;&amp; seekp(off_type off, ios_base::seekdir dir);
-</pre><blockquote>
-<p>
--5- <i>Effects:</i> If <tt>fail() != true</tt>, executes <tt>rdbuf()-&gt;pubseekoff(off, dir, ios_base::out)</tt>.
-<p/>
--6- <i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote></blockquote>
-<p>
-The first call is required to set the <tt>failbit</tt> on failure, but the second is not
-<p/>
-So (given two ostreams, <tt>os1</tt> and <tt>os2</tt>) the following code (confusingly) works:
-</p>
-<blockquote><pre>
-os1.seekp(-1);
-assert(os1.fail());
-
-os2.seekp(-1, std::ios_base::beg);
-assert(os2.good());
-</pre></blockquote>
-<p>
-Note that the description of <tt>basic_istream&lt;charT,traits&gt;&amp; seekg(off_type off, ios_base::seekdir dir)</tt> in 
-27.7.2.3 [istream.unformatted] p43 <em>does</em> require setting <tt>failbit</tt>.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Modify 27.7.3.5 [ostream.seeks]p5 as indicated:</p>
-
-<blockquote><pre>
-basic_ostream&lt;charT,traits&gt;&amp; seekp(off_type off, ios_base::seekdir dir);
-</pre><blockquote>
-<p>
--5- <i>Effects:</i> If <tt>fail() != true</tt>, executes <tt>rdbuf()-&gt;pubseekoff(off, dir, ios_base::out)</tt>.
-<ins>In case of failure, the function calls <tt>setstate(failbit)</tt> (which may throw <tt>ios_base::failure</tt>).</ins>
-<p/>
--6- <i>Returns:</i> <tt>*this</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2344"></a>2344. <tt>quoted()</tt>'s interaction with padding is unclear</h3>
-<p><b>Section:</b> 27.7.6 [quoted.manip] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-11-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#quoted.manip">issues</a> in [quoted.manip].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Given this code:
-</p>
-<blockquote><pre>
-cout &lt;&lt; "[" &lt;&lt; left &lt;&lt; setfill('x') &lt;&lt; setw(20) &lt;&lt; R"("AB \"CD\" EF")" &lt;&lt; "]" &lt;&lt; endl;
-cout &lt;&lt; "[" &lt;&lt; left &lt;&lt; setfill('y') &lt;&lt; setw(20) &lt;&lt; quoted(R"(GH "IJ" KL)") &lt;&lt; "]" &lt;&lt; endl;
-</pre></blockquote>
-<p>
-The first line prints <tt>["AB \"CD\" EF"xxxxxx]</tt>. The second line should probably print <tt>["GH \"IJ\" KL"yyyyyy]</tt>, but 
-27.7.6 [quoted.manip]/2 doesn't say whether or how <tt>quoted()</tt> should interact with padding. All it says is that 
-</p>
-<blockquote><p>
-"<tt>out &lt;&lt; quoted(s, delim, escape)</tt> behaves as if it inserts the following characters into out using character 
-inserter function templates (27.7.3.6.4)". 
-</p></blockquote>
-<p>
-27.7.3.6.4 [ostream.inserters.character] specifies both single-character and null-terminated inserters, both referring to 
-27.7.3.6.1 [ostream.formatted.reqmts]/3 for padding. Literally implementing <tt>quoted()</tt> with single-character inserters 
-would result in padding being emitted after the first character, with undesirable effects for <tt>ios_base::left</tt>.
-<p/>
-It appears that 21.4.8.9 [string.io]/5 has the appropriate incantations to follow here. It says that <tt>os &lt;&lt; str</tt> 
-</p>
-<blockquote><p>
-"Behaves as a formatted output function (27.7.3.6.1) of <tt>os</tt>. Forms a character sequence <tt>seq</tt>, initially consisting of the 
-elements defined by the range <tt>[str.begin(), str.end())</tt>. Determines padding for <tt>seq</tt> as described in 27.7.3.6.1. 
-Then inserts <tt>seq</tt> as if by calling <tt>os.rdbuf()-&gt;sputn(seq, n)</tt>, where <tt>n</tt> is the larger of <tt>os.width()</tt> 
-and <tt>str.size();</tt> then calls <tt>os.width(0)</tt>." 
-</p></blockquote>
-<p>
-Additionally, saying that it's a "formatted output function" activates 27.7.3.6.1 [ostream.formatted.reqmts]/1's wording for 
-sentry objects.
-</p>
-
-<p><i>[2014-02-14 Issaquah meeting: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Edit 27.7.6 [quoted.manip] as follows:</p>
-
-<blockquote><pre>
-template &lt;class charT&gt;
-  unspecified quoted(const charT* s, charT delim=charT('"'), charT escape=charT('\\'));
-template &lt;class charT, class traits, class Allocator&gt;
-  unspecified quoted(const basic_string&lt;charT, traits, Allocator>&amp; s,
-                     charT delim=charT('"'), charT escape=charT('\\'));
-</pre><blockquote>
-<p>
--2- <i>Returns:</i> An object of unspecified type such that if <tt>out</tt> is an instance of <tt>basic_ostream</tt> with member
-type <tt>char_type</tt> the same as <tt>charT</tt>, then the expression <tt>out &lt;&lt; quoted(s, delim, escape)</tt> behaves
-as <del>if it inserts the following characters into <tt>out</tt> using character inserter function templates (27.7.3.6.4),
-which may throw <tt>ios_base::failure</tt> (27.5.3.1.1)</del><ins>a formatted output function (27.7.3.6.1 [ostream.formatted.reqmts]) 
-of <tt>out</tt>. This forms a character sequence <tt>seq</tt>, initially consisting of the following elements</ins>:
-</p>
-<ul>
-<li><p>
-<tt>delim</tt>.
-</p></li>
-<li><p>
-Each character in <tt>s</tt>. If the character to be output is equal to escape or <tt>delim</tt>, as determined by
-<tt>operator==</tt>, first output <tt>escape</tt>.
-</p></li>
-<li><p>
-<tt>delim</tt>.
-</p></li>
-</ul>
-<p>
-<ins>Let <tt>x</tt> be the number of elements initially in <tt>seq</tt>. Then padding is determined for <tt>seq</tt> as described 
-in 27.7.3.6.1 [ostream.formatted.reqmts], <tt>seq</tt> is inserted as if by calling <tt>out.rdbuf()-&gt;sputn(seq, n)</tt>, where 
-<tt>n</tt> is the larger of <tt>out.width()</tt> and <tt>x</tt>, and <tt>out.width(0)</tt> is called.</ins>
-The expression <tt>out &lt;&lt; quoted(s, delim, escape)</tt> shall have type <tt>basic_ostream&lt;charT, traits&gt;&amp;</tt>
-and value <tt>out</tt>.
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2346"></a>2346. <tt>integral_constant</tt>'s member functions should be marked <tt>noexcept</tt></h3>
-<p><b>Section:</b> 20.10.3 [meta.help] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2013-11-05 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.help">issues</a> in [meta.help].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Obvious.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Edit 20.10.3 [meta.help] as indicated:</p>
-
-<blockquote><pre>
-namespace std {
-  template&lt;class T, T v&gt;
-  struct integral_constant {
-    static constexpr T value = v;
-    typedef T value_type;
-    typedef integral_constant&lt;T,v&gt; type;
-    constexpr operator value_type() const <ins>noexcept</ins> { return value; }
-    constexpr value_type operator()() const <ins>noexcept</ins> { return value; }
-  };
-  [&hellip;]
-}
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2350"></a>2350. <tt>min</tt>, <tt>max</tt>, and <tt>minmax</tt> should be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Ville Voutilainen <b>Opened:</b> 2013-12-15 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Having <tt>min</tt>, <tt>max</tt>, and <tt>minmax</tt> <tt>constexpr</tt> 
-was a large part of the motivation to allow reference-to-const arguments for 
-<tt>constexpr</tt> functions as per 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3039.pdf">N3039</a>.
-Furthermore, <tt>initializer_lists</tt> are immutable and not-movable-from
-for large part in order to allow using them in <tt>constexpr</tt> contexts
-and other hoisting-optimizations. In <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3797.pdf">N3797</a> 
-version of the draft none of these functions are <tt>constexpr</tt>, and they should be made
-<tt>constexpr</tt>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>In 25.1 [algorithms.general], header <tt>&lt;algorithm&gt;</tt> synopsis, and 25.4.7 [alg.min.max], 
-change as indicated (add <tt>constexpr</tt> to every signature before <tt>min_element</tt>):</p>
-
-<blockquote><pre>
-template&lt;class T&gt; <ins>constexpr</ins> const T&amp; min(const T&amp; a, const T&amp; b);
-template&lt;class T, class Compare&gt;
-<ins>constexpr</ins> const T&amp; min(const T&amp; a, const T&amp; b, Compare comp);
-[&hellip;]
-template&lt;class T&gt;
-<ins>constexpr</ins> T min(initializer_list&lt;T&gt; t);
-template&lt;class T, class Compare>
-<ins>constexpr</ins> T min(initializer_list&lt;T&gt; t, Compare comp);
-[&hellip;]
-template&lt;class T&gt; <ins>constexpr</ins> const T&amp; max(const T&amp; a, const T&amp; b);
-template&lt;class T, class Compare&gt;
-<ins>constexpr</ins> const T&amp; max(const T&amp; a, const T&amp; b, Compare comp);
-[&hellip;]
-template&lt;class T&gt;
-<ins>constexpr</ins> T max(initializer_list&lt;T&gt; t);
-template&lt;class T, class Compare>
-<ins>constexpr</ins> T max(initializer_list&lt;T&gt; t, Compare comp);
-[&hellip;]
-template&lt;class T&gt; <ins>constexpr</ins> pair&lt;const T&amp;, const T&amp;&gt; minmax(const T&amp; a, const T&amp; b);
-template&lt;class T, class Compare&gt;
-<ins>constexpr</ins> pair&lt;const T&amp;, const T&amp;&gt; minmax(const T&amp; a, const T&amp; b, Compare comp);
-[&hellip;]
-template&lt;class T&gt;
-<ins>constexpr</ins> pair&lt;T, T&gt; minmax(initializer_list&lt;T&gt; t);
-template&lt;class T, class Compare>
-<ins>constexpr</ins> pair&lt;T, T&gt; minmax(initializer_list&lt;T&gt; t, Compare comp);
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2354"></a>2354. Unnecessary copying when inserting into maps with braced-init syntax</h3>
-<p><b>Section:</b> 23.4.4.1 [map.overview], 23.4.5.1 [multimap.overview], 23.5.4.1 [unord.map.overview], 23.5.5.1 [unord.multimap.overview] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Geoffrey Romer <b>Opened:</b> 2014-01-08 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The rvalue-reference <tt>insert()</tt> members of <tt>map</tt>, <tt>multimap</tt>, <tt>unordered_map</tt>, and 
-<tt>unordered_multimap</tt> are specified as function templates, where the rvalue-reference parameter type 
-depends on the template parameter. 
-As a consequence, these overloads cannot be invoked via braced-initializer syntax (e.g. <tt>my_map.insert({key, value})</tt>), 
-because the template argument cannot be deduced from a braced-init-list. Such calls instead resolve to the 
-const lvalue reference overload, which forces a non-elidable copy of the argument, despite the fact that the 
-argument is an rvalue, and so should be eligible for moving and copy elision.
-<p/>
-This leads to sub-optimal performance for copyable values, and makes this syntax unusable with noncopyable 
-values. This is particularly problematic because sources such as Josuttis's "C++ Standard Library" recommend 
-this syntax as the preferred way to insert into a map in C++11.
-<p/>
-I think this can be fixed by adding an equivalent non-template <tt>value_type&amp;&amp;</tt> overload for each affected 
-member template. Simply declaring these members in the class synopses should be sufficient; their semantics are 
-already dictated by the container concepts (c.f. the corresponding lvalue-reference overloads, which have no 
-additional discussion beyond being listed in the synopsis).
-</p>
-
-<p><i>[2012-02-13 Issaquah]</i></p>
-
-<p>
-AJM: Is this not better solved by <tt>emplace</tt>?
-</p>
-
-<p>
-Nico: <tt>emplace</tt> was a mistake, it breaks a uniform pattern designed into the STL.
-Hence, this fix is important, it should be the preferred way to do this.
-</p>
-
-<p>
-JonW: <tt>emplace</tt> is still more efficient, as this form must make a non-elidable copy.
-</p>
-
-<p>
-GeoffR: Also, cannot move from a <tt>const</tt> key, must always make a copy.
-</p>
-
-<p>
-Poll for adopting the proposed wording:  
-<p/>
-SF: 1 WF: 4 N: 4 WA: 1 SA: 0 
-</p>
-
-<p>
-Move to Ready, pending implementation experience.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Change 23.4.4.1 [map.overview], class template <tt>map</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-[&hellip;]
-pair&lt;iterator, bool&gt; insert(const value_type&amp; x);
-<ins>pair&lt;iterator, bool&gt; insert(value_type&amp;&amp; x);</ins>
-template &lt;class P&gt; pair&lt;iterator, bool&gt; insert(P&amp;&amp; x);
-iterator insert(const_iterator position, const value_type&amp; x);
-<ins>iterator insert(const_iterator position, value_type&amp;&amp; x);</ins>
-template &lt;class P&gt;
-  iterator insert(const_iterator position, P&amp;&amp;);
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.4.5.1 [multimap.overview], class template <tt>multimap</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-[&hellip;]
-iterator insert(const value_type&amp; x);
-<ins>iterator insert(value_type&amp;&amp; x);</ins>
-template &lt;class P&gt; iterator insert(P&amp;&amp; x);
-iterator insert(const_iterator position, const value_type&amp; x);
-<ins>iterator insert(const_iterator position, value_type&amp;&amp; x);</ins>
-template &lt;class P&gt; iterator insert(const_iterator position, P&amp;&amp; x);
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.4.1 [unord.map.overview], class template <tt>unordered_map</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-[&hellip;]
-pair&lt;iterator, bool&gt; insert(const value_type&amp; obj);
-<ins>pair&lt;iterator, bool&gt; insert(value_type&amp;&amp; obj);</ins>
-template &lt;class P&gt; pair&lt;iterator, bool&gt; insert(P&amp;&amp; obj);
-iterator insert(const_iterator hint, const value_type&amp; obj);
-<ins>iterator insert(const_iterator hint, value_type&amp;&amp; obj);</ins>
-template &lt;class P&gt; iterator insert(const_iterator hint, P&amp;&amp; obj);
-[&hellip;]
-</pre></blockquote>
-</li>
-
-<li><p>Change 23.5.5.1 [unord.multimap.overview], class template <tt>unordered_multimap</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-[&hellip;]
-iterator insert(const value_type&amp; obj);
-<ins>iterator insert(value_type&amp;&amp; obj);</ins>
-template &lt;class P&gt; iterator insert(P&amp;&amp; obj);
-iterator insert(const_iterator hint, const value_type&amp; obj);
-<ins>iterator insert(const_iterator hint, value_type&amp;&amp; obj);</ins>
-template &lt;class P&gt; iterator insert(const_iterator hint, P&amp;&amp; obj);
-[&hellip;]
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2356"></a>2356. Stability of erasure in unordered associative containers</h3>
-<p><b>Section:</b> 23.2.5 [unord.req] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz <b>Opened:</b> 2014-01-21 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#unord.req">active issues</a> in [unord.req].</p>
-<p><b>View all other</b> <a href="lwg-index.html#unord.req">issues</a> in [unord.req].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Issue <a href="lwg-defects.html#518">518</a> resolution for unordered associative containers, modelled after that of issue <a href="lwg-defects.html#371">371</a>, 
-which is related to associative containers, states that insertion, erasure and rehashing preserve the relative ordering 
-of equivalent elements. Unfortunately, this is not sufficient to guarantee the validity of code such as this:
-</p>
-<blockquote><pre>
-std::unordered_multimap&lt;int, int&gt; m;
-auto i = m.begin();
-while (i != m.end()) {
-  if (pred(i))
-    m.erase(i++);
-  else
-    ++i;
-}
-</pre></blockquote>
-<p>
-(which is a direct translation from <tt>multimap</tt> to <tt>unordered_multimap</tt> of the motivating example in <a href="lwg-defects.html#371">371</a>), 
-or even this:
-</p>
-<blockquote><pre>
-std::unordered_multimap&lt;int, int&gt; m;
-auto p = m.equal_range(k);
-while (p.first != p.second) {
-  if (pred(p.first))
-    m.erase((p.first)++);
-  else
-    ++(p.first);
-}
-</pre></blockquote>
-<p>
-because the relative ordering of <em>non-equivalent</em> elements elements could potentially change after erasure (not that any actual 
-implementation does that, anyway). Such an underspecification does not happen for regular associative containers, where the 
-relative ordering of non-equivalent elements is kept by design.
-</p>
-
-<p><i>[2014-02-13 Issaquah: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Modify 23.2.5 [unord.req], p14 as indicated:</p>
-
-<blockquote><p>
--14- The <tt>insert</tt> and <tt>emplace</tt> members shall not affect the validity of references to container elements, but may
-invalidate all iterators to the container. The <tt>erase</tt> members shall invalidate only iterators and references
-to the erased elements<ins>, and preserve the relative order of the elements that are not erased</ins>.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2357"></a>2357. Remaining "<tt>Assignable</tt>" requirement</h3>
-<p><b>Section:</b> 25.3.13 [alg.partitions] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-02-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.partitions">issues</a> in [alg.partitions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The <i>Requires</i> element of <tt>partition_copy</tt> says (emphasis mine):
-</p>
-<blockquote><p>
-<i>Requires</i>: <tt>InputIterator</tt>'s value type shall be <b><tt>Assignable</tt></b>, and &hellip;
-</p></blockquote>
-<p>
-The C++03 term <tt>Assignable</tt> was replaced by <tt>CopyAssignable</tt>, remaining cleanups happened via LWG issue
-<a href="lwg-closed.html#972">972</a>, but algorithm <tt>partition_copy</tt> was not affected at that time (during that time the requirements
-of <tt>partition_copy</tt> didn't mention writable nor assignable, but I cannot track down at the moment where these requirements
-had been added). Presumably this requirement should be corrected similarly to the approach used in <a href="lwg-closed.html#972">972</a>.
-<p/>
-Another question is whether a <tt>CopyAssignable</tt> is needed here, given the fact that we already require "writable to" an 
-<tt>OutputIterator</tt> which is defined in 24.2.1 [iterator.requirements.general] and does already impose the necessary
-statement
-</p>
-<blockquote><pre>
-*out = *in;
-</pre></blockquote>
-<p>
-Given the fact that <tt>partition_copy</tt> never touches any input value twice, there is no reason why anything more than
-<i>writable to</i> should be necessary.
-<p/>
-The below suggested primary resolution does not respond to the second part of this question.
-</p>
-
-<p><i>[Issaquah 20014-10-11: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Modify 25.3.13 [alg.partitions], p12 as indicated:</p>
-
-<blockquote><p>
--12- <i>Requires</i>: <tt>InputIterator</tt>'s value type shall be <tt><ins>Copy</ins>Assignable</tt>, and shall be writable 
-to the <tt>out_true</tt> and <tt>out_false</tt> <tt>OutputIterator</tt>s, and shall be convertible to <tt>Predicate</tt>'s 
-argument type. The input range shall not overlap with either of the output ranges.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2359"></a>2359. How does <tt>regex_constants::nosubs</tt> affect <tt>basic_regex::mark_count()</tt>?</h3>
-<p><b>Section:</b> 28.5.1 [re.synopt] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-02-01 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#re.synopt">active issues</a> in [re.synopt].</p>
-<p><b>View all other</b> <a href="lwg-index.html#re.synopt">issues</a> in [re.synopt].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As discussed in <a href="http://accu.org/cgi-bin/wg21/message?wg=lib&amp;msg=35399">c++std-lib-35399</a> and its replies, 
-I can see two possible interpretations of the effects of <tt>regex_constants::nosubs</tt>:
-</p>
-<ol style="list-style-type:decimal">
-<li><p>
-The effect of <tt>nosubs</tt> only applies during matching. Parentheses are
-still recognized as marking a sub-expression by the <tt>basic_regex</tt>
-compiler, and <tt>basic_regex::mark_count()</tt> still returns the number of
-marked sub-expressions, but anything they match is not stored in the
-results. This means it is not always true that <tt>results.size() == r.mark_count() + 1</tt> 
-for a successful match.
-</p></li>
-<li><p>
-<tt>nosubs</tt> affects how a regular expression is compiled, altering the
-state of the <tt>std::basic_regex</tt> object so that <tt>mark_count()</tt> returns
-zero. This also affects any subsequent matching.
-</p></li>
-</ol>
-<p>
-The definition of <tt>nosubs</tt> should make this clear.
-<p/>
-The wording in 28.5.1 [re.synopt]/1 seems to imply that <tt>nosubs</tt> only has
-effects during matching, which is (1), but all known implementations
-do (2). John Maddock confirmed that (2) was intended.
-</p>
-
-<p><i>[Issaquah 2014-02-12: Move to Immediate]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Apply the following edit to the table in 28.5.1 [re.synopt]/1</p>
-
-<blockquote><p>
-Specifies that <ins>no sub-expressions shall be considered to be
-marked, so that</ins> when a regular expression is matched against a character container
-sequence, no sub-expression matches shall be stored in the supplied
-<tt>match_results</tt> structure.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2360"></a>2360. <tt>reverse_iterator::operator*()</tt> is unimplementable</h3>
-<p><b>Section:</b> 24.5.1.1 [reverse.iterator] <b>Status:</b> <a href="lwg-active.html#C++14">C++14</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-02-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#reverse.iterator">issues</a> in [reverse.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#C++14">C++14</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Previously, C++03 24.4.1.3.3 [lib.reverse.iter.op.star] required:
-</p>
-<blockquote>
-<pre>
-reference operator*() const;
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: 
-</p>
-<blockquote><pre>
-Iterator tmp = current;
-return *--tmp;
-</pre></blockquote>
-</blockquote></blockquote>
-<p>
-Now, N3797 24.5.1.1 [reverse.iterator] depicts:
-</p>
-<blockquote><pre>
-private:
-  Iterator deref_tmp; // exposition only
-};
-</pre></blockquote>
-<p>
-And 24.5.1.3.4 [reverse.iter.op.star] requires:
-</p>
-<blockquote>
-<pre>
-reference operator*() const;
-</pre>
-<blockquote>
-<p>
-<i>Effects</i>: 
-</p>
-<blockquote><pre>
-deref_tmp = current;
---deref_tmp;
-return *deref_tmp;
-</pre></blockquote>
-<p>
-[<i>Note</i>: This operation must use an auxiliary member variable rather than a temporary variable to avoid 
-returning a reference that persists beyond the lifetime of its associated iterator. (See 24.2.) &mdash; <i>end note</i>]
-</p>
-</blockquote></blockquote>
-
-<p>
-As written, this won't compile, because <tt>operator*()</tt> is <tt>const</tt> yet it's modifying (via assignment and decrement) 
-the <tt>deref_tmp</tt> data member. So what happens if you say "<tt>mutable Iterator deref_tmp;</tt>"?
-<p/>
-DANGER: WARP CORE BREACH IMMINENT.
-<p/>
-The Standard requires <tt>const</tt> member functions to be callable from multiple threads simultaneously. This is 
-17.6.5.9 [res.on.data.races]/3: "A C++ standard library function shall not directly or indirectly modify objects (1.10) 
-accessible by threads other than the current thread unless the objects are accessed directly or indirectly via the function's 
-non-const arguments, including <tt>this</tt>."
-<p/>
-Multiple threads simultaneously modifying <tt>deref_tmp</tt> will trigger data races, so both <tt>mutable</tt> and some form of 
-synchronization (e.g. <tt>mutex</tt> or <tt>atomic</tt>) are actually necessary!
-<p/>
-Here's what implementations currently do: Dinkumware/VC follows C++03 and doesn't use <tt>deref_tmp</tt> (attempting to 
-implement it is what led me to file this issue). According to Jonathan Wakely, libstdc++ also follows C++03 (see 
-<a href="http://gcc.gnu.org/PR51823">PR51823</a> which is suspended until LWG <a href="lwg-closed.html#2204">2204</a> is resolved). According to 
-Marshall Clow, libc++ uses <tt>deref_tmp</tt> with <tt>mutable</tt> but without synchronization, so it can trigger data races.
-<p/>
-This <tt>deref_tmp</tt> Standardese was added by LWG <a href="lwg-defects.html#198">198</a> "Validity of pointers and references unspecified after 
-iterator destruction" and is present in Working Papers going back to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1638.pdf">N1638</a> 
-on April 11, 2004, long before C++ recognized the existence of multithreading and developed the "<tt>const</tt> means simultaneously 
-readable" convention.
-<p/>
-A related issue is LWG <a href="lwg-active.html#1052">1052</a> "<tt>reverse_iterator::operator-&gt;</tt> should also support smart pointers" which 
-mentioned the need to depict <tt>mutable</tt> in the Standardese, but it was resolved NAD Future and no change was made.
-<p/>
-Finally, LWG <a href="lwg-closed.html#2204">2204</a> "<tt>reverse_iterator</tt> should not require a second copy of the base iterator" talked about 
-removing <tt>deref_tmp</tt>, but without considering multithreading.
-<p/>
-I argue that <tt>deref_tmp</tt> must be removed. Its existence has highly undesirable consequences: either no synchronization 
-is used, violating the Standard's usual multithreading guarantees, or synchronization is used, adding further costs for all 
-users that benefit almost no iterators.
-<p/>
-<tt>deref_tmp</tt> is attempting to handle iterators that return references to things "inside themselves", which I usually call 
-"stashing iterators" (as they have a secret stash). Note that these are very unusual, and are different from proxy iterators like 
-<tt>vector&lt;bool&gt;::iterator</tt>.  While <tt>vector&lt;bool&gt;::iterator</tt>'s <tt>operator*()</tt> does not return a true 
-reference, it refers to a bit that is unrelated to the iterator's lifetime.
-</p>
-
-<p><i>[2014-02-14 Issaquah meeting: Move to Immediate]</i></p>
-
-<p>
-Strike superfluous note to avoid potential confusion, and move to Immediate.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3797.</p>
-
-<ol>
-<li><p>Change class template <tt>reverse_iterator</tt> synopsis, 24.5.1.1 [reverse.iterator], as indicated:</p>
-
-<blockquote><pre>
-[&hellip;]
-protected:
-  Iterator current;
-<del>private:
-  Iterator deref_tmp; // exposition only</del>
-};
-</pre></blockquote>
-</li>
-
-<li><p>Change 24.5.1.3.4 [reverse.iter.op.star] as indicated:</p>
-
-<blockquote><pre>
-reference operator*() const;
-</pre>
-<blockquote>
-<p>
--1- <i>Effects</i>:
-</p>
-<blockquote><pre>
-<del>deref_tmp = current;
---deref_tmp;
-return *deref_tmp;</del>
-<ins>Iterator tmp = current;
-return *--tmp;</ins>
-</pre></blockquote>
-<p>
-<del>-2- [<i>Note</i>: This operation must use an auxiliary member variable rather than a temporary variable to
-avoid returning a reference that persists beyond the lifetime of its associated iterator. (See 24.2.) &mdash; <i>end note</i>]</del>
-</p>
-</blockquote></blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2361"></a>2361. Apply 2299 resolution throughout library</h3>
-<p><b>Section:</b> 20.8.1.2 [unique.ptr.single], 20.7.3.1 [pointer.traits.types], 20.7.7.1 [allocator.uses.trait], 20.7.8.1 [allocator.traits.types], 23.2.3 [sequence.reqmts] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-02-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#unique.ptr.single">issues</a> in [unique.ptr.single].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG <a href="lwg-defects.html#2299">2299</a> addressed a N.B. comment pointing out that recently added
-wording about a type existing was not clear what happens if the type
-exists but is inaccessible. There are 16 pre-existing uses of the same
-language in the library that should use the same wording used to
-resolve 2299.
-</p>
-
-<p>
-The relevant paragraphs are:
-</p>
-
-<p>
-20.8.1.2 [unique.ptr.single]
-<p/>
-20.7.3.1 [pointer.traits.types]
-<p/>
-20.7.7.1 [allocator.uses.trait]
-<p/>
-20.7.8.1 [allocator.traits.types]
-<p/>
-23.2.3 [sequence.reqmts]
-</p>
-
-<p><i>[2014-05-16, Daniel provides wording]</i></p>
-
-
-<p><i>[2014-05-18 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.7.3.1 [pointer.traits.types] as indicated:</p>
-
-<blockquote>
-<pre>
-typedef <i>see below</i> element_type;
-</pre>
-<blockquote>
-<p>
--1- <i>Type</i>: <tt>Ptr::element_type</tt> if <del>such a type exists</del><ins>the qualified-id <tt>Ptr::element_type</tt> is
-valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, <tt>T</tt> if <tt>Ptr</tt> is a class template instantiation
-of the form <tt>SomePointer&lt;T, Args&gt;</tt>, where <tt>Args</tt> is zero or more type arguments; otherwise, the
-specialization is ill-formed.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> difference_type;
-</pre>
-<blockquote>
-<p>
--2- <i>Type</i>: <tt>Ptr::difference_type</tt> if <del>such a type exists</del><ins>the qualified-id <tt>Ptr::difference_type</tt> is
-valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, <tt>std::ptrdiff_t</tt>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class U&gt; using rebind = <i>see below</i>;
-</pre>
-<blockquote>
-<p>
--3- <i>Alias template</i>: <tt>Ptr::rebind&lt;U&gt;</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Ptr::rebind&lt;U&gt;</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>SomePointer&lt;U, Args&gt;</tt> if <tt>Ptr</tt> is a class template instantiation of the form <tt>SomePointer&lt;T, Args&gt;</tt>, 
-where <tt>Args</tt> is zero or more type arguments; otherwise, the instantiation of <tt>rebind</tt> is ill-formed.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.7.7.1 [allocator.uses.trait] p1 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class T, class Alloc&gt; struct uses_allocator;
-</pre>
-<blockquote>
-<p>
--1- <i>Remark<ins>s</ins></i>: automatically detects whether <tt>T</tt> has a nested <tt>allocator_type</tt> that is 
-convertible from <tt>Alloc</tt>. Meets the <tt>BinaryTypeTrait</tt> requirements (20.10.1). The implementation shall provide a definition
-that is derived from <tt>true_type</tt> if <del>a type</del><ins>the qualified-id</ins> <tt>T::allocator_type</tt> <del>exists</del><ins>is
-valid and denotes a type (14.8.2 [temp.deduct])</ins> and <tt>is_convertible&lt;Alloc, T::allocator_type&gt;::value != false</tt>, 
-otherwise it shall be derived from <tt>false_type</tt>. [&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.7.8.1 [allocator.traits.types] as indicated:</p>
-
-<blockquote>
-<pre>
-typedef <i>see below</i> pointer;
-</pre>
-<blockquote>
-<p>
--1- <i>Type</i>: <tt>Alloc::pointer</tt> if <del>such a type exists</del><ins>the qualified-id <tt>Alloc::pointer</tt> is
-valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, <tt>value_type*</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> const_pointer;
-</pre>
-<blockquote>
-<p>
--2- <i>Type</i>: <tt>Alloc::const_pointer</tt> if <del>such a type exists</del><ins>the qualified-id <tt>Alloc::const_pointer</tt> is
-valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>pointer_traits&lt;pointer&gt;::rebind&lt;const value_type&gt;</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> void_pointer;
-</pre>
-<blockquote>
-<p>
--3- <i>Type</i>: <tt>Alloc::void_pointer</tt> if <del>such a type exists</del><ins>the qualified-id <tt>Alloc::void_pointer</tt> is
-valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>pointer_traits&lt;pointer&gt;::rebind&lt;void&gt;</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> const_void_pointer;
-</pre>
-<blockquote>
-<p>
--4- <i>Type</i>: <tt>Alloc::const_void_pointer</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::const_void_pointer</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>pointer_traits&lt;pointer&gt;::rebind&lt;const void&gt;</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> difference_type;
-</pre>
-<blockquote>
-<p>
--5- <i>Type</i>: <tt>Alloc::difference_type</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::difference_type</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>pointer_traits&lt;pointer&gt;::difference_type</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> size_type;
-</pre>
-<blockquote>
-<p>
--6- <i>Type</i>: <tt>Alloc::size_type</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::size_type</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>make_unsigned_t&lt;difference_type&gt;</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> propagate_on_container_copy_assignment;
-</pre>
-<blockquote>
-<p>
--7- <i>Type</i>: <tt>Alloc::propagate_on_container_copy_assignment</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::propagate_on_container_copy_assignment</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>false_type</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> propagate_on_container_move_assignment;
-</pre>
-<blockquote>
-<p>
--8- <i>Type</i>: <tt>Alloc::propagate_on_container_move_assignment</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::propagate_on_container_move_assignment</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>false_type</tt>.
-</p>
-</blockquote>
-
-<pre>
-typedef <i>see below</i> propagate_on_container_swap;
-</pre>
-<blockquote>
-<p>
--9- <i>Type</i>: <tt>Alloc::propagate_on_container_swap</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::propagate_on_container_swap</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>false_type</tt>.
-</p>
-</blockquote>
-
-<pre>
-template &lt;class T&gt; using rebind_alloc = <i>see below</i>;
-</pre>
-<blockquote>
-<p>
--10- <i>Alias template</i>: <tt>Alloc::rebind&lt;T&gt;::other</tt> if <del>such a type exists</del><ins>the qualified-id 
-<tt>Alloc::rebind&lt;T&gt;::other</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins>; otherwise, 
-<tt>Alloc&lt;T, Args&gt;</tt> if <tt>Alloc</tt> is a class template instantiation of the form <tt>Alloc&lt;U, Args&gt;</tt>, 
-where <tt>Args</tt> is zero or more type arguments; otherwise, the instantiation of <tt>rebind_alloc</tt> is ill-formed.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.8.1.2 [unique.ptr.single] p3 as indicated:</p>
-
-<blockquote><p>
--3- If the <del>type</del><ins>qualified-id</ins> <tt>remove_reference_t&lt;D&gt;::pointer</tt> <del>exists</del><ins>is 
-valid and denotes a type (14.8.2 [temp.deduct])</ins>, then <tt>unique_ptr&lt;T, D&gt;::pointer</tt> shall be a synonym
-for <tt>remove_reference_t&lt;D&gt;::pointer</tt>. [&hellip;]
-</p></blockquote>
-</li>
-
-<li><p>Change 23.2.3 [sequence.reqmts] p3 as indicated:</p>
-
-<blockquote><p>
--3- In Tables 100 and 101, <tt>X</tt> denotes a sequence container class, <tt>a</tt> denotes a value of <tt>X</tt> containing elements
-of type <tt>T</tt>, <tt>A</tt> denotes <tt>X::allocator_type</tt> if <del>it exists</del><ins>the qualified-id 
-<tt>X::allocator_type</tt> is valid and denotes a type (14.8.2 [temp.deduct])</ins> and <tt>std::allocator&lt;T&gt;</tt> 
-if it doesn't, [&hellip;]
-</p></blockquote>
-</li>
-
-
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2364"></a>2364. <tt>deque</tt> and <tt>vector</tt> <tt>pop_back</tt> don't specify iterator invalidation requirements</h3>
-<p><b>Section:</b> 23.3.3.4 [deque.modifiers], 23.3.6.5 [vector.modifiers] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Deskin Miller <b>Opened:</b> 2014-02-17 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#deque.modifiers">issues</a> in [deque.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think it's obvious that <tt>vector::pop_back</tt> invalidates the path-the-end iterator, but I cannot find language that says so to 
-my satisfaction in the Standard. N3797 23.2.3 [sequence.reqmts] Table 101 lists <tt>a.pop_back()</tt> semantics as "Destroys the 
-last element", but nowhere do I see this required to invalidate the end iterator (or iterators previously referring to the last element). 
- [container.reqmts.general]/11 states "Unless otherwise specified (either explicitly or by defining a function in terms of 
-other functions), invoking a container member function or passing a container as an argument to a library function shall not 
-invalidate iterators to, or change the values of, objects within that container." 23.3.6.5 [vector.modifiers]/3 says that each 
-flavor of <tt>vector::erase</tt> "Invalidates iterators and references at or after the point of the erase", but <tt>pop_back</tt> isn't 
-discussed, and it wasn't specified in terms of <tt>erase</tt>.
-</p>
-<p>
-Similarly for <tt>std::deque</tt>, 23.2.3 [sequence.reqmts] Table 101 and  [container.reqmts.general]/11 both apply. 
-Yet 23.3.3.4 [deque.modifiers] likewise doesn't discuss <tt>pop_back</tt> nor <tt>pop_front</tt>. Furthermore paragraph 4 fails to 
-specify the iterator-invalidation guarantees when erasing the first element but not the last.
-<p/>
-Both <tt>std::vector</tt> and <tt>std::deque</tt> are in contrast to <tt>std::list</tt>, which says in 23.3.5.4 [list.modifiers]/3 
-regarding <tt>pop_back</tt> (as well as all forms of <tt>erase</tt>, <tt>pop_front</tt>, and <tt>clear</tt>) "Effects: Invalidates only 
-the iterators and references to the erased elements."
-</p>
-
-<p><i>[2014-06-16 Jonathan comments and improves wording]</i></p>
-
-
-<p>
-I believe this reflects our preferred form discussed earlier,
-specifically putting the signatures with the <tt>erase</tt> signatures, so that
-the full specification of <tt>erase()</tt> applies to the <tt>pop_xxx()</tt> functions.
-This covers the case for <tt>deque</tt> where <tt>pop_front()</tt> erases the only
-element (which is both the first and last element).
-<p/>
-Open question: the "erase" wording talks about "An erase operation" &mdash;
-are <tt>pop_front</tt> and <tt>pop_back</tt> clearly covered by "erase operations"? I
-believe so, as 23.3.3.1 [deque.overview]/1 and other places talk about "insert
-and erase operations" which covers <tt>push</tt>/<tt>pop</tt> functions too. I've added
-a note which could be used to clarify that if desired.
-</p>
-
-<strong>Previous resolution [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note">
-<p>This wording is relative to N3936.</p> 
-
-<ol>
-<li><p>Change 23.3.3.4 [deque.modifiers] as indicated:</p>
-
-<blockquote>
-<pre>
-iterator erase(const_iterator position);
-iterator erase(const_iterator first, const_iterator last);
-</pre>
-<blockquote><p>
--4- <i>Effects</i>: An erase operation that erases the last element of a deque invalidates only the past-the-end
-iterator and all iterators and references to the erased elements. An erase operation that erases the first
-element of a deque but not the last element invalidates only <ins>iterators and references to</ins> the erased elements. 
-An erase operation that erases neither the first element nor the last element of a deque invalidates the past-the-end iterator
-and all iterators and references to all the elements of the deque.
-<p/>
--5- [&hellip;]
-<p/>
--6- [&hellip;]
-</p>
-</blockquote>
-
-<pre>
-<ins>void pop_front();
-void pop_back();</ins>
-</pre>
-<blockquote><p>
-<ins>-?- <i>Effects</i>: <tt>pop_front</tt> invalidates iterators and references to the first element of the <tt>deque</tt>. 
-<tt>pop_back</tt> invalidates the past-the-end iterator, and all iterators and references to the last element of the <tt>deque</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.6.5 [vector.modifiers] as indicated:</p>
-<blockquote>
-<blockquote>
-<p>
--5- [&hellip;]
-</p>
-</blockquote>
-
-<pre>
-<ins>void pop_back();</ins>
-</pre>
-<blockquote><p>
-<ins>-?- <i>Effects</i>: Invalidates the past-the-end iterator, and iterators and references to the last element of the vector.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-06-21 Rapperswil]</i></p>
-
-<p>
-Tony van Eerd: Would be good to define "an erase operation is ..." somewhere.
-<p/>
-AM: The containers clause is known to be suboptimal in many ways.
-<p/>
-Looks good 
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 23.3.3.4 [deque.modifiers] as indicated:</p>
-
-<blockquote>
-<pre>
-iterator erase(const_iterator position);
-iterator erase(const_iterator first, const_iterator last);
-<ins>void pop_front();
-void pop_back();</ins>
-</pre>
-<blockquote><p>
--4- <i>Effects</i>: An erase operation that erases the last element of a deque invalidates only the past-the-end
-iterator and all iterators and references to the erased elements. An erase operation that erases the first
-element of a deque but not the last element invalidates only <ins>iterators and references to</ins> the erased elements. 
-An erase operation that erases neither the first element nor the last element of a deque invalidates the past-the-end iterator
-and all iterators and references to all the elements of the deque. <ins>[<i>Note</i>: <tt>pop_front</tt> and <tt>pop_back</tt> 
-are erase operations &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.6.5 [vector.modifiers] as indicated:</p>
-<blockquote>
-<pre>
-iterator erase(const_iterator position);
-iterator erase(const_iterator first, const_iterator last);
-<ins>void pop_back();</ins>
-</pre>
-<blockquote><p>
--3- <i>Effects</i>: Invalidates iterators and references at or after the point of the erase.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2365"></a>2365. Missing <tt>noexcept</tt> in <tt>shared_ptr::shared_ptr(nullptr_t)</tt></h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Cassio Neri <b>Opened:</b> 2014-02-13 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The declaration and definition of <tt>shared_ptr::shared_ptr(nullptr_t)</tt>, given in 20.8.2.2 [util.smartptr.shared], is 
-</p>
-<blockquote><pre>
-constexpr shared_ptr(nullptr_t) : shared_ptr() { }
-</pre></blockquote>
-<p>
-The intention seems clear: this constructor should have the same semantics of the default constructor. However, contrarily to the 
-default constructor, this one is not <tt>noexcept</tt>. In contrast, <tt>unique_ptr::unique_ptr(nullptr_t)</tt> is <tt>noexcept</tt>, 
-as per 20.8.1.2 [unique.ptr.single]: 
-</p>
-<blockquote><pre>
-constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }
-</pre></blockquote>
-<p>
-Both libstdc++ and libc++ have added <tt>noexcept</tt> to <tt>shared_ptr::shared_ptr(nullptr_t)</tt>. Microsoft's STL has not.
-</p>
-
-<p><i>[2014-03-26 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change class template <tt>shared_ptr</tt> synopsis, 20.8.2.2 [util.smartptr.shared], as indicated:</p>
-
-<blockquote>
-<pre>
-constexpr shared_ptr(nullptr_t) <ins>noexcept</ins> : shared_ptr() { }
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2369"></a>2369. <tt>constexpr max(initializer_list)</tt> vs <tt>max_element</tt></h3>
-<p><b>Section:</b> 25.4.7 [alg.min.max] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Marc Glisse <b>Opened:</b> 2014-02-21 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.min.max">issues</a> in [alg.min.max].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-As part of the resolution for LWG issue <a href="lwg-defects.html#2350">2350</a>, <tt>max(initializer_list)</tt> was marked as <tt>constexpr</tt>. Looking 
-at two implementations of this function (libstdc++ and libc++), both implement it in terms of <tt>max_element</tt>, which is <em>not</em> 
-marked as <tt>constexpr</tt>. This is inconsistent and forces some small amount of code duplication in the implementation. Unless we 
-remove <tt>constexpr</tt> from this overload of <tt>max</tt>, I believe we should add <tt>constexpr</tt> to <tt>max_element</tt>.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-AM: Can we implement this with the C++14 <tt>constexpr</tt> rules? JM: Yes. AM: Ready? [Yes]
-<p/>
-Accepted.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>In 25.1 [algorithms.general], header <tt>&lt;algorithm&gt;</tt> synopsis, and 25.4.7 [alg.min.max], change as 
-indicated (add <tt>constexpr</tt> to every signature from the first <tt>min_element</tt> to the second <tt>minmax_element</tt>)::</p>
-
-<blockquote>
-<pre>
-template&lt;class ForwardIterator&gt;
-<ins>constexpr</ins> ForwardIterator min_element(ForwardIterator first, ForwardIterator last);
-template&lt;class ForwardIterator, class Compare&gt;
-<ins>constexpr</ins> ForwardIterator min_element(ForwardIterator first, ForwardIterator last,
-                                      Compare comp);
-[&hellip;]
-template&lt;class ForwardIterator&gt;
-<ins>constexpr</ins> ForwardIterator max_element(ForwardIterator first, ForwardIterator last);
-template&lt;class ForwardIterator, class Compare&gt;
-<ins>constexpr</ins> ForwardIterator max_element(ForwardIterator first, ForwardIterator last,
-                                      Compare comp);
-[&hellip;]
-template&lt;class ForwardIterator&gt;
-<ins>constexpr</ins> pair&lt;ForwardIterator, ForwardIterator&gt;
-minmax_element(ForwardIterator first, ForwardIterator last);
-template&lt;class ForwardIterator, class Compare&gt;
-<ins>constexpr</ins> pair&lt;ForwardIterator, ForwardIterator&gt;
-minmax_element(ForwardIterator first, ForwardIterator last, Compare comp);
-</pre>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2371"></a>2371. [fund.ts] No template aliases defined for new type traits</h3>
-<p><b>Section:</b> 20.10.2 [meta.type.synop] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2014-03-07 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-The library fundamentals specification defines two new type trait template classes: <tt>invocation_type</tt> and <tt>raw_invocation_type</tt>.  
-But it does not define the corresponding template aliases. Note that both of these classes define a member typedef <tt>type</tt> and no 
-other public members, so according to the argument in <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3887.pdf">N3887</a> 
-the template aliases should be defined.
-</p>
-
-<p><i>[2013-06-21 Rapperswil]</i></p>
-
-<p>
-Accept for Library Fundamentals TS Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html">N3908</a>.</p>
-
-<ol>
-<li><p>Add the following to section 3.3.1[meta.type.synop] of the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html#meta">Library Fundamentals specification</a>
-as indicated:
-</p>
-
-<blockquote><pre>
-namespace std {
-namespace experimental {
-inline namespace fundamentals_v1 {
-  [&hellip;]
-  <i>// 3.3.2, Other type transformations</i>
-  template &lt;class&gt; class invocation_type; <i>// not defined</i>
-  template &lt;class F, class... ArgTypes&gt; class invocation_type&lt;F(ArgTypes...)&gt;;
-  template &lt;class&gt; class raw_invocation_type; <i>// not defined</i>
-  template &lt;class F, class... ArgTypes&gt; class raw_invocation_type&lt;F(ArgTypes...)&gt;;
-  
-  <ins>template &lt;class T&gt; 
-    using invocation_type_t = typename invocation_type&lt;T&gt;::type;
-  template &lt;class T&gt; 
-    using raw_invocation_type_t = typename raw_invocation_type&lt;T&gt;::type;</ins>
-  
-} <i>// namespace fundamentals_v1</i>
-} <i>// namespace experimental</i>
-} <i>// namespace std</i>
-</pre></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2374"></a>2374. [fund.ts] Remarks for <tt>optional::to_value</tt> are too restrictive</h3>
-<p><b>Section:</b> X [optional.object.observe] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-03-25 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-In Bristol I think I claimed that the remarks for <tt>optional::to_value()</tt>
-were unimplementable and the function could only be <tt>constexpr</tt> if both
-constructors that could be called were <tt>constexpr</tt>, but I was wrong.
-The remarks should be reverted to the original pre-n3793 form.
-</p>
-
-<p><i>[2013-06-21 Rapperswil]</i></p>
-
-<p>
-Accept for Library Fundamentals TS Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html">N3908</a>.</p>
-
-<ol>
-<li><p>Change [optional.object.observe] p23 of the 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html#optional.object.observe">Library Fundamentals specification</a>
-as indicated:
-</p>
-
-<blockquote><pre>
-template &lt;class U&gt; constexpr T value_or(U&amp;&amp; v) const &amp;;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--23- <i>Remarks</i>: If <del>both constructors of <tt>T</tt> which could be selected are <tt>constexpr</tt> constructors</del><ins>the 
-selected constructor of <tt>T</tt> is a <tt>constexpr</tt> constructor</ins>, this function 
-shall be a <tt>constexpr</tt> function. 
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2376"></a>2376. <tt>bad_weak_ptr::what()</tt> overspecified</h3>
-<p><b>Section:</b> 20.8.2.1 [util.smartptr.weakptr] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-03-27 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-20.8.2.1 [util.smartptr.weakptr] p2 requires <tt>bad_weak_ptr</tt> to return precisely
-the string <tt>"bad_weak_ptr"</tt>.
-<p/>
-There was general agreement on the reflector and at the Issaquah
-meeting that this is over-constrained and implementation should be
-free to return something more descriptive if desired.
-<p/>
-The proposed resolution makes <tt>bad_weak_ptr</tt> consistent with other
-exception types such as <tt>bad_alloc</tt> and <tt>bad_cast</tt>.
-<p/>
-If accepted, the P/R for issue <a href="lwg-defects.html#2233">2233</a>, which currently uses similar
-wording to <tt>bad_weak_ptr</tt>, could be updated appropriately.
-</p>
-
-<p><i>[2014-03-27 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit 20.8.2.1 [util.smartptr.weakptr]:</p>
-
-<blockquote>
-<pre>
-bad_weak_ptr() noexcept;
-</pre><blockquote>
-<p>
--2- <i>Postconditions</i>: <tt>what()</tt> returns <del><tt>"bad_weak_ptr"</tt></del><ins>an implementation-defined NTBS</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2377"></a>2377. <tt>std::align</tt> requirements overly strict</h3>
-<p><b>Section:</b> 20.7.5 [ptr.align] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2014-03-30 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#ptr.align">issues</a> in [ptr.align].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>std::align</tt> requires that its <tt>alignment</tt> argument shall be "a fundamental alignment value or an 
-extended alignment value supported by the implementation in this context".
-<p/>
-This requirement is overly strict. There are use cases that require a buffer aligned at values that are not tied 
-to the C++ implementation, such as page size, cache line size, sector size. These come from the hardware or the 
-OS and are generally not known until run time. The implementation of <tt>std::align</tt> does not depend on the 
-requirement that <tt>alignment</tt> be a fundamental or an extended alignment value; any power of two would be handled 
-the same way.
-<p/>
-In addition, it is not possible for the user to even determine whether a value is "a fundamental alignment value 
-or an extended alignment value supported by the implementation in this context". One would expect values coming 
-from <tt>alignof</tt> to be fine, but I'm not sure whether even that is guaranteed in the presence of <tt>alignas</tt>.
-<p/>
-Therefore, I propose that
-</p>
-<blockquote><p>
-<i>Requires</i>:
-</p>
-<ul>
-<li><p><tt>alignment</tt> shall be a fundamental alignment value or an extended alignment value supported by
-the implementation in this context</p></li>
-</ul>
-</blockquote>
-<p>
-be changed to
-</p>
-<blockquote><p>
-<i>Requires</i>:
-</p>
-<ul>
-<li><p><tt>alignment</tt> shall be a power of two</p></li>
-</ul>
-</blockquote>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit 20.7.5 [ptr.align] p2 as indicated:</p>
-
-<blockquote>
-<pre>
-void* align(std::size_t alignment, std::size_t size,
-  void*&amp; ptr, std::size_t&amp; space);
-</pre><blockquote>
-<p>
--1- [&hellip;]
-<p/>
--2- <i>Requires</i>:
-</p>
-<ul>
-<li><p>
-<tt>alignment</tt> shall be a <del>fundamental alignment value or an extended alignment value supported by
-the implementation in this context</del><ins>power of two</ins>
-</p></li>
-</ul>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2378"></a>2378. Behaviour of standard exception types</h3>
-<p><b>Section:</b> 18.6.2.1 [bad.alloc], 18.6.2.2 [new.badlength], 18.7.2 [bad.cast], 18.7.3 [bad.typeid], 18.8.2 [bad.exception] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Andy Sawyer <b>Opened:</b> 2014-03-31 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-I think we have an issue with the specification of some of the standard exception types. 
-In particular, several of them have default constructors with remarks to the effect that 
-"The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined". 
-(In some cases this is contradictory to a further specification of <tt>what()</tt>, which 
-is specified to return an implementation-defined NTBS.)
-</p>
-
-<p>
-<strong>Previous resolution from Andy [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Edit 18.6.2.1 [bad.alloc] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_alloc() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--3- <i>Remarks</i>: <del>The result of calling <tt>what()</tt> on the newly constructed object is 
-  implementation-defined</del><ins><tt>what()</tt> returns an implementation-defined NTBS</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.6.2.2 [new.badlength] p3 as indicated: [<i>Drafting note</i>: Added the Postcondition, since we don't 
-say anything else about <tt>bad_array_new_length::what()</tt> &mdash; <i>end of note</i>]</p>
-
-<blockquote>
-<pre>
-bad_array_new_length() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
--3- <i><del>Remarks</del><ins>Postcondition</ins></i>: <del>The result of calling <tt>what()</tt> on the newly constructed object is 
-  implementation-defined</del><ins><tt>what()</tt> returns an implementation-defined NTBS</ins>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.7.2 [bad.cast] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_cast() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.7.3 [bad.typeid] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_typeid() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.8.2 [bad.exception] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_exception() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-06-17, Rapperswil]</i></p>
-
-<p>
-Jonathan provides alternative wording.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-NJ: I don't know why we need the explict statement about <tt>what()</tt> here, since <tt>bad_array_new_length</tt> 
-already derives.<br/> 
-AM: yes.<br/> 
-NJ: Then "what()" is missing from the synopsis.<br/> 
-AM: Yes, that's an error and it needs to be added.
-<p/>
-Conclusion: Update the wording to add the missing entry in the synopsis. 
-<p/>
-AM: The issue needs another update; we need to add missing "Remarks". DK updates the paper.<br/> 
-AM: Any objections to "tentatively ready"? No objections. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Edit 18.6.2.1 [bad.alloc] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_alloc() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is 
-  implementation-defined.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.6.2.1 [bad.alloc] p5 as indicated:</p>
-
-<blockquote>
-<pre>
-virtual const char* what() const noexcept;
-</pre>
-<blockquote>
-<p>
--5- <i>Returns</i>: An implementation-defined NTBS.
-<p/>
-<ins>-?- <i>Remarks</i>: The message may be a null-terminated multibyte string (17.5.2.1.4.2), suitable for conversion
-and display as a <tt>wstring</tt> (21.3, 22.4.1.4).</ins>
-</p>
-</blockquote>
-</blockquote>
-
-</li>
-
-<li><p>Edit class <tt>bad_array_new_length</tt> synopsis 18.6.2.2 [new.badlength] as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  class bad_array_new_length : public bad_alloc {
-  public:
-    bad_array_new_length() noexcept;
-    <ins>virtual const char* what() const noexcept;</ins>
-  };
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Edit 18.6.2.2 [new.badlength] as indicated:</p>
-
-<blockquote>
-<pre>
-bad_array_new_length() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is 
-  implementation-defined.</del>
-</p>
-</blockquote>
-<pre>
-<ins>virtual const char* what() const noexcept;</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Returns</i>: An implementation-defined NTBS.</ins>
-<p/>
-<ins>-?- <i>Remarks</i>: The message may be a null-terminated multibyte string (17.5.2.1.4.2), suitable for conversion
-and display as a <tt>wstring</tt> (21.3, 22.4.1.4).</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.7.2 [bad.cast] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_cast() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.7.3 [bad.typeid] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_typeid() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Edit 18.8.2 [bad.exception] p3 as indicated:</p>
-
-<blockquote>
-<pre>
-bad_exception() noexcept;
-</pre><blockquote>
-<p>
-[&hellip;]
-<p/>
-<del>-3- <i>Remarks</i>: The result of calling <tt>what()</tt> on the newly constructed object is implementation-defined.</del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2387"></a>2387. More nested types that must be accessible and unambiguous</h3>
-<p><b>Section:</b> 20.9.2 [func.require], 20.9.4 [refwrap] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.require">active issues</a> in [func.require].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.require">issues</a> in [func.require].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Further to <a href="lwg-defects.html#2299">2299</a> and <a href="lwg-defects.html#2361">2361</a>, 20.9.2 [func.require] p3 and 20.9.4 [refwrap] p3 and p4
-talk about member types without any mention of being accessible and unambiguous.
-</p>
-
-<p><i>[2014-06-05 Daniel provides wording]</i></p>
-
-
-<p><i>[2014-06-06 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.9.2 [func.require] p3 as indicated:</p>
-
-<blockquote><p>
--3- If a call wrapper (20.9.1) has a <i>weak result type</i> the type of its member type <tt>result_type</tt> is based on the
-type <tt>T</tt> of the wrapper's target object (20.9.1):
-</p>
-<ul>
-<li><p>if <tt>T</tt> is a pointer to function type, <tt>result_type</tt> shall be a synonym for the return type of <tt>T</tt>;</p></li>
-<li><p>if <tt>T</tt> is a pointer to member function, <tt>result_type</tt> shall be a synonym for the return type of <tt>T</tt>;</p></li>
-<li><p>if <tt>T</tt> is a class type <ins>and the qualified-id <tt>T::result_type</tt> is valid and denotes a type 
-(14.8.2 [temp.deduct])</ins><del>with a member type <tt>result_type</tt></del>, then <tt>result_type</tt> shall be a synonym for
-<tt>T::result_type</tt>;</p></li> 
-<li><p>otherwise <tt>result_type</tt> shall not be defined.</p></li>
-</ul>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.4 [refwrap] p3+p4 as indicated:</p>
-
-<blockquote>
-<p>
--3- The template instantiation <tt>reference_wrapper&lt;T&gt;</tt> shall define a nested type named <tt>argument_type</tt> as a
-synonym for <tt>T1</tt> only if the type <tt>T</tt> is any of the following:
-</p>
-<ul>
-<li><p>a function type or a pointer to function type taking one argument of type <tt>T1</tt></p></li>
-<li><p>a pointer to member function <tt>R T0::f</tt> <i>cv</i> (where  <i>cv</i> represents the member function_s cv-qualifiers);
-the type <tt>T1</tt> is <i>cv</i> <tt>T0*</tt></p></li> 
-<li><p>a class type <ins>where the qualified-id <tt>T::argument_type</tt> is valid and denotes a type 
-(14.8.2 [temp.deduct])</ins><del>with a member type <tt>argument_type</tt></del>; the type <tt>T1</tt> is 
-<tt>T::argument_type</tt>.</p></li>
-</ul>
-<p>
--4- The template instantiation <tt>reference_wrapper&lt;T&gt;</tt> shall define two nested types named <tt>first_argument_type</tt> 
-and <tt>second_argument_type</tt> as synonyms for <tt>T1</tt> and <tt>T2</tt>, respectively, only if the type <tt>T</tt> is any of the
-following:
-</p>
-<ul>
-<li><p>a function type or a pointer to function type taking two arguments of types <tt>T1</tt> and <tt>T2</tt></p></li>
-<li><p>a pointer to member function <tt>R T0::f(T2)</tt> <i>cv</i> (where <i>cv</i> represents the member function's cv-qualifiers);
-the type <tt>T1</tt> is <i>cv</i> <tt>T0*</tt></p></li> 
-<li><p>a class type <ins>where the qualified-ids <tt>T::first_argument_type</tt> and <tt>T::second_argument_type</tt> are both valid 
-and both denote types (14.8.2 [temp.deduct])</ins><del>with member types <tt>first_argument_type</tt> and 
-<tt>second_argument_type</tt></del>; the type <tt>T1</tt> is <tt>T::first_argument_type</tt><del>.</del> and the type <tt>T2</tt> is 
-<tt>T::second_argument_type</tt>.</p></li>
-</ul>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2389"></a>2389. [fund.ts] <tt>function::operator=</tt> is over-specified and handles allocators incorrectly</h3>
-<p><b>Section:</b> X [mods.func.wrap] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2014-05-23 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#mods.func.wrap">issues</a> in [mods.func.wrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-This issue against the TS is similar to LWG <a href="lwg-closed.html#2386">2386</a>, which is against the standard. The Effects clauses for the assignment 
-operator for class template <tt>function</tt> are written as code that constructs a temporary <tt>function</tt> and then swaps it 
-with <tt>*this</tt>. 
-The intention appears to be that assignment should have the strong exception guarantee, i.e., <tt>*this</tt> is not modified if 
-an exception is thrown. The description in the standard is incorrect when <tt>*this</tt> was originally constructed using an 
-allocator. The TS attempts to correct the problem, but the correction is incomplete.
-<p/>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html#mods.func.wrap">The wording in the TS</a> uses 
-<tt>get_memory_resource()</tt> to construct a temporary <tt>function</tt> object with the same allocator as the left-hand size 
-(lhs) of the assignment. The intended result of using this pattern was that the allocator for <tt>*this</tt> would be unchanged, 
-but it doesn't quite work. The problem is that the allocator returned by <tt>get_memory_resource()</tt> is not the same type as 
-the type-erased allocator used to construct the <tt>function</tt> object, but rather a type-erased distillation of that type that 
-is insufficient for making a true copy of the allocator. The rules for type-erased allocators in the TS 
-(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html#memory.type.erased.allocator">[memory.type.erased.allocator]</a>) 
-specify that the lifetime of the object returned by <tt>get_memory_resource()</tt> is sometimes tied to the lifetime of <tt>*this</tt>, 
-which might cause the (single copy of) the allocator to be destroyed if the <tt>swap</tt> operation destroys and reconstructs <tt>*this</tt>, 
-as some implementations do (and are allowed to do).
-<p/>
-The desired behavior is that assignment would leave the allocator of the lhs unchanged. The way to achieve this behavior is to 
-construct the temporary <tt>function</tt> using the original allocator. Unfortunately, we cannot describe the desired behavior in 
-pure code, because <tt>get_memory_resource()</tt> does not really name the type-erased allocator, as mentioned above. The PR below, 
-therefore, uses pseudo-code, inventing a fictitious <tt><i>ALLOCATOR_OF</i>(f)</tt> expression that evaluates to the actual allocator 
-type, even if that allocator was type erased. I have implemented this PR successfully.
-</p>
-
-<p><i>[2014-06-21, Rapperswil]</i></p>
-
-<p>
-Apply to Library Fundamentals TS (after removing the previous "Throws: Nothing" element to prevent an editorial conflict with
-<a href="lwg-defects.html#2401">2401</a>).
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html">N3908</a>.</p>
-
-<ol>
-<li><p>Change in [mods.func.wrap] in the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html#mods.func.wrap">Library TS</a> 
-as indicated:
-</p>
-<blockquote>
-<p>
-<ins>In the following descriptions, let <tt><i>ALLOCATOR_OF</i>(f)</tt> be the allocator specified in the construction of <tt>function</tt> 
-<tt>f</tt>, or <tt>allocator&lt;char&gt;()</tt> if no allocator was specified.</ins>
-</p>
-<pre>
-function&amp; operator=(const function&amp; f);
-</pre>
-<blockquote>
-<p>
--5- <i>Effects</i>: <tt>function(allocator_arg, <del>get_memory_resource()</del><ins><i>ALLOCATOR_OF</i>(*this)</ins>, f).swap(*this);</tt>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-function&amp; operator=(function&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
--8- <i>Effects</i>: <tt>function(allocator_arg, <del>get_memory_resource()</del><ins><i>ALLOCATOR_OF</i>(*this)</ins>, std::move(f)).swap(*this);</tt>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-function&amp; operator=(nullptr_t);
-</pre>
-<blockquote>
-<p>
--11- <i>Effects</i>: If <tt>*this != NULL</tt>, destroys the target of <tt>this</tt>.
-<p/>
--12- <i>Postconditions</i>: <tt>!(*this)</tt>. <ins>The memory resource returned by <tt>get_memory_resource()</tt> after the assignment 
-is equivalent to the memory resource before the assignment. [<i>Note</i>: the address returned by <tt>get_memory_resource()</tt> 
-might change &mdash; <i>end note</i>]</ins>
-<p/>
--13- <i>Returns</i>: <tt>*this</tt>  
-</p>
-</blockquote>
-<pre>
-template&lt;class F&gt; function&amp; operator=(F&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
--15- <i>Effects</i>: <tt>function(allocator_arg, <del>get_memory_resource()</del><ins><i>ALLOCATOR_OF</i>(*this)</ins>, 
-std::forward&lt;F&gt;(f)).swap(*this);</tt>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-<pre>
-template&lt;class F&gt; function&amp; operator=(reference_wrapper&lt;F&gt; f);
-</pre>
-<blockquote>
-<p>
--18- <i>Effects</i>: <tt>function(allocator_arg, <del>get_memory_resource()</del><ins><i>ALLOCATOR_OF</i>(*this)</ins>, f).swap(*this);</tt>
-<p/>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2390"></a>2390. [fund.ts] Invocation types and rvalues</h3>
-<p><b>Section:</b> X [mods.func.wrap] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Michael Spertus <b>Opened:</b> 2014-05-26 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#mods.func.wrap">issues</a> in [mods.func.wrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-<tt>invocation_type</tt> falls short of its stated goals in the following case. Using the notation of 
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3866.html">Invocation type traits</a>, 
-consider
-</p>
-<blockquote>
-<pre>
-void f(int const&amp; i);
-more_perfect_forwarding_async(f, int(7)); // Oops. Dangling reference because rvalue gone when async runs
-</pre>
-</blockquote>
-<p>
-This was always the advertised intent of the proposal, but while the language reflects this for the first parameter in the 
-case of a member pointer, it failed to include corresponding language for other parameters.
-</p>
-
-<p><i>[2014-06-18, Rapperswil]</i></p>
-
-<p>
-Mike Spertus, Richard Smith, Jonathan Wakely, and Jeffrey Yasskin suggest improved wording.
-</p>
-
-<strong>Previous resolution [SUPERSEDED]:</strong>
-<p/>
-<blockquote class="note">
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html">N3908</a>.</p>
-
-<ol>
-<li><p>Change Table 3, [meta.trans.other] in the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3908.html#meta.trans.other">Library TS</a> 
-as indicated:
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 3 &mdash; Other type transformations</caption>
-<tr>
-<th align="center">Template</th>
-<th align="center">Condition</th>
-<th align="center">Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class Fn, class... ArgTypes&gt;<br/>
-struct invocation_type&lt;Fn(ArgTypes...)&gt;;</tt>
-</td>
-<td>
-<tt>Fn</tt> and all types in the parameter pack <tt>ArgTypes</tt><br/>
-shall be complete types, (possibly <i>cv</i>-qualified) <tt>void</tt>,<br/> 
-or arrays of unknown bound. 
-</td>
-<td>
-If <ins><tt>A1, A2,...</tt> denotes <tt>ArgTypes...</tt> and</ins><br/> 
-<tt>raw_invocation_type&lt;Fn(ArgTypes...)&gt;::type</tt><br/> 
-is the function type <tt>R(T1, T2, ...)</tt> <ins>then let <tt>Ui</tt> be<br/> 
-<tt>decay&lt;Ai&gt;::type</tt> if <tt>Ai</tt> is an rvalue otherwise <tt>Ti</tt>.<br/> 
-If</ins> <del>and</del> <tt>Fn</tt> is a pointer to member type and <tt>T1</tt> is<br/>
-an rvalue reference, then <ins>let <tt>U1</tt> be</ins> <tt><del>R(</del>decay&lt;T1&gt;::type<del>,<br/> 
-T2, ...)</del></tt>.<br/> 
-<del>Otherwise, <tt>raw_invocation_type&lt;Fn(ArgTypes...)&gt;::type</tt></del><br/>
-<ins>The member typedef <tt>type</tt> shall equal <tt>R(U1, U2, ...)</tt></ins>.
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2013-06-21 Rapperswil]</i></p>
-
-<p>
-Accept for Fundamentals TS Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html">N4023</a>.</p>
-
-<ol>
-<li><p>Change Table 3, [meta.trans.other] in the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html#meta.trans.other">Library TS</a> 
-as indicated:
-</p>
-<blockquote>
-<table border="1">
-<caption>Table 3 &mdash; Other type transformations</caption>
-<tr>
-<th align="center">Template</th>
-<th align="center">Condition</th>
-<th align="center">Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class Fn, class... ArgTypes&gt;<br/>
-struct invocation_type&lt;Fn(ArgTypes...)&gt;;</tt>
-</td>
-<td>
-<tt>Fn</tt> and all types in the parameter pack <tt>ArgTypes</tt><br/>
-shall be complete types, (possibly <i>cv</i>-qualified) <tt>void</tt>,<br/> 
-or arrays of unknown bound. 
-</td>
-<td>
-<ins>
-The nested typedef <tt>invocation_type&lt;Fn(ArgTypes...)&gt;::type</tt><br/> 
-shall be defined as follows. If<br/>
-<tt>raw_invocation_type&lt;Fn(ArgTypes...)&gt;::type</tt><br/> 
-does not exist, there shall be no member typedef <tt>type</tt>. Otherwise:<br/>
-<ul>
-<li><p><ins>Let <tt>A1, A2,</tt> &hellip; denote <tt>ArgTypes...</tt></ins></p></li>
-<li><p><ins>Let <tt>R(T1, T2, &hellip;)</tt> denote<br/>
-<tt>raw_invocation_type_t&lt;Fn(ArgTypes...)&gt;</tt></ins></p></li>
-<li><p><ins>Then the member typedef <tt>type</tt> shall name the function<br/>
-type <tt>R(U1, U2, &hellip;)</tt> where <tt>Ui</tt> is <tt>decay_t&lt;Ai&gt;</tt><br/> 
-if <tt>declval&lt;Ai&gt;()</tt> is an rvalue otherwise <tt>Ti</tt>.</ins></p></li>
-</ul>
-</ins>
-<del>If <tt>raw_invocation_type&lt;Fn(ArgTypes...)&gt;::type</tt><br/> 
-is the function type <tt>R(T1, T2, &hellip;)</tt> <br/> 
-and <tt>Fn</tt> is a pointer to member type and <tt>T1</tt> is<br/>
-an rvalue reference, then <tt>R(decay&lt;T1&gt;::type,<br/> 
-T2, &hellip;)</tt>.<br/> 
-Otherwise, <tt>raw_invocation_type&lt;Fn(ArgTypes...)&gt;::type</tt>.<br/></del>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2395"></a>2395. [fund.ts] <i>Preconditions:</i> is defined nowhere</h3>
-<p><b>Section:</b> X [mods.func.wrap], X [memory.resource.priv], X [memory.polymorphic.allocator.ctor], X [memory.polymorphic.allocator.mem], X [memory.resource.pool.ctor], X [memory.resource.monotonic.buffer.ctor] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2014-06-09 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#mods.func.wrap">issues</a> in [mods.func.wrap].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-
-<p>
-This element has been introduced by <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3916.pdf">N3916</a>, 
-but the standard does not define it. The standard defines <i>Requires:</i> to indicate a precondition 
-(17.5.1.4 [structure.specifications] p3).
-<p/>
-<em>Proposed wording</em>:
-<p/>
-Substitute all <i>Preconditions:</i> with <i>Requires:</i>.
-</p>
-
-<p><i>[2013-06-21 Rapperswil]</i></p>
-
-<p>
-Accept for Fundamentals TS Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4023.html">N4023</a>.</p>
-
-<ol>
-<li><p>Substitute all <i>Preconditions:</i> with <i>Requires:</i>.</p></li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2396"></a>2396. <tt>underlying_type</tt> doesn't say what to do for an incomplete enumeration type</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-06-12 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider:
-</p>
-<blockquote><pre>
-enum E {
-  e = std::underlying_type&lt;E&gt;::type(1)
-};
-</pre></blockquote>
-<p>
-Clearly this should be ill-formed, but the library section doesn't appear to ban it. Suggestion:
-<p/>
-Change in 20.10.7.6 [meta.trans.other] Table 57:
-</p>
-<blockquote>
-<p>
-Template: <tt>template&lt;class T&gt; struct underlying_type;</tt>
-<p/>
-Condition: <tt>T</tt> shall be <ins>a complete</ins> <del>an</del> enumeration type (7.2)
-<p/>
-Comments: [&hellip;]
-</p>
-</blockquote>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change Table 57 &mdash; "Other transformations" as indicated:</p></li>
-
-<blockquote>
-<table border="1">
-<caption>Table 3 &mdash; Other type transformations</caption>
-<tr>
-<th align="center">Template</th>
-<th align="center">Condition</th>
-<th align="center">Comments</th>
-</tr>
-
-<tr>
-<td colspan="3" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>template &lt;class T&gt;<br/>
-struct underlying_type;</tt>
-</td>
-<td>
-T shall be <ins>a complete</ins> <del>an</del> enumeration type (7.2)
-</td>
-<td align="center">
-[&hellip;]
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2397"></a>2397. <tt>map&lt;K, V&gt;::emplace</tt> and explicit <tt>V</tt> constructors</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Peter Dimov <b>Opened:</b> 2014-06-12 <b>Last modified:</b> 2015-05-05</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Please consider the following example:
-</p>
-<blockquote><pre>
-#include &lt;map&gt;
-#include &lt;atomic&gt;
-
-int main()
-{
-   std::map&lt;int, std::atomic&lt;int&gt;&gt; map_;
-
-   map_.emplace(1, 0);  // <span style="color:#C80000;font-weight:bold">fail</span>
-   map_.emplace(1);     // <span style="color:#C80000;font-weight:bold">fail</span>
-   map_.emplace(1, {}); // <span style="color:#C80000;font-weight:bold">fail</span>
-
-   map_.emplace(std::piecewise_construct,
-       std::tuple&lt;int&gt;(1), std::tuple&lt;>()); // <span style="color:#006600;font-weight:bold">OK</span>
-}
-</pre></blockquote>
-<p>
-The first three calls represent attempts by an ordinary programmer (in which role I appear today) to construct 
-a map element. Since <tt>std::atomic&lt;int&gt;</tt> is non-copyable and immovable, I was naturally drawn to 
-<tt>emplace()</tt> because it constructs in-place and hence doesn't need to copy or move. The logic behind the 
-attempts was that <tt>K=int</tt> would be constructed from '<tt>1</tt>', and <tt>V=std::atomic&lt;int&gt;</tt> would be 
-(directly) constructed by '<tt>0</tt>', default constructed, or constructed by '<tt>{}</tt>'.
-<p/>
-Yet none of the obvious attempts worked.
-<p/>
-I submit that at least two of the three ought to have worked, and that we have therefore a defect in either 
-<tt>map::emplace</tt> or <tt>pair</tt>.
-<p/>
-Ville:
-<p/>
-There exists a related <a href="http://cplusplus.github.io/EWG/ewg-toc.html#114">EWG issue</a> for this.
-<p/>
-Daniel:
-<p/>
-If the proposal N4387 would be accepted, it would solve the first problem mentioned above.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-AM: I think Peter's expectation is misguided that the second and third "//fail" cases should work.<br/> 
-DK: Howard's paper [note: which hasn't been written yet] will make the second case work... AM: ...but 
-the third one will never work without core changes.
-<p/>
-Case 1 is solved by DK's paper, cases 2 and 3 are not defects; at best they are extensions. 
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: think this is covered with N4387<br/>
-MC: this was accepted in Cologne<br/>
-STL: only want to fix the first emplace<br/>
-MC: leave alone and mark as closed by N4387<br/>
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-Resolved by acceptance of <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4387.html">N4387</a>.
-</p>
-
-
-
-
-
-<hr>
-<h3><a name="2399"></a>2399. <tt>shared_ptr</tt>'s constructor from <tt>unique_ptr</tt> should be constrained</h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Consider the following code:
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;memory&gt;
-#include &lt;string&gt;
-
-using namespace std;
-
-void meow(const shared_ptr&lt;int&gt;&amp; sp) {
-  cout &lt;&lt; "int: " &lt;&lt; *sp &lt;&lt; endl;
-}
-
-void meow(const shared_ptr&lt;string&gt;&amp; sp) {
-  cout &lt;&lt; "string: " &lt;&lt; *sp &lt;&lt; endl;
-}
-
-int main() {
-  meow(make_unique&lt;int&gt;(1729));
-  meow(make_unique&lt;string&gt;("kitty"));
-}
-</pre></blockquote>
-<p>
-This fails to compile due to ambiguous overload resolution, but we can easily make this work. (Note: <tt>shared_ptr</tt>'s 
-constructor from <tt>auto_ptr</tt> is also affected, but I believe that it's time to remove <tt>auto_ptr</tt> completely.)
-</p>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.8.2.2.1 [util.smartptr.shared.const] around p33 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r);
-</pre>
-<p>
-<ins>-?- <i>Remark</i>: This constructor shall not participate in overload resolution unless <tt>unique_ptr&lt;Y, D&gt;::pointer</tt> 
-is convertible to <tt>T*</tt>.</ins>
-<p/>
--33- <i>Effects</i>: Equivalent to <tt>shared_ptr(r.release(), r.get_deleter())</tt> when <tt>D</tt> is not a reference type,
-otherwise <tt>shared_ptr(r.release(), ref(r.get_deleter()))</tt>.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2400"></a>2400. <tt>shared_ptr</tt>'s <tt>get_deleter()</tt> should use <tt>addressof()</tt></h3>
-<p><b>Section:</b> 20.8.2.2.10 [util.smartptr.getdeleter] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.getdeleter">issues</a> in [util.smartptr.getdeleter].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The Standard Library should consistently use <tt>addressof()</tt> to defend itself against overloaded <tt>operator&amp;()</tt>.
-<p/>
-While we're in the neighbourhood, we should editorially change <tt>0</tt> to <tt>nullptr</tt>.
-</p>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.8.2.2.10 [util.smartptr.getdeleter] as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class D, class T&gt; get_deleter(const shared_ptr&lt;T&gt;&amp; p) noexcept;
-</pre>
-<p>
--1- <i>Returns</i>: If <tt>p</tt> owns a deleter <tt>d</tt> of type cv-unqualified <tt>D</tt>, returns 
-<tt><del>&amp;</del><ins>std::addressof(</ins>d<ins>)</ins></tt>; 
-otherwise returns <tt><del>0</del><ins>nullptr</ins></tt>. [&hellip;]
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2401"></a>2401. <tt>std::function</tt> needs more <tt>noexcept</tt></h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-There are two issues here:
-</p>
-<ol>
-<li><p><tt>std::function</tt>'s constructor from <tt>nullptr_t</tt> is marked as <tt>noexcept</tt>, but its assignment operator 
-from <tt>nullptr_t</tt> isn't. This assignment can and should be marked as <tt>noexcept</tt>.</p></li>
-<li><p><tt>std::function</tt>'s comparisons with <tt>nullptr_t</tt> are marked as <tt>noexcept</tt> in two out of three places.</p></li>
-</ol>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.9 [function.objects] p2, header <tt>&lt;functional&gt;</tt> synopsis, as indicated:</p>
-
-<blockquote>
-<pre>
-namespace std {
-  [&hellip;]
-  <i>// 20.9.11 polymorphic function wrappers:</i>
-  [&hellip;]
-  template&lt;class R, class... ArgTypes&gt;
-  bool operator==(const function&lt;R(ArgTypes...)&gt;&amp;, nullptr_t) <ins>noexcept</ins>;
-  template&lt;class R, class... ArgTypes&gt;
-  bool operator==(nullptr_t, const function&lt;R(ArgTypes...)&gt;&amp;) <ins>noexcept</ins>;
-  template&lt;class R, class... ArgTypes&gt;
-  bool operator!=(const function&lt;R(ArgTypes...)&gt;&amp;, nullptr_t) <ins>noexcept</ins>;
-  template&lt;class R, class... ArgTypes&gt;
-  bool operator!=(nullptr_t, const function&lt;R(ArgTypes...)&gt;&amp;) <ins>noexcept</ins>;
-  [&hellip;]
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.12.2 [func.wrap.func], class template <tt>function</tt> synopsis, as indicated:</p>
-
-<blockquote>
-<pre>
-[&hellip;]
-<i>// 20.9.11.2.1, construct/copy/destroy:</i>
-[&hellip;]
-function&amp; operator=(nullptr_t) <ins>noexcept</ins>;
-[&hellip;]
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.1 [func.wrap.func.con] before p16 as indicated:</p>
-
-<blockquote>
-<pre>
-function&amp; operator=(nullptr_t) <ins>noexcept</ins>;
-</pre>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2403"></a>2403. <tt>stof()</tt> should call <tt>strtof()</tt> and <tt>wcstof()</tt></h3>
-<p><b>Section:</b> 21.5 [string.conversions] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#string.conversions">issues</a> in [string.conversions].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>stof()</tt> is currently specified to call <tt>strtod()</tt>/<tt>wcstod()</tt> (which converts the given string to 
-<tt>double</tt>) and then it's specified to convert that <tt>double</tt> to <tt>float</tt>. This performs rounding twice, 
-which introduces error. Here's an example written up by James McNellis:
-<p/>
-Consider the following number <tt>X</tt>:
-</p>
-<blockquote>
-<pre>
-1.999999821186065729339276231257827021181583404541015625 (X)
-</pre>
-</blockquote>
-<p>
-This number is exactly representable in binary as:
-</p>
-<blockquote>
-<pre>
-1.111111111111111111111101000000000000000000000000000001
-* ^1st                  ^23rd                        ^52nd
-</pre>
-</blockquote>
-<p>
-I've marked the 23rd and 52nd fractional bits. These are the least significant bits for <tt>float</tt> and <tt>double</tt>, 
-respectively.
-<p/>
-If we convert this number directly to <tt>float</tt>, we take the 23 most significant bits:
-</p>
-<blockquote>
-<pre>
-1.11111111111111111111110
-</pre>
-</blockquote>
-<p>
-The next bit is a one and the tail is nonzero (the 54th fractional bit is a one), so we round up. This gives us the correctly 
-rounded result:
-</p>
-<blockquote>
-<pre>
-1.11111111111111111111111
-</pre>
-</blockquote>
-<p>
-So far so good. But... If we convert <tt>X</tt> to <tt>double</tt>, we take the 52 most significant bits:
-</p>
-<blockquote>
-<pre>
-1.1111111111111111111111010000000000000000000000000000 (Y)
-</pre>
-</blockquote>
-<p>
-The next bit is a zero, so we round down (truncating the value). If we then convert <tt>Y</tt> to <tt>float</tt>, we take 
-its 23 most significant bits:
-</p>
-<blockquote>
-<pre>
-1.11111111111111111111110
-</pre>
-</blockquote>
-<p>
-The next bit is a one and the tail is zero, so we round to even (leaving the value unchanged). This is off by 1ulp from the 
-correctly rounded result.
-</p>
-
-<p><i>[2014-06 Rapperswil]</i></p>
-
-<p>
-Marshall Clow will look at this.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 21.5 [string.conversions] p4+p6 as indicated:</p>
-
-<blockquote>
-<pre>
-float stof(const string&amp; str, size_t* idx = 0);
-double stod(const string&amp; str, size_t* idx = 0);
-long double stold(const string&amp; str, size_t* idx = 0);
-</pre>
-<blockquote>
-<p>
--4- <i>Effects</i>: <del>the first two</del><ins>These</ins> functions call <ins><tt>strtof(str.c_str(), ptr)</tt>,</ins> 
-<tt>strtod(str.c_str(), ptr)</tt><ins>,</ins> and <del>the third function calls</del> <tt>strtold(str.c_str(), ptr)</tt><ins>, 
-respectively</ins>. Each function returns the converted result, if any. [&hellip;]
-<p/>
-[&hellip;]
-<p/>
--6- <i>Throws</i>: <tt>invalid_argument</tt> if <ins><tt>strtof</tt>,</ins> <tt>strtod</tt><ins>,</ins> or <tt>strtold</tt> reports 
-that no conversion could be performed. Throws <tt>out_of_range</tt> if <ins><tt>strtof</tt>,</ins> <tt>strtod</tt><ins>,</ins> or 
-<tt>strtold</tt> sets <tt>errno</tt> to <tt>ERANGE</tt> or if the converted value is outside the range of representable 
-values for the return type.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 21.5 [string.conversions] p11+p13 as indicated:</p>
-
-<blockquote>
-<pre>
-float stof(const wstring&amp; str, size_t* idx = 0);
-double stod(const wstring&amp; str, size_t* idx = 0);
-long double stold(const wstring&amp; str, size_t* idx = 0);
-</pre>
-<blockquote>
-<p>
--11- <i>Effects</i>: <del>the first two</del><ins>These</ins> functions call <ins><tt>wcstof(str.c_str(), ptr)</tt>,</ins> 
-<tt>wcstod(str.c_str(), ptr)</tt><ins>,</ins> and <del>the third function calls</del> <tt>wcstold(str.c_str(), ptr)</tt><ins>, 
-respectively</ins>. Each function returns the converted result, if any. [&hellip;]
-<p/>
-[&hellip;]
-<p/>
--13- <i>Throws</i>: <tt>invalid_argument</tt> if <ins><tt>wcstof</tt>,</ins> <tt>wcstod</tt><ins>,</ins> or <tt>wcstold</tt> 
-reports that no conversion could be performed. Throws <tt>out_of_range</tt> if <ins><tt>wcstof</tt>,</ins> <tt>wcstod</tt><ins>,</ins> 
-or <tt>wcstold</tt> sets <tt>errno</tt> to <tt>ERANGE</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2404"></a>2404. <tt>mismatch()</tt>'s complexity needs to be updated</h3>
-<p><b>Section:</b> 25.2.10 [mismatch] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3671.html">N3671</a> updated the complexities of 
-<tt>equal()</tt> and <tt>is_permutation()</tt>, but not <tt>mismatch()</tt>.
-</p>
-
-<p><i>[2014-06-16 Rapperswil]</i></p>
-
-<p>
-Move to Ready
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 25.2.10 [mismatch] p3 as indicated:</p>
-
-<blockquote>
-<p>
--3- <i>Complexity</i>: At most <tt><ins>min(</ins>last1 - first1<ins>, last2 - first2)</ins></tt> applications of the 
-corresponding predicate.
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2406"></a>2406. <tt>negative_binomial_distribution</tt> should reject <tt>p == 1</tt></h3>
-<p><b>Section:</b> 26.5.8.3.4 [rand.dist.bern.negbin] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-26.5.8.3.4 [rand.dist.bern.negbin] p2 requires "<tt>0 &lt; p &lt;= 1</tt>". Consider what happens when <tt>p == 1</tt>.  
-The discrete probability function specified by p1 involves "<tt>* p^k * (1 - p)^i</tt>". For <tt>p == 1</tt>, this is 
-"<tt>* 1^k * 0^i</tt>", so every integer <tt>i &gt;= 0</tt> is produced with zero probability. (Let's avoid thinking about 
-<tt>0^0</tt>.)
-<p/>
-<a href="http://en.wikipedia.org/wiki/Negative_binomial_distribution">Wikipedia</a> states that <tt>p</tt> must be within 
-<tt>(0, 1)</tt>, exclusive on both sides.
-</p>
-
-<strong>Previous resolution [SUPERSEDED]:</strong>
-<blockquote class="note">
-<ol>
-<li><p>Change 26.5.8.3.4 [rand.dist.bern.negbin] p2 as indicated: [<i>Drafting note</i>: This should be read as: Replace the 
-symbol "<tt>&le;</tt>" by "<tt>&lt;</tt>" &mdash; <i>end drafting note</i>]</p>
-
-<blockquote>
-<pre>
-explicit negative_binomial_distribution(IntType k = 1, double p = 0.5);
-</pre>
-<blockquote>
-<p>
--2- <i>Requires</i>: <tt>0 &lt; p <del>&le;</del><ins>&lt;</ins> 1</tt> and <tt>0 &lt; k</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-11 Urbana]</i></p>
-
-<p>
-SG6 suggests better wording.
-</p>
-
-<p><i>[2014-11-08 Urbana]</i></p>
-
-<p>
-Moved to Ready with the node.
-</p>
-<p>
-There remains concern that the constructors are permitting
-values that may (or may not) be strictly outside the domain
-of the function, but that is a concern that affects the
-design of the random number facility as a whole, and should
-be addressed by a paper reviewing and addressing the whole
-clause, not picked up in the issues list one distribution
-at a time.  It is still not clear that such a paper would be
-uncontroversial.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4140.</p>
-
-<ol>
-<li><p>Add a note after paragraph 1 before the synopsis in 26.5.8.3.4 [rand.dist.bern.negbin]:</p>
-
-<blockquote>
-<p>
-A <tt>negative_binomial_distribution</tt> random number distribution produces random integers 
-<math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>i</mi><mo>&ge;</mo><mn>0</mn>
-</math>
-distributed according to the discrete probability function
-</p>
-<blockquote>
-<p>
-<math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>|</mo><mi>k</mi><mo>,</mo><mi>p</mi><mo>)</mo></mrow>
-<mo>=</mo>
-<mrow>
-<mfenced>
-<mfrac linethickness="0">
-<mrow><mi>k</mi> <mo>+</mo> <mi>i</mi> <mo>-</mo> <mn>1</mn></mrow>
-<mi>i</mi>
-</mfrac>
-</mfenced>
-<mo>&middot;</mo>
-<msup>
-<mi>p</mi>
-<mi>k</mi>
-</msup>
-<mo>&middot;</mo>
-<msup>
-<mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>p</mi><mo>)</mo></mrow>
-<mi>i</mi>
-</msup>
-</mrow>
-</math>
-.
-</p>
-</blockquote>
-<p>
-<ins>[<i>Note</i>: This implies that <math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>|</mo><mi>k</mi><mo>,</mo><mi>p</mi><mo>)</mo></mrow> 
-</math> is undefined when <tt>p == 1</tt>. &mdash; <i>end note</i>]</ins>
-</p>
-</blockquote>
-<blockquote class="note">
-<p>
-<i>Drafting note</i>: <math xmlns="http://www.w3.org/1998/Math/MathML">
-<mi>P</mi><mrow><mo>(</mo><mi>i</mi><mo>|</mo><mi>k</mi><mo>,</mo><mi>p</mi><mo>)</mo></mrow> 
-</math> should be in math font, and <tt>p == 1</tt> should be in code font.
-</p>
-</blockquote>
-
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2407"></a>2407. <tt>packaged_task(allocator_arg_t, const Allocator&amp;, F&amp;&amp;)</tt> should neither be constrained nor 
-<tt>explicit</tt></h3>
-<p><b>Section:</b> 30.6.9.1 [futures.task.members] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-06-14 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#futures.task.members">issues</a> in [futures.task.members].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG <a href="lwg-defects.html#2097">2097</a>'s resolution was slightly too aggressive. It constrained 
-<tt>packaged_task(allocator_arg_t, const Allocator&amp;, F&amp;&amp;)</tt>, but that's unnecessary because 
-<tt>packaged_task</tt> doesn't have any other three-argument constructors. Additionally, it's marked as 
-<tt>explicit</tt> (going back to WP N2798 when <tt>packaged_task</tt> first appeared) which is unnecessary.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-Back to LWG; not an SG1 issue.
-</p>
-
-<p><i>[2015-05 Lenexa]</i></p>
-
-<p>
-STL improves proposed wording by restoring the constraint again.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 30.6.9 [futures.task] p2, class template <tt>packaged_task</tt> as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class F&gt;
-explicit packaged_task(F&amp;&amp; f);
-template &lt;class F, class Allocator&gt;
-<del>explicit</del> packaged_task(allocator_arg_t, const Allocator&amp; a, F&amp;&amp; f);
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 30.6.9.1 [futures.task.members] as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class F&gt;
-packaged_task(F&amp;&amp; f);
-template &lt;class F, class Allocator&gt;
-<del>explicit</del> packaged_task(allocator_arg_t, const Allocator&amp; a, F&amp;&amp; f);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--3- <i>Remarks</i>: These constructors shall not participate in overload resolution if <tt>decay_t&lt;F&gt;</tt> 
-is the same type as <tt>std::packaged_task&lt;R(ArgTypes...)&gt;</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2408"></a>2408. SFINAE-friendly <tt>common_type/iterator_traits</tt> is missing in C++14</h3>
-<p><b>Section:</b> 20.10.7.6 [meta.trans.other], 24.4.1 [iterator.traits] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-06-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View other</b> <a href="lwg-index-open.html#meta.trans.other">active issues</a> in [meta.trans.other].</p>
-<p><b>View all other</b> <a href="lwg-index.html#meta.trans.other">issues</a> in [meta.trans.other].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-During the Rapperswil meeting the proposal <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4041.html">N4041</a>
-had been discussed and there seemed to be strong consensus to apply the SFINAE-friendly definitions
-that currently exist within the fundamentals-ts to the C++ Standard working draft. This issue requests this change to happen.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.10.7.6 [meta.trans.other] p3 as indicated:</p>
-
-<blockquote>
-<p>
--3- <ins>For the <tt>common_type</tt> trait applied to a parameter pack <tt>T</tt> of types, 
-the member <tt>type</tt> shall be either defined or not present as follows:</ins>
-<ul>
-<li><p><ins>If <tt>sizeof...(T)</tt> is zero, there shall be no member <tt>type</tt>.</ins></p></li>
-<li><p><ins>If <tt>sizeof...(T)</tt> is one, let <tt>T0</tt> denote the sole type comprising <tt>T</tt>. 
-The member typedef <tt>type</tt> shall denote the same type as <tt>decay_t&lt;T0&gt;</tt>.</ins></p></li>
-<li><p><ins>If <tt>sizeof...(T)</tt> is greater than one, let <tt>T1</tt>, <tt>T2</tt>, and <tt>R</tt>, 
-respectively, denote the first, second, and (pack of) remaining types comprising <tt>T</tt>. 
-[<i>Note</i>: <tt>sizeof...(R)</tt> may be zero. &mdash; <i>end note</i>] Finally, let <tt>C</tt> denote 
-the type, if any, of an unevaluated conditional expression (5.16 [expr.cond]) whose first operand is an arbitrary value 
-of type <tt>bool</tt>, whose second operand is an xvalue of type <tt>T1</tt>, and whose third operand is 
-an xvalue of type <tt>T2</tt>. If there is such a type <tt>C</tt>, the member typedef <tt>type</tt> shall 
-denote the same type, if any, as <tt>common_type_t&lt;C,R...&gt;</tt>. Otherwise, there shall be no member 
-<tt>type</tt>.</ins></p></li>
-</ul>
-<del>The nested typedef <tt>common_type::type</tt> shall be defined as follows:</del>
-</p>
-<blockquote>
-<pre>
-<del>template &lt;class ...T&gt; struct common_type;
-
-template &lt;class T&gt;
-struct common_type&lt;T&gt; {
-  typedef decay_t&lt;T&gt; type;
-};
-
-template &lt;class T, class U&gt;
-struct common_type&lt;T, U&gt; {
-  typedef decay_t&lt;decltype(true ? declval&lt;T&gt;() : declval&lt;U&gt;())&gt; type;
-};
-
-template &lt;class T, class U, class... V&gt;
-struct common_type&lt;T, U, V...&gt; {
-  typedef common_type_t&lt;common_type_t&lt;T, U&gt;, V...&gt; type;
-};</del>
-</pre>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 24.4.1 [iterator.traits] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- The template <tt>iterator_traits&lt;Iterator&gt;</tt> <del>is defined as</del><ins>shall have 
-the following as publicly accessible members, and have no other members, if and only if 
-<tt>Iterator</tt> has valid (14.8.2 [temp.deduct]) member types <tt>difference_type</tt>, 
-<tt>value_type</tt>, <tt>pointer</tt>, <tt>reference</tt>, and <tt>iterator_category</tt>; otherwise, 
-the template shall have no members:</ins>
-</p>
-<blockquote>
-<pre>
-<del>namespace std {
-  template&lt;class Iterator&gt; struct iterator_traits {</del>
-    typedef typename Iterator::difference_type difference_type;
-    typedef typename Iterator::value_type value_type;
-    typedef typename Iterator::pointer pointer;
-    typedef typename Iterator::reference reference;
-    typedef typename Iterator::iterator_category iterator_category;
-  <del>};
-}</del>
-</pre>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2409"></a>2409. [fund.ts] SFINAE-friendly <tt>common_type/iterator_traits</tt> should be removed from the fundamental-ts</h3>
-<p><b>Section:</b> X [mods.meta.trans.other], X [mods.iterator.traits] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-06-19 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-During the Rapperswil meeting the proposal <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4041.html">N4041</a>
-had been discussed and there seemed to be strong consensus to apply the SFINAE-friendly definitions
-that currently exist within the fundamentals-ts to the C++17 working draft. If this happens, the fundamentals-ts 
-needs to remove its own specification regarding these templates. This issue requests this change to happen.
-</p>
-
-<p><i>[2013-06-21 Rapperswil]</i></p>
-
-<p>
-Accept for Fundamentals TS Working Paper
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4023 in regard to fundamental-ts changes.</p>
-
-<ol>
-<li><p>In fundamental-ts, change Table 2 &mdash; "Significant features in this technical specification" as
-indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 2 &mdash; Significant features in this technical specification</caption>
-<tr>
-<th align="center">Doc.<br/>No.</th>
-<th align="center">Title</th>
-<th align="center">Primary<br/>Section</th>
-<th align="center">Macro Name Suffix</th>
-<th align="center">Value</th>
-<th align="center">Header</th>
-</tr>
-
-<tr>
-<td colspan="6" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<del>N3843</del><br/>
-</td>
-<td>
-<del>A SFINAE-<br/>Friendly<br/><tt>common_type</tt></del>
-</td>
-<td>
-<del>2.4 [mods.meta.trans.other]</del><br/>
-</td>
-<td>
-<del><tt>common_type_sfinae</tt></del>
-</td>
-<td>
-<del><tt>201402</tt></del>
-</td>
-<td>
-<del><tt>&lt;type_traits&gt;</tt></del><br/>
-</td>
-</tr>
-
-<tr>
-<td>
-<del>N3843</del><br/>
-</td>
-<td>
-<del>A SFINAE-<br/>Friendly<br/><tt>iterator_traits</tt></del>
-</td>
-<td>
-<del>2.5 [mods.iterator.traits]</del><br/>
-</td>
-<td>
-<del><tt>iterator_traits_sfinae</tt></del>
-</td>
-<td>
-<del><tt>201402</tt></del>
-</td>
-<td>
-<del><tt>&lt;iterator&gt;</tt></del><br/>
-</td>
-</tr>
-
-<tr>
-<td colspan="6" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-
-<li><p>In fundamental-ts, remove the existing sub-clause 2.4 [mods.meta.trans.other] in its entirety:</p>
-
-<p>
-<del><b>2.4 Changes to <tt>std::common_type</tt> [mods.meta.trans.other]</b></del>
-</p>
-<blockquote>
-<p>
-<del>-1- [&hellip;]</del>
-</p>
-</blockquote>
-
-</li>
-
-<li><p>In fundamental-ts, remove the existing sub-clause 2.5 [mods.iterator.traits] in its entirety:</p>
-
-<p>
-<del><b>2.5 Changes to <tt>std::iterator_traits</tt> [mods.iterator.traits]</b></del>
-</p>
-<blockquote>
-<p>
-<del>-1- [&hellip;]</del>
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2410"></a>2410. [fund.ts] <tt>shared_ptr&lt;array&gt;</tt>'s constructor from <tt>unique_ptr</tt> should be constrained</h3>
-<p><b>Section:</b> X [mods.util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jeffrey Yasskin <b>Opened:</b> 2014-06-16 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-The proposed resolution for LWG <a href="lwg-defects.html#2399">2399</a> doesn't apply cleanly to the Fundamentals TS, but the issue is still present.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-Unanimous consent. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4023 in regard to fundamental-ts changes.</p>
-
-<ol>
-<li><p>In fundamental-ts, change [mods.util.smartptr.shared.const] p34 as indicated:</p>
-
-<blockquote>
-<pre>
-template &lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r);
-</pre>
-<blockquote>
-<p>
--34- <i><del>Requires</del><ins>Remarks</ins></i>: <ins>This constructor shall not participate in overload resolution
-unless</ins> <tt>Y*</tt> <del>shall be</del><ins>is</ins> <i>compatible with</i> <tt>T*</tt>. 
-<p/>
--35- <i>Effects</i>: Equivalent to <tt>shared_ptr(r.release(), r.get_deleter())</tt> when <tt>D</tt> is not a reference type, 
-otherwise <tt>shared_ptr(r.release(), ref(r.get_deleter()))</tt>.
-<p/>
--36- <i>Exception safety</i>: If an exception is thrown, the constructor has no effect. 
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2411"></a>2411. <tt>shared_ptr</tt> is only contextually convertible to <tt>bool</tt></h3>
-<p><b>Section:</b> 20.8.2.2 [util.smartptr.shared] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-06-21 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#util.smartptr.shared">active issues</a> in [util.smartptr.shared].</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared">issues</a> in [util.smartptr.shared].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N3920 made this edit, which is correct but unrelated to the support for arrays:
-</p>
-<blockquote>
-<p>Change 20.7.2.2 [util.smartptr.shared] p2 as follows:</p>
-<blockquote>
-<p>
-Specializations of <tt>shared_ptr</tt> shall be <tt>CopyConstructible</tt>, <tt>CopyAssignable</tt>, and <tt>LessThanComparable</tt>, 
-allowing their use in standard containers. Specializations of <tt>shared_ptr</tt> shall be <ins>contextually</ins> convertible to 
-<tt>bool</tt>, allowing their use in boolean expressions and declarations in conditions. [&hellip;]
-</p>
-</blockquote>
-</blockquote>
-<p>
-That change is actually fixing a defect in the current wording and should be applied directly to the working paper, not just to the
-Library Fundamentals TS. The declarations of the conversion operator in 20.8.2.2 [util.smartptr.shared] and 
-20.8.2.2.5 [util.smartptr.shared.obs] are <tt>explicit</tt> which contradicts the "convertible to <tt>bool</tt>" statement. The
-intention is definitely for <tt>shared_ptr</tt> to only be contextually convertible to <tt>bool</tt>.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N3936.</p>
-
-<ol>
-<li><p>Change 20.8.2.2 [util.smartptr.shared] p2 as indicated:</p>
-
-<blockquote>
-<p>
--2- Specializations of <tt>shared_ptr</tt> shall be <tt>CopyConstructible</tt>, <tt>CopyAssignable</tt>, and <tt>LessThanComparable</tt>,
-allowing their use in standard containers. Specializations of <tt>shared_ptr</tt> shall be <ins>contextually</ins> convertible to 
-<tt>bool</tt>, allowing their use in boolean expressions and declarations in conditions. The template parameter <tt>T</tt> of
-<tt>shared_ptr</tt> may be an incomplete type.
-</p>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2415"></a>2415. Inconsistency between <tt>unique_ptr</tt> and <tt>shared_ptr</tt></h3>
-<p><b>Section:</b> 20.8.2.2.1 [util.smartptr.shared.const] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-07-03 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.const">issues</a> in [util.smartptr.shared.const].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>unique_ptr</tt> guarantees that it will not invoke its deleter if it stores
-a null pointer, which is useful for deleters that must not be called
-with a null pointer e.g.
-</p>
-<blockquote><pre>
-unique_ptr&lt;FILE, int(*)(FILE*)&gt; fptr(file, &amp;::fclose);
-</pre></blockquote>
-<p>
-However, <tt>shared_ptr</tt> does invoke the deleter if it owns a null pointer,
-which is a silent change in behaviour when transferring
-ownership from <tt>unique_ptr</tt> to <tt>shared_ptr</tt>. That means the following
-leads to undefined behaviour:
-</p>
-<blockquote><pre>
-std:shared_ptr&lt;FILE&gt; fp = std::move(fptr);
-</pre></blockquote>
-<p>
-Peter Dimov's suggested fix is to construct an empty <tt>shared_ptr</tt> from a
-<tt>unique_ptr</tt> that contains a null pointer.
-</p>
-
-<p><i>[2015-01-18 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on eight votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.8.2.2.1 [util.smartptr.shared.const] p29 as indicated:</p>
-<blockquote>
-<pre>
-template &lt;class Y, class D&gt; shared_ptr(unique_ptr&lt;Y, D&gt;&amp;&amp; r);
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--29- <i>Effects</i>: <ins>If <tt>r.get() == nullptr</tt>, equivalent to <tt>shared_ptr()</tt>. Otherwise, if <tt>D</tt> is
-not a reference type, equivalent to <tt>shared_ptr(r.release(), r.get_deleter())</tt>. Otherwise, equivalent to 
-<tt>shared_ptr(r.release(), ref(r.get_deleter()))</tt></ins><del>Equivalent to <tt>shared_ptr(r.release(), 
-r.get_deleter())</tt> when <tt>D</tt> is not a reference type, otherwise <tt>shared_ptr(r.release(), 
-ref(r.get_deleter()))</tt></del>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2416"></a>2416. [fund.ts] <tt>std::experimental::any allocator</tt> support is unimplementable</h3>
-<p><b>Section:</b> X [any.class] <b>Status:</b> <a href="lwg-active.html#Resolved">Resolved</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-06-16 <b>Last modified:</b> 2015-04-08</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#Resolved">Resolved</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-The allocator-extended copy constructor for <tt>any</tt> requires an
-arbitrary template parameter to be available in a type-erased context
-where the dynamic type of the contained object is known. This is not
-believed to be possible in C++.
-<p/>
-If the allocator-extended copy constructor cannot be defined it
-questions the usefulness of the other allocator-extended constructors.
-</p>
-
-<p><i>[Urbana, 2014-11]</i></p>
-
-<p>
-Resolved by paper <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4270">N4270</a>.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-
-
-
-
-<hr>
-<h3><a name="2418"></a>2418. [fund.ts] <tt>apply</tt> does not work with member pointers</h3>
-<p><b>Section:</b> X [tuple.apply] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Zhihao Yuan <b>Opened:</b> 2014-07-08 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-The definition of <tt>apply</tt> present in &sect;3.2.2 [tuple.apply] prevents this
-function template to be used with pointer to members type passed as the first argument.
-</p>
-<blockquote>
-<i>Effects:</i> 
-<p/>
-[&hellip;]
-<p/>
-<tt>return std::forward&lt;F&gt;(f)(std::get&lt;I&gt;(std::forward&lt;Tuple&gt;(t))...);</tt>
-</blockquote>
-<p>
-This makes this utility inconsistent with other standard library components and limits its usability.
-<p/>
-We propose to define its functionally in terms of <tt><i>INVOKE</i></tt>.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-DK: We should use the new <tt>std::invoke</tt>.<br/> 
-TK: Is this a defect?<br/> 
-AM: <tt>std::invoke</tt> goes into C++17, and this is a defect against a TS based on C++14. We can change this later, 
-but now leave it as INVOKE.<br/> 
-GR: The TS lets you have Editor's Notes, so leave a note to make that change for C++17.
-<p/>
-[&hellip;]
-<p/>
-GR: I can't see how we can assume this is part of the design. I cannot believe it was ever intended for this 
-design to exclude function pointers.<br/>  
-AM: I can give you the exact evolution: We had "apply" as an example explaining the usefulness of <tt>index_sequence</tt>. 
-Then someone looked at it and said, "why isn't this in the Standard". NJ to VV: Why are you against useful steps? 
-We are trying to converge on a consistent standard across multiple documents. The alternative is to reopen this 
-in a later discussion.<br/>  
-VV: All I said is that this is not defect, whether or not people like it.<br/>  
-AM: So you'd be fine with the issue, but not as a DR?<br/> 
-Straw poll: Who's happy to make this tentatively ready as a DR against the Fundamentals TS? 
-Lots of agreement, no opposition, 3 neutrals
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4081.html">N4081</a> 
-in regard to fundamental-ts changes.</p>
-
-<ol>
-<li><p>Edit &sect;3.2.2 [tuple.apply] paragraph 2:</p>
-
-<blockquote>
-<pre>
-template &lt;class F, class Tuple&gt;
-constexpr decltype(auto) apply(F&amp;&amp; f, Tuple&amp;&amp; t);
-</pre>
-<blockquote>
-<p>
--2- <i>Effects</i>: Given the exposition only function
-</p>
-<blockquote>
-<pre>
-template &lt;class F, class Tuple, size_t... I&gt;
-constexpr decltype(auto) apply_impl(  // <i>exposition only</i>
-    F&amp;&amp; f, Tuple&amp;&amp; t, index_sequence&lt;I...&gt;) {
-  return <ins><i>INVOKE</i>(</ins>std::forward&lt;F&gt;(f)<del>(</del><ins>, </ins>std::get&lt;I&gt;(std::forward&lt;Tuple&gt;(t))...);
-}
-</pre>
-<p>
-[&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2420"></a>2420. <tt>function&lt;void(ArgTypes...)&gt;</tt> does not discard the return value of the target object</h3>
-<p><b>Section:</b> 20.9.12.2 [func.wrap.func] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Agust&iacute;n Berg&eacute; <b>Opened:</b> 2014-07-12 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#func.wrap.func">active issues</a> in [func.wrap.func].</p>
-<p><b>View all other</b> <a href="lwg-index.html#func.wrap.func">issues</a> in [func.wrap.func].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>function&lt;void(ArgTypes...)&gt;</tt> should discard the return value of the target object. This behavior was 
-in the original proposal, and it was removed (accidentally?) by the resolution of LWG <a href="lwg-defects.html#870">870</a>.
-</p>
-
-<p>
-<strong>Previous resolution [SUPERSEDED]:</strong>
-</p>
-<blockquote class="note">
-<ol>
-<li><p>Edit 20.9.12.2 [func.wrap.func] paragraph 2:</p>
-
-<blockquote>
-<p>
-A callable object <tt>f</tt> of type <tt>F</tt> is <i>Callable</i> for argument types <tt>ArgTypes</tt> and return type 
-<tt>R</tt> if the expression <tt><i>INVOKE</i>(f, declval&lt;ArgTypes&gt;()...<del>, R</del>)</tt>, considered as an unevaluated 
-operand (Clause 5), is well formed (20.9.2 [func.require])<ins> and, if <tt>R</tt> is not <tt>void</tt>, implicitly 
-convertible to <tt>R</tt></ins>.
-</p>
-</blockquote>
-</li>
-</ol>
-</blockquote>
-
-<p><i>[2014-10-05 Daniel comments]</i></p>
-
-<p>
-This side-effect was indeed not intended by <a href="lwg-defects.html#870">870</a>.
-</p>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL provides improved wording. It replaces the current PR, and intentionally leaves 20.9.12.2 [func.wrap.func] 
-unchanged.
-<p/>
-Due to 5 [expr]/6, <tt>static_cast&lt;void&gt;</tt> is correct even when <tt>R</tt> is <tt>const void</tt>.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4431.</p>
-
-<ol>
-<li><p>Edit 20.9.2 [func.require] as depicted:</p>
-
-<blockquote>
-<p>
--2- Define <tt><i>INVOKE</i>(f, t1, t2, ..., tN, R)</tt> as <ins><tt>static_cast&lt;void&gt;(<i>INVOKE</i>(f, t1, t2, ..., tN))</tt> 
-if <tt>R</tt> is <i>cv</i> <tt>void</tt>, otherwise</ins> <tt><i>INVOKE</i>(f, t1, t2, ..., tN)</tt> implicitly converted 
-to <tt>R</tt>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.12.2.4 [func.wrap.func.inv] as depicted:</p>
-
-<blockquote>
-<pre>
-R operator()(ArgTypes... args) const;
-</pre>
-<blockquote>
-<p>
--1- <i><del>Effects</del><ins>Returns</ins></i>: <tt><i>INVOKE</i>(f, std::forward&lt;ArgTypes&gt;(args)..., R)</tt> (20.9.2), 
-where <tt>f</tt> is the target object (20.9.1) of <tt>*this</tt>.
-<p/>
-<del>-2- <i>Returns</i>: Nothing if <tt>R</tt> is <tt>void</tt>, otherwise the return value of <tt><i>INVOKE</i>(f, 
-std::forward&lt;ArgTypes&gt;(args)..., R)</tt>.</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2425"></a>2425. <tt>operator delete(void*, size_t)</tt> doesn't invalidate pointers sufficiently</h3>
-<p><b>Section:</b> 18.6.1 [new.delete] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-08-29 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#new.delete">issues</a> in [new.delete].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-18.6.1.1 [new.delete.single]/12 says:
-</p>
-<blockquote><p>
-<i>Requires</i>: <tt>ptr</tt> shall be a null pointer or its value shall be a value returned by an earlier call to the 
-(possibly replaced) <tt>operator new(std::size_t)</tt> or <tt>operator new(std::size_t,const std::nothrow_t&amp;)</tt> 
-which has not been invalidated by an intervening call to <tt>operator delete(void*)</tt>.
-</p></blockquote>
-<p>
-This should say:
-</p>
-<blockquote><p>
-[&hellip;] by an intervening call to <tt>operator delete(void*)</tt> <ins>or <tt>operator delete(void*, std::size_t)</tt></ins>.
-</p></blockquote>
-<p>
-Likewise at the end of 18.6.1.2 [new.delete.array]/11, <ins><tt>operator delete[](void*, std::size_t)</tt></ins>.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Change 18.6.1.1 [new.delete.single]p12 as indicated:</p>
-
-<blockquote>
-<p>
--12- <i>Requires</i>: <tt>ptr</tt> shall be a null pointer or its value shall be a value returned by an earlier call to the 
-(possibly replaced) <tt>operator new(std::size_t)</tt> or <tt>operator new(std::size_t,const std::nothrow_t&amp;)</tt> which 
-has not been invalidated by an intervening call to <tt>operator delete(void*)</tt> <ins>or 
-<tt>operator delete(void*, std::size_t)</tt></ins>.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 18.6.1.2 [new.delete.array]p11 as indicated:</p>
-
-<blockquote>
-<p>
--11- <i>Requires</i>: <tt>ptr</tt> shall be a null pointer or its value shall be the value returned by an earlier call to 
-<tt>operator new[](std::size_t)</tt> or <tt>operator new[](std::size_t,const std::nothrow_t&amp;)</tt> which 
-has not been invalidated by an intervening call to <tt>operator delete[](void*)</tt> <ins>or 
-<tt>operator delete[](void*, std::size_t)</tt></ins>.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2427"></a>2427. Container adaptors as sequence containers, redux</h3>
-<p><b>Section:</b> 23.3.1 [sequences.general] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Tim Song <b>Opened:</b> 2014-08-29 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-LWG <a href="lwg-defects.html#2194">2194</a> removed "These container adaptors meet the requirements for sequence containers." from 
-23.6.1 [container.adaptors.general].
-<p/>
-However, N3936 23.3.1 [sequences.general]/p2 still says "The headers <tt>&lt;queue&gt;</tt> and <tt>&lt;stack&gt;</tt> 
-define container adaptors (23.6) that also meet the requirements for sequence containers." I assume this is just an oversight.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<ol>
-<li><p>Delete paragraph 2 of 23.3.1 [sequences.general] as indicated:</p>
-
-<blockquote>
-<p>
-<del>-2- The headers <tt>&lt;queue&gt;</tt> and <tt>&lt;stack&gt;</tt> define container adaptors (23.6) that 
-also meet the requirements for sequence containers.</del>
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2428"></a>2428. "External declaration" used without being defined</h3>
-<p><b>Section:</b> 17.6.2.2 [using.headers] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Tim Song <b>Opened:</b> 2014-09-03 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#using.headers">issues</a> in [using.headers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.6.2.2 [using.headers]/3 says
-</p>
-<blockquote><p>
-A translation unit shall include a header only outside of any external declaration or definition [&hellip;]
-</p></blockquote>
-<p>
-This wording appears to be borrowed from the C standard. However, the term "external declaration" is not defined 
-in the C++ standard, and in fact is only used here as far as I can tell, so it is unclear what it means. The C 
-standard does define external declarations as (WG14 N1570 6.9 External definitions/4-5):
-</p>
-<blockquote><p>
-As discussed in 5.1.1.1, the unit of program text after preprocessing is a translation unit, which consists of a 
-sequence of external declarations. These are described as "external" because they appear outside any function 
-(and hence have file scope). [...] An external definition is an external declaration that is also a definition of 
-a function (other than an inline definition) or an object.
-</p></blockquote>
-<p>
-The corresponding description of a translation unit in C++ is "A translation unit consists of a sequence of declarations." 
-(3.5 [basic.link]/3).
-<p/>
-So it appears that the C++ counterpart of "external declaration" in C is simply a "declaration" at file scope. There 
-is no need to specifically limit the statement in 17.6.2.2 [using.headers]/3 to file-scope declarations, however, 
-since every non-file-scope declaration is necessarily inside a file-scope declaration, so banning including a header 
-inside file-scope declarations necessarily bans including one inside non-file-scope declarations as well.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-<ol>
-<li><p>Edit 17.6.2.2 [using.headers] as indicated:</p>
-
-<blockquote>
-<p>
-A translation unit shall include a header only outside of any <del>external</del> declaration or definition, and shall
-include the header lexically before the first reference in that translation unit to any of the entities declared
-in that header. No diagnostic is required.
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2433"></a>2433. <tt>uninitialized_copy()</tt>/etc. should tolerate overloaded <tt>operator&amp;</tt></h3>
-<p><b>Section:</b> 20.7.12 [specialized.algorithms] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#specialized.algorithms">issues</a> in [specialized.algorithms].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This restriction isn't necessary anymore. In fact, this is the section that defines <tt>addressof()</tt>.
-</p>
-<p>
-(Editorial note: We can depict these algorithms as calling <tt>addressof()</tt> instead of <tt>std::addressof()</tt> 
-thanks to 17.6.1.1 [contents]/3 "Whenever a name <tt>x</tt> defined in the standard library is mentioned, the name 
-<tt>x</tt> is assumed to be fully qualified as <tt>::std::x</tt>, unless explicitly described otherwise.")
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 20.7.12 [specialized.algorithms] p1 as depicted:</p>
-
-<blockquote>
-<p>
--1- <del>All the iterators that are used as formal template parameters in the following algorithms are required to
-have their <tt>operator*</tt> return an object for which <tt>operator&amp;</tt> is defined and returns a pointer to 
-<tt>T</tt>.</del> In the algorithm <tt>uninitialized_copy</tt>, the formal template parameter <tt>InputIterator</tt> 
-is required to satisfy the requirements of an input iterator (24.2.3). In all of the following algorithms, the formal 
-template parameter <tt>ForwardIterator</tt> is required to satisfy the requirements of a forward iterator (24.2.5), 
-and is required to have the property that no exceptions are thrown from increment, assignment, comparison, or indirection
-through valid iterators. In the following algorithms, if an exception is thrown there are no effects.
-</p>
-</blockquote>
-</li>
-
-<li><p>Change 20.7.12.2 [uninitialized.copy] p1 as depicted:</p>
-<blockquote>
-<p>
--1- <i>Effects</i>:
-</p>
-<blockquote>
-<pre>
-for (; first != last; ++result, ++first)
-  ::new (static_cast&lt;void*&gt;(<ins>addressof(</ins><del>&amp;</del>*result<ins>)</ins>))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-</pre>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.7.12.2 [uninitialized.copy] p3 as depicted:</p>
-<blockquote>
-<p>
--3- <i>Effects</i>:
-</p>
-<blockquote>
-<pre>
-for (; n &gt; 0; ++result, ++first, --n) {
-  ::new (static_cast&lt;void*&gt;(<ins>addressof(</ins><del>&amp;</del>*result<ins>)</ins>))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(*first);
-}
-</pre>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.7.12.3 [uninitialized.fill] p1 as depicted:</p>
-<blockquote>
-<p>
--1- <i>Effects</i>:
-</p>
-<blockquote>
-<pre>
-for (; first != last; ++first)
-  ::new (static_cast&lt;void*&gt;(<ins>addressof(</ins><del>&amp;</del>*first<ins>)</ins>))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(x);
-</pre>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.7.12.4 [uninitialized.fill.n] p1 as depicted:</p>
-<blockquote>
-<p>
--1- <i>Effects</i>:
-</p>
-<blockquote>
-<pre>
-for (; n--; ++first)
-  ::new (static_cast&lt;void*&gt;(<ins>addressof(</ins><del>&amp;</del>*first<ins>)</ins>))
-    typename iterator_traits&lt;ForwardIterator&gt;::value_type(x);
-return first;
-</pre>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2434"></a>2434. <tt>shared_ptr::use_count()</tt> is efficient</h3>
-<p><b>Section:</b> 20.8.2.2.5 [util.smartptr.shared.obs] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#util.smartptr.shared.obs">issues</a> in [util.smartptr.shared.obs].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>shared_ptr</tt> and <tt>weak_ptr</tt> have Notes that their <tt>use_count()</tt> might be inefficient. 
-This is an attempt to acknowledge reflinked implementations (which can be used by Loki smart pointers, for 
-example). However, there aren't any <tt>shared_ptr</tt> implementations that use reflinking, especially 
-after C++11 recognized the existence of multithreading. Everyone uses atomic refcounts, so <tt>use_count()</tt> 
-is just an atomic load.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 20.8.2.2.5 [util.smartptr.shared.obs] p7-p10 as depicted:</p>
-
-<blockquote>
-<pre>
-long use_count() const noexcept;
-</pre>
-<blockquote>
-<p>
--7- <i>Returns</i>: the number of <tt>shared_ptr</tt> objects, <tt>*this</tt> included, that <em>share ownership</em> with 
-<tt>*this</tt>, or 0 when <tt>*this</tt> is <em>empty</em>.
-<p/>
-<del>-8- [<i>Note</i>: <tt>use_count()</tt> is not necessarily efficient. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-<pre>
-bool unique() const noexcept;
-</pre>
-<blockquote>
-<p>
--9- <i>Returns</i>: <tt>use_count() == 1</tt>.
-<p/>
--10- [<i>Note</i>: <del><tt>unique()</tt> may be faster than <tt>use_count()</tt>.</del> If you are using <tt>unique()</tt> 
-to implement copy on write, do not rely on a specific value when <tt>get() == 0</tt>. &mdash; <i>end note</i>]
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 20.8.2.3.5 [util.smartptr.weak.obs] p1-p4 as depicted:</p>
-
-<blockquote>
-<pre>
-long use_count() const noexcept;
-</pre>
-<blockquote>
-<p>
--1- <i>Returns</i>: 0 if <tt>*this</tt> is <em>empty</em>; otherwise, the number of <tt>shared_ptr</tt> instances 
-that <em>share ownership</em> with <tt>*this</tt>.
-<p/>
-<del>-2- [<i>Note</i>: <tt>use_count()</tt> is not necessarily efficient. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-<pre>
-bool expired() const noexcept;
-</pre>
-<blockquote>
-<p>
--3- <i>Returns</i>: <tt>use_count() == 0</tt>.
-<p/>
-<del>-4- [<i>Note</i>: <tt>expired()</tt> may be faster than <tt>use_count()</tt>. &mdash; <i>end note</i>]</del>
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2437"></a>2437. <tt>iterator_traits&lt;OutIt&gt;::reference</tt> can and can't be <tt>void</tt></h3>
-<p><b>Section:</b> 24.2.2 [iterator.iterators] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#iterator.iterators">issues</a> in [iterator.iterators].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-24.2.2 [iterator.iterators]/2 requires an <tt>Iterator</tt>'s <tt>*r</tt> to return <tt>reference</tt>, 
-i.e. <tt>iterator_traits&lt;X&gt;::reference</tt> according to 24.2.1 [iterator.requirements.general]/11.
-<p/>
-24.2.4 [output.iterators]/1 requires an <tt>OutputIterator</tt>'s <tt>*r = o</tt> to do its job, 
-so <tt>*r</tt> clearly can't return <tt>void</tt>.
-<p/>
-24.4.1 [iterator.traits]/1 says: "In the case of an output iterator, the types
-</p>
-<blockquote><pre>
-iterator_traits&lt;Iterator&gt;::difference_type
-iterator_traits&lt;Iterator&gt;::value_type
-iterator_traits&lt;Iterator&gt;::reference
-iterator_traits&lt;Iterator&gt;::pointer
-</pre></blockquote>
-<p>
-may be defined as <tt>void</tt>."
-<p/>
-This is contradictory. I suggest fixing this by moving the offending requirement down from <tt>Iterator</tt> to 
-<tt>InputIterator</tt>, and making <tt>Iterator</tt> say that <tt>*r</tt> returns an unspecified type. This will 
-have the following effects:
-</p>
-<ul>
-<li><p>Output-only iterators will inherit Iterator's "<tt>*r</tt> returns unspecified" requirement, while 
-24.4.1 [iterator.traits]/1 clearly permits reference/etc. to be <tt>void</tt>.</p></li>
-<li><p>Input-or-stronger iterators (whether constant or mutable) are unaffected &mdash; they still have to satisfy 
-"<tt>*r</tt> returns reference", they're just getting that requirement from <tt>InputIterator</tt> instead of 
-<tt>Iterator</tt>.</p></li>
-</ul>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-EF: This is related to <a href="lwg-defects.html#2438">2438</a>. MC: I'd like to take up 2438 right after this.
-<p/>
-AM: Does anyone think this is wrong?
-<p/>
-GR: Why do we give output iterators to have reference type void? AM: we've mandated that certain output iterators 
-define it as void since 1998. GR: Oh OK, I'm satisfied.
-<p/>
-Accepted. And <a href="lwg-defects.html#2438">2438</a> is already Ready. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>In 24.2.2 [iterator.iterators] Table 106 "Iterator requirements" change as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 106 &mdash; Iterator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational<br/>semantics</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td>
-<tt>*r</tt>
-</td>
-<td>
-<del><tt>reference</tt></del><ins>unspecified</ins>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-<i>pre</i>: <tt>r</tt> is dereferenceable.
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-</table>
-</blockquote></li>
-
-<li><p>In 24.2.3 [input.iterators] Table 107 "Input iterator requirements" change as indicated:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 107 &mdash; Input iterator requirements (in addition to Iterator)</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational<br/>semantics</th>
-<th>Assertion&#47;note pre-&#47;post-condition</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>*a</tt>
-</td>
-<td>
-<ins><tt>reference</tt>,</ins> convertible to <tt>T</tt>
-</td>
-<td>
-<tt></tt>
-</td>
-<td>
-[&hellip;]
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-</table>
-</blockquote></li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2438"></a>2438. <tt>std::iterator</tt> inheritance shouldn't be mandated</h3>
-<p><b>Section:</b> 24.4.2 [iterator.basic] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-For LWG convenience, nine STL iterators are depicted as deriving from <tt>std::iterator</tt> to get their 
-<tt>iterator_category</tt>/etc. typedefs. Unfortunately (and unintentionally), this also mandates the 
-inheritance, which is observable (not just through <tt>is_base_of</tt>, but also overload resolution). 
-This is unfortunate because it confuses users, who can be misled into thinking that their own iterators 
-must derive from <tt>std::iterator</tt>, or that overloading functions to take <tt>std::iterator</tt> is 
-somehow meaningful. This is also unintentional because the STL's most important iterators, the container 
-iterators, aren't required to derive from <tt>std::iterator</tt>. (Some are even allowed to be raw pointers.)  
-Finally, this unnecessarily constrains implementers, who may not want to derive from <tt>std::iterator</tt>.  
-(For example, to simplify debugger views.)
-<p/>
-We could add wording to 24.4.2 [iterator.basic] saying that any depicted inheritance is for exposition 
-only, but that wouldn't really solve reader confusion. Replacing the depicted inheritance with direct typedefs 
-will prevent confusion. Note that implementers won't be required to change their code &mdash; they are free to 
-continue deriving from <tt>std::iterator</tt> if they want.
-<p/>
-(Editorial note: The order of the typedefs follows the order of <tt>std::iterator</tt>'s template parameters.)
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 20.7.10 [storage.iterator], class template <tt>raw_storage_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class OutputIterator, class T&gt;
-class raw_storage_iterator
-  <del>: public iterator&lt;output_iterator_tag,void,void,void,void&gt;</del> {
-public:
-  <ins>typedef output_iterator_tag iterator_category;
-  typedef void value_type;
-  typedef void difference_type;
-  typedef void pointer;
-  typedef void reference;</ins>
-
-  explicit raw_storage_iterator(OutputIterator x);
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.5.1.1 [reverse.iterator], class template <tt>reverse_iterator</tt> synopsis, as depicted
-(editorial note: this reorders "<tt>reference</tt>, <tt>pointer</tt>" to "<tt>pointer</tt>, <tt>reference</tt>" 
-and aligns whitespace):</p>
-
-<blockquote>
-<pre>
-template &lt;class Iterator&gt;
-class reverse_iterator <del>: public 
-  iterator&lt;typename iterator_traits&lt;Iterator&gt;::iterator_category,
-  typename iterator_traits&lt;Iterator&gt;::value_type,
-  typename iterator_traits&lt;Iterator&gt;::difference_type,
-  typename iterator_traits&lt;Iterator&gt;::pointer,
-  typename iterator_traits&lt;Iterator&gt;::reference&gt;</del> {
-public:
-  <del>typedef Iterator iterator_type;
-  typedef typename iterator_traits&lt;Iterator&gt;::difference_type difference_type;
-  typedef typename iterator_traits&lt;Iterator&gt;::reference reference;
-  typedef typename iterator_traits&lt;Iterator&gt;::pointer pointer;</del>
-  <ins>typedef Iterator                                              iterator_type;
-  typedef typename iterator_traits&lt;Iterator&gt;::iterator_category iterator_category;
-  typedef typename iterator_traits&lt;Iterator&gt;::value_type        value_type;
-  typedef typename iterator_traits&lt;Iterator&gt;::difference_type   difference_type;
-  typedef typename iterator_traits&lt;Iterator&gt;::pointer           pointer;
-  typedef typename iterator_traits&lt;Iterator&gt;::reference         reference;</ins>
-
-  reverse_iterator();
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.5.2.1 [back.insert.iterator], class template <tt>back_insert_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class Container&gt;
-class back_insert_iterator <del>: 
-  public iterator&lt;output_iterator_tag,void,void,void,void&gt;</del> {
-protected:
-  Container* container;
-
-public:
-  <ins>typedef output_iterator_tag iterator_category;
-  typedef void value_type;
-  typedef void difference_type;
-  typedef void pointer;
-  typedef void reference;</ins>
-  typedef Container container_type;
-  explicit back_insert_iterator(Container&amp; x);
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.5.2.3 [front.insert.iterator], class template <tt>front_insert_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class Container&gt;
-class front_insert_iterator <del>: 
-  public iterator&lt;output_iterator_tag,void,void,void,void&gt;</del> {
-protected:
-  Container* container;
-
-public:
-  <ins>typedef output_iterator_tag iterator_category;
-  typedef void value_type;
-  typedef void difference_type;
-  typedef void pointer;
-  typedef void reference;</ins>
-  typedef Container container_type;
-  explicit front_insert_iterator(Container&amp; x);
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.5.2.5 [insert.iterator], class template <tt>insert_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class Container&gt;
-class insert_iterator <del>: 
-  public iterator&lt;output_iterator_tag,void,void,void,void&gt;</del> {
-protected:
-  Container* container;
-  typename Container::iterator iter;
-
-public:
-  <ins>typedef output_iterator_tag iterator_category;
-  typedef void value_type;
-  typedef void difference_type;
-  typedef void pointer;
-  typedef void reference;</ins>
-  typedef Container container_type;
-  insert_iterator(Container&amp; x, typename Container::iterator i);
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.6.1 [istream.iterator], class template <tt>istream_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class T, class charT = char, class traits = char_traits&lt;charT&gt;,
-  class Distance = ptrdiff_t&gt;
-class istream_iterator <del>: 
-  public iterator&lt;input_iterator_tag, T, Distance, const T*, const T&amp;&gt;</del> {
-public:
-  <ins>typedef input_iterator_tag iterator_category;
-  typedef T value_type;
-  typedef Distance difference_type;
-  typedef const T* pointer;
-  typedef const T&amp; reference;</ins>
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.6.2 [ostream.iterator], class template <tt>ostream_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class T, class charT = char, class traits = char_traits&lt;charT&gt;&gt;
-class ostream_iterator <del>: 
-  public iterator&lt;output_iterator_tag, void, void, void, void&gt;</del> {
-public:
-  <ins>typedef output_iterator_tag iterator_category;
-  typedef void value_type;
-  typedef void difference_type;
-  typedef void pointer;
-  typedef void reference;</ins>
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.6.3 [istreambuf.iterator], class template <tt>istreambuf_iterator</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-template &lt;class charT = char, class traits = char_traits&lt;charT&gt; &gt;
-class istreambuf_iterator <del>: 
-  public iterator&lt;input_iterator_tag, charT,
-                  typename traits::off_type, <em>unspecified</em>, charT&gt;</del> {
-public:
-  <ins>typedef input_iterator_tag iterator_category;
-  typedef charT value_type;
-  typedef typename traits::off_type difference_type;
-  typedef <em>unspecified</em> pointer;
-  typedef charT reference;</ins>
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 24.6.4 [ostreambuf.iterator], class template <tt>ostreambuf_iterator</tt> synopsis, as depicted 
-(editorial note: this removes a redundant "public:"):</p>
-
-<blockquote>
-<pre>
-template &lt;class charT = char, class traits = char_traits&lt;charT&gt;&gt;
-class ostreambuf_iterator <del>: 
-  public iterator&lt;output_iterator_tag, void, void, void, void&gt;</del> {
-public:
-  <ins>typedef output_iterator_tag iterator_category;
-  typedef void value_type;
-  typedef void difference_type;
-  typedef void pointer;
-  typedef void reference;</ins>
-  [&hellip;]
-<del>public:</del>
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2439"></a>2439. <tt>unique_copy()</tt> sometimes can't fall back to reading its output</h3>
-<p><b>Section:</b> 25.3.9 [alg.unique] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#alg.unique">issues</a> in [alg.unique].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>unique_copy()</tt>'s wording says that if it's given input-only and output-only iterators, it needs 
-the input's value type to be copyable. This is correct, because in this case the algorithm must have a 
-local element copy in order to detect duplicates.
-<p/>
-The wording also says that if it's given an <tt>InputIterator</tt> that's forward or stronger, the input's 
-value type doesn't have to be copyable. This is also correct, because in this case the algorithm can reread 
-the input in order to detect duplicates.
-<p/>
-Finally, the wording says that if it's given an input-only iterator with an <tt>OutputIterator</tt> that's 
-forward or stronger, the input's value type doesn't have to be copyable. This is telling the algorithm to 
-compare its input to its output in order to detect duplicates, but that isn't always possible! If the input 
-and output have the same value type, then they can be compared (as long as <tt>*result = *first</tt> behaves 
-sanely; see below). If they have different value types, then we can't compare them.
-<p/>
-This could be resolved by requiring heterogeneous value types to be comparable in this situation, but that 
-would be extremely tricky to wordsmith (as it would challenge the concept of "group of equal elements" used 
-by the Effects). It will be vastly simpler and more effective to extend the "local element copy" requirement 
-to this scenario.
-<p/>
-Note that the input-only, output forward-or-stronger, identical value types scenario needs a bit of work too.  
-We always require *result = *first to be "valid", but in this case we need to additionally require that the 
-assignment actually transfers the value. (Otherwise, we'd be allowing an <tt>op=()</tt> that ignores <tt>*first</tt> 
-and always sets <tt>*result</tt> to zero, or other unacceptable behavior.) This is just <tt>CopyAssignable</tt>.
-<p/>
-(What happens when <tt>unique_copy()</tt> is given a <tt>move_iterator</tt> is a separate issue.)
-<p/>
-To summarize:
-</p>
-<blockquote><p>
-input forward+: no additional requirements
-<p/>
-input-only, output forward+, same value types: needs <tt>CopyAssignable</tt>
-<p/>
-input-only, output forward+, different value types: needs <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt>
-<p/>
-input-only, output-only: needs <tt>CopyConstructible</tt> and <tt>CopyAssignable</tt>
-</p></blockquote>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 25.3.9 [alg.unique] p5, as depicted:</p>
-
-<blockquote>
-<pre>
-template&lt;class InputIterator, class OutputIterator>
-OutputIterator
-unique_copy(InputIterator first, InputIterator last,
-            OutputIterator result);
-template&lt;class InputIterator, class OutputIterator,
-         class BinaryPredicate>
-OutputIterator
-unique_copy(InputIterator first, InputIterator last,
-            OutputIterator result, BinaryPredicate pred);
-</pre>
-<blockquote>
-<p>
--5- <i>Requires</i>: The comparison function shall be an equivalence relation. The ranges [<tt>first,last</tt>) and
-[<tt>result,result+(last-first)</tt>) shall not overlap. The expression <tt>*result = *first</tt> shall be valid.
-<del>If neither <tt>InputIterator</tt> nor <tt>OutputIterator</tt> meets the requirements of forward iterator then the
-value type of <tt>InputIterator</tt> shall be <tt>CopyConstructible</tt> (Table 21) and <tt>CopyAssignable</tt> (Table 23).
-Otherwise <tt>CopyConstructible</tt> is not required.</del><ins>Let <tt>T</tt> be the value type of <tt>InputIterator</tt>. 
-If <tt>InputIterator</tt> meets the forward iterator requirements, then there are no additional requirements for <tt>T</tt>. 
-Otherwise, if <tt>OutputIterator</tt> meets the forward iterator requirements and its value type is the same as <tt>T</tt>, 
-then <tt>T</tt> shall be <tt>CopyAssignable</tt> (Table 23). Otherwise, <tt>T</tt> shall be both <tt>CopyConstructible</tt> 
-(Table 21) and <tt>CopyAssignable</tt>.</ins>
-</p>
-</blockquote></blockquote></li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2440"></a>2440. <tt>seed_seq::size()</tt> should be <tt>noexcept</tt></h3>
-<p><b>Section:</b> 26.5.7.1 [rand.util.seedseq] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#rand.util.seedseq">issues</a> in [rand.util.seedseq].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Obvious.
-</p>
-
-<p><i>[Urbana 2014-11-07: Move to Ready]</i></p>
-
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 26.5.7.1 [rand.util.seedseq], class <tt>seed_seq</tt> synopsis, as depicted:</p>
-
-<blockquote>
-<pre>
-class seed_seq
-{
-public:
-  [&hellip;]
-  size_t size() const <ins>noexcept</ins>;
-  [&hellip;]
-};
-</pre>
-</blockquote></li>
-
-<li><p>Change 26.5.7.1 [rand.util.seedseq] around p10, as depicted:</p>
-
-<blockquote>
-<pre>
-size_t size() const <ins>noexcept</ins>;
-</pre>
-<blockquote>
-<p>
--10- <i>Returns</i>: The number of 32-bit units that would be returned by a call to <tt>param()</tt>.
-<p/>
-<del>-11- <i>Throws</i>: Nothing.</del>
-<p/>
--12- <i>Complexity</i>: Constant time.
-</p>
-</blockquote>
-</blockquote></li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2442"></a>2442. <tt>call_once()</tt> shouldn't <tt>DECAY_COPY()</tt></h3>
-<p><b>Section:</b> 30.4.4.2 [thread.once.callonce] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2014-10-01 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#thread.once.callonce">issues</a> in [thread.once.callonce].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-When LWG <a href="lwg-defects.html#891">891</a> overhauled <tt>call_once()</tt>'s specification, it used <tt>decay_copy()</tt>, following 
-LWG <a href="lwg-defects.html#929">929</a>'s overhaul of <tt>thread</tt>'s constructor.
-<p/>
-In <tt>thread</tt>'s constructor, this is necessary and critically important. 30.3.1.2 [thread.thread.constr]/5 
-"The new thread of execution executes <tt><i>INVOKE</i>(<i>DECAY_COPY</i>(std::forward&lt;F&gt;(f)), 
-<i>DECAY_COPY</i>(std::forward&lt;Args&gt;(args))...)</tt> 
-with the calls to <tt><i>DECAY_COPY</i></tt> being evaluated in the constructing thread." requires the parent thread 
-to copy arguments for the child thread to access.
-<p/>
-In <tt>call_once()</tt>, this is unnecessary and harmful. It's unnecessary because <tt>call_once()</tt> doesn't transfer 
-arguments between threads. It's harmful because:
-</p>
-<ul>
-<li><p><tt>decay_copy()</tt> returns a prvalue. Given <tt>meow(int&amp;)</tt>, <tt>meow(i)</tt> can be called directly, 
-but <tt>call_once(flag, meow, i)</tt> won't compile.</p></li>
-<li><p><tt>decay_copy()</tt> moves from modifiable rvalues. Given <tt>purr(const unique_ptr&lt;int&gt;&amp;)</tt>, 
-<tt>purr(move(up))</tt> won't modify <tt>up</tt>. (This is observable, because moved-from <tt>unique_ptr</tt>s are 
-guaranteed empty.) However, <tt>call_once(flag, purr, move(up))</tt> will leave <tt>up</tt> empty after the first active 
-execution. Observe the behavioral difference &mdash; if <tt>purr()</tt> is directly called like this repeatedly until it 
-doesn't throw an exception, each call will observe <tt>up</tt> unchanged. With <tt>call_once()</tt>, the second active 
-execution will observe <tt>up</tt> to be empty.</p></li>
-</ul>
-<p>
-<tt>call_once()</tt> should use perfect forwarding without <tt>decay_copy()</tt>, in order to avoid interfering with the call like this.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Handed over to SG1.
-</p>
-
-<p><i>[2015-05 Lenexa, SG1 response]</i></p>
-
-<p>
-Looks good to us, but this is really an LWG issue.
-</p>
-
-<p><i>[2015-05-07 Lenexa: Move Immediate]</i></p>
-
-<p>LWG 2442 call_once shouldn't decay_copy</p>
-<p>STL summarizes the SG1 minutes.</p>
-<p>Marshall: Jonathan updated all the issues with SG1 status last night. Except this one.</p>
-<p>STL summarizes the issue.</p>
-<p>Dietmar: Of course, call_once has become useless.</p>
-<p>STL: With magic statics.</p>
-<p>Jonathan: Magic statics can't be per object, which I use in future.</p>
-<p>Marshall: I see why you are removing the MoveConstructible on the arguments, but what about Callable?</p>
-<p>STL: That's a type named Callable, which we will no longer decay_copy. We're still requiring the INVOKE expression to be valid.</p>
-<p>Marshall: Okay. Basically, ripping the decay_copy out of here.</p>
-<p>STL: I recall searching the Standard for other occurrences and I believe this is the only inappropriate use of decay_copy.</p>
-<p>Marshall: We do the decay_copy.</p>
-<p>Jonathan: Us too.</p>
-<p>Marshall: What do people think?</p>
-<p>Jonathan: I think STL's right. In the use I was mentioning inside futures, I actually pass them by reference_wrapper and pointers, to avoid the decay causing problems. Inside the call_once, I then extract the args. So I've had to work around this and didn't realize it was a defect.</p>
-<p>Marshall: What do people think is the right resolution?</p>
-<p>STL: I would like to see Immediate.</p>
-<p>Hwrd: No objections to Immediate.</p>
-<p>Marshall: Bill is nodding.</p>
-<p>PJP: He said it. Everything STL says applies to our other customers.</p>
-<p>Marshall: Any objections to Immediate?</p>
-<p>Jonathan: I can't see any funky implementations where a decay_copy would be necessary?</p>
-<p>Marshall: 6 votes for Immediate, 0 opposed, 0 abstaining.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N3936.
-</p>
-
-<ol>
-<li><p>Change 30.4.4.2 [thread.once.callonce] p1+p2 as depicted:</p>
-
-<blockquote>
-<pre>
-template&lt;class Callable, class ...Args&gt;
-  void call_once(once_flag&amp; flag, Callable&amp;&amp; func, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>
--1- <i>Requires</i>: <del><tt>Callable</tt> and each <tt>Ti</tt> in <tt>Args</tt> shall satisfy the <tt>MoveConstructible</tt> 
-requirements.</del> <tt><i>INVOKE</i>(<del><i>DECAY_COPY</i>(</del>std::forward&lt;Callable&gt;(func)<del>)</del>, 
-<del><i>DECAY_COPY</i>(</del>std::forward&lt;Args&gt;(args)<del>)</del>...)</tt>
-(20.9.2) shall be a valid expression.
-<p/>
--2- <i>Effects</i>; [&hellip;] An active execution shall call 
-<tt><i>INVOKE</i>(<del><i>DECAY_COPY</i>(</del>std::forward&lt;Callable&gt;(func)<del>)</del>, 
-<del><i>DECAY_COPY</i>(</del>std::forward&lt;Args&gt;(args)<del>)</del>...)</tt>. [&hellip;]
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2448"></a>2448. Non-normative Container destructor specification</h3>
-<p><b>Section:</b> 23.2.1 [container.requirements.general] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2014-10-18 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#container.requirements.general">active issues</a> in [container.requirements.general].</p>
-<p><b>View all other</b> <a href="lwg-index.html#container.requirements.general">issues</a> in [container.requirements.general].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-According to Table 96 &mdash; "Container requirements" the specification:
-</p>
-<blockquote><p>
-note: the destructor is applied to every element of <tt>a</tt>; any
-memory obtained is deallocated.
-</p></blockquote>
-<p>
-The initial "note:" can be read as if that part of the specification would not be normative (This note form
-differs from footnotes in tables, which have normative meaning).
-<p/>
-It seems that this initial part of the specification exists since C++98. But comparing with
-the similar <a href="https://www.sgi.com/tech/stl/Container.html">SGI Container specification</a> there is no evidence
-for that being intended to be non-normative.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-NJ: If we fix this, we should also fix it elsewhere. Oh, this is the only place?<br/> 
-GR: If this is intended to be different from elsewhere, we should make sure.<br/> 
-AM: <tt>valarray</tt> specifies this without the "note:".<br/> 
-DK: <tt>valarray</tt> requires trivially destructible types!<br/> 
-GR: That's good enough for me.<br/> 
-NJ: First time <tt>valarray</tt> has been useful for something!
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N4140.
-</p>
-
-<ol>
-<li><p>Change 23.2.1 [container.requirements.general], Table 96 &mdash; "Container requirements", as indicated:</p>
-<blockquote>
-<table border="1">
-<caption>Table 96 &mdash; Container requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Operational<br/>semantics</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-<th>Complexity</th>
-</tr>
-
-<tr>
-<td colspan="5" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>(&amp;a)-&gt;~X()</tt>
-</td>
-<td>
-<tt>void</tt>
-</td>
-<td>
-</td>
-<td>
-<del>note:</del> the destructor<br/>
-is applied to every<br/>
-element of <tt>a</tt>; any<br/>
-memory obtained is
-deallocated.
-</td>
-<td>
-linear
-</td>
-</tr>
-
-<tr>
-<td colspan="5" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2454"></a>2454. Add <tt>raw_storage_iterator::base()</tt> member</h3>
-<p><b>Section:</b> 20.7.10 [storage.iterator] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Jonathan Wakely <b>Opened:</b> 2014-11-11 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#storage.iterator">issues</a> in [storage.iterator].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Eric Niebler pointed out that <tt>raw_storage_iterator</tt> should give access
-to the <tt>OutputIterator</tt> it wraps.
-<p/>
-This helps alleviate the exception-safety issue pointed out in the
-discussion of LWG <a href="lwg-active.html#2127">2127</a>, as an exception can be caught and then
-destructors can be run for the constructed elements in the range
-<tt>[begin, raw.base())</tt>
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-NJ: Is this "const" correct [in "base()"]? DK: Yes, we always do that. NJ: And the output iterator is not qualifying in any way? 
-AM/DK: That wouldn't make sense. NJ: OK.
-<p/>
-VV: What did LEWG say about this feature request? In other words, why is this a library issue? AM: LEWG/JY thought this wouldn't 
-be a contentious issue.
-<p/>
-NJ: I really hope the split of LEWG and LWG will be fixed soon, since it's only wasting time. VV: So you want to spend even 
-more of your time on discussions that LEWG has?
-<p/>
-AM: I think this specified correctly. I'm not wild about it. But no longer bothered to stand in its way.
-<p/>
-GR: Why do we need to repeat the type in "Returns" even though it's part of the synopsis? AM: Good point, but not worth fixing.
-<p/>
-NJ: Why is "<tt>base()</tt>" for <tt>reverse_iterator</tt> commented with "// explicit"? AM: I guess in 1998 that was the 
-only way to say this.
-<p/>
-AM: So, it's tentatively ready. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to <a href="http://www.open-std.org/jtc1/sc22/wg21/prot/14882fdis/n4140.pdf">N4140</a>.</p>
-
-<ol>
-<li><p>Add a new function to the synopsis in 20.7.10 [storage.iterator] p1:</p>
-
-<blockquote><pre>
-namespace std {
-  template &lt;class OutputIterator, class T&gt;
-  class raw_storage_iterator
-    : public iterator&lt;output_iterator_tag,void,void,void,void&gt; {
-  public:
-    explicit raw_storage_iterator(OutputIterator x);
-
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator*();
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator=(const T&amp; element);
-    raw_storage_iterator&lt;OutputIterator,T&gt;&amp; operator++();
-    raw_storage_iterator&lt;OutputIterator,T&gt; operator++(int);
-    <ins>OutputIterator base() const;</ins>
-};
-}
-</pre></blockquote>
-</li>
-
-<li><p>Insert the new function and a new paragraph series after p7:</p>
-
-<blockquote><pre>
-<ins>OutputIterator base() const;</ins>
-</pre><blockquote>
-<p>
-<ins>-?- <i>Returns</i>: An iterator of type <tt>OutputIterator</tt> that points to the
-same value as <tt>*this</tt> points to.</ins>
-</p>
-</blockquote></blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2455"></a>2455. Allocator default construction should be allowed to throw</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Pablo Halpern <b>Opened:</b> 2014-11-11 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-17.6.3.5 [allocator.requirements]/4 in the 2014-10 WP (N4140), says:
-</p>
-<blockquote><p>
-An allocator type <tt>X</tt> shall satisfy the requirements of <tt>CopyConstructible</tt> (17.6.3.1). The 
-<tt>X::pointer</tt>, <tt>X::const_pointer</tt>, <tt>X::void_pointer</tt>, and <tt>X::const_void_pointer</tt> 
-types shall satisfy the requirements of <tt>NullablePointer</tt> (17.6.3.3). No constructor, comparison operator, 
-copy operation, move operation, or swap operation on these types shall exit via an exception. <tt>X::pointer</tt> 
-and <tt>X::const_pointer</tt> shall also satisfy the requirements for a random access iterator (24.2).
-</p></blockquote>
-<p>
-The words "these types" would normally apply only to the previous sentence only, i.e., only to the pointer types.  
-However, an alternative reading would be that the allocator constructors themselves cannot throw. The change to 
-the <tt>vector</tt> and <tt>string</tt> default constructors, making them unconditionally <tt>noexcept</tt> depends 
-on this alternative reading.
-<p/>
-I believe that the wording in the standard is not intended to forbid throwing default constructors for allocators.  
-Indeed, I believe that allocators do not require default constructors and that if they provide a default constructor 
-they should be allowed to throw.
-<p/>
-In addition, the <tt>noexcept</tt> specifications for the <tt>string</tt> and <tt>vector</tt> default constructors 
-should be changed to make them conditional.
-</p>
-
-<p><i>[2015-01-18 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-
-<ol>
-<li><p>Change 17.6.3.5 [allocator.requirements] p4 as indicated:</p>
-
-<blockquote><p>
-An allocator type <tt>X</tt> shall satisfy the requirements of <tt>CopyConstructible</tt> (17.6.3.1). The 
-<tt>X::pointer</tt>, <tt>X::const_pointer</tt>, <tt>X::void_pointer</tt>, and <tt>X::const_void_pointer</tt> 
-types shall satisfy the requirements of <tt>NullablePointer</tt> (17.6.3.3). No constructor, comparison operator, 
-copy operation, move operation, or swap operation on these <ins>pointer</ins> types shall exit via an exception. 
-<tt>X::pointer</tt> and <tt>X::const_pointer</tt> shall also satisfy the requirements for a random access iterator (24.2).
-</p></blockquote>
-</li>
-
-<li><p>Change 21.4 [basic.string] following p5, class template <tt>basic_string</tt> synopsis, as indicated: 
-(This change assumes that N4258 has been applied, as voted on in Urbana on 2014-11-08)</p>
-
-<blockquote>
-<pre>
-<i>// 21.4.2, construct/copy/destroy:</i>
-basic_string() noexcept<ins>(noexcept(Allocator()))</ins> : basic_string(Allocator()) { }
-</pre>
-</blockquote>
-
-<blockquote class="note">
-<p>
-An alternative formulation of the above would be:
-</p>
-<pre>
-<i>// 21.4.2, construct/copy/destroy:</i>
-basic_string() noexcept<ins>(is_nothrow_default_constructible&lt;Allocator&gt;{})</ins> : basic_string(Allocator()) { }
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 23.3.6.1 [vector.overview] following p2, class template <tt>vector</tt> synopsis, as indicated: 
-(This change assumes that N4258 has been applied, as voted on in Urbana on 2014-11-08)</p>
-
-<blockquote>
-<pre>
-<i>// 23.3.6.2, construct/copy/destroy:</i>
-vector() noexcept<ins>(noexcept(Allocator()))</ins> : vector(Allocator()) { }
-</pre>
-</blockquote>
-
-<blockquote class="note">
-<p>
-An alternative formulation of the above would be:
-</p>
-<pre>
-<i>// 23.3.6.2, construct/copy/destroy:</i>
-vector() noexcept<ins>(is_nothrow_default_constructible&lt;Allocator&gt;{})</ins> : vector(Allocator()) { }
-</pre>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2458"></a>2458. N3778 and new library deallocation signatures</h3>
-<p><b>Section:</b> 18.6 [support.dynamic], 18.6.1.1 [new.delete.single], 18.6.1.2 [new.delete.array] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Richard Smith <b>Opened:</b> 2014-11-23 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3778.html">N3778</a> 
-added the following sized deallocation signatures to the library:
-</p>
-<blockquote><pre>
-void operator delete(void* ptr, std::size_t size) noexcept;
-void operator delete[](void* ptr, std::size_t size) noexcept;
-
-void operator delete(void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept;
-void operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept;
-</pre></blockquote>
-<p>
-The former two are an essential part of the proposal. The latter two seem
-spurious &mdash; they are not called when <tt>new (std::nothrow) X</tt> fails due to
-<tt>X::X()</tt> throwing, because the core language rules for selecting a placement
-deallocation function do not consider passing a <tt>size</tt> argument. Instead, the
-above would be the matching deallocation functions for:
-</p>
-<blockquote><pre>
-void *operator new(std::size_t size, std::size_t size_again, const std::nothrow_t&amp;) noexcept;
-void *operator new[](std::size_t size, std::size_t size_again, const std::nothrow_t&amp;) noexcept;
-</pre></blockquote>
-<p>
-... which don't exist.
-<p/>
-Since they're not implicitly called, the only other possible use for those
-functions would be to perform an explicitly non-throwing deallocation.
-But... the first two overloads are already explicitly non-throwing and are
-required to be semantically identical to the second two. So there's no
-point in making an explicit call to the second pair of functions either.
-<p/>
-It seems to me that we should remove the <tt>(void*, size_t, nothrow_t)</tt> overloads, because
-the core working group decided during the Urbana 2014 meeting, that no change to the core 
-language was warranted.
-</p>
-
-<p><i>[2014-11-23, Daniel suggests concrete wording changes]</i></p>
-
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-Nobody can call those overloads, since the nothrow allocation functions cannot throw. JY: Ship it. GR: Should we do due 
-diligence and make sure we're deleting what we mean to be deleting? [Some checking, everything looks good.]
-<p/>
-Accepted.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4140.</p>
-
-<ol>
-<li><p>Change 18.6 [support.dynamic], header <tt>&lt;new&gt;</tt> synopsis, as indicated:</p>
-
-<blockquote><pre>
-[&hellip;]
-void operator delete(void* ptr, std::size_t size) noexcept;
-<del>void operator delete(void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept;</del>
-[&hellip;]
-void operator delete[](void* ptr, std::size_t size) noexcept;
-<del>void operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept;</del>
-[&hellip;]
-</pre></blockquote>
-
-</li>
-
-<li><p>Change 18.6.1.1 [new.delete.single], starting before p19, as indicated:</p>
-<blockquote><pre>
-void operator delete(void* ptr, const std::nothrow_t&amp;) noexcept;
-<del>void operator delete(void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept;</del>
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--20- <i>Replaceable</i>: a C++ program may define a function with signature <tt>void operator delete(void*
-ptr, const std::nothrow_t&amp;) noexcept</tt> that displaces the default version defined by the C++ standard
-library. <del>If this function (without <tt>size</tt> parameter) is defined, the program should also define
-<tt>void operator delete(void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept</tt>. If
-this function with <tt>size</tt> parameter is defined, the program shall also define the version without the
-<tt>size</tt> parameter. [<i>Note</i>: The default behavior below may change in the future, which will require
-replacing both deallocation functions when replacing the allocation function. &mdash; <i>end note</i>]</del>
-<p/>
-[&hellip;]
-<p/>
-<del>-22- <i>Requires</i>: If present, the <tt>std::size_t size</tt> argument must equal the <tt>size</tt> 
-argument passed to the allocation function that returned <tt>ptr</tt>.</del>
-<p/>
-<del>-23- <i>Required behavior</i>: Calls to <tt>operator delete(void* ptr, std::size_t size, const std::nothrow_t&amp;)</tt> 
-may be changed to calls to <tt>operator delete(void* ptr, const std::nothrow_t&amp;)</tt> without affecting
-memory allocation. [<i>Note</i>: A conforming implementation is for <tt>operator delete(void* ptr, std::size_t size, 
-const std::nothrow_t&amp;)</tt> to simply call <tt>operator delete(void* ptr, const std::nothrow_t&amp;)</tt>. &mdash; 
-<i>end note</i>]</del>
-<p/>
--24- <i>Default behavior</i>: <del><tt>operator delete(void* ptr, std::size_t size, const std::nothrow_t&amp;)</tt> 
-calls <tt>operator delete(ptr, std::nothrow)</tt>, and</del> <tt>operator delete(void* ptr, const std::nothrow_t&amp;)</tt> 
-calls <tt>operator delete(ptr)</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Change 18.6.1.2 [new.delete.array], starting before p16, as indicated:</p>
-<blockquote><pre>
-void operator delete[](void* ptr, const std::nothrow_t&amp;) noexcept;
-<del>void operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept;</del>
-</pre>
-<blockquote>
-<p>
-[&hellip;]
-<p/>
--17- <i>Replaceable</i>: a C++ program may define a function with signature <tt>void operator delete[](void*
-ptr, const std::nothrow_t&amp;) noexcept</tt> that displaces the default version defined by the C++ standard
-library. <del>If this function (without <tt>size</tt> parameter) is defined, the program should also define <tt>void
-operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;) noexcept</tt>. If this
-function with <tt>size</tt> parameter is defined, the program shall also define the version without the <tt>size</tt>
-parameter. [<i>Note</i>: The default behavior below may change in the future, which will require replacing
-both deallocation functions when replacing the allocation function. &mdash; <i>end note</i>]</del>
-<p/>
-[&hellip;]
-<p/>
-<del>-19- <i>Requires</i>: If present, the <tt>std::size_t size</tt> argument must equal the <tt>size</tt> argument 
-passed to the allocation function that returned <tt>ptr</tt>.</del> 
-<p/>
-<del>-20- <i>Required behavior</i>: Calls to <tt>operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;)</tt> 
-may be changed to calls to <tt>operator delete[](void* ptr, const std::nothrow_t&amp;)</tt> without affecting memory allocation. 
-[<i>Note</i>: A conforming implementation is for <tt>operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;)</tt> 
-to simply call <tt>operator delete[](void* ptr, const std::nothrow_t&amp;)</tt>. &mdash; <i>end note</i>]</del>
-<p/>
--21- <i>Default behavior</i>: <del><tt>operator delete[](void* ptr, std::size_t size, const std::nothrow_t&amp;)</tt>
-calls <tt>operator delete[](ptr, std::nothrow)</tt>, and</del> <tt>operator delete[](void* ptr, const std::nothrow_t&amp;)</tt> 
-calls <tt>operator delete[](ptr)</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2459"></a>2459. <tt>std::polar</tt> should require a non-negative rho</h3>
-<p><b>Section:</b> 26.4.7 [complex.value.ops] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Marshall Clow <b>Opened:</b> 2014-10-22 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#complex.value.ops">issues</a> in [complex.value.ops].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Different implementations give different answers for the following code:
-</p>
-<blockquote><pre>
-#include &lt;iostream&gt;
-#include &lt;complex&gt;
-
-int main ()
-{
-  std::cout &lt;&lt; std::polar(-1.0, -1.0) &lt;&lt; '\n';
-  return 0;
-}
-</pre></blockquote>
-<p>
-One implementation prints:
-</p>
-<blockquote><pre>
-(nan, nan)
-</pre></blockquote>
-<p>
-Another:
-</p>
-<blockquote><pre>
-(-0.243068, 0.243068)
-</pre></blockquote>
-<p>
-Which is correct? Or neither?
-<p/>
-In <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-November/033591.html">this list</a>, 
-Howard Hinnant wrote:
-</p>
-<blockquote class="note">
-<p>
-I've read this over several times.  I've consulted C++11, C11, and IEC 10967-3.  [snip]
-<p/>
-I'm finding:
-</p>
-<ol>
-<li><p>The magnitude of a complex number <tt>== abs(c) == hypot(c.real(), c.imag())</tt> and is always non-negative 
-(by all three of the above standards).</p></li>
-<li><p>Therefore no complex number exists for which <tt>abs(c) &lt; 0</tt>.</p></li>
-<li><p>Therefore when the first argument to <tt>std::polar</tt> (which is called <tt>rho</tt>) is negative, no complex number 
-can be formed which meets the post-conidtion that <tt>abs(c) == rho</tt>.</p>
-</li>
-</ol>
-<p>
-One could argue that this is already covered in 26.4 [complex.numbers]/3, but I think it's worth making explicit.
-</p>
-</blockquote>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-Discussion on whether theta should also be constrained.<br/> 
-TK: infinite theta doesn't make sense, whereas infinite rho does (theta is on a compact domain, rho is on a non-compact domain).<br/>
-AM: We already have a narrow contract, so I don't mind adding further requirements. Any objections to requiring that theta be finite?<br/>
-Some more discussion, but general consensus. Agreement that if someone finds the restrictions problematic, they should write 
-a proper paper to address how <tt>std::polar</tt> should behave. For now, we allow infinite rho (but not NaN and not negative), 
-and require finite theta. 
-<p/>
-No objections to tentatively ready.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 26.4.7 [complex.value.ops] around p9 as indicated</p>
-
-<blockquote><pre>
-template&lt;class T&gt; complex&lt;T&gt; polar(const T&amp; rho, const T&amp; theta = 0);
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>rho</tt> shall be non-negative and non-NaN. <tt>theta</tt> shall be finite.</ins>
-<p/>
--9- <i>Returns</i>: The complex value corresponding to a complex number whose magnitude is <tt>rho</tt> and whose
-phase angle is <tt>theta</tt>.
-</p>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2463"></a>2463. [fund.ts] Incorrect complexity for <tt>sample()</tt> algorithm</h3>
-<p><b>Section:</b> X [alg.random.sample] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Joe Gottman <b>Opened:</b> 2014-12-17 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p><b>Addresses: fund.ts</b></p>
-<p>
-According to paragraph 10.1 of the Library Fundamentals 1 draft, the complexity of the new 
-<tt>std::experimental::sample</tt> template function is O(<tt>n</tt>). Note that <tt>n</tt> is actually 
-a parameter of this function, corresponding to the sample size. But both common algorithms for 
-sampling, the selection algorithm and the reservoir algorithm, are linear with respect to the 
-population size, which is often many orders of magnitude bigger than the sample size.
-</p>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-AM: I suggest we make this a DR against the Fundamentals TS.<br/> 
-GR: Agreed, this is a no-brainer. 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4335 in regard to fundamental-ts changes.</p>
-
-<ol>
-<li><p>Change X [alg.random.sample] p5 to read:</p>
-
-<blockquote>
-<p>
--5- <i>Complexity</i>: O(<tt><del>n</del><ins>last - first</ins></tt>). 
-</p>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2464"></a>2464. <tt>try_emplace</tt> and <tt>insert_or_assign</tt> misspecified</h3>
-<p><b>Section:</b> 23.4.4.4 [map.modifiers], 23.5.4.4 [unord.map.modifiers] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Thomas Koeppe <b>Opened:</b> 2014-12-17 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all other</b> <a href="lwg-index.html#map.modifiers">issues</a> in [map.modifiers].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-The specification of the <tt>try_emplace</tt> and <tt>insert_or_assign</tt> member functions in N4279 
-contains the following errors and omissions:
-</p>
-<ol>
-<li><p>In <tt>insert_or_assign</tt>, each occurrence of <tt>std::forward&lt;Args&gt;(args)...</tt> 
-should be <tt>std::forward&lt;M&gt;(obj)</tt>; this is was a mistake introduced in editing.</p></li>
-
-<li><p>In <tt>try_emplace</tt>, the construction of the <tt>value_type</tt> is misspecified, which 
-is a mistake that was introduced during the evolution from a one-parameter to a variadic form. 
-As written, <tt>value_type(k, std::forward&lt;Args&gt;(args)...)</tt> does not do the right thing; 
-it can only be used with a single argument, which moreover must be convertible to a <tt>mapped_type</tt>. 
-The intention is to allow direct-initialization from an argument pack, and the correct constructor 
-should be <tt>value_type(piecewise_construct, forward_as_tuple(k), 
-forward_as_tuple(std::forward&lt;Args&gt;(args)...)</tt>.</p></li>
-
-<li><p> Both <tt>try_emplace</tt> and <tt>insert_or_assign</tt> are missing requirements on the 
-argument types. Since the semantics of these functions are specified independent of other functions, 
-they need to include their requirements.</p></li>
-</ol>
-
-<p><i>[2015-02, Cologne]</i></p>
-
-<p>
-This issue is related to <a href="lwg-active.html#2469">2469</a>.
-<p/>
-AM: The repeated references to "first and third forms" and "second and fourth forms" is a bit cumbersome. 
-Maybe split the four functions?<br/>
-GR: We don't have precendent for "EmplaceConstructible from a, b, c". I don't like the ambiguity between code commas and 
-text commas.<br/> 
-TK: What's the danger?<br/> 
-GR: It's difficult to follow standardese.<br/>
-AM: It seems fine with code commas. What's the problem?<br/> 
-GR: It will lead to difficulties when we use a similar construction that's not at the end of a sentence.<br/> 
-AM: That's premature generalization. DK: When that happens, let's look at this again.<br/>
-AM: Clean up "if the map does contain"<br/>
-TK: Can we call both containers "map"? DK/GR: yes.<br/>
-TK will send updated wording to DK.
-<p/>
-Conclusion: Update wording, then poll for tentatively ready
-</p> 
-
-<p><i>[2015-03-26, Thomas provides improved wording]</i></p>
-
-<p>
-The approach is to split the descriptions of the various blocks of four functions into two blocks each so as to make 
-the wording easier to follow.
-</p>
-
-<strong>Previous resolution [SUPERSEDED]:</strong>
-<blockquote class="note">
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Apply the following changes to section 23.4.4.4 [map.modifiers] p3:</p>
-
-<blockquote>
-<pre>
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(const key_type&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(key_type&amp;&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, const key_type&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, key_type&amp;&amp; k, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: For the first and third forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into map
-from <tt>piecewise_construct</tt>, <tt>forward_as_tuple(k)</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.
-For the second and fourth forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into map
-from <tt>piecewise_construct</tt>, <tt>forward_as_tuple(move(k))</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins> 
-<p/>
--3- <i>Effects</i>: <del>If the key <tt>k</tt> already exists in the map, there is no effect. Otherwise, inserts an element 
-into the map. In the first and third forms, the element is constructed from the arguments as <tt>value_type(k,
-std::forward&lt;Args&gt;(args)...)</tt>. In the second and fourth forms, the element is 
-constructed from the arguments as <tt>value_type(std::move(k), std::forward&lt;Args&gt;(args)...)</tt>. 
-In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only if the 
-insertion took place. The returned iterator points to the element of the map whose key is equivalent to <tt>k</tt></del>
-<ins>If the map does already contain an element whose key is equivalent to <tt>k</tt>, there is no effect.
-Otherwise for the first and third forms inserts a <tt>value_type</tt> object <tt>t</tt> constructed with
-<tt>piecewise_construct</tt>, <tt>forward_as_tuple(k)</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>,
-for the second and fourth forms inserts a <tt>value_type</tt> object <tt>t</tt> constructed with
-<tt>piecewise_construct</tt>, <tt>forward_as_tuple(move(k))</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> 
-if and only if the insertion took place. The returned iterator points to the map element whose key is equivalent to 
-<tt>k</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Apply the following changes to section 23.4.4.4 [map.modifiers] p5:</p>
-
-<blockquote>
-<pre>
-template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(const key_type&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(key_type&amp;&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, const key_type&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, key_type&amp;&amp; k, M&amp;&amp; obj);
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>is_assignable&lt;mapped_type&amp;, M&amp;&amp;>::value</tt> shall be true.
-For the first and third forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into map from <tt>k</tt>, 
-<tt>forward&lt;M&gt;(obj)</tt>. For the second and fourth forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> 
-into map from <tt>move(k), forward&lt;M&gt;(obj)</tt>.</ins> 
-<p/>
--5- <i>Effects</i>: <del>If the key <tt>k</tt> does not exist in the map, inserts an element into the map. In the first 
-and third forms, the element is constructed from the arguments as <tt>value_type(k, std::forward&lt;Args&gt;(args)...)</tt>. 
-In the second and fourth forms, the element is constructed from the arguments as <tt>value_type(std::move(k), 
-std::forward&lt;Args&gt;(args)...)</tt>. If the key already exists, <tt>std::forward&lt;M&gt;(obj)</tt> is assigned to the
-<tt>mapped_type</tt> corresponding to the key. In the first two overloads, the <tt>bool</tt> component of the returned
-value is true if and only if the insertion took place. The returned iterator points to the element that
-was inserted or updated</del>
-<ins>If the map does already contain an element whose key is equivalent to <tt>k</tt>,
-<tt>forward&lt;M&gt;(obj)</tt> is assigned to the <tt>mapped_type</tt> corresponding to the key.
-Otherwise the first and third forms inserts a <tt>value_type</tt> object <tt>t</tt> constructed with <tt>k</tt>, 
-<tt>forward&lt;M&gt;(obj)</tt>, the second and fourth forms inserts a <tt>value_type</tt> object <tt>t</tt> 
-constructed with <tt>move(k), forward&lt;M&gt;(obj)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> 
-if and only if the insertion took place. The returned iterator points to the element of the map whose key is equivalent to 
-<tt>k</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Apply the following changes to section 23.5.4.4 [unord.map.modifiers] p5:</p>
-
-<blockquote>
-<pre>
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(const key_type&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(key_type&amp;&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, const key_type&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, key_type&amp;&amp; k, Args&amp;&amp;... args);
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: For the first and third forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into unordered_map
-from <tt>piecewise_construct</tt>, <tt>forward_as_tuple(k)</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.
-For the second and fourth forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into unordered_map
-from <tt>piecewise_construct</tt>, <tt>forward_as_tuple(move(k))</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins> 
-<p/>
--5- <i>Effects</i>: <del>If the key <tt>k</tt> already exists in the map, there is no effect. Otherwise, inserts an element 
-into the map. In the first and third forms, the element is constructed from the arguments as <tt>value_type(k,
-std::forward&lt;Args&gt;(args)...)</tt>. In the second and fourth forms, the element is 
-constructed from the arguments as <tt>value_type(std::move(k), std::forward&lt;Args&gt;(args)...)</tt>. 
-In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only if the 
-insertion took place. The returned iterator points to the element of the map whose key is equivalent to <tt>k</tt></del>
-<ins>If the unordered_map does already contain an element whose key is equivalent to <tt>k</tt>, there is no effect.
-Otherwise for the first and third forms inserts a <tt>value_type</tt> object <tt>t</tt> constructed with
-<tt>piecewise_construct</tt>, <tt>forward_as_tuple(k)</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>,
-for the second and fourth forms inserts a <tt>value_type</tt> object <tt>t</tt> constructed with
-<tt>piecewise_construct</tt>, <tt>forward_as_tuple(move(k))</tt>, <tt>forward_as_tuple(forward&lt;Args&gt;(args)...)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> 
-if and only if the insertion took place. The returned iterator points to the element of the unordered_map whose key is equivalent to 
-<tt>k</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Apply the following changes to section 23.5.4.4 [unord.map.modifiers] p7:</p>
-
-<blockquote>
-<pre>
-template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(const key_type&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(key_type&amp;&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, const key_type&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, key_type&amp;&amp; k, M&amp;&amp; obj);
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>is_assignable&lt;mapped_type&amp;, M&amp;&amp;>::value</tt> shall be true.
-For the first and third forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into unordered_map from <tt>k</tt>, 
-<tt>forward&lt;M&gt;(obj)</tt>. For the second and fourth forms, <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> 
-into unordered_map from <tt>move(k), forward&lt;M&gt;(obj)</tt>.</ins> 
-<p/>
--7- <i>Effects</i>: <del>If the key <tt>k</tt> does not exist in the map, inserts an element into the map. 
-In the first and third forms, the element is constructed from the arguments as <tt>value_type(k, std::forward&lt;Args&gt;(args)...)</tt>. 
-In the second and fourth forms, the element is constructed from the arguments as <tt>value_type(std::move(k), 
-std::forward&lt;Args&gt;(args)...)</tt>. If the key already exists, <tt>std::forward&lt;M&gt;(obj)</tt> is assigned to the
-<tt>mapped_type</tt> corresponding to the key. In the first two overloads, the <tt>bool</tt> component of the returned
-value is true if and only if the insertion took place. The returned iterator points to the element that
-was inserted or updated</del>
-<ins>If the unordered_map does already contain an element whose key is equivalent to <tt>k</tt>,
-<tt>forward&lt;M&gt;(obj)</tt> is assigned to the <tt>mapped_type</tt> corresponding to the key.
-Otherwise the first and third forms inserts a <tt>value_type</tt> object <tt>t</tt> constructed with <tt>k</tt>, 
-<tt>forward&lt;M&gt;(obj)</tt>, the second and fourth forms inserts a <tt>value_type</tt> object <tt>t</tt> 
-constructed with <tt>move(k), forward&lt;M&gt;(obj)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> 
-if and only if the insertion took place. The returned iterator points to the element of the unordered_map whose key is 
-equivalent to <tt>k</tt>.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-</blockquote>
-
-<p><i>[2015-05, Lenexa]</i></p>
-
-<p>
-STL: existing wording is horrible, this is Thomas' wording and his issue<br/>
-STL: already implemented the piecewise part<br/>
-MC: ok with changes<br/>
-STL: changes are mechanical<br/>
-STL: believe this is P1, it must be fixed, we have wording<br/>
-PJP: functions are sensible<br/>
-STL: has been implemented<br/>
-MC: consensus is to move to ready 
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Apply the following changes to 23.4.4.4 [map.modifiers] p3+p4:</p>
-
-<blockquote>
-<pre>
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(const key_type&amp; k, Args&amp;&amp;... args);
-<del>template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(key_type&amp;&amp; k, Args&amp;&amp;... args);</del>
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, const key_type&amp; k, Args&amp;&amp;... args);
-<del>template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, key_type&amp;&amp; k, Args&amp;&amp;... args);</del>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>map</tt> from 
-<tt>piecewise_construct, forward_as_tuple(k), forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins> 
-<p/>
--3- <i>Effects</i>: <del>If the key <tt>k</tt> already exists in the map, there is no effect. Otherwise, inserts an element 
-into the map. In the first and third forms, the element is constructed from the arguments as <tt>value_type(k,
-std::forward&lt;Args&gt;(args)...)</tt>. In the second and fourth forms, the element is 
-constructed from the arguments as <tt>value_type(std::move(k), std::forward&lt;Args&gt;(args)...)</tt>. 
-In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only if the 
-insertion took place. The returned iterator points to the element of the map whose key is equivalent to <tt>k</tt></del>
-<ins>If the map already contains an element whose key is equivalent to <tt>k</tt>, there is no effect. Otherwise inserts an 
-object of type <tt>value_type</tt> constructed with <tt>piecewise_construct, forward_as_tuple(k), 
-forward_as_tuple(forward&lt;Args&gt;(args)...)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only 
-if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
--4- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.
-</p>
-</blockquote>
-
-<pre>
-<ins>template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(key_type&amp;&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, key_type&amp;&amp; k, Args&amp;&amp;... args);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>map</tt> from 
-<tt>piecewise_construct, forward_as_tuple(move(k)), forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins>
-<p/>
-<ins>-?- <i>Effects</i>: If the map already contains an element whose key is equivalent to <tt>k</tt>, there is no effect. 
-Otherwise inserts an object of type <tt>value_type</tt> constructed with <tt>piecewise_construct, forward_as_tuple(move(k)), 
-forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only 
-if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Apply the following changes to 23.4.4.4 [map.modifiers] p5+p6:</p>
-
-<blockquote>
-<pre>
-template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(const key_type&amp; k, M&amp;&amp; obj);
-<del>template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(key_type&amp;&amp; k, M&amp;&amp; obj);</del>
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, const key_type&amp; k, M&amp;&amp; obj);
-<del>template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, key_type&amp;&amp; k, M&amp;&amp; obj);</del>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>is_assignable&lt;mapped_type&amp;, M&amp;&amp;&gt;::value</tt> shall be <tt>true</tt>. 
-<tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>map</tt> from <tt>k, forward&lt;M&gt;(obj)</tt>.</ins> 
-<p/>
--5- <i>Effects</i>: <del>If the key <tt>k</tt> does not exist in the map, inserts an element into the map. In the first 
-and third forms, the element is constructed from the arguments as <tt>value_type(k, std::forward&lt;Args&gt;(args)...)</tt>. 
-In the second and fourth forms, the element is constructed from the arguments as <tt>value_type(std::move(k), 
-std::forward&lt;Args&gt;(args)...)</tt>. If the key already exists, <tt>std::forward&lt;M&gt;(obj)</tt> is assigned to the
-<tt>mapped_type</tt> corresponding to the key. In the first two overloads, the <tt>bool</tt> component of the returned
-value is true if and only if the insertion took place. The returned iterator points to the element that
-was inserted or updated</del>
-<ins>If the map already contains an element <tt>e</tt> whose key is equivalent to <tt>k</tt>, assigns <tt>forward&lt;M&gt;(obj)</tt> 
-to <tt>e.second</tt>. Otherwise inserts an object of type <tt>value_type</tt> constructed with <tt>k, forward&lt;M&gt;(obj)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and 
-only if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
--6- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.
-</p>
-</blockquote>
-<pre>
-<ins>template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(key_type&amp;&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, key_type&amp;&amp; k, M&amp;&amp; obj);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>is_assignable&lt;mapped_type&amp;, M&amp;&amp;&gt;::value</tt> shall be <tt>true</tt>. 
-<tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>map</tt> from <tt>move(k), forward&lt;M&gt;(obj)</tt>.</ins>
-<p/>
-<ins>-?- <i>Effects</i>: If the map already contains an element <tt>e</tt> whose key is equivalent to <tt>k</tt>, 
-assigns <tt>forward&lt;M&gt;(obj)</tt> to <tt>e.second</tt>. Otherwise inserts an object of type <tt>value_type</tt> 
-constructed with <tt>move(k), forward&lt;M&gt;(obj)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only 
-if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Apply the following changes to 23.5.4.4 [unord.map.modifiers] p5+p6:</p>
-
-<blockquote>
-<pre>
-template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(const key_type&amp; k, Args&amp;&amp;... args);
-<del>template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(key_type&amp;&amp; k, Args&amp;&amp;... args);</del>
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, const key_type&amp; k, Args&amp;&amp;... args);
-<del>template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, key_type&amp;&amp; k, Args&amp;&amp;... args);</del>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>unordered_map</tt> from 
-<tt>piecewise_construct, forward_as_tuple(k), forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins> 
-<p/>
--5- <i>Effects</i>: <del>If the key <tt>k</tt> already exists in the map, there is no effect. Otherwise, inserts an element 
-into the map. In the first and third forms, the element is constructed from the arguments as <tt>value_type(k,
-std::forward&lt;Args&gt;(args)...)</tt>. In the second and fourth forms, the element is 
-constructed from the arguments as <tt>value_type(std::move(k), std::forward&lt;Args&gt;(args)...)</tt>. 
-In the first two overloads, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only if the 
-insertion took place. The returned iterator points to the element of the map whose key is equivalent to <tt>k</tt></del>
-<ins>If the map already contains an element whose key is equivalent to <tt>k</tt>, there is no effect. Otherwise inserts 
-an object of type <tt>value_type</tt> constructed with <tt>piecewise_construct, forward_as_tuple(k), 
-forward_as_tuple(forward&lt;Args&gt;(args)...)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only 
-if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
--6- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.
-</p>
-</blockquote>
-<pre>
-<ins>template &lt;class... Args&gt; pair&lt;iterator, bool&gt; try_emplace(key_type&amp;&amp; k, Args&amp;&amp;... args);
-template &lt;class... Args&gt; iterator try_emplace(const_iterator hint, key_type&amp;&amp; k, Args&amp;&amp;... args);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>unordered_map</tt> from 
-<tt>piecewise_construct, forward_as_tuple(move(k)), forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins>
-<p/>
-<ins>-?- <i>Effects</i>: If the map already contains an element whose key is equivalent to <tt>k</tt>, there is no effect. 
-Otherwise inserts an object of type <tt>value_type</tt> constructed with <tt>piecewise_construct, forward_as_tuple(move(k)), 
-forward_as_tuple(forward&lt;Args&gt;(args)...)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if and only 
-if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-<li><p>Apply the following changes to 23.5.4.4 [unord.map.modifiers] p7+p8:</p>
-
-<blockquote>
-<pre>
-template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(const key_type&amp; k, M&amp;&amp; obj);
-<del>template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(key_type&amp;&amp; k, M&amp;&amp; obj);</del>
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, const key_type&amp; k, M&amp;&amp; obj);
-<del>template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, key_type&amp;&amp; k, M&amp;&amp; obj);</del>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>is_assignable&lt;mapped_type&amp;, M&amp;&amp;&gt;::value</tt> shall be <tt>true</tt>. 
-<tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>unordered_map</tt> from <tt>k, 
-forward&lt;M&gt;(obj)</tt>.</ins> 
-<p/>
--7- <i>Effects</i>: <del>If the key <tt>k</tt> does not exist in the map, inserts an element into the map. 
-In the first and third forms, the element is constructed from the arguments as <tt>value_type(k, std::forward&lt;Args&gt;(args)...)</tt>. 
-In the second and fourth forms, the element is constructed from the arguments as <tt>value_type(std::move(k), 
-std::forward&lt;Args&gt;(args)...)</tt>. If the key already exists, <tt>std::forward&lt;M&gt;(obj)</tt> is assigned to the
-<tt>mapped_type</tt> corresponding to the key. In the first two overloads, the <tt>bool</tt> component of the returned
-value is true if and only if the insertion took place. The returned iterator points to the element that
-was inserted or updated</del>
-<ins>If the map already contains an element <tt>e</tt> whose key is equivalent to <tt>k</tt>, assigns <tt>forward&lt;M&gt;(obj)</tt> 
-to <tt>e.second</tt>. Otherwise inserts an object of type <tt>value_type</tt> constructed with <tt>k, forward&lt;M&gt;(obj)</tt></ins>.
-<p/>
-<ins>-?- <i>Returns</i>: In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if 
-and only if the insertion took place. The returned iterator points to the map element whose key is equivalent to <tt>k</tt>.</ins>
-<p/>
--8- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.
-</p>
-</blockquote>
-<pre>
-<ins>template &lt;class M&gt; pair&lt;iterator, bool&gt; insert_or_assign(key_type&amp;&amp; k, M&amp;&amp; obj);
-template &lt;class M&gt; iterator insert_or_assign(const_iterator hint, key_type&amp;&amp; k, M&amp;&amp; obj);</ins>
-</pre>
-<blockquote>
-<p>
-<ins>-?- <i>Requires</i>: <tt>is_assignable&lt;mapped_type&amp;, M&amp;&amp;&gt;::value</tt> shall be <tt>true</tt>. 
-<tt>value_type</tt> shall be <tt>EmplaceConstructible</tt> into <tt>unordered_map</tt> from <tt>move(k), 
-forward&lt;M&gt;(obj)</tt>.</ins>
-<p/>
-<ins>-?- <i>Effects</i>: If the map already contains an element <tt>e</tt> whose key is equivalent to <tt>k</tt>, 
-assigns <tt>forward&lt;M&gt;(obj)</tt> to <tt>e.second</tt>. Otherwise inserts an object of type <tt>value_type</tt> 
-constructed with <tt>move(k), forward&lt;M&gt;(obj)</tt>.</ins>
-<p/>
-<ins>-?- <i>Returns</i>:  In the first overload, the <tt>bool</tt> component of the returned pair is <tt>true</tt> if 
-and only if the insertion took place. The returned iterator points to the map element whose key is equivalent to 
-<tt>k</tt>.</ins>
-<p/>
-<ins>-?- <i>Complexity</i>: The same as <tt>emplace</tt> and <tt>emplace_hint</tt>, respectively.</ins>
-</p>
-</blockquote>
-</blockquote>
-</li>
-
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2467"></a>2467. <tt>is_always_equal</tt> has slightly inconsistent default</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements], 20.7.8.1 [allocator.traits.types] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Howard Hinnant <b>Opened:</b> 2015-01-18 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-Table 28 &mdash; "Allocator requirements" says that <tt>X::is_always_equal</tt> has a default value 
-of <tt>is_empty&lt;X&gt;</tt>, and this is consistent with the return type description:
-</p>
-<blockquote>
-<p>
-Identical to or derived from <tt>true_type</tt> or <tt>false_type</tt>
-</p>
-</blockquote>
-<p>
-<tt>is_empty&lt;X&gt;</tt> is guaranteed to be derived from either <tt>true_type</tt> or <tt>false_type</tt>.  
-So far so good.
-<p/>
-20.7.8.1 [allocator.traits.types]/p10 says:
-</p>
-<blockquote>
-<pre>
-typedef <i>see below</i> is_always_equal;
-</pre>
-<blockquote>
-<p>
-<i>Type</i>: <tt>Alloc::is_always_equal</tt> if the qualified-id <tt>Alloc::is_always_equal</tt> is valid and denotes a
-type (14.8.2); otherwise <tt>is_empty&lt;Alloc&gt;::type</tt>.
-</p>
-</blockquote>
-</blockquote>
-<p>
-This is subtly different than what Table 28 says is the default: <tt>is_empty&lt;Alloc&gt;::type</tt> is 
-not <tt>is_empty&lt;Alloc&gt;</tt>, but is rather one of <tt>true_type</tt> or <tt>false_type</tt>.
-<p/>
-There are two ways to fix this:
-</p>
-<ol>
-<li>
-<p>
-Change Table 28 to say: <tt>is_empty&lt;X&gt;<ins>::type</ins></tt>.
-<p/>
-or
-</p></li>
-
-<li><p>Change 20.7.8.1 [allocator.traits.types]/p10:</p></li>
-<blockquote>
-<p>
-<i>Type</i>: <tt>Alloc::is_always_equal</tt> if the qualified-id <tt>Alloc::is_always_equal</tt> is valid and denotes a
-type (14.8.2); otherwise <tt>is_empty&lt;Alloc&gt;<del>::type</del></tt>.
-</p>
-</blockquote>
-</ol>
-<p>
-Both options are correct, and I see no reason to prefer one fix over the other. But Table 28 and 
-20.7.8.1 [allocator.traits.types]/p10 should be consistent with one another.
-</p>
-
-<p><i>[2015-02 Cologne]</i></p>
-
-<p>
-DK: We should accept the first bullet. GR: Why does <tt>is_empty</tt> even have a type member? AM: All type traits 
-have a type member. I agree with DK's preference for the first type.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>
-This wording is relative to N4296.
-</p>
-
-<ol>
-<li><p>Change 17.6.3.5 [allocator.requirements], Table 28 &mdash; "Allocator requirements" as presented:</p>
-
-<blockquote>
-<table border="1">
-<caption>Table 28 &mdash; Allocator requirements</caption>
-<tr>
-<th>Expression</th>
-<th>Return type</th>
-<th>Assertion&#47;note<br/>pre-&#47;post-condition</th>
-<th>Default</th>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>X::is_always_equal</tt>
-</td>
-<td>
-Identical to or derived<br/>
-from <tt>true_type</tt> or<br/>
-<tt>false_type</tt>
-</td>
-<td>
-[&hellip;]
-</td>
-<td>
-<tt>is_empty&lt;X&gt;<ins>::type</ins></tt>
-</td>
-</tr>
-
-<tr>
-<td colspan="4" align="center">
-<tt>&hellip;</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2470"></a>2470. Allocator's <tt>destroy</tt> function should be allowed to fail to instantiate</h3>
-<p><b>Section:</b> 17.6.3.5 [allocator.requirements] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Daniel Kr&uuml;gler <b>Opened:</b> 2015-03-22 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#allocator.requirements">active issues</a> in [allocator.requirements].</p>
-<p><b>View all other</b> <a href="lwg-index.html#allocator.requirements">issues</a> in [allocator.requirements].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-This issue is a spin-off of issue LWG <a href="lwg-active.html#2447">2447</a>: It focuses on the observation that
-17.6.3.5 [allocator.requirements] p9 (based on the numbering of working draft N4296) gives 
-the template member <tt>construct</tt> more relaxations than the template member <tt>destroy</tt>:
-</p>
-<blockquote>
-<p>
-An allocator may constrain the types on which it can be instantiated and the arguments for which its
-<tt>construct</tt> member may be called. If a type cannot be used with a particular allocator, the allocator class
-or the call to <tt>construct</tt> may fail to instantiate.
-</p>
-</blockquote>
-<p>
-Construction and destruction of a type <tt>T</tt> are usually intimately related to each other, so it
-seems similarly useful to allow the <tt>destroy</tt> member to fail to instantiate for a possible sub-set
-of instantiation types.
-</p>
-
-<p><i>[2015-04-01 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 17.6.3.5 [allocator.requirements] p9 as indicated:</p>
-
-<blockquote><p>
--8- An allocator may constrain the types on which it can be instantiated and the arguments for which its
-<tt>construct</tt> <ins>or <tt>destroy</tt></ins> member<ins>s</ins> may be called. If a type cannot be 
-used with a particular allocator, the allocator class or the call to <tt>construct</tt> <ins>or <tt>destroy</tt></ins> 
-may fail to instantiate.
-</p></blockquote>
-</li>
-</ol>
-
-
-
-
-
-<hr>
-<h3><a name="2482"></a>2482. [c.strings] Table 73 mentions nonexistent functions</h3>
-<p><b>Section:</b> 21.8 [c.strings] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> S. B.Tam <b>Opened:</b> 2015-01-18 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View other</b> <a href="lwg-index-open.html#c.strings">active issues</a> in [c.strings].</p>
-<p><b>View all other</b> <a href="lwg-index.html#c.strings">issues</a> in [c.strings].</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-N4296 Table 73 mentions the functions <tt>mbsrtowc</tt> and <tt>wcsrtomb</tt>, which are not defined in ISO C 
-or ISO C++. Presumably they should be <tt>mbsrtowcs</tt> and <tt>wcsrtombs</tt> instead. 
-</p>
-
-<p><i>[2015-04-02 Library reflector vote]</i></p>
-
-<p>
-The issue has been identified as Tentatively Ready based on six votes in favour.
-</p>
-
-
-<p><b>Proposed resolution:</b></p>
-
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li>
-<blockquote>
-<table border="1" cellpadding="4" rules="groups" style="table-layout:fixed">
-<caption>Table 33 &mdash; Potential <tt>mbstate_t</tt> data races</caption>
-<tr>
-<td>
-<tt>mbrlen</tt>
-</td>
-<td>
-<tt>mbrtowc</tt>
-</td>
-<td>
-<tt>mbsrtowc<ins>s</ins></tt>
-</td>
-<td>
-<tt>mbtowc</tt>
-</td>
-<td>
-<tt>wcrtomb</tt>
-</td>
-</tr>
-
-<tr>
-<td>
-<tt>wcsrtomb<ins>s</ins></tt>
-</td>
-<td>
-<tt>wctomb</tt>
-</td>
-</tr>
-
-</table>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-<hr>
-<h3><a name="2488"></a>2488. Placeholders should be allowed and encouraged to be <tt>constexpr</tt></h3>
-<p><b>Section:</b> 20.9.10.4 [func.bind.place] <b>Status:</b> <a href="lwg-active.html#WP">WP</a>
- <b>Submitter:</b> Stephan T. Lavavej <b>Opened:</b> 2015-03-27 <b>Last modified:</b> 2015-05-22</p>
-<p><b>View all issues with</b> <a href="lwg-status.html#WP">WP</a> status.</p>
-<p><b>Discussion:</b></p>
-<p>
-<tt>piecewise_construct</tt> (20.3.5 [pair.piecewise]), <tt>allocator_arg</tt> (20.7.6 [allocator.tag]), 
-and <tt>adopt_lock</tt>/<tt>defer_lock</tt>/<tt>try_to_lock</tt> (30.4.2 [thread.lock]) are all required to be 
-<tt>constexpr</tt> with internal linkage. <tt>bind()</tt>'s placeholders should be allowed to follow this modern practice, 
-for increased consistency and reduced implementer headaches (header-only is easier than separately-compiled).
-</p>
-
-<p><i>[2015-05-07 Lenexa: Move to Immediate]</i></p>
-
-<p>STL: I'd like this one immediate.</p>
-<p>Jonathan: I want to think about forcing constexpr, but the current issue, I have no objections. I'd say ready, but I won't object to immediate if STL wants it.</p>
-<p>Marshall: You should report in Kona how it worked out.</p>
-<p>STL: We went around a bit on the reflector about how to phrase the encouragement.</p>
-<p>Jonathan: I think the shall may be not quite right.</p>
-<p>Marshall: I see, you can change your implementation, but you don't.</p>
-<p>Jonathan: There's precedent for the shall, but it's wrong, see editorial issue 493.</p>
-<p>STL: I would prefer not to ask Daniel to reword, and 493 can fix it later.</p>
-<p>Marshall: I remove my objection to immediate because it doesn't force implementations to change.</p>
-<p>Marshall: Any other discussion?</p>
-<p>Marshall: Immediate vote: 6. Opposed, 0. Abstain, 1.</p>
-
-
-
-<p><b>Proposed resolution:</b></p>
-<p>This wording is relative to N4296.</p>
-
-<ol>
-<li><p>Change 20.9 [function.objects] p2 "Header <tt>&lt;functional&gt;</tt> synopsis" as depicted:</p>
-
-<blockquote>
-<pre>
-namespace placeholders {
-  <i>// M is the implementation-defined number of placeholders</i>
-  <ins><i>see below</i></ins><del>extern <i>unspecified</i></del> _1;
-  <ins><i>see below</i></ins><del>extern <i>unspecified</i></del> _2;
-  ...
-  <ins><i>see below</i></ins><del>extern <i>unspecified</i></del> _M;
-}
-</pre>
-</blockquote>
-</li>
-
-<li><p>Change 20.9.10.4 [func.bind.place] p2 as depicted:</p>
-
-<blockquote>
-<pre>
-namespace std::placeholders {
-  <i>// M is the implementation-defined number of placeholders</i>
-  <ins><i>see below</i></ins><del>extern <i>unspecified</i></del> _1;
-  <ins><i>see below</i></ins><del>extern <i>unspecified</i></del> _2;
-             .
-             .
-             .
-  <ins><i>see below</i></ins><del>extern <i>unspecified</i></del> _M;
-}
-</pre>
-<p>
--1- All placeholder types shall be <tt>DefaultConstructible</tt> and <tt>CopyConstructible</tt>, and 
-their default constructors and copy/move constructors shall not throw exceptions. It is 
-implementation-defined whether placeholder types are <tt>CopyAssignable</tt>. <tt>CopyAssignable</tt> 
-placeholders' copy assignment operators shall not throw exceptions.
-<p/>
-<ins>-?- Placeholders should be defined as:</ins>
-</p>
-<blockquote>
-<pre>
-<ins>constexpr <i>unspecified</i> _1{};</ins>
-</pre>
-</blockquote>
-<p>
-<ins>If they are not, they shall be declared as:</ins>
-</p>
-<blockquote>
-<pre>
-<ins>extern <i>unspecified</i> _1;</ins>
-</pre>
-</blockquote>
-</blockquote>
-</li>
-</ol>
-
-
-
-
-
-
-</body>
-</html>
diff --git a/libstdc++-v3/doc/xml/manual/intro.xml b/libstdc++-v3/doc/xml/manual/intro.xml
index db6e09a7793c0cde8c21567ddabc348f91c00863..b750f0a678576ac0af5e55faa201a050c6f518ef 100644
--- a/libstdc++-v3/doc/xml/manual/intro.xml
+++ b/libstdc++-v3/doc/xml/manual/intro.xml
@@ -1,3 +1,9 @@
+<?xml version='1.0'?>
+<!DOCTYPE part [
+  <!ENTITY DR
+"http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html">
+] >
+
 <part xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="manual.intro" xreflabel="Introduction">
 <?dbhtml filename="intro.html"?>
 
@@ -208,19 +214,7 @@ requirements of the license of GCC.
 	The links are to the specific defect reports from a <emphasis>partial
 	copy</emphasis> of the Issues List.  You can read the full version online
 	at the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.open-std.org/jtc1/sc22/wg21/">ISO C++
-	Committee homepage</link>, linked to on the
-	<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://gcc.gnu.org/readings.html">GCC "Readings"
-	page</link>.  If
-	you spend a lot of time reading the issues, we recommend downloading
-	the ZIP file and reading them locally.
-      </para>
-      <para>
-	(NB: <emphasis>partial copy</emphasis> means that not all
-	links within the lwg-*.html pages will work.  Specifically,
-	links to defect reports that have not been accorded full DR
-	status will probably break.  Rather than trying to mirror the
-	entire issues list on our overworked web server, we recommend
-	you go to the LWG homepage instead.)
+	Committee homepage</link>.
       </para>
       <para>
 	If a DR is not listed here, we may simply not have gotten to
@@ -228,60 +222,60 @@ requirements of the license of GCC.
 	and src directories for appearances of
 	<constant>_GLIBCXX_RESOLVE_LIB_DEFECTS</constant> for examples
 	of style.  Note that we usually do not make changes to the
-	code until an issue has reached <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-active.html#DR">DR</link> status.
+	code until an issue has reached <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#DR">DR</link> status.
       </para>
 
       <variablelist>
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#5">5</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#5">5</link>:
 	<emphasis>string::compare specification questionable</emphasis>
     </term>
     <listitem><para>This should be two overloaded functions rather than a single function.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#17">17</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#17">17</link>:
 	<emphasis>Bad bool parsing</emphasis>
     </term>
     <listitem><para>Apparently extracting Boolean values was messed up...
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#19">19</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#19">19</link>:
 	<emphasis>"Noconv" definition too vague</emphasis>
     </term>
     <listitem><para>If <code>codecvt::do_in</code> returns <code>noconv</code> there are
 	no changes to the values in <code>[to, to_limit)</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#22">22</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#22">22</link>:
 	<emphasis>Member open vs flags</emphasis>
     </term>
     <listitem><para>Re-opening a file stream does <emphasis>not</emphasis> clear the state flags.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#23">23</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#23">23</link>:
 	<emphasis>Num_get overflow result</emphasis>
     </term>
     <listitem><para>Implement the proposed resolution.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#25">25</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#25">25</link>:
 	<emphasis>String operator&lt;&lt; uses width() value wrong</emphasis>
     </term>
     <listitem><para>Padding issues.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#48">48</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#48">48</link>:
 	<emphasis>Use of non-existent exception constructor</emphasis>
     </term>
     <listitem><para>An instance of <code>ios_base::failure</code> is constructed instead.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#49">49</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#49">49</link>:
 	<emphasis>Underspecification of ios_base::sync_with_stdio</emphasis>
     </term>
     <listitem><para>The return type is the <emphasis>previous</emphasis> state of synchronization.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#50">50</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#50">50</link>:
 	<emphasis>Copy constructor and assignment operator of ios_base</emphasis>
     </term>
     <listitem><para>These members functions are declared <code>private</code> and are
@@ -289,55 +283,55 @@ requirements of the license of GCC.
 	"copying stream state" was deemed too complicated.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#60">60</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#60">60</link>:
 	<emphasis>What is a formatted input function?</emphasis>
     </term>
     <listitem><para>This DR made many widespread changes to <code>basic_istream</code>
 	and <code>basic_ostream</code> all of which have been implemented.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#63">63</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#63">63</link>:
 	<emphasis>Exception-handling policy for unformatted output</emphasis>
     </term>
     <listitem><para>Make the policy consistent with that of formatted input, unformatted
 	input, and formatted output.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#68">68</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#68">68</link>:
 	<emphasis>Extractors for char* should store null at end</emphasis>
     </term>
     <listitem><para>And they do now.  An editing glitch in the last item in the list of
 	[27.6.1.2.3]/7.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#74">74</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#74">74</link>:
 	<emphasis>Garbled text for codecvt::do_max_length</emphasis>
     </term>
     <listitem><para>The text of the standard was gibberish.  Typos gone rampant.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#75">75</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#75">75</link>:
 	<emphasis>Contradiction in codecvt::length's argument types</emphasis>
     </term>
     <listitem><para>Change the first parameter to <code>stateT&amp;</code> and implement
 	the new effects paragraph.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#83">83</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#83">83</link>:
 	<emphasis>string::npos vs. string::max_size()</emphasis>
     </term>
     <listitem><para>Safety checks on the size of the string should test against
 	<code>max_size()</code> rather than <code>npos</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#90">90</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#90">90</link>:
 	<emphasis>Incorrect description of operator&gt;&gt; for strings</emphasis>
     </term>
     <listitem><para>The effect contain <code>isspace(c,getloc())</code> which must be
 	replaced by <code>isspace(c,is.getloc())</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#91">91</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#91">91</link>:
 	<emphasis>Description of operator&gt;&gt; and getline() for string&lt;&gt;
 	    might cause endless loop</emphasis>
     </term>
@@ -346,7 +340,7 @@ requirements of the license of GCC.
 	not required to set <code>gcount</code>).
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#103">103</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#103">103</link>:
 	<emphasis>set::iterator is required to be modifiable, but this allows
 	    modification of keys.</emphasis>
     </term>
@@ -355,14 +349,14 @@ requirements of the license of GCC.
 	</code> are constant iterators.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#109">109</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#109">109</link>:
 	<emphasis>Missing binders for non-const sequence elements</emphasis>
     </term>
     <listitem><para>The <code>binder1st</code> and <code>binder2nd</code> didn't have an
 	<code>operator()</code> taking a non-const parameter.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#110">110</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#110">110</link>:
 	<emphasis>istreambuf_iterator::equal not const</emphasis>
     </term>
     <listitem><para>This was not a const member function.  Note that the DR says to
@@ -370,84 +364,84 @@ requirements of the license of GCC.
 	overloaded version with identical contents.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#117">117</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#117">117</link>:
 	<emphasis>basic_ostream uses nonexistent num_put member functions</emphasis>
     </term>
     <listitem><para><code>num_put::put()</code> was overloaded on the wrong types.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#118">118</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#118">118</link>:
 	<emphasis>basic_istream uses nonexistent num_get member functions</emphasis>
     </term>
     <listitem><para>Same as 117, but for <code>num_get::get()</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#129">129</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#129">129</link>:
 	<emphasis>Need error indication from seekp() and seekg()</emphasis>
     </term>
     <listitem><para>These functions set <code>failbit</code> on error now.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#130">130</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#130">130</link>:
 	<emphasis>Return type of container::erase(iterator) differs for associative containers</emphasis>
     </term>
     <listitem><para>Make member <code>erase</code> return iterator for <code>set</code>, <code>multiset</code>, <code>map</code>, <code>multimap</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#136">136</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#136">136</link>:
 	<emphasis>seekp, seekg setting wrong streams?</emphasis>
     </term>
     <listitem><para><code>seekp</code> should only set the output stream, and
 	<code>seekg</code> should only set the input stream.
     </para></listitem></varlistentry>
 
-<!--<varlistentry><term><ulink url="../ext/lwg-defects.html#159">159</ulink>:
+<!--<varlistentry><term><ulink url="&DR;#159">159</ulink>:
 	<emphasis>Strange use of underflow()</emphasis>
     </term>
     <listitem><para>In fstream.tcc, the basic_filebuf&lt;&gt;::showmanyc() function
 	should probably not be calling <code>underflow()</code>.
     </para></listitem></varlistentry> -->
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#167">167</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#167">167</link>:
 	<emphasis>Improper use of traits_type::length()</emphasis>
     </term>
     <listitem><para><code>op&lt;&lt;</code> with a <code>const char*</code> was
 	calculating an incorrect number of characters to write.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#169">169</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#169">169</link>:
 	<emphasis>Bad efficiency of overflow() mandated</emphasis>
     </term>
     <listitem><para>Grow efficiently the internal array object.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#171">171</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#171">171</link>:
 	<emphasis>Strange seekpos() semantics due to joint position</emphasis>
     </term>
     <listitem><para>Quite complex to summarize...
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#181">181</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#181">181</link>:
 	<emphasis>make_pair() unintended behavior</emphasis>
     </term>
     <listitem><para>This function used to take its arguments as reference-to-const, now
 	it copies them (pass by value).
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#195">195</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#195">195</link>:
 	<emphasis>Should basic_istream::sentry's constructor ever set eofbit?</emphasis>
     </term>
     <listitem><para>Yes, it can, specifically if EOF is reached while skipping whitespace.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#211">211</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#211">211</link>:
 	<emphasis>operator&gt;&gt;(istream&amp;, string&amp;) doesn't set failbit</emphasis>
     </term>
     <listitem><para>If nothing is extracted into the string, <code>op&gt;&gt;</code> now
 	sets <code>failbit</code> (which can cause an exception, etc., etc.).
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#214">214</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#214">214</link>:
 	<emphasis>set::find() missing const overload</emphasis>
     </term>
     <listitem><para>Both <code>set</code> and <code>multiset</code> were missing
@@ -455,47 +449,47 @@ requirements of the license of GCC.
 	for const instances.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#231">231</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#231">231</link>:
 	<emphasis>Precision in iostream?</emphasis>
     </term>
     <listitem><para>For conversion from a floating-point type, <code>str.precision()</code>
 	is specified in the conversion specification.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#233">233</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#233">233</link>:
 	<emphasis>Insertion hints in associative containers</emphasis>
     </term>
     <listitem><para>Implement N1780, first check before then check after, insert as close
 	to hint as possible.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#235">235</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#235">235</link>:
 	<emphasis>No specification of default ctor for reverse_iterator</emphasis>
     </term>
     <listitem><para>The declaration of <code>reverse_iterator</code> lists a default constructor.
 	However, no specification is given what this constructor should do.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#241">241</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#241">241</link>:
 	<emphasis>Does unique_copy() require CopyConstructible and Assignable?</emphasis>
     </term>
     <listitem><para>Add a helper for forward_iterator/output_iterator, fix the existing
 	one for input_iterator/output_iterator to not rely on Assignability.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#243">243</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#243">243</link>:
 	<emphasis>get and getline when sentry reports failure</emphasis>
     </term>
     <listitem><para>Store a null character only if the character array has a non-zero size.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#251">251</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#251">251</link>:
 	<emphasis>basic_stringbuf missing allocator_type</emphasis>
     </term>
     <listitem><para>This nested typedef was originally not specified.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#253">253</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#253">253</link>:
 	<emphasis>valarray helper functions are almost entirely useless</emphasis>
     </term>
     <listitem><para>Make the copy constructor and copy-assignment operator declarations
@@ -503,60 +497,60 @@ requirements of the license of GCC.
 	definitions.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#265">265</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#265">265</link>:
 	<emphasis>std::pair::pair() effects overly restrictive</emphasis>
     </term>
     <listitem><para>The default ctor would build its members from copies of temporaries;
 	now it simply uses their respective default ctors.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#266">266</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#266">266</link>:
 	<emphasis>bad_exception::~bad_exception() missing Effects clause</emphasis>
     </term>
     <listitem><para>The <code>bad_</code>* classes no longer have destructors (they
 	are trivial), since no description of them was ever given.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#271">271</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#271">271</link>:
 	<emphasis>basic_iostream missing typedefs</emphasis>
     </term>
     <listitem><para>The typedefs it inherits from its base classes can't be used, since
 	(for example) <code>basic_iostream&lt;T&gt;::traits_type</code> is ambiguous.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#275">275</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#275">275</link>:
 	<emphasis>Wrong type in num_get::get() overloads</emphasis>
     </term>
     <listitem><para>Similar to 118.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#280">280</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#280">280</link>:
 	<emphasis>Comparison of reverse_iterator to const reverse_iterator</emphasis>
     </term>
     <listitem><para>Add global functions with two template parameters.
 	(NB: not added for now a templated assignment operator)
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#292">292</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#292">292</link>:
 	<emphasis>Effects of a.copyfmt (a)</emphasis>
     </term>
     <listitem><para>If <code>(this == &amp;rhs)</code> do nothing.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#300">300</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#300">300</link>:
 	<emphasis>List::merge() specification incomplete</emphasis>
     </term>
     <listitem><para>If <code>(this == &amp;x)</code> do nothing.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#303">303</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#303">303</link>:
 	<emphasis>Bitset input operator underspecified</emphasis>
     </term>
     <listitem><para>Basically, compare the input character to
 		    <code>is.widen(0)</code> and <code>is.widen(1)</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#305">305</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#305">305</link>:
 	<emphasis>Default behavior of codecvt&lt;wchar_t, char,
 		  mbstate_t&gt;::length()</emphasis>
     </term>
@@ -564,20 +558,20 @@ requirements of the license of GCC.
 		    mbstate_t&gt;::do_length</code> must return.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#328">328</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#328">328</link>:
 	<emphasis>Bad sprintf format modifier in
 		  money_put&lt;&gt;::do_put()</emphasis>
     </term>
     <listitem><para>Change the format string to "%.0Lf".
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#365">365</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#365">365</link>:
 	<emphasis>Lack of const-qualification in clause 27</emphasis>
     </term>
     <listitem><para>Add const overloads of <code>is_open</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#387">387</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#387">387</link>:
 	<emphasis>std::complex over-encapsulated</emphasis>
     </term>
     <listitem><para>Add the <code>real(T)</code> and <code>imag(T)</code>
@@ -586,20 +580,20 @@ requirements of the license of GCC.
 		    free functions.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#389">389</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#389">389</link>:
 	<emphasis>Const overload of valarray::operator[] returns
 		  by value</emphasis>
     </term>
     <listitem><para>Change it to return a <code>const T&amp;</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#396">396</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#396">396</link>:
 	<emphasis>what are characters zero and one</emphasis>
     </term>
     <listitem><para>Implement the proposed resolution.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#402">402</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#402">402</link>:
 	<emphasis>Wrong new expression in [some_]allocator::construct</emphasis>
     </term>
     <listitem><para>Replace "new" with "::new".
@@ -613,7 +607,7 @@ requirements of the license of GCC.
     <listitem><para>Tweak the debug-mode checks in _Safe_iterator.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#409">409</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#409">409</link>:
 	<emphasis>Closing an fstream should clear the error state</emphasis>
     </term>
     <listitem><para>Have <code>open</code> clear the error flags.
@@ -625,57 +619,57 @@ requirements of the license of GCC.
     <listitem><para>Implement Option 3, as per N1599.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#432">432</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#432">432</link>:
 	<emphasis>stringbuf::overflow() makes only one write position
 	    available</emphasis>
     </term>
     <listitem><para>Implement the resolution, beyond DR 169.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#434">434</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#434">434</link>:
 	<emphasis>bitset::to_string() hard to use</emphasis>
     </term>
     <listitem><para>Add three overloads, taking fewer template arguments.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#438">438</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#438">438</link>:
 	<emphasis>Ambiguity in the "do the right thing" clause</emphasis>
     </term>
     <listitem><para>Implement the resolution, basically cast less.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#445">445</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#445">445</link>:
 	<emphasis>iterator_traits::reference unspecified for some iterator categories</emphasis>
     </term>
     <listitem><para>Change <code>istreambuf_iterator::reference</code> in C++11 mode.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#453">453</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#453">453</link>:
 	<emphasis>basic_stringbuf::seekoff need not always fail for an empty stream</emphasis>
     </term>
     <listitem><para>Don't fail if the next pointer is null and newoff is zero.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#455">455</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#455">455</link>:
 	<emphasis>cerr::tie() and wcerr::tie() are overspecified</emphasis>
     </term>
     <listitem><para>Initialize cerr tied to cout and wcerr tied to wcout.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#464">464</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#464">464</link>:
 	<emphasis>Suggestion for new member functions in standard containers</emphasis>
     </term>
     <listitem><para>Add <code>data()</code> to <code>std::vector</code> and
 	<code>at(const key_type&amp;)</code> to <code>std::map</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#467">467</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#467">467</link>:
 	<emphasis>char_traits::lt(), compare(), and memcmp()</emphasis>
     </term>
     <listitem><para>Change <code>lt</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#508">508</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#508">508</link>:
 	<emphasis>Bad parameters for ranlux64_base_01</emphasis>
     </term>
     <listitem><para>Fix the parameters.
@@ -694,7 +688,7 @@ requirements of the license of GCC.
     <listitem><para>Use &amp;value.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#538">538</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#538">538</link>:
 	<emphasis>241 again: Does unique_copy() require CopyConstructible
 	    and Assignable?</emphasis>
     </term>
@@ -702,7 +696,7 @@ requirements of the license of GCC.
 	input_iterator' value_type.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#539">539</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#539">539</link>:
 	<emphasis>partial_sum and adjacent_difference should mention
 	    requirements</emphasis>
     </term>
@@ -710,250 +704,250 @@ requirements of the license of GCC.
 	in adjacent_difference.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#541">541</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#541">541</link>:
 	<emphasis>shared_ptr template assignment and void</emphasis>
     </term>
     <listitem><para>Add an auto_ptr&lt;void&gt; specialization.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#543">543</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#543">543</link>:
 	<emphasis>valarray slice default constructor</emphasis>
     </term>
     <listitem><para>Follow the straightforward proposed resolution.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#550">550</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#550">550</link>:
 	<emphasis>What should the return type of pow(float,int) be?</emphasis>
     </term>
     <listitem><para>In C++11 mode, remove the pow(float,int), etc., signatures.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#586">586</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#586">586</link>:
 	<emphasis>string inserter not a formatted function</emphasis>
     </term>
     <listitem><para>Change it to be a formatted output function (i.e. catch exceptions).
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#596">596</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#596">596</link>:
 	<emphasis>27.8.1.3 Table 112 omits "a+" and "a+b" modes</emphasis>
     </term>
     <listitem><para>Add the missing modes to fopen_mode.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#630">630</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#630">630</link>:
 	<emphasis>arrays of valarray</emphasis>
     </term>
     <listitem><para>Implement the simple resolution.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#660">660</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#660">660</link>:
 	<emphasis>Missing bitwise operations</emphasis>
     </term>
     <listitem><para>Add the missing operations.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#691">691</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#691">691</link>:
 	<emphasis>const_local_iterator cbegin, cend missing from TR1</emphasis>
     </term>
     <listitem><para>In C++11 mode add cbegin(size_type) and cend(size_type)
 		    to the unordered containers.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#693">693</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#693">693</link>:
 	<emphasis>std::bitset::all() missing</emphasis>
     </term>
     <listitem><para>Add it, consistently with the discussion.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#695">695</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#695">695</link>:
 	<emphasis>ctype&lt;char&gt;::classic_table() not accessible</emphasis>
     </term>
     <listitem><para>Make the member functions table and classic_table public.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#696">696</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#696">696</link>:
 	<emphasis>istream::operator&gt;&gt;(int&amp;) broken</emphasis>
     </term>
     <listitem><para>Implement the straightforward resolution.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#761">761</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#761">761</link>:
 	<emphasis>unordered_map needs an at() member function</emphasis>
     </term>
     <listitem><para>In C++11 mode, add at() and at() const.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#775">775</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#775">775</link>:
 	<emphasis>Tuple indexing should be unsigned?</emphasis>
     </term>
     <listitem><para>Implement the int -&gt; size_t replacements.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#776">776</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#776">776</link>:
 	<emphasis>Undescribed assign function of std::array</emphasis>
     </term>
     <listitem><para>In C++11 mode, remove assign, add fill.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#781">781</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#781">781</link>:
 	<emphasis>std::complex should add missing C99 functions</emphasis>
     </term>
     <listitem><para>In C++11 mode, add std::proj.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#809">809</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#809">809</link>:
 	<emphasis>std::swap should be overloaded for array types</emphasis>
     </term>
     <listitem><para>Add the overload.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#853">853</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#853">853</link>:
 	<emphasis>to_string needs updating with zero and one</emphasis>
     </term>
     <listitem><para>Update / add the signatures.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#865">865</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#865">865</link>:
 	<emphasis>More algorithms that throw away information</emphasis>
     </term>
     <listitem><para>The traditional HP / SGI return type and value is blessed
 		    by the resolution of the DR.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#1339">1339</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#1339">1339</link>:
        <emphasis>uninitialized_fill_n should return the end of its range</emphasis>
     </term>
     <listitem><para>Return the end of the filled range.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2021">2021</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2021">2021</link>:
        <emphasis>Further incorrect uses of <code>result_of</code></emphasis>
     </term>
     <listitem><para>Correctly decay types in signature of <code>std::async</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2049">2049</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2049">2049</link>:
 	<emphasis><code>is_destructible</code> underspecified</emphasis>
     </term>
     <listitem><para>Handle non-object types.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2056">2056</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2056">2056</link>:
 	<emphasis>future_errc enums start with value 0 (invalid value for broken_promise)</emphasis>
     </term>
     <listitem><para>Reorder enumerators.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2059">2059</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2059">2059</link>:
 	<emphasis>C++0x ambiguity problem with map::erase</emphasis>
     </term>
     <listitem><para>Add additional overloads.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2062">2062</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2062">2062</link>:
 	<emphasis>2062. Effect contradictions w/o no-throw guarantee of <code>std::function</code> swaps</emphasis>
     </term>
     <listitem><para>Add <code>noexcept</code> to swap functions.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2063">2063</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2063">2063</link>:
 	<emphasis>Contradictory requirements for string move assignment</emphasis>
     </term>
     <listitem><para>Respect propagation trait for move assignment.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2064">2064</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2064">2064</link>:
 	<emphasis>More noexcept issues in basic_string</emphasis>
     </term>
     <listitem><para>Add noexcept to the comparison operators.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2067">2067</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2067">2067</link>:
 	<emphasis>packaged_task should have deleted copy c'tor with const parameter</emphasis>
     </term>
     <listitem><para>Fix signatures.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2101">2101</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2101">2101</link>:
 	<emphasis>Some transformation types can produce impossible types</emphasis>
     </term>
     <listitem><para>Use the referenceable type concept.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2106">2106</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2106">2106</link>:
 	<emphasis>move_iterator wrapping iterators returning prvalues</emphasis>
     </term>
     <listitem><para>Change the <code>reference</code> type.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2108">2108</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2108">2108</link>:
 	<emphasis>No way to identify allocator types that always compare equal</emphasis>
     </term>
     <listitem><para>Define and use <code>is_always_equal</code> even for C++11.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2118">2118</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2118">2118</link>:
 	<emphasis><code>unique_ptr</code> for array does not support cv qualification conversion of actual argument</emphasis>
     </term>
     <listitem><para>Adjust constraints to allow safe conversions.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2127">2127</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2127">2127</link>:
 	<emphasis>Move-construction with <code>raw_storage_iterator</code></emphasis>
     </term>
     <listitem><para>Add assignment operator taking an rvalue.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2132">2132</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2132">2132</link>:
 	<emphasis><code>std::function</code> ambiguity</emphasis>
     </term>
     <listitem><para>Constrain the constructor to only accept callable types.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2141">2141</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2141">2141</link>:
 	<emphasis><code>common_type</code> trait produces reference types</emphasis>
     </term>
     <listitem><para>Use <code>decay</code> for the result type.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2144">2144</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2144">2144</link>:
 	<emphasis>Missing <code>noexcept</code> specification in <code>type_index</code></emphasis>
     </term>
     <listitem><para>Add <code>noexcept</code>
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2145">2145</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2145">2145</link>:
 	<emphasis><code>error_category</code> default constructor</emphasis>
     </term>
     <listitem><para>Declare a public constexpr constructor.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2162">2162</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2162">2162</link>:
 	<emphasis><code>allocator_traits::max_size</code> missing <code>noexcept</code></emphasis>
     </term>
     <listitem><para>Add <code>noexcept</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2187">2187</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2187">2187</link>:
 	<emphasis><code>vector&lt;bool&gt;</code> is missing <code>emplace</code> and <code>emplace_back</code> member functions</emphasis>
     </term>
     <listitem><para>Add <code>emplace</code> and <code>emplace_back</code> member functions.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2192">2192</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2192">2192</link>:
 	<emphasis>Validity and return type of <code>std::abs(0u)</code> is unclear</emphasis>
     </term>
     <listitem><para>Move all declarations to a common header and remove the
     generic <code>abs</code> which accepted unsigned arguments.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2196">2196</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2196">2196</link>:
 	<emphasis>Specification of <code>is_*[copy/move]_[constructible/assignable]</code> unclear for non-referencable types</emphasis>
     </term>
     <listitem><para>Use the referenceable type concept.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2212">2212</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2212">2212</link>:
 	<emphasis><code>tuple_size</code> for <code>const pair</code> request <code>&lt;tuple&gt;</code> header</emphasis>
     </term>
     <listitem><para>The <code>tuple_size</code> and <code>tuple_element</code>
@@ -961,56 +955,56 @@ requirements of the license of GCC.
     is included by <code>&lt;array&gt;</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2296">2296</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2296">2296</link>:
 	<emphasis><code>std::addressof</code> should be constexpr</emphasis>
     </term>
     <listitem><para>Use <code>__builtin_addressof</code> and add
     <code>constexpr</code> to <code>addressof</code> for C++17 and later.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2313">2313</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2313">2313</link>:
 	<emphasis><code>tuple_size</code> should always derive from <code>integral_constant&lt;size_t, N&gt;</code></emphasis>
     </term>
     <listitem><para>Update definitions of the partial specializations for const and volatile types.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2328">2328</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2328">2328</link>:
        <emphasis>Rvalue stream extraction should use perfect forwarding</emphasis>
     </term>
     <listitem><para>Use perfect forwarding for right operand.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2329">2329</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2329">2329</link>:
        <emphasis><code>regex_match()/regex_search()</code> with <code>match_results</code> should forbid temporary strings</emphasis>
     </term>
     <listitem><para>Add deleted overloads for rvalue strings.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2332">2332</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2332">2332</link>:
        <emphasis><code>regex_iterator/regex_token_iterator</code> should forbid temporary regexes</emphasis>
     </term>
     <listitem><para>Add deleted constructors.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2399">2399</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2399">2399</link>:
 	<emphasis><code>shared_ptr</code>'s constructor from <code>unique_ptr</code> should be constrained</emphasis>
     </term>
     <listitem><para>Constrain the constructor to require convertibility.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2400">2400</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2400">2400</link>:
 	<emphasis><code>shared_ptr</code>'s <code>get_deleter()</code> should use <code>addressof()</code></emphasis>
     </term>
     <listitem><para>Use <code>addressof</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2401">2401</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2401">2401</link>:
 	<emphasis><code>std::function</code> needs more <code>noexcept</code></emphasis>
     </term>
     <listitem><para>Add <code>noexcept</code> to the assignment and comparisons.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2407">2407</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2407">2407</link>:
        <emphasis><code>packaged_task(allocator_arg_t, const Allocator&amp;, F&amp;&amp;)</code>
                  should neither be constrained nor <code>explicit</code>
        </emphasis>
@@ -1018,74 +1012,74 @@ requirements of the license of GCC.
     <listitem><para>Remove <code>explicit</code> from the constructor.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2415">2415</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2415">2415</link>:
        <emphasis>Inconsistency between <code>unique_ptr</code> and <code>shared_ptr</code></emphasis>
     </term>
     <listitem><para>Create empty an <code>shared_ptr</code> from an empty
                     <code>unique_ptr</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2418">2418</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2418">2418</link>:
        <emphasis><code>apply</code> does not work with member pointers</emphasis>
     </term>
     <listitem><para>Use <code>mem_fn</code> for member pointers.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2440">2440</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2440">2440</link>:
        <emphasis><code>seed_seq::size()</code> should be <code>noexcept</code></emphasis>
     </term>
     <listitem><para>Add <code>noexcept</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2441">2441</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2441">2441</link>:
        <emphasis>Exact-width atomic typedefs should be provided</emphasis>
     </term>
     <listitem><para>Define the typedefs.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2442">2442</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2442">2442</link>:
        <emphasis><code>call_once()</code> shouldn't <code>DECAY_COPY()</code></emphasis>
     </term>
     <listitem><para>Remove indirection through call wrapper that made copies
     of arguments and forward arguments straight to <code>std::invoke</code>.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2454">2454</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2454">2454</link>:
        <emphasis>Add <code>raw_storage_iterator::base()</code> member
        </emphasis>
     </term>
     <listitem><para>Add the <code>base()</code> member function.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2455">2455</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2455">2455</link>:
        <emphasis>Allocator default construction should be allowed to throw
        </emphasis>
     </term>
     <listitem><para>Make <code>noexcept</code> specifications conditional.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2458">2458</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2458">2458</link>:
        <emphasis>N3778 and new library deallocation signatures
        </emphasis>
     </term>
     <listitem><para>Remove unused overloads.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2459">2459</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2459">2459</link>:
        <emphasis><code>std::polar</code> should require a non-negative rho
        </emphasis>
     </term>
     <listitem><para>Add debug mode assertion.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2466">2466</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2466">2466</link>:
        <emphasis><code>allocator_traits::max_size()</code> default behavior is incorrect
        </emphasis>
     </term>
     <listitem><para>Divide by the object type.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2484">2484</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2484">2484</link>:
        <emphasis><code>rethrow_if_nested()</code>  is doubly unimplementable
        </emphasis>
     </term>
@@ -1093,21 +1087,21 @@ requirements of the license of GCC.
     ill-formed.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2583">2583</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2583">2583</link>:
        <emphasis>There is no way to supply an allocator for <code>basic_string(str, pos)</code>
        </emphasis>
     </term>
     <listitem><para>Add new constructor
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2684">2684</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2684">2684</link>:
        <emphasis><code>priority_queue</code> lacking comparator typedef
        </emphasis>
     </term>
     <listitem><para>Define the <code>value_compare</code> typedef.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2770">2770</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2770">2770</link>:
        <emphasis><code>tuple_size&lt;const T&gt;</code> specialization is not
 	 SFINAE compatible and breaks decomposition declarations
        </emphasis>
@@ -1116,7 +1110,7 @@ requirements of the license of GCC.
       only use it if valid.
     </para></listitem></varlistentry>
 
-    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../ext/lwg-defects.html#2781">2781</link>:
+    <varlistentry><term><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="&DR;#2781">2781</link>:
        <emphasis>Contradictory requirements for <code>std::function</code>
          and <code>std::reference_wrapper</code>
        </emphasis>