summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-07 13:59:10 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-07 13:59:10 +0200
commit45ca2908a3c7f3d4c56325e1fbc404bd11bdba3b (patch)
tree93a30c32834bc11869ee483aec3d65afb037da6c /include
parentf71e6bf9cb41811f18864f5d4eecb26e29d03f25 (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.h4
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;