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

« back to all changes in this revision

Viewing changes to ext/boost/pointer_to_other.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
#ifndef BOOST_POINTER_TO_OTHER_HPP_INCLUDED
 
2
#define BOOST_POINTER_TO_OTHER_HPP_INCLUDED
 
3
 
 
4
//
 
5
//  pointer_to_other.hpp
 
6
//
 
7
//  (C) Copyright Ion Gaztanaga 2005.
 
8
//  Copyright (c) 2005 Peter Dimov.
 
9
//
 
10
//  Distributed under the Boost Software License, Version 1.0.
 
11
//
 
12
//  (See accompanying file LICENSE_1_0.txt or copy at 
 
13
//  http://www.boost.org/LICENSE_1_0.txt)
 
14
//
 
15
//  See http://www.boost.org/libs/smart_ptr/pointer_to_other.html
 
16
//
 
17
 
 
18
namespace boost
 
19
{
 
20
 
 
21
// Defines the same pointer type (raw or smart) to another pointee type
 
22
 
 
23
template<class T, class U>
 
24
struct pointer_to_other;
 
25
 
 
26
template<class T, class U, 
 
27
         template<class> class Sp>
 
28
struct pointer_to_other< Sp<T>, U >
 
29
{
 
30
   typedef Sp<U> type;
 
31
};
 
32
 
 
33
template<class T, class T2, class U, 
 
34
         template<class, class> class Sp>
 
35
struct pointer_to_other< Sp<T, T2>, U >
 
36
{
 
37
   typedef Sp<U, T2> type;
 
38
};
 
39
 
 
40
template<class T, class T2, class T3, class U, 
 
41
         template<class, class, class> class Sp>
 
42
struct pointer_to_other< Sp<T, T2, T3>, U >
 
43
{
 
44
   typedef Sp<U, T2, T3> type;
 
45
};
 
46
 
 
47
template<class T, class U>
 
48
struct pointer_to_other< T*, U >
 
49
{
 
50
   typedef U* type;
 
51
};
 
52
 
 
53
} // namespace boost
 
54
 
 
55
#endif // #ifndef BOOST_POINTER_TO_OTHER_HPP_INCLUDED