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