diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2008-04-17 21:46:22 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2008-04-17 21:46:22 +0000 |
| commit | cfde776724c2f214b962dc8077ddca8305ddd705 (patch) | |
| tree | 852a49ea858393a93886ac7dd3a5d0863ca4a935 /cpp/src/qpid/IList.h | |
| parent | 20e4466ca57bc7bdc81ca0857549a63c77f41d8a (diff) | |
| download | qpid-python-cfde776724c2f214b962dc8077ddca8305ddd705.tar.gz | |
Patch for improved compatibility with gcc 3.4 and boost 1.33
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@649294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/IList.h')
| -rw-r--r-- | cpp/src/qpid/IList.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/src/qpid/IList.h b/cpp/src/qpid/IList.h index f5c78ced68..6a5299862c 100644 --- a/cpp/src/qpid/IList.h +++ b/cpp/src/qpid/IList.h @@ -38,6 +38,8 @@ template <class Pointer> class IListNode { typedef Pointer pointer; typedef typename Pointee<Pointer>::type NodeType; typedef typename pointer_to_other<Pointer, const NodeType>::type const_pointer; + + pointer prev, next; protected: IListNode() : prev() {} @@ -49,7 +51,6 @@ template <class Pointer> class IListNode { const_pointer getPrev() const { return prev; } private: - pointer prev, next; friend class IList<NodeType>; }; @@ -168,10 +169,14 @@ template<class Node> class IList { template <class U> Iterator( const Iterator<U>& i, typename boost::enable_if_convertible<U*, T*>::type* = 0 - ) : ptr(i.ptr) {} + ) : ptr(i.ptr) {} operator pointer() { return ptr; } operator const_pointer() const { return ptr; } + + + pointer ptr; + private: friend class boost::iterator_core_access; @@ -183,7 +188,6 @@ template<class Node> class IList { void decrement() { ptr = ptr->prev; } bool equal(const Iterator& x) const { return ptr == x.ptr; } - pointer ptr; friend class IList<Node>; }; |
