[pygccxml-development] Auto-wrapping methods taking non-const reference
Brought to you by:
mbaas,
roman_yakovenko
|
From: Allen B. <al...@vr...> - 2006-07-28 12:20:25
|
It is well known that boost.python can't wrap a method like the one below directly. void getSize(float& width, float& height); To wrap this method a user normally needs to manually write a C++ wrapper method that will call the function and return the values in a boost.python.tuple. This is not difficult to do, but it can get very tedious in a large API. I know there have been discussions about automating this, but has anyone actually written code that will do it. I don't need the code integrated into pyplusplus or anything like that right now, I just want to know if someone has code they are willing to share so I don't have to start from scratch. :) -Allen |