X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=cds%2Falgo%2Fbackoff_strategy.h;h=c80ea829d43d365d7a55d220c4a13dabb98b1b4e;hp=6cb479efcd700dc23868310c4a1a48d4b61143c8;hb=25f6df95be1521466e78b4db7a1bf34da590f41f;hpb=5f516321477d2eadec683d3a968bafbc8adb8f3d diff --git a/cds/algo/backoff_strategy.h b/cds/algo/backoff_strategy.h index 6cb479ef..c80ea829 100644 --- a/cds/algo/backoff_strategy.h +++ b/cds/algo/backoff_strategy.h @@ -59,7 +59,7 @@ namespace cds { {} template - bool operator()(Predicate pr) CDS_NOEXCEPT_( noexcept(Predicate()()) ) + bool operator()(Predicate pr) CDS_NOEXCEPT { return pr(); } @@ -78,7 +78,7 @@ namespace cds { } template - bool operator()( Predicate pr ) CDS_NOEXCEPT_( noexcept( Predicate()() ) ) + bool operator()( Predicate pr ) CDS_NOEXCEPT { if ( pr() ) return true; @@ -106,7 +106,7 @@ namespace cds { } template - bool operator()( Predicate pr ) CDS_NOEXCEPT_( noexcept( Predicate()() ) ) + bool operator()( Predicate pr ) CDS_NOEXCEPT { if ( pr() ) return true; @@ -137,7 +137,7 @@ namespace cds { } template - bool operator()( Predicate pr ) CDS_NOEXCEPT_( noexcept( Predicate()() ) ) + bool operator()( Predicate pr ) CDS_NOEXCEPT { if ( pr() ) return true; @@ -264,7 +264,7 @@ namespace cds { } template - bool operator()( Predicate pr ) CDS_NOEXCEPT_( noexcept(Predicate()()) && noexcept( spin_backoff()()) && noexcept( yield_backoff()())) + bool operator()( Predicate pr ) CDS_NOEXCEPT_(noexcept( spin_backoff()()) && noexcept( yield_backoff()())) { if ( m_nExpCur <= m_nExpMax ) { for ( size_t n = 0; n < m_nExpCur; ++n ) { @@ -371,7 +371,7 @@ namespace cds { } template - bool operator()( Predicate pr ) const CDS_NOEXCEPT_( noexcept(Predicate()())) + bool operator()( Predicate pr ) const CDS_NOEXCEPT { for ( unsigned int i = 0; i < m_nTimeout; i += 2 ) { if ( pr() )