1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/python/borrowed.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,21 @@
1.4 +// Copyright David Abrahams 2002.
1.5 +// Distributed under the Boost Software License, Version 1.0. (See
1.6 +// accompanying file LICENSE_1_0.txt or copy at
1.7 +// http://www.boost.org/LICENSE_1_0.txt)
1.8 +#ifndef BORROWED_DWA2002614_HPP
1.9 +# define BORROWED_DWA2002614_HPP
1.10 +
1.11 +# include <boost/python/detail/prefix.hpp>
1.12 +# include <boost/python/detail/borrowed_ptr.hpp>
1.13 +
1.14 +namespace boost { namespace python {
1.15 +
1.16 +template <class T>
1.17 +inline python::detail::borrowed<T>* borrowed(T* p)
1.18 +{
1.19 + return (detail::borrowed<T>*)p;
1.20 +}
1.21 +
1.22 +}} // namespace boost::python
1.23 +
1.24 +#endif // BORROWED_DWA2002614_HPP