1 //////////////////////////////////////////////////////////////////////////////
3 // Copyright (C) 2011-2013 Vicente J. Botet Escriba
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/thread for documentation.
10 //////////////////////////////////////////////////////////////////////////////
12 #ifndef BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
13 #define BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
15 #include <boost/type_traits/is_convertible.hpp>
16 #include <boost/thread/detail/move.hpp>
20 namespace thread_detail
22 template <typename T1, typename T2>
23 struct is_convertible : boost::is_convertible<T1,T2> {};
25 #if defined BOOST_NO_CXX11_RVALUE_REFERENCES
27 #if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 1300)
29 #if defined BOOST_THREAD_USES_MOVE
30 template <typename T1, typename T2>
31 struct is_convertible<
37 #elif defined __GNUC__ && (__GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ <= 4 ))
39 template <typename T1, typename T2>
40 struct is_convertible<T1&, T2&> : boost::is_convertible<T1, T2> {};
49 #endif // BOOST_THREAD_DETAIL_MEMORY_HPP