return_value_policy.hpp 675 B

123456789101112131415161718192021
  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 RETURN_VALUE_POLICY_DWA2002131_HPP
  6. # define RETURN_VALUE_POLICY_DWA2002131_HPP
  7. # include <boost/python/detail/prefix.hpp>
  8. # include <boost/python/default_call_policies.hpp>
  9. namespace boost { namespace python {
  10. template <class ResultConverterGenerator, class BasePolicy_ = default_call_policies>
  11. struct return_value_policy : BasePolicy_
  12. {
  13. typedef ResultConverterGenerator result_converter;
  14. };
  15. }} // namespace boost::python
  16. #endif // RETURN_VALUE_POLICY_DWA2002131_HPP