From 4de5cbe4330bf65cf8157ab98b9c8cbc203dc1cb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 3 Jan 2016 23:06:30 +0000 Subject: Added some more campatibility between Bu::String::iterator and Bu::String::const_iterator that should have always been there. --- src/stable/string.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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 { return !(*this == i); } + + bool operator==( const const_iterator &i ) const + { + return pChunk == i.pChunk && iPos == i.iPos; + } + + bool operator!=( const const_iterator &i ) const + { + return !(*this == i); + } iterator &operator=( const iterator &i ) { -- cgit v1.2.3