diff --git a/include/boost/python/borrowed.hpp b/include/boost/python/borrowed.hpp new file mode 100755 index 00000000..10b1b5d1 --- /dev/null +++ b/include/boost/python/borrowed.hpp @@ -0,0 +1,20 @@ +// Copyright David Abrahams 2002. Permission to copy, use, +// modify, sell and distribute this software is granted provided this +// copyright notice appears in all copies. This software is provided +// "as is" without express or implied warranty, and with no claim as +// to its suitability for any purpose. +#ifndef BORROWED_DWA2002614_HPP +# define BORROWED_DWA2002614_HPP +# include + +namespace boost { namespace python { + +template +inline python::detail::borrowed* borrowed(T* p) +{ + return (detail::borrowed*)p; +} + +}} // namespace boost::python + +#endif // BORROWED_DWA2002614_HPP