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 BY_VALUE_DWA20021015_HPP 6 # define BY_VALUE_DWA20021015_HPP 7 8 # include <boost/python/detail/prefix.hpp> 9 10 # include <boost/python/to_python_value.hpp> 11 # include <boost/python/detail/type_traits.hpp> 12 13 # include <boost/python/detail/value_arg.hpp> 14 15 namespace boost { namespace python { 16 17 struct return_by_value 18 { 19 template <class R> 20 struct apply 21 { 22 typedef to_python_value< 23 typename detail::value_arg<R>::type 24 > type; 25 }; 26 }; 27 28 }} // namespace boost::python 29 30 #endif // BY_VALUE_DWA20021015_HPP 31