From: khizmax Date: Fri, 11 Dec 2015 05:53:04 +0000 (+0300) Subject: Fixed noexcept args X-Git-Tag: v2.1.0~34 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d1e6b1365039c6f3a9684294ab9263912101b6e3;p=libcds.git Fixed noexcept args --- diff --git a/cds/sync/spinlock.h b/cds/sync/spinlock.h index 661e2386..b1dfe828 100644 --- a/cds/sync/spinlock.h +++ b/cds/sync/spinlock.h @@ -287,7 +287,7 @@ namespace cds { } /// Try to lock the object - bool try_lock( unsigned int nTryCount ) CDS_NOEXCEPT_( noexcept( try_acquire( nTryCount ))) + bool try_lock( unsigned int nTryCount ) CDS_NOEXCEPT_( noexcept( std::declval().try_acquire( nTryCount ))) { thread_id tid = OS::get_current_thread_id(); if ( try_taken_lock( tid ) ) @@ -300,7 +300,7 @@ namespace cds { } /// Lock the object waits if it is busy - void lock() CDS_NOEXCEPT_( noexcept( acquire())) + void lock() CDS_NOEXCEPT_( noexcept( std::declval().acquire())) { thread_id tid = OS::get_current_thread_id(); if ( !try_taken_lock( tid ) ) {