Remove CDS_EMPLACE_SUPPORT macro and unused code
[libcds.git] / cds / container / basket_queue.h
index 4bed44527b9296f2d3e73edad2db1911809a33e0..05ccee61972bdbc2ea93d34c43e733a41f5bfaf5 100644 (file)
@@ -41,15 +41,10 @@ namespace cds { namespace container {
                 node_type( const value_type& val )
                     : m_value( val )
                 {}
-#           ifdef CDS_EMPLACE_SUPPORT
                 template <typename... Args>
                 node_type( Args&&... args )
                     : m_value( std::forward<Args>(args)...)
                 {}
-#           else
-                node_type()
-                {}
-#           endif
             };
 
             typedef typename options::allocator::template rebind<node_type>::other allocator_type;
@@ -193,13 +188,11 @@ namespace cds { namespace container {
         {
             return cxx_allocator().New( val );
         }
-#   ifdef CDS_EMPLACE_SUPPORT
         template <typename... Args>
         static node_type * alloc_node_move( Args&&... args )
         {
             return cxx_allocator().MoveNew( std::forward<Args>( args )... );
         }
-#   endif
         static void free_node( node_type * p )
         {
             node_deallocator()( p );
@@ -283,12 +276,7 @@ namespace cds { namespace container {
             return false;
         }
 
-#   ifdef CDS_EMPLACE_SUPPORT
         /// Enqueues data of type \ref value_type constructed with <tt>std::forward<Args>(args)...</tt>
-        /**
-            This function is available only for compiler that supports
-            variadic template and move semantics
-        */
         template <typename... Args>
         bool emplace( Args&&... args )
         {
@@ -299,8 +287,6 @@ namespace cds { namespace container {
             }
             return false;
         }
-#   endif
-
 
         /// Dequeues a value using copy functor
         /**