diff options
author | Mike Buland <eichlan@xagasoft.com> | 2014-02-03 07:02:42 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2014-02-03 07:02:42 +0000 |
commit | 0520eadabd18a1e21929002a66885f91856f8a02 (patch) | |
tree | 27230839fe02b20f89c43edeeed6b57d48dfc8f0 /src/stable/list.h | |
parent | 3769f85c80ffeb403c5310aa4a1e1914f90219a3 (diff) | |
download | libbu++-0520eadabd18a1e21929002a66885f91856f8a02.tar.gz libbu++-0520eadabd18a1e21929002a66885f91856f8a02.tar.bz2 libbu++-0520eadabd18a1e21929002a66885f91856f8a02.tar.xz libbu++-0520eadabd18a1e21929002a66885f91856f8a02.zip |
Compiles with LLVM 3.4 as well now.
Diffstat (limited to 'src/stable/list.h')
-rw-r--r-- | src/stable/list.h | 14 |
1 files changed, 7 insertions, 7 deletions
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. |