From: khizmax Date: Wed, 24 Sep 2014 04:45:24 +0000 (+0400) Subject: Refactoring bugfix X-Git-Tag: v2.0.0~300 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=12d430936464f92a7160529940ba0b6f4de9fcc3;p=libcds.git Refactoring bugfix --- diff --git a/cds/container/details/make_split_list_set.h b/cds/container/details/make_split_list_set.h index 1a5d02e3..396e2bdd 100644 --- a/cds/container/details/make_split_list_set.h +++ b/cds/container/details/make_split_list_set.h @@ -40,14 +40,12 @@ namespace cds { namespace container { explicit node_type( Q const& v ) : m_Value(v) {} -# ifdef CDS_EMPLACE_SUPPORT template explicit node_type( Q&& q, Args&&... args ) : m_Value( std::forward(q), std::forward(args)... ) {} -# endif - private: - node_type() ; // no default ctor + + node_type() = delete; }; typedef typename cds::opt::select_default< @@ -150,14 +148,12 @@ namespace cds { namespace container { : m_Value(v) {} -# ifdef CDS_EMPLACE_SUPPORT template explicit node_type( Q&& q, Args&&... args ) : m_Value( std::forward(q), std::forward(args)... ) {} -# endif - private: - node_type() ; // no default ctor + + node_type() = delete; }; typedef typename cds::opt::select_default< diff --git a/cds/intrusive/striped_set.h b/cds/intrusive/striped_set.h index 0bf9cabc..0ff4c673 100644 --- a/cds/intrusive/striped_set.h +++ b/cds/intrusive/striped_set.h @@ -472,7 +472,6 @@ namespace cds { namespace intrusive { { alloc_bucket_table( m_nBucketMask + 1 ); } -#endif /// Destructor destroys internal data ~StripedSet() diff --git a/projects/Win/vc12/cds.vcxproj b/projects/Win/vc12/cds.vcxproj index 0b57040f..9412ebc6 100644 --- a/projects/Win/vc12/cds.vcxproj +++ b/projects/Win/vc12/cds.vcxproj @@ -658,6 +658,7 @@ + diff --git a/projects/Win/vc12/cds.vcxproj.filters b/projects/Win/vc12/cds.vcxproj.filters index 94a31d44..b5de3f4b 100644 --- a/projects/Win/vc12/cds.vcxproj.filters +++ b/projects/Win/vc12/cds.vcxproj.filters @@ -1274,5 +1274,8 @@ Header Files\cds\lock + + Header Files\cds\container\details + \ No newline at end of file