diff options
Diffstat (limited to 'src/stable')
-rw-r--r-- | src/stable/array.h | 21 |
1 files changed, 20 insertions, 1 deletions
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 | |||
362 | long iPos; | 362 | long iPos; |
363 | 363 | ||
364 | public: | 364 | public: |
365 | iterator() : | ||
366 | src( NULL ), | ||
367 | iPos( -1 ) | ||
368 | { | ||
369 | } | ||
370 | |||
371 | iterator( const iterator &rSrc ) : | ||
372 | src( rSrc.src ), | ||
373 | iPos( rSrc.iPos ) | ||
374 | { | ||
375 | } | ||
376 | |||
365 | iterator operator++( int ) | 377 | iterator operator++( int ) |
366 | { | 378 | { |
367 | if( iPos < 0 ) | 379 | if( iPos < 0 ) |
@@ -480,11 +492,18 @@ namespace Bu | |||
480 | long iPos; | 492 | long iPos; |
481 | 493 | ||
482 | public: | 494 | public: |
483 | const_iterator( iterator &rSrc ) : | 495 | const_iterator( const iterator &rSrc ) : |
484 | src( rSrc.src ), | 496 | src( rSrc.src ), |
485 | iPos( rSrc.iPos ) | 497 | iPos( rSrc.iPos ) |
486 | { | 498 | { |
487 | } | 499 | } |
500 | |||
501 | const_iterator( const const_iterator &rSrc ) : | ||
502 | src( rSrc.src ), | ||
503 | iPos( rSrc.iPos ) | ||
504 | { | ||
505 | } | ||
506 | |||
488 | const_iterator operator++( int ) | 507 | const_iterator operator++( int ) |
489 | { | 508 | { |
490 | if( iPos < 0 ) | 509 | if( iPos < 0 ) |