2
0
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:
Anthony Williams
2008-05-21 10:39:47 +00:00
parent 61b940b705
commit 2ac2eb2a61

View File

@@ -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>