~ubuntu-branches/ubuntu/wily/ruby-passenger/wily-proposed

« back to all changes in this revision

Viewing changes to ext/boost/thread/detail/is_convertible.hpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2013-11-23 23:50:02 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131123235002-8fdhsq7afj15o2z2
Tags: 4.0.25-1
* New upstream release.
* Refresh fix_install_path.patch.
* Build for Ruby 2.0 instead of 1.8. (Closes: #725591)
* Add fix_ftbfs_fortify_source.patch.
* Install passenger template files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//
 
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)
 
6
//
 
7
// See http://www.boost.org/libs/thread for documentation.
 
8
//
 
9
//////////////////////////////////////////////////////////////////////////////
 
10
 
 
11
#ifndef BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
 
12
#define BOOST_THREAD_DETAIL_IS_CONVERTIBLE_HPP
 
13
 
 
14
#include <boost/type_traits/is_convertible.hpp>
 
15
#include <boost/thread/detail/move.hpp>
 
16
 
 
17
namespace boost
 
18
{
 
19
  namespace thread_detail
 
20
  {
 
21
    template <typename T1, typename T2>
 
22
    struct is_convertible : boost::is_convertible<T1,T2> {};
 
23
 
 
24
#if defined  BOOST_NO_CXX11_RVALUE_REFERENCES
 
25
 
 
26
#if defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 1300)
 
27
 
 
28
#if defined BOOST_THREAD_USES_MOVE
 
29
    template <typename T1, typename T2>
 
30
    struct is_convertible<
 
31
      rv<T1> &,
 
32
      rv<rv<T2> > &
 
33
    > : false_type {};
 
34
#endif
 
35
 
 
36
#elif defined __GNUC__ && (__GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ <= 4 ))
 
37
 
 
38
    template <typename T1, typename T2>
 
39
    struct is_convertible<T1&, T2&> : boost::is_convertible<T1, T2> {};
 
40
#endif
 
41
 
 
42
#endif
 
43
  }
 
44
 
 
45
} // namespace boost
 
46
 
 
47
 
 
48
#endif //  BOOST_THREAD_DETAIL_MEMORY_HPP