diff options
-rw-r--r-- | src/list.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -250,11 +250,13 @@ namespace Bu | |||
250 | } | 250 | } |
251 | } | 251 | } |
252 | 252 | ||
253 | struct const_iterator; | ||
253 | /** | 254 | /** |
254 | * An iterator to iterate through your list. | 255 | * An iterator to iterate through your list. |
255 | */ | 256 | */ |
256 | typedef struct iterator | 257 | typedef struct iterator |
257 | { | 258 | { |
259 | friend struct const_iterator; | ||
258 | friend class List<value, cmpfunc, valuealloc, linkalloc>; | 260 | friend class List<value, cmpfunc, valuealloc, linkalloc>; |
259 | private: | 261 | private: |
260 | Link *pLink; | 262 | Link *pLink; |