Boost logo

Boost :

Subject: [boost] [python] [concept] CallPolicies implementation
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-12-04 05:47:13

Hello all,

Does Boost.Python implement the CallPolicies concept? I couldn't find it...

If not, would something like this be OK??

template<class P>
struct CallPolicies

        bool b = x.precall(a); // convertible to bool
        PyObject* o = x.postcall(a, r); // convertible to PyObject*

    P x;
    PyObject* a;
    PyObject* r;

I'd have to implement ResultConverterGenerator and Metafunction as well.


Boost list run by bdawes at, gregod at, cpdaniel at, john at