[C++-sig] Re: using user-defined metaclasses with boost.python

David Abrahams dave at boost-consulting.com
Tue Sep 7 21:29:30 CEST 2004


Stefan Seefeld <sseefeld at art.ca> writes:

> hi there,
>
> is it possible to provide a user-defined metaclass
> for python classes generated via boost.python ?
> As far as I can see boost.python defines its own
> metaclass, so I would expect to have to derive from
> that. But where can I inject it to make it accessible
> to my own types ?

I don't understand what you mean by "inject it."  Do you want to
control the metaclass of the classes wrapped with Boost.Python, or
only some classes derived from wrapped classes in Python?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list