2008-02-11 01:01:33 +01:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
|
|
|
|
[ ]>
|
|
|
|
|
|
|
|
<part id="manual.intro" xreflabel="Introduction">
|
|
|
|
<?dbhtml filename="intro.html"?>
|
|
|
|
|
|
|
|
<partinfo>
|
|
|
|
<keywordset>
|
|
|
|
<keyword>
|
|
|
|
ISO C++
|
|
|
|
</keyword>
|
|
|
|
<keyword>
|
|
|
|
library
|
|
|
|
</keyword>
|
|
|
|
</keywordset>
|
|
|
|
</partinfo>
|
|
|
|
|
|
|
|
<title>Introduction</title>
|
|
|
|
|
|
|
|
<!-- Chapter 01 : Status -->
|
|
|
|
<chapter id="manual.intro.status" xreflabel="Status">
|
|
|
|
<title>Status</title>
|
|
|
|
|
|
|
|
|
|
|
|
<sect1 id="manual.intro.status.standard" xreflabel="Implementation Status">
|
|
|
|
<title>Implementation Status</title>
|
|
|
|
|
|
|
|
<!-- Section 01 : Status C++ 1998 -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
parse="xml" href="status_cxx1998.xml">
|
|
|
|
</xi:include>
|
|
|
|
|
|
|
|
<!-- Section 02 : Status C++ TR1 -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
parse="xml" href="status_cxxtr1.xml">
|
|
|
|
</xi:include>
|
|
|
|
|
|
|
|
<!-- Section 03 : Status C++ 200x -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
parse="xml" href="status_cxx200x.xml">
|
|
|
|
</xi:include>
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- Section 02 : License -->
|
|
|
|
<sect1 id="manual.intro.status.license" xreflabel="License">
|
|
|
|
<title>License</title>
|
|
|
|
<para>
|
|
|
|
There are two licenses affecting GNU libstdc++: one for the code,
|
|
|
|
and one for the documentation.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
There is a license section in the FAQ regarding common <link
|
|
|
|
linkend="faq.license">questions</link>. If you have more
|
|
|
|
questions, ask the FSF or the <ulink
|
|
|
|
url="http://gcc.gnu.org/lists.html">gcc mailing list</ulink>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<sect2 id="manual.intro.status.license.gpl" xreflabel="License GPL">
|
|
|
|
<title>The Code: GPL</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The source code is distributed under the <link
|
|
|
|
linkend="appendix.gpl-2.0">GNU General Public License version 2</link>,
|
|
|
|
with the so-called <quote>Runtime Exception</quote>
|
|
|
|
as follows (or see any header or implementation file):
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<literallayout>
|
|
|
|
As a special exception, you may use this file as part of a free software
|
|
|
|
library without restriction. Specifically, if other files instantiate
|
|
|
|
templates or use macros or inline functions from this file, or you compile
|
|
|
|
this file and link it with other files to produce an executable, this
|
|
|
|
file does not by itself cause the resulting executable to be covered by
|
|
|
|
the GNU General Public License. This exception does not however
|
|
|
|
invalidate any other reasons why the executable file might be covered by
|
|
|
|
the GNU General Public License.
|
|
|
|
</literallayout>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Hopefully that text is self-explanatory. If it isn't, you need to speak
|
|
|
|
to your lawyer, or the Free Software Foundation.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="manual.intro.status.license.fdl" xreflabel="License FDL">
|
|
|
|
<title>The Documentation: GPL, FDL</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The documentation shipped with the library and made available over
|
|
|
|
the web, excluding the pages generated from source comments, are
|
|
|
|
copyrighted by the Free Software Foundation, and placed under the
|
|
|
|
<link linkend="appendix.gfdl-1.2"> GNU Free Documentation
|
|
|
|
License version 1.2</link>. There are no Front-Cover Texts, no
|
|
|
|
Back-Cover Texts, and no Invariant Sections.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
For documentation generated by doxygen or other automated tools
|
|
|
|
via processing source code comments and markup, the original source
|
|
|
|
code license applies to the generated files. Thus, the doxygen
|
|
|
|
documents are licensed <link linkend="appendix.gpl-2.0">GPL</link>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you plan on making copies of the documentation, please let us know.
|
|
|
|
We can probably offer suggestions.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- Section 03 : Known Bugs -->
|
|
|
|
<sect1 id="manual.intro.status.bugs" xreflabel="Bugs">
|
|
|
|
<title>Bugs</title>
|
|
|
|
|
|
|
|
<sect2 id="manual.intro.status.bugs.impl" xreflabel="Bugs impl">
|
|
|
|
<title>Implementation Bugs</title>
|
|
|
|
<para>
|
|
|
|
Information on known bugs, details on efforts to fix them, and
|
|
|
|
fixed bugs are all available as part of the GCC bug tracking
|
|
|
|
system, <ulink
|
|
|
|
url="http://gcc.gnu.org/bugzilla">bugzilla</ulink>, with the
|
|
|
|
category set to <literal>libstdc++</literal>.
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="manual.intro.status.bugs.iso" xreflabel="Bugs iso">
|
|
|
|
<title>Standard Bugs</title>
|
|
|
|
<para>
|
|
|
|
Everybody's got issues. Even the C++ Standard Library.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The Library Working Group, or LWG, is the ISO subcommittee responsible
|
|
|
|
for making changes to the library. They periodically publish an
|
|
|
|
Issues List containing problems and possible solutions. As they reach
|
|
|
|
a consensus on proposed solutions, we often incorporate the solution.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Here are the issues which have resulted in code changes to the library.
|
|
|
|
The links are to the specific defect reports from a <emphasis>partial
|
|
|
|
copy</emphasis> of the Issues List. You can read the full version online
|
|
|
|
at the <ulink url="http://www.open-std.org/jtc1/sc22/wg21/">ISO C++
|
|
|
|
Committee homepage</ulink>, linked to on the
|
|
|
|
<ulink url="http://gcc.gnu.org/readings.html">GCC "Readings"
|
|
|
|
page</ulink>. If
|
|
|
|
you spend a lot of time reading the issues, we recommend downloading
|
|
|
|
the ZIP file and reading them locally.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
(NB: <emphasis>partial copy</emphasis> means that not all
|
|
|
|
links within the lwg-*.html pages will work. Specifically,
|
|
|
|
links to defect reports that have not been accorded full DR
|
|
|
|
status will probably break. Rather than trying to mirror the
|
|
|
|
entire issues list on our overworked web server, we recommend
|
|
|
|
you go to the LWG homepage instead.)
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
If a DR is not listed here, we may simply not have gotten to
|
|
|
|
it yet; feel free to submit a patch. Search the include/bits
|
|
|
|
and src directories for appearances of
|
|
|
|
<constant>_GLIBCXX_RESOLVE_LIB_DEFECTS</constant> for examples
|
|
|
|
of style. Note that we usually do not make changes to the
|
|
|
|
code until an issue has reached <ulink url="lwg-active.html#DR">DR</ulink> status.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<variablelist>
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#5">5</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>string::compare specification questionable</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>This should be two overloaded functions rather than a single function.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#17">17</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Bad bool parsing</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Apparently extracting Boolean values was messed up...
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#19">19</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>"Noconv" definition too vague</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>If <code>codecvt::do_in</code> returns <code>noconv</code> there are
|
|
|
|
no changes to the values in <code>[to, to_limit)</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#22">22</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Member open vs flags</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Re-opening a file stream does <emphasis>not</emphasis> clear the state flags.
|
|
|
|
</para></listitem></varlistentry>
|
PR libstdc++/32422, DR 23 [Ready in R60]
2008-09-23 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/32422, DR 23 [Ready in R60]
* config/locale/gnu/c_locale.cc (__convert_to_v(const char*, float&,
ios_base::iostate&, const __c_locale&), __convert_to_v(const char*,
double&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
char*, long double&, ios_base::iostate&, const __c_locale&)): Implement
DR 23 and deal correctly with broken exponents.
* config/locale/generic/c_locale.cc (__convert_to_v(const char*,
float&, ios_base::iostate&, const __c_locale&), __convert_to_v(const
char*, double&, ios_base::iostate&, const __c_locale&),
__convert_to_v(const char*, long double&, ios_base::iostate&, const
__c_locale&)): Likewise.
* include/bits/locale_facets.tcc (num_get<>::_M_extract_int(_InIter,
_InIter, ios_base&, ios_base::iostate&, _ValueT&)): Likewise.
(num_get<>::_M_extract_float(_InIter, _InIter, ios_base&,
ios_base::iostate&, string&): Change grouping check to set instead of
OR failbit; do not check for eofbit here...
(num_get<>::do_get(iter_type, iter_type, ios_base&,
ios_base::iostate&, float&), num_get<>::do_get(iter_type, iter_type,
ios_base&, ios_base::iostate&, double&), num_get<>::do_get(iter_type,
iter_type, ios_base&, ios_base::iostate&, long double&),
num_get<>::__do_get(iter_type, iter_type, ios_base&,
ios_base::iostate&, double&)): ... do it here instead.
(num_get<>::do_get(iter_type, iter_type, ios_base&,
ios_base::iostate&, bool&)): Implement DR 23.
(num_get<>::do_get(iter_type, iter_type, ios_base&,
ios_base::iostate&, void*&)): Adjust.
* doc/xml/manual/intro.xml: Add and entry for DR 23.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/10.cc:
Adjust.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
Likewise.
* testsuite/22_locale/num_get/get/wchar_t/22131.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
* testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.
* testsuite/22_locale/num_get/get/char/22131.cc: Likewise.
* testsuite/22_locale/num_get/get/char/10.cc: Likewise.
* testsuite/22_locale/num_get/get/char/12.cc: Likewise.
* testsuite/22_locale/num_get/get/char/15.cc: Likewise.
* testsuite/22_locale/num_get/get/char/16.cc: Likewise.
From-SVN: r140574
2008-09-23 02:47:02 +02:00
|
|
|
|
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#23">23</ulink>:
|
|
|
|
<emphasis>Num_get overflow result</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement the proposed resolution.
|
|
|
|
</para></listitem></varlistentry>
|
2008-02-11 01:01:33 +01:00
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#25">25</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>String operator<< uses width() value wrong</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Padding issues.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#48">48</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Use of non-existent exception constructor</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>An instance of <code>ios_base::failure</code> is constructed instead.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#49">49</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Underspecification of ios_base::sync_with_stdio</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The return type is the <emphasis>previous</emphasis> state of synchronization.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#50">50</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Copy constructor and assignment operator of ios_base</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>These members functions are declared <code>private</code> and are
|
|
|
|
thus inaccessible. Specifying the correct semantics of
|
|
|
|
"copying stream state" was deemed too complicated.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#60">60</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>What is a formatted input function?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>This DR made many widespread changes to <code>basic_istream</code>
|
|
|
|
and <code>basic_ostream</code> all of which have been implemented.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#63">63</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Exception-handling policy for unformatted output</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Make the policy consistent with that of formatted input, unformatted
|
|
|
|
input, and formatted output.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#68">68</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Extractors for char* should store null at end</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>And they do now. An editing glitch in the last item in the list of
|
|
|
|
[27.6.1.2.3]/7.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#74">74</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Garbled text for codecvt::do_max_length</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The text of the standard was gibberish. Typos gone rampant.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#75">75</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Contradiction in codecvt::length's argument types</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Change the first parameter to <code>stateT&</code> and implement
|
|
|
|
the new effects paragraph.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term><ulink url="lwg-defects.html#83">83</ulink>:
|
|
|
|
<emphasis>string::npos vs. string::max_size()</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Safety checks on the size of the string should test against
|
|
|
|
<code>max_size()</code> rather than <code>npos</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#90">90</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Incorrect description of operator>> for strings</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The effect contain <code>isspace(c,getloc())</code> which must be
|
|
|
|
replaced by <code>isspace(c,is.getloc())</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#91">91</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Description of operator>> and getline() for string<>
|
|
|
|
might cause endless loop</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>They behave as a formatted input function and as an unformatted
|
|
|
|
input function, respectively (except that <code>getline</code> is
|
|
|
|
not required to set <code>gcount</code>).
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#103">103</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>set::iterator is required to be modifiable, but this allows
|
|
|
|
modification of keys.</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>For associative containers where the value type is the same as
|
|
|
|
the key type, both <code>iterator</code> and <code>const_iterator
|
|
|
|
</code> are constant iterators.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#109">109</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Missing binders for non-const sequence elements</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The <code>binder1st</code> and <code>binder2nd</code> didn't have an
|
|
|
|
<code>operator()</code> taking a non-const parameter.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#110">110</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>istreambuf_iterator::equal not const</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>This was not a const member function. Note that the DR says to
|
|
|
|
replace the function with a const one; we have instead provided an
|
|
|
|
overloaded version with identical contents.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#117">117</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>basic_ostream uses nonexistent num_put member functions</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para><code>num_put::put()</code> was overloaded on the wrong types.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#118">118</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>basic_istream uses nonexistent num_get member functions</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Same as 117, but for <code>num_get::get()</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#129">129</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Need error indication from seekp() and seekg()</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>These functions set <code>failbit</code> on error now.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#136">136</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>seekp, seekg setting wrong streams?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para><code>seekp</code> should only set the output stream, and
|
|
|
|
<code>seekg</code> should only set the input stream.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<!--<varlistentry><term><ulink url="../ext/lwg-defects.html#159">159</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Strange use of underflow()</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In fstream.tcc, the basic_filebuf<>::showmanyc() function
|
|
|
|
should probably not be calling <code>underflow()</code>.
|
|
|
|
</para></listitem></varlistentry> -->
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#167">167</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Improper use of traits_type::length()</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para><code>op<<</code> with a <code>const char*</code> was
|
|
|
|
calculating an incorrect number of characters to write.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#169">169</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Bad efficiency of overflow() mandated</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Grow efficiently the internal array object.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#171">171</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Strange seekpos() semantics due to joint position</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Quite complex to summarize...
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#181">181</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>make_pair() unintended behavior</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>This function used to take its arguments as reference-to-const, now
|
|
|
|
it copies them (pass by value).
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#195">195</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Should basic_istream::sentry's constructor ever set eofbit?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Yes, it can, specifically if EOF is reached while skipping whitespace.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#211">211</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>operator>>(istream&, string&) doesn't set failbit</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>If nothing is extracted into the string, <code>op>></code> now
|
|
|
|
sets <code>failbit</code> (which can cause an exception, etc., etc.).
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#214">214</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>set::find() missing const overload</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Both <code>set</code> and <code>multiset</code> were missing
|
|
|
|
overloaded find, lower_bound, upper_bound, and equal_range functions
|
|
|
|
for const instances.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#231">231</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Precision in iostream?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>For conversion from a floating-point type, <code>str.precision()</code>
|
|
|
|
is specified in the conversion specification.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#233">233</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Insertion hints in associative containers</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement N1780, first check before then check after, insert as close
|
|
|
|
to hint as possible.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#235">235</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>No specification of default ctor for reverse_iterator</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The declaration of <code>reverse_iterator</code> lists a default constructor.
|
|
|
|
However, no specification is given what this constructor should do.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#241">241</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Does unique_copy() require CopyConstructible and Assignable?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add a helper for forward_iterator/output_iterator, fix the existing
|
|
|
|
one for input_iterator/output_iterator to not rely on Assignability.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#243">243</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>get and getline when sentry reports failure</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Store a null character only if the character array has a non-zero size.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#251">251</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>basic_stringbuf missing allocator_type</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>This nested typedef was originally not specified.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#253">253</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>valarray helper functions are almost entirely useless</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Make the copy constructor and copy-assignment operator declarations
|
|
|
|
public in gslice_array, indirect_array, mask_array, slice_array; provide
|
|
|
|
definitions.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#265">265</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>std::pair::pair() effects overly restrictive</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The default ctor would build its members from copies of temporaries;
|
|
|
|
now it simply uses their respective default ctors.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#266">266</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>bad_exception::~bad_exception() missing Effects clause</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The <code>bad_</code>* classes no longer have destructors (they
|
|
|
|
are trivial), since no description of them was ever given.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#271">271</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>basic_iostream missing typedefs</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>The typedefs it inherits from its base classes can't be used, since
|
|
|
|
(for example) <code>basic_iostream<T>::traits_type</code> is ambiguous.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#275">275</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Wrong type in num_get::get() overloads</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Similar to 118.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#280">280</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Comparison of reverse_iterator to const reverse_iterator</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add global functions with two template parameters.
|
|
|
|
(NB: not added for now a templated assignment operator)
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#292">292</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Effects of a.copyfmt (a)</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>If <code>(this == &rhs)</code> do nothing.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#300">300</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>List::merge() specification incomplete</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>If <code>(this == &x)</code> do nothing.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#303">303</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Bitset input operator underspecified</emphasis>
|
|
|
|
</term>
|
complex (complex<>::real(_Tp), [...]): Add per DR 387.
2008-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.
From-SVN: r135878
2008-05-25 20:59:19 +02:00
|
|
|
<listitem><para>Basically, compare the input character to
|
|
|
|
<code>is.widen(0)</code> and <code>is.widen(1)</code>.
|
2008-02-11 01:01:33 +01:00
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#305">305</ulink>:
|
complex (complex<>::real(_Tp), [...]): Add per DR 387.
2008-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.
From-SVN: r135878
2008-05-25 20:59:19 +02:00
|
|
|
<emphasis>Default behavior of codecvt<wchar_t, char,
|
|
|
|
mbstate_t>::length()</emphasis>
|
2008-02-11 01:01:33 +01:00
|
|
|
</term>
|
complex (complex<>::real(_Tp), [...]): Add per DR 387.
2008-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.
From-SVN: r135878
2008-05-25 20:59:19 +02:00
|
|
|
<listitem><para>Do not specify what <code>codecvt<wchar_t, char,
|
|
|
|
mbstate_t>::do_length</code> must return.
|
2008-02-11 01:01:33 +01:00
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#328">328</ulink>:
|
complex (complex<>::real(_Tp), [...]): Add per DR 387.
2008-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.
From-SVN: r135878
2008-05-25 20:59:19 +02:00
|
|
|
<emphasis>Bad sprintf format modifier in
|
|
|
|
money_put<>::do_put()</emphasis>
|
2008-02-11 01:01:33 +01:00
|
|
|
</term>
|
|
|
|
<listitem><para>Change the format string to "%.0Lf".
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#365">365</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Lack of const-qualification in clause 27</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add const overloads of <code>is_open</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
complex (complex<>::real(_Tp), [...]): Add per DR 387.
2008-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.
From-SVN: r135878
2008-05-25 20:59:19 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#387">387</ulink>:
|
|
|
|
<emphasis>std::complex over-encapsulated</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add the <code>real(T)</code> and <code>imag(T)</code>
|
|
|
|
members; in C++0x mode, also adjust the existing
|
|
|
|
<code>real()</code> and <code>imag()</code> members and
|
|
|
|
free functions.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#389">389</ulink>:
|
complex (complex<>::real(_Tp), [...]): Add per DR 387.
2008-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.
From-SVN: r135878
2008-05-25 20:59:19 +02:00
|
|
|
<emphasis>Const overload of valarray::operator[] returns
|
|
|
|
by value</emphasis>
|
2008-02-11 01:01:33 +01:00
|
|
|
</term>
|
|
|
|
<listitem><para>Change it to return a <code>const T&</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
Implement DR 396 [Ready].
2008-09-23 Paolo Carlini <paolo.carlini@oracle.com>
Implement DR 396 [Ready].
* include/std/bitset (bitset<>::bitset(const std::basic_string<>&,
size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
char, char), bitset<>::to_string(_CharT, _CharT),
bitset<>::_M_copy_from_string(const std::basic_string<>&, size_t,
size_t, _CharT, _CharT), bitset<>::_M_copy_to_string
(std::basic_string<>&, _CharT, _CharT), bitset<>::_M_copy_from_ptr(
const _CharT*, size_t, size_t, size_t, _CharT, _CharT)): Add.
(operator>>(std::basic_istream<>&, bitset<_Nb>&), operator<<(
std::basic_ostream<>&, const bitset<_Nb>&)): Adjust.
* include/debug/bitset (bitset<>::bitset(const std::basic_string<>&,
size_t, size_t, _CharT, _CharT), bitset<>::bitset(const char*,
char, char), bitset<>::to_string(_CharT, _CharT)): Add.
* doc/xml/manual/intro.xml: Add an entry for DR 396.
* testsuite/23_containers/bitset/cons/dr396.cc: Add.
* testsuite/23_containers/bitset/to_string/dr396.cc: Likewise.
From-SVN: r140607
2008-09-23 20:14:24 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#396">396</ulink>:
|
|
|
|
<emphasis>what are characters zero and one</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement the proposed resolution.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#402">402</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Wrong new expression in [some_]allocator::construct</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Replace "new" with "::new".
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#409">409</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Closing an fstream should clear the error state</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Have <code>open</code> clear the error flags.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#431">431</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Swapping containers with unequal allocators</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement Option 3, as per N1599.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#432">432</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>stringbuf::overflow() makes only one write position
|
|
|
|
available</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement the resolution, beyond DR 169.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#434">434</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>bitset::to_string() hard to use</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add three overloads, taking fewer template arguments.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#438">438</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Ambiguity in the "do the right thing" clause</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement the resolution, basically cast less.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#453">453</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>basic_stringbuf::seekoff need not always fail for an empty stream</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Don't fail if the next pointer is null and newoff is zero.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#455">455</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>cerr::tie() and wcerr::tie() are overspecified</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Initialize cerr tied to cout and wcerr tied to wcout.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#464">464</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Suggestion for new member functions in standard containers</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add <code>data()</code> to <code>std::vector</code> and
|
|
|
|
<code>at(const key_type&)</code> to <code>std::map</code>.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#508">508</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Bad parameters for ranlux64_base_01</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Fix the parameters.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-closed.html#512">512</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Seeding subtract_with_carry_01 from a single unsigned long</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Construct a <code>linear_congruential</code> engine and seed with it.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-closed.html#526">526</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Is it undefined if a function in the standard changes in
|
|
|
|
parameters?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Use &value.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#538">538</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>241 again: Does unique_copy() require CopyConstructible
|
|
|
|
and Assignable?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In case of input_iterator/output_iterator rely on Assignability of
|
|
|
|
input_iterator' value_type.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#541">541</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>shared_ptr template assignment and void</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add an auto_ptr<void> specialization.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#543">543</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>valarray slice default constructor</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Follow the straightforward proposed resolution.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-09-22 17:17:09 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#550">550</ulink>:
|
cmath (pow(float, int), [...]): Do not define in C++0x mode, per DR 550.
2008-05-26 Paolo Carlini <paolo.carlini@oracle.com>
* include/c_global/cmath (pow(float, int), pow(double, int),
pow(long double, int)): Do not define in C++0x mode, per DR 550.
* include/tr1_impl/cmath (pow): Do not bring in unconditionally
from namespace std.
* include/tr1/cmath (pow(double, double), pow(float, float),
pow(long double, long double), pow(_Tp, _Up)): Define.
* include/tr1/complex (pow): Do not bring in from namespace std.
(pow(const std::complex<_Tp>&, int), pow(const std::complex<_Tp>&,
const _Tp&), pow(const _Tp&, const std::complex<_Tp>&),
pow(const std::complex<_Tp>&, const std::complex<_Tp>&)): Define.
* include/tr1_impl/complex (pow(const std::complex<_Tp>&,
const _Up&), pow(const _Tp&, const std::complex<_Up>&),
pow(const std::complex<_Tp>&, const std::complex<_Up>&)): Always
define.
* doc/xml/manual/intro.xml: Add an entry for DR 550.
* testsuite/26_numerics/headers/cmath/dr550.cc: New.
* testsuite/tr1/8_c_compatibility/cmath/overloads.cc: Adjust.
From-SVN: r135955
2008-05-26 21:18:24 +02:00
|
|
|
<emphasis>What should the return type of pow(float,int) be?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In C++0x mode, remove the pow(float,int), etc., signatures.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#586">586</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>string inserter not a formatted function</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Change it to be a formatted output function (i.e. catch exceptions).
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-09-22 17:17:09 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#596">596</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>27.8.1.3 Table 112 omits "a+" and "a+b" modes</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add the missing modes to fopen_mode.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#660">660</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>Missing bitwise operations</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add the missing operations.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-06-12 00:56:51 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#691">691</ulink>:
|
|
|
|
<emphasis>const_local_iterator cbegin, cend missing from TR1</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In C++0x mode add cbegin(size_type) and cend(size_type)
|
|
|
|
to the unordered containers.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#693">693</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>std::bitset::all() missing</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add it, consistently with the discussion.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-05-23 12:35:39 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#695">695</ulink>:
|
2008-02-11 01:01:33 +01:00
|
|
|
<emphasis>ctype<char>::classic_table() not accessible</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Make the member functions table and classic_table public.
|
|
|
|
</para></listitem></varlistentry>
|
2008-05-21 22:46:16 +02:00
|
|
|
|
2008-09-22 17:17:09 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#761">761</ulink>:
|
2008-05-23 03:39:17 +02:00
|
|
|
<emphasis>unordered_map needs an at() member function</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In C++0x mode, add at() and at() const.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-09-22 17:17:09 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#775">775</ulink>:
|
2008-05-24 01:08:41 +02:00
|
|
|
<emphasis>Tuple indexing should be unsigned?</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Implement the int -> size_t replacements.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-06-13 09:35:22 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#776">776</ulink>:
|
|
|
|
<emphasis>Undescribed assign function of std::array</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In C++0x mode, remove assign, add fill.
|
|
|
|
</para></listitem></varlistentry>
|
|
|
|
|
2008-09-22 17:17:09 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#778">778</ulink>:
|
2008-06-13 09:35:22 +02:00
|
|
|
<emphasis>std::bitset does not have any constructor taking a string
|
|
|
|
literal</emphasis>
|
2008-05-21 22:46:16 +02:00
|
|
|
</term>
|
|
|
|
<listitem><para>Add it.
|
|
|
|
</para></listitem></varlistentry>
|
2008-05-22 13:44:00 +02:00
|
|
|
|
2008-09-22 17:17:09 +02:00
|
|
|
<varlistentry><term><ulink url="../ext/lwg-defects.html#781">781</ulink>:
|
2008-05-22 13:44:00 +02:00
|
|
|
<emphasis>std::complex should add missing C99 functions</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In C++0x mode, add std::proj.
|
|
|
|
</para></listitem></varlistentry>
|
2008-06-22 15:57:06 +02:00
|
|
|
|
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#809">809</ulink>:
|
|
|
|
<emphasis>std::swap should be overloaded for array types</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>Add the overload.
|
|
|
|
</para></listitem></varlistentry>
|
2008-06-12 12:17:53 +02:00
|
|
|
|
|
|
|
<varlistentry><term><ulink url="../ext/lwg-active.html#844">844</ulink>:
|
|
|
|
<emphasis>complex pow return type is ambiguous</emphasis>
|
|
|
|
</term>
|
|
|
|
<listitem><para>In C++0x mode, remove the pow(complex<T>, int) signature.
|
|
|
|
</para></listitem></varlistentry>
|
2008-02-11 01:01:33 +01:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Chapter 02 : Setup -->
|
|
|
|
<chapter id="manual.intro.setup" xreflabel="Setup">
|
|
|
|
<title>Setup</title>
|
|
|
|
|
2008-08-28 02:44:45 +02:00
|
|
|
<para>To transform libstdc++ sources into installed include files
|
|
|
|
and properly built binaries useful for linking to other software is
|
|
|
|
a multi-step process. Steps include getting the sources,
|
|
|
|
configuring and building the sources, testing, and installation.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>The general outline of commands is something like:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<programlisting>
|
|
|
|
<emphasis>get gcc sources</emphasis>
|
|
|
|
<emphasis>extract into gccsrcdir</emphasis>
|
|
|
|
mkdir <emphasis>gccbuilddir</emphasis>
|
|
|
|
cd <emphasis>gccbuilddir</emphasis>
|
|
|
|
<emphasis>gccsrcdir</emphasis>/configure --prefix=<emphasis>destdir</emphasis> --other-opts...
|
|
|
|
make
|
|
|
|
make check
|
|
|
|
make install
|
|
|
|
</programlisting>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Each step is described in more detail in the following sections.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- Section 01 : Prerequisites -->
|
2008-02-11 01:01:33 +01:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2008-08-28 02:44:45 +02:00
|
|
|
parse="xml" href="prerequisites.xml">
|
2008-02-11 01:01:33 +01:00
|
|
|
</xi:include>
|
|
|
|
|
2008-08-28 02:44:45 +02:00
|
|
|
<!-- Section 02 : Configure -->
|
2008-02-11 01:01:33 +01:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2008-08-28 02:44:45 +02:00
|
|
|
parse="xml" href="configure.xml">
|
2008-02-11 01:01:33 +01:00
|
|
|
</xi:include>
|
|
|
|
|
2008-08-28 02:44:45 +02:00
|
|
|
<!-- Section 03 : Make -->
|
|
|
|
<sect1 id="manual.intro.setup.make" xreflabel="Make">
|
|
|
|
<title>Make</title>
|
|
|
|
<para>If you have never done this before, you should read the basic
|
|
|
|
<ulink url="http://gcc.gnu.org/install/">GCC Installation
|
|
|
|
Instructions</ulink> first. Read <emphasis>all of them</emphasis>.
|
|
|
|
<emphasis>Twice.</emphasis>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>Then type:<command>make</command>, and congratulations, you're
|
|
|
|
started to build.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<!-- Section 04 : Test -->
|
2008-02-11 01:01:33 +01:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
parse="xml" href="test.xml">
|
|
|
|
</xi:include>
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Chapter 03 : Using -->
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
parse="xml" href="using.xml">
|
|
|
|
</xi:include>
|
|
|
|
|
|
|
|
</part>
|