Commit a7890973 by Jonathan Wakely Committed by Jonathan Wakely

* testsuite/util/testsuite_allocator.h (PointerBase::operator[]): Add.

From-SVN: r227661
parent 94eb2ddb
2015-09-10 Jonathan Wakely <jwakely@redhat.com>
* testsuite/util/testsuite_allocator.h (PointerBase::operator[]): Add.
* testsuite/21_strings/basic_string/operators/char/1.cc: Verify the
string contents.
......
......@@ -575,6 +575,7 @@ namespace __gnu_test
T& operator*() const { return *value; }
T* operator->() const { return value; }
T& operator[](difference_type n) const { return value[n]; }
Derived& operator++() { ++value; return derived(); }
Derived operator++(int) { Derived tmp(derived()); ++value; return tmp; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment