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: N3644 Comparing value-initialized iterators



     I will spend some time on it if you don't mind.
I don't mind, but I'm not confident you'll be able to make
uninitialized memory give reliable results.


    I am not confident neither but for the moment I can only see 3 choices:
1. Remove debug checks regarding those comparisons
2. Do not change anything so ignoring N3644 resolution
3. Detect uninitialized memory even if not reliable

People interesting in debug checks will surely not appreciate choice 1. People that worked to have N3644 adopted will surely not appreciate 2. 3 looks like the most acceptable approach to me.

To start with I will submit patches to remove useless initializations I have found on unordered containers iterators and on safe iterators.

François


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