Changeset 44846


Ignore:
Timestamp:
Apr 28, 2008, 12:26:27 PM (11 years ago)
Author:
Anthony Williams
Message:

Updated locks.hpp to work with gcc as well as msvc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/thread/locks.hpp

    r44838 r44846  
    607607            {}
    608608            try_lock_wrapper(Mutex& m_,try_to_lock_t):
    609                 base(m,try_to_lock)
     609                base(m_,try_to_lock)
    610610            {}
    611611            try_lock_wrapper(detail::thread_move_t<try_lock_wrapper<Mutex> > other):
     
    646646            using base::mutex;
    647647            using base::release;
    648        
    649             typedef void (unique_lock::*bool_type)();
    650             operator bool_type() const
    651             {
    652                 return owns_lock()?&unique_lock::lock:0;
    653             }
     648            typedef typename base::bool_type bool_type;
     649            using base::operator bool_type;
    654650        };
    655651    }
Note: See TracChangeset for help on using the changeset viewer.