2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-28 07:42:12 +00:00

Thread: update is_convertible workaround to try to avoid a regression on intel.12.0

[SVN r81503]
This commit is contained in:
Vicente J. Botet Escriba
2012-11-24 07:07:48 +00:00
parent de0272abcf
commit 37b0eb2c48

View File

@@ -12,6 +12,7 @@
#define BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
#include <boost/type_traits/is_convertible.hpp>
#include <boost/thread/detail/move.hpp>
namespace boost
{
@@ -20,9 +21,16 @@ namespace boost
template <typename T1, typename T2>
struct is_convertible : boost::is_convertible<T1,T2> {};
template <typename T1, typename T2>
struct is_convertible<T1&, T2&> : boost::is_convertible<T1, T2> {};
#if defined BOOST_NO_CXX11_RVALUE_REFERENCES
#if defined BOOST_THREAD_USES_MOVE
template <typename T1, typename T2>
struct is_convertible<
rv<T1> &,
rv<rv<T2> > &
> : false_type {};
#endif
#endif
}
} // namespace boost