Index: boost/thread/locks.hpp =================================================================== --- boost/thread/locks.hpp (revision 70997) +++ boost/thread/locks.hpp (working copy) @@ -1478,7 +1478,7 @@ range_lock_guard(Iterator begin_,Iterator end_): begin(begin_),end(end_) { - lock(begin,end); + boost::lock(begin,end); } void release() @@ -1510,7 +1510,7 @@ { return begin; } - Iterator const failed=try_lock(++begin,end); + Iterator const failed=boost::try_lock(++begin,end); if(failed==end) { guard.release(); @@ -1543,7 +1543,7 @@ if(start_with_begin) { begin_lock.lock(); - Iterator const failed_lock=try_lock(next,end); + Iterator const failed_lock=boost::try_lock(next,end); if(failed_lock==end) { begin_lock.release(); @@ -1557,7 +1557,7 @@ detail::range_lock_guard guard(next,end); if(begin_lock.try_lock()) { - Iterator const failed_lock=try_lock(second,next); + Iterator const failed_lock=boost::try_lock(second,next); if(failed_lock==next) { begin_lock.release();