Mark default ctor as =delete for segment
authorkhizmax <libcds.dev@gmail.com>
Mon, 3 Nov 2014 09:38:11 +0000 (12:38 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 3 Nov 2014 09:38:11 +0000 (12:38 +0300)
cds/intrusive/segmented_queue.h

index 2e41c4e..8ba29ca 100644 (file)
@@ -223,6 +223,8 @@ namespace cds { namespace intrusive {
                 init( nCellCount );
             }
 
+            segment() = delete;
+
             void init( size_t nCellCount )
             {
                 atomics::atomic< cell > * pLastCell = cells + nCellCount;
@@ -230,9 +232,6 @@ namespace cds { namespace intrusive {
                     pCell->store( cell(), atomics::memory_order_relaxed );
                 atomics::atomic_thread_fence( memory_model::memory_order_release );
             }
-
-        private:
-            segment(); //=delete
         };
 
         typedef typename opt::details::alignment_setter< atomics::atomic<segment *>, traits::alignment >::type aligned_segment_ptr;