1
//////////////////////////////////////////////////////////////////////////////
3
// (C) Copyright 2011-2012 Vicente J. Botet Escriba
4
// Software License, Version 1.0. (See accompanying file
5
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
// See http://www.boost.org/libs/thread for documentation.
9
//////////////////////////////////////////////////////////////////////////////
11
#ifndef BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
12
#define BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
14
#include <boost/type_traits/is_convertible.hpp>
15
#include <boost/thread/detail/move.hpp>
19
namespace thread_detail
21
template <typename T1, typename T2>
22
struct is_convertible : boost::is_convertible<T1,T2> {};
24
#if defined BOOST_NO_CXX11_RVALUE_REFERENCES
26
#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 1300)
28
#if defined BOOST_THREAD_USES_MOVE
29
template <typename T1, typename T2>
30
struct is_convertible<
36
#elif defined __GNUC__ && (__GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ <= 4 ))
38
template <typename T1, typename T2>
39
struct is_convertible<T1&, T2&> : boost::is_convertible<T1, T2> {};
48
#endif // BOOST_THREAD_DETAIL_MEMORY_HPP