Fixed gcc-4.8 incompatibility
authorkhizmax <khizmax@gmail.com>
Mon, 28 Nov 2016 08:30:23 +0000 (11:30 +0300)
committerkhizmax <khizmax@gmail.com>
Mon, 28 Nov 2016 08:30:23 +0000 (11:30 +0300)
cds/intrusive/details/skip_list_base.h

index eb61006afd4c266b129fcef2c1f0964e82b95769..eccb765d2676d1965b3e74d2d2d7f4be70c7e53f 100644 (file)
@@ -72,13 +72,21 @@ namespace cds { namespace intrusive {
 
         protected:
             //@cond
-            atomic_marked_ptr           m_pNext{ nullptr };     ///< Next item in bottom-list (list at level 0)
-            unsigned int                m_nHeight{ 1 };         ///< Node height (size of \p m_arrNext array). For node at level 0 the height is 1.
-            atomic_marked_ptr *         m_arrNext{ nullptr };   ///< Array of next items for levels 1 .. m_nHeight - 1. For node at level 0 \p m_arrNext is \p nullptr
-            atomics::atomic< state >    m_state{ clean };
+            atomic_marked_ptr           m_pNext;     ///< Next item in bottom-list (list at level 0)
+            unsigned int                m_nHeight;   ///< Node height (size of \p m_arrNext array). For node at level 0 the height is 1.
+            atomic_marked_ptr *         m_arrNext;   ///< Array of next items for levels 1 .. m_nHeight - 1. For node at level 0 \p m_arrNext is \p nullptr
+            atomics::atomic< state >    m_state;
             //@endcond
 
         public:
+            node()
+                : m_pNext( nullptr )
+                , m_nHeight( 1 )
+                , m_arrNext( nullptr )
+                , m_state( clean )
+            {}
+
+
             /// Constructs a node's tower of height \p nHeight
             void make_tower( unsigned int nHeight, atomic_marked_ptr * nextTower )
             {