Index: boost/thread/locks.hpp =================================================================== --- boost/thread/locks.hpp (revision 53577) +++ boost/thread/locks.hpp (working copy) @@ -422,13 +422,12 @@ { lhs.swap(rhs); } -#else +#endif template void swap(unique_lock& lhs,unique_lock& rhs) { lhs.swap(rhs); } -#endif #ifdef BOOST_HAS_RVALUE_REFS template @@ -635,13 +634,12 @@ { lhs.swap(rhs); } -#else +#endif template void swap(shared_lock& lhs,shared_lock& rhs) { lhs.swap(rhs); } -#endif template class upgrade_lock @@ -954,13 +952,12 @@ { lhs.swap(rhs); } -#else +#endif template void swap(try_lock_wrapper& lhs,try_lock_wrapper& rhs) { lhs.swap(rhs); } -#endif template unsigned try_lock_internal(MutexType1& m1,MutexType2& m2)