diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-07 13:59:10 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-07 13:59:10 +0200 |
commit | 45ca2908a3c7f3d4c56325e1fbc404bd11bdba3b (patch) | |
tree | 93a30c32834bc11869ee483aec3d65afb037da6c /include | |
parent | f71e6bf9cb41811f18864f5d4eecb26e29d03f25 (diff) |
Fix accessibility in intrusive_list_node and return value of operator-- in intrusive_list
Diffstat (limited to 'include')
-rw-r--r-- | include/intrusive_list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/intrusive_list.h b/include/intrusive_list.h index 399dc33e8..134a72267 100644 --- a/include/intrusive_list.h +++ b/include/intrusive_list.h @@ -26,7 +26,7 @@ struct intrusive_list_def_tag { }; template <typename T, typename Tag = intrusive_list_def_tag> class intrusive_list; template <typename T, typename Tag = intrusive_list_def_tag> -struct intrusive_list_node +class intrusive_list_node { T* ptr_next; T* ptr_prev; @@ -77,7 +77,7 @@ class intrusive_list return ret; } - void operator--() + iterator& operator--() { curr = curr->intrusive_list_node<T, Tag>::ptr_prev; return *this; |