Boost logo

Boost :

From: rcspython_at_[hidden]
Date: 2001-03-08 22:31:55

I wrapped a class with some methods of the type...

char * myclass::myfunc(int mynum, const char * mystring = NULL)

Now, the wrapped class method does work.. however, when I was testing
it under the interactive python session, it complained that function
requires 3 parameters, and I had only provided 2 as in:

import mywrap

mw = mywrap(1)
mw.myfunc(1) // it didn't like this...

Shouldn't the NULL default be used by the python call?

It didn't complain when I did

mw.myfunc(1,"") // This worked but defeats the purpose of using

Any help would be greatly appreciated!

Best Regards,

Boost list run by bdawes at, gregod at, cpdaniel at, john at