2 <!DOCTYPE part PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
6 <part id=
"manual.intro" xreflabel=
"Introduction">
7 <?dbhtml filename=
"intro.html"?>
22 <indexterm><primary>Introduction
</primary></indexterm>
24 <!-- Chapter 01 : Status -->
25 <chapter id=
"manual.intro.status" xreflabel=
"Status">
29 <sect1 id=
"manual.intro.status.standard" xreflabel=
"Implementation Status">
30 <title>Implementation Status
</title>
32 <!-- Section 01 : Status C++ 1998 -->
33 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
34 parse=
"xml" href=
"status_cxx1998.xml">
37 <!-- Section 02 : Status C++ TR1 -->
38 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
39 parse=
"xml" href=
"status_cxxtr1.xml">
42 <!-- Section 03 : Status C++ 200x -->
43 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
44 parse=
"xml" href=
"status_cxx200x.xml">
48 <!-- Section 02 : License -->
49 <sect1 id=
"manual.intro.status.license" xreflabel=
"License">
50 <title>License
</title>
52 There are two licenses affecting GNU libstdc++: one for the code,
53 and one for the documentation.
57 There is a license section in the FAQ regarding common
<link
58 linkend=
"faq.license">questions
</link>. If you have more
59 questions, ask the FSF or the
<ulink
60 url=
"http://gcc.gnu.org/lists.html">gcc mailing list
</ulink>.
63 <sect2 id=
"manual.intro.status.license.gpl" xreflabel=
"License GPL">
64 <title>The Code: GPL
</title>
67 The source code is distributed under the
<link
68 linkend=
"appendix.gpl-3.0">GNU General Public License version
3</link>,
69 with the addition under section
7 of an exception described in
70 the
<quote>GCC Runtime Library Exception, version
3.1</quote>
71 as follows (or see the file COPYING.RUNTIME):
75 GCC RUNTIME LIBRARY EXCEPTION
77 Version
3.1,
31 March
2009
79 Copyright (C)
2009 <ulink url=
"http://fsf.org">Free Software Foundation, Inc.
</ulink>
81 Everyone is permitted to copy and distribute verbatim copies of this
82 license document, but changing it is not allowed.
84 This GCC Runtime Library Exception (
"Exception") is an additional
85 permission under section
7 of the GNU General Public License, version
86 3 (
"GPLv3"). It applies to a given file (the
"Runtime Library") that
87 bears a notice placed by the copyright holder of the file stating that
88 the file is governed by GPLv3 along with this Exception.
90 When you use GCC to compile a program, GCC may combine portions of
91 certain GCC header files and runtime libraries with the compiled
92 program. The purpose of this Exception is to allow compilation of
93 non-GPL (including proprietary) programs to use, in this way, the
94 header files and runtime libraries covered by this Exception.
98 A file is an
"Independent Module" if it either requires the Runtime
99 Library for execution after a Compilation Process, or makes use of an
100 interface provided by the Runtime Library, but is not otherwise based
101 on the Runtime Library.
103 "GCC" means a version of the GNU Compiler Collection, with or without
104 modifications, governed by version
3 (or a specified later version) of
105 the GNU General Public License (GPL) with the option of using any
106 subsequent versions published by the FSF.
108 "GPL-compatible Software" is software whose conditions of propagation,
109 modification and use would permit combination with GCC in accord with
112 "Target Code" refers to output from any compiler for a real or virtual
113 target processor architecture, in executable form or suitable for
114 input to an assembler, loader, linker and/or execution
115 phase. Notwithstanding that, Target Code does not include data in any
116 format that is used as a compiler intermediate representation, or used
117 for producing a compiler intermediate representation.
119 The
"Compilation Process" transforms code entirely represented in
120 non-intermediate languages designed for human-written code, and/or in
121 Java Virtual Machine byte code, into Target Code. Thus, for example,
122 use of source code generators and preprocessors need not be considered
123 part of the Compilation Process, since the Compilation Process can be
124 understood as starting with the output of the generators or
127 A Compilation Process is
"Eligible" if it is done using GCC, alone or
128 with other GPL-compatible software, or if it is done without using any
129 work based on GCC. For example, using non-GPL-compatible Software to
130 optimize any GCC intermediate representations would not qualify as an
131 Eligible Compilation Process.
133 1. Grant of Additional Permission.
135 You have permission to propagate a work of Target Code formed by
136 combining the Runtime Library with Independent Modules, even if such
137 propagation would otherwise violate the terms of GPLv3, provided that
138 all Target Code was generated by Eligible Compilation Processes. You
139 may then convey such a combination under terms of your choice,
140 consistent with the licensing of the Independent Modules.
142 2. No Weakening of GCC Copyleft.
144 The availability of this Exception does not imply any general
145 presumption that third-party software is unaffected by the copyleft
146 requirements of the license of GCC.
150 Hopefully that text is self-explanatory. If it isn't, you need to speak
151 to your lawyer, or the Free Software Foundation.
155 <sect2 id=
"manual.intro.status.license.fdl" xreflabel=
"License FDL">
156 <title>The Documentation: GPL, FDL
</title>
159 The documentation shipped with the library and made available over
160 the web, excluding the pages generated from source comments, are
161 copyrighted by the Free Software Foundation, and placed under the
162 <link linkend=
"appendix.gfdl-1.2"> GNU Free Documentation
163 License version
1.2</link>. There are no Front-Cover Texts, no
164 Back-Cover Texts, and no Invariant Sections.
168 For documentation generated by doxygen or other automated tools
169 via processing source code comments and markup, the original source
170 code license applies to the generated files. Thus, the doxygen
171 documents are licensed
<link linkend=
"appendix.gpl-3.0">GPL
</link>.
175 If you plan on making copies of the documentation, please let us know.
176 We can probably offer suggestions.
182 <!-- Section 03 : Known Bugs -->
183 <sect1 id=
"manual.intro.status.bugs" xreflabel=
"Bugs">
186 <sect2 id=
"manual.intro.status.bugs.impl" xreflabel=
"Bugs impl">
187 <title>Implementation Bugs
</title>
189 Information on known bugs, details on efforts to fix them, and
190 fixed bugs are all available as part of the GCC bug tracking
192 url=
"http://gcc.gnu.org/bugzilla">bugzilla
</ulink>, with the
193 category set to
<literal>libstdc++
</literal>.
197 <sect2 id=
"manual.intro.status.bugs.iso" xreflabel=
"Bugs iso">
198 <title>Standard Bugs
</title>
200 Everybody's got issues. Even the C++ Standard Library.
203 The Library Working Group, or LWG, is the ISO subcommittee responsible
204 for making changes to the library. They periodically publish an
205 Issues List containing problems and possible solutions. As they reach
206 a consensus on proposed solutions, we often incorporate the solution.
209 Here are the issues which have resulted in code changes to the library.
210 The links are to the specific defect reports from a
<emphasis>partial
211 copy
</emphasis> of the Issues List. You can read the full version online
212 at the
<ulink url=
"http://www.open-std.org/jtc1/sc22/wg21/">ISO C++
213 Committee homepage
</ulink>, linked to on the
214 <ulink url=
"http://gcc.gnu.org/readings.html">GCC
"Readings
"
216 you spend a lot of time reading the issues, we recommend downloading
217 the ZIP file and reading them locally.
220 (NB:
<emphasis>partial copy
</emphasis> means that not all
221 links within the lwg-*.html pages will work. Specifically,
222 links to defect reports that have not been accorded full DR
223 status will probably break. Rather than trying to mirror the
224 entire issues list on our overworked web server, we recommend
225 you go to the LWG homepage instead.)
228 If a DR is not listed here, we may simply not have gotten to
229 it yet; feel free to submit a patch. Search the include/bits
230 and src directories for appearances of
231 <constant>_GLIBCXX_RESOLVE_LIB_DEFECTS
</constant> for examples
232 of style. Note that we usually do not make changes to the
233 code until an issue has reached
<ulink url=
"lwg-active.html#DR">DR
</ulink> status.
237 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#5">5</ulink>:
238 <emphasis>string::compare specification questionable
</emphasis>
240 <listitem><para>This should be two overloaded functions rather than a single function.
241 </para></listitem></varlistentry>
243 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#17">17</ulink>:
244 <emphasis>Bad bool parsing
</emphasis>
246 <listitem><para>Apparently extracting Boolean values was messed up...
247 </para></listitem></varlistentry>
249 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#19">19</ulink>:
250 <emphasis>"Noconv
" definition too vague
</emphasis>
252 <listitem><para>If
<code>codecvt::do_in
</code> returns
<code>noconv
</code> there are
253 no changes to the values in
<code>[to, to_limit)
</code>.
254 </para></listitem></varlistentry>
256 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#22">22</ulink>:
257 <emphasis>Member open vs flags
</emphasis>
259 <listitem><para>Re-opening a file stream does
<emphasis>not
</emphasis> clear the state flags.
260 </para></listitem></varlistentry>
262 <varlistentry><term><ulink url=
"../ext/lwg-active.html#23">23</ulink>:
263 <emphasis>Num_get overflow result
</emphasis>
265 <listitem><para>Implement the proposed resolution.
266 </para></listitem></varlistentry>
268 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#25">25</ulink>:
269 <emphasis>String operator
<< uses width() value wrong
</emphasis>
271 <listitem><para>Padding issues.
272 </para></listitem></varlistentry>
274 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#48">48</ulink>:
275 <emphasis>Use of non-existent exception constructor
</emphasis>
277 <listitem><para>An instance of
<code>ios_base::failure
</code> is constructed instead.
278 </para></listitem></varlistentry>
280 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#49">49</ulink>:
281 <emphasis>Underspecification of ios_base::sync_with_stdio
</emphasis>
283 <listitem><para>The return type is the
<emphasis>previous
</emphasis> state of synchronization.
284 </para></listitem></varlistentry>
286 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#50">50</ulink>:
287 <emphasis>Copy constructor and assignment operator of ios_base
</emphasis>
289 <listitem><para>These members functions are declared
<code>private
</code> and are
290 thus inaccessible. Specifying the correct semantics of
291 "copying stream state
" was deemed too complicated.
292 </para></listitem></varlistentry>
294 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#60">60</ulink>:
295 <emphasis>What is a formatted input function?
</emphasis>
297 <listitem><para>This DR made many widespread changes to
<code>basic_istream
</code>
298 and
<code>basic_ostream
</code> all of which have been implemented.
299 </para></listitem></varlistentry>
301 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#63">63</ulink>:
302 <emphasis>Exception-handling policy for unformatted output
</emphasis>
304 <listitem><para>Make the policy consistent with that of formatted input, unformatted
305 input, and formatted output.
306 </para></listitem></varlistentry>
308 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#68">68</ulink>:
309 <emphasis>Extractors for char* should store null at end
</emphasis>
311 <listitem><para>And they do now. An editing glitch in the last item in the list of
313 </para></listitem></varlistentry>
315 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#74">74</ulink>:
316 <emphasis>Garbled text for codecvt::do_max_length
</emphasis>
318 <listitem><para>The text of the standard was gibberish. Typos gone rampant.
319 </para></listitem></varlistentry>
321 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#75">75</ulink>:
322 <emphasis>Contradiction in codecvt::length's argument types
</emphasis>
324 <listitem><para>Change the first parameter to
<code>stateT
&</code> and implement
325 the new effects paragraph.
326 </para></listitem></varlistentry>
328 <varlistentry><term><ulink url=
"lwg-defects.html#83">83</ulink>:
329 <emphasis>string::npos vs. string::max_size()
</emphasis>
331 <listitem><para>Safety checks on the size of the string should test against
332 <code>max_size()
</code> rather than
<code>npos
</code>.
333 </para></listitem></varlistentry>
335 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#90">90</ulink>:
336 <emphasis>Incorrect description of operator
>> for strings
</emphasis>
338 <listitem><para>The effect contain
<code>isspace(c,getloc())
</code> which must be
339 replaced by
<code>isspace(c,is.getloc())
</code>.
340 </para></listitem></varlistentry>
342 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#91">91</ulink>:
343 <emphasis>Description of operator
>> and getline() for string
<>
344 might cause endless loop
</emphasis>
346 <listitem><para>They behave as a formatted input function and as an unformatted
347 input function, respectively (except that
<code>getline
</code> is
348 not required to set
<code>gcount
</code>).
349 </para></listitem></varlistentry>
351 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#103">103</ulink>:
352 <emphasis>set::iterator is required to be modifiable, but this allows
353 modification of keys.
</emphasis>
355 <listitem><para>For associative containers where the value type is the same as
356 the key type, both
<code>iterator
</code> and
<code>const_iterator
357 </code> are constant iterators.
358 </para></listitem></varlistentry>
360 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#109">109</ulink>:
361 <emphasis>Missing binders for non-const sequence elements
</emphasis>
363 <listitem><para>The
<code>binder1st
</code> and
<code>binder2nd
</code> didn't have an
364 <code>operator()
</code> taking a non-const parameter.
365 </para></listitem></varlistentry>
367 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#110">110</ulink>:
368 <emphasis>istreambuf_iterator::equal not const
</emphasis>
370 <listitem><para>This was not a const member function. Note that the DR says to
371 replace the function with a const one; we have instead provided an
372 overloaded version with identical contents.
373 </para></listitem></varlistentry>
375 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#117">117</ulink>:
376 <emphasis>basic_ostream uses nonexistent num_put member functions
</emphasis>
378 <listitem><para><code>num_put::put()
</code> was overloaded on the wrong types.
379 </para></listitem></varlistentry>
381 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#118">118</ulink>:
382 <emphasis>basic_istream uses nonexistent num_get member functions
</emphasis>
384 <listitem><para>Same as
117, but for
<code>num_get::get()
</code>.
385 </para></listitem></varlistentry>
387 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#129">129</ulink>:
388 <emphasis>Need error indication from seekp() and seekg()
</emphasis>
390 <listitem><para>These functions set
<code>failbit
</code> on error now.
391 </para></listitem></varlistentry>
393 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#136">136</ulink>:
394 <emphasis>seekp, seekg setting wrong streams?
</emphasis>
396 <listitem><para><code>seekp
</code> should only set the output stream, and
397 <code>seekg
</code> should only set the input stream.
398 </para></listitem></varlistentry>
400 <!--<varlistentry><term><ulink url="../ext/lwg-defects.html#159">159</ulink>:
401 <emphasis>Strange use of underflow()</emphasis>
403 <listitem><para>In fstream.tcc, the basic_filebuf<>::showmanyc() function
404 should probably not be calling <code>underflow()</code>.
405 </para></listitem></varlistentry> -->
407 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#167">167</ulink>:
408 <emphasis>Improper use of traits_type::length()
</emphasis>
410 <listitem><para><code>op
<<</code> with a
<code>const char*
</code> was
411 calculating an incorrect number of characters to write.
412 </para></listitem></varlistentry>
414 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#169">169</ulink>:
415 <emphasis>Bad efficiency of overflow() mandated
</emphasis>
417 <listitem><para>Grow efficiently the internal array object.
418 </para></listitem></varlistentry>
420 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#171">171</ulink>:
421 <emphasis>Strange seekpos() semantics due to joint position
</emphasis>
423 <listitem><para>Quite complex to summarize...
424 </para></listitem></varlistentry>
426 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#181">181</ulink>:
427 <emphasis>make_pair() unintended behavior
</emphasis>
429 <listitem><para>This function used to take its arguments as reference-to-const, now
430 it copies them (pass by value).
431 </para></listitem></varlistentry>
433 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#195">195</ulink>:
434 <emphasis>Should basic_istream::sentry's constructor ever set eofbit?
</emphasis>
436 <listitem><para>Yes, it can, specifically if EOF is reached while skipping whitespace.
437 </para></listitem></varlistentry>
439 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#211">211</ulink>:
440 <emphasis>operator
>>(istream
&, string
&) doesn't set failbit
</emphasis>
442 <listitem><para>If nothing is extracted into the string,
<code>op
>></code> now
443 sets
<code>failbit
</code> (which can cause an exception, etc., etc.).
444 </para></listitem></varlistentry>
446 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#214">214</ulink>:
447 <emphasis>set::find() missing const overload
</emphasis>
449 <listitem><para>Both
<code>set
</code> and
<code>multiset
</code> were missing
450 overloaded find, lower_bound, upper_bound, and equal_range functions
452 </para></listitem></varlistentry>
454 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#231">231</ulink>:
455 <emphasis>Precision in iostream?
</emphasis>
457 <listitem><para>For conversion from a floating-point type,
<code>str.precision()
</code>
458 is specified in the conversion specification.
459 </para></listitem></varlistentry>
461 <varlistentry><term><ulink url=
"../ext/lwg-active.html#233">233</ulink>:
462 <emphasis>Insertion hints in associative containers
</emphasis>
464 <listitem><para>Implement N1780, first check before then check after, insert as close
466 </para></listitem></varlistentry>
468 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#235">235</ulink>:
469 <emphasis>No specification of default ctor for reverse_iterator
</emphasis>
471 <listitem><para>The declaration of
<code>reverse_iterator
</code> lists a default constructor.
472 However, no specification is given what this constructor should do.
473 </para></listitem></varlistentry>
475 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#241">241</ulink>:
476 <emphasis>Does unique_copy() require CopyConstructible and Assignable?
</emphasis>
478 <listitem><para>Add a helper for forward_iterator/output_iterator, fix the existing
479 one for input_iterator/output_iterator to not rely on Assignability.
480 </para></listitem></varlistentry>
482 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#243">243</ulink>:
483 <emphasis>get and getline when sentry reports failure
</emphasis>
485 <listitem><para>Store a null character only if the character array has a non-zero size.
486 </para></listitem></varlistentry>
488 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#251">251</ulink>:
489 <emphasis>basic_stringbuf missing allocator_type
</emphasis>
491 <listitem><para>This nested typedef was originally not specified.
492 </para></listitem></varlistentry>
494 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#253">253</ulink>:
495 <emphasis>valarray helper functions are almost entirely useless
</emphasis>
497 <listitem><para>Make the copy constructor and copy-assignment operator declarations
498 public in gslice_array, indirect_array, mask_array, slice_array; provide
500 </para></listitem></varlistentry>
502 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#265">265</ulink>:
503 <emphasis>std::pair::pair() effects overly restrictive
</emphasis>
505 <listitem><para>The default ctor would build its members from copies of temporaries;
506 now it simply uses their respective default ctors.
507 </para></listitem></varlistentry>
509 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#266">266</ulink>:
510 <emphasis>bad_exception::~bad_exception() missing Effects clause
</emphasis>
512 <listitem><para>The
<code>bad_
</code>* classes no longer have destructors (they
513 are trivial), since no description of them was ever given.
514 </para></listitem></varlistentry>
516 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#271">271</ulink>:
517 <emphasis>basic_iostream missing typedefs
</emphasis>
519 <listitem><para>The typedefs it inherits from its base classes can't be used, since
520 (for example)
<code>basic_iostream
<T
>::traits_type
</code> is ambiguous.
521 </para></listitem></varlistentry>
523 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#275">275</ulink>:
524 <emphasis>Wrong type in num_get::get() overloads
</emphasis>
526 <listitem><para>Similar to
118.
527 </para></listitem></varlistentry>
529 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#280">280</ulink>:
530 <emphasis>Comparison of reverse_iterator to const reverse_iterator
</emphasis>
532 <listitem><para>Add global functions with two template parameters.
533 (NB: not added for now a templated assignment operator)
534 </para></listitem></varlistentry>
536 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#292">292</ulink>:
537 <emphasis>Effects of a.copyfmt (a)
</emphasis>
539 <listitem><para>If
<code>(this ==
&rhs)
</code> do nothing.
540 </para></listitem></varlistentry>
542 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#300">300</ulink>:
543 <emphasis>List::merge() specification incomplete
</emphasis>
545 <listitem><para>If
<code>(this ==
&x)
</code> do nothing.
546 </para></listitem></varlistentry>
548 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#303">303</ulink>:
549 <emphasis>Bitset input operator underspecified
</emphasis>
551 <listitem><para>Basically, compare the input character to
552 <code>is.widen(
0)
</code> and
<code>is.widen(
1)
</code>.
553 </para></listitem></varlistentry>
555 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#305">305</ulink>:
556 <emphasis>Default behavior of codecvt
<wchar_t, char,
557 mbstate_t
>::length()
</emphasis>
559 <listitem><para>Do not specify what
<code>codecvt
<wchar_t, char,
560 mbstate_t
>::do_length
</code> must return.
561 </para></listitem></varlistentry>
563 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#328">328</ulink>:
564 <emphasis>Bad sprintf format modifier in
565 money_put
<>::do_put()
</emphasis>
567 <listitem><para>Change the format string to
"%
.0Lf
".
568 </para></listitem></varlistentry>
570 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#365">365</ulink>:
571 <emphasis>Lack of const-qualification in clause
27</emphasis>
573 <listitem><para>Add const overloads of
<code>is_open
</code>.
574 </para></listitem></varlistentry>
576 <varlistentry><term><ulink url=
"../ext/lwg-active.html#387">387</ulink>:
577 <emphasis>std::complex over-encapsulated
</emphasis>
579 <listitem><para>Add the
<code>real(T)
</code> and
<code>imag(T)
</code>
580 members; in C++
0x mode, also adjust the existing
581 <code>real()
</code> and
<code>imag()
</code> members and
583 </para></listitem></varlistentry>
585 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#389">389</ulink>:
586 <emphasis>Const overload of valarray::operator[] returns
589 <listitem><para>Change it to return a
<code>const T
&</code>.
590 </para></listitem></varlistentry>
592 <varlistentry><term><ulink url=
"../ext/lwg-active.html#396">396</ulink>:
593 <emphasis>what are characters zero and one
</emphasis>
595 <listitem><para>Implement the proposed resolution.
596 </para></listitem></varlistentry>
598 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#402">402</ulink>:
599 <emphasis>Wrong new expression in [some_]allocator::construct
</emphasis>
601 <listitem><para>Replace
"new
" with
"::new
".
602 </para></listitem></varlistentry>
604 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#409">409</ulink>:
605 <emphasis>Closing an fstream should clear the error state
</emphasis>
607 <listitem><para>Have
<code>open
</code> clear the error flags.
608 </para></listitem></varlistentry>
610 <varlistentry><term><ulink url=
"../ext/lwg-active.html#431">431</ulink>:
611 <emphasis>Swapping containers with unequal allocators
</emphasis>
613 <listitem><para>Implement Option
3, as per N1599.
614 </para></listitem></varlistentry>
616 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#432">432</ulink>:
617 <emphasis>stringbuf::overflow() makes only one write position
620 <listitem><para>Implement the resolution, beyond DR
169.
621 </para></listitem></varlistentry>
623 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#434">434</ulink>:
624 <emphasis>bitset::to_string() hard to use
</emphasis>
626 <listitem><para>Add three overloads, taking fewer template arguments.
627 </para></listitem></varlistentry>
629 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#438">438</ulink>:
630 <emphasis>Ambiguity in the
"do the right thing" clause
</emphasis>
632 <listitem><para>Implement the resolution, basically cast less.
633 </para></listitem></varlistentry>
635 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#453">453</ulink>:
636 <emphasis>basic_stringbuf::seekoff need not always fail for an empty stream
</emphasis>
638 <listitem><para>Don't fail if the next pointer is null and newoff is zero.
639 </para></listitem></varlistentry>
641 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#455">455</ulink>:
642 <emphasis>cerr::tie() and wcerr::tie() are overspecified
</emphasis>
644 <listitem><para>Initialize cerr tied to cout and wcerr tied to wcout.
645 </para></listitem></varlistentry>
647 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#464">464</ulink>:
648 <emphasis>Suggestion for new member functions in standard containers
</emphasis>
650 <listitem><para>Add
<code>data()
</code> to
<code>std::vector
</code> and
651 <code>at(const key_type
&)
</code> to
<code>std::map
</code>.
652 </para></listitem></varlistentry>
654 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#508">508</ulink>:
655 <emphasis>Bad parameters for ranlux64_base_01
</emphasis>
657 <listitem><para>Fix the parameters.
658 </para></listitem></varlistentry>
660 <varlistentry><term><ulink url=
"../ext/lwg-closed.html#512">512</ulink>:
661 <emphasis>Seeding subtract_with_carry_01 from a single unsigned long
</emphasis>
663 <listitem><para>Construct a
<code>linear_congruential
</code> engine and seed with it.
664 </para></listitem></varlistentry>
666 <varlistentry><term><ulink url=
"../ext/lwg-closed.html#526">526</ulink>:
667 <emphasis>Is it undefined if a function in the standard changes in
668 parameters?
</emphasis>
670 <listitem><para>Use
&value.
671 </para></listitem></varlistentry>
673 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#538">538</ulink>:
674 <emphasis>241 again: Does unique_copy() require CopyConstructible
675 and Assignable?
</emphasis>
677 <listitem><para>In case of input_iterator/output_iterator rely on Assignability of
678 input_iterator' value_type.
679 </para></listitem></varlistentry>
681 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#541">541</ulink>:
682 <emphasis>shared_ptr template assignment and void
</emphasis>
684 <listitem><para>Add an auto_ptr
<void
> specialization.
685 </para></listitem></varlistentry>
687 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#543">543</ulink>:
688 <emphasis>valarray slice default constructor
</emphasis>
690 <listitem><para>Follow the straightforward proposed resolution.
691 </para></listitem></varlistentry>
693 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#550">550</ulink>:
694 <emphasis>What should the return type of pow(float,int) be?
</emphasis>
696 <listitem><para>In C++
0x mode, remove the pow(float,int), etc., signatures.
697 </para></listitem></varlistentry>
699 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#586">586</ulink>:
700 <emphasis>string inserter not a formatted function
</emphasis>
702 <listitem><para>Change it to be a formatted output function (i.e. catch exceptions).
703 </para></listitem></varlistentry>
705 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#596">596</ulink>:
706 <emphasis>27.8.1.3 Table
112 omits
"a+" and
"a+b" modes
</emphasis>
708 <listitem><para>Add the missing modes to fopen_mode.
709 </para></listitem></varlistentry>
711 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#660">660</ulink>:
712 <emphasis>Missing bitwise operations
</emphasis>
714 <listitem><para>Add the missing operations.
715 </para></listitem></varlistentry>
717 <varlistentry><term><ulink url=
"../ext/lwg-active.html#691">691</ulink>:
718 <emphasis>const_local_iterator cbegin, cend missing from TR1
</emphasis>
720 <listitem><para>In C++
0x mode add cbegin(size_type) and cend(size_type)
721 to the unordered containers.
722 </para></listitem></varlistentry>
724 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#693">693</ulink>:
725 <emphasis>std::bitset::all() missing
</emphasis>
727 <listitem><para>Add it, consistently with the discussion.
728 </para></listitem></varlistentry>
730 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#695">695</ulink>:
731 <emphasis>ctype
<char
>::classic_table() not accessible
</emphasis>
733 <listitem><para>Make the member functions table and classic_table public.
734 </para></listitem></varlistentry>
736 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#761">761</ulink>:
737 <emphasis>unordered_map needs an at() member function
</emphasis>
739 <listitem><para>In C++
0x mode, add at() and at() const.
740 </para></listitem></varlistentry>
742 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#775">775</ulink>:
743 <emphasis>Tuple indexing should be unsigned?
</emphasis>
745 <listitem><para>Implement the int -
> size_t replacements.
746 </para></listitem></varlistentry>
748 <varlistentry><term><ulink url=
"../ext/lwg-active.html#776">776</ulink>:
749 <emphasis>Undescribed assign function of std::array
</emphasis>
751 <listitem><para>In C++
0x mode, remove assign, add fill.
752 </para></listitem></varlistentry>
754 <varlistentry><term><ulink url=
"../ext/lwg-defects.html#781">781</ulink>:
755 <emphasis>std::complex should add missing C99 functions
</emphasis>
757 <listitem><para>In C++
0x mode, add std::proj.
758 </para></listitem></varlistentry>
760 <varlistentry><term><ulink url=
"../ext/lwg-active.html#809">809</ulink>:
761 <emphasis>std::swap should be overloaded for array types
</emphasis>
763 <listitem><para>Add the overload.
764 </para></listitem></varlistentry>
766 <varlistentry><term><ulink url=
"../ext/lwg-active.html#844">844</ulink>:
767 <emphasis>complex pow return type is ambiguous
</emphasis>
769 <listitem><para>In C++
0x mode, remove the pow(complex
<T
>, int) signature.
770 </para></listitem></varlistentry>
772 <varlistentry><term><ulink url=
"../ext/lwg-active.html#853">853</ulink>:
773 <emphasis>to_string needs updating with zero and one
</emphasis>
775 <listitem><para>Update / add the signatures.
776 </para></listitem></varlistentry>
784 <!-- Chapter 02 : Setup -->
785 <chapter id=
"manual.intro.setup" xreflabel=
"Setup">
788 <para>To transform libstdc++ sources into installed include files
789 and properly built binaries useful for linking to other software is
790 a multi-step process. Steps include getting the sources,
791 configuring and building the sources, testing, and installation.
794 <para>The general outline of commands is something like:
798 <emphasis>get gcc sources
</emphasis>
799 <emphasis>extract into gccsrcdir
</emphasis>
800 mkdir
<emphasis>gccbuilddir
</emphasis>
801 cd
<emphasis>gccbuilddir
</emphasis>
802 <emphasis>gccsrcdir
</emphasis>/configure --prefix=
<emphasis>destdir
</emphasis> --other-opts...
809 Each step is described in more detail in the following sections.
812 <!-- Section 01 : Prerequisites -->
813 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
814 parse=
"xml" href=
"prerequisites.xml">
817 <!-- Section 02 : Configure -->
818 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
819 parse=
"xml" href=
"configure.xml">
822 <!-- Section 03 : Make -->
823 <sect1 id=
"manual.intro.setup.make" xreflabel=
"Make">
825 <para>If you have never done this before, you should read the basic
826 <ulink url=
"http://gcc.gnu.org/install/">GCC Installation
827 Instructions
</ulink> first. Read
<emphasis>all of them
</emphasis>.
828 <emphasis>Twice.
</emphasis>
831 <para>Then type:
<command>make
</command>, and congratulations, you're
837 <!-- Section 04 : Test -->
838 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
839 parse=
"xml" href=
"test.xml">
844 <!-- Chapter 03 : Using -->
845 <xi:include xmlns:
xi=
"http://www.w3.org/2001/XInclude"
846 parse=
"xml" href=
"using.xml">