Created on 2009-11-01.00:00:00 last changed 162 months ago
Proposed resolution:
Strike second sentence from the definition of vector<bool>::flip(), [vector.bool], paragraph 5.
Effects: Replaces each element in the container with its complement.
It is unspecified whether the function has any effect on allocated but unused bits.
[ 2009-11-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]
The effects of vector<bool>::flip has the line:
It is unspecified whether the function has any effect on allocated but unused bits.
While this is technically true, it is misleading, as any member function in any standard container may change unused but allocated memory. Users can never observe such changes as it would also be undefined behaviour to read such memory.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-10-21 18:28:33 | admin | set | messages: + msg1331 |
2010-10-21 18:28:33 | admin | set | messages: + msg1330 |
2009-11-01 00:00:00 | admin | create |