From 516fa9045af1e9c85ce524535d0ea5bc395e86cb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 18 Jan 2018 16:08:24 -0800 Subject: Made json much more helpful. Fixed array iterators. --- src/stable/array.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src/stable') diff --git a/src/stable/array.h b/src/stable/array.h index a662705..8c17cc4 100644 --- a/src/stable/array.h +++ b/src/stable/array.h @@ -362,6 +362,18 @@ namespace Bu long iPos; public: + iterator() : + src( NULL ), + iPos( -1 ) + { + } + + iterator( const iterator &rSrc ) : + src( rSrc.src ), + iPos( rSrc.iPos ) + { + } + iterator operator++( int ) { if( iPos < 0 ) @@ -480,11 +492,18 @@ namespace Bu long iPos; public: - const_iterator( iterator &rSrc ) : + const_iterator( const iterator &rSrc ) : src( rSrc.src ), iPos( rSrc.iPos ) { } + + const_iterator( const const_iterator &rSrc ) : + src( rSrc.src ), + iPos( rSrc.iPos ) + { + } + const_iterator operator++( int ) { if( iPos < 0 ) -- cgit v1.2.3