OSDN Git Service

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