This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/21770] rebinding allocator::value type vs. container::value_type


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]