This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/9444: g++ STL requires iterators passed to string constructor to have a constructor without parameters, but C++ standard does not require that
- From: paolo at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org, scmvs at cs dot cf dot ac dot uk, val at digiways dot com
- Date: 26 Jan 2003 23:31:19 -0000
- Subject: Re: libstdc++/9444: g++ STL requires iterators passed to string constructor to have a constructor without parameters, but C++ standard does not require that
- Reply-to: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org, scmvs at cs dot cf dot ac dot uk, val at digiways dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ STL requires iterators passed to string constructor to have a constructor without parameters, but C++ standard does not require that
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Sun Jan 26 23:31:18 2003
Responsible-Changed-Why:
Analyzed.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Sun Jan 26 23:31:18 2003
State-Changed-Why:
In a nutshell, I do not agree. Indeed, the lines which you
emphasize are from:
_S_construct(..., forward_iterator_tag)
^^^^^^^^^^^^^^^^^^^^
Among the ISO C++ requirements for _forward_ iterators
(24.1.3, Table 74) is the parameterless constructor.
Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9444