This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17226] std::vector length constructor uses element copy constructor
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2004 12:34:09 -0000
- Subject: [Bug libstdc++/17226] std::vector length constructor uses element copy constructor
- References: <20040829114500.17226.M.Schouten@phys.uu.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-08-29 12:34 -------
Hi.
I suppose that by "length constructor" you mean the one having this signature
(23.2.4):
explicit vector(size_type n, const T& value = T(),
const Allocator& = Allocator());
which, we are implementing correctly via two overloads (one for the
default T()), as permitted (in general) by the standard.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|std::vector length |std::vector length
|constructor uses element |constructor uses element
|copy constructor |copy constructor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17226