diff options
Diffstat (limited to 'linked_list.h')
-rw-r--r-- | linked_list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linked_list.h b/linked_list.h index 3eab5549..a27d82a1 100644 --- a/linked_list.h +++ b/linked_list.h @@ -21,7 +21,8 @@ template <typename T> struct llist { llink<T>* head; llink<T>* tail; - llink<T>* cur; + llink<T>* __cur; + T* cur() { return __cur->value; } int length; llist (); |