sl@0
|
1 |
// Copyright David Abrahams 2002.
|
sl@0
|
2 |
// Distributed under the Boost Software License, Version 1.0. (See
|
sl@0
|
3 |
// accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
4 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
5 |
#ifndef BORROWED_DWA2002614_HPP
|
sl@0
|
6 |
# define BORROWED_DWA2002614_HPP
|
sl@0
|
7 |
|
sl@0
|
8 |
# include <boost/python/detail/prefix.hpp>
|
sl@0
|
9 |
# include <boost/python/detail/borrowed_ptr.hpp>
|
sl@0
|
10 |
|
sl@0
|
11 |
namespace boost { namespace python {
|
sl@0
|
12 |
|
sl@0
|
13 |
template <class T>
|
sl@0
|
14 |
inline python::detail::borrowed<T>* borrowed(T* p)
|
sl@0
|
15 |
{
|
sl@0
|
16 |
return (detail::borrowed<T>*)p;
|
sl@0
|
17 |
}
|
sl@0
|
18 |
|
sl@0
|
19 |
}} // namespace boost::python
|
sl@0
|
20 |
|
sl@0
|
21 |
#endif // BORROWED_DWA2002614_HPP
|