This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: unordered insert hint patch


On 11/26/2010 11:39 PM, Paolo Carlini wrote:
Il 26/11/10 21.34, François Dumont ha scritto:
Hi

IMO the debug mode code should only take care about making debug checks and then move all info to the normal code. This is why I propose this patch that check and pass the hint iterator passed to some unordered insert overloads and that the debug hide to the normal code for the moment. This is a maintenability patch so that the day the normal code use the hint iterator the debug code won't have to be impacted.
Ok, thanks. In the future, please always post the ChangeLog entry too.

Paolo.
Attached patch applied:

* include/debug/unordered_map, unordered_set (unordered_map<>::insert,
unordered_multimap<>::insert, unordered_set<>::insert,
unordered_multiset<>::insert) Debug check iterator hint and pass it to
normal implementation.


François

Attachment: unordered_insert_hint.patch
Description: Text document


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