diff --git a/include/boost/thread/detail/is_convertible.hpp b/include/boost/thread/detail/is_convertible.hpp index 051a2712..4602131d 100644 --- a/include/boost/thread/detail/is_convertible.hpp +++ b/include/boost/thread/detail/is_convertible.hpp @@ -12,6 +12,7 @@ #define BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP #include +#include namespace boost { @@ -20,9 +21,16 @@ namespace boost template struct is_convertible : boost::is_convertible {}; - template - struct is_convertible : boost::is_convertible {}; +#if defined BOOST_NO_CXX11_RVALUE_REFERENCES +#if defined BOOST_THREAD_USES_MOVE + template + struct is_convertible< + rv &, + rv > & + > : false_type {}; +#endif +#endif } } // namespace boost