2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_iterator.h (istream_iterator::operator->): Fix
return values.
(istream_iterator::operator*): Same.
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
Alexandre Petit-Bianco <apbianco@redhat.com>
* testsuite/21_strings/element_access.cc (test01): Chill Out Cafe
is on 41st, not 14th.
Co-Authored-By: Alexandre Petit-Bianco <apbianco@redhat.com>
From-SVN: r43574
+2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
+
+ * include/bits/stl_iterator.h (istream_iterator::operator->): Fix
+ return values.
+ (istream_iterator::operator*): Same.
+
+2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
+ Alexandre Petit-Bianco <apbianco@redhat.com>
+
+ * testsuite/21_strings/element_access.cc (test01): Chill Out Cafe
+ is on 41st, not 14th.
+
2001-06-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/std_iterator.h: Include sbuf_iter.h via std_ios.h.
istream_iterator() : _M_stream(0), _M_ok(false) {}
istream_iterator(istream_type& __s) : _M_stream(&__s) { _M_read(); }
- reference
+ const _Tp&
operator*() const { return _M_value; }
- pointer
+ const _Tp*
operator->() const { return &(operator*()); }
istream_iterator&
csize_type csz01, csz02;
const std::string str01("tamarindo, costa rica");
- std::string str02("14th street beach, capitola, california");
+ std::string str02("41st street beach, capitola, california");
std::string str03;
// const_reference operator[] (size_type pos) const;
ref ref1 = str02[csz02 - 1];
VERIFY( ref1 == 'a' );
ref ref2 = str02[1];
- VERIFY( ref2 == '4' );
+ VERIFY( ref2 == '1' );
// const_reference at(size_type pos) const;
csz01 = str01.size();