[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/boostorg/python/python/include/boost/python/manage_new_object.hpp [Back]  [Original]

// Copyright David Abrahams 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef MANAGE_NEW_OBJECT_DWA200222_HPP
# define MANAGE_NEW_OBJECT_DWA200222_HPP

# include 
# include 
# include 
# include 
# include 

namespace boost { namespace python { 

namespace detail
{
  template 
  struct manage_new_object_requires_a_pointer_return_type
# if defined(__GNUC__) || defined(__EDG__)
  {}
# endif
  ;
}

struct manage_new_object
{
    template 
    struct apply
    {
        typedef typename mpl::if_c<
            detail::is_pointer::value
            , to_python_indirect
            , detail::manage_new_object_requires_a_pointer_return_type
        >::type type;
    };
};

}} // namespace boost::python

#endif // MANAGE_NEW_OBJECT_DWA200222_HPP

Web Proxy Viewer  |  New URL  |  Original Page