This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17866] std::allocator fails on CV-related types
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2004 20:28:52 -0000
- Subject: [Bug libstdc++/17866] std::allocator fails on CV-related types
- References: <20041006190458.17866.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-10-06 20:28 -------
It would still be interesting to hear the opinion of the libstdc++ guys.
Somehow I can't help feeling that it might even make sense to have an
allocator for constant data objects and that the fact that the present
standard specification is simply an oversight in that it doesn't
allow this. Surely, it is simple enough to write a specialization of
the allocator class that merges the two address() functions into one in
case the template argument is a constant type.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17866