mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
* include/bits/stl_iterator.h (reverse_iterator::reverse_iterator()): Apply DR235: default constructor default-initializes data member. Instantiated on a pointer type, the member has to end up equal to zero. From-SVN: r67559
This commit is contained in:
parent
3a11ec8b53
commit
d56a88114a
@ -1,3 +1,10 @@
|
||||
2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
|
||||
|
||||
* include/bits/stl_iterator.h
|
||||
(reverse_iterator::reverse_iterator()): Apply DR235: default
|
||||
constructor default-initializes data member. Instantiated on a
|
||||
pointer type, the member has to end up equal to zero.
|
||||
|
||||
2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/bits/stl_alloc.h: Cleanups.
|
||||
|
@ -846,7 +846,7 @@ namespace std
|
||||
compare(const _CharT* __s) const;
|
||||
|
||||
// _GLIBCPP_RESOLVE_LIB_DEFECTS
|
||||
// 5. String::compare specification questionable
|
||||
// 5 String::compare specification questionable
|
||||
int
|
||||
compare(size_type __pos, size_type __n1, const _CharT* __s) const;
|
||||
|
||||
|
@ -106,9 +106,12 @@ namespace std
|
||||
|
||||
public:
|
||||
/**
|
||||
* The default constructor gives an undefined state to this %iterator.
|
||||
* The default constructor default-initializes member @p current.
|
||||
* If it is a pointer, that means it is zero-initialized.
|
||||
*/
|
||||
reverse_iterator() { }
|
||||
// _GLIBCPP_RESOLVE_LIB_DEFECTS
|
||||
// 235 No specification of default ctor for reverse_iterator
|
||||
reverse_iterator() : current() { }
|
||||
|
||||
/**
|
||||
* This %iterator will move in the opposite direction that @p x does.
|
||||
|
Loading…
Reference in New Issue
Block a user