Dear Hans and Jim,
thanks a lot for your replies!
I tried to wrap/def boost::python::str's methods for my derived class,
which is possible in a quite compact way using boost::function_types and
some templates. However, I quit my attempt when it came to operators -
too much work for now.
Cheers,
On 09/29/2010 09:01 AM, Hans Meine wrote:
Am Mittwoch 29 September 2010, 17:02:57 schrieb Willi Karel:
I'd like to derive from either Python's built-in 'str' or
boost::python::str, resulting in a class that provides additional
methods / member functions / attributes. [...]
AFAIK this is just a
Am Mittwoch 29 September 2010, 17:02:57 schrieb Willi Karel:
> I'd like to derive from either Python's built-in 'str' or
> boost::python::str, resulting in a class that provides additional
> methods / member functions / attributes. [...]
AFAIK this is just an unsupported feature of the BPL. I was
I'd like to derive from either Python's built-in 'str' or
boost::python::str, resulting in a class that provides additional
methods / member functions / attributes. The definitions of these
additional methods are implemented in C++. Is there any way to achieve
that? Please note that implicit conver