id summary reporter owner description type status milestone component version severity resolution keywords cc 6170 boost::move conflicts in thread upgrade mutexes (1.48.0) nathan@… Anthony Williams "Due to the new boost::move package, you can no longer use upgradeable locks and unordered_map at the same time, you get ambiguous function names: Compiling the file: {{{ #include #include // Including this will cause ambiguous errors in boost::move #include using namespace boost; typedef upgrade_lock auto_upgrade_lock; typedef upgrade_to_unique_lock auto_upgrade_unique_lock; void testUpgrade(void); void testUpgrade(void) { shared_mutex mtx; auto_upgrade_lock lock(mtx); // Do some read-only stuff auto_upgrade_unique_lock writeLock(lock); // Do some write-only stuff with the upgraded lock } }}} Yields the following error: {{{ boost/thread/locks.hpp: In constructor ‘boost::upgrade_to_unique_lock::upgrade_to_unique_lock(boost::upgrade_lock&) [with Mutex = boost::shared_mutex]’: test.cpp:23: instantiated from here boost/thread/locks.hpp:926: error: call of overloaded ‘move(boost::upgrade_lock&)’ is ambiguous boost/thread/detail/move.hpp:44: note: candidates are: typename boost::enable_if >, boost::detail::thread_move_t >::type boost::move(T&) [with T = boost::upgrade_lock] boost/move/move.hpp:294: note: typename boost::move_detail::disable_if, T&>::type boost::move(T&) [with T = boost::upgrade_lock] boost/thread/locks.hpp: In destructor ‘boost::upgrade_to_unique_lock::~upgrade_to_unique_lock() [with Mutex = boost::shared_mutex]’: test.cpp:23: instantiated from here boost/thread/locks.hpp:932: error: call of overloaded ‘move(boost::unique_lock&)’ is ambiguous boost/thread/detail/move.hpp:44: note: candidates are: typename boost::enable_if >, boost::detail::thread_move_t >::type boost::move(T&) [with T = boost::unique_lock] boost/move/move.hpp:294: note: typename boost::move_detail::disable_if, T&>::type boost::move(T&) [with T = boost::unique_lock] }}} Compiling using 1.48.0 on OSX." Bugs closed To Be Determined thread Boost 1.48.0 Regression duplicate viboes