From d1e6b1365039c6f3a9684294ab9263912101b6e3 Mon Sep 17 00:00:00 2001 From: khizmax Date: Fri, 11 Dec 2015 08:53:04 +0300 Subject: [PATCH] Fixed noexcept args --- cds/sync/spinlock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ) { -- 2.34.1