From 299bb8f95890495cd6fc1a0a79c6531032f39772 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 12 Jan 2009 00:35:05 +0000 Subject: The Bu::List::end() function was returning a null pointer instead of a properly formed iterator. That caused a few problems. I think it's all set now though. --- src/list.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index 530d858..8c5e94e 100644 --- a/src/list.h +++ b/src/list.h @@ -490,9 +490,19 @@ namespace Bu * the list. *@returns (const Link *) */ - const Link *end() const + const iterator end() { - return NULL; + return iterator( NULL, *this ); + } + + /** + * Get an iterator pointing to a place just past the last item in + * the list. + *@returns (const Link *) + */ + const const_iterator end() const + { + return const_iterator( NULL, *this ); } /** -- cgit v1.2.3