mirror of
https://github.com/boostorg/thread.git
synced 2026-01-23 18:12:12 +00:00
try_lock_wrapper has its own operator bool_type to avoid problems with a using declaration
[SVN r45602]
This commit is contained in:
@@ -629,7 +629,10 @@ namespace boost
|
||||
using base::mutex;
|
||||
using base::release;
|
||||
typedef typename base::bool_type bool_type;
|
||||
using base::operator bool_type;
|
||||
operator bool_type() const
|
||||
{
|
||||
return static_cast<base const&>(*this);
|
||||
}
|
||||
};
|
||||
|
||||
template<typename MutexType1,typename MutexType2>
|
||||
|
||||
Reference in New Issue
Block a user