
13 Apr
2007
13 Apr
'07
4:39 p.m.
Hi, I have the base class types of a given class in an MPL sequence (a mpl::vector). I have to expose this class via Boost.Python, passing a bases<...> argument to the class_ declaration. For example, if I have mpl::vector<A, B> I should pass bases<A, B>. Is there a way to convert a generic MPL sequence to a bases<> sequence? I haven't found an easy way to do it (push_back<> on bases<> doesn't return a bases<> type, so boost::python::detail::specifies_bases<> fails) Thanks. -- Giuseppe Ottaviano <giuott@tin.it>