This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21770] rebinding allocator::value type vs. container::value_type
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2005 20:19:46 -0000
- Subject: [Bug libstdc++/21770] rebinding allocator::value type vs. container::value_type
- References: <20050526165558.21770.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-05-26 20:19 -------
Agreed. Then, I'm going to look into it. Testcases are easy to find: actually,
your example, std::vector<int, std::allocator<char> > , doesn't even compile,
currently.
To Andrew: maybe, in pedantic mode. But notice that the problem should be
detected at *compile* time: indeed seems doable using a bit of template
tricks: is_same<allocator::value_type, container::value_type> ...
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-05-26 20:19:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21770