aboutsummaryrefslogtreecommitdiff
path: root/src/stable/string.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2016-01-03 23:06:30 +0000
committerMike Buland <eichlan@xagasoft.com>2016-01-03 23:06:30 +0000
commit4de5cbe4330bf65cf8157ab98b9c8cbc203dc1cb (patch)
treeb78dca0e6817eaf0497f81f30ccf04fbf2789154 /src/stable/string.h
parentb2997491473a00f7fe11201d62228edd92c645fb (diff)
downloadlibbu++-4de5cbe4330bf65cf8157ab98b9c8cbc203dc1cb.tar.gz
libbu++-4de5cbe4330bf65cf8157ab98b9c8cbc203dc1cb.tar.bz2
libbu++-4de5cbe4330bf65cf8157ab98b9c8cbc203dc1cb.tar.xz
libbu++-4de5cbe4330bf65cf8157ab98b9c8cbc203dc1cb.zip
Added some more campatibility between Bu::String::iterator and
Bu::String::const_iterator that should have always been there.
Diffstat (limited to '')
-rw-r--r--src/stable/string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stable/string.h b/src/stable/string.h
index 282624c..54cd2bc 100644
--- a/src/stable/string.h
+++ b/src/stable/string.h
@@ -346,6 +346,16 @@ namespace Bu
346 { 346 {
347 return !(*this == i); 347 return !(*this == i);
348 } 348 }
349
350 bool operator==( const const_iterator &i ) const
351 {
352 return pChunk == i.pChunk && iPos == i.iPos;
353 }
354
355 bool operator!=( const const_iterator &i ) const
356 {
357 return !(*this == i);
358 }
349 359
350 iterator &operator=( const iterator &i ) 360 iterator &operator=( const iterator &i )
351 { 361 {