OSDN Git Service

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