Boost logo

Boost :

From: Ullrich Koethe (u.koethe_at_[hidden])
Date: 2001-07-18 09:50:53


Peter.Bienstman_at_[hidden] wrote:
>
> Hi,
>
> Is there support for wrapping in-place operators like
>
> Expression_.def(&Expression::operator+=, "__iadd__");
>
> I always seem to get runtime type errors.
>
> The way these operators should be wrapped is probably slightly
> different than for the other operators, but at first sight, I could
> not find any code in the Boost source that deals with in-place
> operators.

That's right. Boost.Python was developed just before in-place operators
were introduced into Python, so they are currently unsopported. I'll
look into that as soon as I have time. Still, I'd have guessed that your
approach should have worked. What's the problem?

Ulli

-- 
 ________________________________________________________________
|                                                                |
| Ullrich Koethe  Universität Hamburg / University of Hamburg    |
|                 FB Informatik / Dept. of Computer Science      |
|                 AB Kognitive Systeme / Cognitive Systems Group |
|                                                                |
| Phone: +49 (0)40 42883-2573                Vogt-Koelln-Str. 30 |
| Fax:   +49 (0)40 42883-2572                D - 22527 Hamburg   |
| Email: u.koethe_at_[hidden]               Germany             |
|        koethe_at_[hidden]                        |
| WWW:   http://kogs-www.informatik.uni-hamburg.de/~koethe/      |
|________________________________________________________________|

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk