On 16.06.2012 17:57, vikas chauhan wrote:
> Is it possible to do what I want ( i.e add separate attributes using the
> single geta()/seta() functions ) or I need to write some kind of wrapper
> functions (each for accessing each a[i]) ?
I guess the simplest way to do that is to template the geta a
Hi all,
I am pretty new to boost.python and I have been getting some problems
wrapping generic getter/setter functions.
Say for eg. we have class like this.
class X{
int a[10];
public:
int geta(int index) throw(some_exception) {
if(index >= 10 || index <0)
throw som