aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stable/atom.h2
-rw-r--r--src/stable/list.h14
-rw-r--r--src/stable/sharedcore.h2
-rw-r--r--src/stable/string.h6
4 files changed, 9 insertions, 15 deletions
diff --git a/src/stable/atom.h b/src/stable/atom.h
index 7cef92a..88d0419 100644
--- a/src/stable/atom.h
+++ b/src/stable/atom.h
@@ -23,7 +23,7 @@ namespace Bu
23 class Atom 23 class Atom
24 { 24 {
25 private: 25 private:
26 typedef struct Atom<t, talloc> MyType; 26 typedef class Atom<t, talloc> MyType;
27 27
28 public: 28 public:
29 Atom() : 29 Atom() :
diff --git a/src/stable/list.h b/src/stable/list.h
index 5ab7117..582e0e4 100644
--- a/src/stable/list.h
+++ b/src/stable/list.h
@@ -222,8 +222,8 @@ namespace Bu
222 using SharedCore<MyType, Core>::_allocateCore; 222 using SharedCore<MyType, Core>::_allocateCore;
223 223
224 public: 224 public:
225 struct const_iterator; 225 class const_iterator;
226 struct iterator; 226 class iterator;
227 227
228 List() 228 List()
229 { 229 {
@@ -489,9 +489,9 @@ namespace Bu
489 /** 489 /**
490 * An iterator to iterate through your list. 490 * An iterator to iterate through your list.
491 */ 491 */
492 typedef struct iterator 492 class iterator
493 { 493 {
494 friend struct const_iterator; 494 friend class const_iterator;
495 friend class List<value, valuealloc, linkalloc>; 495 friend class List<value, valuealloc, linkalloc>;
496 private: 496 private:
497 Link *pLink; 497 Link *pLink;
@@ -652,12 +652,12 @@ namespace Bu
652 pLink = oth.pLink; 652 pLink = oth.pLink;
653 return *this; 653 return *this;
654 } 654 }
655 } iterator; 655 };
656 656
657 /** 657 /**
658 *@see iterator 658 *@see iterator
659 */ 659 */
660 typedef struct const_iterator 660 class const_iterator
661 { 661 {
662 friend class List<value, valuealloc, linkalloc>; 662 friend class List<value, valuealloc, linkalloc>;
663 private: 663 private:
@@ -792,7 +792,7 @@ namespace Bu
792 { 792 {
793 return pLink != NULL; 793 return pLink != NULL;
794 } 794 }
795 } const_iterator; 795 };
796 796
797 /** 797 /**
798 * Get an iterator pointing to the first item in the list. 798 * Get an iterator pointing to the first item in the list.
diff --git a/src/stable/sharedcore.h b/src/stable/sharedcore.h
index e79c3d6..84bfdcf 100644
--- a/src/stable/sharedcore.h
+++ b/src/stable/sharedcore.h
@@ -110,7 +110,7 @@ namespace Bu
110 110
111 bool isCoreShared( const Shell &rOther ) const 111 bool isCoreShared( const Shell &rOther ) const
112 { 112 {
113 return rOther.core == core; 113 return dynamic_cast<const _SharedType &>(rOther).core == core;
114 } 114 }
115 115
116 protected: 116 protected:
diff --git a/src/stable/string.h b/src/stable/string.h
index 420f40c..b4252c6 100644
--- a/src/stable/string.h
+++ b/src/stable/string.h
@@ -88,12 +88,6 @@ namespace Bu
88 iPos( i.iPos ) 88 iPos( i.iPos )
89 { 89 {
90 } 90 }
91
92 const_iterator( const struct iterator &i ) :
93 pChunk( i.pChunk ),
94 iPos( i.iPos )
95 {
96 }
97 91
98 const_iterator() : 92 const_iterator() :
99 pChunk( NULL ), 93 pChunk( NULL ),