comparison DEPENDENCIES/generic/include/boost/python/object_call.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 # if !defined(BOOST_PYTHON_SYNOPSIS)
2 # // Copyright David Abrahams 2002.
3 # // Distributed under the Boost Software License, Version 1.0. (See
4 # // accompanying file LICENSE_1_0.txt or copy at
5 # // http://www.boost.org/LICENSE_1_0.txt)
6
7 # if !defined(BOOST_PP_IS_ITERATING)
8 # error Boost.Python - do not include this file!
9 # endif
10
11 # define N BOOST_PP_ITERATION()
12
13 template <BOOST_PP_ENUM_PARAMS_Z(1, N, class A)>
14 typename detail::dependent<object, A0>::type
15 operator()(BOOST_PP_ENUM_BINARY_PARAMS_Z(1, N, A, const& a)) const
16 {
17 typedef typename detail::dependent<object, A0>::type obj;
18 U const& self = *static_cast<U const*>(this);
19 return call<obj>(get_managed_object(self, tag), BOOST_PP_ENUM_PARAMS_Z(1, N, a));
20 }
21
22 # undef N
23 # endif // BOOST_PYTHON_SYNOPSIS