1 |
742 |
jeremybenn |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
3 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Bugs</title><meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/><meta name="keywords" content=" ISO C++ , library "/><meta name="keywords" content=" ISO C++ , runtime , library "/><link rel="home" href="../index.html" title="The GNU C++ Library"/><link rel="up" href="status.html" title="Chapter 1. Status"/><link rel="prev" href="license.html" title="License"/><link rel="next" href="setup.html" title="Chapter 2. Setup"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Bugs</th></tr><tr><td align="left"><a accesskey="p" href="license.html">Prev</a> </td><th width="60%" align="center">Chapter 1. Status</th><td align="right"> <a accesskey="n" href="setup.html">Next</a></td></tr></table><hr/></div><div class="section" title="Bugs"><div class="titlepage"><div><div><h2 class="title"><a id="manual.intro.status.bugs"/>Bugs</h2></div></div></div><div class="section" title="Implementation Bugs"><div class="titlepage"><div><div><h3 class="title"><a id="manual.intro.status.bugs.impl"/>Implementation Bugs</h3></div></div></div><p>
|
4 |
|
|
Information on known bugs, details on efforts to fix them, and
|
5 |
|
|
fixed bugs are all available as part of the <a class="link" href="http://gcc.gnu.org/bugs/">GCC bug tracking system</a>,
|
6 |
|
|
with the category set to <code class="literal">libstdc++</code>.
|
7 |
|
|
</p></div><div class="section" title="Standard Bugs"><div class="titlepage"><div><div><h3 class="title"><a id="manual.intro.status.bugs.iso"/>Standard Bugs</h3></div></div></div><p>
|
8 |
|
|
Everybody's got issues. Even the C++ Standard Library.
|
9 |
|
|
</p><p>
|
10 |
|
|
The Library Working Group, or LWG, is the ISO subcommittee responsible
|
11 |
|
|
for making changes to the library. They periodically publish an
|
12 |
|
|
Issues List containing problems and possible solutions. As they reach
|
13 |
|
|
a consensus on proposed solutions, we often incorporate the solution.
|
14 |
|
|
</p><p>
|
15 |
|
|
Here are the issues which have resulted in code changes to the library.
|
16 |
|
|
The links are to the specific defect reports from a <span class="emphasis"><em>partial
|
17 |
|
|
copy</em></span> of the Issues List. You can read the full version online
|
18 |
|
|
at the <a class="link" href="http://www.open-std.org/jtc1/sc22/wg21/">ISO C++
|
19 |
|
|
Committee homepage</a>, linked to on the
|
20 |
|
|
<a class="link" href="http://gcc.gnu.org/readings.html">GCC "Readings"
|
21 |
|
|
page</a>. If
|
22 |
|
|
you spend a lot of time reading the issues, we recommend downloading
|
23 |
|
|
the ZIP file and reading them locally.
|
24 |
|
|
</p><p>
|
25 |
|
|
(NB: <span class="emphasis"><em>partial copy</em></span> means that not all
|
26 |
|
|
links within the lwg-*.html pages will work. Specifically,
|
27 |
|
|
links to defect reports that have not been accorded full DR
|
28 |
|
|
status will probably break. Rather than trying to mirror the
|
29 |
|
|
entire issues list on our overworked web server, we recommend
|
30 |
|
|
you go to the LWG homepage instead.)
|
31 |
|
|
</p><p>
|
32 |
|
|
If a DR is not listed here, we may simply not have gotten to
|
33 |
|
|
it yet; feel free to submit a patch. Search the include/bits
|
34 |
|
|
and src directories for appearances of
|
35 |
|
|
<code class="constant">_GLIBCXX_RESOLVE_LIB_DEFECTS</code> for examples
|
36 |
|
|
of style. Note that we usually do not make changes to the
|
37 |
|
|
code until an issue has reached <a class="link" href="../ext/lwg-active.html#DR">DR</a> status.
|
38 |
|
|
</p><div class="variablelist"><dl><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#5">5</a>:
|
39 |
|
|
<span class="emphasis"><em>string::compare specification questionable</em></span>
|
40 |
|
|
</span></dt><dd><p>This should be two overloaded functions rather than a single function.
|
41 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#17">17</a>:
|
42 |
|
|
<span class="emphasis"><em>Bad bool parsing</em></span>
|
43 |
|
|
</span></dt><dd><p>Apparently extracting Boolean values was messed up...
|
44 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#19">19</a>:
|
45 |
|
|
<span class="emphasis"><em>"Noconv" definition too vague</em></span>
|
46 |
|
|
</span></dt><dd><p>If <code class="code">codecvt::do_in</code> returns <code class="code">noconv</code> there are
|
47 |
|
|
no changes to the values in <code class="code">[to, to_limit)</code>.
|
48 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#22">22</a>:
|
49 |
|
|
<span class="emphasis"><em>Member open vs flags</em></span>
|
50 |
|
|
</span></dt><dd><p>Re-opening a file stream does <span class="emphasis"><em>not</em></span> clear the state flags.
|
51 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#23">23</a>:
|
52 |
|
|
<span class="emphasis"><em>Num_get overflow result</em></span>
|
53 |
|
|
</span></dt><dd><p>Implement the proposed resolution.
|
54 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#25">25</a>:
|
55 |
|
|
<span class="emphasis"><em>String operator<< uses width() value wrong</em></span>
|
56 |
|
|
</span></dt><dd><p>Padding issues.
|
57 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#48">48</a>:
|
58 |
|
|
<span class="emphasis"><em>Use of non-existent exception constructor</em></span>
|
59 |
|
|
</span></dt><dd><p>An instance of <code class="code">ios_base::failure</code> is constructed instead.
|
60 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#49">49</a>:
|
61 |
|
|
<span class="emphasis"><em>Underspecification of ios_base::sync_with_stdio</em></span>
|
62 |
|
|
</span></dt><dd><p>The return type is the <span class="emphasis"><em>previous</em></span> state of synchronization.
|
63 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#50">50</a>:
|
64 |
|
|
<span class="emphasis"><em>Copy constructor and assignment operator of ios_base</em></span>
|
65 |
|
|
</span></dt><dd><p>These members functions are declared <code class="code">private</code> and are
|
66 |
|
|
thus inaccessible. Specifying the correct semantics of
|
67 |
|
|
"copying stream state" was deemed too complicated.
|
68 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#60">60</a>:
|
69 |
|
|
<span class="emphasis"><em>What is a formatted input function?</em></span>
|
70 |
|
|
</span></dt><dd><p>This DR made many widespread changes to <code class="code">basic_istream</code>
|
71 |
|
|
and <code class="code">basic_ostream</code> all of which have been implemented.
|
72 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#63">63</a>:
|
73 |
|
|
<span class="emphasis"><em>Exception-handling policy for unformatted output</em></span>
|
74 |
|
|
</span></dt><dd><p>Make the policy consistent with that of formatted input, unformatted
|
75 |
|
|
input, and formatted output.
|
76 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#68">68</a>:
|
77 |
|
|
<span class="emphasis"><em>Extractors for char* should store null at end</em></span>
|
78 |
|
|
</span></dt><dd><p>And they do now. An editing glitch in the last item in the list of
|
79 |
|
|
[27.6.1.2.3]/7.
|
80 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#74">74</a>:
|
81 |
|
|
<span class="emphasis"><em>Garbled text for codecvt::do_max_length</em></span>
|
82 |
|
|
</span></dt><dd><p>The text of the standard was gibberish. Typos gone rampant.
|
83 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#75">75</a>:
|
84 |
|
|
<span class="emphasis"><em>Contradiction in codecvt::length's argument types</em></span>
|
85 |
|
|
</span></dt><dd><p>Change the first parameter to <code class="code">stateT&</code> and implement
|
86 |
|
|
the new effects paragraph.
|
87 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#83">83</a>:
|
88 |
|
|
<span class="emphasis"><em>string::npos vs. string::max_size()</em></span>
|
89 |
|
|
</span></dt><dd><p>Safety checks on the size of the string should test against
|
90 |
|
|
<code class="code">max_size()</code> rather than <code class="code">npos</code>.
|
91 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#90">90</a>:
|
92 |
|
|
<span class="emphasis"><em>Incorrect description of operator>> for strings</em></span>
|
93 |
|
|
</span></dt><dd><p>The effect contain <code class="code">isspace(c,getloc())</code> which must be
|
94 |
|
|
replaced by <code class="code">isspace(c,is.getloc())</code>.
|
95 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#91">91</a>:
|
96 |
|
|
<span class="emphasis"><em>Description of operator>> and getline() for string<>
|
97 |
|
|
might cause endless loop</em></span>
|
98 |
|
|
</span></dt><dd><p>They behave as a formatted input function and as an unformatted
|
99 |
|
|
input function, respectively (except that <code class="code">getline</code> is
|
100 |
|
|
not required to set <code class="code">gcount</code>).
|
101 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#103">103</a>:
|
102 |
|
|
<span class="emphasis"><em>set::iterator is required to be modifiable, but this allows
|
103 |
|
|
modification of keys.</em></span>
|
104 |
|
|
</span></dt><dd><p>For associative containers where the value type is the same as
|
105 |
|
|
the key type, both <code class="code">iterator</code> and <code class="code">const_iterator
|
106 |
|
|
</code> are constant iterators.
|
107 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#109">109</a>:
|
108 |
|
|
<span class="emphasis"><em>Missing binders for non-const sequence elements</em></span>
|
109 |
|
|
</span></dt><dd><p>The <code class="code">binder1st</code> and <code class="code">binder2nd</code> didn't have an
|
110 |
|
|
<code class="code">operator()</code> taking a non-const parameter.
|
111 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#110">110</a>:
|
112 |
|
|
<span class="emphasis"><em>istreambuf_iterator::equal not const</em></span>
|
113 |
|
|
</span></dt><dd><p>This was not a const member function. Note that the DR says to
|
114 |
|
|
replace the function with a const one; we have instead provided an
|
115 |
|
|
overloaded version with identical contents.
|
116 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#117">117</a>:
|
117 |
|
|
<span class="emphasis"><em>basic_ostream uses nonexistent num_put member functions</em></span>
|
118 |
|
|
</span></dt><dd><p><code class="code">num_put::put()</code> was overloaded on the wrong types.
|
119 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#118">118</a>:
|
120 |
|
|
<span class="emphasis"><em>basic_istream uses nonexistent num_get member functions</em></span>
|
121 |
|
|
</span></dt><dd><p>Same as 117, but for <code class="code">num_get::get()</code>.
|
122 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#129">129</a>:
|
123 |
|
|
<span class="emphasis"><em>Need error indication from seekp() and seekg()</em></span>
|
124 |
|
|
</span></dt><dd><p>These functions set <code class="code">failbit</code> on error now.
|
125 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#130">130</a>:
|
126 |
|
|
<span class="emphasis"><em>Return type of container::erase(iterator) differs for associative containers</em></span>
|
127 |
|
|
</span></dt><dd><p>Make member <code class="code">erase</code> return iterator for <code class="code">set</code>, <code class="code">multiset</code>, <code class="code">map</code>, <code class="code">multimap</code>.
|
128 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#136">136</a>:
|
129 |
|
|
<span class="emphasis"><em>seekp, seekg setting wrong streams?</em></span>
|
130 |
|
|
</span></dt><dd><p><code class="code">seekp</code> should only set the output stream, and
|
131 |
|
|
<code class="code">seekg</code> should only set the input stream.
|
132 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#167">167</a>:
|
133 |
|
|
<span class="emphasis"><em>Improper use of traits_type::length()</em></span>
|
134 |
|
|
</span></dt><dd><p><code class="code">op<<</code> with a <code class="code">const char*</code> was
|
135 |
|
|
calculating an incorrect number of characters to write.
|
136 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#169">169</a>:
|
137 |
|
|
<span class="emphasis"><em>Bad efficiency of overflow() mandated</em></span>
|
138 |
|
|
</span></dt><dd><p>Grow efficiently the internal array object.
|
139 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#171">171</a>:
|
140 |
|
|
<span class="emphasis"><em>Strange seekpos() semantics due to joint position</em></span>
|
141 |
|
|
</span></dt><dd><p>Quite complex to summarize...
|
142 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#181">181</a>:
|
143 |
|
|
<span class="emphasis"><em>make_pair() unintended behavior</em></span>
|
144 |
|
|
</span></dt><dd><p>This function used to take its arguments as reference-to-const, now
|
145 |
|
|
it copies them (pass by value).
|
146 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#195">195</a>:
|
147 |
|
|
<span class="emphasis"><em>Should basic_istream::sentry's constructor ever set eofbit?</em></span>
|
148 |
|
|
</span></dt><dd><p>Yes, it can, specifically if EOF is reached while skipping whitespace.
|
149 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#211">211</a>:
|
150 |
|
|
<span class="emphasis"><em>operator>>(istream&, string&) doesn't set failbit</em></span>
|
151 |
|
|
</span></dt><dd><p>If nothing is extracted into the string, <code class="code">op>></code> now
|
152 |
|
|
sets <code class="code">failbit</code> (which can cause an exception, etc., etc.).
|
153 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#214">214</a>:
|
154 |
|
|
<span class="emphasis"><em>set::find() missing const overload</em></span>
|
155 |
|
|
</span></dt><dd><p>Both <code class="code">set</code> and <code class="code">multiset</code> were missing
|
156 |
|
|
overloaded find, lower_bound, upper_bound, and equal_range functions
|
157 |
|
|
for const instances.
|
158 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#231">231</a>:
|
159 |
|
|
<span class="emphasis"><em>Precision in iostream?</em></span>
|
160 |
|
|
</span></dt><dd><p>For conversion from a floating-point type, <code class="code">str.precision()</code>
|
161 |
|
|
is specified in the conversion specification.
|
162 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#233">233</a>:
|
163 |
|
|
<span class="emphasis"><em>Insertion hints in associative containers</em></span>
|
164 |
|
|
</span></dt><dd><p>Implement N1780, first check before then check after, insert as close
|
165 |
|
|
to hint as possible.
|
166 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#235">235</a>:
|
167 |
|
|
<span class="emphasis"><em>No specification of default ctor for reverse_iterator</em></span>
|
168 |
|
|
</span></dt><dd><p>The declaration of <code class="code">reverse_iterator</code> lists a default constructor.
|
169 |
|
|
However, no specification is given what this constructor should do.
|
170 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#241">241</a>:
|
171 |
|
|
<span class="emphasis"><em>Does unique_copy() require CopyConstructible and Assignable?</em></span>
|
172 |
|
|
</span></dt><dd><p>Add a helper for forward_iterator/output_iterator, fix the existing
|
173 |
|
|
one for input_iterator/output_iterator to not rely on Assignability.
|
174 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#243">243</a>:
|
175 |
|
|
<span class="emphasis"><em>get and getline when sentry reports failure</em></span>
|
176 |
|
|
</span></dt><dd><p>Store a null character only if the character array has a non-zero size.
|
177 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#251">251</a>:
|
178 |
|
|
<span class="emphasis"><em>basic_stringbuf missing allocator_type</em></span>
|
179 |
|
|
</span></dt><dd><p>This nested typedef was originally not specified.
|
180 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#253">253</a>:
|
181 |
|
|
<span class="emphasis"><em>valarray helper functions are almost entirely useless</em></span>
|
182 |
|
|
</span></dt><dd><p>Make the copy constructor and copy-assignment operator declarations
|
183 |
|
|
public in gslice_array, indirect_array, mask_array, slice_array; provide
|
184 |
|
|
definitions.
|
185 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#265">265</a>:
|
186 |
|
|
<span class="emphasis"><em>std::pair::pair() effects overly restrictive</em></span>
|
187 |
|
|
</span></dt><dd><p>The default ctor would build its members from copies of temporaries;
|
188 |
|
|
now it simply uses their respective default ctors.
|
189 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#266">266</a>:
|
190 |
|
|
<span class="emphasis"><em>bad_exception::~bad_exception() missing Effects clause</em></span>
|
191 |
|
|
</span></dt><dd><p>The <code class="code">bad_</code>* classes no longer have destructors (they
|
192 |
|
|
are trivial), since no description of them was ever given.
|
193 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#271">271</a>:
|
194 |
|
|
<span class="emphasis"><em>basic_iostream missing typedefs</em></span>
|
195 |
|
|
</span></dt><dd><p>The typedefs it inherits from its base classes can't be used, since
|
196 |
|
|
(for example) <code class="code">basic_iostream<T>::traits_type</code> is ambiguous.
|
197 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#275">275</a>:
|
198 |
|
|
<span class="emphasis"><em>Wrong type in num_get::get() overloads</em></span>
|
199 |
|
|
</span></dt><dd><p>Similar to 118.
|
200 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#280">280</a>:
|
201 |
|
|
<span class="emphasis"><em>Comparison of reverse_iterator to const reverse_iterator</em></span>
|
202 |
|
|
</span></dt><dd><p>Add global functions with two template parameters.
|
203 |
|
|
(NB: not added for now a templated assignment operator)
|
204 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#292">292</a>:
|
205 |
|
|
<span class="emphasis"><em>Effects of a.copyfmt (a)</em></span>
|
206 |
|
|
</span></dt><dd><p>If <code class="code">(this == &rhs)</code> do nothing.
|
207 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#300">300</a>:
|
208 |
|
|
<span class="emphasis"><em>List::merge() specification incomplete</em></span>
|
209 |
|
|
</span></dt><dd><p>If <code class="code">(this == &x)</code> do nothing.
|
210 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#303">303</a>:
|
211 |
|
|
<span class="emphasis"><em>Bitset input operator underspecified</em></span>
|
212 |
|
|
</span></dt><dd><p>Basically, compare the input character to
|
213 |
|
|
<code class="code">is.widen(0)</code> and <code class="code">is.widen(1)</code>.
|
214 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#305">305</a>:
|
215 |
|
|
<span class="emphasis"><em>Default behavior of codecvt<wchar_t, char,
|
216 |
|
|
mbstate_t>::length()</em></span>
|
217 |
|
|
</span></dt><dd><p>Do not specify what <code class="code">codecvt<wchar_t, char,
|
218 |
|
|
mbstate_t>::do_length</code> must return.
|
219 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#328">328</a>:
|
220 |
|
|
<span class="emphasis"><em>Bad sprintf format modifier in
|
221 |
|
|
money_put<>::do_put()</em></span>
|
222 |
|
|
</span></dt><dd><p>Change the format string to "%.0Lf".
|
223 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#365">365</a>:
|
224 |
|
|
<span class="emphasis"><em>Lack of const-qualification in clause 27</em></span>
|
225 |
|
|
</span></dt><dd><p>Add const overloads of <code class="code">is_open</code>.
|
226 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#387">387</a>:
|
227 |
|
|
<span class="emphasis"><em>std::complex over-encapsulated</em></span>
|
228 |
|
|
</span></dt><dd><p>Add the <code class="code">real(T)</code> and <code class="code">imag(T)</code>
|
229 |
|
|
members; in C++11 mode, also adjust the existing
|
230 |
|
|
<code class="code">real()</code> and <code class="code">imag()</code> members and
|
231 |
|
|
free functions.
|
232 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#389">389</a>:
|
233 |
|
|
<span class="emphasis"><em>Const overload of valarray::operator[] returns
|
234 |
|
|
by value</em></span>
|
235 |
|
|
</span></dt><dd><p>Change it to return a <code class="code">const T&</code>.
|
236 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#396">396</a>:
|
237 |
|
|
<span class="emphasis"><em>what are characters zero and one</em></span>
|
238 |
|
|
</span></dt><dd><p>Implement the proposed resolution.
|
239 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#402">402</a>:
|
240 |
|
|
<span class="emphasis"><em>Wrong new expression in [some_]allocator::construct</em></span>
|
241 |
|
|
</span></dt><dd><p>Replace "new" with "::new".
|
242 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-closed.html#408">408</a>:
|
243 |
|
|
<span class="emphasis"><em>
|
244 |
|
|
Is vector<reverse_iterator<char*> > forbidden?
|
245 |
|
|
</em></span>
|
246 |
|
|
</span></dt><dd><p>Tweak the debug-mode checks in _Safe_iterator.
|
247 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#409">409</a>:
|
248 |
|
|
<span class="emphasis"><em>Closing an fstream should clear the error state</em></span>
|
249 |
|
|
</span></dt><dd><p>Have <code class="code">open</code> clear the error flags.
|
250 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-closed.html#431">431</a>:
|
251 |
|
|
<span class="emphasis"><em>Swapping containers with unequal allocators</em></span>
|
252 |
|
|
</span></dt><dd><p>Implement Option 3, as per N1599.
|
253 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#432">432</a>:
|
254 |
|
|
<span class="emphasis"><em>stringbuf::overflow() makes only one write position
|
255 |
|
|
available</em></span>
|
256 |
|
|
</span></dt><dd><p>Implement the resolution, beyond DR 169.
|
257 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#434">434</a>:
|
258 |
|
|
<span class="emphasis"><em>bitset::to_string() hard to use</em></span>
|
259 |
|
|
</span></dt><dd><p>Add three overloads, taking fewer template arguments.
|
260 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#438">438</a>:
|
261 |
|
|
<span class="emphasis"><em>Ambiguity in the "do the right thing" clause</em></span>
|
262 |
|
|
</span></dt><dd><p>Implement the resolution, basically cast less.
|
263 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#453">453</a>:
|
264 |
|
|
<span class="emphasis"><em>basic_stringbuf::seekoff need not always fail for an empty stream</em></span>
|
265 |
|
|
</span></dt><dd><p>Don't fail if the next pointer is null and newoff is zero.
|
266 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#455">455</a>:
|
267 |
|
|
<span class="emphasis"><em>cerr::tie() and wcerr::tie() are overspecified</em></span>
|
268 |
|
|
</span></dt><dd><p>Initialize cerr tied to cout and wcerr tied to wcout.
|
269 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#464">464</a>:
|
270 |
|
|
<span class="emphasis"><em>Suggestion for new member functions in standard containers</em></span>
|
271 |
|
|
</span></dt><dd><p>Add <code class="code">data()</code> to <code class="code">std::vector</code> and
|
272 |
|
|
<code class="code">at(const key_type&)</code> to <code class="code">std::map</code>.
|
273 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#508">508</a>:
|
274 |
|
|
<span class="emphasis"><em>Bad parameters for ranlux64_base_01</em></span>
|
275 |
|
|
</span></dt><dd><p>Fix the parameters.
|
276 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-closed.html#512">512</a>:
|
277 |
|
|
<span class="emphasis"><em>Seeding subtract_with_carry_01 from a single unsigned long</em></span>
|
278 |
|
|
</span></dt><dd><p>Construct a <code class="code">linear_congruential</code> engine and seed with it.
|
279 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-closed.html#526">526</a>:
|
280 |
|
|
<span class="emphasis"><em>Is it undefined if a function in the standard changes in
|
281 |
|
|
parameters?</em></span>
|
282 |
|
|
</span></dt><dd><p>Use &value.
|
283 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#538">538</a>:
|
284 |
|
|
<span class="emphasis"><em>241 again: Does unique_copy() require CopyConstructible
|
285 |
|
|
and Assignable?</em></span>
|
286 |
|
|
</span></dt><dd><p>In case of input_iterator/output_iterator rely on Assignability of
|
287 |
|
|
input_iterator' value_type.
|
288 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#539">539</a>:
|
289 |
|
|
<span class="emphasis"><em>partial_sum and adjacent_difference should mention
|
290 |
|
|
requirements</em></span>
|
291 |
|
|
</span></dt><dd><p>We were almost doing the right thing, just use std::move
|
292 |
|
|
in adjacent_difference.
|
293 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#541">541</a>:
|
294 |
|
|
<span class="emphasis"><em>shared_ptr template assignment and void</em></span>
|
295 |
|
|
</span></dt><dd><p>Add an auto_ptr<void> specialization.
|
296 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#543">543</a>:
|
297 |
|
|
<span class="emphasis"><em>valarray slice default constructor</em></span>
|
298 |
|
|
</span></dt><dd><p>Follow the straightforward proposed resolution.
|
299 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#550">550</a>:
|
300 |
|
|
<span class="emphasis"><em>What should the return type of pow(float,int) be?</em></span>
|
301 |
|
|
</span></dt><dd><p>In C++11 mode, remove the pow(float,int), etc., signatures.
|
302 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#586">586</a>:
|
303 |
|
|
<span class="emphasis"><em>string inserter not a formatted function</em></span>
|
304 |
|
|
</span></dt><dd><p>Change it to be a formatted output function (i.e. catch exceptions).
|
305 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#596">596</a>:
|
306 |
|
|
<span class="emphasis"><em>27.8.1.3 Table 112 omits "a+" and "a+b" modes</em></span>
|
307 |
|
|
</span></dt><dd><p>Add the missing modes to fopen_mode.
|
308 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#630">630</a>:
|
309 |
|
|
<span class="emphasis"><em>arrays of valarray</em></span>
|
310 |
|
|
</span></dt><dd><p>Implement the simple resolution.
|
311 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#660">660</a>:
|
312 |
|
|
<span class="emphasis"><em>Missing bitwise operations</em></span>
|
313 |
|
|
</span></dt><dd><p>Add the missing operations.
|
314 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#691">691</a>:
|
315 |
|
|
<span class="emphasis"><em>const_local_iterator cbegin, cend missing from TR1</em></span>
|
316 |
|
|
</span></dt><dd><p>In C++11 mode add cbegin(size_type) and cend(size_type)
|
317 |
|
|
to the unordered containers.
|
318 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#693">693</a>:
|
319 |
|
|
<span class="emphasis"><em>std::bitset::all() missing</em></span>
|
320 |
|
|
</span></dt><dd><p>Add it, consistently with the discussion.
|
321 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#695">695</a>:
|
322 |
|
|
<span class="emphasis"><em>ctype<char>::classic_table() not accessible</em></span>
|
323 |
|
|
</span></dt><dd><p>Make the member functions table and classic_table public.
|
324 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#696">696</a>:
|
325 |
|
|
<span class="emphasis"><em>istream::operator>>(int&) broken</em></span>
|
326 |
|
|
</span></dt><dd><p>Implement the straightforward resolution.
|
327 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#761">761</a>:
|
328 |
|
|
<span class="emphasis"><em>unordered_map needs an at() member function</em></span>
|
329 |
|
|
</span></dt><dd><p>In C++11 mode, add at() and at() const.
|
330 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#775">775</a>:
|
331 |
|
|
<span class="emphasis"><em>Tuple indexing should be unsigned?</em></span>
|
332 |
|
|
</span></dt><dd><p>Implement the int -> size_t replacements.
|
333 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#776">776</a>:
|
334 |
|
|
<span class="emphasis"><em>Undescribed assign function of std::array</em></span>
|
335 |
|
|
</span></dt><dd><p>In C++11 mode, remove assign, add fill.
|
336 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#781">781</a>:
|
337 |
|
|
<span class="emphasis"><em>std::complex should add missing C99 functions</em></span>
|
338 |
|
|
</span></dt><dd><p>In C++11 mode, add std::proj.
|
339 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#809">809</a>:
|
340 |
|
|
<span class="emphasis"><em>std::swap should be overloaded for array types</em></span>
|
341 |
|
|
</span></dt><dd><p>Add the overload.
|
342 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#844">844</a>:
|
343 |
|
|
<span class="emphasis"><em>complex pow return type is ambiguous</em></span>
|
344 |
|
|
</span></dt><dd><p>In C++11 mode, remove the pow(complex<T>, int) signature.
|
345 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#853">853</a>:
|
346 |
|
|
<span class="emphasis"><em>to_string needs updating with zero and one</em></span>
|
347 |
|
|
</span></dt><dd><p>Update / add the signatures.
|
348 |
|
|
</p></dd><dt><span class="term"><a class="link" href="../ext/lwg-defects.html#865">865</a>:
|
349 |
|
|
<span class="emphasis"><em>More algorithms that throw away information</em></span>
|
350 |
|
|
</span></dt><dd><p>The traditional HP / SGI return type and value is blessed
|
351 |
|
|
by the resolution of the DR.
|
352 |
|
|
</p></dd></dl></div></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td align="left"><a accesskey="p" href="license.html">Prev</a> </td><td align="center"><a accesskey="u" href="status.html">Up</a></td><td align="right"> <a accesskey="n" href="setup.html">Next</a></td></tr><tr><td align="left" valign="top">License </td><td align="center"><a accesskey="h" href="../index.html">Home</a></td><td align="right" valign="top"> Chapter 2. Setup</td></tr></table></div></body></html>
|