Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/thread/detail/is_convertible.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 ////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 // |
Chris@16 | 3 // Copyright (C) 2011-2013 Vicente J. Botet Escriba |
Chris@16 | 4 // |
Chris@16 | 5 // Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@16 | 6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 // |
Chris@16 | 8 // See http://www.boost.org/libs/thread for documentation. |
Chris@16 | 9 // |
Chris@16 | 10 ////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 11 |
Chris@16 | 12 #ifndef BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP |
Chris@16 | 13 #define BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP |
Chris@16 | 14 |
Chris@16 | 15 #include <boost/type_traits/is_convertible.hpp> |
Chris@16 | 16 #include <boost/thread/detail/move.hpp> |
Chris@16 | 17 |
Chris@16 | 18 namespace boost |
Chris@16 | 19 { |
Chris@16 | 20 namespace thread_detail |
Chris@16 | 21 { |
Chris@16 | 22 template <typename T1, typename T2> |
Chris@16 | 23 struct is_convertible : boost::is_convertible<T1,T2> {}; |
Chris@16 | 24 |
Chris@16 | 25 #if defined BOOST_NO_CXX11_RVALUE_REFERENCES |
Chris@16 | 26 |
Chris@16 | 27 #if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 1300) |
Chris@16 | 28 |
Chris@16 | 29 #if defined BOOST_THREAD_USES_MOVE |
Chris@16 | 30 template <typename T1, typename T2> |
Chris@16 | 31 struct is_convertible< |
Chris@16 | 32 rv<T1> &, |
Chris@16 | 33 rv<rv<T2> > & |
Chris@16 | 34 > : false_type {}; |
Chris@16 | 35 #endif |
Chris@16 | 36 |
Chris@16 | 37 #elif defined __GNUC__ && (__GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ <= 4 )) |
Chris@16 | 38 |
Chris@16 | 39 template <typename T1, typename T2> |
Chris@16 | 40 struct is_convertible<T1&, T2&> : boost::is_convertible<T1, T2> {}; |
Chris@16 | 41 #endif |
Chris@16 | 42 |
Chris@16 | 43 #endif |
Chris@16 | 44 } |
Chris@16 | 45 |
Chris@16 | 46 } // namespace boost |
Chris@16 | 47 |
Chris@16 | 48 |
Chris@16 | 49 #endif // BOOST_THREAD_DETAIL_MEMORY_HPP |