From 9a5b89da59b33167c7cafad9049ca6a264c92a76 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 16 Jun 2002 21:31:29 +0000 Subject: [PATCH] initial checkin [SVN r14159] --- include/boost/python/borrowed.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 include/boost/python/borrowed.hpp 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