[pygccxml-development] special functions/operators
Brought to you by:
mbaas,
roman_yakovenko
|
From: Neal B. <ndb...@gm...> - 2006-08-25 14:26:11
|
Is there a way to add special functions/operators to a class?
For example:
struct X {};
X& addAssign (X& x1, X const& x2) { return x1; } // silly example
I want this to do:
.def ("__iadd__", addAssign, return_self<>())
|