Changed: use padding option instead of alignment one
[libcds.git] / cds / intrusive / details / single_link_struct.h
index d8365998fdaa780fe9fddcb45962bc72ca8ac8be..b235b593e7775c798ec6cda434c20aa1f9d1cdd9 100644 (file)
@@ -36,9 +36,10 @@ namespace cds { namespace intrusive {
 
             atomic_node_ptr m_pNext ; ///< pointer to the next node in the container
 
-            node()
-                : m_pNext( nullptr )
-            {}
+            node() CDS_NOEXCEPT
+            {
+                m_pNext.store( nullptr, atomics::memory_order_release );
+            }
         };
 
         //@cond